1 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3 * bcache.h: Update copyright.
4 (struct bstring, struct bcache): Move definition to "bcache.c".
5 Replaced by opaque declaration.
6 (bcache_xfree): Replace free_bcache.
7 (bcache_xmalloc, bcache_memory_used): Declare.
9 * bcache.c: Update copyright.
10 (struct bstring, struct bcache): Moved to here from "bcache.h".
12 (bcache_xmalloc, bcache_memory_used): New functions.
13 (bcache_xfree): Replace function free_bcache.
15 * Makefile.in (objfiles.o): Add $(bcache_h).
16 (objfiles_h): Remove $(bcache_h).
17 (symfile.o): Add $(bcache_h).
19 * symmisc.c: Update copyright.
20 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
21 (print_objfile_statistics): Use bcache_memory_used.
23 * symfile.c: Include "bcache.h".
24 (reread_symbols): Use bcache_xfree.
25 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
26 (add_psymbol_to_list): Pass psymbol_cache by value.
27 (add_psymbol_with_dem_name_to_list): Ditto.
29 * objfiles.h: Update copyright.
30 (struct bcache): Declare opaque. Do not include "bcache.h".
31 (struct objfile): Change psymbol_cache and macro_cache to ``struct
33 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
35 * objfiles.c: Include "bcache.h". Update copyright.
36 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
38 (free_objfile): Use bcache_xfree.
40 2002-07-11 Grace Sainsbury <graces@redhat.com>
42 * monitor.c (monitor_fetch_register): Make name a constant.
43 (monitor_store_register): Same.
45 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
47 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
48 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
49 (finish_block) For non-function blocks, hash the symbol table. For
50 function blocks, mark the symbol table as unhashed.
51 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
52 (msymbol_hash_iw): Likewise.
53 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
55 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
56 (lookup_minimal_symbol): Likewise for both.
57 * symtab.h (struct block): Add `hashtable' flag. Comment the
59 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
60 (ALL_BLOCK_SYMBOLS): Update.
61 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
62 (struct symbol): Add `hash_next' pointer.
63 * symtab.c (lookup_block_symbol): Search using the hash table when
65 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
66 (search_symbols, find_addr_symbol): Likewise.
68 * dstread.c (process_dst_block): Clear hashtable bit for new block.
69 (read_dst_symtab): Likewise.
70 * jv-lang.c (get_java_class_symtab): Likewise.
71 * mdebugread.c: Include "gdb_assert.h".
72 (shrink_block): Assert that the block being modified is not hashed.
73 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
74 * symmisc.c (free_symtab_block): Walk the hash table when freeing
76 (dump_symtab): Recognize hashed blocks.
77 * printcmd.c (print_frame_args): Assert that function blocks do not
78 have hashed symbol tables.
79 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
80 (fill_in_ada_prototype, debug_print_block): Likewise.
81 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
83 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
85 * stack.c (print_frame): Use result of frame_address_in_block()
86 instead of fi->pc when evaluating symbols.
87 (backtrace_command_1): Ditto.
89 2002-07-11 Andrew Cagney <cagney@redhat.com>
91 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
94 * arm-tdep.c (arm_register_name): Make return type constant.
96 2002-07-10 Andrew Cagney <ac131313@redhat.com>
98 * win32-nat.c (has_detach_ability): Convert to strict ISO C
100 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
101 * s390-tdep.c (s390_fp_regnum): Ditto.
102 (s390_read_fp): Ditto.
103 (s390_pop_frame): Ditto.
104 (_initialize_s390_tdep): Ditto.
105 * remote.c (get_remote_state): Ditto.
106 * procfs.c (mappingflags): Ditto.
107 * memattr.c (_initialize_mem): Ditto.
108 * mcore-tdep.c (mcore_pop_frame): Ditto.
109 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
110 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
111 * language.c (set_case_str): Ditto.
112 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
113 * frv-tdep.c (new_variant): Ditto.
114 (frv_stopped_data_address): Ditto.
115 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
116 (context_alloc): Ditto.
117 (frame_state_alloc): Ditto.
118 (unwind_tmp_obstack_init): Ditto.
119 (unwind_tmp_obstack_free): Ditto.
120 (cfi_read_fp): Ditto.
121 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
122 (cris_pop_frame): Ditto.
123 * c-lang.c (scanning_macro_expansion): Ditto.
124 (finished_macro_expansion): Ditto.
125 (c_preprocess_and_parse): Ditto.
127 * gdbarch.h, gdbarch.c: Regenerate.
128 * config/mn10200/tm-mn10200.h: Adjust indentation.
129 * target.c: Adjust indentation.
130 * symtab.h: Adjust indentation.
131 * stabsread.h: Adjust indentation.
132 * remote-es.c: Adjust indentation.
133 * os9kread.c: Adjust indentation.
135 2002-07-10 Andrew Cagney <ac131313@redhat.com>
137 * wince.c (_initialize_wince): Rename _initialize_inftarg.
138 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
140 2002-07-10 Grace Sainsbury <graces@redhat.com>
142 * NEWS: Mention m68k, mcore multi-arching.
143 * MAINTAINERS: Change status of m68k, mcore to reflect
146 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
148 * valops.c (find_overload_match): Free oload_syms.
150 2002-07-09 Joel Brobecker <brobecker@gnat.com>
152 Define HAVE_SYS_PROC_H if sys/proc.h exists
153 * configure.in: Add check for sys/proc.h
154 * config.in: Regenerate.
155 * configure: Regenerate.
157 2002-07-09 Grace Sainsbury <graces@redhat.com>
159 * config/m68k/tm-m68k.h: Remove macros wrapped in
162 2002-07-09 David O'Brien <obrien@FreeBSD.org>
164 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
165 (perror_with_name, remote_close, remote_open, expect, play): Static.
167 2002-07-08 Andrew Cagney <ac131313@redhat.com>
169 * config.in, configure: Regenerate.
171 2002-07-08 Mark Kettenis <kettenis@gnu.org>
173 * dwarf2cfi.c: Include "gcore.h".
174 (execute_stack_op): Fix implementation of the
175 DW_OP_deref and DW_OP_deref_size operators by letting do their
176 lookup in the target.
178 2002-07-07 Mark Kettenis <kettenis@gnu.org>
180 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
181 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
184 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
186 Fix PR gdb/595, gdb/602
187 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
188 Don't call value_cast, just read the vtable pointer; update comments
191 2002-07-05 Grace Sainsbury <graces@redhat.com>
193 * config/mcore/tm-mcore.h: Remove file.
194 * config/mcore/mcore.mt: Remove definition of TM_FILE
195 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
197 2002-07-05 Mark Kettenis <kettenis@gnu.org>
199 * i386bsd-tdep.c: Include "gdb_string.h".
201 2002-07-04 Grace Sainsbury <graces@redhat.com>
203 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
204 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
206 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
207 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
208 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
209 (RETVAL_REGNUM): Move macros from tm-mcore.h
210 (mcore_reg_struct_has_addr): New function.
211 (mcore_gdbarch_init): Added initializations for the macros removed
214 2002-07-04 Mark Kettenis <kettenis@gnu.org>
216 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
217 traditonal string branding within the ELF header.
219 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
221 * symtab.c (remove_params): New function.
222 (make_symbol_overload_list): Use it instead of cplus_demangle.
223 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
225 2002-07-04 Mark Kettenis <kettenis@gnu.org>
227 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
229 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
231 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
232 and tdep->sigtramp_end.
233 * i386obsd-nat.c: New file.
234 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
236 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
237 Don't call get_current_frame().
239 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
241 * i386-nat.c (child_post_startup_inferior): New function
242 calling i386_cleanup_dregs if
243 I386_USE_GENERIC_WATCHPOINTS is defined.
244 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
245 conditional to acknowledge that i386-nat.c has its
246 own child_post_startup_inferior function.
248 2002-07-04 Mark Kettenis <kettenis@gnu.org>
250 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
251 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
252 instead of MAX_REGISTER_RAW_SIZE.
253 (i386_extract_return_value, i386_extract_struct_value_address):
254 Convert to use regcache.
255 (i386_gdbarch_init): Set max_register_raw_size and
256 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
257 Set extract_return_value and extract_struct_value_address instead
258 of their deprecated variants.
260 Convert i386 target to generic dummy frames.
261 * i386-tdep.c: Include "symfile.h".
262 (i386_frameless_signal_p): Consider a function to be frameless if
263 the pc points at the first instruction of the function.
264 (i386_frame_chain): Handle (generic) call dummies.
265 (i386_frame_saved_pc): Likewise.
266 (i386_frame_init_saved_regs): Remove code dealing with call
267 dummies on the stack.
268 (i386_push_dummy_frame): Removed.
269 (i386_call_dummy_words): Removed.
270 (i386_fix_call_dummy): Removed.
271 (i386_push_return_address): New function.
272 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
273 parameter, and don't call get_current_frame.
274 (i386_pop_frame): New function.
275 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
276 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
277 entry_point_address, set call_dummy_breakpoint_offset to 0, set
278 call_dummy_length to 0, set call_dummy_words to NULL, set
279 sizeof_call_dummy_words to 0, set fix_call_dummy to
280 generic_fix_call_dummy, set pc_in_call_dummy to
281 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
282 generic_push_dummy_frame, set push_return_address to
283 i386_push_return_address and set frame_chain_valid to
284 generic_file_frame_chain_valid.
286 2002-07-04 Michal Ludvig <mludvig@suse.cz>
288 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
289 byte offsets instead of an array of indexes.
290 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
292 2002-07-03 Andrew Cagney <ac131313@redhat.com>
294 * gdbarch.sh (struct regcache): Add opaque declaration.
295 (EXTRACT_RETURN_VALUE): New architecture method.
296 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
297 * gdbarch.h, gdbarch.c: Regenerate.
298 * arch-utils.c (legacy_extract_return_value): New function.
299 * arch-utils.h (legacy_extract_return_value): Declare.
300 * values.c (value_being_returned): Re-enable code handling
301 EXTRACT_STRUCT_VALUE_ADDRESS. Move
302 deprecated_grub_regcache_for_registers call to block handling
303 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
304 (EXTRACT_RETURN_VALUE): Do not define.
306 2002-07-03 Grace Sainsbury <graces@redhat.com>
308 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
309 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
310 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
311 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
312 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
313 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
314 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
315 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
316 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
317 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
318 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
319 argument so the function fits the prototype in the architecture
321 (mcore_pop_frame): Remove argument so the function fits the
322 prototype. Use get_current_frame instead of the argument.
323 (mcore_push_arguments): Change type of struct_return so the
324 function can be used in the architecture vector.
325 (mcore_store_struct_return): Add.
326 (mcore_frame_init_saved_regs): Add.
327 (mcore_gdbarch_init): Add function calls to replace the macros
328 removed from tm-mcore.h
330 2002-07-03 Andrew Cagney <ac131313@redhat.com>
332 * infcmd.c (print_return_value): Remove compatibility code calling
333 deprecated_grub_regcache_for_registers.
335 * values.c: Include "regcache.h".
336 (value_being_returned): Update. Use
337 deprecated_grub_regcache_for_registers to extract the register
339 * value.h (value_being_returned): Change ``retbuf'' parameter to a
341 * Makefile.in (values.o): Add dependency on $(regcache_h).
343 * inferior.h (run_stack_dummy): Change type of second parameter to
344 a ``struct regcache''.
345 * valops.c (hand_function_call): Change type of retbuf to ``struct
346 regcache''. Allocate using regcache_xmalloc, clean using
347 make_cleanup_regcache_xfree.
348 * infcmd.c (run_stack_dummy): Update. Use
349 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
351 * regcache.c (do_regcache_xfree): New function.
352 (make_cleanup_regcache_xfree): New function.
353 * regcache.h (make_cleanup_regcache_xfree): Declare.
355 2002-07-03 Martin M. Hunt <hunt@redhat.com>
357 * event-top.c (command_line_handler): Don't read past
360 2002-07-03 Martin M. Hunt <hunt@redhat.com>
362 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
364 (varobj_create): Store frame_id for root.
365 (varobj_gen_name): Use xasprintf.
366 (varobj_update): Save and restore frame using get_frame_id() and
368 (create_child): Use xasprintf.
369 (new_root_variable): Initialize frame_id.
370 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
371 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
372 to prevent memory leak.
374 2002-07-03 Andrew Cagney <ac131313@redhat.com>
376 * valops.c (hand_function_call): Move declaration of retbuf to
377 start of function, allocate using malloc, add a cleanup but before
378 the inf_status cleanup, cleanup the buffer. Rename local variable
379 old_chain to inf_status_cleanup.
381 2002-07-03 Martin M. Hunt <hunt@redhat.com>
383 * top.c (execute_command): Use cmd_func() and cmd_func_p().
385 * cli/cli-decode.c (cmd_func_p): New function.
386 (cmd_func): New function.
388 * command.h: Add cmd_func() and cmd_func_p().
390 2002-07-03 Grace Sainsbury <graces@redhat.com>
392 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
393 (REGISTER_SIZE): Remove.
394 (MAX_REGISTER_RAW_SIZE): Remove.
395 (REGISTER_VIRTUAL_TYPE): Remove.
396 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
397 (REGISTER_NAME): Remove.
398 (USE_GENERIC_DUMMY_FRAMES): Remove.
399 (CALL_DUMMY): Remove.
400 (CALL_DUMMY_START_OFFSET): Remove.
401 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
402 (CALL_DUMMY_LOCATION): Remove.
403 (FIX_CALL_DUMMY): Remove.
404 (CALL_DUMMY_ADDRESS): Remove.
405 (SIZEOF_CALL_DUMMY_WORDS): Remove.
406 (SAVE_DUMMY_FRAME_TOS): Remove.
407 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
408 (mcore_register_virtual_type): New function.
409 (mcore_register_byte): New function.
410 (mcore_register_size): New function.
411 (mcore_register_name): New function.
412 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
413 macros removed from tm-mcore.h.
414 (mcore_dump_tdep): Add.
415 (_initialize_mcore_tdep): Add gdbarch_register call.
417 2002-07-03 Mark Kettenis <kettenis@gnu.org>
419 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
420 frameless_look_for_prologue, such that we actually call this
423 2002-07-02 Joel Brobecker <brobecker@gnat.com>
425 * frame.h (frame_address_in_block): New function.
427 * blockframe.c (frame_address_in_block): New function extracted
428 from get_frame_block().
429 (get_frame_block): Use frame_address_in_block().
430 (block_innermost_frame): Use frame_address_in_block() to match
431 the frame pc address against the block boundaries rather than
432 the frame pc directly. This prevents a failure when a frame pc
433 is actually a return-address pointing immediately after the end
436 2002-07-02 Grace Sainsbury <graces@redhat.com>
438 * MAINTAINERS: Add self under write after approval.
440 2002-07-02 Grace Sainsbury <graces@redhat.com>
442 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
443 used in architecture vector. The default is
444 m68k_local_breakpoint_from_pc.
445 (m68k_local_breakpoint_from_pc): Add.
446 (enum): Add register numbers from tm-m68k.h.
447 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
449 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
450 GDB_MULTI_ARCH_PARTIAL.
451 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
452 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
454 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
455 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
456 to enum in m68k-tdep.c
458 2002-07-02 Joel Brobecker <brobecker@gnat.com>
460 * solib-osf.c (open_map): Compute the list of shared libraries
461 loaded by the inferior, rather than the list of libraries loaded
462 by GDB itself. Otherwise, GDB ends up reading the symbols from
463 the wrong shared libraries...
465 2002-07-02 Mark Kettenis <kettenis@gnu.org>
467 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
468 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
470 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
472 (FRAMELESS_SIGNAL): Remove function.
473 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
474 i386_linux_saved_pc_after_call): Removed.
475 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
476 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
477 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
479 * i386-tdep.c (i386_frameless_signal_p): New function.
480 (i386_frame_chain): Deal with frameless signals.
481 (i386_sigtramp_saved_sp): New function.
482 (i386_frame_saved_pc): Deal with frameless signals.
483 (i386_saved_pc_after_call): Make sure the correct value is
484 returned just after entry into a sigtramp.
485 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
486 i386fbsd4_sc_sp_offset): New variables.
487 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
488 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
489 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
490 similiar to what we already did for sc_pc_offset.
491 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
494 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
496 2002-07-02 Michal Ludvig <mludvig@suse.cz>
498 * config/i386/tm-x86-64linux.h: New.
499 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
501 * config/i386/nm-x86-64.h: Rename to ...
502 * config/i386/nm-x86-64linux.h: ... this one.
503 * config/i386/x86-64linux.mh: Reflect the above change.
505 2002-07-01 Mark Kettenis <kettenis@gnu.org>
507 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
508 with sigcontext_addr. Add sc_sp_offset.
509 (i386bsd_sigtramp_saved_pc): Remove prototype.
510 (i386bsd_sicontext_addr): Add prototype.
511 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
512 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
513 (i386_svr4_sigtramp_saved_pc): Removed.
514 (i386_svr4_sigcontext_addr): New function.
515 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
516 Initialize tdep->sigcontext_addr instead. Initialize
517 tdep->sc_pc_offset and tdep->sc_sp_offset.
518 (i386_gdbarch_init): Likewise.
519 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
521 (i386bsd_sigtramp_saved_pc): Remove function.
522 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
523 Initialize tdep->sigcontext_addr instead. Initialize
525 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
526 of tdep->sigtramp_saved_pc.
527 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
528 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
531 * i386-tdep.c (i386_frameless_function_invocation,
532 i386_frame_num_args, i386_frame_init_saved_regs,
533 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
534 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
535 i386_extract_return_value, i386_store_return_value,
536 i386_extract_struct_value_address, i386_register_virtual_type,
537 i386_register_convertible, i386_register_convert_to_virtual,
538 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
539 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
542 2002-07-01 Mark Kettenis <kettenis@gnu.org>
544 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
546 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
547 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
548 this macro. Include "value.h".
550 2002-06-30 Aidan Skinner <aidan@velvet.net>
552 * ada-exp.tab.c: remove as it's a generated file
553 * ada-lex.c: remove as it's a generated file
555 2002-06-30 Mark Kettenis <kettenis@gnu.org>
557 * config/i386/tm-i386.h (struct frame_info, struct
558 frame_saved_regs, struct value, struct type): Remove forward
561 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
562 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
563 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
564 (FILL_FPXREGSET): Define.
566 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
568 * configure.tgt (i[3456]86-*-openbsd*): Fold into
569 i[3456]86-*-netbsd* case.
570 * config/i386/tm-obsd.h: Removed.
571 * config/i386/obsd.mt: Removed.
572 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
574 (MH_CFLAGS): Add -DYYDEBUG=0.
576 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
577 i386nbsd_sc_pc_offset on OpenBSD too.
579 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
580 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
581 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
583 * i386bsd-tdep.c: Include "arch-utils.h".
584 (i386bsd_aout_in_solib_call_trampoline): New function.
585 (i386bsd_init_abi): Set in_solib_call_trampoline to
586 i386bsd_aout_in_solib_call_trampoline.
587 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
588 in_solib_call_trampoline to generic_in_solib_call_trampoline.
590 2002-06-28 Andrew Cagney <ac131313@redhat.com>
592 * macrotab.h: Do not include "obstack.h" or "bcache.h".
593 (struct obstack, struct bcache): Add opaque declarations.
594 * Makefile.in (macrotab_h): Update
596 2002-06-28 Andrew Cagney <ac131313@redhat.com>
598 * blockframe.c (generic_find_dummy_frame): Change return type to
600 (struct dummy_frame): Replace field ``registers'' with regcache, a
601 struct regcache object.
602 (generic_find_dummy_frame): Update.
603 (generic_push_dummy_frame): Update. Use regcache_xfree,
604 regcache_xmalloc and regcache_cpy.
605 (generic_pop_dummy_frame): Update. Use regcache_cpy and
607 (deprecated_generic_find_dummy_frame): Update.
608 (generic_read_register_dummy): Update. Use
609 regcache_read_as_address.
610 (generic_call_dummy_register_unwind): Update. Use regcache_read.
611 (generic_get_saved_register): Update. Use regcache_read.
613 2002-06-28 Andrew Cagney <ac131313@redhat.com>
615 * Makefile.in (objfiles_h): Add $(bcache_h).
616 * objfiles.h: Include "bcache.h".
618 * Makefile.in (symtab_h): Remove $(bcache_h).
619 * symtab.h: Do not include "bcache.h".
621 2002-06-28 Andrew Cagney <ac131313@redhat.com>
623 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
624 generic_func_frame_chain_valid.
626 2002-06-28 David O'Brien <obrien@FreeBSD.org>
628 * config/i386/nm-fbsd.h: Include <sys/param.h>.
629 * config/i386/tm-fbsd.h: Likewise.
631 2002-06-28 Andrew Cagney <ac131313@redhat.com>
633 * rs6000-tdep.c (rs6000_gdbarch_init): Use
634 generic_unwind_get_saved_register.
636 2002-06-27 Andrew Cagney <ac131313@redhat.com>
638 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
639 * regcache.c (supply_register): Add missing argument to
640 register_buffer call.
642 2002-06-27 Andrew Cagney <ac131313@redhat.com>
644 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
645 Solaris /bin/grep does not not like it. From Peter Schauer.
647 2002-06-26 Tom Tromey <tromey@redhat.com>
649 * command.h (add_setshow_cmd): Declare.
650 (add_setshow_cmd_full): Declare.
651 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
652 returns void. Use add_setshow_cmd_full.
653 (add_setshow_cmd_full): New function.
654 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
655 (add_setshow_boolean_cmd): Likewise.
657 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
659 * config/vax/tm-vax.h: Protect from multiple inclusion.
660 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
661 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
662 * config/vax/tm-vaxbsd.h: ...here. New file.
663 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
665 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
667 * config/vax/tm-vax.h (BREAKPOINT): Remove.
668 (BELIEVE_PCC_PROMOTION): Remove.
669 (AP_REGNUM): Move to...
670 * config/vax/nm-vax.h: ...here.
671 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
672 (vax_breakpoint_from_pc): New function.
673 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
674 and gdbarch_believe_pcc_promotion.
676 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
678 * Makefile.in (vax_tdep_h): Define.
679 (vax-tdep.o): Use $(vax_tdep_h).
680 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
681 (vax_dump_tdep): New function.
682 (_initialize_vax_tdep): Register vax_dump_tdep.
683 * vax-tdep.h: Include osabi.h.
684 (struct gdbarch_tdep): New.
686 2002-06-26 Andrew Cagney <cagney@redhat.com>
688 * frame.h (deprecated_generic_find_dummy_frame): Rename
689 generic_find_dummy_frame.
690 * blockframe.c (generic_find_dummy_frame): Make static.
691 (deprecated_generic_find_dummy_frame): New function.
692 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
693 generic_find_dummy_frame with deprecated_find_dummy_frame.
694 (sh64_nofp_frame_init_saved_regs): Ditto.
695 (sh_fp_frame_init_saved_regs): Ditto.
696 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
697 (s390_frame_chain): Ditto.
698 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
700 2002-06-26 Grace Sainsbury <graces@redhat.com>
702 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
703 gdbarch vector are at the top.
705 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
706 (FRAME_ARGS_ADDRESS): Remove.
707 (FRAME_LOCALS_ADDRESS): Remove.
708 (FRAME_NUM_ARGS): Remove.
709 (FRAME_ARGS_SKIP): Remove.
710 * m68k-tdep.c (enum): Add eumeration of special register numbers.
711 (m68k_gdbarch_init): Add gdbarch initializations for macros
712 undefined in tm-m68k.h
714 2002-06-26 Grace Sainsbury <graces@redhat.com>
716 * monitor.h: Add the function regname to monitor_ops
717 structure. This way NUM_REGS does not have to be a constant.
718 * monitor.c (monitor_fetch_register): Added support for regname
719 function. The function is called if the array regnames is NULL.
720 (monitor_store_register): Same.
721 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
723 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
724 cpu32bug_cmds.regname to point to new function.
725 * abug-rom.c (abug_regname): Same as above.
726 (init_abug_cmds): Same.
727 * dbug-rom.c (dbug_regname): Same as above.
728 (init_dbug_cmds): Same.
729 * remote-est.c (est_regname): Same.
730 (init_est_cmds): Same.
731 * rom68k-rom.c (rom68k_regname): Same.
732 (init_rom68k_cmds): Same.
734 2002-06-25 Tom Tromey <tromey@redhat.com>
736 * breakpoint.c (delete_command): Don't repeat `delete' commands.
738 2002-06-25 Andrew Cagney <cagney@redhat.com>
740 * infrun.c (stop_registers): Change variable's type to ``struct
742 (xmalloc_inferior_status): Delete function.
743 (free_inferior_status): Delete function.
744 (normal_stop): Use regcache_cpy.
745 (struct inferior_status): Change type of fields ``stop_registers''
746 and ``registers'' to ``struct regcache''.
747 (write_inferior_status_register): Use regcache_write.
748 (save_inferior_status): Instead of calling
749 xmalloc_inferior_status, allocate the inf_status buffer directly.
750 Use regcache_dup_no_passthrough and regcache_dup to save the
752 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
753 Replace the stop_registers regcache instead of overriding it. Use
754 regcache_xfree. Instead of calling free_inferior_status, xfree
756 (discard_inferior_status): Use regcache_xfree. Instead of calling
757 free_inferior_status, xfree the buffer directly.
758 (build_infrun): Use regcache_xmalloc.
759 (_initialize_infrun): Delete redundant call to build_infrun.
761 * Makefile.in (infcmd.o): Add $(regcache_h).
763 * infcmd.c: Include "regcache.h".
764 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
765 obtain the address of `stop_registers' register buffer.
766 (print_return_value): Ditto.
768 * inferior.h (struct regcache): Add opaque declaration.
769 (stop_registers): Change variable's declared type to ``struct
772 2002-06-24 Tom Tromey <tromey@redhat.com>
774 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
775 * target.c (initialize_targets): Fixed typo in
776 trust-readonly-sections `show' documentation.
778 * main.c: Marked all strings with _().
780 2002-06-24 Don Howard <dhoward@redhat.com>
782 * memattr.c (create_mem_region): Treat hi == 0 as a special case
783 that means max CORE_ADDR+1.
784 (lookup_mem_region): Ditto.
785 (mem_info_command): Ditto.
787 2002-06-24 Grace Sainsbury <graces@redhat.com>
789 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
790 (REGISTER_BYTES_OK): Remove.
791 (REGISTER_BYTES): Remove.
792 (STORE_STRUCT_RETURN): Remove.
793 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
794 (STORE_RETURN_VALUE): Remove.
795 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
796 (FRAME_CHAIN): Remove.
797 (FRAMELESS_FUNCTION_INVOCATION): Remove.
798 (FRAME_SAVED_PC): Remove.
799 * m68k-tdep.c (m68k_register_bytes_ok):Add.
800 (m68k_store_struct_return): Add.
801 (m68k_deprecated_extract_return_value): Add.
802 (m68k_deprecated_extract_struct_value_address): Add.
803 (m68k_store_return_value): Add.
804 (m68k_frame_chain): Add.
805 (m68k_frameless_function_invocation): Add.
806 (m68k_frame_saved_pc): Add.
807 (m68k_gdbarch_init): added set_gdbarch calls for new
808 functions and deleted macros.
810 2002-06-23 Tom Tromey <tromey@redhat.com>
812 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
813 (ALLDEPFILES): Likewise.
814 (udiheaders): Removed.
815 (udip2soc.o): Likewise.
816 (udi2go32.o): Likewise.
818 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
820 2002-06-22 Andrew Cagney <ac131313@redhat.com>
822 * infrun.c (_initialize_infrun): Delete unnecessary call to
825 * regcache.h: Update comments describing the regcache_cpy family
827 (regcache_save, regcache_restore): Delete declaration.
828 (regcache_save_no_passthrough): Delete declaration.
829 (regcache_restore_no_passthrough): Delete declaration.
830 * regcache.c (regcache_save): Delete function.
831 (regcache_save_no_passthrough): Delete function.
832 (regcache_restore): Delete function.
833 (regcache_restore_no_passthrough): Delete function.
835 2002-06-21 Andrew Cagney <ac131313@redhat.com>
837 * config/m68k/tm-m68k.h: Fix typo.
838 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
839 (m68k_frame_init_saved_regs): Declare.
841 2002-06-21 Jim Blandy <jimb@redhat.com>
843 Remove some vestiges of Harris 88k support.
844 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
845 register numbering quirk.
846 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
847 odd symbols occurring in Harris 88k ELF targets.
849 2002-06-21 Tom Tromey <tromey@redhat.com>
851 * gdb_locale.h: New file.
852 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
853 (defs_h): Added gdb_locale.h.
854 * configure, config.in: Rebuilt.
855 * configure.in (PACKAGE): Define.
856 * defs.h: Include gdb_locale.h.
857 * main.c (captured_main): Call setlocale, bindtextdomain,
860 2002-06-21 Dave Brolley <brolley@redhat.com>
862 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
863 * config/frv/frv.mt: New file.
864 * config/frv/tm-frv.h: New file.
865 * configure.tgt: Support frv-*-*.
866 * Makefile.in (frv-tdep.o): New target.
867 * frv-tdep.c: New file.
870 2002-06-21 Dave Brolley <brolley@redhat.com>
872 * MAINTAINERS: Add self to "Write After Approval" list.
874 2002-06-21 Grace Sainsbury <graces@redhat.com>
876 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
877 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
878 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
879 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
880 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
882 * m68k-tdep.c: Include arch-utils.h
883 (m68k_register_raw_size): Add.
884 (m68k_register_virtual_size): Add.
885 (m68k_register_virtual_type): Add.
886 (m68k_register_name): Add.
887 (m68k_stack_align): Add.
888 (m68k_register_byte): Add.
889 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
892 2002-06-21 Grace Sainsbury <graces@redhat.com>
894 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
895 m68k_find_saved_regs.
896 (m68k_pop_frame): Removed saved_regs structure, and replaced
897 references to it with frame->saved_regs.
898 (m68k_gdbarch_init): Added function calls to initialize the
900 (m68k_fix_call_dummy): Add.
901 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
902 (CALL_DUMMY): Remove.
903 (CALL_DUMMY_LENGTH): Remove.
904 (CALL_DUMMY_START_OFFSET): Remove.
905 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
906 (FIX_CALL_DUMMY): Remove.
907 (PUSH_DUMMY_FRAME): Remove.
910 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
912 * parse.c (parse_fprintf): New function used to avoid calls to
913 fprintf in bison parser generated debug code.
914 * parser-defs.h: Declaration of new parse_fprintf function.
915 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
916 Set YYDEBUG to 1 by default.
917 Set YYFPRINTF as parse_fprintf.
919 2002-06-21 Michal Ludvig <mludvig@suse.cz>
921 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
923 (pointer_encoding, enum ptr_encoding): New.
924 (execute_cfa_program): Take care about pointer encoding.
925 (dwarf2_build_frame_info): Only call parse_frame_info for
926 .debug_frame and .eh_frame.
927 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
928 fixed augmentation handling, added relative addressing,
929 ignore duplicate FDEs. Added comments.
930 * dwarf2cfi.c: Reindented.
932 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
934 * event-top.c (command_handler): Don't use space_at_cmd_start
935 unless there is sbrk() on the host. Assign time and space data
936 to union fields of the appropriate length.
938 2002-06-20 Michal Ludvig <mludvig@suse.cz>
940 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
941 x86_64_register_name. Return type changed to 'const char *'.
942 (x86_64_register_name2nr): Rename to x86_64_register_number.
943 (x86_64_gdbarch_init): Update to reflect the change.
944 * x86-64-tdep.h: Ditto.
945 * x86-64-linux-nat.c (x86_64_fxsave_offset)
946 (supply_fpregset): Ditto.
948 2002-06-19 Andrew Cagney <cagney@redhat.com>
950 * regcache.h: Update copyright.
951 (struct regcache, struct gdbarch): Add opaque declarations.
952 (current_regcache): Declare global variable.
953 (regcache_read, regcache_write): Add gdbarch parameter.
954 (regcache_save, regcache_save_no_passthrough)
955 (regcache_restore, regcache_restore_no_passthrough)
956 (regcache_dup, regcache_dup_no_passthrough)
957 (regcache_cpy, regcache_cpy_no_passthrough)
958 (deprecated_grub_regcache_for_registers)
959 (deprecated_grub_regcache_for_register_valid)
960 (regcache_valid_p): Add function declarations.
962 * regcache.c: Update copyright.
963 (regcache_descr_handle): New global variable.
964 (struct regcache_descr): Define.
965 (init_legacy_regcache_descr, init_regcache_descr): New functions.
966 (regcache_descr, xfree_regcache_descr): New functions.
967 (struct regcache): Define.
968 (regcache_xmalloc, regcache_xfree): New functions.
969 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
970 (regcache_dup, regcache_dup_no_passthrough): New functions.
971 (regcache_valid_p, regcache_read_as_address): New functions.
972 (deprecated_grub_regcache_for_registers): New function.
973 (deprecated_grub_regcache_for_register_valid): New function.
974 (current_regcache): New global variable.
975 (register_buffer): Add regcache parameter. Update calls.
976 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
977 (read_register_gen, write_register_gen): Update register_buffer
978 call. Test for legacy_p instead of gdbarch_register_read_p or
979 gdbarch_register_write_p.
980 (regcache_collect): Update register_buffer call.
981 (build_regcache): Rewrite. Use deprecated grub functions.
982 (regcache_save, regcache_save_no_passthrough): New functions.
983 (regcache_restore, regcache_restore_no_passthrough): New
985 (_initialize_regcache): Create the regcache_data_handle. Swap
986 current_regcache global variable.
988 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
989 parameter to regcache_read and regcache_write calls.
990 (sh4_register_read): Ditto.
991 (sh64_pseudo_register_read): Ditto.
992 (sh64_register_read): Ditto.
993 (sh_pseudo_register_write): Ditto.
994 (sh4_register_write): Ditto.
995 (sh64_pseudo_register_write): Ditto.
996 (sh64_register_write): Ditto.
998 * defs.h (XCALLOC): Define.
1000 2002-06-19 Grace Sainsbury <graces@redhat.com>
1002 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
1003 * m68k-tdep.c (m68k_gdbarch_init): Added.
1004 (m68k_dump_tdep): Added.
1006 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
1008 * ada-lang.c (fill_in_ada_prototype): Update comment.
1010 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
1012 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
1014 (mips_abi_string, mips_abi_strings): New.
1015 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
1016 (mips_gdbarch_init): Set tdep->found_abi. Don't set
1017 tdep->mips_abi_string. Honor mips_abi_string. Default to
1018 O32 if no ABI is found.
1019 (mips_dump_tdep): Use mips_abi_strings.
1020 (mips_abi_update): New function.
1021 (_initialize_mips_tdep): Initialize mips_abi_string. Add
1022 ``set mips abi'' and ``show mips abi''. Check the size of
1025 2002-06-19 Andrew Cagney <cagney@redhat.com>
1027 * i386-linux-tdep.c (i386_linux_register_name): Make return type
1030 2002-06-18 Joel Brobecker <brobecker@gnat.com>
1032 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
1033 current frame using only the first stack size adjustment. All
1034 subsequent size adjustments are not considered to be part of
1035 the "static" part of the current frame.
1036 Compute the address of the saved registers relative to the
1037 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
1038 in use in this frame.
1040 2002-06-18 Don Howard <dhoward@redhat.com>
1042 * valops.c (value_ind): Use value_at_lazy() when dereferencing
1043 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
1044 suggesting this solution.
1046 2002-06-18 Andrew Cagney <ac131313@redhat.com>
1048 * config/romp/xm-rtbsd.h: Delete file.
1049 * config/romp/rtbsd.mh: Delete file.
1051 2002-06-18 Keith Seitz <keiths@redhat.com>
1053 * breakpoint.c (condition_command): Post breakpoint_modify
1054 when a condition is added to an existing breakpoint.
1055 (commands_command): Likewise for commands.
1056 (set_ignore_count): Likewise for ignore counts.
1057 If no tty, do not simply return, still need to send event
1059 (ignore_command): Only print a newline if the command came
1061 Don't call breakpoints_changed, since this is now properly
1062 handled by set_ignore_count.
1064 2002-06-18 Andrew Cagney <cagney@redhat.com>
1066 * MAINTAINERS: Note that cris-elf target can be compiled with
1068 * cris-tdep.c (cris_register_name): Make return type constant.
1069 (cris_breakpoint_from_pc): Ditto.
1071 2002-06-18 Michal Ludvig <mludvig@suse.cz>
1073 * frame.h (struct frame_info): Change type of context to
1076 2002-06-17 Andrew Cagney <cagney@redhat.com>
1078 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
1080 * gdbarch.h, gdbarch.c: Regenerate.
1081 * config/mips/tm-mips.h (mips_register_name): Update.
1082 * i386-tdep.h (i386_register_name): Update.
1083 * mips-tdep.c (mips_register_name): Update
1084 * alpha-tdep.c (alpha_register_name): Update.
1085 * arch-utils.c (legacy_register_name): Update.
1086 * arch-utils.h (legacy_register_name): Update.
1087 * avr-tdep.c (avr_register_name): Update.
1088 * ia64-tdep.c (ia64_register_name): Update.
1089 * i386-tdep.c (i386_register_name): Update.
1090 * sparc-tdep.c (sparc32_register_name): Update.
1091 (sparc64_register_name): Update.
1092 (sparclite_register_name): Update.
1093 (sparclet_register_name): Update.
1094 * sh-tdep.c (sh_generic_register_name): Update.
1095 (sh_sh_register_name): Update.
1096 (sh_sh3_register_name): Update.
1097 (sh_sh3e_register_name): Update.
1098 (sh_sh_dsp_register_name): Update.
1099 (sh_sh3_dsp_register_name): Update.
1100 (sh_sh4_register_name): Update.
1101 (sh_sh64_register_name): Update.
1102 * s390-tdep.c (s390_register_name): Update.
1103 * rs6000-tdep.c (rs6000_register_name): Update.
1104 * ns32k-tdep.c (ns32k_register_name_32082): Update.
1105 (ns32k_register_name_32382): Update.
1106 * d10v-tdep.c (d10v_ts2_register_name): Update.
1107 (d10v_ts3_register_name): Update.
1108 * xstormy16-tdep.c (xstormy16_register_name): Update.
1109 * vax-tdep.c (vax_register_name): Update.
1110 * v850-tdep.c (v850_register_name): Update.
1111 * m68hc11-tdep.c (m68hc11_register_name): Update.
1112 * mn10300-tdep.c (mn10300_generic_register_name): Update.
1113 (am33_register_name): Update.
1115 2002-06-17 Grace Sainsbury <graces@redhat.com>
1117 * m68k-tdep.c: Reindented.
1119 2002-06-17 Andrew Cagney <ac131313@redhat.com>
1121 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
1122 list of predefined types.
1124 2002-06-16 Mark Kettenis <kettenis@gnu.org>
1126 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
1127 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1128 REGISTER_CONVERT_TO_RAW): Remove defines.
1129 (i386_register_virtual_type, i386_register_convertible,
1130 i386_register_convert_to_virtual, i386_register_convert_to_raw):
1132 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1133 macros mentioned above.
1135 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
1136 (i386lynx_saved_pc_after_call): Remove prototype.
1137 * i386ly-tdep.c: Include "i386-tdep.h".
1138 (i386lynx_saved_pc_after_call): Make static. Use
1139 read_memory_nobpt instead of read_memory. Use
1140 read_memory_unsigned_integer instead of read_memory_integer.
1141 (i386lynx_init_abi): New function.
1142 (i386lynx_coff_osabi_sniffer): New function.
1143 (_initialize_i386bsd_tdep): New function.
1145 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
1146 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
1147 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
1148 (i386_fix_call_dummy): Remove prototype.
1149 * i386-tdep.c (i386_call_dummy_words): New variable.
1150 (i386_gdbarch_init): Adjust for removal of the
1151 macros mentioned above.
1153 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1155 * command.h (add_setshow_auto_boolean_cmd): Replace
1156 add_set_auto_boolean_cmd.
1157 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
1158 add_set_auto_boolean_cmd.
1159 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
1160 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
1161 mask-address'' command.
1162 (show_mask_address): Add cmd parameter.
1163 * remote.c (add_packet_config_cmd): Update. Change type of
1164 set_func and show_func to cmd_sfunc_ftype.
1165 (_initialize_remote): Update `set remote Z-packet'
1166 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
1167 (show_remote_protocol_e_packet_cmd): Ditto.
1168 (show_remote_protocol_E_packet_cmd): Ditto.
1169 (show_remote_protocol_P_packet_cmd): Ditto.
1170 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
1171 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
1172 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
1173 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
1174 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
1175 (show_remote_protocol_Z_packet_cmd): Ditto.
1176 (show_remote_protocol_binary_download_cmd): Ditto.
1177 (show_remote_cmd): Pass NULL to all of above.
1179 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1181 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
1182 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
1183 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
1184 POP_FRAME): Remove defines.
1185 (i386_push_arguments, i386_store_struct_return,
1186 i386_extract_return_value, i386_store_return_value,
1187 i386_extract_struct_value_address, i386_push_dummy_frame,
1188 i386_pop_frame): Renove prototypes.
1189 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1190 macros mentioned above.
1192 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1194 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
1195 add_set_boolean_cmd.
1196 (add_setshow_cmd): New function.
1197 * command.h (add_setshow_boolean_cmd): Replace
1198 add_set_boolean_cmd.
1199 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
1200 and ``set rdiromatzero''.
1201 * maint.c (_initialize_maint_cmds): Update commented out code.
1202 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
1203 * target.c (initialize_targets): Update `set
1204 trust-readonly-sections'.
1205 * remote.c (_initialize_remote): Update `set remotebreak'.
1207 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1209 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
1210 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
1211 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
1212 fit into multi-arch framework.
1213 (i386_breakpoint_from_pc): New function.
1214 (i386_gdbarch_init): Adjust for removal of the macros mentioned
1217 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
1218 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
1219 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
1220 (i386_frameless_function_invocation, i386_frame_num_args,
1221 i386_frame_init_saved_regs): Remove prototypes.
1222 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1223 macros mentioned above.
1225 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1227 * cli/cli-decode.c (set_cmd_cfunc): Update.
1228 (set_cmd_sfunc): Update.
1229 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
1230 (set_cmd_sfunc, set_cmd_cfunc): Update.
1231 * cli/cli-decode.h: Update.
1233 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1235 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
1236 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
1238 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1240 * defs.h (auto_boolean): Declare enum.
1241 * command.h (cmd_auto_boolean): Delete enum.
1242 * mips-tdep.c (mask_address_var): Update.
1243 (mips_mask_address_p): Update.
1244 (show_mask_address): Update.
1245 * remote.c (struct packet_config): Update.
1246 (update_packet_config): Update.
1247 (show_packet_config_cmd): Update.
1248 (packet_ok): Update.
1249 (add_packet_config_cmd): Update.
1250 (_initialize_remote):
1251 * command.h: Update.
1252 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
1253 (do_setshow_command): Update.
1254 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
1255 * cli/cli-decode.h: Update.
1257 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1259 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
1260 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
1261 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
1262 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
1263 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
1264 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
1266 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
1267 list of DJGPP COFF targets.
1269 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
1270 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
1271 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
1272 (FP0_REGNUM): Remove define.
1273 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
1274 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
1275 (i386_register_virtual_size): Remove protoype.
1276 * i386-tdep.c (i386_register_virtual_size): Removed.
1277 (i386_extract_return_value, i386_store_return_value): Use
1278 FP0_REGNUM instead of NUM_FREGS to determine whether the
1279 floating-point registers are available.
1280 (i386_gdbarch_init): Tweak FIXME about FPU registers.
1281 Adjust for removal of macros mentioned above.
1283 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1285 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
1287 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
1289 (supply_gregset, fill_gregset): Remove use of register keyword and
1290 remove declaration for regmap. Use I386_NUM_GREGS instead of
1291 NUM_REGS and NUM_FREGS.
1292 (FPREGSET_FSAVE_OFFSET): Remove.
1293 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
1294 NUM_FREGS to determine whether the floating-point registers are
1297 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
1298 gnu_store_registers): Replace usage of NUM_GREGS with
1301 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
1302 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
1303 usage of NUM_GREGS with I386_NUM_GREGS.
1305 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
1307 * i386bsd-nat.c: Include "i386-tdep.h".
1308 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
1311 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
1312 and associated comment. They no longer make any sense, since we
1313 don't use this file anymore on Linux.
1315 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
1316 * i386-tdep.c (i386_register_offset, i386_register_size): Use
1317 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
1318 elements in these arrays.
1319 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
1322 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1324 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
1325 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
1327 2002-06-14 Andrew Cagney <cagney@redhat.com>
1329 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
1330 EXTRACT_RETURN_VALUE.
1331 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
1332 EXTRACT_STRUCT_VALUE_ADDRESS.
1333 * gdbarch.h, gdbarch.c: Regenerate.
1335 * values.c (value_being_returned): Handle
1336 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1337 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
1339 * arm-linux-tdep.c (arm_linux_init_abi): Update.
1340 * arm-tdep.c (arm_gdbarch_init): Update.
1341 * avr-tdep.c (avr_gdbarch_init): Update.
1342 * cris-tdep.c (cris_gdbarch_init): Update.
1343 * d10v-tdep.c (d10v_gdbarch_init): Update.
1344 * ia64-tdep.c (ia64_gdbarch_init): Update.
1345 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1346 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1347 * s390-tdep.c (s390_gdbarch_init): Update.
1348 * sh-tdep.c (sh_gdbarch_init): Update.
1349 * s390-tdep.c (s390_gdbarch_init): Update.
1350 * sparc-tdep.c (sparc_gdbarch_init): Update.
1351 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1352 * v850-tdep.c (v850_gdbarch_init): Update.
1353 * vax-tdep.c (vax_gdbarch_init): Update.
1354 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1355 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1357 * config/arc/tm-arc.h: Update.
1358 * config/d30v/tm-d30v.h: Update.
1359 * config/fr30/tm-fr30.h: Update.
1360 * config/h8300/tm-h8300.h: Update.
1361 * config/h8500/tm-h8500.h: Update.
1362 * config/i386/tm-i386.h: Update.
1363 * config/i386/tm-ptx.h: Update.
1364 * config/i386/tm-symmetry.h: Update.
1365 * config/i960/tm-i960.h: Update.
1366 * config/m32r/tm-m32r.h: Update.
1367 * config/m68k/tm-delta68.h: Update.
1368 * config/m68k/tm-linux.h: Update.
1369 * config/m68k/tm-m68k.h: Update.
1370 * config/m88k/tm-m88k.h: Update.
1371 * config/mcore/tm-mcore.h: Update.
1372 * config/mips/tm-mips.h: Update.
1373 * config/mn10200/tm-mn10200.h: Update.
1374 * config/pa/tm-hppa.h: Update.
1375 * config/pa/tm-hppa64.h: Update.
1376 * config/sparc/tm-sp64.h: Update.
1377 * config/sparc/tm-sparc.h: Update.
1378 * config/sparc/tm-sparclet.h: Update.
1379 * config/z8k/tm-z8k.h: Update.
1381 2002-06-14 Andrew Cagney <cagney@redhat.com>
1383 * Makefile.in (i386_linux_tdep_h): Define.
1384 (i386_tdep_h, i387_tdep_h): Define.
1385 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
1386 $(i386_tdep_h) and $(i387_tdep_h).
1387 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1389 2002-06-14 Mark Kettenis <kettenis@gnu.org>
1391 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
1392 Already covered by the default.
1394 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
1395 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
1396 (i386_gdbarch_init): Initialize long_double_format and long_double
1399 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
1400 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
1402 * config/i386/i386sol2.mh: ... here.
1403 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
1404 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
1405 (SIGCONTEXT_PC_OFFSET): Remove define.
1406 (IN_SIGTRAMP): Remove define.
1407 * i386-sol2-tdep.c: New file.
1409 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
1410 * config/i386/tm-i386nw.h: Removed.
1412 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
1413 USE_STRUCT_CONVENTION): Remove defines.
1414 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1415 (get_longjmp_target): Remove prototype.
1416 (IN_SIGTRAMP): Remove define.
1417 (i386bsd_in_sigtramp): Remove prototype.
1418 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1419 function. Update comment accordingly
1420 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1421 (FRAME_SAVED_PC): Remove define.
1422 (i386bsd_frame_saved_pc): Remove prototype.
1423 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
1424 GET_LONGJMP_TARGET): Remove defines.
1425 (get_longjmp_target): Remove prototype.
1426 (IN_SIGTRAMP): Remove define.
1427 (i386bsd_in_sigtramp): Remove prototype.
1428 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1429 function. Update comment accordingly
1430 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1431 (FRAME_SAVED_PC): Remove define.
1432 (i386bsd_frame_saved_pc): Remove prototype.
1433 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
1435 (USE_STRUCT_CONVENTION): Remove prototype.
1436 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
1438 (_initialize_i386bsd_nat): Revise logic to determine some
1439 constants at compile time when compiling a native GDB. Warn if
1440 things don't match up with what we expect.
1441 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
1443 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
1444 to use date stored in `struct gdbarch_tdep'.
1445 (i386bsd_sigcontext_offset): Remove varaible.
1446 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
1447 stored in `struct gdbarch_tdep'.
1448 (i386bsd_frame_saved_pc): Make static.
1449 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
1450 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
1451 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1452 i386fbsd4_sc_pc_offset): New variables.
1453 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
1454 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
1456 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
1458 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
1459 Modify the value of i386fbsd_sigtramp_start and
1460 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
1461 i386fbsd_sigtramp_end.
1462 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
1465 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
1466 define to i386-linux-tdep.h.
1467 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
1468 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
1470 (i386_linux_register_name, i386_linux_register_byte,
1471 i386_linux_register_raw_size): Remove prototypes.
1472 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
1473 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
1474 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
1475 TARGET_WRITE_PC): Remove defines.
1476 (i386_linux_in_sigtramp, i386_linux_frame_chain,
1477 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
1478 i386_linux_write_pc): Remove prototypes.
1479 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1480 (get_longjmp_target): Remove prototype.
1481 * i386-linux-tdep.h: New file.
1482 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1483 * i386-linux-tdep.c: Include "i386-tdep.h" and
1484 "i386-linux-tdep.h".
1485 (i386_linux_register_name, i386_linux_register_byte,
1486 i386_linux_register_raw_size, i386_linux_in_sigtramp,
1487 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
1489 (i386_linux_init_abi): New function.
1490 (_initialize_i386_linux_tdep): New function.
1492 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
1493 (i386_saved_pc_after_call): Remove prototype.
1494 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
1495 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
1496 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
1497 (i386_register_name, i386_stab_reg_to_regnum,
1498 i386_dwarf_reg_to_regnum): Remove prototypes.
1499 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
1500 SIZEOF_SSE_REGS): Remove defines.
1501 (REGISTER_BYTES): Remove define.
1502 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
1503 (i386_register_byte, i386_register_raw_size): Remove prototypes.
1504 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
1505 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
1506 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
1507 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
1508 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
1509 (get_longjmp_target): Remove prototype.
1510 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
1511 (sigtramp_saved_pc): Remove define.
1512 (i386v4_sigtramp_saved_pc): Remove prototype.
1513 * config/i386/tm-go32.h (FRAME_CHAIN,
1514 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
1515 (i386go32_frame_saved_pc): Remove prototype.
1516 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1517 (get_longjmp_target): Remove prototype.
1518 * i386-tdep.h: Include "osabi.h".
1519 (enum i386_abi): Removed.
1520 (enum struct_return): New enum.
1521 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
1522 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
1523 sc_pc_offset members.
1524 (i386_gdbarch_register_os_abi): Remove prototype.
1525 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
1526 I386_SSE_NUM_REGS): New defines.
1527 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
1528 I386_SSE_SIZEOF_REGS): New defines.
1529 (i386_register_name, i386_register_byte, i386_register_raw_size):
1531 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
1532 (i386bsd_sigtramp_saved_pc): New prototype.
1533 * i386-tdep.c: Don't include "elf-bfd.h".
1534 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
1535 i386_frame_chain, i386_saved_pc_after_call): Make static.
1536 (i386_frame_saved_pc): Rewrite to call architecture dependent
1537 function to deal with signal handlers. Make static.
1538 (i386go32_frame_saved_pc): Removed.
1539 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
1541 (i386_get_longjmp_target): New function.
1542 (default_struct_convention, pcc_struct_convention,
1543 reg_struct_convention, valid_conventions, struct_convention): New
1545 (i386_use_struct_convention): New function.
1546 (i386v4_sigtramp_saved_pc): Renamed to
1547 i386_svr4_sigtramp_saved_pc. Made static. Moved.
1548 (i386_pc_in_sigtramp): New function.
1549 (i386_abi_names): Removed.
1550 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
1551 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
1553 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
1554 i386_gdbarch_register_os_abi): Removed.
1555 (struct i386_abi_handler): Removed.
1556 (i386_abi_handler_list): Removed.
1557 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
1559 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
1560 i386_nw_init_abi): New functions.
1561 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
1562 Use set_gdbarch_xxx() calls instead of relying on macros for a
1564 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
1565 (_initialize_i386_tdep): Add new 'struct-convcention' command.
1566 Register the various architecture variants defined in this file.
1568 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
1570 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
1571 (struct main_type): Remove arg_types member. Update comments for
1573 (TYPE_ARG_TYPES): Remove.
1574 (TYPE_FN_FIELD_ARGS): Update.
1575 (smash_to_method_type): Update prototype.
1577 * c-typeprint.c (cp_type_print_method_args): Take method type
1578 instead of argument list. Use new argument layout. Simplify.
1579 (c_type_print_args): Use new argument layout. Simplify.
1580 (c_type_print_base): Update call to cp_type_print_method_args.
1581 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
1582 argument; use die->type instead. Update call to
1583 smash_to_method_type.
1584 (read_structure_scope): Update call to dwarf2_add_member_fn.
1585 * gdbtypes.c (allocate_stub_method): Update comment.
1586 (smash_to_method_type): Take new NARGS and VARARGS arguments.
1587 Use new argument layout.
1588 (check_stub_method): Use new argument layout. Don't count
1589 void as an argument.
1590 (print_arg_types): Update comments. Use new argument layout.
1591 (recursive_dump_type): Don't print arg_types member.
1592 * hpread.c (hpread_read_struct_type): Use new argument layout.
1593 (fixup_class_method_type): Likewise.
1594 (hpread_type_lookup): Likewise.
1595 * stabsread.c (read_type): Update calls to read_args and
1596 smash_to_method_type.
1597 (read_args): Use new argument layout. Simplify.
1598 * valops.c (typecmp): Use new argument layout. Update parameters
1599 and comments. Simplify.
1600 (hand_function_call): Use new argument layout.
1601 (search_struct_method): Update call to typecmp.
1602 (find_overload_match): Use new argument layout.
1604 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1606 * NEWS: Mention multithreaded debug support for gdbserver.
1608 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1610 * MAINTAINERS: Mention NEWS.
1612 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1614 * gdbserver/regcache.c: Add comment.
1616 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1618 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
1619 (struct mips_objfile_private, compare_pdr_entries): New.
1620 (non_heuristic_proc_desc): Read the ".pdr" section if it
1623 2002-06-12 Andrew Cagney <ac131313@redhat.com>
1625 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
1626 (arm_debug): New static variable.
1627 (_initialize_arm_tdep): Add ``set debug arm'' command.
1629 2002-06-12 Andrew Cagney <ac131313@redhat.com>
1631 * Makefile.in (sim_arm_h): Define.
1632 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
1633 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
1634 (arm_register_sim_regno): New function, map an internal REGNUM
1635 onto a simulator register number.
1636 (arm_gdbarch_init): Set register_sim_regno.
1638 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
1640 * MAINTAINERS: Add self.
1642 2002-06-11 Jim Blandy <jimb@redhat.com>
1644 * source.c (source_info): Mention whether the symtab has
1645 information about preprocessor macros.
1647 Call the command `info macro', not `show macro'.
1648 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
1650 (_initialize_macrocmd): Register `info_macro_command' in
1651 `infolist', not `showlist'.
1653 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
1655 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
1656 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
1657 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
1658 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
1659 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
1661 (set_mipsfpu_single_command, set_mipsfpu_double_command)
1662 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
1663 (_initialize_mips_tdep): Remove dead code.
1664 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
1665 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1666 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
1667 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1668 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
1669 MIPS_LAST_FP_ARG_REGNUM): Remove.
1671 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
1673 * gdbserver/thread-db.c: New file.
1674 * gdbserver/proc-service.c: New file.
1675 * gdbserver/acinclude.m4: New file.
1676 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
1677 proc-service.o, and thread-db.o.
1678 (linux-low.o): Add USE_THREAD_DB.
1679 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
1680 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
1681 * gdbserver/aclocal.m4: Regenerated.
1682 * gdbserver/config.in: Regenerated.
1683 * gdbserver/configure: Regenerated.
1684 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
1685 thread_db.h, and linux/elf.h headrs.
1686 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
1687 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
1688 Check for -lthread_db and thread support.
1689 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
1690 PowerPC, and SuperH.
1691 * gdbserver/i387-fp.c: Constify arguments.
1692 * gdbserver/i387-fp.h: Likewise.
1693 * gdbserver/inferiors.c: (struct thread_info): Renamed from
1694 `struct inferior_info'. Remove PID member. Use generic inferior
1695 list header. All uses updated.
1696 (inferiors, signal_pid): Removed.
1697 (all_threads): New variable.
1698 (get_thread): Define.
1699 (add_inferior_to_list): New function.
1700 (for_each_inferior): New function.
1701 (change_inferior_id): New function.
1702 (add_inferior): Removed.
1703 (remove_inferior): New function.
1704 (add_thread): New function.
1705 (free_one_thread): New function.
1706 (remove_thread): New function.
1707 (clear_inferiors): Use for_each_inferior and free_one_thread.
1708 (find_inferior): New function.
1709 (find_inferior_id): New function.
1710 (inferior_target_data): Update argument type.
1711 (set_inferior_target_data): Likewise.
1712 (inferior_regcache_data): Likewise.
1713 (set_inferior_regcache_data): Likewise.
1714 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
1715 (all_processes, stopping_threads, using_thrads)
1716 (struct pending_signals, debug_threads, pid_of): New.
1717 (inferior_pid): Replace with macro.
1718 (struct inferior_linux_data): Remove.
1719 (get_stop_pc, add_process): New functions.
1720 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1721 Use add_process and add_thread.
1722 (linux_attach_lwp): New function, based on old linux_attach. Use
1723 add_process and add_thread. Set stop_expected for new threads.
1724 (linux_attach): New function.
1725 (linux_kill_one_process): New function.
1726 (linux_kill): Kill all LWPs.
1727 (linux_thread_alive): Use find_inferior_id.
1728 (check_removed_breakpoints, status_pending_p): New functions.
1729 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1730 Update. Use WNOHANG. Wait for cloned processes also. Update process
1731 struct for the found process.
1732 (linux_wait_for_event): New function.
1733 (linux_wait): Use it. Support LWPs.
1734 (send_sigstop, wait_for_sigstop, stop_all_processes)
1735 (linux_resume_one_process, linux_continue_one_process): New functions.
1736 (linux_resume): Support LWPs.
1737 (REGISTER_RAW_SIZE): Remove.
1738 (fetch_register): Use register_size instead. Call supply_register.
1739 (usr_store_inferior_registers): Likewise. Call collect_register.
1741 (regsets_fetch_inferior_registers): Improve error message.
1742 (regsets_store_inferior_registers): Add debugging.
1743 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1744 (unstopped_p, linux_signal_pid): New functions.
1745 (linux_target_ops): Add linux_signal_pid.
1746 (linux_init_signals): New function.
1747 (initialize_low): Call it. Initialize using_threads.
1748 * gdbserver/regcache.c (inferior_regcache_data): Add valid
1750 (get_regcache): Fetch registers lazily. Add fetch argument
1751 and update all callers.
1752 (regcache_invalidate_one, regcache_invalidate): New
1754 (new_register_cache): Renamed from create_register_cache.
1755 Return the new regcache.
1756 (free_register_cache): Change argument to a void *.
1757 (registers_to_string, registers_from_string): Call get_regcache
1758 with fetch flag set.
1759 (register_data): Make static. Pass fetch flag to get_regcache.
1760 (supply_register): Call get_regcache with fetch flag clear.
1761 (collect_register): Call get_regcache with fetch flag set.
1762 (collect_register_as_string): New function.
1763 * gdbserver/regcache.h: Update.
1764 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
1766 Handle input interrupts while waiting for an ACK.
1767 (input_interrupt): Use signal_pid method.
1768 (getpkt): Flush after debug output and use stderr.
1769 (outreg): Use collect_register_as_string.
1770 (new_thread_notify, dead_thread_notify): New functions.
1771 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1773 (look_up_one_symbol): Flush after debug output.
1774 * gdbserver/server.c (step_thread, server_waiting): New variables.
1775 (start_inferior): Don't use signal_pid. Update call to mywait.
1776 (attach_inferior): Update call to mywait.
1777 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1778 (main): Don't fetch/store registers explicitly. Use
1779 set_desired_inferior. Support proposed ``Hs'' packet. Update
1781 * gdbserver/server.h: Update.
1782 (struct inferior_list, struct_inferior_list_entry): New.
1783 * gdbserver/target.c (set_desired_inferior): New.
1784 (write_inferior_memory): Constify.
1785 (mywait): New function.
1786 * gdbserver/target.h: Update.
1787 (struct target_ops): New signal_pid method.
1788 (mywait): Removed macro, added prototype.
1790 * gdbserver/linux-low.h (regset_func): Removed.
1791 (regset_fill_func, regset_store_func): New.
1792 (enum regset_type): New.
1793 (struct regset_info): Add type field. Use new operation types.
1794 (struct linux_target_ops): stop_pc renamed to get_pc.
1795 Add decr_pc_after_break and breakpoint_at.
1796 (get_process, get_thread_proess, get_process_thread)
1797 (strut process_info, all_processes, linux_attach_lwp)
1798 (thread_db_init): New.
1800 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
1801 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1802 (the_low_target): Add new members.
1803 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1804 (i386_store_fpxregset): Constify.
1805 (target_regsets): Add new kind identifier.
1806 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1807 (i386_set_pc): Add debugging.
1808 (i386_breakpoint_at): New function.
1809 (the_low_target): Add new members.
1810 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
1811 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1812 (mips_breakpoint_at): New.
1813 (the_low_target): Add new members.
1814 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1815 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1816 (the_low_target): Add new members.
1817 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
1818 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1819 (the_low_target): Add new members.
1820 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
1823 2002-06-11 Michal Ludvig <mludvig@suse.cz>
1825 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
1826 (unwind_tmp_obstack_free, parse_frame_info)
1827 (update_context, cfi_read_fp, cfi_write_fp)
1828 (cfi_frame_chain, cfi_init_extra_frame_info)
1829 (cfi_virtual_frame_pointer): Use the above function.
1830 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
1832 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
1834 * v850-tdep.c (v850_type_is_scalar): New function.
1835 (v850_use_struct_convention): Match current gcc implementation
1836 as close as possible.
1837 (v850_push_arguments): Fix stack_offset handling. Don't write
1838 struct_addr into register. This is done by v850_store_struct_return.
1839 (v850_extract_return_value): Care for structs.
1840 (v850_store_return_value): Ditto.
1841 (v850_store_struct_return): Actually write address.
1843 2002-06-11 Michal Ludvig <mludvig@suse.cz>
1845 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
1846 without debug information too.
1848 2002-06-10 Andrew Cagney <ac131313@redhat.com>
1850 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
1851 Make multi-arch pure.
1852 * gdbarch.h, gdbarch.c: Re-generate.
1853 * arm-tdep.c (arm_print_float_info): Update.
1854 * arch-utils.h (default_print_float_info): Update.
1855 * arch-utils.c (default_print_float_info): Update.
1856 * infcmd.c (float_info): Update call.
1858 2002-06-10 Andrew Cagney <ac131313@redhat.com>
1860 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
1861 the front of the initialize list.
1863 2002-06-10 Andrew Cagney <ac131313@redhat.com>
1865 * infrun.c (struct inferior_status): Replace fields
1866 selected_frame_address and selected_level with field
1868 (save_inferior_status): Update. Use get_frame_id.
1869 (struct restore_selected_frame_args): Delete.
1870 (restore_selected_frame): Update. Use frame_find_by_id.
1871 (restore_inferior_status): Update.
1873 * breakpoint.h (struct breakpoint): Change type of
1874 watchpoint_frame to frame_id.
1875 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
1876 call to get_current_frame.
1877 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
1879 (watchpoint_check): Use frame_find_by_id.
1881 * frame.h (record_selected_frame): Delete declaration.
1882 * stack.c (record_selected_frame): Delete function.
1884 * frame.h (struct frame_id): Define.
1885 (get_frame_id): Declare.
1886 (frame_find_by_id): Declare.
1887 * frame.c (frame_find_by_id): New function.
1888 (get_frame_id): New function.
1890 2002-06-10 Andrey Volkov <avolkov@transas.com>
1892 * ser-e7kpc.c: Fix duplicated define and call of
1893 _initialize_ser_e7000pc
1895 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
1897 * signals/signals.c (target_signal_from_host): Fix #ifdef
1899 (do_target_signal_to_host): Likewise.
1901 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
1903 * mips-tdep.c (mips_find_abi_section): New function.
1904 (mips_gdbarch_init): Call it.
1906 2002-06-09 Mark Kettenis <kettenis@gnu.org>
1908 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
1909 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
1910 after Andrew's 2002-06-08 gdbarch change.
1912 2002-06-09 Mark Kettenis <kettenis@gnu.org>
1914 * i386-linux-nat.c (suppy_gregset): Don't supply
1915 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
1917 (fill_gregset): Don't fetch it under the same circumstances.
1919 2002-06-09 Andrew Cagney <cagney@redhat.com>
1921 * Makefile.in (callback_h): Define.
1922 (remote_sim_h): Update path to remote-sim.h.
1923 (remote-rdp.o): Add $(callback_h).
1924 (remote-sim.o): Use $(callback_h).
1925 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
1926 * remote-rdp.c: Include "gdb/callback.h".
1928 2002-06-09 Mark Kettenis <kettenis@gnu.org>
1930 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
1931 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
1933 2002-06-08 Andrew Cagney <ac131313@redhat.com>
1935 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
1936 * rdi-share/serpardr.c: Ditto.
1937 * rdi-share/unixcomm.c: Ditto.
1938 * rdi-share/serdrv.c: Ditto.
1939 * rdi-share/hostchan.h: Ditto.
1940 * rdi-share/hostchan.c: Ditto.
1941 * rdi-share/host.h: Ditto.
1942 * rdi-share/devsw.c: Ditto.
1944 * objfiles.h: Change type of obj_private to void pointer.
1945 * pa64solib.c: Update copyright. Don't include "assert.h", use
1946 strcmp instead of STREQ, use LONGEST, do not use PTR
1947 * somsolib.c: Ditto.
1949 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
1950 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
1951 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
1953 2002-06-08 Andrew Cagney <ac131313@redhat.com>
1955 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
1956 (default_get_saved_register): Delete function.
1957 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
1958 generic_unwind_get_saved_register.
1959 * gdbarch.h, gdbarch.c: Re-generate.
1961 2002-06-08 Andrew Cagney <ac131313@redhat.com>
1963 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
1964 generic_func_frame_chain_valid.
1965 * gdbarch.h, gdbarch.c: Re-generate.
1966 * blockframe.c (generic_func_frame_chain_valid): Only check
1967 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
1968 passing FP to PC_IN_CALL_DUMMY.
1971 2002-06-08 Andrew Cagney <ac131313@redhat.com>
1973 * gdbarch.sh (struct gdbarch_data): Add field init_p.
1974 (register_gdbarch_data): Initialize init_p.
1975 (gdbarch_data): Initialize data pointer using the init function.
1976 (init_gdbarch_data): Delete function.
1977 (gdbarch_update_p): Update.
1978 (initialize_non_multiarch): Update.
1979 (struct gdbarch): Add field initialized_p.
1980 * gdbarch.h, gdbarch.c: Re-generate.
1982 2002-06-07 Michal Ludvig <mludvig@suse.cz>
1984 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
1985 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
1986 better do the things actually here.
1987 * x86-64-tdep.c (x86_64_register_name2nr): New.
1988 (x86_64_register_name): Renamed to x86_64_register_nr2name.
1989 (x86_64_gdbarch_init): Respect the above change.
1990 * x86-64-tdep.h (x86_64_register_name2nr)
1991 (x86_64_register_nr2name): Add prototypes.
1992 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
1994 2002-06-06 Michael Snyder <msnyder@redhat.com>
1996 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
1997 Delete extra braces and re-indent.
1998 (d10v_store_return_value): Char return values
1999 must be shifted over by one byte in R0.
2000 (d10v_extract_return_value): Delete extra braces, re-indent.
2002 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2004 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
2005 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
2006 (d10v_integer_to_address): Rewrite.
2007 (d10v_frame_init_saved_regs): When reading fp and sp registers use
2008 the d10v specific functions which take care of converting to the
2011 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2013 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
2014 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
2016 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2018 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
2020 * config/tm-linux.h: Ditto.
2021 * config/alpha/tm-alphalinux.h: Ditto.
2022 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
2023 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
2024 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
2025 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
2026 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
2027 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
2028 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
2029 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
2030 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
2031 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
2032 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
2033 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2034 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
2035 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
2036 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
2037 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
2038 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
2039 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
2040 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
2041 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
2042 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
2043 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
2044 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
2045 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
2046 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
2047 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
2048 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
2049 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
2050 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
2051 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
2052 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
2053 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
2054 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
2055 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
2056 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
2057 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
2058 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
2060 2002-05-04 Aidan Skinner <aidan@velvet.net>
2062 * ada-exp.tab.c: New file
2063 * ada-exp.y: New file
2064 * ada-lang.c: New file
2065 * ada-lang.h: New file
2066 * ada-lex.c: New file
2067 * ada-lex.l: New file
2068 * ada-tasks.c: New file
2069 * ada-typeprint.c: New file
2070 * ada-valprint.c: New file
2072 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2074 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
2075 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
2077 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2079 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
2080 insetead of ppc-linux-tdep.o.
2081 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
2082 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
2084 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2086 2002-05-07 Christian Groessler <chris@groessler.org>
2087 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
2088 bit register contents for little endian hosts.
2090 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2092 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
2095 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2097 * gdbarch.h: Regenerate.
2099 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2101 * MAINTAINERS: Add everyone to write-after-approval list.
2103 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2105 * stack.c (frame_info): Use frame_register_unwind instead of
2106 saved_regs. Mention when the SP is on the stack or in a register.
2108 * frame.h (frame_register_unwind_ftype): Define. Document.
2109 (struct frame_info): Add field register_unwind and
2110 register_unwind_cache.
2111 (frame_register_unwind): Declare.
2112 (generic_unwind_get_saved_register): Declare.
2114 * frame.c (frame_register_unwind): New function.
2115 (generic_unwind_get_saved_register): New function.
2117 * blockframe.c (generic_call_dummy_register_unwind): New function.
2118 (frame_saved_regs_register_unwind): New function.
2119 (set_unwind_by_pc): New function.
2120 (create_new_frame): New function.
2121 (get_prev_frame): New function.
2123 2002-05-30 Andrew Cagney <ac131313@redhat.com>
2125 * a29k-share/: Delete directory.
2126 * remote-vx29k.c: Delete file.
2128 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2130 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
2131 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2133 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2135 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
2136 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2139 (sparcnbsd-tdep.o): New dependency lists.
2140 * NEWS: Note new UltraSPARC NetBSD native configuration.
2141 * configure.host (sparc64-*-netbsd*): New host.
2142 * configure.tgt (sparc-*-netbsdelf*)
2143 (sparc-*-netbsd*): Set gdb_target to nbsd.
2144 (sparc64-*-netbsd*): New target.
2145 * sparc64nbsd-nat.c: New file.
2146 * sparcnbsd-nat.c: New file.
2147 * sparcnbsd-tdep.c: New file.
2148 * sparcnbsd-tdep.h: New file.
2149 * config/sparc/nbsd.mt: New file.
2150 * config/sparc/nbsd64.mh: New file.
2151 * config/sparc/nbsd64.mt: New file.
2152 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
2153 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2155 * config/sparc/nbsdaout.mt: Remove.
2156 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
2157 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2159 * config/sparc/nbsdelf.mt: Remove.
2160 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
2161 sparc-nat.c compatiblity defines.
2162 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
2163 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
2164 * config/sparc/tm-nbsd64.h: New file.
2165 * config/sparc/tm-nbsdaout.h: Remove.
2166 * config/sparc/xm-nbsd.h: Remove.
2168 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2170 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
2171 * sparc-tdep.c: Include osabi.h.
2172 (gdbarch_tdep): Add osabi member.
2173 (_initialize_sparc_tdep): Use gdbarch_register.
2174 (sparc_gdbarch_init): Use generic OS ABI framework.
2175 (sparc_dump_tdep): New function.
2177 2002-05-30 Kevin Buettner <kevinb@redhat.com>
2179 * corefile.c (do_captured_read_memory_integer): Return non-zero
2181 (safe_read_memory_integer): Copy result of memory read when
2182 status is non-zero. Also, add comments.
2184 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
2186 * Makefile.in (ppc_tdep_h): Define.
2189 (rs6000-tdep.o): Use $(ppc_tdep_h).
2192 (ppcnbsd-tdep.o): New dependency lists.
2193 * ppc-tdep.h: Use generic OS ABI framework.
2194 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
2195 (ppc_linux_init_abi): New functions.
2196 (ppc_sysv_abi_broken_use_struct_convention)
2197 (ppc_sysv_abi_use_struct_convention)
2198 (ppc_sysv_abi_push_arguments): Move to...
2199 * ppc-sysv-tdep.c: ...here.
2200 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
2201 * rs6000-tdep.c (process_note_abi_tag_sections)
2202 (get_elfosabi): Remove.
2203 (rs6000_gdbarch_init): Use generic OS ABI framework.
2204 (rs6000_dump_tdep): New function.
2205 (_initialize_rs6000_tdep): Use gdbarch_register.
2206 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
2207 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2208 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
2209 of ppc-linux-tdep.o.
2210 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
2211 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
2212 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
2213 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
2214 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
2215 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
2217 2002-05-29 Jim Blandy <jimb@redhat.com>
2219 * macroscope.c (default_macro_scope): Put `void' in empty argument
2222 2002-05-29 Andrew Cagney <ac131313@redhat.com>
2224 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
2225 * arch-utils.c: Include "sim-regno.h".
2226 * gdbarch.sh: Don't include "sim-regno.h".
2227 * gdbarch.h, gdbarch.c: Regenerate.
2228 * sim-regno.h (legacy_register_sim_regno): Move declaration from
2230 * arch-utils.h (legacy_register_sim_regno): To here.
2231 * remote-sim.c (legacy_register_sim_regno): Move function from
2233 * arch-utils.c (legacy_register_sim_regno): To here.
2235 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2237 * sim-regno.h: New file.
2238 * Makefile.in (sim_regno_h): Define.
2239 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
2240 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
2241 (legacy_register_sim_regno): New function.
2242 (one2one_register_sim_regno): New function.
2243 (gdbsim_fetch_register): Rewrite.
2244 (gdbsim_store_register): Only store a register when
2245 REGISTER_SIM_REGNO is valid.
2246 * d10v-tdep.c: Include "sim-regno.h".
2247 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
2248 (d10v_ts3_register_sim_regno): Ditto.
2249 * gdbarch.sh: Include "sim-regno.h".
2250 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
2251 * gdbarch.h, gdbarch.c: Regenerate.
2252 * arch-utils.h (default_register_sim_regno): Delete declaration.
2253 * arch-utils.c (default_register_sim_regno): Delete function.
2255 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2257 * ppcnbsd-nat.c: Rewrite.
2258 * ppcnbsd-tdep.c: New file.
2259 * ppcnbsd-tdep.h: New file.
2260 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
2261 solib.o, and solib-svr4.o.
2262 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
2263 nbsd-tdep.o, and corelow.o.
2265 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2267 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
2268 `tr' and `sed'. Mention that `broken' targets are not expected to
2271 2002-05-27 Michal Ludvig <mludvig@suse.cz>
2273 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
2274 Let PC point right after the prologue before looking up symbols.
2276 2002-05-27 Martin M. Hunt <hunt@redhat.com>
2278 * i386-tdep.c (i386_register_virtual_type): Return
2279 builtin_type_vec128i for SSE registers.
2281 * gdbtypes.h (builtin_type_vec128i): Declare.
2283 * gdbtypes.c (build_builtin_type_vec128i): New function.
2284 (builtin_type_v2_double, builtin_type_v4_int64): New types.
2285 (builtin_type_vec128i): New type for SSE2 128-bit registers.
2286 (build_gdbtypes): Initialize new builtin vector types.
2287 (_initialize_gdbtypes): Register new vector types with gdbarch.
2289 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2291 * MAINTAINERS: ns32k is not longer an obsolete candidate,
2292 since it has been multi-arch'd.
2293 * NEWS: Note that ns32k-*-* is now partial multi-arch.
2294 Move Alpha and VAX multi-arch news entries to same section
2295 as other multi-arch news.
2297 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2299 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
2300 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
2301 static. Rename some register numbers to put them in ns32k-tdep
2303 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
2304 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
2306 (_initialize_ns32k_tdep): Use gdbarch_register.
2307 * ns32k-tdep.h: New file.
2308 * ns32knbsd-tdep.c: New file.
2309 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
2310 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
2311 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
2312 REGISTER_BYTES, REGISTER_BYTE): Remove.
2313 * config/ns32k/tm-ns32k.h: New file.
2314 * config/ns32k/tm-umax.h: Remove.
2316 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2318 * ns32k-tdep.c (ns32k_saved_pc_after_call,
2319 ns32k_store_struct_return, ns32k_extract_return_value,
2320 ns32k_store_return_value, ns32k_extract_struct_value_address): New
2322 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
2323 ns32k_saved_pc_after_call.
2324 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
2325 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
2326 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
2327 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
2328 ns32k_extract_struct_value_address.
2330 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2332 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
2333 ns32k_fix_call_dummy): New.
2334 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
2335 ns32k_call_dummy_words.
2336 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
2337 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
2338 CALL_DUMMY_NARGS): Remove.
2339 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
2341 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2343 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
2344 ns32k_frame_saved_pc, ns32k_frame_args_address,
2345 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
2346 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
2347 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
2348 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
2349 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
2350 (BREAKPOINT): Remove..
2351 (FRAME_CHAIN): Define as ns32k_frame_chain.
2352 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
2353 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
2354 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
2355 (FRAME_FIND_SAVED_REGS): Remove.
2356 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
2357 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
2358 (POP_FRAME): Define as ns32k_pop_frame.
2360 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2362 * ns32k-tdep.c (ns32k_register_byte_32082,
2363 ns32k_register_byte_32382, ns32k_register_raw_size,
2364 ns32k_register_virtual_size, ns32k_register_virtual_type): New
2366 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
2367 ns32k_register_byte_32382.
2368 * config/ns32k/tm-umax.h: Update copyright years.
2369 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
2370 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
2371 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
2372 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
2373 (ns32k_get_enter_addr): Fix prototype.
2375 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2377 * ns32k-tdep.c: Update copyright years.
2378 (ns32k_register_name_32082): New function.
2379 (ns32k_register_name_32382): Ditto.
2380 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
2381 (REGISTER_NAME): Define as ns32k_register_name_32382.
2382 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
2383 (REGISTER_NAME): Define as ns32k_register_name_32082.
2385 2002-05-24 Jim Blandy <jimb@redhat.com>
2387 * dwarf2read.c (free_line_header): Use xfree, not free.
2389 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
2391 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
2392 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
2394 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2396 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
2398 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2400 From Ross Alexander at NEC Europe:
2401 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
2403 2002-05-23 Michael Snyder <msnyder@redhat.com>
2405 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
2406 for input, rather than parse_and_eval_address.
2408 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2410 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
2411 * Makefile.in (sim_d10v_h): Update definition.
2413 2002-05-24 Andrew Cagney <cagney@redhat.com>
2415 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
2416 change `2002-05-22 Michael Snyder' below.
2417 (d10v_push_arguments): Ditto.
2418 (d10v_extract_return_value): Ditto.
2420 2002-05-23 Jim Blandy <jimb@redhat.com>
2422 * macrotab.c (check_for_redefinition): Don't complain if the new
2423 definition is the same as the previous one. Take more arguments
2424 to allow the comparison.
2425 (macro_define_object, macro_define_function): Pass more arguments
2426 to check_for_redefinition.
2428 2002-05-22 Michael Snyder <msnyder@redhat.com>
2430 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
2431 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
2432 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
2433 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
2434 Don't bail if return_pc is PC_IN_CALL_DUMMY.
2435 Add a temp variable to save a call (and a memory read).
2436 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
2437 if possible (so that PC_IN_CALL_DUMMY will work).
2439 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
2441 * MAINTAINERS: Remove status `OBSOLETE' from v850.
2443 2002-05-22 Michal Ludvig <mludvig@suse.cz>
2445 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
2447 (dwarf2_build_frame_info): Corrected handling of eh_frame.
2448 (dwarf2_build_frame_info): Add offset to fde->initial_location
2449 so that frames of shared libraries are mapped correctly.
2450 (execute_stack_op): Change type of 'result' from ULONGEST to
2453 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2455 * config/alpha/tm-nbsd.h: Include solib.h.
2457 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2459 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
2460 assumptions about the host's byte order.
2462 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2464 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
2466 * alphanbsd-tdep.c: Include solib-svr4.h.
2467 * shnbsd-tdep.c: Ditto.
2469 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2471 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
2472 nbsd-tdep.h to dependency list.
2473 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
2474 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
2475 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
2476 nbsdaout.mh and nbsdelf.mh consistently.
2477 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
2478 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
2479 nbsdaout.mt and nbsdelf.mh consistently.
2480 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
2481 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
2482 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2483 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
2484 a.out shared library stuff from here...
2485 * config/nm-nbsdaout.h: ...to here.
2486 * config/tm-nbsd.h: Remove.
2487 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
2488 * config/arm/nbsd.mh: Remove.
2489 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
2491 * config/arm/nbsdaout.mh: New file.
2492 * config/arm/nbsdelf.mh: New file.
2493 * config/arm/nm-nbsdaout.h: New file.
2494 * config/i386/nbsd.mh: Remove.
2495 * config/i386/nbsd.mt: Remove.
2496 * config/i386/nbsdaout.mh: New file.
2497 * config/i386/nbsdaout.mt: New file.
2498 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2499 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
2500 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
2501 i386_register_u_addr): Remove.
2502 * config/i386/nm-nbsdaout.h: New file.
2503 * config/i386/nm-nbsdelf.h: Remove.
2504 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
2505 (USE_STRUCT_CONVENTION): Remove.
2506 * config/i386/tm-nbsdaout.h: New file.
2507 * config/i386/tm-nbsdelf.h: Remove.
2508 * config/m68k/nbsd.mh: Remove.
2509 * config/m68k/nbsd.mt: Remove.
2510 * config/m68k/nbsdaout.mh: New file.
2511 * config/m68k/nbsdaout.mt: New file.
2512 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
2513 * config/m68k/nm-nbsdaout.h: New file.
2514 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2515 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2516 * config/ns32k/nbsd.mh: Remove.
2517 * config/ns32k/nbsd.mt: Remove.
2518 * config/ns32k/nbsdaout.mh: New file.
2519 * config/ns32k/nbsdaout.mt: New file.
2520 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
2521 * config/ns32k/nm-nbsdaout.h: New file.
2522 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2523 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2524 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
2525 (SVR4_SHARED_LIBS): Remove.
2526 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
2527 * config/sparc/nbsd.mh: Remove.
2528 * config/sparc/nbsd.mt: Remove.
2529 * config/sparc/nbsdaout.mh: New file.
2530 * config/sparc/nbsdaout.mt: New file.
2531 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2532 * config/sparc/nbsdelf.mt: New file.
2533 * config/sparc/nm-nbsdaout.h: New file.
2534 * config/sparc/nm-nbsdelf.h: Remove.
2535 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
2536 * config/sparc/tm-nbsdaout.h: New file.
2538 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2540 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
2542 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
2544 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2546 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
2548 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
2550 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2552 * NEWS: Note new MIPS NetBSD native configuration.
2553 * configure.host (mips*-*-netbsd*): New host.
2554 * configure.tgt (mips*-*-netbsd*): New target.
2555 * mipsnbsd-nat.c: New file.
2556 * mipsnbsd-tdep.c: New file.
2557 * mipsnbsd-tdep.h: New file.
2558 * config/mips/nbsd.mh: New file.
2559 * config/mips/nbsd.mt: New file.
2560 * config/mips/nm-nbsd.h: New file.
2561 * config/mips/tm-nbsd.h: New file.
2563 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2565 * Makefile.in (SFILES): Add osabi.c.
2566 (COMMON_OBS): Add osabi.o.
2567 (osabi.o): New dependency list.
2568 * osabi.c: New file.
2569 * osabi.h: New file.
2570 * doc/gdbint.texinfo: Document new generic OS ABI framework.
2572 * Makefile.in (alpha_tdep_h): Define and use instead of
2574 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
2575 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
2577 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
2578 * alpha-tdep.h: Include osabi.h.
2579 (alpha_abi): Remove.
2580 (gdbarch_tdep): Use generic OS ABI framework.
2581 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
2582 gdbarch_register_osabi.
2583 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
2584 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
2585 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
2587 * Makefile.in (sh_tdep_h): Add osabi.h.
2588 * sh-tdep.h (sh_osabi): Remove.
2589 (gdbarch_tdep): Use generic OS ABI framework.
2590 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
2591 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
2592 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
2593 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
2595 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
2596 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
2597 gdbarch_register_osabi.
2598 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
2599 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
2600 (get_elfosabi): Rename to...
2601 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
2602 ABI framework support routines.
2603 (arm_gdbarch_init): Use generic OS ABI framework.
2604 (arm_dump_tdep): Likewise.
2605 (_initialize_arm_tdep): Likewise.
2606 * arm-tdep.h: Include osabi.h.
2608 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
2610 (arm_gdbarch_register_os_abi): Remove prototype.
2611 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
2612 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
2614 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
2615 * mips-tdep.c: Include osabi.h.
2616 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
2619 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
2621 * h8300-tdep.c: Fix formatting.
2623 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
2625 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
2626 printing vector registers.
2628 2002-05-19 Andrew Cagney <ac131313@redhat.com>
2630 From Fernando Nasser:
2631 * remote.c (remote_async_open_1): Re-throw the exception when the
2633 (remote_cisco_open): Ditto.
2634 (remote_open_1): Ditto.
2636 2002-05-19 Andrew Cagney <ac131313@redhat.com>
2638 * remote.c (remote_start_remote_dummy): Add uiout parameter.
2639 (remote_start_remote): Add uiout parameter. Pass through to
2640 remote_start_remote_dummy.
2641 (remote_open_1): Use catch_exception instead of catch_errors.
2642 (remote_async_open_1): Ditto.
2643 (remote_cisco_open): Ditto.
2645 2002-05-19 Andrew Cagney <ac131313@redhat.com>
2647 * remote.c (remote_start_remote): Replace PTR with void pointer.
2648 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
2651 2002-05-18 Andrew Cagney <ac131313@redhat.com>
2653 * gdb_indent.sh: Allow the script to be run in the sim directory.
2655 2002-05-18 Mark Kettenis <kettenis@gnu.org>
2657 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
2658 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
2660 * corelow.c (core_open): Only call set_gdbarch_from_file if
2663 2002-05-17 Andrey Volkov <avolkov@transas.com>
2665 * h8300-tdep.c: Add support of EXR register
2666 * config/h8300/tm-h8300.h: Ditto.
2668 2002-05-17 Andrey Volkov <avolkov@transas.com>
2670 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
2672 2002-05-17 Andrey Volkov <avolkov@transas.com>
2674 * h8300-tdep.c: Change literal regnums to REGNO.
2676 2002-05-17 Jim Blandy <jimb@redhat.com>
2678 * NEWS: Note addition of macro support.
2680 Expand preprocessor macros in C expressions.
2681 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
2682 (scan_macro_expansion, scanning_macro_expansion,
2683 finished_macro_expansion): New function declarations.
2684 (expression_macro_lookup_func, expression_macro_lookup_baton): New
2685 variable declarations.
2686 * parser-defs.h (expression_context_pc): New declaration.
2687 * parse.c (expression_context_pc): New variable.
2688 (parse_exp_1): Set expression_context_pc, as well as
2689 expression_context_block.
2690 * c-exp.y (yylex): If we're not already reading the result of a
2691 macro expansion, try to macro-expand the next token. When we're
2692 done scanning a macro expansion, switch back to the mainline text.
2693 Commas and `if's in a macro's expansion don't terminate the input.
2694 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
2695 (macro_original_text, macro_expanded_text,
2696 expression_macro_lookup_func, expression_macro_lookup_baton): New
2698 (scan_macro_expansion, scanning_macro_expansion,
2699 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
2700 c_preprocess_and_parse): New functions.
2701 (c_language_defn, cplus_language_defn, asm_language_defn): Call
2702 c_preprocess_and_parse, instead of c_parse.
2703 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
2704 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
2706 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
2708 * sh-tdep.c (gdb_print_insn_sh64): Delete.
2709 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
2710 (sh_gdbarch_init): Always use gdb_print_insn_sh.
2712 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
2714 * NEWS: Add section for multi-arched targets. Add v850 to that section.
2716 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2718 * Makefile.in (sh_tdep_h): Define and use.
2719 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
2720 register enum): Move to...
2721 * * sh-tdep.h: ...here.
2722 * sh-tdep.c: Include sh-tdep.h.
2723 * sh3-rom.c: Likewise.
2724 * shnbsd-tdep.c: Likewise.
2726 2002-05-16 Michael Snyder <msnyder@redhat.com>
2728 * arm-tdep.c: Spelling fix in comment.
2730 2002-05-16 Jim Blandy <jimb@redhat.com>
2732 Add commands for manually expanding macros and showing their
2734 * macrocmd.c, macroscope.c, macroscope.h: New files.
2735 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
2736 (macroscope_h): New variable.
2737 (HFILES_NO_SRCDIR): Add macroscope.h.
2738 (COMMON_OBS): Add macrocmd.o, macroscope.o.
2739 (macroscope.o, macrocmd.o): New rules.
2741 Teach the Dwarf 2 reader to read macro information.
2742 * dwarf2read.c: #include "macrotab.h".
2743 (dwarf_macinfo_buffer): New variable.
2744 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
2746 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
2747 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
2748 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
2749 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
2750 dwarf2_macro_spaces_in_definition): New complaints.
2751 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
2752 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
2753 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
2754 the partial symbol table.
2755 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
2756 from what's recorded in the partial symbol table.
2757 (read_file_scope): If the compilation unit has a
2758 `DW_AT_macro_info' attribute, read its macro information.
2759 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
2761 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
2764 * ser-tcp.c: Don't include <netinet/udp.h>.
2766 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
2768 * MAINTAINERS: Update my email address.
2770 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
2772 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
2773 include file of the same name.
2775 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2777 * configure.tgt: Mark v850 as multi-arched.
2778 * config/v850/tm-v850.h: Remove file.
2779 * config/v850/v850.mt: Eliminate TM_FILE.
2781 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2783 * v850-tdep.c: Full multi-arch.
2784 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
2785 Define GDB_MULTI_ARCH to 2.
2787 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
2789 * p-exp.y (current_type): New static variable.
2790 Carries the type of the expression at the position that is parsed.
2791 (push_current_type, pop_current_type): Two new functions. Used
2792 to store/restore current_type in expression on specific tokens.
2793 (search_field): New static variable. Set to one after parsing a point
2794 as at that point only a FIELDNAME token should be searched.
2795 (FIELDNAME): New token. After a point only a token belonging to
2796 current_type type definition is allowed.
2797 (all over token rules): reset and change current_type according
2799 (exp '[' rule): insert implicit array index field if
2800 exp is a pascal string type.
2802 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2804 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
2805 frame info. Use frame_info's saved_regs instead of matching member
2806 in extra_frame_info throughout.
2807 (v850_frame_init_saved_regs): New function.
2808 (v850_init_extra_frame_info): Move most functionality into
2809 v850_frame_init_saved_regs().
2810 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
2811 (v850_frame_find_saved_regs): Remove declaration.
2812 (FRAME_FIND_SAVED_REGS): Remove definition.
2813 (v850_frame_init_saved_regs): Add declaration.
2814 (FRAME_INIT_SAVED_REGS): Add definition.
2816 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2818 * v850-tdep.c: Begin multi-arch'ing v850.
2819 (v850_target_architecture_hook): Remove function.
2820 (v850_gdbarch_init): New function. Add code previously in
2821 v850_target_architecture_hook().
2822 (_initialize_v850_tdep): Don't set target_architecture_hook.
2823 Call register_gdbarch_init() instead.
2825 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
2827 * gdbtypes.h (struct cplus_struct_type): Remove args field.
2828 * hpread.c (hpread_read_struct_type): Remove assignments to args.
2829 (fixup_class_method_type): Likewise.
2831 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
2833 From Martin Pool <mbp@samba.org>:
2834 * gdbserver/server.c (gdbserver_usage): New function.
2837 2002-05-15 Jim Blandy <jimb@redhat.com>
2839 Add macro structures to GDB's symbol tables. Nobody puts anything
2841 * symtab.h (struct symtab): New member: `macro_table'.
2842 * buildsym.h (pending_macros): New global variable.
2843 * buildsym.c: #include "macrotab.h".
2844 (buildsym_init): Initialize `pending_macros'.
2845 (end_symtab): If we found macro information while reading a CU's
2846 debugging info, do build a symtab structure for it. Make the
2847 symtab point to the macro information, and clear the
2848 `pending_macros' pointer which held it while we were reading the
2850 (really_free_pendings): Free any pending macro table.
2851 * objfiles.h (struct objfile): New member: `macro_cache'.
2852 * objfiles.c (allocate_objfile): Set allocate and free functions
2853 for the macro cache's objstack.
2854 (free_objfile): Empty the macro cache's obstack.
2855 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
2856 set new allocate and free functions for it.
2857 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
2858 free functions for the macro cache's objstack. (Why is this
2859 function building its own objfile?)
2860 * symmisc.c (print_objfile_statistics): Print statistics on the
2862 * Makefile.in: Note that buildsym.o depends on macrotab.h.
2864 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
2866 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
2867 (REGISTER_U_ADDR): Delete definition.
2868 (arm_register_u_addr): Delete declaration.
2870 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
2872 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
2873 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
2875 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
2877 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
2880 2002-05-14 Andrew Cagney <ac131313@redhat.com>
2882 * regcache.c (register_valid): Revise comments refering to "Not
2883 available" and "unavailable".
2884 * frame.c (frame_register_read): Ditto.
2885 * findvar.c (value_of_register): Ditto.
2887 2002-05-15 Andrew Cagney <cagney@redhat.com>
2889 * Makefile.in (remote_sim_h): Replace remote-sim_h.
2890 (remote-sim.o): Update dependencies.
2891 (d10v-tdep.o): Specify dependencies.
2892 (sim_d10v_h): Define.
2894 2002-05-14 Jim Blandy <jimb@redhat.com>
2896 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
2897 * macrotab.c (macro_lookup_inclusion, find_definition,
2898 new_macro_table): Same.
2900 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
2901 not `! strcmp ()'. This is a dubious improvement.
2902 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
2904 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
2905 although it's not necessary, to avoid a warning.
2907 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
2909 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
2910 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
2911 TYPE_INSTANCE_FLAGS.
2912 (struct main_type): New.
2913 (struct type): Move most members to struct main_type. Change
2914 cv_type and as_type to new type_chain member. Add instance_flags.
2915 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
2916 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
2917 (finish_cv_type): Remove prototype.
2918 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
2920 (alloc_type_instance): New function.
2921 (smash_type): New function.
2922 (make_pointer_type, make_reference_type, make_function_type)
2923 (smash_to_member_type, smash_to_method_type): Call smash_type.
2924 (make_qualified_type): New function.
2925 (make_type_with_address_space): Call make_qualified_type.
2926 (make_cv_type): Likewise.
2927 (finish_cv_type): Remove unnecessary function.
2928 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
2929 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
2930 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
2931 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
2932 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
2933 * hpread.c (hpread_read_struct_type): Likewise.
2934 * stabsread.c (read_struct_type): Likewise.
2936 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
2938 * configure.tgt: Add a catch all sh* target, for cases like
2939 sh[2,3,4]-elf and sh-hms.
2941 2002-05-14 Keith Seitz <keiths@redhat.com>
2943 * event-loop.c (create_file_handler): Don't do anything but
2944 update data when we are given a fd which we are already
2947 2002-05-14 Michal Ludvig <mludvig@suse.cz>
2949 * dwarf2cfi.c (context_cpy): Copy registers correctly.
2950 (update_context): Use __func__ in warnings.
2952 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
2954 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
2955 and tcp_close to net_open and net_close.
2956 (net_open): Accept "udp:" and "tcp:" specifications. Connect
2957 using UDP if requested. Don't try to disable Nagle on UDP
2959 * remote.c (remote_serial_open): New function. Warn about UDP.
2960 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
2962 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
2964 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
2966 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
2968 * configure.tgt: Remove sh-hms target.
2969 * MAINTAINERS: Don't list sh-hms as a separate target.
2971 2002-05-13 Jim Blandy <jimb@redhat.com>
2973 Add first preprocessor macro-expansion files.
2974 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
2975 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
2976 (splay_tree_h, macroexp_h, macrotab_h): New variable.
2977 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
2978 (COMMON_OBS): Add macrotab.o, macroexp.o.
2979 (macroexp.o, macrotab.o): New rules.
2981 2002-05-13 Andrew Cagney <ac131313@redhat.com>
2983 * config/m88k/tm-m88k.h: Update copyright.
2984 (m88k_target_write_pc): Declare
2985 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
2986 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
2987 (SHIFT_INST_REGS): Update definition.
2988 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
2989 using old definition of TARGET_WRITE_PC.
2990 * regcache.c (generic_target_write_pc): Delete code handling
2992 * gdbarch.sh (NNPC_REGNUM): Delete.
2993 * gdbarch.h, gdbarch.c: Regenerate.
2995 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
2997 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
3000 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
3002 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
3003 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
3004 (gen_address_of, gen_struct_ref, gen_repeat): Use type
3006 * c-typeprint.c (cp_type_print_method_args): Likewise.
3007 (c_type_print_args): Likewise.
3008 * d10v-tdep.c (d10v_push_arguments): Likewise.
3009 (d10v_extract_return_value): Likewise.
3010 * expprint.c (print_subexp): Likewise.
3011 * gdbtypes.c (lookup_primitive_typename): Likewise.
3012 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
3013 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
3014 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
3015 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
3016 (TYPE_VECTOR): Likewise.
3017 * hpread.c (hpread_read_struct_type)
3018 (fix_static_member_physnames, fixup_class_method_type)
3019 (hpread_type_lookup): Likewise.
3020 * mdebugread.c (parse_symbol, parse_type): Likewise.
3021 * p-lang.c (is_pascal_string_type): Likewise.
3022 * valops.c (hand_function_call): Likewise.
3023 * x86-64-tdep.c (classify_argument): Likewise.
3025 * hpread.c (hpread_read_function_type)
3026 (hpread_read_doc_function_type): Call replace_type.
3027 * dstread.c (create_new_type): Delete.
3028 (decode_dst_structure, process_dst_function): Call alloc_type.
3029 Use type access macros.
3031 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3033 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
3034 the're not supported by the current architecture.
3035 (i387_fill_fxsave): Likewise.
3037 2002-05-12 Fred Fish <fnf@redhat.com>
3039 * symfile.c (default_symfile_offsets): Arrange for uninitialized
3040 sect_index_xxx members to index the first slot in section_offsets
3041 if all of the section_offsets are zero.
3043 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3045 * configure.tgt (sparc-*openbsd): Remove entry accidentially
3046 checked in with last change.
3048 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3050 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
3051 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
3054 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
3056 * Makefile.in: Update dependencies.
3058 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3060 * language.c (local_hex_string_custom): Simplify. Do not depend
3061 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
3063 * memattr.c (mem_info_command): Replace calls to
3064 longest_local_hex_string and longest_local_hex_string_custom.
3065 * buildsym.c (make_blockvector): Ditto.
3066 * solib.c (info_sharedlibrary_command): Ditto.
3067 * tracepoint.c (tracepoints_info): Ditto.
3068 * symtab.c (print_msymbol_info): Ditto.
3070 * language.c (local_hex_string): Delete.
3071 (local_hex_string_custom): Delete.
3072 (longest_local_hex_string): Rename to local_hex_string.
3073 (longest_local_hex_string_custom): Rename to
3074 local_hex_string_custom.
3075 * language.h (local_hex_string): Change parameter type to LONGEST.
3076 (local_hex_string_custom): Ditto.
3077 (longest_local_hex_string): Delete declaration.
3078 (longest_local_hex_string_custom): Ditto.
3080 * solib.c: Update copyright.
3081 * memattr.c: Update copyright.
3083 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3085 * arch-utils.h (legacy_register_to_value): Declare.
3086 (legacy_value_to_register): Declare.
3087 (legacy_convert_register_p): Declare.
3088 * arch-utils.c (legacy_register_to_value): New function.
3089 (legacy_value_to_register): New function.
3090 (legacy_convert_register_p): New function.
3092 * gdbarch.sh (REGISTER_TO_VALUE): Define.
3093 (VALUE_TO_REGISTER): Define.
3094 (CONVERT_REGISTER_P): Define.
3095 * gdbarch.h, gdbarch.c: Regenerate.
3097 * valops.c (value_assign): Use CONVERT_REGISTER_P and
3099 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
3102 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
3103 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3105 * Makefile.in: Update dependencies for valops.c.
3106 * valops.c: Include "gdb_assert.h".
3107 (typecmp): Skip THIS parameter to methods.
3108 (find_method_list): Remove static_memfuncp argument,
3109 update callers. Check for stub methods.
3110 (find_value_oload_method_list): Don't set *static_memfuncp.
3111 (find_overload_match): Don't check for stub methods. Assert
3112 that methods are not stubbed. Handle static methods.
3113 (value_find_oload_method_list): Remove static_memfuncp argument.
3114 * gdbtypes.c (check_stub_method): Do not add THIS pointer
3115 to the argument list for static stub methods.
3116 * value.h (value_find_oload_method_list): Update prototype.
3118 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3120 * arch-utils.h (generic_register_size): Declare.
3121 (generic_register_raw_size, generic_register_virtual_size): Delete
3123 * arch-utils.c (generic_register_raw_size): Delete.
3124 (generic_register_size): New function.
3125 (generic_register_virtual_size): Delete.
3127 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
3128 default generic_register_size.
3129 * gdbarch.h, gdbarch.c: Re-generate.
3131 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
3132 register_virtual_size.
3133 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
3134 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3136 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3138 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
3139 * gdbarch.h, gdbarch.c: Regenerate.
3140 * gnu-v3-abi.c: Update copyright.
3141 (vtable_address_point_offset): Update.
3142 (gnuv3_rtti_type): Update.
3143 (gnuv3_baseclass_offset): Update.
3144 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
3145 (init_fetch_link_map_offsets): Update.
3146 * remote.c (get_remote_state): Update.
3148 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3150 * TODO: Remove value_headof/value_from_vtable_info comment.
3151 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
3152 * values.c (value_headof, value_from_vtable_info): Delete.
3153 * value.h (value_from_vtable_info): Delete prototype.
3155 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3157 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
3158 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
3160 (gdb_assert_h): Define.
3161 (gdb_wait_h): Define.
3162 (gdb_regex_h): Define.
3164 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3166 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3167 * linespec.c (find_methods): Handle GCC 3.x template constructors.
3169 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3171 * nbsd-tdep.c: Fix comment.
3173 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3175 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
3176 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
3177 (nbsd-tdep.o): New dependency list.
3178 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
3180 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
3181 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
3182 * nbsd-tdep.c: New file.
3183 * nbsd-tdep.h: New file.
3184 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
3186 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
3187 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3188 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3189 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3191 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3193 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
3194 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
3195 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
3196 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
3197 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
3198 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
3200 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3202 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
3203 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3204 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
3205 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
3206 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
3207 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
3208 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
3210 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3212 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
3213 fetch_elfcore_registers to...
3214 * i386nbsd-tdep.c: ...here.
3215 (i386nbsd_use_struct_convention): Rename to...
3216 (i386nbsd_aout_use_struct_convention): ...this.
3217 (i386nbsd_supply_reg): New function.
3218 (i386nbsd_fill_reg): New function.
3219 (fetch_core_registers): Use i386nbsd_supply_reg.
3220 (fetch_elfcore_registers): Likewise.
3221 (_initialize_i386nbsd_tdep): New function.
3222 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
3223 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3224 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
3225 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
3226 (i386nbsd_aout_use_struct_convention): ...this.
3228 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3230 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
3231 (store_inferior_registers): Use shnbsd_fill_reg.
3232 * shnbsd-tdep.c (sh_nbsd_supply_registers,
3233 sh_nbsd_supply_register): Collapse into...
3234 (shnbsd_supply_reg): ...this.
3235 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
3236 (shnbsd_fill_reg): ...this.
3237 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
3238 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
3239 (fetch_core_registers): Use shnbsd_supply_reg.
3240 (fetch_elfcore_registers): Use shnbsd_supply_reg.
3241 (sh_nbsd_core_fns): Rename to...
3242 (shnbsd_core_fns): ...this.
3243 (sh_nbsd_elfcore_fns): Rename to...
3244 (shnbsd_elfcore_fns): ...this.
3245 (sh_nbsd_init_abi): Rename to...
3246 (shnbsd_init_abi): ...this.
3247 (_initialize_sh_nbsd_tdep): Rename to...
3248 (_initialize_shnbsd_tdep): ...this.
3249 * shnbsd-tdep.h (sh_nbsd_supply_registers,
3250 sh_nbsd_supply_register, sh_nbsd_fill_registers,
3251 sh_nbsd_fill_register): Remove prototypes.
3252 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
3254 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3256 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
3257 (i387-nat.o): Delete dependency list.
3258 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
3259 (x86-64-linux-nat.o): Likewise.
3260 * i387-nat.c: Delete file, moving contents to...
3261 * i387-tdep.c: ...here.
3262 * i387-nat.h: Rename...
3263 * i387-tdep.h: ...to this.
3264 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
3265 * i386-linux-nat.c: Likewise.
3266 * i386bsd-nat.c: Likewise.
3267 * i386gnu-nat.c: Likewise.
3268 * i386nbsd-nat.c: Likewise.
3269 * i386v4-nat.c: Likewise.
3270 * x86-64-linux-nat.c: Likewise.
3271 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
3272 * config/i386/go32.mh (NATDEPFILES): Likewise.
3273 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
3274 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
3275 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
3276 * config/i386/linux.mh (NATDEPFILES): Likewise.
3277 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
3278 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3279 * config/i386/obsd.mh (NATDEPFILES): Likewise.
3280 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3282 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3284 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
3285 (alphanbsd-nat.o): Remove dependency list.
3286 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
3287 * alphanbsd-nat.c: Delete. Contents moved to...
3288 * alphanbsd-tdep.c: ...here.
3289 (_initialize_alphanbsd_tdep): Register core functions.
3290 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
3292 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3294 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
3295 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
3296 (alphanbsd-nat.o): Likewise.
3297 (alphabsd-tdep.o): New dependency list.
3298 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
3299 (fill_gregset): Use alphabsd_fill_reg.
3300 (supply_fpregset): Use alphabsd_supply_fpreg.
3301 (fill_fpregset): Use alphabsd_fill_fpreg.
3302 (fetch_inferior_registers): Use struct reg and struct fpreg
3303 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
3304 and alphabsd_supply_fpreg.
3305 (store_inferior_registers): Use struct reg and struct fpreg
3306 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
3307 and alphabsd_fill_fpreg.
3308 * alphabsd-tdep.c: New file.
3309 * alphabsd-tdep.h: New file.
3310 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
3311 (fetch_elfcore_registers): Use alphabsd_supply_reg and
3312 alphabsd_supply_fpreg.
3313 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
3314 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3316 2002-05-11 Eric Christopher <echristo@redhat.com>
3318 * mips-tdep.c (mips_double_register_type): Fix thinko.
3319 (mips_single_register_type): Ditto.
3320 * MAINTAINERS: Add self.
3322 2002-05-11 Mark Kettenis <kettenis@gnu.org>
3324 * i387-nat.c (i387_supply_register, i387_fill_fsave,
3325 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
3326 right thing on architectures with different endianness and/or
3329 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
3331 From Christian Limpach <chris@Pin.LU>
3332 * configure.in: Change sed expression which comments out
3333 NATDEPFILES to also comment out continuation lines.
3334 * configure: Regenerate.
3336 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3338 * sh-tdep.c: Clean up code erroneously reintroduced by previous
3341 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3343 * sh-tdep.c: Include correct file.
3345 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3347 New support for sh64-elf (sh5) target.
3349 * configure.tgt: For sh64-elf target, default to sh-elf.
3351 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
3352 (struct gdbarch_tdep): Add new fields for new registers and ABI
3355 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
3356 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
3357 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
3358 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
3359 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
3360 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
3361 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
3362 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
3363 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
3364 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
3365 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
3366 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
3367 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
3368 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
3369 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
3370 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
3371 sh64_get_gdb_regnum, sh64_media_reg_base_num,
3372 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
3373 sign_extend, sh64_nofp_frame_init_saved_regs,
3374 sh64_init_extra_frame_info, sh64_get_saved_register,
3375 sh64_extract_struct_value_address, sh64_pop_frame,
3376 sh64_push_arguments, sh64_extract_return_value,
3377 sh64_store_return_value, sh64_show_media_regs,
3378 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
3379 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
3380 sh_sh64_register_virtual_type,
3381 sh_sh64_register_convert_to_virtual,
3382 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
3383 sh64_register_read, sh64_pseudo_register_write,
3384 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
3385 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
3386 sh64_do_pseudo_register, sh_compact_do_registers_info,
3387 sh64_do_registers_info, sh_gdbarch_init): New functions.
3389 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3391 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
3393 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
3395 * linespec.c (decode_line_1): Check for a double quote after
3396 a filename correctly.
3398 2002-05-10 Jim Blandy <jimb@redhat.com>
3400 Properly track the size of the current objfile's .debug_line section.
3401 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
3402 (DWARF_LINE_SIZE): New macro.
3403 (dwarf2_build_psymtabs_hard): Record the line section's size in
3404 the partial symbol table.
3405 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
3408 2002-05-10 Petr Sorfa <petrs@caldera.com>
3410 * ia64-tdep.c: Handle breakpoints on L instruction type
3411 in MLX instruction bundle by moving the breakpoint to
3412 the third slot (X instruction type) as L holds only data.
3414 2002-05-10 Kevin Buettner <kevinb@redhat.com>
3416 * dbxread.c (discarding_local_symbols_complaint): New complaint.
3417 (process_one_symbol): Complain about discarding local symbols
3418 due to a misplaced N_LBRAC entry.
3420 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
3422 From Daniel Berlin <dan@cgsoftware.com>
3423 * linespec.c (find_toplevel_char): '<' and '>' also increase and
3424 decrease the depth we are at, in the case of templates.
3426 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
3428 * mips-tdep.c (mips_float_register_type): New function.
3429 (mips_double_register_type): New function.
3430 (mips_print_register): Use them.
3431 (do_fp_register_row): Likewise.
3433 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
3435 * signals/signals.c (signals): Remove conditional compilation around
3436 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
3437 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
3439 2002-05-09 Michael Snyder <msnyder@redhat.com>
3441 * remote-rdp.c (remote_rdp_can_run): Remove.
3443 2002-05-09 Tom Tromey <tromey@redhat.com>
3445 * jv-valprint.c (java_val_print): Handle `char' as a special case
3448 2002-05-09 Michael Snyder <msnyder@redhat.com>
3450 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
3451 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
3452 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
3453 str r(0123),[sp,#nn].
3454 (arm_skip_prologue): Ditto. Also make disassembly
3455 order-independent by placing it in a loop.
3457 2002-05-06 Michael Snyder <msnyder@redhat.com>
3459 * stabsread.c (read_type): Add recognition for new attribute:
3460 "@V;" means that an array type is actually a vector.
3461 This is analogous to the vector flag that's been added to dwarf2.
3463 2002-05-09 Mark Kettenis <kettenis@gnu.org>
3465 * i386-tdep.h (i386_abi): New enum.
3466 (struct gdbarch_tdep): Replace os_ident member with abi.
3467 (i386_gdbarch_register_os_abi): New prototype.
3468 * i386-tdep.c (i386_abi_names): New array.
3469 (process_note_abi_tag_sections): Removed.
3470 (process_note_sections): New function.
3471 (i386_elf_abi_from_note, i386_elf_abi): New functions.
3472 (struct i386_abi_handler): New struct.
3473 (i386_abi_handler_list): New variable.
3474 (i386_gdbarch_register_os_abi): New function.
3475 (i386_gdbarch_init): Adapt for the changes given above.
3477 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
3479 * gregset.h: Say "GNU/Linux".
3481 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
3483 * gdbtypes.c : Add new builtin type for 64 bit vectors.
3484 (build_gdbtypes): Build builtin_type_v2_float.
3485 (_initialize_gdbtypes): Register new builtin type.
3487 2002-05-08 Andrew Cagney <ac131313@redhat.com>
3489 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
3490 (clear_gdbarch_swap): New function.
3491 (initialize_non_multiarch): Call.
3492 (gdbarch_update_p): Before calling init(), swap out and clear the
3493 existing architecture.
3494 * gdbarch.c: Regenerate.
3496 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3498 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
3501 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3503 * sh-nbsd-nat.c: Rename to...
3504 * shnbsd-nat.c: ...this.
3505 * sh-nbsd-tdep.c: Rename to...
3506 * shnbsd-tdep.c: ...this.
3507 * sh-nbsd-tdep.h: Rename to...
3508 * shnbsd-tdep.h: ...this.
3509 * config/sh/nbsd.mh: Use shnbsd-nat.o.
3510 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
3512 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
3514 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
3515 concatenation for command help messages.
3517 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3519 * NEWS: Note new sh*-*-netbsdelf* configuration.
3520 * configure.host: Set gdb_host_cpu to sh for all sh*.
3521 (sh*-*-netbsdelf*): New host.
3522 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
3523 (sh*-*-netbsdelf*): New target.
3524 * sh-nbsd-nat.c: New file.
3525 * sh-nbsd-tdep.c: New file.
3526 * sh-nbsd-tdep.h: New file.
3527 * config/sh/nbsd.mh: New file.
3528 * config/sh/nbsd.mt: New file.
3529 * config/sh/nm-nbsd.h: New file.
3530 * config/sh/tm-nbsd.h: New file.
3532 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3534 * sh-tdep.c (sh_osabi_names): Declare.
3535 (process_note_abi_tag_sections): New function.
3536 (get_elfosabi): Ditto.
3537 (sh_gdbarch_register_os_abi): Ditto.
3538 (sh_dump_tdep): Ditto.
3539 _initialize_sh_tdep): Use gdbarch_register to register
3540 sh_gdbarch_init and sh_dump_tdep.
3541 * config/sh/tm-sh.h (sh_osabi): Declare.
3542 (gdbarch_tdep): Add sh_osabi and osabi_name members.
3544 2002-05-07 Andrew Cagney <ac131313@redhat.com>
3546 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
3547 (thumb_scan_prologue): Ditto.
3548 (arm_find_callers_reg): Ditto.
3549 (arm_frame_chain): Ditto.
3550 (arm_init_extra_frame_info): Ditto.
3551 (arm_frame_saved_pc): Ditto.
3552 (arm_pop_frame): Ditto.
3553 (arm_push_return_address): New function.
3554 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
3555 call_dummy_location, call_dummy_breakpoint_offset_p,
3556 call_dummy_breakpoint_offset, call_dummy_p,
3557 call_dummy_stack_adjust_p, call_dummy_words,
3558 sizeof_call_dummy_words, call_dummy_start_offset,
3559 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
3560 call_dummy_address, push_return_address and push_dummy_frame for
3561 generic dummy frames.
3563 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3565 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
3566 size computation for alloca.
3567 (sh_fp_frame_init_saved_regs): Likewise.
3569 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
3571 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
3572 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
3573 * arm-tdep.c (arm_store_return_value): Use them.
3574 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
3575 * remote-rdp.c (remote_rdp_fetch_register): Use
3576 ARM_MAX_REGISTER_RAW_SIZE.
3577 (remote_rdp_store_register): Likewise.
3579 2002-05-07 Michal Ludvig <mludvig@suse.cz>
3581 * dwarf2cfi.c: Code cleanup, removed unused variables,
3582 added default labels to switch {} statements.
3583 * x86-64-tdep.c: Ditto.
3584 * x86-64-linux-nat.c: Ditto.
3586 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3588 * solib.h: Protect against multiple inclusion.
3590 2002-05-06 Jim Blandy <jimb@redhat.com>
3592 Add first preprocessor macro-expansion files.
3593 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3594 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3595 (splay_tree_h, macroexp_h, macrotab_h): New variable.
3596 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3597 (COMMON_OBS): Add macrotab.o, macroexp.o.
3598 (macroexp.o, macrotab.o): New rules.
3600 Separate the job of reading the line number info statement program
3601 header (...expialidocious) out into its own function.
3602 * dwarf2read.c (struct line_head, struct filenames, struct
3603 directories): Replace with...
3604 (struct line_header): New structure, containing the full
3605 contents of the statement program header, including the
3606 include directory and file name tables.
3607 (read_file_scope): If we have line number info, instead of just
3608 calling dwarf_decode_lines to do all the work, call
3609 dwarf_decode_line_header first to get a `struct line_header'
3610 containing the data in the statement program header, and then
3611 pass that to dwarf_decode_lines, which will pick up where that
3612 left off. Be sure to clean up the `struct line_header' object.
3613 (dwarf_decode_line_header, free_line_header, add_include_dir,
3614 add_file_name): New functions.
3615 (dwarf_decode_lines): Move all the code to read the statement
3616 program header into dwarf_decode_line_header. Take the line
3617 header it built as the first argument, instead of the offset to
3618 the compilation unit's line number info. Use the new `struct
3619 line_header' type instead of the old structures. No need to do
3620 cleanups here now, since we don't allocate anything.
3621 (dwarf2_statement_list_fits_in_line_number_section,
3622 dwarf2_line_header_too_long): New complaints.
3624 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
3626 * gdbtypes.c (init_vector_type): New function.
3627 (build_builtin_type_vec128): Simplify the representation of SIMD
3629 (build_gdbtypes): Initialize new builtin vector types.
3630 (_initialize_gdbtypes): Register new vector types with gdbarch.
3631 (builtin_type_v4_float, builtin_type_v4_int32,
3632 builtin_type_v8_int16, builtin_type_v16_int8,
3633 builtin_type_v2_int32, builtin_type_v4_int16,
3634 builtin_type_v8_int8): New (renamed) SIMD types.
3636 2002-05-06 Mark Kettenis <kettenis@gnu.org>
3638 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
3639 (i387_fill_fxsave): Likewise.
3641 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
3643 * alpha-tdep.c (alpha_extract_return_value): Don't use
3644 non-constant array size in prototype.
3646 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3648 From Brian Taylor <briant at model dot com>:
3649 * ui-out.c (ui_out_field_core_addr): Use the function
3650 longest_local_hex_string_custom'to format addresses > 32 bits
3653 * ui-out.c (ui_out_field_core_addr): Update comment.
3655 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3657 * stack.c (select_and_print_frame): Make static. Delete the
3659 (func_command): Update call.
3660 (select_frame_command): Delete code computing the frame level.
3661 * frame.h (select_and_print_frame): Delete declaration.
3663 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3665 * sparc-tdep.c (sparc_get_saved_register): Comment why
3666 get_prev_frame call is safe.
3668 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3670 * frame.h (select_frame): Delete level parameter.
3671 * stack.c (select_frame): Update. Use frame_relative_level to
3672 obtain the frame's level.
3673 (select_and_print_frame): Update call.
3674 (select_frame_command): Ditto.
3675 (up_silently_base): Ditto.
3676 (down_silently_base): Ditto.
3677 * ocd.c (ocd_start_remote): Ditto.
3678 * remote-rdp.c (remote_rdp_open): Ditto.
3679 * remote-mips.c (mips_initialize): Ditto.
3680 (common_open): Ditto.
3681 * remote-e7000.c (e7000_start_remote): Ditto.
3682 * m3-nat.c (select_thread): Ditto.
3683 * hppa-tdep.c (child_get_current_exception_event): Ditto.
3684 (child_get_current_exception_event): Ditto.
3685 * varobj.c (varobj_create): Ditto.
3686 (varobj_update): Ditto.
3687 (c_value_of_root): Ditto.
3688 * tracepoint.c (finish_tfind_command): Ditto.
3689 * corelow.c (core_open): Ditto.
3690 * arch-utils.c (generic_prepare_to_proceed): Ditto.
3691 * thread.c (info_threads_command): Ditto.
3692 (switch_to_thread): Ditto.
3693 * infrun.c (normal_stop): Ditto.
3694 (restore_selected_frame): Ditto.
3695 (restore_inferior_status): Ditto.
3696 * breakpoint.c (insert_breakpoints): Ditto.
3697 (watchpoint_check): Ditto.
3698 (bpstat_stop_status): Ditto.
3699 (do_enable_breakpoint): Ditto.
3700 * blockframe.c (flush_cached_frames): Ditto.
3701 (reinit_frame_cache): Ditto.
3703 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3705 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
3708 2002-05-04 Jim Blandy <jimb@redhat.com>
3710 * gdbtypes.c (replace_type): Doc fix.
3712 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3714 * valprint.c (strcat_longest): Delete commented out function.
3717 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3719 * MAINTAINERS: Mark a29k as deleted.
3720 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
3721 Move new configurations to the top.
3722 * configure.tgt: Remove a29k.
3723 * config/a29k/tm-vx29k.h: Delete.
3724 * config/a29k/vx29k.mt: Delete.
3725 * config/a29k/tm-a29k.h: Delete.
3726 * config/a29k/a29k-udi.mt: Delete.
3727 * config/a29k/a29k.mt: Delete.
3728 * a29k-tdep.c: Delete.
3729 * remote-udi.c: Delete.
3730 * remote-mm.c: Delete.
3731 * remote-eb.c: Delete.
3732 * remote-adapt.c: Delete.
3733 * Makefile.in: Remove obsolete code.
3734 * gdbserver/Makefile.in: Ditto.
3735 * config/s390/s390x.mt: Ditto.
3736 * config/s390/s390.mt: Ditto.
3737 * config/sparc/sparclynx.mh: Ditto.
3738 * config/sparc/linux.mh: Ditto.
3739 * config/pa/hppaosf.mh: Ditto.
3740 * config/pa/hppabsd.mh: Ditto.
3741 * config/ns32k/nbsd.mt: Ditto.
3742 * config/mips/vr5000.mt: Ditto.
3743 * config/m68k/sun3os4.mh: Ditto.
3744 * config/m68k/nbsd.mt: Ditto.
3745 * config/m68k/m68klynx.mh: Ditto.
3746 * config/m32r/m32r.mt: Ditto.
3747 * config/i386/x86-64linux.mt: Ditto.
3748 * config/i386/nbsdelf.mt: Ditto.
3749 * config/i386/nbsd.mt: Ditto.
3750 * config/i386/i386lynx.mh: Ditto.
3752 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3754 * target.c (debug_print_register): New function. Handle oversize
3756 (debug_to_fetch_registers): Call.
3757 (debug_to_store_registers): Call.
3759 2002-05-03 Jim Blandy <jimb@redhat.com>
3761 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
3762 (read_type): Doc fix.
3763 * gdbtypes.c (replace_type): Doc fix.
3765 * stabsread.c (multiply_defined_struct): New complaint.
3766 (read_struct_type): If the type we were passed isn't empty, or
3767 incomplete, don't read the new struct type into it; complain,
3768 and return the original type unchanged. Take a new `type_code'
3769 argument, which is the type code for the new type.
3770 (read_type): Rather than storing the type's type code here, pass
3771 it as an argument to read_struct_type, and let that take care of
3772 storing it. That way, we don't overwrite the original type code,
3773 so read_struct_type can use it to decide whether we're overwriting
3774 something we shouldn't.
3775 (complain_about_struct_wipeout): New function.
3777 2002-05-03 Andrew Cagney <ac131313@redhat.com>
3779 * gdbarch.sh: Assert that gdbarch is non-NULL.
3780 * gdbarch.c: Regenerate.
3782 2002-05-03 Jason Merrill <jason@redhat.com>
3784 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
3787 2002-05-03 Michal Ludvig <mludvig@suse.cz>
3789 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
3790 (x86_64_dwarf2gdb_regno_map_length),
3791 (x86_64_dwarf2_reg_to_regnum): Added.
3792 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
3793 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
3794 (_initialize_x86_64_tdep): Synced with the change above.
3795 (x86_64_skip_prologue): Reformulated message.
3797 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3799 * f-exp.y: Also use new prev_lexptr variable
3800 to improve error reporting. Based on Michael Snyder
3801 2002-04-24 dated patch to c-exp.y.
3802 * jv-exp.y: Likewise.
3803 * m2-exp.y: Likewise.
3805 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
3807 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
3808 we are dealing with vectors.
3810 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3812 * config/m68k/tm-nbsd.h: Obvious fix,
3813 correct machine name.
3815 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3817 * p-typeprint.c (pascal_type_print_base): Add support
3818 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
3820 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3822 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
3823 for fondamental pascal 'char' type.
3825 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3827 * p-lang.h (is_pascal_string_type): Declaration changed,
3828 new sixth argument of type char ** added.
3829 * p-lang.c (is_pascal_string_type): Implementation
3830 changed. Args length_pos, length_size, string_pos, char_size
3831 can now be NULL. New argument arrayname set to the field
3832 name of the char array. Return value set to char array
3833 field index plus one.
3834 * p-valprint.c (pascal_val_print): Adapt to new declaration of
3835 is_pascal_string_type function.
3837 2002-05-02 Andrew Cagney <cagney@redhat.com>
3839 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
3840 <cagney@redhat.com> change.
3841 * gdbarch.c: Regenerate.
3843 2002-05-02 Andrew Cagney <cagney@redhat.com>
3845 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
3846 before probing for a new one. Detect errorenous gdbarch_init
3848 * gdbarch.c: Regenerate.
3850 2002-05-01 Andrew Cagney <cagney@redhat.com>
3852 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
3853 * config/mcore/tm-mcore.h: Ditto. Update copyright.
3854 * config/v850/tm-v850.h: Ditto. Update copyright.
3856 2002-04-30 Andrew Cagney <ac131313@redhat.com>
3858 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
3861 2002-04-30 Michael Snyder <msnyder@redhat.com>
3863 * arm-tdep.c: Whitespace clean-ups.
3864 (arm_skip_prologue): Fix thinko; two lines
3865 should have been removed as part of 4/24 change.
3867 2002-04-30 Kevin Buettner <kevinb@redhat.com>
3869 * rs6000-tdep.c: Added comment describing how fpscr register
3870 numbers were chosen.
3872 2002-04-30 Michael Snyder <msnyder@redhat.com>
3874 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
3876 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
3878 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
3879 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
3880 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
3882 2002-04-29 Kevin Buettner <kevinb@redhat.com>
3884 From Louis Hamilton <hamilton@redhat.com>:
3885 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
3886 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
3887 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
3888 not bfd-private xcoff data, to determine wordsize.
3889 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
3891 2002-04-29 Andrew Cagney <ac131313@redhat.com>
3893 GDB 5.2 released from 5.2 branch.
3895 2002-04-29 Michal Ludvig <mludvig@suse.cz>
3897 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
3898 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3899 (x86_64_register_info_table): Added comments with register numbers.
3901 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
3903 * rs6000-tdep.c (rs6000_extract_return_value,
3904 rs6000_store_return_value): Handle returning vectors.
3905 (rs6000_gdbarch_init): Use
3906 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
3907 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3909 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
3911 (ppc_sysv_abi_push_arguments): Handle vector parameters.
3912 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
3914 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
3916 * hpread.c (hpread_psymtab_to_symtab_1,
3917 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
3918 with fprintf_unfiltered (gdb_stderr,...).
3920 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
3922 * remote-array.c (printf_monitor, write_monitor,
3923 array_insert_breakpoint, array_remove_breakpoint ):
3924 Replace fprintf (stderr,...
3925 with fprintf_unfiltered (gdb_stderr,....
3926 * remote-es.c: Likewise.
3927 * remote-os9k.c: Likewise.
3928 * remote-st.c: Likewise.
3930 2002-04-28 Andreas Schwab <schwab@suse.de>
3932 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
3933 linux-proc.o and gcore.o.
3935 2002-04-26 Michal Ludvig <mludvig@suse.cz>
3937 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
3938 code without frame pointers.
3940 2002-04-26 Andrew Cagney <ac131313@redhat.com>
3942 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
3945 2002-04-26 Ben Elliston <bje@redhat.com>
3947 * target.c (do_xfer_memory): Correct reference to the new option
3948 "trust-readonly-sections".
3950 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
3952 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
3953 * gdbtypes.c (recursive_dump_type): Output the vector flag.
3954 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
3956 (read_array_type): Record the fact that this array type is really a
3957 vector (i.e. are passed in by value).
3959 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
3961 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
3962 * alpha-tdep.c (alpha_sigcontext_addr): New function.
3963 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
3964 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
3965 * alpha-linux-tdep.c: Include frame.h.
3966 (alpha_linux_sigcontext_addr): New function.
3967 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
3968 alpha_linux_sigcontext_addr.
3969 * alpha-osf1-tdep.c: Include gdbcore.h.
3970 (alpha_osf1_sigcontext_addr): New function.
3971 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
3972 alpha_osf1_sigcontext_addr.
3973 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
3974 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
3976 2002-04-26 Andrew Cagney <ac131313@redhat.com>
3978 * stack.c (selected_frame_level):
3979 (select_frame): Do not set selected_frame_level.
3980 * frame.h (selected_frame_level): Delete declaration.
3982 2002-04-26 Andrew Cagney <ac131313@redhat.com>
3984 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
3985 convert_from_func_ptr-addr when AIX / PowerOpen.
3987 2002-04-25 Andrew Cagney <ac131313@redhat.com>
3989 * valops.c (hand_function_call): Call
3990 generic_save_call_dummy_addr.
3991 * frame.h (generic_save_call_dummy_addr): Declare.
3992 * blockframe.c (struct dummy_frame): Add fields call_lo and
3994 (generic_find_dummy_frame): Check for PC in range call_lo to
3995 call_hi instead of entry_point_address.
3996 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
3997 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
3998 (generic_save_call_dummy_addr): New function.
4000 2002-04-24 David S. Miller <davem@redhat.com>
4002 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
4003 sparc_skip_prologue.
4004 (sparc_skip_prologue): Kill frameless_p arg, and use line number
4005 information to find prologue when possible.
4006 (sparc_prologue_frameless_p): Call examine_prologue directly.
4007 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
4008 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
4010 (SKIP_PROLOGUE): Likewise.
4012 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4014 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
4015 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
4016 indicate that the condition it was testing is always true.
4017 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
4018 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4019 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4021 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4023 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
4024 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
4025 tdep->jb_pc and tdep->jb_elt_size.
4026 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
4027 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
4028 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4029 * alpha-nat.c (get_longjmp_target): Remove.
4030 (JB_ELEMENT_SIZE): Ditto.
4032 * alpha-tdep.c (alpha_get_longjmp_target): New function.
4033 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
4034 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
4035 to alpha_get_longjmp_target.
4036 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
4037 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
4038 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
4040 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4042 * README: Update to GDB 5.2.
4044 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4046 * gdbarch.sh (LC_ALL): Set to `c'.
4048 2002-04-25 Theodore A. Roth <troth@verinet.com>
4050 * avr-tdep.c: Ran through gdb_indent.sh.
4052 2002-04-25 Theodore A. Roth <troth@verinet.com>
4054 * MAINTAINERS: Add myself as AVR maintainer.
4055 * NEWS: Note new target avr.
4057 2002-04-25 Theodore A. Roth <troth@verinet.com>
4059 * Makefile.in: Add support for AVR target.
4060 * configure.tgt: Add support for AVR target.
4061 * avr-tdep.c: New file
4062 * config/avr/avr.mt: New file.
4064 2002-04-25 Theodore A. Roth <troth@verinet.com>
4066 * MAINTAINERS: Add myself to write-after-approval.
4068 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4070 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
4071 with fprintf_unfiltered (gdb_stderr,....
4073 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4076 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
4078 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4080 * p-exp.y: Also use new prev_lexptr variable
4081 to improve error reporting. Based on Michael Snyder
4082 2002-04-24 dated patch to c-exp.y.
4084 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4086 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
4087 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
4088 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
4090 * config/alpha/tm-alpha.h: Remove forward decls of struct type
4092 (FUNCTION_START_OFFSET): Remove.
4093 (BREAKPOINT): Ditto.
4095 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4097 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
4100 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4102 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
4103 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
4104 alpha_linux_pc_in_sigtramp.
4105 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
4106 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
4107 alpha_osf1_pc_in_sigtramp.
4108 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
4109 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
4110 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4111 alphafbsd_pc_in_sigtramp.
4112 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
4113 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4114 alphanbsd_pc_in_sigtramp.
4115 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
4116 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
4118 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4120 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4122 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4124 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
4126 (alphanbsd-nat.o): New dependency list.
4127 (alphanbsd-tdep.o): Ditto.
4128 * NEWS: Note new native NetBSD/alpha configuration.
4129 * alphanbsd-nat.c: New file.
4130 * alphanbsd-tdep.c: Ditto.
4131 * configure.host (alpha*-*-netbsd*): New host.
4132 * configure.tgt (alpha*-*-netbsd*): New target.
4133 * config/alpha/nbsd.mh: New file.
4134 * config/alpha/nbsd.mt: Ditto.
4135 * config/alpha/nm-nbsd.h: Ditto.
4136 * config/alpha/tm-nbsd.h: Ditto.
4138 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4140 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
4141 (alpha-osf1-tdep.o): New dependency list.
4142 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
4143 and skip_sigtramp_frame members.
4144 * alpha-linux-tdep.c: Include gdbcore.h.
4145 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
4146 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
4147 * alpha-osf1-tdep.c: New file.
4148 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
4150 (alpha_frame_past_sigtramp_frame): New function.
4151 (alpha_dynamic_sigtramp_offset): Ditto.
4152 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
4153 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
4154 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
4155 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
4156 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
4157 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
4158 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
4159 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
4160 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
4161 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
4162 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
4163 to find_solib_trampoline_target.
4164 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
4165 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
4166 (SKIP_TRAMPOLINE_CODE): Remove.
4167 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4168 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4169 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4170 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4171 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
4172 (PROC_SIGTRAMP_MAGIC): Ditto.
4173 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4174 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4175 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4176 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4177 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4179 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4181 * NEWS: Note that Alpha targets are now multi-arch.
4183 2002-04-24 Michael Snyder <msnyder@redhat.com>
4185 * parser-defs.h (prev_lexptr): New external variable.
4186 * parse.c (parse_exp_1): Set prev_lexptr to null before
4187 calling the language-specific parser.
4188 * c-exp.y (yylex): Set prev_lexptr to start of current token.
4189 (yyerror): Use prev_lexptr in error reporting.
4191 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
4193 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
4194 * gregset.h: If FILL_FPXREGSET is defined, provide
4195 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
4196 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
4197 is defined, call fill_fpxregset.
4199 2002-04-24 Roland McGrath <roland@frob.com>
4201 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
4202 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
4203 (supply_gregset, supply_fpregset): New functions.
4205 * gnu-nat.c (gnu_find_memory_regions): New function.
4206 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
4207 (gnu_xfer_memory): Add a cast.
4209 2002-04-24 Michael Snyder <msnyder@redhat.com>
4211 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
4212 loop. Add handling for "str lr, [sp, #-4]!" and for saves
4213 of argument regs ("str r(0123), [r11, #-nn"]).
4214 (arm_skip_prologue): Better handling for frameless functions.
4215 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
4216 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
4218 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
4220 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
4221 NUM_PSEUDO_REGS can be used.
4223 2002-04-24 Andrew Cagney <ac131313@redhat.com>
4225 * arch-utils.h: Update copyright.
4227 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
4228 * gdbarch.h, gdbarch.c: Re-generate.
4230 * inferior.h (IN_SIGTRAMP): Delete definition.
4231 * arch-utils.c (legacy_pc_in_sigtramp): New function.
4232 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
4234 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
4235 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
4236 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
4237 (find_proc_framesize): Ditto.
4238 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
4239 (alpha_init_extra_frame_info): Ditto.
4240 * infrun.c (handle_inferior_event): Ditto.
4241 (handle_inferior_event): Ditto.
4242 (check_sigtramp2): Ditto.
4243 * blockframe.c (create_new_frame): Ditto.
4244 (get_prev_frame): Ditto.
4245 * ppc-linux-tdep.c: Update comments.
4246 * i386-linux-tdep.c: Update comments.
4247 * breakpoint.c (bpstat_what): Update comment.
4249 2002-04-24 Michal Ludvig <mludvig@suse.cz>
4251 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
4252 (regsets_store_inferior_registers): Removed cast to int from
4254 * gdbserver/regcache.h: Added declaration of struct inferior_info.
4256 2002-04-24 David S. Miller <davem@redhat.com>
4258 * i960-tdep.c (register_in_window_p): New function.
4259 (i960_find_saved_register): Use it instead of
4260 REGISTER_IN_WINDOW_P.
4261 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
4263 * symtab.h (find_stab_function_addr): Kill extern.
4264 * minsyms.c (find_stab_function_addr): Remove from here...
4265 * dbxread.c: ... to here, and mark it static.
4267 2002-04-20 David S. Miller <davem@redhat.com>
4269 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
4270 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
4272 2002-04-21 David S. Miller <davem@redhat.com>
4274 * remote-vxsparc.c (vx_read_register): Fix typo, we want
4275 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
4276 (vx_write_register): Likewise.
4278 2002-04-23 J. Brobecker <brobecker@gnat.com>
4280 * source.c (is_regular_file): New function.
4281 (openp): Check wether file to open is a regular file
4282 to avoid opening directories.
4284 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4286 * findvar.c (extract_signed_integer): Cast printf argument
4287 to suppress format warning.
4288 (extract_unsigned_integer): Likewise.
4289 * infcmd.c (registers_info): Likewise.
4290 * top.c (get_prompt_1): Likewise.
4291 * valops.c (value_assign): Likewise.
4292 * valprint.c (print_decimal): Likewise.
4294 2002-04-22 H.J. Lu (hjl@gnu.org)
4296 * c-exp.y (typebase): Support
4298 [long|long long|short] [signed|unsigned] [int|]
4302 signed [long|long long|short] int
4304 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4306 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
4308 * vax-tdep.h: New file.
4309 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
4310 Make several routines static.
4311 (vax_get_saved_register): New function.
4312 (vax_gdbarch_init): New function.
4313 (_initialize_vax_tdep): Register vax_gdbarch_init.
4314 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
4315 Remove macros now under the control of gdbarch.
4317 2002-04-22 Michael Snyder <msnyder@redhat.com>
4319 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
4320 Some whitespace and coding standards tweaks.
4322 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4324 * vax-tdep.c: Include regcache.h.
4325 (vax_call_dummy_words): New.
4326 (sizeof_vax_call_dummy_words): New.
4327 (vax_fix_call_dummy): New function.
4328 (vax_saved_pc_after_call): Ditto.
4329 * config/vax/tm-vax.h: Don't include regcache.h.
4330 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
4331 (CALL_DUMMY): Remove.
4332 (CALL_DUMMY_WORDS): Define.
4333 (SIZEOF_CALL_DUMMY_WORDS): Define.
4334 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
4336 2002-04-18 Michael Snyder <msnyder@redhat.com>
4338 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
4340 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4342 * vax-tdep.c (vax_frame_chain): New function.
4343 (vax_push_dummy_frame): Ditto.
4344 (vax_pop_frame): Ditto.
4345 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
4346 (FRAMELESS_FUNCTION_INVOCATION): Use
4347 generic_frameless_function_invocation_not.
4348 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
4349 (POP_FRAME): Use vax_pop_frame.
4351 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4353 * vax-tdep.c (vax_store_struct_return): New function.
4354 (vax_extract_return_value): Ditto.
4355 (vax_store_return_value): Ditto.
4356 (vax_extract_struct_value_address): Ditto.
4357 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
4358 vax_store_struct_return.
4359 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
4360 (STORE_RETURN_VALUE): Use vax_store_return_value.
4361 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
4363 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4365 * vax-tdep.c (vax_frame_saved_pc): New function.
4366 (vax_frame_args_address_correct): Ditto.
4367 (vax_frame_args_address): Ditto.
4368 (vax_frame_locals_address): Ditto.
4369 (vax_frame_num_args): Move code to be in proximity to
4370 other frame-related functions.
4371 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
4372 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
4373 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
4374 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
4375 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
4377 2002-04-22 H.J. Lu (hjl@gnu.org)
4379 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
4382 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4384 * vax-tdep.c (vax_frame_init_saved_regs): New function.
4385 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
4386 (FRAME_INIT_SAVED_REGS): New macro.
4388 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4390 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
4392 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4394 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
4396 (fetch_osf_core_registers): Likewise.
4397 (supply_gregset): Likewise.
4399 2002-04-22 J. Brobecker <brobecker@gnat.com>
4401 * symfile.h (get_section_index): Define.
4402 * symfile.c (get_section_index): New function.
4403 * mdebugread.c (SC_IS_SBSS): New macro.
4404 (SC_IS_BSS): Return true for the scBss storage class only, as
4405 the scSBss storage class refers to the .sbss section.
4406 (parse_partial_symbols): Discard the symbols which associated
4407 section does not exist.
4408 Make sure to use the .sbss section index for symbols which
4409 storage class is scBss, rather than using the .bss section index.
4411 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4413 * vax-tdep.c: Update copyright years.
4414 (vax_register_name): New function.
4415 (vax_register_byte): Ditto.
4416 (vax_register_raw_size): Ditto.
4417 (vax_register_virtual_size): Ditto.
4418 (vax_register_virtual_type): Ditto.
4419 * config/vax/tm-vax.h: Update copyright years.
4420 (REGISTER_NAMES): Remove.
4421 (REGISTER_NAME): Define.
4422 (REGISTER_BYTE): Use vax_register_byte.
4423 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
4424 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
4425 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
4427 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4429 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
4431 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
4433 2002-04-21 David S. Miller <davem@redhat.com>
4435 * arch-utils.c (generic_prologue_frameless_p): Kill
4436 SKIP_PROLOGUE_FRAMELESS_P code.
4437 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4439 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
4440 * arc-tdep.c (arc_prologue_frameless_p): Implement.
4441 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4443 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
4444 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
4445 (sparc_gdbarch_init): Pass it to
4446 set_gdbarch_prologue_frameless_p.
4448 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4450 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
4451 (alphabsd-nat.o): New dependency list.
4453 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4455 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
4457 (alpha-linux-tdep.o): New dependency list.
4458 (alphafbsd-tdep.o): Likewise.
4460 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4462 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
4464 * alpha-tdep.c: ...from here.
4465 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
4467 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4469 * config/alpha/tm-alpha.h: Move alpha_software_single_step
4470 prototype from here...
4471 * alpha-tdep.h: ...to here.
4473 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4475 * frame.h (selected_frame_level): Document as deprecated.
4476 (frame_relative_level): Declare.
4477 * stack.c (frame_relative_level): New function.
4478 (selected_frame_level): Document as deprecated.
4479 (select_frame): Do not set the selected_frame_level.
4481 * stack.c (frame_info, record_selected_frame): Update.
4482 (frame_command, current_frame_command): Update.
4483 (up_silently_base, up_command, down_silently_base): Update.
4484 (down_command): Update.
4485 * inflow.c (kill_command): Update.
4486 * tracepoint.c (finish_tfind_command): Update.
4487 * corelow.c (core_open): Update.
4488 * thread.c (info_threads_command): Update.
4489 (do_captured_thread_select): Update.
4490 * infcmd.c (finish_command): Update.
4491 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
4493 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4495 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
4497 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4499 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
4502 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4504 * alphafbsd-tdep.c: Update copyright years. Include
4506 (alphafbsd_use_struct_convention): Make static.
4507 (alphafbsd_init_abi): New function.
4508 (_initialize_alphafbsd_tdep): New function.
4509 * config/alpha/tm-fbsd.h: Update copyright years.
4510 (USE_STRUCT_CONVENTION): Remove.
4512 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4514 * alpha-tdep.c (alpha_abi_handler): New structure to describe
4515 an Alpha ABI variant.
4516 (alpha_abi_handler_list): Declare.
4517 (alpha_gdbarch_register_os_abi): New function.
4518 (alpha_gdbarch_init): Give registered ABI variant handlers a
4519 chance to tweak the gdbarch once we have set up defaults.
4520 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
4522 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4524 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
4525 to standard_coerce_float_to_double.
4526 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4528 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4530 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
4531 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
4532 from gdbarch_tdep rather than a constant.
4533 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
4534 the default text address for all Alpha Unix ABIs.
4535 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
4536 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
4538 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4540 * alpha-tdep.h: New file. Includes several Alpha target constants
4542 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
4543 let gdbarch deal with.
4544 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
4545 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
4547 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
4548 Alpha target register names.
4549 * alphabsd-nat.c: Likewise.
4550 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
4551 Alpha target register names. Make serveral routines static.
4552 (alpha_get_saved_register): New function.
4553 (alpha_abi_names): New.
4554 (process_note_abi_tag_sections): New function.
4555 (get_elfosabi): New function.
4556 (alpha_gdbarch_init): New function.
4557 (alpha_dump_tdep): New function.
4558 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
4560 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4562 * frame.c (find_saved_register): Delete #ifdef
4563 HAVE_REGISTER_WINDOWS code.
4564 * config/sparc/tm-sparc.h: Update comments.
4565 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
4567 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4569 * i960-tdep.c (i960_find_saved_register): New function.
4570 (i960_get_saved_register): New function.
4571 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
4572 (i960_get_saved_register): Declare.
4573 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
4575 2002-04-20 David S. Miller <davem@redhat.com>
4577 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
4579 2002-04-20 Andrew Cagney <ac131313@redhat.com>
4581 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
4582 instead of NUM_PSEUDO_REGS.
4584 2002-04-20 David S. Miller <davem@redhat.com>
4586 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
4587 GDB_MULTI_ARCH_PARTIAL
4588 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
4589 define, let tm-sp64.h do it.
4591 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
4593 * frame.c (find_saved_register): Avoid a NULL pointer
4594 dereference and actually walk the frame list.
4596 2002-04-20 Andrew Cagney <ac131313@redhat.com>
4598 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
4599 sorted in most most-recent-used order. Document.
4600 * gdbarch.h, gdbarch.c: Regenerate.
4602 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
4604 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
4605 (add_inferior): Call create_register_cache.
4606 (clear_inferiors): Call free_register_cache.
4607 (inferior_regcache_data, set_inferior_regcache_data): New functions.
4608 * gdbserver/regcache.c (struct inferior_regcache_data): New.
4609 (registers): Remove.
4610 (get_regcache): New function.
4611 (create_register_cache, free_register_cache): New functions.
4612 (set_register_cache): Don't initialize the register cache here.
4613 (registers_to_string, registers_from_string, register_data): Call
4615 * gdbserver/regcache.h: Add prototypes.
4616 * gdbserver/server.h: Likewise.
4618 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
4620 * gdbserver/mem-break.c: New file.
4621 * gdbserver/mem-break.h: New file.
4622 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
4624 * gdbserver/inferiors.c (struct inferior_info): Add target_data
4626 (clear_inferiors): Free target_data member if set.
4627 (inferior_target_data, set_inferior_target_data): New functions.
4628 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
4629 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
4630 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
4631 (struct inferior_linux_data): New.
4632 (linux_create_inferior): Use set_inferior_target_data.
4633 (linux_attach): Likewise. Call add_inferior.
4634 (linux_wait_for_one_inferior): New function.
4635 (linux_wait): Call it.
4636 (linux_write_memory): Add const.
4637 (initialize_low): Call set_breakpoint_data.
4638 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
4640 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
4642 * gdbserver/server.h: Include mem-break.h. Update inferior.c
4644 * gdbserver/target.c (read_inferior_memory)
4645 (write_inferior_memory): New functions.
4646 * gdbserver/target.h (read_inferior_memory)
4647 (write_inferior_memory): Change macros to prototypes.
4648 (struct target_ops): Update comments. Add const to write_memory
4651 2002-04-19 Andrew Cagney <ac131313@redhat.com>
4653 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
4655 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
4656 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
4657 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
4660 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
4663 * gdbtypes.c (init_simd_type): Rewrite using new functions.
4664 (build_builtin_type_vec128): Ditto.
4665 (append_composite_type_field): Fix calculation of type length in
4668 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
4670 * config/djgpp/README: Update.
4672 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
4675 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
4677 * alpha-tdep.c (setup_arbitrary_frame): Rename...
4678 (alpha_setup_arbitrary_frame): ...to this.
4679 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
4680 for alpha_setup_arbitrary_frame.
4682 2002-04-18 Andrew Cagney <cagney@redhat.com>
4684 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
4685 * gdbarch.h, gdbarch.c: Regenerate.
4687 * defs.h (breakpoint_from_pc_fn): Delete type definition.
4688 * target.h (memory_breakpoint_from_pc): Update declaration.
4689 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
4691 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
4692 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
4693 * mem-break.c (memory_breakpoint_from_pc): Ditto.
4694 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
4695 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
4696 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
4697 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
4698 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
4699 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
4700 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
4701 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
4702 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
4704 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
4706 * monitor.c (monitor_insert_breakpoint): Ditto.
4707 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
4709 * config/mcore/tm-mcore.h: Update copyright.
4710 * mem-break.c: Ditto.
4711 * xstormy16-tdep.c: Ditto.
4713 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
4715 * p-exp.y: Add precedence rule for '^' token.
4716 This removes the shift/reduce conflicts.
4717 Remove the comment concerning these shift/reduce conflicts.
4719 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
4721 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
4722 (registers_powerpc_nofp): New register set for processors
4723 without floating point unit.
4725 2002-04-18 David S. Miller <davem@redhat.com>
4727 * MAINTAINERS: Add myself to write-after-approval.
4729 2002-04-17 Michael Snyder <msnyder@redhat.com>
4731 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
4733 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4735 * rs6000-tdep.c (frame_initial_stack_address): Use
4736 frame_register_read to read the alloca_reg.
4738 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4740 * frame.c (find_saved_register): Find saved registers in the next
4744 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4746 * gdbarch.sh (LANG): Set to ``c''.
4748 2002-04-15 Andrew Cagney <ac131313@redhat.com>
4750 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
4752 2002-04-15 Andrew Cagney <ac131313@redhat.com>
4754 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
4757 * hpread.c (hpread_get_lntt): Add declaration.
4758 Also fix PR gdb/391.
4760 2002-04-14 Andrew Cagney <ac131313@redhat.com>
4762 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
4763 * aclocal.m4, configure: Re-generate.
4766 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
4768 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
4769 instead of tm_print_insn.
4771 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
4773 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
4775 2002-04-14 Andrew Cagney <ac131313@redhat.com>
4777 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
4778 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
4779 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
4781 2002-04-12 Don Howard <dhoward@redhat.com>
4783 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
4784 max_user_call_depth.
4785 (init_cmd_lists): Initialize the new value;
4786 * cli/cli-script.c (execute_user_command): Limit the call depth of
4787 user defined commands. This avoids a core-dump when user commands
4788 are infinitly recursive.
4790 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4792 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
4793 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
4794 from tdep struct instead of DEFAULT_LR_SAVE.
4795 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
4796 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
4797 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
4799 2002-04-12 Michael Snyder <msnyder@redhat.com>
4801 * Remote.c: Spelling fix.
4802 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
4803 If no symbol found for "sbrk", try "_sbrk".
4804 (make_output_phdrs): Use bfd_section_name.
4805 (gcore_copy_callback): Use bfd_section_name.
4806 * eval.c: Indentation fix-ups.
4807 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
4808 in case it gets applied to an address that is already
4809 in the instruction space.
4810 * cli/cli-decode.c (help_list): Allow long lines to wrap.
4811 * symfile.c: Fix indentation, long lines.
4812 * source.c: White space fix-up.
4814 2002-04-12 Andrew Cagney <cagney@redhat.com>
4816 * defs.h (read_relative_register_raw_bytes): Delete declaration.
4817 * frame.c (frame_register_read): New function. Return non-zero on
4819 (read_relative_register_raw_bytes_for_frame): Delete.
4820 (read_relative_register_raw_bytes): Delete.
4821 * frame.h (frame_register_read): Declare.
4822 * d30v-tdep.c: Update Copyright. Use frame_register_read.
4824 * infcmd.c (do_registers_info): Ditto.
4825 * hppa-tdep.c: Ditto.
4826 * rs6000-tdep.c: Ditto.
4827 * h8500-tdep.c: Ditto.
4828 * mips-tdep.c: Ditto.
4829 * h8300-tdep.c: Ditto.
4830 * z8k-tdep.c: Ditto.
4832 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4834 From Jimi X <jimix@watson.ibm.com>:
4835 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
4838 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4840 From Jimi X <jimix@watson.ibm.com>:
4841 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
4844 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4846 From Jimi X <jimix@watson.ibm.com>:
4847 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
4848 register sets for these processor variants.
4850 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
4852 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
4853 registers which are allowed to fail to store.
4854 * gdbserver/linux-low.h (linux_target_ops): Likewise.
4855 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
4856 (ppc_cannot_store_register): FPSCR may not be storable.
4857 * regformats/reg-ppc.dat: Support FPSCR.
4859 2002-04-11 Kevin Buettner <kevinb@redhat.com>
4861 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
4862 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4863 Add fpscr as an invalid/unfetchable register.
4864 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
4865 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
4866 (fill_fpregset): Add support for register fpscr.
4867 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
4868 (fill_gregset): Account for the fact that register ``mq'' might
4870 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
4871 (registers_power): Add fpscr to register set at slot 71.
4872 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
4873 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
4875 2002-04-11 Michael Snyder <msnyder@redhat.com>
4877 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
4878 * configure: Regenerate.
4879 * config.in: Regenerate.
4880 * acconfig.h: Add define for _SYSCALL32.
4881 * core-sol2.c: Remove #define _SYSCALL32.
4882 * solib-legacy.c: Remove #define _SYSCALL32.
4884 2002-04-10 Andrew Cagney <ac131313@redhat.com>
4886 * stack.c (select_frame): Cleanup internal error message, do not
4889 2002-04-10 Andrew Cagney <ac131313@redhat.com>
4891 * stack.c (select_frame): Check that selected_frame and the
4892 specified level are as expected.
4893 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
4895 * frame.h (struct frame_info): Add field `level'. Update
4897 Work-in-progress PR gdb/464.
4899 2002-04-10 Andrew Cagney <ac131313@redhat.com>
4901 * maint.c (maint_print_section_info): Rename print_section_info.
4902 (print_bfd_section_info, print_objfile_section_info): Update.
4903 * inferior.h (struct gdbarch): Add opaque declaration.
4904 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
4905 * gdbarch.h: Regenerate.
4907 2002-04-10 Michal Ludvig <mludvig@suse.cz>
4909 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
4910 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
4911 (kernel_u_size): Added.
4912 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
4913 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
4915 2002-04-04 Jim Ingham <jingham@apple.com>
4917 * valarith.c (find_size_for_pointer_math): New function, either returns
4918 the size for a pointer's target, returns 1 for void *, or errors for
4920 (value_add, value_sub): use find_size_for_pointer_math.
4922 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4924 * linux-low.c (linux_look_up_symbols): New hook.
4925 (linux_target_ops): Add linux_look_up_symbols.
4926 * remote-utils.c (decode_address): New function.
4927 (look_up_one_symbol): New function.
4928 * server.c (handle_query): Call target look_up_symbols hook.
4929 * server.h (look_up_one_symbol): Add prototype.
4930 * target.h (struct target_ops): Add look_up_symbols hook.
4932 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4934 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
4935 * ChangeLog: Correct paths in last ChangeLog entry.
4937 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4939 * gdbserver/linux-low.h: Remove obsolete prototypes.
4940 (struct linux_target_ops): New.
4941 (extern the_low_target): New.
4942 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
4943 (register_addr): Use the_low_target explicitly.
4944 (fetch_register): Likewise.
4945 (usr_fetch_inferior_registers): Likewise.
4946 (usr_store_inferior_registers): Likewise.
4947 * gdbserver/linux-arm-low.c (num_regs): Remove.
4948 (arm_num_regs): Define.
4949 (arm_regmap): Renamed from regmap, made static.
4950 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
4952 (arm_cannot_store_register): Renamed from cannot_store_register,
4954 (the_low_target): New.
4955 * gdbserver/linux-i386-low.c (num_regs): Remove.
4956 (i386_num_regs): Define.
4957 (i386_regmap): Renamed from regmap, made static.
4958 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
4960 (i386_cannot_store_register): Renamed from cannot_store_register,
4962 (the_low_target): New.
4963 * gdbserver/linux-ia64-low.c (num_regs): Remove.
4964 (ia64_num_regs): Define.
4965 (ia64_regmap): Renamed from regmap, made static.
4966 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
4968 (ia64_cannot_store_register): Renamed from cannot_store_register,
4970 (the_low_target): New.
4971 * gdbserver/linux-m68k-low.c (num_regs): Remove.
4972 (m68k_num_regs): Define.
4973 (m68k_regmap): Renamed from regmap, made static.
4974 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
4976 (m68k_cannot_store_register): Renamed from cannot_store_register,
4978 (the_low_target): New.
4979 * gdbserver/linux-mips-low.c (num_regs): Remove.
4980 (mips_num_regs): Define.
4981 (mips_regmap): Renamed from regmap, made static.
4982 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
4984 (mips_cannot_store_register): Renamed from cannot_store_register,
4986 (the_low_target): New.
4987 * gdbserver/linux-ppc-low.c (num_regs): Remove.
4988 (ppc_num_regs): Define.
4989 (ppc_regmap): Renamed from regmap, made static.
4990 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
4992 (ppc_cannot_store_register): Renamed from cannot_store_register,
4994 (the_low_target): New.
4995 * gdbserver/linux-s390-low.c (num_regs): Remove.
4996 (s390_num_regs): Define.
4997 (s390_regmap): Renamed from regmap, made static.
4998 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
5000 (s390_cannot_store_register): Renamed from cannot_store_register,
5002 (the_low_target): New.
5003 * gdbserver/linux-sh-low.c (num_regs): Remove.
5004 (sh_num_regs): Define.
5005 (sh_regmap): Renamed from regmap, made static.
5006 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
5008 (sh_cannot_store_register): Renamed from cannot_store_register,
5010 (the_low_target): New.
5011 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
5012 (the_low_target): New.
5014 2002-04-09 Andrew Cagney <ac131313@redhat.com>
5016 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
5017 override FP_REGNUM with frame->fp. Update copyright.
5018 * parse.c (num_std_regs, std_regs): Delete.
5019 (target_map_name_to_register): Do not search std_regs. Update
5020 function description.
5021 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
5022 declarations. Update copyright.
5025 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5027 * gdbserver/Makefile.in: Add stamp-h target.
5028 * gdbserver/configure.in: Create stamp-h.
5029 * gdbserver/configure: Regenerated.
5031 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5033 * gdbserver/inferiors.c: New file.
5034 * gdbserver/target.c: New file.
5035 * gdbserver/target.h: New file.
5036 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
5038 * gdbserver/linux-low.c (inferior_pid): New static variable,
5039 moved from server.c.
5040 (linux_create_inferior): Renamed from create_inferior.
5041 Call add_inferior. Return 0 on success instead of a PID.
5042 (linux_attach): Renamed from myattach.
5043 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
5044 (linux_thread_alive): Renamed from mythread_alive.
5045 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
5047 (linux_resume): Renamed from myresume. Add missing ``return 0''.
5048 (regsets_store_inferior_registers): Correct error message.
5049 Add missing ``return 0''.
5050 (linux_fetch_registers): Renamed from fetch_inferior_registers.
5051 (linux_store_registers): Renamed from store_inferior_registers.
5052 (linux_read_memory): Renamed from read_inferior_memory.
5053 (linux_write_memory): Renamed from write_inferior_memory.
5054 (linux_target_ops): New structure.
5055 (initialize_low): Call set_target_ops ().
5056 * gdbserver/remote-utils.c (unhexify): New function.
5057 (hexify): New function.
5058 (input_interrupt): Send signals to ``signal_pid''.
5059 * gdbserver/server.c (inferior_pid): Remove.
5060 (start_inferior): Update create_inferior call.
5061 (attach_inferior): Call add_inferior.
5062 (handle_query): New function.
5063 (main): Call handle_query for `q' packets.
5064 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
5065 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
5067 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5069 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
5071 * gdbserver/configure.in: Check for <string.h>
5072 * gdbserver/configure: Regenerate.
5073 * gdbserver/config.in: Regenerate.
5074 * gdbserver/gdbreplay.c: Include needed system headers.
5075 (remote_open): Remove strchr prototype.
5076 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
5077 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
5078 (supply_register_by_name): Likewise.
5079 (collect_register): Change buf argument to void *.
5080 (collect_register_by_name): Likewise.
5081 * gdbserver/regcache.h: Add missing prototypes.
5082 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
5083 * gdbserver/server.c (handle_query): New function.
5084 (attached): New static variable, moved out of main.
5085 (main): Quiet longjmp clobber warnings.
5086 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
5087 * gdbserver/utils.c (error): Remove NORETURN.
5090 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5092 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
5093 after the last symbol in a block.
5095 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
5097 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
5098 is non zero as a found symbol.
5100 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5102 * findvar.c: Include "builtin-regs.h".
5103 (value_of_register): Call value_of_builtin_reg when applicable.
5104 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
5105 (target_map_name_to_register): Call
5106 builtin_reg_map_name_to_regnum.
5107 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
5108 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
5109 (builtin_regs_h): Define.
5110 (builtin-regs.o): New target.
5111 (findvar.o): Add $(builtin_regs_h).
5112 * builtin-regs.c, builtin-regs.h: New files.
5113 * std-regs.c: New file.
5114 Partial fix for PR gdb/251.
5116 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5118 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
5119 it's no longer required.
5121 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5123 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
5125 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5127 From Jimi X <jimix@watson.ibm.com>:
5128 * rs6000-tdep.c (rs6000_software_single_step): Use
5129 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
5130 and size. Use target_insert_breakpoint() and
5131 target_remove_breakpoint() to insert and remove breakpoints
5132 instead of explicit memory reads and writes.
5134 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5136 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
5137 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
5138 ELF_OBJECT_FORMAT ifdef.
5140 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5142 From Jimi X <jimix@watson.ibm.com>:
5143 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
5145 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5147 From Jimi X <jimix@watson.ibm.com>:
5148 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
5149 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
5151 2002-04-07 Mark Kettenis <kettenis@gnu.org>
5153 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
5154 s/asprintf/xasprintf/.
5155 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
5157 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5159 I believe Jeff Law denies responsability for this one:
5160 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
5161 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
5162 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
5163 Work-around for PR gdb/366.
5165 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5167 * remote-e7000.c (write_small, e7000_read_inferior_memory,
5168 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
5169 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
5171 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5173 * sh-tdep.c (sh_fp_frame_init_saved_regs,
5174 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
5177 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5179 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
5182 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5184 * README (Reporting Bugs in GDB): Document the bug web page as the
5185 prefered way of submitting bugs.
5188 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5190 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
5192 * gdbarch.h, gdbarch.c: Re-generate.
5194 2002-04-07 Andreas Schwab <schwab@suse.de>
5196 * m68klinux-nat.c (fill_fpregset): Properly pass address of
5197 buffer to regcache_collect.
5199 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5201 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
5202 * gdbarch.c, gdbarch.h: Re-generate.
5204 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5206 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
5207 declaration. Fix -Werror.
5209 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
5211 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
5212 * gdbarch.c: Regenerate.
5214 2002-04-05 Michael Snyder <msnyder@redhat.com>
5216 * breakpoint.c (clear_command): Rewrite middle section to
5217 combine two loops with identical control conditions.
5218 Add a cleanup to eliminate a memory leak.
5219 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
5221 2002-04-05 H.J. Lu (hjl@gnu.org)
5223 * solib-svr4.c (bkpt_names): Add "__start".
5225 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5227 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
5228 as test for 64 bit target.
5230 2002-04-05 Andrew Cagney <ac131313@redhat.com>
5232 * h8500-tdep.c (h8500_write_fp): Delete function.
5233 * dwarf2cfi.c (cfi_write_fp): Document as not used.
5234 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
5235 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
5236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
5237 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
5238 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
5240 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
5241 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
5242 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
5243 (d10v_write_fp): Delete function.
5244 * inferior.h (write_fp, generic_target_write_fp): Delete
5246 * regcache.c (generic_target_write_fp): Delete function.
5247 (write_fp): Delete function.
5248 * gdbarch.sh (TARGET_WRITE_FP): Delete.
5249 * gdbarch.h, gdbarch.c: Regenerate.
5250 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
5251 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
5252 (sparc64_write_fp): Delete declaration.
5253 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
5254 (h8500_write_fp): Delete declaration.
5256 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5258 * sparc-tdep.c (sparc64_write_fp): Delete.
5259 (sparc_push_dummy_frame): Replace write_fp call with code to store
5261 (sparc_gdbarch_init): Do not initialize write_fp.
5263 2002-04-05 Kevin Buettner <kevinb@redhat.com>
5265 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
5268 2002-03-29 Jim Blandy <jimb@redhat.com>
5270 * stack.c (get_selected_block): Add new argument `addr_in_block',
5271 used to return the exact code address we used to select the block,
5273 * blockframe.c (get_frame_block, get_current_block): Same.
5274 * frame.h (get_frame_block, get_current_block,
5275 get_selected_block): Update declarations.
5276 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
5277 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
5279 2002-04-05 Michael Snyder <msnyder@redhat.com>
5281 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
5284 2002-04-05 J. Brobecker <brobecker@gnat.com>
5286 * utils.c (xfullpath): New function.
5287 * defs.h (xfullpath): Add declaration.
5288 * source.c (openp): Use xfullpath in place of gdb_realpath to
5289 avoid resolving the basename part of filenames when the
5290 associated file is a symbolic link. This fixes a potential
5291 inconsistency between the filenames known to GDB and the
5292 filenames it prints in the annotations.
5293 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
5294 to be able to match a filename with either the real filename, or
5295 the name of any symbolic link to this file.
5296 (lookup_partial_symtab): Ditto.
5298 2002-04-04 Michael Snyder <msnyder@redhat.com>
5300 * breakpoint.c: Add support for hardware breakpoints in overlays.
5301 (overlay_events_enabled): New state variable.
5302 (insert_breakpoints): Use overlay_events_enabled to decide
5303 whether to attempt to set a breakpoint at the overlay load addr.
5304 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5305 (remove_breakpoint): Use overlay_events_enabled to decide
5306 whether breakpoints need to be removed from overlay load addr.
5307 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5308 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
5309 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
5310 disable_overlay_breakpoints): Update overlay_events_enabled.
5312 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
5314 * dwarf2read.c (struct function_range): New.
5315 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
5316 (check_cu_functions): New.
5317 (read_file_scope): Initialize global function lists.
5318 Call dwarf_decode_line after processing children.
5319 (read_func_scope): Add to global function list.
5320 (dwarf_decode_lines): Call check_cu_functions everywhere
5321 record_line is called. Call record_line with a linenumber
5322 of 0 to mark sequence ends.
5324 2002-04-04 Michal Ludvig <mludvig@suse.cz>
5326 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
5327 change sync with glibc.
5329 2002-04-03 Jim Blandy <jimb@redhat.com>
5331 * configure.in: Call AC_C_INLINE.
5332 * configure: Regenerated.
5334 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
5336 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
5337 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
5339 2002-03-31 Mark Kettenis <kettenis@gnu.org>
5341 * NEWS: Mention gcore support on FreeBSD/i386.
5343 * fbsd-proc.c: New file.
5344 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
5345 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
5347 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
5350 2002-03-29 Jim Blandy <jimb@redhat.com>
5352 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
5353 unescaped newlines in string literals, but newer ones don't. So
5356 2002-03-26 Michael Snyder <msnyder@redhat.com>
5357 Andrew Cagney <cagney@redhat.com>
5359 * cli/cli-dump.c: New file. Dump memory to file,
5360 restore file to memory.
5361 * cli/cli-dump.h: New file.
5362 * Makefile.in: Add rules, dependencies for cli-dump.o.
5363 * NEWS: Mention new commands.
5365 2002-03-28 Michael Snyder <msnyder@redhat.com>
5367 * symfile.c (symbol_file_add): Move test for null symbols to later.
5369 2002-03-27 Andrew Cagney <ac131313@redhat.com>
5371 From veksler at il.ibm.com:
5372 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
5373 the xstrduped original path.
5376 2002-03-27 Michael Snyder <msnyder@redhat.com>
5378 * breakpoint.c (_initialize_breakpoint): Clean up help string.
5379 * infcmd.c (_initialize_infcmd): Ditto.
5380 * language.c (_initialize_language): Ditto.
5381 * symfile.c (_initialize_symfile): Ditto.
5382 * top.c (_init_main): Ditto.
5383 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5385 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
5387 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
5388 vector registers handling.
5389 (skip_prologue): Handle new AltiVec instructions. Fill in new
5390 fields of frame data.
5391 (frame_get_saved_regs): Fill in information for AltiVec registers.
5393 2002-03-27 Jim Blandy <jimb@redhat.com>
5395 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
5396 a function; leave this macro here to invoke that function.
5397 (symbol_init_mangled_name): Declaration for that function.
5398 * symtab.c (symbol_init_mangled_name): New function.
5400 2002-03-27 Andrew Cagney <ac131313@redhat.com>
5402 * valarith.c: Replace strerror with safe_strerror.
5403 * tracepoint.c: Ditto.
5405 * go32-nat.c: Ditto.
5409 2002-03-27 Andreas Schwab <schwab@suse.de>
5411 * event-top.c (command_line_handler): Remove useless if.
5413 2002-03-27 Andreas Jaeger <aj@suse.de>
5415 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
5418 2002-03-27 Michal Ludvig <mludvig@suse.cz>
5420 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
5421 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
5422 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
5423 (x86_64_linux_dr_get_status, supply_gregset),
5424 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
5425 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
5426 (x86_64_register_info_table): Add.
5427 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
5428 (x86_64_register_raw_size, x86_64_register_virtual_type),
5429 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
5430 general x86_64_register_info_table.
5431 (i386_gdbarch_init): gdbarch_register_bytes is now set
5432 dynamicaly during initialization.
5433 * regformats/reg-x86-64.dat: Synced with changes to registers above.
5434 * gdbserver/linux-x86-64-low.c: Ditto.
5436 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5438 * gdbserver/server.c (main): Call target_signal_to_host_p
5439 and target_signal_to_host on signals received from the remote.
5440 * gdbserver/remote-utils.c (prepare_resume_reply): Call
5441 target_signal_from_host on signals sent to the remote.
5442 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
5443 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
5445 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5447 * signals/signals.c: Include "server.h" in gdbserver build.
5448 (target_signal_from_name): Don't use STREQ.
5449 (_initialize_signals): Likewise. Don't include function in
5452 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5454 * signals.c: Moved to...
5455 * signals/signals.c: Here.
5456 * Makefile (signals.o): Update.
5458 2002-03-26 Jeff Law (law@redhat.com)
5460 * somread.c (som_symtab_read): Remove some commented out code and
5461 updated related comments. Do not set the minimal symbol table to
5462 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
5463 in a dynamic executable.
5464 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
5465 where we are unable to find the minimal symbol for the given
5468 2002-03-25 Jeff Law (law@redhat.com)
5470 * linux-proc.c (read_mapping): Scan up to end of line for filename.
5472 2002-03-25 Michal Ludvig <mludvig@suse.cz>
5474 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
5476 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5478 * command.h: Update copyright.
5479 (struct cmd_list_element): Replace definition with opaque
5481 (enum cmd_types): Document that it will eventually be moved to
5483 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
5484 (MALLOCED_REPLACEMENT): Delete macro.
5485 * Makefile.in (cli_decode_h): Add $(command_h).
5486 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
5487 * top.c: Include "cli/cli-decode.h".
5488 * completer.c: Include "cli/cli-decode.h".
5489 * maint.c: Include "cli/cli-decode.h".
5490 * cli/cli-decode.h: Include "command.h".
5491 (enum command_class): Delete.
5492 (enum cmd_types): Comment out.
5493 (enum cmd_auto_boolean): Delete.
5494 (enum var_types): Delete.
5496 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5498 * cli/cli-decode.c: Include "gdb_assert.h".
5499 (add_set_or_show_cmd): New static function.
5500 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
5501 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
5502 all fields, such as func, from the set command.
5504 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5506 * MAINTAINERS (sh-elf): Change warning flag to -w.
5508 2002-03-23 Andrew Cagney <cagney@redhat.com>
5510 * defs.h (error): Add printf format attribute.
5511 * thread-db.c (thread_from_lwp): Fix error format string.
5512 * stack.c (parse_frame_specification): Ditto.
5513 * cli/cli-decode.c (undef_cmd_error): Ditto.
5514 * scm-lang.c (scm_lookup_name): Ditto.
5515 * tracepoint.c (trace_error): Ditto.
5516 * remote-utils.c (usage): Ditto.
5517 * remote.c (compare_sections_command): Ditto.
5520 2002-03-22 Andrew Cagney <ac131313@redhat.com>
5522 * gdbtypes.c (append_composite_type_field): New function.
5523 (init_composite_type): New function.
5524 * gdbtypes.h (append_composite_type_field): Declare.
5525 (init_composite_type): Ditto.
5527 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
5529 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
5531 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
5532 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
5533 structure returning convention for SYSV ABI case, but not
5534 for GNU/Linux, FreeBSD, or NetBSD.
5536 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
5538 * symtab.h (lookup_block_symbol): Add mangled_name argument
5541 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
5542 with new mangled_name argument.
5543 * linespec.c (decode_line_1): Likewise.
5544 * valops (value_of_this): Likewise.
5545 * symtab.c (lookup_transparent_type): Likewise.
5546 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
5547 (lookup_symbol): If we are given a mangled name, pass it down
5548 to lookup_symbol_aux.
5549 (lookup_block_symbol): If we are given a mangled name to check
5550 against, only return symbols which match it.
5552 2002-03-22 Christopher Faylor <cgf@redhat.com>
5554 * win32-nat.c (child_create_inferior): Check for proper shell to use
5555 here, in case the user changes it on the fly.
5556 (_initialize_inftarg): Remove shell path considerations.
5558 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
5560 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
5561 for gdbarch_max_register_raw_size and max_register_virtual_size.
5562 Adjust copyright year.
5564 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
5566 * dbxread.c (process_one_symbol): Extend the first N_SLINE
5567 in a function to cover the entire beginning of the function
5568 as well if it does not already.
5570 2002-03-21 Tom Rix <trix@redhat.com>
5572 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
5573 (rs6000_ptrace64): Renamed from ptrace64.
5575 2002-03-20 Martin M. Hunt <hunt@redhat.com>
5577 * gdbserver/remote-utils.c (remote_open): Don't call
5578 getprotobyname, we're all using TCP here so just use
5580 * gdbserver/gdbreplay.c (remote_open): Ditto.
5582 2002-03-20 Martin M. Hunt <hunt@redhat.com>
5584 * regcache.c (_initialize_regcache): No need to call
5585 build_regcache() at this time; it gets called whenever
5586 the gdbarch changes.
5588 2002-03-20 David O'Brien <obrien@FreeBSD.org>
5590 * sparc-nat.c: Include sys/param.h where possible.
5592 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
5595 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
5596 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
5597 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
5599 * stabsread.c (rs6000_builtin_type): Likewise.
5600 (read_sun_floating_type): Likewise.
5602 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5604 * stabsread.c (read_member_functions): Remove skip code for duplicate
5605 constructor/destructor methods. Use standard parsing for these
5606 methods and just do not chain them to the list of methods after
5609 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
5611 * coffread.c: Remove redundant static declarations. Replace
5612 occurrences of `PTR' with `void *'.
5613 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
5614 * top.h (quit_cover): Likewise.
5615 * defs.h (catch_errors): Likewise.
5617 2002-03-18 Andrew Cagney <ac131313@redhat.com>
5619 * defs.h (XMALLOC): Define.
5620 * gdb-events.sh (XMALLOC): Delete macro.
5621 * gdb-events.c, gdb-events.h: Regenerate.
5622 * gdbarch.sh (XMALLOC): Delete macro.
5623 * gdbarch.c: Regenerate.
5624 * serial.c (XMALLOC): Delete macro.
5625 * ui-file.c (XMALLOC): Ditto.
5626 * ser-unix.h (XMALLOC): Ditto.
5627 * sh-tdep.c (XMALLOC): Ditto.
5628 * ui-out.c (XMALLOC): Ditto.
5629 * utils.c (XMALLOC): Ditto.
5630 * i386-tdep.c (XMALLOC): Ditto.
5631 * gdb-events.c (XMALLOC): Ditto.
5632 * d10v-tdep.c (XMALLOC): Ditto.
5633 * cli-out.c (XMALLOC): Ditto.
5635 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
5636 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
5637 * ui-file.c, ui-out.c: Ditto.
5639 2002-03-18 Andrew Cagney <ac131313@redhat.com>
5641 * command.h (struct cmd_list_element): Add field context.
5642 (set_cmd_context, get_cmd_context): Declare.
5643 * cli/cli-decode.h: Ditto.
5644 * cli/cli-decode.c (get_cmd_context): New function.
5645 (set_cmd_context): New function.
5646 (add_cmd): Initialize context.
5647 Part of fixing PR gdb/145 and PR gdb/146.
5649 2002-03-17 Andrew Cagney <ac131313@redhat.com>
5651 * cli/cli-decode.c (cmd_type): New function.
5652 * command.h (cmd_type): Declare.
5653 * infrun.c (set_schedlock_func): Call function cmd_type.
5654 * kod.c (kod_set_os): Call cmd_type.
5655 * cris-tdep.c (cris_version_update): Use function cmd_type.
5656 (cris_mode_update, cris_abi_update): Ditto.
5658 * command.h: (execute_cmd_post_hook): Declare.
5659 (execute_cmd_pre_hook): Declare.
5660 * cli/cli-script.c (clear_hook_in_cleanup): New function.
5661 (execute_cmd_post_hook, execute_cmd_pre_hook): New
5662 functions. Execute pre/post hook while ensuring that afterwords
5664 * top.c (execute_command): Use execute_cmd_post_hook, and
5665 execute_cmd_pre_hook to execute pre/post commands.
5666 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
5668 (hook_stop_stub): Call execute_cmd_pre_hook.
5670 2002-03-17 Andrew Cagney <ac131313@redhat.com>
5672 * kod.c (kod_set_os): Revert previous change. Is called by ``info
5673 set'' and this leads to a core dump. Move xstrdup of
5674 operating_system to after check that it is not NULL.
5676 2002-03-17 Andrew Cagney <ac131313@redhat.com>
5678 * kod.c (kod_set_os): Remove unnecessary check that
5679 ``command->type'' is set_cmd.
5681 * valprint.c (set_input_radix): Use input_radix.
5682 (set_output_radix): Use output_radix.
5683 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
5686 2002-03-16 Andrew Cagney <ac131313@redhat.com>
5688 * value.h (struct value): Delete field ``substring_addr''. Change
5689 aligner fields to force_doublest_align, force_longest_align,
5690 force_core_addr_align and force_pointer_aligh.
5692 * value.h (struct value): Fix typo in above change.
5694 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5696 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
5697 to fix internal_error from ``maintenance print architecture''.
5699 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5701 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
5702 for gcc versions after gcc-2.8.1.
5704 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5706 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
5707 for method resolution. Restore adjustment of ``this'' pointer after
5708 calling value_struct_elt, which was accidentally removed during the
5711 2002-03-15 Andrew Cagney <ac131313@redhat.com>
5713 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
5715 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
5717 * value.h (value_of_register): Update.
5719 2002-03-14 Richard Henderson <rth@redhat.com>
5721 * configure.in: Detect declaration for canonicalize_file_name.
5722 * utils.c (canonicalize_file_name): Declare, if needed.
5723 (gdb_realpath): Prefer realpath if available and usable.
5724 * config.in, configure: Rebuild.
5726 2002-03-14 Richard Henderson <rth@redhat.com>
5728 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
5729 a constant array bound.
5731 * MAINTAINERS: Add myself to write-after-approval.
5733 2002-03-14 Michael Snyder <msnyder@redhat.com>
5735 * symfile.c (syms_from_objfile): Return immediately if no syms.
5736 (symbol_file_add): Return immediately if no syms.
5737 (find_sym_fns): Return immediately if no syms.
5739 2002-03-13 Michal Ludvig <mludvig@suse.cz>
5741 * gdbserver/remote-util.c (remote_open): Print remote-side's
5742 IP address when remote debugging over the network.
5744 2002-03-12 David O'Brien <obrien@FreeBSD.org>
5746 * config/sparc/fbsd.mh: Fix copyright.
5747 * config/sparc/fbsd.mt: Likewise.
5749 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
5751 * MAINTAINERS: Fix typo in name of gdb warnings option.
5752 (x86-64): Fix formating so that this can be parsed by awk.
5754 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
5756 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
5757 * defs.h: Include "gdb/signals.h".
5758 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
5760 2002-03-10 Michal Ludvig <mludvig@suse.cz>
5762 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
5763 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
5766 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
5767 Don Howard <dhoward@redhat.com>
5769 * mips-tdep.c (ST0_FR): Define.
5770 (mips2_fp_compat): New function, temporarily disabled.
5771 (mips_read_fp_register_single): New function.
5772 (mips_read_fp_register_double): New function.
5773 (mips_print_register): Use them.
5774 (do_fp_register_row): Likewise.
5776 2002-03-09 Andrew Cagney <ac131313@redhat.com>
5778 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
5781 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5783 * stabsread.c (read_member_functions): Fix is_stub test for
5784 static member functions, improve comment.
5786 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
5788 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
5789 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
5790 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
5791 commands that set boolean values.
5792 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
5793 (arm_rdi_resume): Always initialize PC.
5794 (arm_rdi_open): Don't use rslt as a boolean.
5795 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
5796 (arm_rdi_fetch_registers, arm_rdi_store_registers)
5797 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
5798 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
5800 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
5802 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
5803 * configure: Rebuilt.
5805 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5807 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
5808 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
5810 2002-03-06 Andrew Cagney <ac131313@redhat.com>
5812 * cli/cli-decode.c (set_cmd_completer): New function.
5813 * command.h (set_cmd_completer): Declare.
5814 * cli/cli-decode.h (set_cmd_completer): Ditto.
5816 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
5817 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5818 * win32-nat.c (_initialize_inftarg): Ditto.
5819 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5820 * proc-api.c (_initialize_proc_api): Ditto.
5821 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
5822 * source.c (_initialize_source): Ditto.
5823 * exec.c (_initialize_exec): Ditto.
5824 * solib.c (_initialize_solib): Ditto.
5825 * top.c (init_main): Ditto.
5826 * tracepoint.c (_initialize_tracepoint): Ditto.
5827 * symfile.c (_initialize_symfile): Ditto.
5828 * printcmd.c (_initialize_printcmd): Ditto.
5829 * infcmd.c (_initialize_infcmd): Ditto.
5830 * corefile.c (_initialize_core): Ditto.
5832 2002-03-05 Andrew Cagney <ac131313@redhat.com>
5834 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
5836 2002-03-05 Andrew Cagney <ac131313@redhat.com>
5838 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
5840 2002-03-05 Andrew Cagney <ac131313@redhat.com>
5842 * NEWS: Update headings, 5.2 has branched.
5844 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
5846 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
5847 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
5848 (register_addr, REGISTER_RAW_SIZE): Likewise.
5849 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
5850 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
5852 2002-03-03 Michal Ludvig <mludvig@suse.cz>
5854 * MAINTAINERS (x86-64): Add myself.
5855 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
5856 changed value_ptr -> struct value *
5858 2002-03-01 David O'Brien <obrien@FreeBSD.org>
5860 * configure.host (sparc64-*-freebsd): Add.
5861 * configure.tgt: Likewise.
5862 * config/sparc/fbsd.mh: New file.
5863 * config/sparc/fbsd.mt: Likewise.
5864 * config/sparc/nm-fbsd.h: Likewise.
5865 * config/sparc/tm-fbsd.h: Likewise.
5867 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
5869 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
5870 regformats/reg-s390x.dat.
5872 2002-03-01 Andrew Cagney <ac131313@redhat.com>
5874 * utils.c: Add FIXME explaining true/false problem.
5876 2002-02-28 Andrew Cagney <ac131313@redhat.com>
5878 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
5880 2002-02-28 Michael Chastain <mec@shout.net>
5882 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
5884 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
5886 * gdbserver/linux-s390-low.c: New file.
5887 * regformats/reg-s390.dat: New file.
5888 * regformats/reg-s390x.dat: New file.
5889 * gdbserver/configure.srv: Add S/390.
5890 * gdbserver/Makefile.in: Add S/390.
5891 * configure.tgt: Enable gdbserver for S/390.
5893 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
5895 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
5896 first line of the doc string for "info dos", except at the end of
5897 the sentence, since the short help stops at the first period.
5899 2002-02-28 Jason Merrill <jason@redhat.com>
5901 * dwarf2read.c (dwarf_cfi_name): Add new codes.
5903 2002-02-27 Fred Fish <fnf@redhat.com>
5905 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
5906 comment (dumy -> dummy).
5908 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5910 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
5912 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
5914 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
5916 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
5918 * gdbserver/acconfig.h: New file.
5919 * gdbserver/i387-fp.c: New file.
5920 * gdbserver/i387-fp.h: New file.
5921 * gdbserver/linux-x86-64.c: New file.
5922 * regformats/reg-x86-64.dat: New file.
5923 * configure.tgt: Add x86_64-*-linux* gdbserver support.
5924 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
5925 * gdbserver/configure.in: Add support for regsets.
5926 * gdbserver/config.in: Regenerate.
5927 * gdbserver/configure: Regenerate.
5928 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
5929 * gdbserver/linux-low.h: New file.
5930 * gdbserver/linux-low.c: Include "linux-low.h". Add support
5932 * gdbserver/linux-arm-low.c: Include "linux-low.h".
5933 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
5934 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
5935 * gdbserver/linux-mips-low.c: Include "linux-low.h".
5936 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
5937 * gdbserver/linux-sh-low.c: Include "linux-low.h".
5938 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
5939 "i387-fp.h". Add PTRACE_GETREGS and friends.
5940 * gdbserver/regcache.c (supply_register): New function.
5941 (supply_register_by_name): New function.
5942 (collect_register): New function.
5943 (collect_register_by_name): New function.
5945 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
5947 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
5948 (config.status): Add configure.srv dependency.
5949 (server_h): Add config.h dependency.
5951 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
5953 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
5954 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
5955 * gdbserver/configure.srv: Change i386-*-linux* to use
5958 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5960 * x86-64-tdep.c: Re-indent. Update copyright date.
5962 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5964 From Michal Ludvig <mludvig@suse.cz>:
5965 * x86-64-tdep.c (value.h): Delete.
5966 (gdb_assert.h): Include.
5967 (x86_64_register_convert_to_virtual,
5968 x86_64_register_convert_to_raw ): Add check which lets only
5969 floating-point values to be converted.
5970 (value_push): Delete.
5971 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
5972 (i386_gdbarch_init): Number of register_bytes fixed.
5974 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5976 * MAINTAINERS: Add x86-64 target.
5978 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5980 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
5981 * osfsolib.c (solib_map_sections): Ditto.
5982 * irix5-nat.c (solib_map_sections): Ditto.
5983 * corelow.c (gdb_check_format): Ditto.
5984 * symfile.c (symfile_bfd_open): Ditto.
5985 * solib.c (solib_map_sections): Ditto.
5988 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5990 * remote.c (_initialize_remote): By default, disable ``e'' and
5991 ``E'' step out-of-range packets.
5993 2002-02-26 Andreas Schwab <schwab@suse.de>
5995 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
5996 m68k_linux_frame_saved_pc.
5997 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
5999 (SIGCONTEXT_PC_OFFSET): Remove.
6000 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
6001 m68k_linux_sigtramp_saved_pc): New functions.
6002 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
6003 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
6004 (UCONTEXT_PC_OFFSET): Define.
6005 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
6006 non-RT and RT signal trampolines.
6008 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
6010 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
6011 (TARGET_NBPG, STACK_END_ADDR): Delete
6012 (VARIABLES_INSIDE_BLOCK): Delete.
6014 2002-02-25 Andrew Cagney <ac131313@redhat.com>
6016 * utils.c (perror_with_name): Make string parameter constant.
6017 (print_sys_errmsg): Ditto.
6019 * defs.h (perror_with_name): Update.
6020 (print_sys_errmsg): Update.
6023 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
6025 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
6026 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
6028 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6030 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
6031 if it already matches the current architecture from the exec file.
6032 Include arch-utils.h for gdbarch_info_init prototype.
6033 * Makefile.in (rs6000-nat.o): Update dependencies.
6035 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
6037 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
6038 list of exported variables.
6040 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
6042 * gdbserver/configure.srv: New file.
6043 * gdbserver/configure.in: Use configure.srv instead
6044 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
6046 * gdbserver/configure: Regenerated.
6047 * gdbserver/terminal.h: New file.
6048 * gdbserver/Makefile.in: Update for configure changes. Remove
6049 more unneeded include paths.
6051 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6053 From wiz at danbala:
6054 * config/sparc/tm-sp64.h: Fix grammar and typos.
6057 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6059 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
6060 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
6061 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
6062 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
6063 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
6064 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
6065 * s390-tdep.c: Ditto.
6066 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
6067 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
6068 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
6069 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
6070 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
6071 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
6072 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
6073 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
6074 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
6075 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
6078 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6080 * lin-thread.c: Delete file.
6081 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
6082 to gdb_proc_service.h.
6083 * configure: Re-generate.
6085 * ocd.c (ocd_open): Do not try to open the "ocd" device.
6086 * serial.c (serial_open): Delete check for "ocd".
6089 * Makefile.in (linux-thread.o): Delete target.
6090 * linux-thread.c: Delete file.
6092 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
6093 renamed SH files to be consistent.
6095 * symtab.c (sort_search_symbols): Use xfree.
6097 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6099 * arm-linux-tdep.c (arm_linux_init_abi): Register
6100 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
6101 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
6102 definition with undef, since we don't want the sysvr4 definition.
6103 (SKIP_TRAMPOLINE_CODE): Likewise.
6105 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6107 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
6109 * configure.in: (AC_CHECK_FUNCS) Added test for
6110 canonicalize_file_name Regenerated.
6111 * config.in, configure: Regenerated.
6112 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
6113 defined use canonicalize_file_name.
6115 2002-02-23 Michael Chastain <mec@shout.net>
6117 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
6119 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6121 * README: Remove references to cygnus.com.
6122 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
6123 dot com'' form. Remove references to cygnus.com and sourceware.
6125 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6127 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
6128 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
6129 1003.1-2001 no longer allows "head -1".
6130 * gdb/Makefile.in (version.c): Likewise.
6131 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
6132 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
6133 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
6135 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6137 * cli/cli-decode.c (cmd_cfunc_eq): New function.
6138 * command.h (cmd_cfunc_eq): Declare.
6139 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
6141 * cli/cli-cmds.h (is_complete_command): Change parameter to a
6142 ``struct cmd_list_element *''.
6143 * cli/cli-cmds.c (is_complete_command): Update. Use
6145 * top.c (execute_command): Pass the command to
6146 is_complete_command.
6147 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
6149 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6151 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
6152 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
6153 architecture defines.
6154 * s390-tdep.c (s390_gdbarch_init): Likewise.
6156 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6158 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
6159 (arm_linux_push_arguments): Likewise.
6160 (arm_linux_init_abi): Register them. Also register linux-specific
6162 (find_minsym_and_objfile): Use strcmp, not STREQ.
6163 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
6164 (arm_linux_call_dummy_words): Delete declaration.
6165 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
6166 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
6168 (LOWEST_PC): Delete.
6170 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6172 * maint.c (print_section_info): Do not prepend `0x' to filepos
6173 output, it will be handled by local_hex_string_custom.
6175 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6177 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
6178 (store_newfpe_double, store_newfpe_extended, store_fpregister)
6179 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
6181 2002-02-22 Jim Blandy <jimb@redhat.com>
6183 Indicate that the bcache functions don't change the strings
6185 * bcache.h (bcache, hash): Add `const' keywords to declarations.
6186 * bcache.c (bcache, hash): Add `const' keywords to definitions.
6188 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
6190 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
6192 2002-02-21 Christopher Faylor <cgf@redhat.com>
6194 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
6195 find the complete path to a loaded DLL.
6197 2002-02-21 Fred Fish <fnf@redhat.com>
6199 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
6200 that marks the end of the range of a function, enter a line number
6201 entry that has a line number of zero and a PC offset that matches
6202 the end of the function. This starts a range of PC's for which no
6203 line number information is known.
6204 * symtab.c (find_pc_sect_line): If our best fit is in a range of
6205 PC's for which no line number info is found (line number is zero)
6206 then we didn't find any valid line information.
6207 * symtab.h: Document use of zero line number entry.
6209 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
6211 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
6212 (have_ptrace_getvrregs): Define for run time checks.
6213 (gdb_vrregset_t): New type for Altivec register handling.
6214 (fetch_register, store_register): Fetch/store altivec register
6216 (fetch_altivec_register, store_altivec_register): New functions.
6217 (supply_vrregset, fill_vrregset): New functions.
6218 (fetch_altivec_registers, store_altivec_registers): New functions.
6219 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
6222 2002-02-21 Jiri Smid <smid@suse.cz>
6224 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
6226 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6228 * Makefile.in (armnbsd-nat.o): Update dependencies.
6229 * armnbsd-nat.c (supply_gregset): New function. Common code to
6230 supply the integer register set.
6231 (supply_fparegset): New function. Similar for FPA registers.
6232 (fetch_regs, fetch_fp_regs): Use them.
6233 (fetch_core_registers): Likewise.
6234 (fetch_elfcore_registers): New function.
6235 (arm_netbsd_elfcore_fns): New core-file type specification.
6236 (_initialize_arm_netbsd_nat): Register it.
6238 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6240 * armnbsd-nat.c: Include gdbcore.h.
6241 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
6242 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
6243 'void' to declaration, to shut up ARI.
6244 (fetch_core_registers): Make static. Rewrite using supply_register.
6245 (arm_netbsd_core_fns): New core-file type specification.
6246 (_initialize_arm_netbsd_nat): New function.
6248 2002-02-21 Christopher Faylor <cgf@redhat.com>
6250 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
6253 2002-02-20 Christopher Faylor <cgf@redhat.com>
6255 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
6258 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6260 * jv-exp.y (parse_number): Change type of implicit longs
6261 to builtin_type_uint64.
6263 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6265 * gdbserver/linux-low.c (mywait): Change argument to waitpid
6266 to be an integer instead of a `union wait'.
6268 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6270 * mips-linux-nat.c: Call the operating system GNU/Linux.
6271 * mips-linux-tdep.c: Likewise.
6272 * mips-tdep.c: Likewise.
6274 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6277 * jv-exp.y (parse_number): Handle 64-bit integers.
6279 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6281 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
6282 AC_STDC_HEADERS to AC_HEADER_STDC.
6283 * gdbserver/configure: Regenerated.
6285 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6287 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
6289 * sparc-tdep.c (get_longjmp_target): Likewise.
6291 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6293 * News: Add news about ARM and Multi-arch. Mention the new target
6296 2002-02-19 Jim Blandy <jimb@redhat.com>
6298 * stabsread.c (error_type_complaint): Improve error message.
6300 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
6302 * gdbserver/README: Update documentation.
6303 * gdbserver/configure.in: Update configury to match documentation.
6304 * gdbserver/Makefile.in: Likewise.
6305 * gdbserver/configure: Regenerated.
6306 * gdbserver/aclocal.m4: New file, generated by aclocal.
6307 * gdbserver/config.in: New file, generated by autoheader.
6309 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6311 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
6314 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6316 * arm-tdep.h (enum arm_float_model): New enum.
6317 (struct gdbarch_tdep): Add fp_model.
6318 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
6319 up floating-point conversions until we know the floating-point model
6320 in use by the inferior. Don't complain about being unable to
6321 determine the ABI of the inferior when we don't have one.
6322 (arm_extract_return_value): Support different floating-point models.
6323 (arm_store_return_value): Likewise.
6324 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
6326 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
6328 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6330 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
6331 of ``current_gdbarch''.
6333 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6335 * armnbsd-nat.c : ANSIfy all function declarations.
6336 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
6337 (fetch_inferior_registers): Re-implement in terms of above.
6338 (store_register, store_regs, store_fp_register, store_fp_regs): New.
6339 (store_inferior_registers): Re-implement in terms of above.
6341 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6343 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
6345 * arm-linux-tdep.c: Likewise.
6346 * config/arm/tm-linux.h: Likewise.
6348 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6350 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
6351 * config/arm/nbsd.mt (TM_FILE): Delete.
6352 * config/arm/tm-nbsd.h: Delete.
6354 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6356 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
6357 Initialize CALL_DUMMY_LENGTH.
6359 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6361 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
6363 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
6364 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
6365 defines one thing and that is incorrect for this port.
6366 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
6368 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6370 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
6372 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6374 * win32-nat.c (display_selector): New function. Displays information
6375 about the information returned by GetThreadSelectorEntry API function.
6376 (display_selectors): New function. Displays the infomation of
6377 the selector given as argument, or of CS, DS ans FS selectors
6378 if no argument is given.
6379 ( _initialize_inftarg): Add "w32" as info prefix command.
6380 Add "info w32 selector" as command calling display_selectors.
6382 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
6384 * i386-tdep.c (get_longjmp_target): Fix compilation failure
6385 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
6388 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6390 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
6392 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6394 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
6395 (arm_fix_call_dummy): Call it.
6396 (arm_call_dummy_breakpoint_offset): Delete.
6397 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
6398 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6400 2002-02-18 Andrew Cagney <ac131313@redhat.com>
6402 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
6403 Default to func_frame_chain_valid.
6404 * gdbarch.h, gdbarch.c: Re-generate.
6405 * frame.h (FRAME_CHAIN_VALID): Delete definition.
6407 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
6409 * ppc-linux-nat.c: Update copyright.
6410 (fetch_register, store_register): Add tid parameter, don't compute
6412 (fetch_ppc_registers, store_ppc_registers): Add tid
6413 parameter. Pass it along to callees.
6414 (fetch_inferior_registers, store_inferior_registers): Compute tid
6415 here, and pass it to calleed functions.
6416 (fill_gregset, supply_fpregset): Clean up formatting.
6418 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6420 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
6421 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
6423 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6425 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
6426 * gdbarch.c gdbarch.h: Regenerate.
6427 * breakpoint.c (create_longjmp_breakpoint): Always compile this
6429 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
6430 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
6431 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
6433 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
6434 * arm-tdep.c (arm_get_longjmp_target): New function.
6435 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
6436 this to a positive value register arm_get_longjmp_target as the
6438 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
6439 (arm_linux_init_abi): Set up longjmp description in tdep.
6440 * armnbsd-nat.c (get_longjmp_target): Delete.
6441 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
6442 description in tdep.
6443 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
6444 (get_longjmp_target): Delete declaration.
6445 (GET_LONGJMP_TARGET): Delete.
6446 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
6447 (GET_LONGJMP_TARGET): Delete.
6449 2002-02-17 Kevin Buettner <kevinb@redhat.com>
6451 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
6452 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
6453 of ``current_gdbarch''.
6455 2002-02-17 Tom Tromey <tromey@redhat.com>
6457 * cli/cli-cmds.c (compare_strings): New function.
6458 (complete_command): Only print each unique item once.
6459 * completer.h (complete_line): Declare.
6460 * completer.c (complete_line): New function.
6461 (line_completion_function): Use it.
6463 2002-02-16 Andrew Cagney <ac131313@redhat.com>
6465 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
6466 * gdbarch.h, gdbarch.c: Re-generate.
6468 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
6470 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
6472 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
6474 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6475 * valops.c (value_arg_coerce): Don't take the address of a reference
6476 to convert an argument to a reference.
6478 2002-02-15 Christopher Faylor <cgf@redhat.com>
6480 * win32-nat.c (get_image_name): New function.
6481 (handle_load_dll): Use get_image_name function.
6482 (get_child_debug_event): Avoid registering debug events until possibly
6483 execed process is started.
6484 (child_create_inferior): Allow invocation via shell so that command
6485 line redirection, etc. works ok.
6486 (_initialize_inftarg): Add new command: "set shell" to control whether
6487 a shell is used to start a process.
6489 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
6491 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
6492 instead of find_register_by_number.
6493 (cannot_store_register): Likewise.
6495 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
6497 * dwarf2read.c: Replace fprintf (stderr, ...) by
6498 fprintf_unfiltered (gdb_stderr, ...).
6500 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
6502 * gdbserver/gdbserver.1: Document --attach.
6504 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
6506 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
6508 * arm-tdep.c (arm_default_arm_le_breakpoint)
6509 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
6510 (arm_default_thumb_be_breakpoint): New. Initialize them from
6511 traditional breakpoint defines.
6512 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
6513 (arm_gdbarch_init): Initialize new breakpoint variables.
6514 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
6515 (arm_linux_init_abi): Initialize linux-specific breakpoint.
6516 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
6517 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
6519 (arm_netbsd_init_abi_common): ... here; new function.
6520 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
6521 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
6522 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
6523 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
6525 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
6527 * arm-tdep.h (enum arm_abi): New enum.
6528 (struct gdbarch_tdep): New structure.
6529 (LOWEST_PC): Provide a default.
6530 (arm_gdbarch_register_os_abi): Declare new function.
6531 * arm-tdep.c (arm_abi_names): New array.
6532 (process_note_abi_tag_sections): New function.
6533 (get_elfosabi): New function.
6534 (arm_gdbarch_register_os_abi): New function.
6535 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
6536 support for that ABI has been built in, then call the appropriate
6537 configuration routine. Use gdbarch_num_regs() to get the number
6539 (arm_dump_tdep): New function.
6540 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
6541 place-holder functions.
6542 (_initialize_arm_tdep): Register them.
6543 * config/arm/tm-arm.h (LOWEST_PC): Delete.
6545 * armnbsd-tdep.c: New file.
6546 * Makefile.in (armnbsd-tdep.o): Add dependencies.
6547 * config/arm/nbsd.mt (TDEPFILES): Add it.
6548 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
6550 * armnbsd-nat.c: Include regcache.h.
6551 * Makefile.in (armnbsd-nat.o): Update dependency list.
6553 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
6555 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6557 * gdbserver/Makefile.in: Fix typos in target rules.
6559 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6561 Fix part of PR gdb/267.
6562 * linespec.c (find_methods): Handle constructors specially for now.
6564 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
6566 * arm-tdep.c (arm_push_arguments): Eliminate special float type
6568 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
6569 standard_coerce_float_to_double().
6571 2002-02-14 Christopher Faylor <cgf@redhat.com>
6573 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
6576 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
6578 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
6579 find_variant_by_name, because it confuses the multiarch
6580 framework. Return NULL if there isn't an architecture with the
6581 user supplied name, instead of forcing a different one without
6582 recording the change with the multiarch machinery.
6583 (find_variant_by_name): Delete.
6585 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6587 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
6588 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
6590 2002-02-13 Martin M. Hunt <hunt@redhat.com>
6592 * stack.c (print_frame_info_base): When calling
6593 print_frame_info_listing_hook, set current_source_symtab.
6595 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6597 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
6598 and remove unused $(INCLUDE_DIR).
6599 Add regcache.c to OBS.
6600 Add generated register protocol files to clean target.
6601 Update dependencies for new objects, obsolete old target code.
6603 * gdbserver/linux-low.c: Remove all platform-specific code to
6604 new files. Remove various dead code. Update to use regcache
6606 * gdbserver/remote-utils.c (fromhex): Add return statement
6608 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
6610 (input_interrupt): Add integer parameter to match prototype
6611 of a signal handler.
6612 (outreg): Use register_data ().
6613 (prepare_resume_reply): Use gdbserver_expedite_regs.
6614 * gdbserver/server.c (main): Dynamically allocate own_buf because
6615 PBUFSIZ is no longer constant. Use registers_to_string () and
6616 registers_from_string ().
6617 * gdbserver/server.h: No longer include "defs.h". Add prototypes
6618 for error (), fatal (), and warning (). Update definition of
6619 PBUFSIZ to use regcache functionality. Add include guard.
6620 * gdbserver/utils.c (fatal): Add missing ``const''.
6621 (warning): New function.
6623 * regformats/regdat.sh: Include "regcache.h" in generated files.
6624 Provide init_registers () function.
6625 * regformats/regdef.h: Add prototype for set_register_cache ().
6628 * gdbserver/linux-arm-low.c: New file.
6629 * gdbserver/linux-i386-low.c: New file.
6630 * gdbserver/linux-ia64-low.c: New file.
6631 * gdbserver/linux-m68k-low.c: New file.
6632 * gdbserver/linux-mips-low.c: New file.
6633 * gdbserver/linux-ppc-low.c: New file.
6634 * gdbserver/linux-sh-low.c: New file.
6636 * gdbserver/regcache.c: New file.
6637 * gdbserver/regcache.h: New file.
6639 * gdbserver/low-linux.c: Removed obsolete file.
6641 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6643 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
6644 * config/i386/linux.mt: Likewise.
6645 * config/ia64/linux.mt: Likewise.
6646 * config/m68k/linux.mh: Likewise.
6647 * config/powerpc/linux.mh: Likewise.
6648 * config/mips/linux.mt: Likewise.
6650 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
6652 * config/i386/i386lynx.mh: Mark gdbserver variables
6653 as (currently) obsolete for this target.
6654 * config/i386/nbsd.mt: Likewise.
6655 * config/i386/nbsdelf.mt: Likewise.
6656 * config/m32r/m32r.mt: Likewise.
6657 * config/m68k/m68klynx.mh: Likewise.
6658 * config/m68k/nbsd.mt: Likewise.
6659 * config/m68k/sun3os4.mh: Likewise.
6660 * config/mips/vr5000.mt: Likewise.
6661 * config/ns32k/nbsd.mt: Likewise.
6662 * config/pa/hppabsd.mh: Likewise.
6663 * config/pa/hppaosf.mh: Likewise.
6664 * config/powerpc/nbsd.mt: Likewise.
6665 * config/rs6000/rs6000lynx.mh: Likewise.
6666 * config/s390/s390.mt: Likewise.
6667 * config/s390/s390x.mt: Likewise.
6668 * config/sparc/sparclynx.mh: Likewise.
6669 * config/sparc/sun4os4.mh: Likewise.
6670 * config/i386/x86-64linux.mt: Likewise.
6671 * config/sparc/linux.mh: Likewise.
6673 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6675 * configure.tgt: Configure gdbserver only for known working
6676 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
6677 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
6678 SUBDIRS if it is configured. Update comment for ${nativefile}.
6679 * configure: Regenerated.
6681 2002-02-13 Michael Snyder <msnyder@redhat.com>
6683 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
6685 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
6686 (default_gcore_mach): Just return 0, work around a problem in bfd.
6687 (default_gcore_target): OK to return NULL if exec_bfd is null.
6688 (make_mem_sec): Use a cast, avoid a warning.
6690 * procfs.c (find_memory_regions_callback): Use a cast instead of
6691 calling host_pointer_to_address (which complains if
6692 sizeof (host pointer) != sizeof (target pointer)).
6693 (procfs_make_note_section): Avoid overflow in psargs string.
6695 * procfs.c (procfs_make_note_section): Make the default
6696 implementation return an error.
6698 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
6700 * procfs.c (procfs_make_note_section): Provide a default definition
6701 (for alpha-dec-osf4.0f). Fix typos.
6703 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
6705 * linux-proc.c: Add include of regcache.h.
6706 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
6708 2002-02-13 Andrew Cagney <ac131313@redhat.com>
6710 From 2002-01-18 Greg McGary <greg@mcgary.org>:
6711 * memattr.c (create_mem_region): Disallow useless empty region.
6712 Regions are half-open intervals, so allow [A..B) [B..C) as
6715 2002-02-13 Michael Chastain <mec@shout.net>
6717 * defs.h: Kill CONST_PTR.
6718 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
6719 * c-lang.c (c_builtin_types): Likewise.
6720 * ch-lang.c (ch_builtin_types): Likewise.
6721 * f-lang.c (f_builtin_types): Likewise.
6722 * language.c (unknown_builtin_types): Likewise.
6723 * m2-lang.c (m2_builtin_types): Likewise.
6724 * p-lang.c (pascal_builtin_types): Likewise.
6725 * scm-lang.c (c_builtin_types): Likewise.
6727 2002-02-13 Keith Seitz <keiths@redhat.com>
6729 * arm-tdep.h (arm_get_next_pc): Add declaration.
6731 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
6733 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
6734 with other related struct-returning functions.
6735 (arm_extract_struct_value_address): New function.
6736 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
6737 initialize float_format, double_format and long_double_format as
6738 appropriate to the endianness of the target.
6739 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
6740 (arm_use_struct_convention): Delete declaration.
6741 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
6743 2002-02-13 Keith Seitz <keiths@redhat.com>
6745 * defs.h (core_addr_to_string_nz): New function.
6747 2002-02-13 Mark Kettenis <kettenis@gnu.org>
6749 Apply missing bits of 2002-01-15 patch.
6750 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
6751 (fill_fpregset): Use i387_fill_fsave.
6753 2002-02-12 Keith Seitz <keiths@redhat.com>
6755 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
6756 (core_addr_to_string_nz): New function.
6758 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6760 * arm-linux-nat.c: Really include arm-tdep.h.
6761 * config/arm/tm-linux.h (struct type, struct value): Declare.
6763 2002-02-11 Michael Snyder <msnyder@redhat.com>
6765 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
6766 (gcore section): Ifdef for Solaris and Unixware only.
6767 (procfs_do_thread_registers): Unixware needs one lwpstatus
6768 per thread (not one prstatus or pstatus).
6769 (procfs_make_note_section): Iterate only over kernel threads (lwps),
6770 not over all gdb threads. For unixware, call elfcore_write_pstatus
6771 once before iterating over threads.
6773 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6775 * arm-tdep.h: New file.
6776 * arm-tdep.c: Include arm-tdep.h.
6777 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6778 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6779 (arm_print_float_info, arm_register_type, convert_to_extended)
6780 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6781 (arm_extract_return_value, arm_register_name): Make static.
6782 (arm_software_single_step): Similarly. Fix types in declaration.
6783 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
6784 (arm_store_return_value, arm_store_struct_return): New functions.
6785 (arm_gdbarch_init): Register the above functions. Also register
6786 call_dummy_start_offset, sizeof_call_dummy_words,
6787 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
6788 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
6789 max_register_virtual_size, register_size. Set up
6790 prologue_cache.saved_regs here, rather than ...
6791 (_initialize_arm_tdep): ... here.
6792 * config/arm/tm-arm.h (struct type, struct value): Delete forward
6794 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6795 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6796 (arm_print_float_info, arm_register_type, convert_to_extended)
6797 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6798 (arm_extract_return_value, arm_register_name): Delete declarations.
6799 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
6800 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
6801 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
6802 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
6803 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6804 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
6805 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
6806 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
6807 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
6808 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
6809 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
6810 (arm_get_next_pc): No-longer static -- these are needed by the RDI
6812 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
6813 * remote-rdi.c remote-rdp.c: Likewise.
6814 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
6815 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
6816 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
6819 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
6820 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
6821 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
6822 from non-ARM_ prefixed definitions.
6823 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
6825 * remote-rdi.c remote-rdp.c: Likewise.
6826 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
6828 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6830 * arm-tdep.c (arm_frameless_function_invocation)
6831 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6832 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6833 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6834 (arm_pop_frame, arm_get_next_pc): Make static.
6835 (arm_gdbarch_init): Register above in gdbarch structure.
6836 (arm_read_fp): Renamed from arm_target_read_fp.
6837 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
6838 * config/arm/tm-arm.h (arm_frameless_function_invocation)
6839 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6840 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6841 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6842 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
6843 (arm_pc_is_thumb_dummy): Delete declarations.
6844 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
6845 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
6846 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
6847 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
6849 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
6851 * symtab.c (compare_search_syms): New function.
6852 (sort_search_symbols): New function.
6853 (search_symbols): Sort symbols after searching rather than
6856 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6858 * NEWS: Linux -> GNU/Linux.
6860 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6862 * gdbarch.sh: For for level one methods, disallow a definition
6863 when partially multi-arched. Add comments explaining rationale.
6864 * gdbarch.h: Re-generate.
6866 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6868 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
6871 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6873 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
6875 * gdbarch.c: Re-generate.
6877 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6879 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
6880 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
6883 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6885 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
6887 (PUSH_ARGUMENTS): Switch to using predefault.
6888 * gdbarch.c: Regenerate.
6890 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6892 * valops.c (PUSH_ARGUMENTS): Delete definition.
6893 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
6894 partial. Default to default_push_arguments.
6895 * gdbarch.h, gdbarch.c: Regenerate.
6897 2002-02-09 Andrew Cagney <ac131313@redhat.com>
6899 * defs.h (throw_exception): Rename return_to_top_level. Update
6901 * utils.c (error_stream, internal_verror, quit): Ditto.
6902 * top.c (throw_exception, catcher): Ditto.
6903 * sparclet-rom.c (sparclet_load): Ditto.
6904 * remote.c (interrupt_query, minitelnet): Ditto.
6905 * remote-sds.c (interrupt_query): Ditto.
6906 * remote-mips.c (mips_error, mips_kill): Ditto.
6907 * ocd.c (interrupt_query): Ditto.
6908 * monitor.c (monitor_interrupt_query): Ditto.
6909 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
6910 * target.h: Update comment.
6912 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
6914 2002-02-09 Andrew Cagney <ac131313@redhat.com>
6916 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
6917 default_double_format.
6918 * gdbarch.h, gdbarch.c: Re-generate.
6919 * findvar.c (floatformat_unknown): Delete variable definition.
6920 * doublest.h (floatformat_unknown): Delete variable declaration.
6922 2002-02-09 Jim Blandy <jimb@redhat.com>
6924 * stabsread.c (read_type): Add code to parse Sun's syntax for
6925 prototyped function types.
6927 2002-02-09 Andrew Cagney <ac131313@redhat.com>
6929 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
6930 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
6932 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6934 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
6935 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
6936 now _initialize_xcoffsolib gets called again and overrides the
6937 commands from solib.c in a native configuration.
6939 2002-02-09 Mark Kettenis <kettenis@gnu.org>
6941 * doublest.c (store_typed_floating): Don't try to return a value.
6944 2002-02-08 Jim Blandy <jimb@redhat.com>
6946 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
6947 is prototyped and has no arguments, print its argument list as
6950 2002-02-08 Chris Demetriou <cgd@broadcom.com>
6952 * MAINTAINERS (write-after-approval): Add myself.
6953 (paper-trail): I've escaped!
6955 2002-02-08 Christopher Faylor <cgf@redhat.com>
6957 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
6959 (_initialize_check_for_gdb_ini): Ditto.
6961 2002-02-08 Martin M. Hunt <hunt@redhat.com>
6963 * win32-nat.c (cygwin_pid_to_str): Fix typo.
6964 xaprintf -> xasprintf.
6966 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
6968 * win32-nat.c: Remove use of printf and sprintf functions.
6970 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
6972 * arm-tdep.c (arm_frame_chain_valid): Make static.
6973 (arm_push_arguments): Likewise.
6974 (arm_gdbarch_init): New function.
6975 (_initialize_arm_tdep): Call it.
6976 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
6977 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
6978 (FRAME_CHAIN_VALID): Delete.
6979 (arm_frame_chain_valid): Delete declaration.
6980 (PUSH_ARGUMENTS): Delete.
6981 (arm_push_arguments): Delete declaration.
6982 (CALL_DUMMY_P): Delete.
6984 2002-02-08 Andrew Cagney <ac131313@redhat.com>
6985 Corinna Vinschen <vinschen@redhat.com>
6987 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
6988 on builtin float types.
6990 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
6992 * utils.c: Include <curses.h> before "bfd.h".
6993 * tui/tui-hooks.c: Likewise.
6994 * tui/tui.c: Likewise.
6995 * tui/tuiCommand.c: Likewise.
6996 * tui/tuiData.c: Likewise.
6997 * tui/tuiDataWin.c: Likewise.
6998 * tui/tuiDisassem.c: Likewise.
6999 * tui/tuiGeneralWin.c: Likewise.
7000 * tui/tuiIO.c: Likewise.
7001 * tui/tuiLayout.c: Likewise.
7002 * tui/tuiRegs.c: Likewise.
7003 * tui/tuiSource.c: Likewise.
7004 * tui/tuiSourceWin.c: Likewise.
7005 * tui/tuiStack.c: Likewise.
7006 * tui/tuiWin.c: Likewise.
7008 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
7010 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
7011 to include space for pseudoregs as well. Update loops accordingly.
7012 (sh_fp_frame_init_saved_regs): Ditto.
7013 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
7015 2002-02-07 Andrew Cagney <ac131313@redhat.com>
7017 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
7018 Add Richard Earnshaw to Arm maintainers.
7020 2002-02-07 Andrew Cagney <ac131313@redhat.com>
7022 * defs.h (warning_begin): Delete declaration.
7024 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
7027 2002-02-07 Michael Snyder <msnyder@redhat.com>
7029 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
7030 Logic bug, remove misplaced else.
7032 2002-02-07 Klee Dienes <klee@apple.com>
7034 * fork-inferior.c (fork_inferior): Add '!' to the list of
7035 characters that need to be quoted when building a string for the
7036 shell. Quote '!' specifically with a backslash, since CSH chokes
7037 when trying to evaluate "str!str".
7039 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
7041 * rdi-share/host.h: Only provide a typedef for bool if it is not
7044 2002-02-04 Michael Snyder <msnyder@redhat.com>
7046 * breakpoint.h (enum bptype): Add new overlay event bp type.
7047 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
7049 * breakpoint.c (create_internal_breakpoint): New function.
7050 (internal_breakpoint_number): Moved into create_internal_breakpoint.
7051 (create_longjmp_breakpoint): Use create_internal_breakpoint.
7052 (create_thread_event_breakpoint): Ditto.
7053 (create_solib_event_breakpoint): Ditto.
7054 (create_overlay_event_breakpoint): New function.
7055 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
7056 (update_breakpoints_after_exec): Delete and re-initialize
7057 overlay event breakpoints after an exec. Add FIXME comment
7058 about longjmp breakpoint.
7059 (print_it_typical): Ignore overlay event breakpoints.
7060 (print_one_breakpoint): Ditto.
7062 (bpstat_what): Do not stop for overlay event breakpoints.
7063 (delete_breakpoint): Don't delete overlay event breakpoints.
7064 (breakpoint_re_set_one): Delete the overlay event breakpoint.
7065 (breakpoint_re_set): Re-create overlay event breakpoint.
7067 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
7068 (overlay_manual_command): Disable overlay breakpoints.
7069 (overlay_off_command): Disable overlay breakpoints.
7071 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7073 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
7074 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
7075 to here from config/tm-arm.h.
7076 (coff_sym_is_thumb): Make static.
7077 (arm_elf_make_msymbol_special): New function.
7078 (arm_coff_make_msymbol_special): New function.
7079 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
7080 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
7081 (coff_sym_is_thumb): Delete declaration.
7082 (arm_elf_make_msymbol_special): Declare.
7083 (arm_coff_make_msymbol_special): Declare.
7084 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
7085 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
7087 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7089 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
7091 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7093 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
7094 * gdbarch.c gdbarch.h: Regenerate.
7095 * arch-utils.c (default_print_float_info): New function.
7096 * arch-utils.h (default_print_float_info): Prototype it.
7097 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
7098 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
7099 (PRINT_FLOAT_INFO): Document it.
7101 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
7102 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
7103 (PRINT_FLOAT_INFO): Define.
7105 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
7107 * win32-nat.c (_initialize_check_for_gdb_ini):
7108 Add typecast to sprintf argument to suppress a warning.
7110 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
7112 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7113 to allow easier handling of pass state.
7114 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
7115 that gives exception name and address.
7116 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
7117 and set last_sig value to ourstatus->value.sig. Some missing
7119 (child_continue): Correctly report continue_status.
7120 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7121 TARGET_SIGNAL_0 (new default value).
7122 (child_resume): consider sig argument passed to decide if
7123 the exception should be passed to debuggee or not.
7125 2002-02-05 Michael Snyder <msnyder@redhat.com>
7127 * regcache.c (fetch_register): Call target_fetch_register
7128 only if we don't call FETCH_PSEUDO_REGISTER.
7129 (store_register): Call target_store_register only if we
7130 don't call STORE_PSEUDO_REGISTER.
7132 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
7134 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
7135 ELF_MAKE_MSYMBOL_SPECIAL.
7136 * gdbarch.c, gdbarch.h: Regenerate.
7137 * arch-utils.c (default_make_msymbol_special): New function.
7138 * arch-utils.h (default_make_msymbol_special): Export.
7139 * elfread.c (elf_symtab_read): Compile use of
7140 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
7142 * coffread.c (coff_symtab_read): Ditto, for
7143 COFF_MAKE_MSYMBOL_SPECIAL.
7145 2002-02-05 Jim Blandy <jimb@redhat.com>
7147 * solib-svr4.c (svr4_truncate_ptr): New function.
7148 (svr4_relocate_section_addresses): Do the address arithmetic with
7149 the appropriate truncation for target addresses, even when
7150 CORE_ADDR is larger than a target address.
7152 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7154 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
7157 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7159 * gdbserver/linux-low.c (kill_inferior): Remove commented out
7162 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7164 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
7166 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7168 * gdbserver/linux-low.c: Remove unused include files.
7170 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7172 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
7173 (read_inferior_memory): Use it.
7174 (write_inferior_memory): Likewise.
7176 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7178 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
7179 grubbing through sys_errlist.
7181 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7183 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
7185 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7186 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
7188 2002-02-04 Andrew Cagney <ac131313@redhat.com>
7190 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
7191 (do_sfunc, set_cmd_sfunc): New functions.
7193 * command.h (struct cmd_list_element): Add field func.
7194 * cli/cli-decode.h (struct cmd_list_element): Ditto.
7195 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
7196 * cli/cli-decode.h: Ditto.
7198 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
7199 (help_all, help_cmd_list): Ditto.
7200 (find_cmd, complete_on_cmdlist): Ditto.
7201 * top.c (execute_command): Ditto.
7203 * cli/cli-setshow.c (do_setshow_command): Call func instead of
7206 * infcmd.c (notice_args_read): Fix function signature.
7208 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
7209 * cli/cli-decode.c (add_set_cmd): Ditto.
7210 * utils.c (initialize_utils): Ditto.
7211 * maint.c (_initialize_maint_cmds): Ditto.
7212 * infrun.c (_initialize_infrun): Ditto.
7213 * demangle.c (_initialize_demangler): Ditto.
7214 * remote.c (add_packet_config_cmd): Ditto.
7215 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7216 * cris-tdep.c (_initialize_cris_tdep): Ditto.
7217 * proc-api.c (_initialize_proc_api): Ditto.
7218 * kod.c (_initialize_kod): Ditto.
7219 * valprint.c (_initialize_valprint): Ditto.
7220 * top.c (init_main): Ditto.
7221 * infcmd.c (_initialize_infcmd): Ditto.
7222 * corefile.c (_initialize_core): Ditto.
7223 * arm-tdep.c (_initialize_arm_tdep): Ditto.
7224 * arch-utils.c (initialize_current_architecture): Ditto.
7225 (_initialize_gdbarch_utils): Ditto.
7226 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
7228 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
7229 * wince.c (_initialize_inftarg): Ditto.
7230 * symfile.c (_initialize_symfile): Ditto.
7231 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7232 * language.c (_initialize_language): Ditto.
7233 * arc-tdep.c (_initialize_arc_tdep): Ditto.
7235 2002-02-04 Michael Snyder <msnyder@redhat.com>
7237 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
7239 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7241 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
7242 Add rules for building the register data files.
7244 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7246 * regformats/regdat.sh: Add braces to the definition of
7247 expedite_regs_${arch}.
7249 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7251 * regformats/regdef.h (struct reg): Add comment describing the
7252 requirements for offset and size fields.
7254 2002-02-04 Andreas Schwab <schwab@suse.de>
7256 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
7257 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
7259 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
7261 * gdbarch.sh (copyright): Update years in generated header.
7262 (SMASH_TEXT_ADDRESS): Add rule.
7263 * gdbarch.h, gdbarch.c: Re-generate.
7264 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
7265 * dbxread.c: Likewise.
7266 * dwarfread.c: Likewise.
7267 * elfread.c: Likewise.
7268 * somread.c: Likewise.
7270 * arm-tdep.c (arm_smash_text_address): New function.
7271 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
7273 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7275 Add support for hardware watchpoints on win32 native.
7276 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
7277 CONTEXT_DEBUG_REGISTERS.
7278 (dr variable): New variable. Static array containing a local copy
7280 (debug_registers_changed): New variable. Reflects when debug registers
7281 are changed and need to be written to inferior.
7282 (debug_registers_used): New variable. Reflects when any debug register
7283 was set, used when new threads are created.
7284 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
7286 (thread_rec): Set dr array if id is the thread of current_event .
7287 (child_continue, child_resume): Change the debug registers for all
7288 threads if debug_registers_changed.
7289 (child_add_thread): Change the debug registers if debug_registers_used.
7290 * config/i386/cygwin.mh: Add use of i386-nat.o file.
7291 Link nm.h to new nm-cygwin.h file.
7292 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
7293 of hardware registers.
7295 2002-02-03 Andrew Cagney <ac131313@redhat.com>
7297 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
7298 Restore behavour broken by 2002-01-20 Andrew Cagney
7299 <ac131313@redhat.com> IEEE_FLOAT removal.
7301 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7303 * c-valprint.c (c_val_print): Pass a proper valaddr to
7304 cp_print_class_method.
7305 * valops.c (search_struct_method): If there is only one method
7306 and args is NULL, return that method.
7308 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7310 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
7311 accessing tag_name directly.
7313 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7315 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
7316 of accessing tag_name directly.
7318 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7321 * gdbtypes.c (replace_type): New function.
7322 * gdbtypes.h (replace_type): Add prototype.
7323 * stabsread.c (read_type): Use replace_type.
7325 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
7327 * Makefile.in (memattr.o): Add missing dependencies rule.
7329 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7331 * breakpoint.c (break_at_finish_command): Really export.
7332 (break_at_finish_at_depth_command): Ditto.
7333 (tbreak_at_finish_command): Ditto.
7334 * hppa-tdep.c: Include completer.h.
7335 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
7336 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
7338 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7340 * utils.c (do_write): New function.
7341 (error_stream): Rewrite combining the code from error_begin and
7343 (verror): Rewrite using error_stream.
7344 (error_begin): Delete function.
7346 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7348 * utils.c (error_begin): Make static.
7349 * defs.h (error_begin): Delete declaration.
7351 * linespec.c (cplusplus_error): Replace cplusplus_hint.
7352 (decode_line_1): Use cplusplus_error instead of error_begin,
7353 cplusplus_hint and return_to_top_level.
7354 * coffread.c (coff_symfile_read): Use error instead of error_begin
7355 and return_to_top_level.
7356 * infrun.c (default_skip_permanent_breakpoint): Ditto.
7358 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7360 * language.h (type_error, range_error): Make string parameter
7362 * language.c (warning_pre_print): Delete extern declaration.
7363 * dwarfread.c (warning_pre_print): Ditto.
7364 * language.c (type_error, range_error): Rewrite to use verror and
7365 vwarning instead of warning_begin.
7367 2002-02-01 Michael Snyder <msnyder@redhat.com>
7369 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
7370 (set_ignore_count): Move misplaced comment back where it belongs.
7372 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7374 * command.h (NO_FUNCTION): Delete macro.
7375 * cli/cli-decode.h (NO_FUNCTION): Ditto.
7376 * top.c (execute_command): Replace NO_FUNCTION with NULL.
7377 * tracepoint.c (_initialize_tracepoint): Ditto.
7378 * cli/cli-decode.c (add_set_cmd): Ditto.
7379 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7381 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
7383 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
7384 Update ``this'' pointer when calling virtual functions.
7386 2002-02-01 Michael Snyder <msnyder@redhat.com>
7388 * breakpoint.c (create_temp_exception_breakpoint): Delete.
7389 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
7391 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
7393 * regformats/reg-arm.dat: New file.
7394 * regformats/reg-i386.dat: New file.
7395 * regformats/reg-ia64.dat: New file.
7396 * regformats/reg-m68k.dat: New file.
7397 * regformats/reg-mips.dat: New file.
7398 * regformats/reg-ppc.dat: New file.
7399 * regformats/reg-sh.dat: New file.
7400 * regformats/regdef.h: New file.
7401 * regformats/regdat.sh: New file.
7403 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
7405 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
7406 (arm_frame_args_address, arm_frame_locals_address): New functions.
7407 (arm_frame_num_args): New function.
7408 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
7409 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
7410 (FRMA_NUM_ARGS): Call arm_frame_num_args.
7412 2002-01-31 Michael Snyder <msnyder@redhat.com>
7414 * breakpoint.c (break_at_finish_command): Export.
7415 (break_at_finish_at_depth_command): Export.
7416 (tbreak_at_finish_command): Export.
7417 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
7418 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
7419 "tbreak" commands, which are HPPA specific.
7421 * printcmd.c (disassemble_command): Remove an ancient
7422 artifact of an old merge.
7424 * symfile.h (enum overlay_debugging_state):
7425 Define enum constant values for overlay mode.
7426 * symfile.c (overlay_debugging): Use enums instead of literals.
7427 (overlay_is_mapped, overlay_auto_command,
7428 overlay_manual_command): Ditto.
7430 * breakpoint.c (insert_breakpoints, remove_breakpoint,
7431 breakpoint_here_p, breakpoint_inserted_here_p,
7432 breakpoint_thread_match, bpstat_stop_status,
7433 describe_other_breakpoints, check_duplicates, clear_command):
7434 Coding standard fixes.
7436 * target.c (target_xfer_memory): Add spaces, coding standard.
7437 (do_xfer_memory): Add missing line to trust-readonly
7438 code: check bfd SEC_READONLY flag for section.
7440 2002-01-31 Andrew Cagney <ac131313@redhat.com>
7442 * PROBLEMS: Fix typo, 5.1->5.1.1.
7444 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
7446 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
7447 data symbols, since we search based on textlow and texthigh.
7448 (find_pc_sect_symtab): Likewise.
7450 2002-01-30 Andrew Cagney <ac131313@redhat.com>
7452 * defs.h (vwarning): Declare.
7453 * utils.c (vwarning): New function.
7454 (warning): Call vwarning.
7455 (warning_begin): Delete function.
7457 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
7458 the warning message.
7459 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
7462 2002-01-30 Michael Snyder <msnyder@redhat.com>
7464 * NEWS: Mention "set trust-readonly-sections" command.
7465 Mention generate-core-file command.
7467 2002-01-15 Michael Snyder <msnyder@redhat.com>
7469 * target.c: New command, "set trust-readonly-sections on".
7470 (do_xfer_memory): Honor the suggestion to trust readonly sections
7471 by reading them from the object file instead of from the target.
7472 (initialize_targets): Register command "set trust-readonly-sections".
7474 2002-01-29 Andrew Cagney <ac131313@redhat.com>
7476 * parse.c (target_map_name_to_register): Simplify, search regs and
7477 pseudo-regs using a single loop.
7479 2002-01-30 Andrew Cagney <ac131313@redhat.com>
7481 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
7483 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
7485 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
7486 * config/i386/i386v42mp.mh: Add i387-nat.o .
7487 * i386v4-nat.c: Include i387-nat.h.
7488 (supply_fpregset): Use i387_supply_fsave.
7489 (fill_fpregset): Use i387_fill_fsave.
7491 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
7493 * arm-tdep.c (arm_call_dummy_words): Define.
7494 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
7495 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
7496 (CALL_DUMMY_WORDS): Define.
7497 (arm_call_dummy_words): Declare.
7498 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
7499 (arm_linux_call_dummy_words): Declare.
7501 2002-01-30 Andreas Schwab <schwab@suse.de>
7503 * m68klinux-nat.c: Fix last change to use regcache_collect
7504 instead of referencing registers[] directly.
7506 2002-01-29 Andrew Cagney <ac131313@redhat.com>
7508 * parse.c (target_map_name_to_register): Delete code wrapped in
7509 #ifdef REGISTER_NAME_ALIAS_HOOK.
7511 2002-01-28 Michael Snyder <msnyder@redhat.com>
7513 * regcache.c (legacy_read_register_gen): Need to be able to
7514 read pseudo-register as well as real register.
7515 (legacy_write_register_gen): Ditto.
7517 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7519 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7520 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
7521 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
7522 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
7523 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
7524 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
7525 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
7526 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
7527 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
7528 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7529 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
7530 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
7531 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
7532 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
7533 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
7534 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
7535 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
7536 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
7537 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
7538 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
7540 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7542 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
7543 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
7544 (initialize_current_architecture): Update target_byte_order using
7545 information from BFD.
7546 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
7547 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
7549 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7551 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
7552 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
7554 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
7555 #ifdef INVALID_FLOAT.
7556 * infcmd.c (do_registers_info): Ditto.
7557 * values.c (unpack_double): Ditto. Add comment.
7559 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
7560 already commented out.
7562 2002-01-26 Andreas Schwab <schwab@suse.de>
7564 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7565 * m68klinux-nat.c: Update ptrace interface for fetching/storing
7566 registers and add support for PTRACE_GETREGS.
7568 2002-01-24 Andrew Cagney <ac131313@redhat.com>
7570 GDB 5.1.1 released from 5.1 branch.
7571 * NEWS: Add 5.1.1 news.
7572 * README: Sync with 5.1 branch.
7574 2002-01-23 Fred Fish <fnf@redhat.com>
7576 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
7577 stabstring on initial malloc. Reallocing will copy it for us,
7580 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
7582 * Makefile.in (hpread_h): Delete.
7583 (HFILES_NO_SRCDIR): Remove hpread.h.
7584 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
7585 (hpread.o): Update dependencies.
7586 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
7588 * hp-psymtab-read.c: Remove file.
7589 * hp-symtab-read.c: Remove file.
7590 * hpread.h: Remove file.
7592 * hpread.c: Merge all contents of hp-psymtab-read.c,
7593 hp-symtab-read.c and hpread.h into this file, as it was prior to
7596 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
7597 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
7598 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
7599 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
7601 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
7603 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
7604 fill_gregset): Call gdbarch_tdep() just once, assign result to
7605 variable and use that, instead of calling the function several
7608 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7610 * configure.host: Accept sparcv9 as alias for sparc64.
7611 * configure.tgt: Likewise.
7613 2002-01-22 Kevin Buettner <kevinb@redhat.com>
7615 * solib-aix5.c (build_so_list_from_mapfile)
7616 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
7617 arguments is not reversed.
7618 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
7619 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
7621 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
7623 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
7624 modified version of obsolete sh_fetch_pseudo_register.
7625 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
7626 (sh4_register_read): New function.
7627 (sh_pseudo_register_write): New function. Renamed and modified
7628 version of obsolete sh_store_pseudo_register.
7629 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
7630 (sh4_register_write): New function.
7631 (sh_gdbarch_init): Remove setting of gdbarch function
7632 fetch_pseudo_register and store_pseudo_register. Remove setting of
7633 register_convert_to_raw, register_convert_to_virtual,
7634 register_convertible.
7635 (sh_sh4_register_convertible): Delete. No longer needed. All is
7636 taken care by architecture specific functions
7637 register_read/register_write.
7638 (sh_sh4_register_convert_to_virtual): Make static.
7639 (sh_sh4_register_convert_to_raw): Ditto.
7641 2002-01-22 Andrew Cagney <ac131313@redhat.com>
7643 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
7644 (floatformat_is_nan, floatformat_mantissa): Ditto.
7646 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
7647 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
7648 builtin_type_ieee_double_little,
7649 builtin_type_ieee_double_littlebyte_bigword,
7650 builtin_type_m68881_ext, builtin_type_i960_ext,
7651 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
7652 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
7653 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
7654 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
7656 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
7658 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
7659 parameter. Set frameless flag if it exists and depended of
7660 whether the scanned function is frameless or not.
7661 (xstormy16_skip_prologue): If function is frameless, return
7662 result of xstormy16_scan_prologue().
7663 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
7666 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
7668 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
7669 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
7670 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
7671 sh_sh4_register_byte, sh_sh4_register_raw_size,
7672 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
7673 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
7674 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
7675 sh_store_pseudo_register, sh_do_pseudo_register): Call
7676 gdbarch_tdep() just once, assign result to variable and use that,
7677 instead of calling the function several times.
7679 2002-01-20 Mark Kettenis <kettenis@gnu.org>
7681 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
7682 macros instead of LAST_FPU_CTRL_REGNUM.
7683 (store_register): Likewise.
7685 2002-01-21 Jim Blandy <jimb@redhat.com>
7687 * infcmd.c (run_command): Check that the `exec' target layer's BFD
7688 is up-to-date before running the program, not just when a program
7691 2002-01-21 Fred Fish <fnf@redhat.com>
7693 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
7694 when we have found all instructions we are looking for.
7696 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
7698 * arm-tdep.c (arm_register_name): New function.
7699 (arm_registers_names): Make static.
7700 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
7701 (arm_register_name): Declare.
7702 (REGISTER_NAME): Use it.
7704 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
7705 Kevin Buettner <kevinb@redhat.com>
7707 Convert arm targets to new FRAME interface.
7708 * arm-tdep.c (struct frame_extra_info): Remove fsr.
7709 (arm_frame_find_save_regs): Delete.
7710 (arm_frame_init_saved_regs): New.
7711 (arm_init_extra_frame_info): Alloacte saved_regs as required.
7712 Allocate extra_info as required. Convert all uses of fsr.regs
7713 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
7715 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
7716 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
7717 (check_prologue_cache, save_prologue_cache): Likewise.
7718 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
7719 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
7720 (FRAME_FIND_SAVED_REGS): Delete.
7721 (arm_frame_find_saved_regs): Delete prototype.
7722 (arm_frame_init_saved_regs): New prototype.
7723 (FRAME_INIT_SAVED_REGS): Define.
7725 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7727 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
7729 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7731 From Jeff Law <law@redhat.com>:
7732 * infttrace.c: Include <sys/pstat.h>.
7733 (child_pid_to_exec_file): Revamp. Use pstat call to get the
7734 exec file if the ttrace equivalent fails.
7736 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7738 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
7739 (closeLogFile): Ditto.
7741 2002-01-20 Michael Chastain <mec@shout.net>
7743 * top.c (print_gdb_version): Bump copyright year to 2002.
7745 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7747 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
7748 Zannoni and Eli Zaretskii.
7750 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7752 * buildsym.c: Update copyright years.
7753 * c-typeprint.c: Likewise.
7754 * dwarf2read.c: Likewise.
7755 * f-typeprint.c: Likewise.
7756 * gdbtypes.c: Likewise.
7757 * gdbtypes.h: Likewise.
7758 * hp-symtab-read.c: Likewise.
7759 * hpread.c: Likewise.
7760 * mdebugread.c: Likewise.
7761 * p-typeprint.c: Likewise.
7763 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7765 * remote-sim.c (gdbsim_open): Simplify code testing the macro
7766 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
7767 byte-order selectable.
7768 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
7769 * arch-utils.c: Ditto.
7770 (set_endian): Ditto.
7771 (set_endian_from_file): Ditto.
7772 * gdbserver/low-sim.c (create_inferior): Ditto.
7773 * gdbarch.sh: Ditto.
7774 * gdbarch.h: Re-generate.
7775 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7776 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
7777 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
7778 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7779 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7780 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7781 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
7782 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
7784 * config/mips/tm-wince.h: Remove #undef of macro
7785 TARGET_BYTE_ORDER_SELECTABLE.
7786 * config/sh/tm-wince.h: Ditto.
7788 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7790 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
7791 member function fields. Add accessor macro
7792 TYPE_FN_FIELD_ARTIFICIAL.
7793 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
7794 * c-typeprint.c (c_type_print_base): Skip artificial member
7797 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7799 * f-typeprint.c: Delete unused function f_type_print_args.
7800 * p-typeprint.c: Delete unused function pascal_type_print_args.
7802 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7804 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
7805 comment. Add ``artificial'' to ``union field_location''.
7807 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
7809 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
7810 * mdebugread.c (parse_symbol): Likewise.
7811 * stabsread.c (define_symbol): Likewise.
7812 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
7813 initializing TYPE_FIELD_BITPOS to n (obsolete).
7814 (hpread_doc_function_type): Likewise.
7815 * hpread.c (hpread_function_type): Likewise.
7817 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7819 * configure.in (host_makefile_frag): Only require a host makefile
7820 fragment when a native build.
7821 * configure: Re-generate.
7823 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7825 * doublest.h (floatformat_from_type): Declare.
7826 * doublest.c (floatformat_from_type): New function.
7827 (convert_typed_floating): Use.
7829 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
7830 call to function floatformat_from_type.
7832 * gdbarch.sh (IEEE_FLOAT): Delete.
7833 * gdbarch.h, gdbarch.c: Re-generate.
7834 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
7835 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
7836 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
7837 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
7838 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
7839 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
7840 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
7841 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
7842 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
7843 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
7844 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
7845 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
7847 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
7848 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7849 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7850 * sh-tdep.c (sh_gdbarch_init): Ditto.
7851 * mips-tdep.c (mips_gdbarch_init): Ditto.
7852 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7853 * cris-tdep.c (cris_gdbarch_init): Ditto.
7855 2002-01-20 Jiri Smid <smid@suse.cz>
7857 * configure.host, configure.tgt: Support x86-64.
7858 * NEWS: Note new target x86-64.
7860 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
7861 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
7862 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
7863 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
7864 x86-64-linux-nat.o): Fix dependencies.
7866 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7868 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
7869 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
7870 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
7871 * config/sparc/xm-sun4os4.h: Delete file.
7872 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
7874 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7876 * config/sparc/sparclynx.mh (XM_FILE): Delete.
7877 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
7878 * config/m68k/m68klynx.mh (XM_FILE): Delete.
7879 * config/i386/i386lynx.mh (XM_FILE): Delete.
7880 * config/rs6000/xm-rs6000ly.h: Delete file.
7881 * config/sparc/xm-sparclynx.h: Delete file.
7882 * config/m68k/xm-m68klynx.h: Delete file.
7883 * config/i386/xm-i386lynx.h: Delete file.
7884 * config/xm-lynx.h: Delete file.
7885 * config/djgpp/fnchange.lst: Update.
7887 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7889 * alpha-tdep.c (alpha_register_byte): New function.
7890 (alpha_register_raw_size): Ditto.
7891 (alpha_register_virtual_size): Ditto.
7892 (alpha_skip_prologue_internal): Renamed from
7893 alpha_skip_prologue.
7894 (alpha_skip_prologue): New version that calls
7895 alpha_skip_prologue_internal.
7896 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
7897 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
7898 second argument from alpha_skip_prologue.
7899 (REGISTER_BYTE): Use alpha_register_byte.
7900 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
7901 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
7902 (FRAMELESS_FUNCTION_INVOCATION): Use
7903 generic_frameless_function_invocation_not.
7904 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
7905 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
7907 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7909 * config/mips/xm-news-mips.h: Delete file.
7910 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
7912 * config/m88k/xm-m88k.h: Delete file.
7913 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
7914 * config/m88k/xm-delta88v4.h: Ditto.
7915 * config/m88k/xm-delta88.h: Ditto.
7917 * config/alpha/xm-fbsd.h: Delete file.
7918 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
7920 * config/sparc/xm-sparc.h: Delete file.
7921 * Makefile.in (xm-sun4os4.h): Delete dependency.
7922 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
7923 * config/sparc/xm-sun4os4.h: Ditto.
7924 * config/sparc/xm-linux.h: Ditto.
7926 * config/i386/xm-windows.h: Delete file.
7928 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7930 * utils.c: Include <sys/param.h> for MAXPATHLEN.
7931 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
7933 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7935 * alpha-tdep.c (alpha_call_dummy_words): New.
7936 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
7937 (CALL_DUMMY_P): Define.
7938 (CALL_DUMMY_WORDS): Define.
7939 (SIZEOF_CALL_DUMMY_WORDS): Define.
7941 2002-01-19 Per Bothner <per@bothner.com>
7943 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
7944 isn't NULL, which can happen with some gcj-3.x-produced code.
7946 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7948 * alpha-tdep.c (alpha_register_virtual_type): New function.
7949 (alpha_init_frame_pc_first): Ditto.
7950 (alpha_fix_call_dummy): Ditto.
7951 (alpha_store_struct_return): Ditto.
7952 (alpha_extract_struct_value_address): Ditto.
7953 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
7954 alpha_register_virtual_type.
7955 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
7956 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
7957 alpha_extract_struct_value_address.
7958 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
7959 (INIT_FRAME_PC): Use init_frame_pc_noop.
7960 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
7962 2002-01-19 Mark Kettenis <kettenis@gnu.org>
7964 * i386gnu-nat.c: Include "i386-tdep.h".
7965 (fetch_fpregs): Simplify code dealing with uninitialized floating
7966 point states such that it doesn't require FP7_REGNUM.
7968 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7970 * alpha-tdep.c (frame_extra_info): New.
7971 (alpha_find_saved_regs): Make static. Use
7973 (alpha_frame_init_saved_regs): New function.
7974 (alpha_frame_saved_pc): Use frame->extra_info.
7975 (temp_saved_regs): Don't declare as struct frame_saved_regs.
7976 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
7977 (init_extra_frame_info): Rename to...
7978 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
7979 (alpha_print_extra_frame_info): New function.
7980 (alpha_frame_locals_address): Ditto.
7981 (alpha_frame_args_address): Ditto.
7982 (alpha_pop_frame): Use frame->extra_info.
7983 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
7984 alpha_frame_args_address.
7985 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
7986 (alpha_find_saved_regs): Remove prototype.
7987 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
7988 (EXTRA_FRAME_INFO): Remove.
7989 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
7990 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
7992 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7994 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
7995 (alpha_cannot_fetch_register): Ditto.
7996 (alpha_cannot_store_register): Ditto.
7997 (alpha_register_convertible): Ditto.
7998 (alpha_use_struct_convention): Ditto.
7999 * config/alpha/tm-alpha.h: Update copyright years.
8000 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
8001 (INNER_THAN): Use core_addr_lessthan.
8002 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
8003 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
8004 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
8005 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
8006 (FRAME_CHAIN): Remove unnecessary cast.
8008 2002-01-18 Andrew Cagney <ac131313@redhat.com>
8010 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
8013 2002-01-18 Andrew Cagney <ac131313@redhat.com>
8015 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
8016 * monitor.c, remote-array.c, remote-bug.c: Ditto.
8017 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
8018 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
8019 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
8020 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
8021 * x86-64-linux-nat.c: Ditto.
8023 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8025 * alpha-tdep.c (alpha_register_name): New function.
8026 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
8027 (REGISTER_NAME): Define.
8029 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8031 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
8033 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8035 * alpha-tdep.c: Update copyright years.
8036 (alpha_next_pc): New function.
8037 (alpha_software_single_step): Ditto.
8038 * config/alpha/tm-alpha.h: Add prototype for
8039 alpha_software_single_step.
8041 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8043 * alphabsd-nat.c: Update copyright years.
8044 (fill_gregset): Use regcache_collect.
8045 (fill_fpregset): Likewise.
8046 (fetch_inferior_registers): Only fetch integer registers
8047 if requested to do so.
8048 (store_inferior_registers): Only store integer registers
8049 if requested to do so.
8051 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8053 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
8054 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
8055 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
8056 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
8057 * config/alpha/fbsd.mh (XDEPFILES): Delete.
8058 * config/arm/linux.mh (XDEPFILES): Delete.
8059 * config/arm/nbsd.mh (XDEPFILES): Delete.
8060 * config/i386/i386dgux.mh (XDEPFILES): Delete.
8061 * config/i386/i386sol2.mh (XDEPFILES): Delete.
8062 * config/i386/i386m3.mh (XDEPFILES): Delete.
8063 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
8064 * config/i386/i386gnu.mh (XDEPFILES): Delete.
8065 * config/i386/fbsd.mh (XDEPFILES): Delete.
8066 * config/i386/i386bsd.mh (XDEPFILES): Delete.
8067 * config/i386/i386sco5.mh (XDEPFILES): Delete.
8068 * config/i386/i386v4.mh (XDEPFILES): Delete.
8069 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
8070 * config/i386/i386sco4.mh (XDEPFILES): Delete.
8071 * config/i386/i386aix.mh (XDEPFILES): Delete.
8072 * config/i386/go32.mh (XDEPFILES): Delete.
8073 * config/i386/cygwin.mh (XDEPFILES): Delete.
8074 * config/i386/i386lynx.mh (XDEPFILES): Delete.
8075 * config/i386/i386mach.mh (XDEPFILES): Delete.
8076 * config/i386/i386v32.mh (XDEPFILES): Delete.
8077 * config/i386/linux.mh (XDEPFILES): Delete.
8078 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
8079 * config/i386/ncr3000.mh (XDEPFILES): Delete.
8080 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
8081 * config/i386/i386sco.mh (XDEPFILES): Delete.
8082 * config/i386/i386v.mh (XDEPFILES): Delete.
8083 * config/i386/nbsd.mh (XDEPFILES): Delete.
8084 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
8085 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
8086 * config/i386/symmetry.mh (XDEPFILES): Delete.
8087 * config/i386/obsd.mh (XDEPFILES): Delete.
8088 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
8089 * config/ia64/linux.mh (XDEPFILES): Delete.
8090 * config/ia64/aix.mh (XDEPFILES): Delete.
8091 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
8092 * config/m68k/dpx2.mh (XDEPFILES): Delete.
8093 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
8094 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
8095 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
8096 * config/m68k/linux.mh (XDEPFILES): Delete.
8097 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
8098 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
8099 * config/m68k/nbsd.mh (XDEPFILES): Delete.
8100 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
8101 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
8102 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
8103 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
8104 * config/m88k/delta88.mh (XDEPFILES): Delete.
8105 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
8106 * config/m88k/m88k.mh (XDEPFILES): Delete.
8107 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
8108 * config/mips/linux.mh (XDEPFILES): Delete.
8109 * config/mips/irix6.mh (XDEPFILES): Delete.
8110 * config/mips/irix5.mh (XDEPFILES): Delete.
8111 * config/mips/irix4.mh (XDEPFILES): Delete.
8112 * config/mips/irix3.mh (XDEPFILES): Delete.
8113 * config/mips/decstation.mh (XDEPFILES): Delete.
8114 * config/mips/mipsm3.mh (XDEPFILES): Delete.
8115 (NATDEPFILES): Move core-aout.o to here.
8116 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
8117 * config/pa/hpux1020.mh (XDEPFILES): Delete.
8118 * config/pa/hppabsd.mh (XDEPFILES): Delete.
8119 * config/pa/hppahpux.mh (XDEPFILES): Delete.
8120 * config/pa/hpux11w.mh (XDEPFILES): Delete.
8121 * config/pa/hppaosf.mh (XDEPFILES): Delete.
8122 * config/pa/hpux11.mh (XDEPFILES): Delete.
8123 * config/powerpc/aix.mh (XDEPFILES): Delete.
8124 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
8125 * config/powerpc/linux.mh (XDEPFILES): Delete.
8126 * config/romp/rtbsd.mh: Rename XDEPFILES.
8127 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
8128 * config/rs6000/aix4.mh (XDEPFILES): Delete.
8129 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
8130 * config/s390/s390.mh (XDEPFILES): Delete.
8131 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
8132 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
8133 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
8134 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
8135 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
8136 * config/sparc/nbsd.mh (XDEPFILES): Delete.
8137 * config/sparc/linux.mh (XDEPFILES): Delete.
8138 * config/vax/vaxult.mh (XDEPFILES): Delete.
8139 * config/vax/vaxult2.mh (XDEPFILES): Delete.
8140 * Makefile.in (DEPFILES): Remove XDEPFILES.
8142 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8144 * utils.c (internal_verror): Fix comments, default is yes not no.
8145 Update queries to match. Default to quit and dump core.
8147 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8149 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
8151 * defs.h, event-top.c, gdbcmd.h: Ditto.
8152 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
8153 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
8154 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
8155 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
8156 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
8157 * mi/mi-main.c:Ditto.
8159 * stack.c, symfile.c: Update copyright.
8161 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8163 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
8164 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
8165 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
8166 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
8168 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8170 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
8171 * gdbserver/low-lynx.c (myattach): Likewise.
8172 * gdbserver/low-nbsd.c (myattach): Likewise.
8173 * gdbserver/low-sim.c (myattach): Likewise.
8174 * gdbserver/low-sparc.c (myattach): Likewise.
8175 * gdbserver/low-sun3.c (myattach): Likewise.
8177 * gdbserver/low-linux.c (myattach): New function.
8179 * gdbserver/server.c (attach_inferior): New function.
8180 (main): Handle "--attach".
8182 2002-01-16 Andrew Cagney <ac131313@redhat.com>
8184 * MAINTAINERS (language support): Daniel Jacobwitz is C++
8187 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
8189 * c-typeprint.c (is_type_conversion_operator): Add additional
8190 check for non-conversion operators.
8192 2002-01-15 Michael Snyder <msnyder@redhat.com>
8194 * linux-proc.c: Add "info proc" command, a la procfs.c.
8195 (read_mapping): New function, abstract and re-use code.
8196 (linux_find_memory_regions): Use new func read_mapping.
8197 (linux_info_proc_cmd): New function, implement "info proc".
8198 (_initialize_linux_proc): Add new command "info proc".
8200 2002-01-15 Michael Snyder <msnyder@redhat.com>
8202 * symfile.c (generic_load): Use bfd_map_over_sections method
8203 instead of manipulating bfd structure members directly.
8204 (add_section_size_callback): New function, bfd sections callback
8205 used by generic_load.
8206 (load_sections_callback): New function, bfd sections callback
8207 used by generic_load.
8209 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
8211 [Based on work by Jim Blandy]
8212 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
8213 (builtin_type_vec128): Export.
8214 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
8216 (builtin_type_vec128): New builtin type for 128 bit vector
8218 (build_gdbtypes): Initialize builtin_type_v16qi and
8219 builtin_type_v8hi. Create the vec128 register builtin type
8221 (build_builtin_type_vec128): New function.
8222 (_initialize_gdbtypes): Register builtin_type_v16qi and
8223 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
8224 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
8225 AltiVec register to new builtin type.
8227 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
8229 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
8232 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8234 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
8235 CLEAN_UP_REGISTER_VALUE.
8236 * regcache.c (supply_register): Update only call.
8238 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8240 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8241 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8242 a29k-*-vxworks* targets as obsolete.
8244 2002-01-14 Michael Snyder <msnyder@redhat.com>
8246 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
8247 until we can resolve portability issues.
8248 * gregset.h: Remove references to fpxregs.
8249 * gcore.c (gcore_command): Initialize note_sec to NULL.
8251 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8253 * signals.c (target_signal_to_name): Rewrite. Only use
8254 signals[].name when in bounds and non-NULL.
8256 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8258 From Petr Ledvina <ledvinap@kae.zcu.cz>:
8259 * signals.c (target_signal_to_name): Verify that SIG is within the
8260 bounds of the signals array.
8262 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8264 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
8266 2002-01-13 Keith Seitz <keiths@redhat.com>
8268 * stack.c (print_frame_info_base): Print the frame's pc
8269 only if when print_frame_info_listing_hook is not defined.
8271 2002-01-13 Keith Seitz <keiths@redhat.com>
8273 * varobj.c (varobj_set_value): Make sure that there were no
8274 errors evaluating the object before attempting to set its
8276 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
8277 so this offset adjustment is no longer necessary.
8278 (create_child): Don't set the error flag if the child is
8280 (value_of_child): If value_fetch_lazy fails, return NULL
8281 so that callers will be notified that an error occurred.
8282 (c_value_of_variable): Delay check of variable's validity
8283 until later. We actually want all structs and unions to have
8285 Do not return "???" for variables which could not be evaluated.
8286 This error condition must be returned to the caller so that it
8287 can get the error condition from gdb.
8288 (cplus_name_of_child): Adjust index for vptr before figuring
8289 out the name of the child.
8290 (cplus_value_of_child): If a child's (real) parent is not valid,
8291 don't even bother trying to give a value for it. Just return
8292 an error. Change all instances in this function.
8293 (cplus_type_of_child): If our parent is one of the "fake"
8294 parents, we need to get at the type of the real parent, and
8295 derive the child's true type using this information.
8297 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8299 From 2002-01-09 John Marshall <johnm@falch.net>:
8300 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
8301 sources.redhat.com, and tweak some related URLs which had
8302 suffered from linkrot.
8304 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8307 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
8308 structures passed in registers.
8310 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
8312 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
8313 white space which prevented compilation. Reported by DSK
8314 <dsk@student.unsw.edu.au>.
8316 2002-01-11 Michael Snyder <msnyder@redhat.com>
8318 * symfile.c (build_section_addr_info_from_section_tab):
8319 Use bfd access method instead of manipulating bfd directly.
8320 (syms_from_objfile): Ditto.
8321 (simple_overlay_update_1): Ditto.
8322 (simple_overlay_update): Ditto.
8323 (generic_load): Ditto.
8324 (overlay_unmapped_address): FIXME comment, bfd access methods.
8325 (sections_overlap): FIXME comment, bfd access methods.
8326 (pc_in_mapped_range): FIXME comment, bfd access methods.
8327 (pc_in_unmapped_range): FIXME comment, bfd access methods.
8328 (section_is_mapped): FIXME comment, bfd access methods.
8329 (section_is_overlay): FIXME comment, bfd access methods.
8331 * symfile.c (generic_load): Whitespace and long line cleanups.
8332 Remove duplicate variable, change several local variables to
8333 more appropriate data types.
8334 (print_transfer_performance): Use %lu instead of %ld for ulongs.
8336 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8339 * language.c (longest_local_hex_string_custom): Use phex_nz to
8340 convert NUM to a hex string.
8342 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
8344 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
8346 Update Copyright year.
8348 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8350 * language.c (longest_raw_hex_string): Delete unused function.
8352 2002-01-11 Petr Sorfa <petrs@caldera.com>
8354 * MAINTAINERS (write-after-approval): Add myself.
8355 * dwarf2read.c (read_tag_string_type): Handling of
8357 (read_tag_string_type): FORTRAN fix to prevent propagation of
8359 (set_cu_language): Handling of DW_LANG_Fortran95
8361 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
8363 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
8364 GETPID(inferior_ptid).
8365 (store_inferior_registers): Likewise.
8367 2002-01-10 Jason Merrill <jason@redhat.com>
8369 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
8372 2002-01-10 Andrew Cagney <ac131313@redhat.com>
8374 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
8375 and bfd/elf32-sh-nbsd.c.
8377 2002-01-10 Michael Snyder <msnyder@redhat.com>
8379 * NEWS: Mention --pid and corefile/proc-id behavior change.
8381 * Makefile.in: Add rules for gcore.o and linux-proc.o.
8382 * gcore.c: Include cli/cli-decode.h instead of command.h.
8384 * main.c (captured_main): Add new command line option "--pid".
8385 If the second command line argument (following the symbol-file)
8386 begins with a digit, try to attach to it before trying to open
8388 (print_gdb_help): Document the "--pid" argument.
8390 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
8392 * completer.c (command_completer): New function.
8394 * completer.h <command_completer>: Add prototype.
8396 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
8397 completer for the "help" command.
8399 2002-01-09 Jason Merrill <jason@redhat.com>
8401 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
8403 2002-01-09 Michael Snyder <msnyder@redhat.com>
8405 * i386-linux-nat.c (fill_fpxregset): Make global.
8406 (store_fpxregset): Ditto.
8408 * gregset.h (gdb_fpxregset_t): Define.
8409 (supply_fpxregset): Prototype.
8410 (fill_fpxregset): Prototype.
8412 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
8414 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
8416 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
8417 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
8418 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
8420 2002-01-09 Andrew Cagney <ac131313@redhat.com>
8422 * MAINTAINERS: Update target maintainer rules so that any
8423 Maintainer can approve a tested patch for a maintenance-only
8426 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
8428 * MAINTAINERS (write-after-approval): Add myself.
8430 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
8433 2002-01-08 Michael Snyder <msnyder@redhat.com>
8435 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
8436 real name of the executable, rather than the /proc name.
8438 2002-01-03 Michael Snyder <msnyder@redhat.com>
8440 Implement a "generate-core-file" command in gdb, save target state.
8441 * gcore.c: New file. Implement new command 'generate-core-file'.
8442 Save a corefile image of the current state of the inferior.
8443 * linux-proc.c: Add linux-specific code for saving corefiles.
8444 * target.h (struct target_ops): Add new target vectors for saving
8445 corefiles; to_find_memory_regions and to_make_corefile_notes.
8446 (target_find_memory_regions): New macro.
8447 (target_make_corefile_notes): New macro.
8448 * target.c (update_current_target): Inherit new target methods.
8449 (dummy_find_memory_regions): New place-holder method.
8450 (dummy_make_corefile_notes): New place-holder method.
8451 (init_dummy_target): Initialize new dummy target vectors.
8452 * exec.c (exec_set_find_memory_regions): New function.
8453 Allow the exec_ops vector for memory regions to be taken over.
8454 (exec_make_note_section): New function, target vector method.
8455 * defs.h (exec_set_find_memory_regions): Export prototype.
8456 * procfs.c (proc_find_memory_regions): New function, corefile method.
8457 (procfs_make_note_section): New function, corefile method.
8458 (init_procfs_ops): Set new target vector pointers.
8459 (find_memory_regions_callback): New function.
8460 (procfs_do_thread_registers): New function.
8461 (procfs_corefile_thread_callback): New function.
8462 * sol-thread.c (sol_find_memory_regions): New function.
8463 (sol_make_note_section): New function.
8464 (init_sol_thread_ops): Initialize new target vectors.
8465 * inftarg.c (inftarg_set_find_memory_regions): New function.
8466 Allow to_find_memory_regions vector to be taken over.
8467 (inftarg_set_make_corefile_notes): New function.
8468 Allow to_make_corefile_notes vector to be taken over.
8469 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
8470 interface layer if not target_has_execution (may be a corefile).
8471 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
8472 * config/sparc/sun4sol2.mh: Ditto.
8473 * config/alpha/alpha-linux.mh: Ditto.
8474 * config/arm/linux.mh: Ditto.
8475 * config/i386/x86-64linux.mh: Ditto.
8476 * config/ia64/linux.mh: Ditto.
8477 * config/m68k/linux.mh: Ditto.
8478 * config/mips/linux.mh: Ditto.
8479 * config/powerpc/linux.mh: Ditto.
8480 * config/sparc/linux.mh: Ditto.
8482 2002-01-07 Michael Snyder <msnyder@redhat.com>
8484 * arm-linux-nat.c: Remove references to regcache.c internal data
8485 (registers[] and register_valid[]).
8487 2002-01-07 Michael Snyder <msnyder@redhat.com>
8489 * linux-proc.c: New file. Implement child_pid_to_exec_file,
8490 so that attaching to a pid will automatically read the process's
8491 symbol file and shlibs.
8492 * Makefile.in: Add rule for linux-proc.o.
8493 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
8494 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
8495 * config/arm/linux.mh: Ditto.
8496 * config/i386/linux.mh: Ditto.
8497 * config/i386/x86-64linux.mh: Ditto.
8498 * config/ia64/linux.mh: Ditto.
8499 * config/m68k/linux.mh: Ditto.
8500 * config/mips/linux.mh: Ditto.
8501 * config/powerpc/linux.mh: Ditto.
8502 * config/sparc/linux.mh: Ditto.
8504 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
8506 * win32-nat.c: Add i386-tdep.h dependency.
8508 2002-01-07 Michael Snyder <msnyder@redhat.com>
8510 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
8511 instead of bfd_get_arch_size. Don't bail out just because
8512 there's no exec_bfd.
8514 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
8515 * p-valprint.c (pascal_object_print_value): Ditto.
8516 * somread.c (som_symtab_read): Ditto.
8517 * symfile.c (simple_free_overlay_region_table): Ditto.
8518 * valops.c (value_assign): Ditto.
8520 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
8521 use tilde_expand and strerror for opening save-tracepoints file.
8523 * thread-db.c (thread_db_new_objfile): Indendation fix.
8525 * infptrace.c (GDB_MAX_ALLOCA): New define.
8526 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
8527 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
8528 can be overridden with whatever value is appropriate to the host).
8529 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
8530 alloca to allocate potentially large buffer.
8531 * rs6000-nat.c (child_xfer_memory): Ditto.
8532 * symm-nat.c (child_xfer_memory): Ditto.
8533 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
8535 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
8537 From Nick Clifton <nickc@redhat.com>
8538 * d10v-tdep.c: Set STACK_START to 0x200bffe.
8540 2002-01-07 Michael Snyder <msnyder@redhat.com>
8542 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8543 Don't use exec_bfd if it's NULL.
8545 2002-01-06 Mark Kettenis <kettenis@gnu.org>
8547 * valops.c (value_arg_coerce): Fix formatting.
8549 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8551 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
8554 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8556 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
8557 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
8558 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
8559 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
8560 z8k-coff have not been multi-arched. Update z8k-coff build
8563 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8565 * MAINTAINERS: Mark a29k target as obsolete.
8566 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
8567 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
8569 * NEWS: Note that a29k targets are obsolete.
8570 * a29k-tdep.c: Mark as obsolete.
8571 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8572 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8573 a29k-*-vxworks* targets as obsolete.
8574 * remote-adapt.c: Obsolete.
8575 * remote-eb.c: Obsolete.
8576 * remote-mm.c: Obsolete.
8577 * remote-udi.c: Obsolete.
8578 * config/a29k/a29k-udi.mt: Obsolete.
8579 * config/a29k/a29k.mt: Obsolete.
8580 * config/a29k/tm-a29k.h: Obsolete.
8581 * config/a29k/tm-vx29k.h: Obsolete.
8582 * config/a29k/vx29k.mt: Obsolete.
8584 2002-01-05 Andrew Cagney <ac131313@redhat.com>
8586 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
8587 with BFD_ENDIAN_BIG.
8589 2002-01-05 Andrew Cagney <ac131313@redhat.com>
8591 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
8592 * configure, config.in: Re-generate.
8593 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
8594 * defs.h: Do not include <endian.h>.
8596 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
8598 * acconfig.h (HAVE_PT_GETXMMREGS): New.
8599 * config.in: Regenerate.
8600 * configure.in: Update copyright years.
8601 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
8602 * configure: Regenerate.
8603 * i386bsd-nat.c: Update copyright years.
8604 (fill_gregset): Use regcache_collect.
8605 (fetch_inferior_registers): Only fetch integer registers
8606 if requested to do so. Add support for XMM registers
8607 using PT_GETXMMREGS.
8608 (store_inferior_registers): Only store integer registers
8609 if requested to do so. Add support for XMM registers
8610 using PT_SETXMMREGS.
8611 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
8612 (store_inferior_registers): Remove.
8613 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
8614 (fetch_elfcore_registers): New function.
8615 (i386nbsd_elfcore_fns): New.
8616 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
8617 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
8619 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8620 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
8621 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
8622 * config/i386/tm-nbsd.h: Update copyright years.
8623 (HAVE_SSE_REGS): Define.
8624 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
8625 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
8626 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
8627 (SIGCONTEXT_PC_OFFSET): Remove.
8628 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
8630 2002-01-05 Andrew Cagney <ac131313@redhat.com>
8632 * configure.tgt: Remove powerpc-*-macos* target.
8633 * config/m68k/xm-mpw.h: Delete file.
8634 * config/xm-mpw.h: Delete file.
8635 * ser-mac.c: Delete file.
8636 * mpw-make.sed: Delete file.
8637 * mpw-config.in: Delete file.
8638 * mac-xdep.c: Delete file.
8639 * mac-gdb.r: Delete file.
8640 * mac-defs.h: Delete file.
8641 * mac-nat.c: Delete file.
8642 * config/powerpc/macos.mh: Delete file.
8643 * config/powerpc/macos.mt: Delete file.
8644 * config/powerpc/nm-macos.h: Delete file.
8645 * config/powerpc/tm-macos.h: Delete file.
8646 * source.c (openp, open_source_file): Remove obsolete code.
8647 * top.c (gdb_readline): Ditto.
8648 * utils.c (query): Ditto.
8649 * event-top.c (display_gdb_prompt): Ditto.
8650 * Makefile.in (ser-mac.o): Delete obsolete target.
8653 2002-01-04 Andrew Cagney <ac131313@redhat.com>
8655 * defs.h (BIG_ENDIAN): Delete macro definition.
8656 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
8657 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
8658 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
8659 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
8660 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
8661 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
8662 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
8663 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
8664 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
8665 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
8666 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
8667 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
8668 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8669 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8670 * gdbarch.c: Re-generate.
8672 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8674 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
8677 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8679 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
8681 2002-01-04 Andrew Cagney <ac131313@redhat.com>
8683 * value.h (value_ptr): Delete typedef.
8685 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8687 * i386nbsd-nat.c: Update copyright years.
8688 Include i386-tdep.h.
8690 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
8692 * stabsread.c: Update copyright years.
8694 From Debashis Mahata <debashis.mahata@wipro.com>:
8695 (read_struct_fields): Deal with Sun C compiler erroneous stab
8696 output for structs and unions.
8699 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8701 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
8704 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8706 * cp-abi.c: Fix whitespace.
8707 (baseclass_offset): New wrapper function.
8708 * cp-abi.h (baseclass_offset): Add prototype.
8709 (struct cp_abi_ops): Add baseclass_offset pointer.
8711 * valops.c (vb_match): Move to...
8712 * gnu-v2-abi.c (vb_match): here.
8713 * valops.c (baseclass_offset): Move to...
8714 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
8716 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
8718 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
8719 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
8720 * hpacc-abi.c (init_hpacc_ops): Likewise.
8722 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8724 * valops.c (find_overload_match): Accept obj as a
8725 reference parameter. Update it before returning.
8726 * value.h (find_overload_match): Update prototype.
8727 * eval.c (evaluate_subexp_standard): Pass object to
8728 find_overload_match by reference.
8730 2002-01-03 Andrew Cagney <ac131313@redhat.com>
8732 * valarith.c: Replace value_ptr with struct value pointer. Remove
8733 register attribute from value declarations.
8736 * scm-lang.c (scm_lookup_name): Ditto.
8738 2002-01-03 Michael Snyder <msnyder@redhat.com>
8740 Abstract the functionality of iterating over mapped memory
8741 regions into a general purpose iterator function.
8742 * procfs.c (iterate_over_mappings): New function, general purpose
8743 iterator for memory sections.
8744 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
8745 (solib_mappings_callback): New function, callback for above.
8746 (info_proc_mappings): Reimpliment using iterate_over_mappings.
8747 (info_mappings_callback): New function, callback for above.
8749 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
8751 2002-01-01 Mark Kettenis <kettenis@gnu.org>
8753 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
8754 * i386-tdep.c: Include "elf-bfd.h".
8755 (process_note_abi_tag_sections): New function.
8756 (i386_gdbarch_init): Add code to recognize various OS/ABI
8759 * maint.c (_initialize_maint_cmds): Add missing \ in
8762 For older changes see ChangeLog-2001
8768 version-control: never