1 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6 2002-07-17 Jim Blandy <jimb@redhat.com>
8 * macrocmd.c (info_macro_command): Remove newline from error
11 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
13 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
14 (sh_gdbarch_init): Use it for sh-dsp.
16 2002-07-16 Kevin Buettner <kevinb@redhat.com>
18 * dwarf2read.c (read_initial_length): Handle older, non-standard,
21 2002-07-16 Joel Brobecker <brobecker@gnat.com>
23 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
24 <sys/proc.h> when not available.
26 2002-07-16 Andrew Cagney <ac131313@redhat.com>
28 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
29 * stabsread.c: Make os9k sections of the code obsolete.
30 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
31 * config/i386/i386os9k.mt: Make file obsolete.
32 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
33 (COMMON_OBS): Remove os9kread.o
34 (SFILES): Remove os9kread.c.
35 (os9kread.o, remote-os9k.o): Make target obsolete.
36 * remote-os9k.c: Make file obsolete.
37 * os9kread.c: Make file obsolete.
40 2002-07-16 Andrew Cagney <ac131313@redhat.com>
42 * NEWS: Mention that the FR30 has been made obsolete.
43 * fr30-tdep.c: Make file obsolete.
44 * config/fr30/tm-fr30.h: Ditto.
45 * config/fr30/fr30.mt: Ditto.
46 * configure.tgt: Make fr30-*-elf obsolete.
47 * MAINTAINERS: Make fr30-elf obsolete.
49 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
51 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
52 found is not inside a section.
54 2002-07-15 Kevin Buettner <kevinb@redhat.com>
56 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
58 (pdc_realloc): Use xrealloc() instead of realloc().
60 2002-07-15 Kevin Buettner <kevinb@redhat.com>
62 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
63 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
64 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
67 2002-07-15 Kevin Buettner <kevinb@redhat.com>
69 * aix-thread.c (ptrace_check): Eliminate goto.
70 (sync_threadlists): Eliminate gotos. Also, fix array overrun
73 2002-07-15 Kevin Buettner <kevinb@redhat.com>
75 * aix-thread.c (gdbcmd.h): Include.
76 (DEBUG, DBG, DBG2, dbg): Eliminate.
77 (debug_aix_thread): New static global.
78 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
79 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
80 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
81 invocations to DBG and DBG2 macros to test against
82 ``debug_aix_thread'' and call fprintf_unfiltered().
83 (_initialize_aix_thread): Add new command "set debug aix-thread".
85 2002-07-15 Andrew Cagney <ac131313@redhat.com>
87 From Gerhard Tonn <TON@de.ibm.com>:
88 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
89 instead of supply_register.
91 2002-07-15 Andrew Cagney <ac131313@redhat.com>
93 * dwarf2cfi.c: Include "gdb_assert.h".
94 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
96 (update_context): Do not use __func__. Add missing ``break''.
97 (update_context): Do not use __func__.
99 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
101 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
102 and its setting. Set gdbarch instruction printing functions
103 directly. For non-rs6000 case use new function
104 gdb_print_insn_powerpc.
105 (gdb_print_insn_powerpc): New function.
107 2002-07-13 Andrew Cagney <ac131313@redhat.com>
109 * NEWS: Mention that the d30v has been marked obsolete.
110 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
111 * configure.tgt: Mark d30v-*-* as obsolete.
112 * d30v-tdep.c: Mark file as obsolete.
113 * config/d30v/d30v.mt: Ditto.
114 * config/d30v/tm-d30v.h: Ditto.
116 2002-07-13 Aidan Skinner <aidan@velvet.net>
118 * ada-tasks.c (add_task_entry): replace calls to
119 malloc() with xmalloc
120 * ada-tasks.c (init_task_list): replace calls to free with xfree()
122 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
123 ada_finish_decode_line_1, all_sals_for_line
124 ada_breakpoint_rewrite): replace calls to free() with xfree()
126 2002-07-12 Kevin Buettner <kevinb@redhat.com>
128 From Nicholas Duffek (with minor changes by Martin Hunt,
129 Louis Hamilton, and Kevin Buettner):
130 * aix-thread.c: New file.
132 2002-07-12 Petr Sorfa <petrs@caldera.com>
134 * dwarf2read.c (dwarf2_invalid_attrib_class): New
135 complaint for invalid attribute class or form.
136 (read_func_scope): DW_AT_frame_base
137 better handling of DW_AT_block*.
138 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
139 better handling of DW_AT_block*.
140 (read_common_block): DW_AT_location
141 better handling of DW_AT_block*.
142 (read_partial_die): DW_AT_location better handling
144 (new_symbol): DW_AT_external better handling of
145 DW_AT_block*. Proper initialization of variable
147 (attr_form_is_block): New function that returns true
148 if the attribute's form is of DW_FORM_block*.
150 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
152 * valops.c (find_method_list): Remove comment about
153 removed STATIC_MEMFUNCP argument.
154 (value_find_oload_method_list): Likewise.
156 2002-07-12 Kevin Buettner <kevinb@redhat.com>
158 From Nicholas Duffek:
159 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
160 target_new_objfile_hook.
162 2002-07-12 Kevin Buettner <kevinb@redhat.com>
164 From Nicholas Duffek:
165 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
168 2002-07-12 Andrew Cagney <cagney@redhat.com>
170 * MAINTAINERS: Mention --enable-sim-build-warnings.
171 (m68hc11-elf): Disable sim build warnings.
172 (m32r-elf): Mark as broken obsolete candidate.
173 (x86_64-linux-gnu): Mark as buildable with -Werror.
174 (arm-elf): Change -w to ``,'' which enables warnings but not
177 2002-07-12 Andrew Cagney <ac131313@redhat.com>
179 * bcache.h: Update copyright.
180 (struct bstring, struct bcache): Move definition to "bcache.c".
181 Replaced by opaque declaration.
182 (bcache_xfree): Replace free_bcache.
183 (bcache_xmalloc, bcache_memory_used): Declare.
185 * bcache.c: Update copyright.
186 (struct bstring, struct bcache): Moved to here from "bcache.h".
188 (bcache_xmalloc, bcache_memory_used): New functions.
189 (bcache_xfree): Replace function free_bcache.
191 * Makefile.in (objfiles.o): Add $(bcache_h).
192 (objfiles_h): Remove $(bcache_h).
193 (symfile.o): Add $(bcache_h).
195 * symmisc.c: Update copyright.
196 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
197 (print_objfile_statistics): Use bcache_memory_used.
199 * symfile.c: Include "bcache.h".
200 (reread_symbols): Use bcache_xfree.
201 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
202 (add_psymbol_to_list): Pass psymbol_cache by value.
203 (add_psymbol_with_dem_name_to_list): Ditto.
205 * objfiles.h: Update copyright.
206 (struct bcache): Declare opaque. Do not include "bcache.h".
207 (struct objfile): Change psymbol_cache and macro_cache to ``struct
209 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
211 * objfiles.c: Include "bcache.h". Update copyright.
212 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
214 (free_objfile): Use bcache_xfree.
216 2002-07-11 Grace Sainsbury <graces@redhat.com>
218 * monitor.c (monitor_fetch_register): Make name a constant.
219 (monitor_store_register): Same.
221 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
223 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
224 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
225 (finish_block) For non-function blocks, hash the symbol table. For
226 function blocks, mark the symbol table as unhashed.
227 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
228 (msymbol_hash_iw): Likewise.
229 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
231 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
232 (lookup_minimal_symbol): Likewise for both.
233 * symtab.h (struct block): Add `hashtable' flag. Comment the
235 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
236 (ALL_BLOCK_SYMBOLS): Update.
237 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
238 (struct symbol): Add `hash_next' pointer.
239 * symtab.c (lookup_block_symbol): Search using the hash table when
241 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
242 (search_symbols, find_addr_symbol): Likewise.
244 * dstread.c (process_dst_block): Clear hashtable bit for new block.
245 (read_dst_symtab): Likewise.
246 * jv-lang.c (get_java_class_symtab): Likewise.
247 * mdebugread.c: Include "gdb_assert.h".
248 (shrink_block): Assert that the block being modified is not hashed.
249 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
250 * symmisc.c (free_symtab_block): Walk the hash table when freeing
252 (dump_symtab): Recognize hashed blocks.
253 * printcmd.c (print_frame_args): Assert that function blocks do not
254 have hashed symbol tables.
255 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
256 (fill_in_ada_prototype, debug_print_block): Likewise.
257 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
259 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
261 * stack.c (print_frame): Use result of frame_address_in_block()
262 instead of fi->pc when evaluating symbols.
263 (backtrace_command_1): Ditto.
265 2002-07-11 Andrew Cagney <cagney@redhat.com>
267 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
270 * arm-tdep.c (arm_register_name): Make return type constant.
272 2002-07-10 Andrew Cagney <ac131313@redhat.com>
274 * win32-nat.c (has_detach_ability): Convert to strict ISO C
276 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
277 * s390-tdep.c (s390_fp_regnum): Ditto.
278 (s390_read_fp): Ditto.
279 (s390_pop_frame): Ditto.
280 (_initialize_s390_tdep): Ditto.
281 * remote.c (get_remote_state): Ditto.
282 * procfs.c (mappingflags): Ditto.
283 * memattr.c (_initialize_mem): Ditto.
284 * mcore-tdep.c (mcore_pop_frame): Ditto.
285 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
286 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
287 * language.c (set_case_str): Ditto.
288 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
289 * frv-tdep.c (new_variant): Ditto.
290 (frv_stopped_data_address): Ditto.
291 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
292 (context_alloc): Ditto.
293 (frame_state_alloc): Ditto.
294 (unwind_tmp_obstack_init): Ditto.
295 (unwind_tmp_obstack_free): Ditto.
296 (cfi_read_fp): Ditto.
297 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
298 (cris_pop_frame): Ditto.
299 * c-lang.c (scanning_macro_expansion): Ditto.
300 (finished_macro_expansion): Ditto.
301 (c_preprocess_and_parse): Ditto.
303 * gdbarch.h, gdbarch.c: Regenerate.
304 * config/mn10200/tm-mn10200.h: Adjust indentation.
305 * target.c: Adjust indentation.
306 * symtab.h: Adjust indentation.
307 * stabsread.h: Adjust indentation.
308 * remote-es.c: Adjust indentation.
309 * os9kread.c: Adjust indentation.
311 2002-07-10 Andrew Cagney <ac131313@redhat.com>
313 * wince.c (_initialize_wince): Rename _initialize_inftarg.
314 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
316 2002-07-10 Grace Sainsbury <graces@redhat.com>
318 * NEWS: Mention m68k, mcore multi-arching.
319 * MAINTAINERS: Change status of m68k, mcore to reflect
322 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
324 * valops.c (find_overload_match): Free oload_syms.
326 2002-07-09 Joel Brobecker <brobecker@gnat.com>
328 Define HAVE_SYS_PROC_H if sys/proc.h exists
329 * configure.in: Add check for sys/proc.h
330 * config.in: Regenerate.
331 * configure: Regenerate.
333 2002-07-09 Grace Sainsbury <graces@redhat.com>
335 * config/m68k/tm-m68k.h: Remove macros wrapped in
338 2002-07-09 David O'Brien <obrien@FreeBSD.org>
340 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
341 (perror_with_name, remote_close, remote_open, expect, play): Static.
343 2002-07-08 Andrew Cagney <ac131313@redhat.com>
345 * config.in, configure: Regenerate.
347 2002-07-08 Mark Kettenis <kettenis@gnu.org>
349 * dwarf2cfi.c: Include "gcore.h".
350 (execute_stack_op): Fix implementation of the
351 DW_OP_deref and DW_OP_deref_size operators by letting do their
352 lookup in the target.
354 2002-07-07 Mark Kettenis <kettenis@gnu.org>
356 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
357 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
360 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
362 Fix PR gdb/595, gdb/602
363 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
364 Don't call value_cast, just read the vtable pointer; update comments
367 2002-07-05 Grace Sainsbury <graces@redhat.com>
369 * config/mcore/tm-mcore.h: Remove file.
370 * config/mcore/mcore.mt: Remove definition of TM_FILE
371 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
373 2002-07-05 Mark Kettenis <kettenis@gnu.org>
375 * i386bsd-tdep.c: Include "gdb_string.h".
377 2002-07-04 Grace Sainsbury <graces@redhat.com>
379 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
380 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
382 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
383 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
384 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
385 (RETVAL_REGNUM): Move macros from tm-mcore.h
386 (mcore_reg_struct_has_addr): New function.
387 (mcore_gdbarch_init): Added initializations for the macros removed
390 2002-07-04 Mark Kettenis <kettenis@gnu.org>
392 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
393 traditonal string branding within the ELF header.
395 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
397 * symtab.c (remove_params): New function.
398 (make_symbol_overload_list): Use it instead of cplus_demangle.
399 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
401 2002-07-04 Mark Kettenis <kettenis@gnu.org>
403 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
405 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
407 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
408 and tdep->sigtramp_end.
409 * i386obsd-nat.c: New file.
410 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
412 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
413 Don't call get_current_frame().
415 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
417 * i386-nat.c (child_post_startup_inferior): New function
418 calling i386_cleanup_dregs if
419 I386_USE_GENERIC_WATCHPOINTS is defined.
420 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
421 conditional to acknowledge that i386-nat.c has its
422 own child_post_startup_inferior function.
424 2002-07-04 Mark Kettenis <kettenis@gnu.org>
426 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
427 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
428 instead of MAX_REGISTER_RAW_SIZE.
429 (i386_extract_return_value, i386_extract_struct_value_address):
430 Convert to use regcache.
431 (i386_gdbarch_init): Set max_register_raw_size and
432 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
433 Set extract_return_value and extract_struct_value_address instead
434 of their deprecated variants.
436 Convert i386 target to generic dummy frames.
437 * i386-tdep.c: Include "symfile.h".
438 (i386_frameless_signal_p): Consider a function to be frameless if
439 the pc points at the first instruction of the function.
440 (i386_frame_chain): Handle (generic) call dummies.
441 (i386_frame_saved_pc): Likewise.
442 (i386_frame_init_saved_regs): Remove code dealing with call
443 dummies on the stack.
444 (i386_push_dummy_frame): Removed.
445 (i386_call_dummy_words): Removed.
446 (i386_fix_call_dummy): Removed.
447 (i386_push_return_address): New function.
448 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
449 parameter, and don't call get_current_frame.
450 (i386_pop_frame): New function.
451 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
452 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
453 entry_point_address, set call_dummy_breakpoint_offset to 0, set
454 call_dummy_length to 0, set call_dummy_words to NULL, set
455 sizeof_call_dummy_words to 0, set fix_call_dummy to
456 generic_fix_call_dummy, set pc_in_call_dummy to
457 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
458 generic_push_dummy_frame, set push_return_address to
459 i386_push_return_address and set frame_chain_valid to
460 generic_file_frame_chain_valid.
462 2002-07-04 Michal Ludvig <mludvig@suse.cz>
464 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
465 byte offsets instead of an array of indexes.
466 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
468 2002-07-03 Andrew Cagney <ac131313@redhat.com>
470 * gdbarch.sh (struct regcache): Add opaque declaration.
471 (EXTRACT_RETURN_VALUE): New architecture method.
472 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
473 * gdbarch.h, gdbarch.c: Regenerate.
474 * arch-utils.c (legacy_extract_return_value): New function.
475 * arch-utils.h (legacy_extract_return_value): Declare.
476 * values.c (value_being_returned): Re-enable code handling
477 EXTRACT_STRUCT_VALUE_ADDRESS. Move
478 deprecated_grub_regcache_for_registers call to block handling
479 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
480 (EXTRACT_RETURN_VALUE): Do not define.
482 2002-07-03 Grace Sainsbury <graces@redhat.com>
484 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
485 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
486 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
487 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
488 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
489 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
490 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
491 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
492 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
493 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
494 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
495 argument so the function fits the prototype in the architecture
497 (mcore_pop_frame): Remove argument so the function fits the
498 prototype. Use get_current_frame instead of the argument.
499 (mcore_push_arguments): Change type of struct_return so the
500 function can be used in the architecture vector.
501 (mcore_store_struct_return): Add.
502 (mcore_frame_init_saved_regs): Add.
503 (mcore_gdbarch_init): Add function calls to replace the macros
504 removed from tm-mcore.h
506 2002-07-03 Andrew Cagney <ac131313@redhat.com>
508 * infcmd.c (print_return_value): Remove compatibility code calling
509 deprecated_grub_regcache_for_registers.
511 * values.c: Include "regcache.h".
512 (value_being_returned): Update. Use
513 deprecated_grub_regcache_for_registers to extract the register
515 * value.h (value_being_returned): Change ``retbuf'' parameter to a
517 * Makefile.in (values.o): Add dependency on $(regcache_h).
519 * inferior.h (run_stack_dummy): Change type of second parameter to
520 a ``struct regcache''.
521 * valops.c (hand_function_call): Change type of retbuf to ``struct
522 regcache''. Allocate using regcache_xmalloc, clean using
523 make_cleanup_regcache_xfree.
524 * infcmd.c (run_stack_dummy): Update. Use
525 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
527 * regcache.c (do_regcache_xfree): New function.
528 (make_cleanup_regcache_xfree): New function.
529 * regcache.h (make_cleanup_regcache_xfree): Declare.
531 2002-07-03 Martin M. Hunt <hunt@redhat.com>
533 * event-top.c (command_line_handler): Don't read past
536 2002-07-03 Martin M. Hunt <hunt@redhat.com>
538 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
540 (varobj_create): Store frame_id for root.
541 (varobj_gen_name): Use xasprintf.
542 (varobj_update): Save and restore frame using get_frame_id() and
544 (create_child): Use xasprintf.
545 (new_root_variable): Initialize frame_id.
546 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
547 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
548 to prevent memory leak.
550 2002-07-03 Andrew Cagney <ac131313@redhat.com>
552 * valops.c (hand_function_call): Move declaration of retbuf to
553 start of function, allocate using malloc, add a cleanup but before
554 the inf_status cleanup, cleanup the buffer. Rename local variable
555 old_chain to inf_status_cleanup.
557 2002-07-03 Martin M. Hunt <hunt@redhat.com>
559 * top.c (execute_command): Use cmd_func() and cmd_func_p().
561 * cli/cli-decode.c (cmd_func_p): New function.
562 (cmd_func): New function.
564 * command.h: Add cmd_func() and cmd_func_p().
566 2002-07-03 Grace Sainsbury <graces@redhat.com>
568 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
569 (REGISTER_SIZE): Remove.
570 (MAX_REGISTER_RAW_SIZE): Remove.
571 (REGISTER_VIRTUAL_TYPE): Remove.
572 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
573 (REGISTER_NAME): Remove.
574 (USE_GENERIC_DUMMY_FRAMES): Remove.
575 (CALL_DUMMY): Remove.
576 (CALL_DUMMY_START_OFFSET): Remove.
577 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
578 (CALL_DUMMY_LOCATION): Remove.
579 (FIX_CALL_DUMMY): Remove.
580 (CALL_DUMMY_ADDRESS): Remove.
581 (SIZEOF_CALL_DUMMY_WORDS): Remove.
582 (SAVE_DUMMY_FRAME_TOS): Remove.
583 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
584 (mcore_register_virtual_type): New function.
585 (mcore_register_byte): New function.
586 (mcore_register_size): New function.
587 (mcore_register_name): New function.
588 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
589 macros removed from tm-mcore.h.
590 (mcore_dump_tdep): Add.
591 (_initialize_mcore_tdep): Add gdbarch_register call.
593 2002-07-03 Mark Kettenis <kettenis@gnu.org>
595 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
596 frameless_look_for_prologue, such that we actually call this
599 2002-07-02 Joel Brobecker <brobecker@gnat.com>
601 * frame.h (frame_address_in_block): New function.
603 * blockframe.c (frame_address_in_block): New function extracted
604 from get_frame_block().
605 (get_frame_block): Use frame_address_in_block().
606 (block_innermost_frame): Use frame_address_in_block() to match
607 the frame pc address against the block boundaries rather than
608 the frame pc directly. This prevents a failure when a frame pc
609 is actually a return-address pointing immediately after the end
612 2002-07-02 Grace Sainsbury <graces@redhat.com>
614 * MAINTAINERS: Add self under write after approval.
616 2002-07-02 Grace Sainsbury <graces@redhat.com>
618 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
619 used in architecture vector. The default is
620 m68k_local_breakpoint_from_pc.
621 (m68k_local_breakpoint_from_pc): Add.
622 (enum): Add register numbers from tm-m68k.h.
623 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
625 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
626 GDB_MULTI_ARCH_PARTIAL.
627 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
628 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
630 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
631 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
632 to enum in m68k-tdep.c
634 2002-07-02 Joel Brobecker <brobecker@gnat.com>
636 * solib-osf.c (open_map): Compute the list of shared libraries
637 loaded by the inferior, rather than the list of libraries loaded
638 by GDB itself. Otherwise, GDB ends up reading the symbols from
639 the wrong shared libraries...
641 2002-07-02 Mark Kettenis <kettenis@gnu.org>
643 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
644 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
646 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
648 (FRAMELESS_SIGNAL): Remove function.
649 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
650 i386_linux_saved_pc_after_call): Removed.
651 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
652 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
653 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
655 * i386-tdep.c (i386_frameless_signal_p): New function.
656 (i386_frame_chain): Deal with frameless signals.
657 (i386_sigtramp_saved_sp): New function.
658 (i386_frame_saved_pc): Deal with frameless signals.
659 (i386_saved_pc_after_call): Make sure the correct value is
660 returned just after entry into a sigtramp.
661 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
662 i386fbsd4_sc_sp_offset): New variables.
663 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
664 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
665 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
666 similiar to what we already did for sc_pc_offset.
667 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
670 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
672 2002-07-02 Michal Ludvig <mludvig@suse.cz>
674 * config/i386/tm-x86-64linux.h: New.
675 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
677 * config/i386/nm-x86-64.h: Rename to ...
678 * config/i386/nm-x86-64linux.h: ... this one.
679 * config/i386/x86-64linux.mh: Reflect the above change.
681 2002-07-01 Mark Kettenis <kettenis@gnu.org>
683 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
684 with sigcontext_addr. Add sc_sp_offset.
685 (i386bsd_sigtramp_saved_pc): Remove prototype.
686 (i386bsd_sicontext_addr): Add prototype.
687 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
688 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
689 (i386_svr4_sigtramp_saved_pc): Removed.
690 (i386_svr4_sigcontext_addr): New function.
691 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
692 Initialize tdep->sigcontext_addr instead. Initialize
693 tdep->sc_pc_offset and tdep->sc_sp_offset.
694 (i386_gdbarch_init): Likewise.
695 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
697 (i386bsd_sigtramp_saved_pc): Remove function.
698 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
699 Initialize tdep->sigcontext_addr instead. Initialize
701 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
702 of tdep->sigtramp_saved_pc.
703 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
704 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
707 * i386-tdep.c (i386_frameless_function_invocation,
708 i386_frame_num_args, i386_frame_init_saved_regs,
709 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
710 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
711 i386_extract_return_value, i386_store_return_value,
712 i386_extract_struct_value_address, i386_register_virtual_type,
713 i386_register_convertible, i386_register_convert_to_virtual,
714 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
715 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
718 2002-07-01 Mark Kettenis <kettenis@gnu.org>
720 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
722 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
723 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
724 this macro. Include "value.h".
726 2002-06-30 Aidan Skinner <aidan@velvet.net>
728 * ada-exp.tab.c: remove as it's a generated file
729 * ada-lex.c: remove as it's a generated file
731 2002-06-30 Mark Kettenis <kettenis@gnu.org>
733 * config/i386/tm-i386.h (struct frame_info, struct
734 frame_saved_regs, struct value, struct type): Remove forward
737 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
738 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
739 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
740 (FILL_FPXREGSET): Define.
742 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
744 * configure.tgt (i[3456]86-*-openbsd*): Fold into
745 i[3456]86-*-netbsd* case.
746 * config/i386/tm-obsd.h: Removed.
747 * config/i386/obsd.mt: Removed.
748 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
750 (MH_CFLAGS): Add -DYYDEBUG=0.
752 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
753 i386nbsd_sc_pc_offset on OpenBSD too.
755 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
756 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
757 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
759 * i386bsd-tdep.c: Include "arch-utils.h".
760 (i386bsd_aout_in_solib_call_trampoline): New function.
761 (i386bsd_init_abi): Set in_solib_call_trampoline to
762 i386bsd_aout_in_solib_call_trampoline.
763 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
764 in_solib_call_trampoline to generic_in_solib_call_trampoline.
766 2002-06-28 Andrew Cagney <ac131313@redhat.com>
768 * macrotab.h: Do not include "obstack.h" or "bcache.h".
769 (struct obstack, struct bcache): Add opaque declarations.
770 * Makefile.in (macrotab_h): Update
772 2002-06-28 Andrew Cagney <ac131313@redhat.com>
774 * blockframe.c (generic_find_dummy_frame): Change return type to
776 (struct dummy_frame): Replace field ``registers'' with regcache, a
777 struct regcache object.
778 (generic_find_dummy_frame): Update.
779 (generic_push_dummy_frame): Update. Use regcache_xfree,
780 regcache_xmalloc and regcache_cpy.
781 (generic_pop_dummy_frame): Update. Use regcache_cpy and
783 (deprecated_generic_find_dummy_frame): Update.
784 (generic_read_register_dummy): Update. Use
785 regcache_read_as_address.
786 (generic_call_dummy_register_unwind): Update. Use regcache_read.
787 (generic_get_saved_register): Update. Use regcache_read.
789 2002-06-28 Andrew Cagney <ac131313@redhat.com>
791 * Makefile.in (objfiles_h): Add $(bcache_h).
792 * objfiles.h: Include "bcache.h".
794 * Makefile.in (symtab_h): Remove $(bcache_h).
795 * symtab.h: Do not include "bcache.h".
797 2002-06-28 Andrew Cagney <ac131313@redhat.com>
799 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
800 generic_func_frame_chain_valid.
802 2002-06-28 David O'Brien <obrien@FreeBSD.org>
804 * config/i386/nm-fbsd.h: Include <sys/param.h>.
805 * config/i386/tm-fbsd.h: Likewise.
807 2002-06-28 Andrew Cagney <ac131313@redhat.com>
809 * rs6000-tdep.c (rs6000_gdbarch_init): Use
810 generic_unwind_get_saved_register.
812 2002-06-27 Andrew Cagney <ac131313@redhat.com>
814 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
815 * regcache.c (supply_register): Add missing argument to
816 register_buffer call.
818 2002-06-27 Andrew Cagney <ac131313@redhat.com>
820 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
821 Solaris /bin/grep does not not like it. From Peter Schauer.
823 2002-06-26 Tom Tromey <tromey@redhat.com>
825 * command.h (add_setshow_cmd): Declare.
826 (add_setshow_cmd_full): Declare.
827 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
828 returns void. Use add_setshow_cmd_full.
829 (add_setshow_cmd_full): New function.
830 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
831 (add_setshow_boolean_cmd): Likewise.
833 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
835 * config/vax/tm-vax.h: Protect from multiple inclusion.
836 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
837 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
838 * config/vax/tm-vaxbsd.h: ...here. New file.
839 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
841 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
843 * config/vax/tm-vax.h (BREAKPOINT): Remove.
844 (BELIEVE_PCC_PROMOTION): Remove.
845 (AP_REGNUM): Move to...
846 * config/vax/nm-vax.h: ...here.
847 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
848 (vax_breakpoint_from_pc): New function.
849 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
850 and gdbarch_believe_pcc_promotion.
852 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
854 * Makefile.in (vax_tdep_h): Define.
855 (vax-tdep.o): Use $(vax_tdep_h).
856 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
857 (vax_dump_tdep): New function.
858 (_initialize_vax_tdep): Register vax_dump_tdep.
859 * vax-tdep.h: Include osabi.h.
860 (struct gdbarch_tdep): New.
862 2002-06-26 Andrew Cagney <cagney@redhat.com>
864 * frame.h (deprecated_generic_find_dummy_frame): Rename
865 generic_find_dummy_frame.
866 * blockframe.c (generic_find_dummy_frame): Make static.
867 (deprecated_generic_find_dummy_frame): New function.
868 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
869 generic_find_dummy_frame with deprecated_find_dummy_frame.
870 (sh64_nofp_frame_init_saved_regs): Ditto.
871 (sh_fp_frame_init_saved_regs): Ditto.
872 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
873 (s390_frame_chain): Ditto.
874 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
876 2002-06-26 Grace Sainsbury <graces@redhat.com>
878 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
879 gdbarch vector are at the top.
881 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
882 (FRAME_ARGS_ADDRESS): Remove.
883 (FRAME_LOCALS_ADDRESS): Remove.
884 (FRAME_NUM_ARGS): Remove.
885 (FRAME_ARGS_SKIP): Remove.
886 * m68k-tdep.c (enum): Add eumeration of special register numbers.
887 (m68k_gdbarch_init): Add gdbarch initializations for macros
888 undefined in tm-m68k.h
890 2002-06-26 Grace Sainsbury <graces@redhat.com>
892 * monitor.h: Add the function regname to monitor_ops
893 structure. This way NUM_REGS does not have to be a constant.
894 * monitor.c (monitor_fetch_register): Added support for regname
895 function. The function is called if the array regnames is NULL.
896 (monitor_store_register): Same.
897 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
899 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
900 cpu32bug_cmds.regname to point to new function.
901 * abug-rom.c (abug_regname): Same as above.
902 (init_abug_cmds): Same.
903 * dbug-rom.c (dbug_regname): Same as above.
904 (init_dbug_cmds): Same.
905 * remote-est.c (est_regname): Same.
906 (init_est_cmds): Same.
907 * rom68k-rom.c (rom68k_regname): Same.
908 (init_rom68k_cmds): Same.
910 2002-06-25 Tom Tromey <tromey@redhat.com>
912 * breakpoint.c (delete_command): Don't repeat `delete' commands.
914 2002-06-25 Andrew Cagney <cagney@redhat.com>
916 * infrun.c (stop_registers): Change variable's type to ``struct
918 (xmalloc_inferior_status): Delete function.
919 (free_inferior_status): Delete function.
920 (normal_stop): Use regcache_cpy.
921 (struct inferior_status): Change type of fields ``stop_registers''
922 and ``registers'' to ``struct regcache''.
923 (write_inferior_status_register): Use regcache_write.
924 (save_inferior_status): Instead of calling
925 xmalloc_inferior_status, allocate the inf_status buffer directly.
926 Use regcache_dup_no_passthrough and regcache_dup to save the
928 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
929 Replace the stop_registers regcache instead of overriding it. Use
930 regcache_xfree. Instead of calling free_inferior_status, xfree
932 (discard_inferior_status): Use regcache_xfree. Instead of calling
933 free_inferior_status, xfree the buffer directly.
934 (build_infrun): Use regcache_xmalloc.
935 (_initialize_infrun): Delete redundant call to build_infrun.
937 * Makefile.in (infcmd.o): Add $(regcache_h).
939 * infcmd.c: Include "regcache.h".
940 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
941 obtain the address of `stop_registers' register buffer.
942 (print_return_value): Ditto.
944 * inferior.h (struct regcache): Add opaque declaration.
945 (stop_registers): Change variable's declared type to ``struct
948 2002-06-24 Tom Tromey <tromey@redhat.com>
950 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
951 * target.c (initialize_targets): Fixed typo in
952 trust-readonly-sections `show' documentation.
954 * main.c: Marked all strings with _().
956 2002-06-24 Don Howard <dhoward@redhat.com>
958 * memattr.c (create_mem_region): Treat hi == 0 as a special case
959 that means max CORE_ADDR+1.
960 (lookup_mem_region): Ditto.
961 (mem_info_command): Ditto.
963 2002-06-24 Grace Sainsbury <graces@redhat.com>
965 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
966 (REGISTER_BYTES_OK): Remove.
967 (REGISTER_BYTES): Remove.
968 (STORE_STRUCT_RETURN): Remove.
969 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
970 (STORE_RETURN_VALUE): Remove.
971 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
972 (FRAME_CHAIN): Remove.
973 (FRAMELESS_FUNCTION_INVOCATION): Remove.
974 (FRAME_SAVED_PC): Remove.
975 * m68k-tdep.c (m68k_register_bytes_ok):Add.
976 (m68k_store_struct_return): Add.
977 (m68k_deprecated_extract_return_value): Add.
978 (m68k_deprecated_extract_struct_value_address): Add.
979 (m68k_store_return_value): Add.
980 (m68k_frame_chain): Add.
981 (m68k_frameless_function_invocation): Add.
982 (m68k_frame_saved_pc): Add.
983 (m68k_gdbarch_init): added set_gdbarch calls for new
984 functions and deleted macros.
986 2002-06-23 Tom Tromey <tromey@redhat.com>
988 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
989 (ALLDEPFILES): Likewise.
990 (udiheaders): Removed.
991 (udip2soc.o): Likewise.
992 (udi2go32.o): Likewise.
994 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
996 2002-06-22 Andrew Cagney <ac131313@redhat.com>
998 * infrun.c (_initialize_infrun): Delete unnecessary call to
1001 * regcache.h: Update comments describing the regcache_cpy family
1003 (regcache_save, regcache_restore): Delete declaration.
1004 (regcache_save_no_passthrough): Delete declaration.
1005 (regcache_restore_no_passthrough): Delete declaration.
1006 * regcache.c (regcache_save): Delete function.
1007 (regcache_save_no_passthrough): Delete function.
1008 (regcache_restore): Delete function.
1009 (regcache_restore_no_passthrough): Delete function.
1011 2002-06-21 Andrew Cagney <ac131313@redhat.com>
1013 * config/m68k/tm-m68k.h: Fix typo.
1014 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
1015 (m68k_frame_init_saved_regs): Declare.
1017 2002-06-21 Jim Blandy <jimb@redhat.com>
1019 Remove some vestiges of Harris 88k support.
1020 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
1021 register numbering quirk.
1022 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
1023 odd symbols occurring in Harris 88k ELF targets.
1025 2002-06-21 Tom Tromey <tromey@redhat.com>
1027 * gdb_locale.h: New file.
1028 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
1029 (defs_h): Added gdb_locale.h.
1030 * configure, config.in: Rebuilt.
1031 * configure.in (PACKAGE): Define.
1032 * defs.h: Include gdb_locale.h.
1033 * main.c (captured_main): Call setlocale, bindtextdomain,
1036 2002-06-21 Dave Brolley <brolley@redhat.com>
1038 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
1039 * config/frv/frv.mt: New file.
1040 * config/frv/tm-frv.h: New file.
1041 * configure.tgt: Support frv-*-*.
1042 * Makefile.in (frv-tdep.o): New target.
1043 * frv-tdep.c: New file.
1044 * NEWS: Mention frv.
1046 2002-06-21 Dave Brolley <brolley@redhat.com>
1048 * MAINTAINERS: Add self to "Write After Approval" list.
1050 2002-06-21 Grace Sainsbury <graces@redhat.com>
1052 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
1053 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
1054 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
1055 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
1056 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
1058 * m68k-tdep.c: Include arch-utils.h
1059 (m68k_register_raw_size): Add.
1060 (m68k_register_virtual_size): Add.
1061 (m68k_register_virtual_type): Add.
1062 (m68k_register_name): Add.
1063 (m68k_stack_align): Add.
1064 (m68k_register_byte): Add.
1065 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
1068 2002-06-21 Grace Sainsbury <graces@redhat.com>
1070 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
1071 m68k_find_saved_regs.
1072 (m68k_pop_frame): Removed saved_regs structure, and replaced
1073 references to it with frame->saved_regs.
1074 (m68k_gdbarch_init): Added function calls to initialize the
1076 (m68k_fix_call_dummy): Add.
1077 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
1078 (CALL_DUMMY): Remove.
1079 (CALL_DUMMY_LENGTH): Remove.
1080 (CALL_DUMMY_START_OFFSET): Remove.
1081 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1082 (FIX_CALL_DUMMY): Remove.
1083 (PUSH_DUMMY_FRAME): Remove.
1084 (POP_FRAME): Remove.
1086 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
1088 * parse.c (parse_fprintf): New function used to avoid calls to
1089 fprintf in bison parser generated debug code.
1090 * parser-defs.h: Declaration of new parse_fprintf function.
1091 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
1092 Set YYDEBUG to 1 by default.
1093 Set YYFPRINTF as parse_fprintf.
1095 2002-06-21 Michal Ludvig <mludvig@suse.cz>
1097 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
1099 (pointer_encoding, enum ptr_encoding): New.
1100 (execute_cfa_program): Take care about pointer encoding.
1101 (dwarf2_build_frame_info): Only call parse_frame_info for
1102 .debug_frame and .eh_frame.
1103 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
1104 fixed augmentation handling, added relative addressing,
1105 ignore duplicate FDEs. Added comments.
1106 * dwarf2cfi.c: Reindented.
1108 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
1110 * event-top.c (command_handler): Don't use space_at_cmd_start
1111 unless there is sbrk() on the host. Assign time and space data
1112 to union fields of the appropriate length.
1114 2002-06-20 Michal Ludvig <mludvig@suse.cz>
1116 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
1117 x86_64_register_name. Return type changed to 'const char *'.
1118 (x86_64_register_name2nr): Rename to x86_64_register_number.
1119 (x86_64_gdbarch_init): Update to reflect the change.
1120 * x86-64-tdep.h: Ditto.
1121 * x86-64-linux-nat.c (x86_64_fxsave_offset)
1122 (supply_fpregset): Ditto.
1124 2002-06-19 Andrew Cagney <cagney@redhat.com>
1126 * regcache.h: Update copyright.
1127 (struct regcache, struct gdbarch): Add opaque declarations.
1128 (current_regcache): Declare global variable.
1129 (regcache_read, regcache_write): Add gdbarch parameter.
1130 (regcache_save, regcache_save_no_passthrough)
1131 (regcache_restore, regcache_restore_no_passthrough)
1132 (regcache_dup, regcache_dup_no_passthrough)
1133 (regcache_cpy, regcache_cpy_no_passthrough)
1134 (deprecated_grub_regcache_for_registers)
1135 (deprecated_grub_regcache_for_register_valid)
1136 (regcache_valid_p): Add function declarations.
1138 * regcache.c: Update copyright.
1139 (regcache_descr_handle): New global variable.
1140 (struct regcache_descr): Define.
1141 (init_legacy_regcache_descr, init_regcache_descr): New functions.
1142 (regcache_descr, xfree_regcache_descr): New functions.
1143 (struct regcache): Define.
1144 (regcache_xmalloc, regcache_xfree): New functions.
1145 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
1146 (regcache_dup, regcache_dup_no_passthrough): New functions.
1147 (regcache_valid_p, regcache_read_as_address): New functions.
1148 (deprecated_grub_regcache_for_registers): New function.
1149 (deprecated_grub_regcache_for_register_valid): New function.
1150 (current_regcache): New global variable.
1151 (register_buffer): Add regcache parameter. Update calls.
1152 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
1153 (read_register_gen, write_register_gen): Update register_buffer
1154 call. Test for legacy_p instead of gdbarch_register_read_p or
1155 gdbarch_register_write_p.
1156 (regcache_collect): Update register_buffer call.
1157 (build_regcache): Rewrite. Use deprecated grub functions.
1158 (regcache_save, regcache_save_no_passthrough): New functions.
1159 (regcache_restore, regcache_restore_no_passthrough): New
1161 (_initialize_regcache): Create the regcache_data_handle. Swap
1162 current_regcache global variable.
1164 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
1165 parameter to regcache_read and regcache_write calls.
1166 (sh4_register_read): Ditto.
1167 (sh64_pseudo_register_read): Ditto.
1168 (sh64_register_read): Ditto.
1169 (sh_pseudo_register_write): Ditto.
1170 (sh4_register_write): Ditto.
1171 (sh64_pseudo_register_write): Ditto.
1172 (sh64_register_write): Ditto.
1174 * defs.h (XCALLOC): Define.
1176 2002-06-19 Grace Sainsbury <graces@redhat.com>
1178 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
1179 * m68k-tdep.c (m68k_gdbarch_init): Added.
1180 (m68k_dump_tdep): Added.
1182 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
1184 * ada-lang.c (fill_in_ada_prototype): Update comment.
1186 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
1188 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
1190 (mips_abi_string, mips_abi_strings): New.
1191 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
1192 (mips_gdbarch_init): Set tdep->found_abi. Don't set
1193 tdep->mips_abi_string. Honor mips_abi_string. Default to
1194 O32 if no ABI is found.
1195 (mips_dump_tdep): Use mips_abi_strings.
1196 (mips_abi_update): New function.
1197 (_initialize_mips_tdep): Initialize mips_abi_string. Add
1198 ``set mips abi'' and ``show mips abi''. Check the size of
1201 2002-06-19 Andrew Cagney <cagney@redhat.com>
1203 * i386-linux-tdep.c (i386_linux_register_name): Make return type
1206 2002-06-18 Joel Brobecker <brobecker@gnat.com>
1208 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
1209 current frame using only the first stack size adjustment. All
1210 subsequent size adjustments are not considered to be part of
1211 the "static" part of the current frame.
1212 Compute the address of the saved registers relative to the
1213 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
1214 in use in this frame.
1216 2002-06-18 Don Howard <dhoward@redhat.com>
1218 * valops.c (value_ind): Use value_at_lazy() when dereferencing
1219 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
1220 suggesting this solution.
1222 2002-06-18 Andrew Cagney <ac131313@redhat.com>
1224 * config/romp/xm-rtbsd.h: Delete file.
1225 * config/romp/rtbsd.mh: Delete file.
1227 2002-06-18 Keith Seitz <keiths@redhat.com>
1229 * breakpoint.c (condition_command): Post breakpoint_modify
1230 when a condition is added to an existing breakpoint.
1231 (commands_command): Likewise for commands.
1232 (set_ignore_count): Likewise for ignore counts.
1233 If no tty, do not simply return, still need to send event
1235 (ignore_command): Only print a newline if the command came
1237 Don't call breakpoints_changed, since this is now properly
1238 handled by set_ignore_count.
1240 2002-06-18 Andrew Cagney <cagney@redhat.com>
1242 * MAINTAINERS: Note that cris-elf target can be compiled with
1244 * cris-tdep.c (cris_register_name): Make return type constant.
1245 (cris_breakpoint_from_pc): Ditto.
1247 2002-06-18 Michal Ludvig <mludvig@suse.cz>
1249 * frame.h (struct frame_info): Change type of context to
1252 2002-06-17 Andrew Cagney <cagney@redhat.com>
1254 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
1256 * gdbarch.h, gdbarch.c: Regenerate.
1257 * config/mips/tm-mips.h (mips_register_name): Update.
1258 * i386-tdep.h (i386_register_name): Update.
1259 * mips-tdep.c (mips_register_name): Update
1260 * alpha-tdep.c (alpha_register_name): Update.
1261 * arch-utils.c (legacy_register_name): Update.
1262 * arch-utils.h (legacy_register_name): Update.
1263 * avr-tdep.c (avr_register_name): Update.
1264 * ia64-tdep.c (ia64_register_name): Update.
1265 * i386-tdep.c (i386_register_name): Update.
1266 * sparc-tdep.c (sparc32_register_name): Update.
1267 (sparc64_register_name): Update.
1268 (sparclite_register_name): Update.
1269 (sparclet_register_name): Update.
1270 * sh-tdep.c (sh_generic_register_name): Update.
1271 (sh_sh_register_name): Update.
1272 (sh_sh3_register_name): Update.
1273 (sh_sh3e_register_name): Update.
1274 (sh_sh_dsp_register_name): Update.
1275 (sh_sh3_dsp_register_name): Update.
1276 (sh_sh4_register_name): Update.
1277 (sh_sh64_register_name): Update.
1278 * s390-tdep.c (s390_register_name): Update.
1279 * rs6000-tdep.c (rs6000_register_name): Update.
1280 * ns32k-tdep.c (ns32k_register_name_32082): Update.
1281 (ns32k_register_name_32382): Update.
1282 * d10v-tdep.c (d10v_ts2_register_name): Update.
1283 (d10v_ts3_register_name): Update.
1284 * xstormy16-tdep.c (xstormy16_register_name): Update.
1285 * vax-tdep.c (vax_register_name): Update.
1286 * v850-tdep.c (v850_register_name): Update.
1287 * m68hc11-tdep.c (m68hc11_register_name): Update.
1288 * mn10300-tdep.c (mn10300_generic_register_name): Update.
1289 (am33_register_name): Update.
1291 2002-06-17 Grace Sainsbury <graces@redhat.com>
1293 * m68k-tdep.c: Reindented.
1295 2002-06-17 Andrew Cagney <ac131313@redhat.com>
1297 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
1298 list of predefined types.
1300 2002-06-16 Mark Kettenis <kettenis@gnu.org>
1302 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
1303 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1304 REGISTER_CONVERT_TO_RAW): Remove defines.
1305 (i386_register_virtual_type, i386_register_convertible,
1306 i386_register_convert_to_virtual, i386_register_convert_to_raw):
1308 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1309 macros mentioned above.
1311 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
1312 (i386lynx_saved_pc_after_call): Remove prototype.
1313 * i386ly-tdep.c: Include "i386-tdep.h".
1314 (i386lynx_saved_pc_after_call): Make static. Use
1315 read_memory_nobpt instead of read_memory. Use
1316 read_memory_unsigned_integer instead of read_memory_integer.
1317 (i386lynx_init_abi): New function.
1318 (i386lynx_coff_osabi_sniffer): New function.
1319 (_initialize_i386bsd_tdep): New function.
1321 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
1322 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
1323 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
1324 (i386_fix_call_dummy): Remove prototype.
1325 * i386-tdep.c (i386_call_dummy_words): New variable.
1326 (i386_gdbarch_init): Adjust for removal of the
1327 macros mentioned above.
1329 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1331 * command.h (add_setshow_auto_boolean_cmd): Replace
1332 add_set_auto_boolean_cmd.
1333 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
1334 add_set_auto_boolean_cmd.
1335 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
1336 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
1337 mask-address'' command.
1338 (show_mask_address): Add cmd parameter.
1339 * remote.c (add_packet_config_cmd): Update. Change type of
1340 set_func and show_func to cmd_sfunc_ftype.
1341 (_initialize_remote): Update `set remote Z-packet'
1342 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
1343 (show_remote_protocol_e_packet_cmd): Ditto.
1344 (show_remote_protocol_E_packet_cmd): Ditto.
1345 (show_remote_protocol_P_packet_cmd): Ditto.
1346 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
1347 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
1348 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
1349 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
1350 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
1351 (show_remote_protocol_Z_packet_cmd): Ditto.
1352 (show_remote_protocol_binary_download_cmd): Ditto.
1353 (show_remote_cmd): Pass NULL to all of above.
1355 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1357 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
1358 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
1359 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
1360 POP_FRAME): Remove defines.
1361 (i386_push_arguments, i386_store_struct_return,
1362 i386_extract_return_value, i386_store_return_value,
1363 i386_extract_struct_value_address, i386_push_dummy_frame,
1364 i386_pop_frame): Renove prototypes.
1365 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1366 macros mentioned above.
1368 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1370 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
1371 add_set_boolean_cmd.
1372 (add_setshow_cmd): New function.
1373 * command.h (add_setshow_boolean_cmd): Replace
1374 add_set_boolean_cmd.
1375 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
1376 and ``set rdiromatzero''.
1377 * maint.c (_initialize_maint_cmds): Update commented out code.
1378 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
1379 * target.c (initialize_targets): Update `set
1380 trust-readonly-sections'.
1381 * remote.c (_initialize_remote): Update `set remotebreak'.
1383 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1385 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
1386 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
1387 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
1388 fit into multi-arch framework.
1389 (i386_breakpoint_from_pc): New function.
1390 (i386_gdbarch_init): Adjust for removal of the macros mentioned
1393 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
1394 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
1395 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
1396 (i386_frameless_function_invocation, i386_frame_num_args,
1397 i386_frame_init_saved_regs): Remove prototypes.
1398 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1399 macros mentioned above.
1401 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1403 * cli/cli-decode.c (set_cmd_cfunc): Update.
1404 (set_cmd_sfunc): Update.
1405 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
1406 (set_cmd_sfunc, set_cmd_cfunc): Update.
1407 * cli/cli-decode.h: Update.
1409 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1411 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
1412 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
1414 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1416 * defs.h (auto_boolean): Declare enum.
1417 * command.h (cmd_auto_boolean): Delete enum.
1418 * mips-tdep.c (mask_address_var): Update.
1419 (mips_mask_address_p): Update.
1420 (show_mask_address): Update.
1421 * remote.c (struct packet_config): Update.
1422 (update_packet_config): Update.
1423 (show_packet_config_cmd): Update.
1424 (packet_ok): Update.
1425 (add_packet_config_cmd): Update.
1426 (_initialize_remote):
1427 * command.h: Update.
1428 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
1429 (do_setshow_command): Update.
1430 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
1431 * cli/cli-decode.h: Update.
1433 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1435 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
1436 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
1437 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
1438 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
1439 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
1440 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
1442 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
1443 list of DJGPP COFF targets.
1445 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
1446 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
1447 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
1448 (FP0_REGNUM): Remove define.
1449 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
1450 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
1451 (i386_register_virtual_size): Remove protoype.
1452 * i386-tdep.c (i386_register_virtual_size): Removed.
1453 (i386_extract_return_value, i386_store_return_value): Use
1454 FP0_REGNUM instead of NUM_FREGS to determine whether the
1455 floating-point registers are available.
1456 (i386_gdbarch_init): Tweak FIXME about FPU registers.
1457 Adjust for removal of macros mentioned above.
1459 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1461 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
1463 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
1465 (supply_gregset, fill_gregset): Remove use of register keyword and
1466 remove declaration for regmap. Use I386_NUM_GREGS instead of
1467 NUM_REGS and NUM_FREGS.
1468 (FPREGSET_FSAVE_OFFSET): Remove.
1469 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
1470 NUM_FREGS to determine whether the floating-point registers are
1473 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
1474 gnu_store_registers): Replace usage of NUM_GREGS with
1477 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
1478 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
1479 usage of NUM_GREGS with I386_NUM_GREGS.
1481 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
1483 * i386bsd-nat.c: Include "i386-tdep.h".
1484 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
1487 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
1488 and associated comment. They no longer make any sense, since we
1489 don't use this file anymore on Linux.
1491 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
1492 * i386-tdep.c (i386_register_offset, i386_register_size): Use
1493 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
1494 elements in these arrays.
1495 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
1498 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1500 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
1501 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
1503 2002-06-14 Andrew Cagney <cagney@redhat.com>
1505 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
1506 EXTRACT_RETURN_VALUE.
1507 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
1508 EXTRACT_STRUCT_VALUE_ADDRESS.
1509 * gdbarch.h, gdbarch.c: Regenerate.
1511 * values.c (value_being_returned): Handle
1512 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1513 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
1515 * arm-linux-tdep.c (arm_linux_init_abi): Update.
1516 * arm-tdep.c (arm_gdbarch_init): Update.
1517 * avr-tdep.c (avr_gdbarch_init): Update.
1518 * cris-tdep.c (cris_gdbarch_init): Update.
1519 * d10v-tdep.c (d10v_gdbarch_init): Update.
1520 * ia64-tdep.c (ia64_gdbarch_init): Update.
1521 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1522 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1523 * s390-tdep.c (s390_gdbarch_init): Update.
1524 * sh-tdep.c (sh_gdbarch_init): Update.
1525 * s390-tdep.c (s390_gdbarch_init): Update.
1526 * sparc-tdep.c (sparc_gdbarch_init): Update.
1527 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1528 * v850-tdep.c (v850_gdbarch_init): Update.
1529 * vax-tdep.c (vax_gdbarch_init): Update.
1530 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1531 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1533 * config/arc/tm-arc.h: Update.
1534 * config/d30v/tm-d30v.h: Update.
1535 * config/fr30/tm-fr30.h: Update.
1536 * config/h8300/tm-h8300.h: Update.
1537 * config/h8500/tm-h8500.h: Update.
1538 * config/i386/tm-i386.h: Update.
1539 * config/i386/tm-ptx.h: Update.
1540 * config/i386/tm-symmetry.h: Update.
1541 * config/i960/tm-i960.h: Update.
1542 * config/m32r/tm-m32r.h: Update.
1543 * config/m68k/tm-delta68.h: Update.
1544 * config/m68k/tm-linux.h: Update.
1545 * config/m68k/tm-m68k.h: Update.
1546 * config/m88k/tm-m88k.h: Update.
1547 * config/mcore/tm-mcore.h: Update.
1548 * config/mips/tm-mips.h: Update.
1549 * config/mn10200/tm-mn10200.h: Update.
1550 * config/pa/tm-hppa.h: Update.
1551 * config/pa/tm-hppa64.h: Update.
1552 * config/sparc/tm-sp64.h: Update.
1553 * config/sparc/tm-sparc.h: Update.
1554 * config/sparc/tm-sparclet.h: Update.
1555 * config/z8k/tm-z8k.h: Update.
1557 2002-06-14 Andrew Cagney <cagney@redhat.com>
1559 * Makefile.in (i386_linux_tdep_h): Define.
1560 (i386_tdep_h, i387_tdep_h): Define.
1561 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
1562 $(i386_tdep_h) and $(i387_tdep_h).
1563 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1565 2002-06-14 Mark Kettenis <kettenis@gnu.org>
1567 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
1568 Already covered by the default.
1570 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
1571 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
1572 (i386_gdbarch_init): Initialize long_double_format and long_double
1575 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
1576 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
1578 * config/i386/i386sol2.mh: ... here.
1579 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
1580 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
1581 (SIGCONTEXT_PC_OFFSET): Remove define.
1582 (IN_SIGTRAMP): Remove define.
1583 * i386-sol2-tdep.c: New file.
1585 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
1586 * config/i386/tm-i386nw.h: Removed.
1588 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
1589 USE_STRUCT_CONVENTION): Remove defines.
1590 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1591 (get_longjmp_target): Remove prototype.
1592 (IN_SIGTRAMP): Remove define.
1593 (i386bsd_in_sigtramp): Remove prototype.
1594 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1595 function. Update comment accordingly
1596 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1597 (FRAME_SAVED_PC): Remove define.
1598 (i386bsd_frame_saved_pc): Remove prototype.
1599 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
1600 GET_LONGJMP_TARGET): Remove defines.
1601 (get_longjmp_target): Remove prototype.
1602 (IN_SIGTRAMP): Remove define.
1603 (i386bsd_in_sigtramp): Remove prototype.
1604 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1605 function. Update comment accordingly
1606 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1607 (FRAME_SAVED_PC): Remove define.
1608 (i386bsd_frame_saved_pc): Remove prototype.
1609 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
1611 (USE_STRUCT_CONVENTION): Remove prototype.
1612 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
1614 (_initialize_i386bsd_nat): Revise logic to determine some
1615 constants at compile time when compiling a native GDB. Warn if
1616 things don't match up with what we expect.
1617 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
1619 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
1620 to use date stored in `struct gdbarch_tdep'.
1621 (i386bsd_sigcontext_offset): Remove varaible.
1622 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
1623 stored in `struct gdbarch_tdep'.
1624 (i386bsd_frame_saved_pc): Make static.
1625 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
1626 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
1627 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1628 i386fbsd4_sc_pc_offset): New variables.
1629 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
1630 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
1632 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
1634 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
1635 Modify the value of i386fbsd_sigtramp_start and
1636 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
1637 i386fbsd_sigtramp_end.
1638 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
1641 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
1642 define to i386-linux-tdep.h.
1643 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
1644 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
1646 (i386_linux_register_name, i386_linux_register_byte,
1647 i386_linux_register_raw_size): Remove prototypes.
1648 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
1649 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
1650 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
1651 TARGET_WRITE_PC): Remove defines.
1652 (i386_linux_in_sigtramp, i386_linux_frame_chain,
1653 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
1654 i386_linux_write_pc): Remove prototypes.
1655 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1656 (get_longjmp_target): Remove prototype.
1657 * i386-linux-tdep.h: New file.
1658 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1659 * i386-linux-tdep.c: Include "i386-tdep.h" and
1660 "i386-linux-tdep.h".
1661 (i386_linux_register_name, i386_linux_register_byte,
1662 i386_linux_register_raw_size, i386_linux_in_sigtramp,
1663 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
1665 (i386_linux_init_abi): New function.
1666 (_initialize_i386_linux_tdep): New function.
1668 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
1669 (i386_saved_pc_after_call): Remove prototype.
1670 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
1671 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
1672 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
1673 (i386_register_name, i386_stab_reg_to_regnum,
1674 i386_dwarf_reg_to_regnum): Remove prototypes.
1675 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
1676 SIZEOF_SSE_REGS): Remove defines.
1677 (REGISTER_BYTES): Remove define.
1678 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
1679 (i386_register_byte, i386_register_raw_size): Remove prototypes.
1680 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
1681 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
1682 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
1683 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
1684 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
1685 (get_longjmp_target): Remove prototype.
1686 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
1687 (sigtramp_saved_pc): Remove define.
1688 (i386v4_sigtramp_saved_pc): Remove prototype.
1689 * config/i386/tm-go32.h (FRAME_CHAIN,
1690 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
1691 (i386go32_frame_saved_pc): Remove prototype.
1692 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1693 (get_longjmp_target): Remove prototype.
1694 * i386-tdep.h: Include "osabi.h".
1695 (enum i386_abi): Removed.
1696 (enum struct_return): New enum.
1697 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
1698 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
1699 sc_pc_offset members.
1700 (i386_gdbarch_register_os_abi): Remove prototype.
1701 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
1702 I386_SSE_NUM_REGS): New defines.
1703 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
1704 I386_SSE_SIZEOF_REGS): New defines.
1705 (i386_register_name, i386_register_byte, i386_register_raw_size):
1707 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
1708 (i386bsd_sigtramp_saved_pc): New prototype.
1709 * i386-tdep.c: Don't include "elf-bfd.h".
1710 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
1711 i386_frame_chain, i386_saved_pc_after_call): Make static.
1712 (i386_frame_saved_pc): Rewrite to call architecture dependent
1713 function to deal with signal handlers. Make static.
1714 (i386go32_frame_saved_pc): Removed.
1715 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
1717 (i386_get_longjmp_target): New function.
1718 (default_struct_convention, pcc_struct_convention,
1719 reg_struct_convention, valid_conventions, struct_convention): New
1721 (i386_use_struct_convention): New function.
1722 (i386v4_sigtramp_saved_pc): Renamed to
1723 i386_svr4_sigtramp_saved_pc. Made static. Moved.
1724 (i386_pc_in_sigtramp): New function.
1725 (i386_abi_names): Removed.
1726 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
1727 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
1729 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
1730 i386_gdbarch_register_os_abi): Removed.
1731 (struct i386_abi_handler): Removed.
1732 (i386_abi_handler_list): Removed.
1733 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
1735 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
1736 i386_nw_init_abi): New functions.
1737 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
1738 Use set_gdbarch_xxx() calls instead of relying on macros for a
1740 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
1741 (_initialize_i386_tdep): Add new 'struct-convcention' command.
1742 Register the various architecture variants defined in this file.
1744 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
1746 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
1747 (struct main_type): Remove arg_types member. Update comments for
1749 (TYPE_ARG_TYPES): Remove.
1750 (TYPE_FN_FIELD_ARGS): Update.
1751 (smash_to_method_type): Update prototype.
1753 * c-typeprint.c (cp_type_print_method_args): Take method type
1754 instead of argument list. Use new argument layout. Simplify.
1755 (c_type_print_args): Use new argument layout. Simplify.
1756 (c_type_print_base): Update call to cp_type_print_method_args.
1757 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
1758 argument; use die->type instead. Update call to
1759 smash_to_method_type.
1760 (read_structure_scope): Update call to dwarf2_add_member_fn.
1761 * gdbtypes.c (allocate_stub_method): Update comment.
1762 (smash_to_method_type): Take new NARGS and VARARGS arguments.
1763 Use new argument layout.
1764 (check_stub_method): Use new argument layout. Don't count
1765 void as an argument.
1766 (print_arg_types): Update comments. Use new argument layout.
1767 (recursive_dump_type): Don't print arg_types member.
1768 * hpread.c (hpread_read_struct_type): Use new argument layout.
1769 (fixup_class_method_type): Likewise.
1770 (hpread_type_lookup): Likewise.
1771 * stabsread.c (read_type): Update calls to read_args and
1772 smash_to_method_type.
1773 (read_args): Use new argument layout. Simplify.
1774 * valops.c (typecmp): Use new argument layout. Update parameters
1775 and comments. Simplify.
1776 (hand_function_call): Use new argument layout.
1777 (search_struct_method): Update call to typecmp.
1778 (find_overload_match): Use new argument layout.
1780 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1782 * NEWS: Mention multithreaded debug support for gdbserver.
1784 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1786 * MAINTAINERS: Mention NEWS.
1788 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1790 * gdbserver/regcache.c: Add comment.
1792 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1794 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
1795 (struct mips_objfile_private, compare_pdr_entries): New.
1796 (non_heuristic_proc_desc): Read the ".pdr" section if it
1799 2002-06-12 Andrew Cagney <ac131313@redhat.com>
1801 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
1802 (arm_debug): New static variable.
1803 (_initialize_arm_tdep): Add ``set debug arm'' command.
1805 2002-06-12 Andrew Cagney <ac131313@redhat.com>
1807 * Makefile.in (sim_arm_h): Define.
1808 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
1809 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
1810 (arm_register_sim_regno): New function, map an internal REGNUM
1811 onto a simulator register number.
1812 (arm_gdbarch_init): Set register_sim_regno.
1814 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
1816 * MAINTAINERS: Add self.
1818 2002-06-11 Jim Blandy <jimb@redhat.com>
1820 * source.c (source_info): Mention whether the symtab has
1821 information about preprocessor macros.
1823 Call the command `info macro', not `show macro'.
1824 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
1826 (_initialize_macrocmd): Register `info_macro_command' in
1827 `infolist', not `showlist'.
1829 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
1831 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
1832 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
1833 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
1834 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
1835 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
1837 (set_mipsfpu_single_command, set_mipsfpu_double_command)
1838 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
1839 (_initialize_mips_tdep): Remove dead code.
1840 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
1841 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1842 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
1843 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1844 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
1845 MIPS_LAST_FP_ARG_REGNUM): Remove.
1847 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
1849 * gdbserver/thread-db.c: New file.
1850 * gdbserver/proc-service.c: New file.
1851 * gdbserver/acinclude.m4: New file.
1852 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
1853 proc-service.o, and thread-db.o.
1854 (linux-low.o): Add USE_THREAD_DB.
1855 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
1856 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
1857 * gdbserver/aclocal.m4: Regenerated.
1858 * gdbserver/config.in: Regenerated.
1859 * gdbserver/configure: Regenerated.
1860 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
1861 thread_db.h, and linux/elf.h headrs.
1862 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
1863 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
1864 Check for -lthread_db and thread support.
1865 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
1866 PowerPC, and SuperH.
1867 * gdbserver/i387-fp.c: Constify arguments.
1868 * gdbserver/i387-fp.h: Likewise.
1869 * gdbserver/inferiors.c: (struct thread_info): Renamed from
1870 `struct inferior_info'. Remove PID member. Use generic inferior
1871 list header. All uses updated.
1872 (inferiors, signal_pid): Removed.
1873 (all_threads): New variable.
1874 (get_thread): Define.
1875 (add_inferior_to_list): New function.
1876 (for_each_inferior): New function.
1877 (change_inferior_id): New function.
1878 (add_inferior): Removed.
1879 (remove_inferior): New function.
1880 (add_thread): New function.
1881 (free_one_thread): New function.
1882 (remove_thread): New function.
1883 (clear_inferiors): Use for_each_inferior and free_one_thread.
1884 (find_inferior): New function.
1885 (find_inferior_id): New function.
1886 (inferior_target_data): Update argument type.
1887 (set_inferior_target_data): Likewise.
1888 (inferior_regcache_data): Likewise.
1889 (set_inferior_regcache_data): Likewise.
1890 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
1891 (all_processes, stopping_threads, using_thrads)
1892 (struct pending_signals, debug_threads, pid_of): New.
1893 (inferior_pid): Replace with macro.
1894 (struct inferior_linux_data): Remove.
1895 (get_stop_pc, add_process): New functions.
1896 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1897 Use add_process and add_thread.
1898 (linux_attach_lwp): New function, based on old linux_attach. Use
1899 add_process and add_thread. Set stop_expected for new threads.
1900 (linux_attach): New function.
1901 (linux_kill_one_process): New function.
1902 (linux_kill): Kill all LWPs.
1903 (linux_thread_alive): Use find_inferior_id.
1904 (check_removed_breakpoints, status_pending_p): New functions.
1905 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1906 Update. Use WNOHANG. Wait for cloned processes also. Update process
1907 struct for the found process.
1908 (linux_wait_for_event): New function.
1909 (linux_wait): Use it. Support LWPs.
1910 (send_sigstop, wait_for_sigstop, stop_all_processes)
1911 (linux_resume_one_process, linux_continue_one_process): New functions.
1912 (linux_resume): Support LWPs.
1913 (REGISTER_RAW_SIZE): Remove.
1914 (fetch_register): Use register_size instead. Call supply_register.
1915 (usr_store_inferior_registers): Likewise. Call collect_register.
1917 (regsets_fetch_inferior_registers): Improve error message.
1918 (regsets_store_inferior_registers): Add debugging.
1919 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1920 (unstopped_p, linux_signal_pid): New functions.
1921 (linux_target_ops): Add linux_signal_pid.
1922 (linux_init_signals): New function.
1923 (initialize_low): Call it. Initialize using_threads.
1924 * gdbserver/regcache.c (inferior_regcache_data): Add valid
1926 (get_regcache): Fetch registers lazily. Add fetch argument
1927 and update all callers.
1928 (regcache_invalidate_one, regcache_invalidate): New
1930 (new_register_cache): Renamed from create_register_cache.
1931 Return the new regcache.
1932 (free_register_cache): Change argument to a void *.
1933 (registers_to_string, registers_from_string): Call get_regcache
1934 with fetch flag set.
1935 (register_data): Make static. Pass fetch flag to get_regcache.
1936 (supply_register): Call get_regcache with fetch flag clear.
1937 (collect_register): Call get_regcache with fetch flag set.
1938 (collect_register_as_string): New function.
1939 * gdbserver/regcache.h: Update.
1940 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
1942 Handle input interrupts while waiting for an ACK.
1943 (input_interrupt): Use signal_pid method.
1944 (getpkt): Flush after debug output and use stderr.
1945 (outreg): Use collect_register_as_string.
1946 (new_thread_notify, dead_thread_notify): New functions.
1947 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1949 (look_up_one_symbol): Flush after debug output.
1950 * gdbserver/server.c (step_thread, server_waiting): New variables.
1951 (start_inferior): Don't use signal_pid. Update call to mywait.
1952 (attach_inferior): Update call to mywait.
1953 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1954 (main): Don't fetch/store registers explicitly. Use
1955 set_desired_inferior. Support proposed ``Hs'' packet. Update
1957 * gdbserver/server.h: Update.
1958 (struct inferior_list, struct_inferior_list_entry): New.
1959 * gdbserver/target.c (set_desired_inferior): New.
1960 (write_inferior_memory): Constify.
1961 (mywait): New function.
1962 * gdbserver/target.h: Update.
1963 (struct target_ops): New signal_pid method.
1964 (mywait): Removed macro, added prototype.
1966 * gdbserver/linux-low.h (regset_func): Removed.
1967 (regset_fill_func, regset_store_func): New.
1968 (enum regset_type): New.
1969 (struct regset_info): Add type field. Use new operation types.
1970 (struct linux_target_ops): stop_pc renamed to get_pc.
1971 Add decr_pc_after_break and breakpoint_at.
1972 (get_process, get_thread_proess, get_process_thread)
1973 (strut process_info, all_processes, linux_attach_lwp)
1974 (thread_db_init): New.
1976 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
1977 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1978 (the_low_target): Add new members.
1979 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1980 (i386_store_fpxregset): Constify.
1981 (target_regsets): Add new kind identifier.
1982 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1983 (i386_set_pc): Add debugging.
1984 (i386_breakpoint_at): New function.
1985 (the_low_target): Add new members.
1986 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
1987 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1988 (mips_breakpoint_at): New.
1989 (the_low_target): Add new members.
1990 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1991 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1992 (the_low_target): Add new members.
1993 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
1994 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1995 (the_low_target): Add new members.
1996 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
1999 2002-06-11 Michal Ludvig <mludvig@suse.cz>
2001 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
2002 (unwind_tmp_obstack_free, parse_frame_info)
2003 (update_context, cfi_read_fp, cfi_write_fp)
2004 (cfi_frame_chain, cfi_init_extra_frame_info)
2005 (cfi_virtual_frame_pointer): Use the above function.
2006 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
2008 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
2010 * v850-tdep.c (v850_type_is_scalar): New function.
2011 (v850_use_struct_convention): Match current gcc implementation
2012 as close as possible.
2013 (v850_push_arguments): Fix stack_offset handling. Don't write
2014 struct_addr into register. This is done by v850_store_struct_return.
2015 (v850_extract_return_value): Care for structs.
2016 (v850_store_return_value): Ditto.
2017 (v850_store_struct_return): Actually write address.
2019 2002-06-11 Michal Ludvig <mludvig@suse.cz>
2021 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
2022 without debug information too.
2024 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2026 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
2027 Make multi-arch pure.
2028 * gdbarch.h, gdbarch.c: Re-generate.
2029 * arm-tdep.c (arm_print_float_info): Update.
2030 * arch-utils.h (default_print_float_info): Update.
2031 * arch-utils.c (default_print_float_info): Update.
2032 * infcmd.c (float_info): Update call.
2034 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2036 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
2037 the front of the initialize list.
2039 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2041 * infrun.c (struct inferior_status): Replace fields
2042 selected_frame_address and selected_level with field
2044 (save_inferior_status): Update. Use get_frame_id.
2045 (struct restore_selected_frame_args): Delete.
2046 (restore_selected_frame): Update. Use frame_find_by_id.
2047 (restore_inferior_status): Update.
2049 * breakpoint.h (struct breakpoint): Change type of
2050 watchpoint_frame to frame_id.
2051 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
2052 call to get_current_frame.
2053 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
2055 (watchpoint_check): Use frame_find_by_id.
2057 * frame.h (record_selected_frame): Delete declaration.
2058 * stack.c (record_selected_frame): Delete function.
2060 * frame.h (struct frame_id): Define.
2061 (get_frame_id): Declare.
2062 (frame_find_by_id): Declare.
2063 * frame.c (frame_find_by_id): New function.
2064 (get_frame_id): New function.
2066 2002-06-10 Andrey Volkov <avolkov@transas.com>
2068 * ser-e7kpc.c: Fix duplicated define and call of
2069 _initialize_ser_e7000pc
2071 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
2073 * signals/signals.c (target_signal_from_host): Fix #ifdef
2075 (do_target_signal_to_host): Likewise.
2077 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
2079 * mips-tdep.c (mips_find_abi_section): New function.
2080 (mips_gdbarch_init): Call it.
2082 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2084 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
2085 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
2086 after Andrew's 2002-06-08 gdbarch change.
2088 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2090 * i386-linux-nat.c (suppy_gregset): Don't supply
2091 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
2093 (fill_gregset): Don't fetch it under the same circumstances.
2095 2002-06-09 Andrew Cagney <cagney@redhat.com>
2097 * Makefile.in (callback_h): Define.
2098 (remote_sim_h): Update path to remote-sim.h.
2099 (remote-rdp.o): Add $(callback_h).
2100 (remote-sim.o): Use $(callback_h).
2101 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
2102 * remote-rdp.c: Include "gdb/callback.h".
2104 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2106 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
2107 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
2109 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2111 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
2112 * rdi-share/serpardr.c: Ditto.
2113 * rdi-share/unixcomm.c: Ditto.
2114 * rdi-share/serdrv.c: Ditto.
2115 * rdi-share/hostchan.h: Ditto.
2116 * rdi-share/hostchan.c: Ditto.
2117 * rdi-share/host.h: Ditto.
2118 * rdi-share/devsw.c: Ditto.
2120 * objfiles.h: Change type of obj_private to void pointer.
2121 * pa64solib.c: Update copyright. Don't include "assert.h", use
2122 strcmp instead of STREQ, use LONGEST, do not use PTR
2123 * somsolib.c: Ditto.
2125 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
2126 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
2127 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
2129 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2131 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
2132 (default_get_saved_register): Delete function.
2133 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
2134 generic_unwind_get_saved_register.
2135 * gdbarch.h, gdbarch.c: Re-generate.
2137 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2139 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
2140 generic_func_frame_chain_valid.
2141 * gdbarch.h, gdbarch.c: Re-generate.
2142 * blockframe.c (generic_func_frame_chain_valid): Only check
2143 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
2144 passing FP to PC_IN_CALL_DUMMY.
2147 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2149 * gdbarch.sh (struct gdbarch_data): Add field init_p.
2150 (register_gdbarch_data): Initialize init_p.
2151 (gdbarch_data): Initialize data pointer using the init function.
2152 (init_gdbarch_data): Delete function.
2153 (gdbarch_update_p): Update.
2154 (initialize_non_multiarch): Update.
2155 (struct gdbarch): Add field initialized_p.
2156 * gdbarch.h, gdbarch.c: Re-generate.
2158 2002-06-07 Michal Ludvig <mludvig@suse.cz>
2160 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
2161 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
2162 better do the things actually here.
2163 * x86-64-tdep.c (x86_64_register_name2nr): New.
2164 (x86_64_register_name): Renamed to x86_64_register_nr2name.
2165 (x86_64_gdbarch_init): Respect the above change.
2166 * x86-64-tdep.h (x86_64_register_name2nr)
2167 (x86_64_register_nr2name): Add prototypes.
2168 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
2170 2002-06-06 Michael Snyder <msnyder@redhat.com>
2172 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
2173 Delete extra braces and re-indent.
2174 (d10v_store_return_value): Char return values
2175 must be shifted over by one byte in R0.
2176 (d10v_extract_return_value): Delete extra braces, re-indent.
2178 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2180 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
2181 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
2182 (d10v_integer_to_address): Rewrite.
2183 (d10v_frame_init_saved_regs): When reading fp and sp registers use
2184 the d10v specific functions which take care of converting to the
2187 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2189 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
2190 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
2192 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2194 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
2196 * config/tm-linux.h: Ditto.
2197 * config/alpha/tm-alphalinux.h: Ditto.
2198 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
2199 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
2200 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
2201 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
2202 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
2203 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
2204 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
2205 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
2206 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
2207 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
2208 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
2209 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2210 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
2211 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
2212 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
2213 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
2214 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
2215 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
2216 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
2217 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
2218 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
2219 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
2220 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
2221 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
2222 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
2223 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
2224 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
2225 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
2226 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
2227 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
2228 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
2229 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
2230 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
2231 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
2232 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
2233 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
2234 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
2236 2002-05-04 Aidan Skinner <aidan@velvet.net>
2238 * ada-exp.tab.c: New file
2239 * ada-exp.y: New file
2240 * ada-lang.c: New file
2241 * ada-lang.h: New file
2242 * ada-lex.c: New file
2243 * ada-lex.l: New file
2244 * ada-tasks.c: New file
2245 * ada-typeprint.c: New file
2246 * ada-valprint.c: New file
2248 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2250 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
2251 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
2253 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2255 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
2256 insetead of ppc-linux-tdep.o.
2257 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
2258 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
2260 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2262 2002-05-07 Christian Groessler <chris@groessler.org>
2263 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
2264 bit register contents for little endian hosts.
2266 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2268 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
2271 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2273 * gdbarch.h: Regenerate.
2275 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2277 * MAINTAINERS: Add everyone to write-after-approval list.
2279 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2281 * stack.c (frame_info): Use frame_register_unwind instead of
2282 saved_regs. Mention when the SP is on the stack or in a register.
2284 * frame.h (frame_register_unwind_ftype): Define. Document.
2285 (struct frame_info): Add field register_unwind and
2286 register_unwind_cache.
2287 (frame_register_unwind): Declare.
2288 (generic_unwind_get_saved_register): Declare.
2290 * frame.c (frame_register_unwind): New function.
2291 (generic_unwind_get_saved_register): New function.
2293 * blockframe.c (generic_call_dummy_register_unwind): New function.
2294 (frame_saved_regs_register_unwind): New function.
2295 (set_unwind_by_pc): New function.
2296 (create_new_frame): New function.
2297 (get_prev_frame): New function.
2299 2002-05-30 Andrew Cagney <ac131313@redhat.com>
2301 * a29k-share/: Delete directory.
2302 * remote-vx29k.c: Delete file.
2304 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2306 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
2307 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2309 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2311 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
2312 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2315 (sparcnbsd-tdep.o): New dependency lists.
2316 * NEWS: Note new UltraSPARC NetBSD native configuration.
2317 * configure.host (sparc64-*-netbsd*): New host.
2318 * configure.tgt (sparc-*-netbsdelf*)
2319 (sparc-*-netbsd*): Set gdb_target to nbsd.
2320 (sparc64-*-netbsd*): New target.
2321 * sparc64nbsd-nat.c: New file.
2322 * sparcnbsd-nat.c: New file.
2323 * sparcnbsd-tdep.c: New file.
2324 * sparcnbsd-tdep.h: New file.
2325 * config/sparc/nbsd.mt: New file.
2326 * config/sparc/nbsd64.mh: New file.
2327 * config/sparc/nbsd64.mt: New file.
2328 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
2329 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2331 * config/sparc/nbsdaout.mt: Remove.
2332 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
2333 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2335 * config/sparc/nbsdelf.mt: Remove.
2336 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
2337 sparc-nat.c compatiblity defines.
2338 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
2339 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
2340 * config/sparc/tm-nbsd64.h: New file.
2341 * config/sparc/tm-nbsdaout.h: Remove.
2342 * config/sparc/xm-nbsd.h: Remove.
2344 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2346 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
2347 * sparc-tdep.c: Include osabi.h.
2348 (gdbarch_tdep): Add osabi member.
2349 (_initialize_sparc_tdep): Use gdbarch_register.
2350 (sparc_gdbarch_init): Use generic OS ABI framework.
2351 (sparc_dump_tdep): New function.
2353 2002-05-30 Kevin Buettner <kevinb@redhat.com>
2355 * corefile.c (do_captured_read_memory_integer): Return non-zero
2357 (safe_read_memory_integer): Copy result of memory read when
2358 status is non-zero. Also, add comments.
2360 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
2362 * Makefile.in (ppc_tdep_h): Define.
2365 (rs6000-tdep.o): Use $(ppc_tdep_h).
2368 (ppcnbsd-tdep.o): New dependency lists.
2369 * ppc-tdep.h: Use generic OS ABI framework.
2370 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
2371 (ppc_linux_init_abi): New functions.
2372 (ppc_sysv_abi_broken_use_struct_convention)
2373 (ppc_sysv_abi_use_struct_convention)
2374 (ppc_sysv_abi_push_arguments): Move to...
2375 * ppc-sysv-tdep.c: ...here.
2376 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
2377 * rs6000-tdep.c (process_note_abi_tag_sections)
2378 (get_elfosabi): Remove.
2379 (rs6000_gdbarch_init): Use generic OS ABI framework.
2380 (rs6000_dump_tdep): New function.
2381 (_initialize_rs6000_tdep): Use gdbarch_register.
2382 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
2383 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2384 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
2385 of ppc-linux-tdep.o.
2386 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
2387 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
2388 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
2389 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
2390 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
2391 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
2393 2002-05-29 Jim Blandy <jimb@redhat.com>
2395 * macroscope.c (default_macro_scope): Put `void' in empty argument
2398 2002-05-29 Andrew Cagney <ac131313@redhat.com>
2400 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
2401 * arch-utils.c: Include "sim-regno.h".
2402 * gdbarch.sh: Don't include "sim-regno.h".
2403 * gdbarch.h, gdbarch.c: Regenerate.
2404 * sim-regno.h (legacy_register_sim_regno): Move declaration from
2406 * arch-utils.h (legacy_register_sim_regno): To here.
2407 * remote-sim.c (legacy_register_sim_regno): Move function from
2409 * arch-utils.c (legacy_register_sim_regno): To here.
2411 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2413 * sim-regno.h: New file.
2414 * Makefile.in (sim_regno_h): Define.
2415 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
2416 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
2417 (legacy_register_sim_regno): New function.
2418 (one2one_register_sim_regno): New function.
2419 (gdbsim_fetch_register): Rewrite.
2420 (gdbsim_store_register): Only store a register when
2421 REGISTER_SIM_REGNO is valid.
2422 * d10v-tdep.c: Include "sim-regno.h".
2423 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
2424 (d10v_ts3_register_sim_regno): Ditto.
2425 * gdbarch.sh: Include "sim-regno.h".
2426 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
2427 * gdbarch.h, gdbarch.c: Regenerate.
2428 * arch-utils.h (default_register_sim_regno): Delete declaration.
2429 * arch-utils.c (default_register_sim_regno): Delete function.
2431 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2433 * ppcnbsd-nat.c: Rewrite.
2434 * ppcnbsd-tdep.c: New file.
2435 * ppcnbsd-tdep.h: New file.
2436 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
2437 solib.o, and solib-svr4.o.
2438 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
2439 nbsd-tdep.o, and corelow.o.
2441 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2443 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
2444 `tr' and `sed'. Mention that `broken' targets are not expected to
2447 2002-05-27 Michal Ludvig <mludvig@suse.cz>
2449 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
2450 Let PC point right after the prologue before looking up symbols.
2452 2002-05-27 Martin M. Hunt <hunt@redhat.com>
2454 * i386-tdep.c (i386_register_virtual_type): Return
2455 builtin_type_vec128i for SSE registers.
2457 * gdbtypes.h (builtin_type_vec128i): Declare.
2459 * gdbtypes.c (build_builtin_type_vec128i): New function.
2460 (builtin_type_v2_double, builtin_type_v4_int64): New types.
2461 (builtin_type_vec128i): New type for SSE2 128-bit registers.
2462 (build_gdbtypes): Initialize new builtin vector types.
2463 (_initialize_gdbtypes): Register new vector types with gdbarch.
2465 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2467 * MAINTAINERS: ns32k is not longer an obsolete candidate,
2468 since it has been multi-arch'd.
2469 * NEWS: Note that ns32k-*-* is now partial multi-arch.
2470 Move Alpha and VAX multi-arch news entries to same section
2471 as other multi-arch news.
2473 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2475 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
2476 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
2477 static. Rename some register numbers to put them in ns32k-tdep
2479 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
2480 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
2482 (_initialize_ns32k_tdep): Use gdbarch_register.
2483 * ns32k-tdep.h: New file.
2484 * ns32knbsd-tdep.c: New file.
2485 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
2486 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
2487 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
2488 REGISTER_BYTES, REGISTER_BYTE): Remove.
2489 * config/ns32k/tm-ns32k.h: New file.
2490 * config/ns32k/tm-umax.h: Remove.
2492 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2494 * ns32k-tdep.c (ns32k_saved_pc_after_call,
2495 ns32k_store_struct_return, ns32k_extract_return_value,
2496 ns32k_store_return_value, ns32k_extract_struct_value_address): New
2498 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
2499 ns32k_saved_pc_after_call.
2500 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
2501 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
2502 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
2503 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
2504 ns32k_extract_struct_value_address.
2506 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2508 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
2509 ns32k_fix_call_dummy): New.
2510 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
2511 ns32k_call_dummy_words.
2512 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
2513 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
2514 CALL_DUMMY_NARGS): Remove.
2515 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
2517 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2519 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
2520 ns32k_frame_saved_pc, ns32k_frame_args_address,
2521 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
2522 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
2523 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
2524 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
2525 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
2526 (BREAKPOINT): Remove..
2527 (FRAME_CHAIN): Define as ns32k_frame_chain.
2528 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
2529 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
2530 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
2531 (FRAME_FIND_SAVED_REGS): Remove.
2532 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
2533 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
2534 (POP_FRAME): Define as ns32k_pop_frame.
2536 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2538 * ns32k-tdep.c (ns32k_register_byte_32082,
2539 ns32k_register_byte_32382, ns32k_register_raw_size,
2540 ns32k_register_virtual_size, ns32k_register_virtual_type): New
2542 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
2543 ns32k_register_byte_32382.
2544 * config/ns32k/tm-umax.h: Update copyright years.
2545 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
2546 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
2547 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
2548 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
2549 (ns32k_get_enter_addr): Fix prototype.
2551 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2553 * ns32k-tdep.c: Update copyright years.
2554 (ns32k_register_name_32082): New function.
2555 (ns32k_register_name_32382): Ditto.
2556 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
2557 (REGISTER_NAME): Define as ns32k_register_name_32382.
2558 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
2559 (REGISTER_NAME): Define as ns32k_register_name_32082.
2561 2002-05-24 Jim Blandy <jimb@redhat.com>
2563 * dwarf2read.c (free_line_header): Use xfree, not free.
2565 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
2567 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
2568 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
2570 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2572 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
2574 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2576 From Ross Alexander at NEC Europe:
2577 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
2579 2002-05-23 Michael Snyder <msnyder@redhat.com>
2581 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
2582 for input, rather than parse_and_eval_address.
2584 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2586 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
2587 * Makefile.in (sim_d10v_h): Update definition.
2589 2002-05-24 Andrew Cagney <cagney@redhat.com>
2591 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
2592 change `2002-05-22 Michael Snyder' below.
2593 (d10v_push_arguments): Ditto.
2594 (d10v_extract_return_value): Ditto.
2596 2002-05-23 Jim Blandy <jimb@redhat.com>
2598 * macrotab.c (check_for_redefinition): Don't complain if the new
2599 definition is the same as the previous one. Take more arguments
2600 to allow the comparison.
2601 (macro_define_object, macro_define_function): Pass more arguments
2602 to check_for_redefinition.
2604 2002-05-22 Michael Snyder <msnyder@redhat.com>
2606 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
2607 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
2608 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
2609 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
2610 Don't bail if return_pc is PC_IN_CALL_DUMMY.
2611 Add a temp variable to save a call (and a memory read).
2612 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
2613 if possible (so that PC_IN_CALL_DUMMY will work).
2615 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
2617 * MAINTAINERS: Remove status `OBSOLETE' from v850.
2619 2002-05-22 Michal Ludvig <mludvig@suse.cz>
2621 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
2623 (dwarf2_build_frame_info): Corrected handling of eh_frame.
2624 (dwarf2_build_frame_info): Add offset to fde->initial_location
2625 so that frames of shared libraries are mapped correctly.
2626 (execute_stack_op): Change type of 'result' from ULONGEST to
2629 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2631 * config/alpha/tm-nbsd.h: Include solib.h.
2633 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2635 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
2636 assumptions about the host's byte order.
2638 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2640 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
2642 * alphanbsd-tdep.c: Include solib-svr4.h.
2643 * shnbsd-tdep.c: Ditto.
2645 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2647 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
2648 nbsd-tdep.h to dependency list.
2649 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
2650 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
2651 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
2652 nbsdaout.mh and nbsdelf.mh consistently.
2653 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
2654 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
2655 nbsdaout.mt and nbsdelf.mh consistently.
2656 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
2657 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
2658 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2659 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
2660 a.out shared library stuff from here...
2661 * config/nm-nbsdaout.h: ...to here.
2662 * config/tm-nbsd.h: Remove.
2663 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
2664 * config/arm/nbsd.mh: Remove.
2665 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
2667 * config/arm/nbsdaout.mh: New file.
2668 * config/arm/nbsdelf.mh: New file.
2669 * config/arm/nm-nbsdaout.h: New file.
2670 * config/i386/nbsd.mh: Remove.
2671 * config/i386/nbsd.mt: Remove.
2672 * config/i386/nbsdaout.mh: New file.
2673 * config/i386/nbsdaout.mt: New file.
2674 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2675 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
2676 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
2677 i386_register_u_addr): Remove.
2678 * config/i386/nm-nbsdaout.h: New file.
2679 * config/i386/nm-nbsdelf.h: Remove.
2680 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
2681 (USE_STRUCT_CONVENTION): Remove.
2682 * config/i386/tm-nbsdaout.h: New file.
2683 * config/i386/tm-nbsdelf.h: Remove.
2684 * config/m68k/nbsd.mh: Remove.
2685 * config/m68k/nbsd.mt: Remove.
2686 * config/m68k/nbsdaout.mh: New file.
2687 * config/m68k/nbsdaout.mt: New file.
2688 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
2689 * config/m68k/nm-nbsdaout.h: New file.
2690 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2691 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2692 * config/ns32k/nbsd.mh: Remove.
2693 * config/ns32k/nbsd.mt: Remove.
2694 * config/ns32k/nbsdaout.mh: New file.
2695 * config/ns32k/nbsdaout.mt: New file.
2696 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
2697 * config/ns32k/nm-nbsdaout.h: New file.
2698 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2699 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2700 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
2701 (SVR4_SHARED_LIBS): Remove.
2702 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
2703 * config/sparc/nbsd.mh: Remove.
2704 * config/sparc/nbsd.mt: Remove.
2705 * config/sparc/nbsdaout.mh: New file.
2706 * config/sparc/nbsdaout.mt: New file.
2707 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2708 * config/sparc/nbsdelf.mt: New file.
2709 * config/sparc/nm-nbsdaout.h: New file.
2710 * config/sparc/nm-nbsdelf.h: Remove.
2711 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
2712 * config/sparc/tm-nbsdaout.h: New file.
2714 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2716 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
2718 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
2720 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2722 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
2724 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
2726 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2728 * NEWS: Note new MIPS NetBSD native configuration.
2729 * configure.host (mips*-*-netbsd*): New host.
2730 * configure.tgt (mips*-*-netbsd*): New target.
2731 * mipsnbsd-nat.c: New file.
2732 * mipsnbsd-tdep.c: New file.
2733 * mipsnbsd-tdep.h: New file.
2734 * config/mips/nbsd.mh: New file.
2735 * config/mips/nbsd.mt: New file.
2736 * config/mips/nm-nbsd.h: New file.
2737 * config/mips/tm-nbsd.h: New file.
2739 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2741 * Makefile.in (SFILES): Add osabi.c.
2742 (COMMON_OBS): Add osabi.o.
2743 (osabi.o): New dependency list.
2744 * osabi.c: New file.
2745 * osabi.h: New file.
2746 * doc/gdbint.texinfo: Document new generic OS ABI framework.
2748 * Makefile.in (alpha_tdep_h): Define and use instead of
2750 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
2751 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
2753 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
2754 * alpha-tdep.h: Include osabi.h.
2755 (alpha_abi): Remove.
2756 (gdbarch_tdep): Use generic OS ABI framework.
2757 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
2758 gdbarch_register_osabi.
2759 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
2760 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
2761 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
2763 * Makefile.in (sh_tdep_h): Add osabi.h.
2764 * sh-tdep.h (sh_osabi): Remove.
2765 (gdbarch_tdep): Use generic OS ABI framework.
2766 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
2767 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
2768 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
2769 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
2771 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
2772 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
2773 gdbarch_register_osabi.
2774 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
2775 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
2776 (get_elfosabi): Rename to...
2777 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
2778 ABI framework support routines.
2779 (arm_gdbarch_init): Use generic OS ABI framework.
2780 (arm_dump_tdep): Likewise.
2781 (_initialize_arm_tdep): Likewise.
2782 * arm-tdep.h: Include osabi.h.
2784 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
2786 (arm_gdbarch_register_os_abi): Remove prototype.
2787 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
2788 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
2790 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
2791 * mips-tdep.c: Include osabi.h.
2792 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
2795 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
2797 * h8300-tdep.c: Fix formatting.
2799 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
2801 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
2802 printing vector registers.
2804 2002-05-19 Andrew Cagney <ac131313@redhat.com>
2806 From Fernando Nasser:
2807 * remote.c (remote_async_open_1): Re-throw the exception when the
2809 (remote_cisco_open): Ditto.
2810 (remote_open_1): Ditto.
2812 2002-05-19 Andrew Cagney <ac131313@redhat.com>
2814 * remote.c (remote_start_remote_dummy): Add uiout parameter.
2815 (remote_start_remote): Add uiout parameter. Pass through to
2816 remote_start_remote_dummy.
2817 (remote_open_1): Use catch_exception instead of catch_errors.
2818 (remote_async_open_1): Ditto.
2819 (remote_cisco_open): Ditto.
2821 2002-05-19 Andrew Cagney <ac131313@redhat.com>
2823 * remote.c (remote_start_remote): Replace PTR with void pointer.
2824 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
2827 2002-05-18 Andrew Cagney <ac131313@redhat.com>
2829 * gdb_indent.sh: Allow the script to be run in the sim directory.
2831 2002-05-18 Mark Kettenis <kettenis@gnu.org>
2833 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
2834 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
2836 * corelow.c (core_open): Only call set_gdbarch_from_file if
2839 2002-05-17 Andrey Volkov <avolkov@transas.com>
2841 * h8300-tdep.c: Add support of EXR register
2842 * config/h8300/tm-h8300.h: Ditto.
2844 2002-05-17 Andrey Volkov <avolkov@transas.com>
2846 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
2848 2002-05-17 Andrey Volkov <avolkov@transas.com>
2850 * h8300-tdep.c: Change literal regnums to REGNO.
2852 2002-05-17 Jim Blandy <jimb@redhat.com>
2854 * NEWS: Note addition of macro support.
2856 Expand preprocessor macros in C expressions.
2857 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
2858 (scan_macro_expansion, scanning_macro_expansion,
2859 finished_macro_expansion): New function declarations.
2860 (expression_macro_lookup_func, expression_macro_lookup_baton): New
2861 variable declarations.
2862 * parser-defs.h (expression_context_pc): New declaration.
2863 * parse.c (expression_context_pc): New variable.
2864 (parse_exp_1): Set expression_context_pc, as well as
2865 expression_context_block.
2866 * c-exp.y (yylex): If we're not already reading the result of a
2867 macro expansion, try to macro-expand the next token. When we're
2868 done scanning a macro expansion, switch back to the mainline text.
2869 Commas and `if's in a macro's expansion don't terminate the input.
2870 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
2871 (macro_original_text, macro_expanded_text,
2872 expression_macro_lookup_func, expression_macro_lookup_baton): New
2874 (scan_macro_expansion, scanning_macro_expansion,
2875 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
2876 c_preprocess_and_parse): New functions.
2877 (c_language_defn, cplus_language_defn, asm_language_defn): Call
2878 c_preprocess_and_parse, instead of c_parse.
2879 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
2880 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
2882 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
2884 * sh-tdep.c (gdb_print_insn_sh64): Delete.
2885 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
2886 (sh_gdbarch_init): Always use gdb_print_insn_sh.
2888 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
2890 * NEWS: Add section for multi-arched targets. Add v850 to that section.
2892 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2894 * Makefile.in (sh_tdep_h): Define and use.
2895 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
2896 register enum): Move to...
2897 * * sh-tdep.h: ...here.
2898 * sh-tdep.c: Include sh-tdep.h.
2899 * sh3-rom.c: Likewise.
2900 * shnbsd-tdep.c: Likewise.
2902 2002-05-16 Michael Snyder <msnyder@redhat.com>
2904 * arm-tdep.c: Spelling fix in comment.
2906 2002-05-16 Jim Blandy <jimb@redhat.com>
2908 Add commands for manually expanding macros and showing their
2910 * macrocmd.c, macroscope.c, macroscope.h: New files.
2911 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
2912 (macroscope_h): New variable.
2913 (HFILES_NO_SRCDIR): Add macroscope.h.
2914 (COMMON_OBS): Add macrocmd.o, macroscope.o.
2915 (macroscope.o, macrocmd.o): New rules.
2917 Teach the Dwarf 2 reader to read macro information.
2918 * dwarf2read.c: #include "macrotab.h".
2919 (dwarf_macinfo_buffer): New variable.
2920 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
2922 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
2923 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
2924 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
2925 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
2926 dwarf2_macro_spaces_in_definition): New complaints.
2927 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
2928 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
2929 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
2930 the partial symbol table.
2931 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
2932 from what's recorded in the partial symbol table.
2933 (read_file_scope): If the compilation unit has a
2934 `DW_AT_macro_info' attribute, read its macro information.
2935 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
2937 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
2940 * ser-tcp.c: Don't include <netinet/udp.h>.
2942 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
2944 * MAINTAINERS: Update my email address.
2946 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
2948 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
2949 include file of the same name.
2951 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2953 * configure.tgt: Mark v850 as multi-arched.
2954 * config/v850/tm-v850.h: Remove file.
2955 * config/v850/v850.mt: Eliminate TM_FILE.
2957 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2959 * v850-tdep.c: Full multi-arch.
2960 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
2961 Define GDB_MULTI_ARCH to 2.
2963 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
2965 * p-exp.y (current_type): New static variable.
2966 Carries the type of the expression at the position that is parsed.
2967 (push_current_type, pop_current_type): Two new functions. Used
2968 to store/restore current_type in expression on specific tokens.
2969 (search_field): New static variable. Set to one after parsing a point
2970 as at that point only a FIELDNAME token should be searched.
2971 (FIELDNAME): New token. After a point only a token belonging to
2972 current_type type definition is allowed.
2973 (all over token rules): reset and change current_type according
2975 (exp '[' rule): insert implicit array index field if
2976 exp is a pascal string type.
2978 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2980 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
2981 frame info. Use frame_info's saved_regs instead of matching member
2982 in extra_frame_info throughout.
2983 (v850_frame_init_saved_regs): New function.
2984 (v850_init_extra_frame_info): Move most functionality into
2985 v850_frame_init_saved_regs().
2986 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
2987 (v850_frame_find_saved_regs): Remove declaration.
2988 (FRAME_FIND_SAVED_REGS): Remove definition.
2989 (v850_frame_init_saved_regs): Add declaration.
2990 (FRAME_INIT_SAVED_REGS): Add definition.
2992 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2994 * v850-tdep.c: Begin multi-arch'ing v850.
2995 (v850_target_architecture_hook): Remove function.
2996 (v850_gdbarch_init): New function. Add code previously in
2997 v850_target_architecture_hook().
2998 (_initialize_v850_tdep): Don't set target_architecture_hook.
2999 Call register_gdbarch_init() instead.
3001 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
3003 * gdbtypes.h (struct cplus_struct_type): Remove args field.
3004 * hpread.c (hpread_read_struct_type): Remove assignments to args.
3005 (fixup_class_method_type): Likewise.
3007 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
3009 From Martin Pool <mbp@samba.org>:
3010 * gdbserver/server.c (gdbserver_usage): New function.
3013 2002-05-15 Jim Blandy <jimb@redhat.com>
3015 Add macro structures to GDB's symbol tables. Nobody puts anything
3017 * symtab.h (struct symtab): New member: `macro_table'.
3018 * buildsym.h (pending_macros): New global variable.
3019 * buildsym.c: #include "macrotab.h".
3020 (buildsym_init): Initialize `pending_macros'.
3021 (end_symtab): If we found macro information while reading a CU's
3022 debugging info, do build a symtab structure for it. Make the
3023 symtab point to the macro information, and clear the
3024 `pending_macros' pointer which held it while we were reading the
3026 (really_free_pendings): Free any pending macro table.
3027 * objfiles.h (struct objfile): New member: `macro_cache'.
3028 * objfiles.c (allocate_objfile): Set allocate and free functions
3029 for the macro cache's objstack.
3030 (free_objfile): Empty the macro cache's obstack.
3031 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
3032 set new allocate and free functions for it.
3033 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
3034 free functions for the macro cache's objstack. (Why is this
3035 function building its own objfile?)
3036 * symmisc.c (print_objfile_statistics): Print statistics on the
3038 * Makefile.in: Note that buildsym.o depends on macrotab.h.
3040 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
3042 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
3043 (REGISTER_U_ADDR): Delete definition.
3044 (arm_register_u_addr): Delete declaration.
3046 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
3048 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
3049 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
3051 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3053 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
3056 2002-05-14 Andrew Cagney <ac131313@redhat.com>
3058 * regcache.c (register_valid): Revise comments refering to "Not
3059 available" and "unavailable".
3060 * frame.c (frame_register_read): Ditto.
3061 * findvar.c (value_of_register): Ditto.
3063 2002-05-15 Andrew Cagney <cagney@redhat.com>
3065 * Makefile.in (remote_sim_h): Replace remote-sim_h.
3066 (remote-sim.o): Update dependencies.
3067 (d10v-tdep.o): Specify dependencies.
3068 (sim_d10v_h): Define.
3070 2002-05-14 Jim Blandy <jimb@redhat.com>
3072 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
3073 * macrotab.c (macro_lookup_inclusion, find_definition,
3074 new_macro_table): Same.
3076 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
3077 not `! strcmp ()'. This is a dubious improvement.
3078 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
3080 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
3081 although it's not necessary, to avoid a warning.
3083 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3085 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
3086 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
3087 TYPE_INSTANCE_FLAGS.
3088 (struct main_type): New.
3089 (struct type): Move most members to struct main_type. Change
3090 cv_type and as_type to new type_chain member. Add instance_flags.
3091 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
3092 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
3093 (finish_cv_type): Remove prototype.
3094 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
3096 (alloc_type_instance): New function.
3097 (smash_type): New function.
3098 (make_pointer_type, make_reference_type, make_function_type)
3099 (smash_to_member_type, smash_to_method_type): Call smash_type.
3100 (make_qualified_type): New function.
3101 (make_type_with_address_space): Call make_qualified_type.
3102 (make_cv_type): Likewise.
3103 (finish_cv_type): Remove unnecessary function.
3104 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
3105 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
3106 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
3107 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
3108 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
3109 * hpread.c (hpread_read_struct_type): Likewise.
3110 * stabsread.c (read_struct_type): Likewise.
3112 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
3114 * configure.tgt: Add a catch all sh* target, for cases like
3115 sh[2,3,4]-elf and sh-hms.
3117 2002-05-14 Keith Seitz <keiths@redhat.com>
3119 * event-loop.c (create_file_handler): Don't do anything but
3120 update data when we are given a fd which we are already
3123 2002-05-14 Michal Ludvig <mludvig@suse.cz>
3125 * dwarf2cfi.c (context_cpy): Copy registers correctly.
3126 (update_context): Use __func__ in warnings.
3128 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3130 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
3131 and tcp_close to net_open and net_close.
3132 (net_open): Accept "udp:" and "tcp:" specifications. Connect
3133 using UDP if requested. Don't try to disable Nagle on UDP
3135 * remote.c (remote_serial_open): New function. Warn about UDP.
3136 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
3138 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
3140 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
3142 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
3144 * configure.tgt: Remove sh-hms target.
3145 * MAINTAINERS: Don't list sh-hms as a separate target.
3147 2002-05-13 Jim Blandy <jimb@redhat.com>
3149 Add first preprocessor macro-expansion files.
3150 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3151 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3152 (splay_tree_h, macroexp_h, macrotab_h): New variable.
3153 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3154 (COMMON_OBS): Add macrotab.o, macroexp.o.
3155 (macroexp.o, macrotab.o): New rules.
3157 2002-05-13 Andrew Cagney <ac131313@redhat.com>
3159 * config/m88k/tm-m88k.h: Update copyright.
3160 (m88k_target_write_pc): Declare
3161 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
3162 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
3163 (SHIFT_INST_REGS): Update definition.
3164 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
3165 using old definition of TARGET_WRITE_PC.
3166 * regcache.c (generic_target_write_pc): Delete code handling
3168 * gdbarch.sh (NNPC_REGNUM): Delete.
3169 * gdbarch.h, gdbarch.c: Regenerate.
3171 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
3173 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
3176 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
3178 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
3179 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
3180 (gen_address_of, gen_struct_ref, gen_repeat): Use type
3182 * c-typeprint.c (cp_type_print_method_args): Likewise.
3183 (c_type_print_args): Likewise.
3184 * d10v-tdep.c (d10v_push_arguments): Likewise.
3185 (d10v_extract_return_value): Likewise.
3186 * expprint.c (print_subexp): Likewise.
3187 * gdbtypes.c (lookup_primitive_typename): Likewise.
3188 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
3189 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
3190 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
3191 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
3192 (TYPE_VECTOR): Likewise.
3193 * hpread.c (hpread_read_struct_type)
3194 (fix_static_member_physnames, fixup_class_method_type)
3195 (hpread_type_lookup): Likewise.
3196 * mdebugread.c (parse_symbol, parse_type): Likewise.
3197 * p-lang.c (is_pascal_string_type): Likewise.
3198 * valops.c (hand_function_call): Likewise.
3199 * x86-64-tdep.c (classify_argument): Likewise.
3201 * hpread.c (hpread_read_function_type)
3202 (hpread_read_doc_function_type): Call replace_type.
3203 * dstread.c (create_new_type): Delete.
3204 (decode_dst_structure, process_dst_function): Call alloc_type.
3205 Use type access macros.
3207 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3209 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
3210 the're not supported by the current architecture.
3211 (i387_fill_fxsave): Likewise.
3213 2002-05-12 Fred Fish <fnf@redhat.com>
3215 * symfile.c (default_symfile_offsets): Arrange for uninitialized
3216 sect_index_xxx members to index the first slot in section_offsets
3217 if all of the section_offsets are zero.
3219 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3221 * configure.tgt (sparc-*openbsd): Remove entry accidentially
3222 checked in with last change.
3224 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3226 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
3227 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
3230 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
3232 * Makefile.in: Update dependencies.
3234 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3236 * language.c (local_hex_string_custom): Simplify. Do not depend
3237 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
3239 * memattr.c (mem_info_command): Replace calls to
3240 longest_local_hex_string and longest_local_hex_string_custom.
3241 * buildsym.c (make_blockvector): Ditto.
3242 * solib.c (info_sharedlibrary_command): Ditto.
3243 * tracepoint.c (tracepoints_info): Ditto.
3244 * symtab.c (print_msymbol_info): Ditto.
3246 * language.c (local_hex_string): Delete.
3247 (local_hex_string_custom): Delete.
3248 (longest_local_hex_string): Rename to local_hex_string.
3249 (longest_local_hex_string_custom): Rename to
3250 local_hex_string_custom.
3251 * language.h (local_hex_string): Change parameter type to LONGEST.
3252 (local_hex_string_custom): Ditto.
3253 (longest_local_hex_string): Delete declaration.
3254 (longest_local_hex_string_custom): Ditto.
3256 * solib.c: Update copyright.
3257 * memattr.c: Update copyright.
3259 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3261 * arch-utils.h (legacy_register_to_value): Declare.
3262 (legacy_value_to_register): Declare.
3263 (legacy_convert_register_p): Declare.
3264 * arch-utils.c (legacy_register_to_value): New function.
3265 (legacy_value_to_register): New function.
3266 (legacy_convert_register_p): New function.
3268 * gdbarch.sh (REGISTER_TO_VALUE): Define.
3269 (VALUE_TO_REGISTER): Define.
3270 (CONVERT_REGISTER_P): Define.
3271 * gdbarch.h, gdbarch.c: Regenerate.
3273 * valops.c (value_assign): Use CONVERT_REGISTER_P and
3275 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
3278 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
3279 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3281 * Makefile.in: Update dependencies for valops.c.
3282 * valops.c: Include "gdb_assert.h".
3283 (typecmp): Skip THIS parameter to methods.
3284 (find_method_list): Remove static_memfuncp argument,
3285 update callers. Check for stub methods.
3286 (find_value_oload_method_list): Don't set *static_memfuncp.
3287 (find_overload_match): Don't check for stub methods. Assert
3288 that methods are not stubbed. Handle static methods.
3289 (value_find_oload_method_list): Remove static_memfuncp argument.
3290 * gdbtypes.c (check_stub_method): Do not add THIS pointer
3291 to the argument list for static stub methods.
3292 * value.h (value_find_oload_method_list): Update prototype.
3294 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3296 * arch-utils.h (generic_register_size): Declare.
3297 (generic_register_raw_size, generic_register_virtual_size): Delete
3299 * arch-utils.c (generic_register_raw_size): Delete.
3300 (generic_register_size): New function.
3301 (generic_register_virtual_size): Delete.
3303 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
3304 default generic_register_size.
3305 * gdbarch.h, gdbarch.c: Re-generate.
3307 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
3308 register_virtual_size.
3309 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
3310 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3312 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3314 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
3315 * gdbarch.h, gdbarch.c: Regenerate.
3316 * gnu-v3-abi.c: Update copyright.
3317 (vtable_address_point_offset): Update.
3318 (gnuv3_rtti_type): Update.
3319 (gnuv3_baseclass_offset): Update.
3320 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
3321 (init_fetch_link_map_offsets): Update.
3322 * remote.c (get_remote_state): Update.
3324 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3326 * TODO: Remove value_headof/value_from_vtable_info comment.
3327 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
3328 * values.c (value_headof, value_from_vtable_info): Delete.
3329 * value.h (value_from_vtable_info): Delete prototype.
3331 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3333 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
3334 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
3336 (gdb_assert_h): Define.
3337 (gdb_wait_h): Define.
3338 (gdb_regex_h): Define.
3340 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3342 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3343 * linespec.c (find_methods): Handle GCC 3.x template constructors.
3345 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3347 * nbsd-tdep.c: Fix comment.
3349 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3351 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
3352 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
3353 (nbsd-tdep.o): New dependency list.
3354 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
3356 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
3357 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
3358 * nbsd-tdep.c: New file.
3359 * nbsd-tdep.h: New file.
3360 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
3362 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
3363 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3364 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3365 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3367 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3369 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
3370 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
3371 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
3372 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
3373 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
3374 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
3376 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3378 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
3379 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3380 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
3381 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
3382 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
3383 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
3384 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
3386 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3388 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
3389 fetch_elfcore_registers to...
3390 * i386nbsd-tdep.c: ...here.
3391 (i386nbsd_use_struct_convention): Rename to...
3392 (i386nbsd_aout_use_struct_convention): ...this.
3393 (i386nbsd_supply_reg): New function.
3394 (i386nbsd_fill_reg): New function.
3395 (fetch_core_registers): Use i386nbsd_supply_reg.
3396 (fetch_elfcore_registers): Likewise.
3397 (_initialize_i386nbsd_tdep): New function.
3398 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
3399 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3400 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
3401 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
3402 (i386nbsd_aout_use_struct_convention): ...this.
3404 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3406 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
3407 (store_inferior_registers): Use shnbsd_fill_reg.
3408 * shnbsd-tdep.c (sh_nbsd_supply_registers,
3409 sh_nbsd_supply_register): Collapse into...
3410 (shnbsd_supply_reg): ...this.
3411 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
3412 (shnbsd_fill_reg): ...this.
3413 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
3414 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
3415 (fetch_core_registers): Use shnbsd_supply_reg.
3416 (fetch_elfcore_registers): Use shnbsd_supply_reg.
3417 (sh_nbsd_core_fns): Rename to...
3418 (shnbsd_core_fns): ...this.
3419 (sh_nbsd_elfcore_fns): Rename to...
3420 (shnbsd_elfcore_fns): ...this.
3421 (sh_nbsd_init_abi): Rename to...
3422 (shnbsd_init_abi): ...this.
3423 (_initialize_sh_nbsd_tdep): Rename to...
3424 (_initialize_shnbsd_tdep): ...this.
3425 * shnbsd-tdep.h (sh_nbsd_supply_registers,
3426 sh_nbsd_supply_register, sh_nbsd_fill_registers,
3427 sh_nbsd_fill_register): Remove prototypes.
3428 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
3430 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3432 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
3433 (i387-nat.o): Delete dependency list.
3434 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
3435 (x86-64-linux-nat.o): Likewise.
3436 * i387-nat.c: Delete file, moving contents to...
3437 * i387-tdep.c: ...here.
3438 * i387-nat.h: Rename...
3439 * i387-tdep.h: ...to this.
3440 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
3441 * i386-linux-nat.c: Likewise.
3442 * i386bsd-nat.c: Likewise.
3443 * i386gnu-nat.c: Likewise.
3444 * i386nbsd-nat.c: Likewise.
3445 * i386v4-nat.c: Likewise.
3446 * x86-64-linux-nat.c: Likewise.
3447 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
3448 * config/i386/go32.mh (NATDEPFILES): Likewise.
3449 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
3450 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
3451 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
3452 * config/i386/linux.mh (NATDEPFILES): Likewise.
3453 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
3454 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3455 * config/i386/obsd.mh (NATDEPFILES): Likewise.
3456 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3458 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3460 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
3461 (alphanbsd-nat.o): Remove dependency list.
3462 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
3463 * alphanbsd-nat.c: Delete. Contents moved to...
3464 * alphanbsd-tdep.c: ...here.
3465 (_initialize_alphanbsd_tdep): Register core functions.
3466 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
3468 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3470 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
3471 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
3472 (alphanbsd-nat.o): Likewise.
3473 (alphabsd-tdep.o): New dependency list.
3474 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
3475 (fill_gregset): Use alphabsd_fill_reg.
3476 (supply_fpregset): Use alphabsd_supply_fpreg.
3477 (fill_fpregset): Use alphabsd_fill_fpreg.
3478 (fetch_inferior_registers): Use struct reg and struct fpreg
3479 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
3480 and alphabsd_supply_fpreg.
3481 (store_inferior_registers): Use struct reg and struct fpreg
3482 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
3483 and alphabsd_fill_fpreg.
3484 * alphabsd-tdep.c: New file.
3485 * alphabsd-tdep.h: New file.
3486 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
3487 (fetch_elfcore_registers): Use alphabsd_supply_reg and
3488 alphabsd_supply_fpreg.
3489 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
3490 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3492 2002-05-11 Eric Christopher <echristo@redhat.com>
3494 * mips-tdep.c (mips_double_register_type): Fix thinko.
3495 (mips_single_register_type): Ditto.
3496 * MAINTAINERS: Add self.
3498 2002-05-11 Mark Kettenis <kettenis@gnu.org>
3500 * i387-nat.c (i387_supply_register, i387_fill_fsave,
3501 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
3502 right thing on architectures with different endianness and/or
3505 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
3507 From Christian Limpach <chris@Pin.LU>
3508 * configure.in: Change sed expression which comments out
3509 NATDEPFILES to also comment out continuation lines.
3510 * configure: Regenerate.
3512 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3514 * sh-tdep.c: Clean up code erroneously reintroduced by previous
3517 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3519 * sh-tdep.c: Include correct file.
3521 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3523 New support for sh64-elf (sh5) target.
3525 * configure.tgt: For sh64-elf target, default to sh-elf.
3527 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
3528 (struct gdbarch_tdep): Add new fields for new registers and ABI
3531 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
3532 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
3533 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
3534 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
3535 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
3536 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
3537 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
3538 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
3539 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
3540 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
3541 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
3542 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
3543 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
3544 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
3545 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
3546 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
3547 sh64_get_gdb_regnum, sh64_media_reg_base_num,
3548 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
3549 sign_extend, sh64_nofp_frame_init_saved_regs,
3550 sh64_init_extra_frame_info, sh64_get_saved_register,
3551 sh64_extract_struct_value_address, sh64_pop_frame,
3552 sh64_push_arguments, sh64_extract_return_value,
3553 sh64_store_return_value, sh64_show_media_regs,
3554 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
3555 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
3556 sh_sh64_register_virtual_type,
3557 sh_sh64_register_convert_to_virtual,
3558 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
3559 sh64_register_read, sh64_pseudo_register_write,
3560 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
3561 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
3562 sh64_do_pseudo_register, sh_compact_do_registers_info,
3563 sh64_do_registers_info, sh_gdbarch_init): New functions.
3565 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3567 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
3569 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
3571 * linespec.c (decode_line_1): Check for a double quote after
3572 a filename correctly.
3574 2002-05-10 Jim Blandy <jimb@redhat.com>
3576 Properly track the size of the current objfile's .debug_line section.
3577 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
3578 (DWARF_LINE_SIZE): New macro.
3579 (dwarf2_build_psymtabs_hard): Record the line section's size in
3580 the partial symbol table.
3581 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
3584 2002-05-10 Petr Sorfa <petrs@caldera.com>
3586 * ia64-tdep.c: Handle breakpoints on L instruction type
3587 in MLX instruction bundle by moving the breakpoint to
3588 the third slot (X instruction type) as L holds only data.
3590 2002-05-10 Kevin Buettner <kevinb@redhat.com>
3592 * dbxread.c (discarding_local_symbols_complaint): New complaint.
3593 (process_one_symbol): Complain about discarding local symbols
3594 due to a misplaced N_LBRAC entry.
3596 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
3598 From Daniel Berlin <dan@cgsoftware.com>
3599 * linespec.c (find_toplevel_char): '<' and '>' also increase and
3600 decrease the depth we are at, in the case of templates.
3602 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
3604 * mips-tdep.c (mips_float_register_type): New function.
3605 (mips_double_register_type): New function.
3606 (mips_print_register): Use them.
3607 (do_fp_register_row): Likewise.
3609 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
3611 * signals/signals.c (signals): Remove conditional compilation around
3612 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
3613 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
3615 2002-05-09 Michael Snyder <msnyder@redhat.com>
3617 * remote-rdp.c (remote_rdp_can_run): Remove.
3619 2002-05-09 Tom Tromey <tromey@redhat.com>
3621 * jv-valprint.c (java_val_print): Handle `char' as a special case
3624 2002-05-09 Michael Snyder <msnyder@redhat.com>
3626 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
3627 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
3628 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
3629 str r(0123),[sp,#nn].
3630 (arm_skip_prologue): Ditto. Also make disassembly
3631 order-independent by placing it in a loop.
3633 2002-05-06 Michael Snyder <msnyder@redhat.com>
3635 * stabsread.c (read_type): Add recognition for new attribute:
3636 "@V;" means that an array type is actually a vector.
3637 This is analogous to the vector flag that's been added to dwarf2.
3639 2002-05-09 Mark Kettenis <kettenis@gnu.org>
3641 * i386-tdep.h (i386_abi): New enum.
3642 (struct gdbarch_tdep): Replace os_ident member with abi.
3643 (i386_gdbarch_register_os_abi): New prototype.
3644 * i386-tdep.c (i386_abi_names): New array.
3645 (process_note_abi_tag_sections): Removed.
3646 (process_note_sections): New function.
3647 (i386_elf_abi_from_note, i386_elf_abi): New functions.
3648 (struct i386_abi_handler): New struct.
3649 (i386_abi_handler_list): New variable.
3650 (i386_gdbarch_register_os_abi): New function.
3651 (i386_gdbarch_init): Adapt for the changes given above.
3653 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
3655 * gregset.h: Say "GNU/Linux".
3657 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
3659 * gdbtypes.c : Add new builtin type for 64 bit vectors.
3660 (build_gdbtypes): Build builtin_type_v2_float.
3661 (_initialize_gdbtypes): Register new builtin type.
3663 2002-05-08 Andrew Cagney <ac131313@redhat.com>
3665 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
3666 (clear_gdbarch_swap): New function.
3667 (initialize_non_multiarch): Call.
3668 (gdbarch_update_p): Before calling init(), swap out and clear the
3669 existing architecture.
3670 * gdbarch.c: Regenerate.
3672 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3674 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
3677 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3679 * sh-nbsd-nat.c: Rename to...
3680 * shnbsd-nat.c: ...this.
3681 * sh-nbsd-tdep.c: Rename to...
3682 * shnbsd-tdep.c: ...this.
3683 * sh-nbsd-tdep.h: Rename to...
3684 * shnbsd-tdep.h: ...this.
3685 * config/sh/nbsd.mh: Use shnbsd-nat.o.
3686 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
3688 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
3690 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
3691 concatenation for command help messages.
3693 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3695 * NEWS: Note new sh*-*-netbsdelf* configuration.
3696 * configure.host: Set gdb_host_cpu to sh for all sh*.
3697 (sh*-*-netbsdelf*): New host.
3698 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
3699 (sh*-*-netbsdelf*): New target.
3700 * sh-nbsd-nat.c: New file.
3701 * sh-nbsd-tdep.c: New file.
3702 * sh-nbsd-tdep.h: New file.
3703 * config/sh/nbsd.mh: New file.
3704 * config/sh/nbsd.mt: New file.
3705 * config/sh/nm-nbsd.h: New file.
3706 * config/sh/tm-nbsd.h: New file.
3708 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3710 * sh-tdep.c (sh_osabi_names): Declare.
3711 (process_note_abi_tag_sections): New function.
3712 (get_elfosabi): Ditto.
3713 (sh_gdbarch_register_os_abi): Ditto.
3714 (sh_dump_tdep): Ditto.
3715 _initialize_sh_tdep): Use gdbarch_register to register
3716 sh_gdbarch_init and sh_dump_tdep.
3717 * config/sh/tm-sh.h (sh_osabi): Declare.
3718 (gdbarch_tdep): Add sh_osabi and osabi_name members.
3720 2002-05-07 Andrew Cagney <ac131313@redhat.com>
3722 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
3723 (thumb_scan_prologue): Ditto.
3724 (arm_find_callers_reg): Ditto.
3725 (arm_frame_chain): Ditto.
3726 (arm_init_extra_frame_info): Ditto.
3727 (arm_frame_saved_pc): Ditto.
3728 (arm_pop_frame): Ditto.
3729 (arm_push_return_address): New function.
3730 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
3731 call_dummy_location, call_dummy_breakpoint_offset_p,
3732 call_dummy_breakpoint_offset, call_dummy_p,
3733 call_dummy_stack_adjust_p, call_dummy_words,
3734 sizeof_call_dummy_words, call_dummy_start_offset,
3735 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
3736 call_dummy_address, push_return_address and push_dummy_frame for
3737 generic dummy frames.
3739 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3741 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
3742 size computation for alloca.
3743 (sh_fp_frame_init_saved_regs): Likewise.
3745 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
3747 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
3748 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
3749 * arm-tdep.c (arm_store_return_value): Use them.
3750 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
3751 * remote-rdp.c (remote_rdp_fetch_register): Use
3752 ARM_MAX_REGISTER_RAW_SIZE.
3753 (remote_rdp_store_register): Likewise.
3755 2002-05-07 Michal Ludvig <mludvig@suse.cz>
3757 * dwarf2cfi.c: Code cleanup, removed unused variables,
3758 added default labels to switch {} statements.
3759 * x86-64-tdep.c: Ditto.
3760 * x86-64-linux-nat.c: Ditto.
3762 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3764 * solib.h: Protect against multiple inclusion.
3766 2002-05-06 Jim Blandy <jimb@redhat.com>
3768 Add first preprocessor macro-expansion files.
3769 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3770 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3771 (splay_tree_h, macroexp_h, macrotab_h): New variable.
3772 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3773 (COMMON_OBS): Add macrotab.o, macroexp.o.
3774 (macroexp.o, macrotab.o): New rules.
3776 Separate the job of reading the line number info statement program
3777 header (...expialidocious) out into its own function.
3778 * dwarf2read.c (struct line_head, struct filenames, struct
3779 directories): Replace with...
3780 (struct line_header): New structure, containing the full
3781 contents of the statement program header, including the
3782 include directory and file name tables.
3783 (read_file_scope): If we have line number info, instead of just
3784 calling dwarf_decode_lines to do all the work, call
3785 dwarf_decode_line_header first to get a `struct line_header'
3786 containing the data in the statement program header, and then
3787 pass that to dwarf_decode_lines, which will pick up where that
3788 left off. Be sure to clean up the `struct line_header' object.
3789 (dwarf_decode_line_header, free_line_header, add_include_dir,
3790 add_file_name): New functions.
3791 (dwarf_decode_lines): Move all the code to read the statement
3792 program header into dwarf_decode_line_header. Take the line
3793 header it built as the first argument, instead of the offset to
3794 the compilation unit's line number info. Use the new `struct
3795 line_header' type instead of the old structures. No need to do
3796 cleanups here now, since we don't allocate anything.
3797 (dwarf2_statement_list_fits_in_line_number_section,
3798 dwarf2_line_header_too_long): New complaints.
3800 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
3802 * gdbtypes.c (init_vector_type): New function.
3803 (build_builtin_type_vec128): Simplify the representation of SIMD
3805 (build_gdbtypes): Initialize new builtin vector types.
3806 (_initialize_gdbtypes): Register new vector types with gdbarch.
3807 (builtin_type_v4_float, builtin_type_v4_int32,
3808 builtin_type_v8_int16, builtin_type_v16_int8,
3809 builtin_type_v2_int32, builtin_type_v4_int16,
3810 builtin_type_v8_int8): New (renamed) SIMD types.
3812 2002-05-06 Mark Kettenis <kettenis@gnu.org>
3814 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
3815 (i387_fill_fxsave): Likewise.
3817 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
3819 * alpha-tdep.c (alpha_extract_return_value): Don't use
3820 non-constant array size in prototype.
3822 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3824 From Brian Taylor <briant at model dot com>:
3825 * ui-out.c (ui_out_field_core_addr): Use the function
3826 longest_local_hex_string_custom'to format addresses > 32 bits
3829 * ui-out.c (ui_out_field_core_addr): Update comment.
3831 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3833 * stack.c (select_and_print_frame): Make static. Delete the
3835 (func_command): Update call.
3836 (select_frame_command): Delete code computing the frame level.
3837 * frame.h (select_and_print_frame): Delete declaration.
3839 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3841 * sparc-tdep.c (sparc_get_saved_register): Comment why
3842 get_prev_frame call is safe.
3844 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3846 * frame.h (select_frame): Delete level parameter.
3847 * stack.c (select_frame): Update. Use frame_relative_level to
3848 obtain the frame's level.
3849 (select_and_print_frame): Update call.
3850 (select_frame_command): Ditto.
3851 (up_silently_base): Ditto.
3852 (down_silently_base): Ditto.
3853 * ocd.c (ocd_start_remote): Ditto.
3854 * remote-rdp.c (remote_rdp_open): Ditto.
3855 * remote-mips.c (mips_initialize): Ditto.
3856 (common_open): Ditto.
3857 * remote-e7000.c (e7000_start_remote): Ditto.
3858 * m3-nat.c (select_thread): Ditto.
3859 * hppa-tdep.c (child_get_current_exception_event): Ditto.
3860 (child_get_current_exception_event): Ditto.
3861 * varobj.c (varobj_create): Ditto.
3862 (varobj_update): Ditto.
3863 (c_value_of_root): Ditto.
3864 * tracepoint.c (finish_tfind_command): Ditto.
3865 * corelow.c (core_open): Ditto.
3866 * arch-utils.c (generic_prepare_to_proceed): Ditto.
3867 * thread.c (info_threads_command): Ditto.
3868 (switch_to_thread): Ditto.
3869 * infrun.c (normal_stop): Ditto.
3870 (restore_selected_frame): Ditto.
3871 (restore_inferior_status): Ditto.
3872 * breakpoint.c (insert_breakpoints): Ditto.
3873 (watchpoint_check): Ditto.
3874 (bpstat_stop_status): Ditto.
3875 (do_enable_breakpoint): Ditto.
3876 * blockframe.c (flush_cached_frames): Ditto.
3877 (reinit_frame_cache): Ditto.
3879 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3881 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
3884 2002-05-04 Jim Blandy <jimb@redhat.com>
3886 * gdbtypes.c (replace_type): Doc fix.
3888 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3890 * valprint.c (strcat_longest): Delete commented out function.
3893 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3895 * MAINTAINERS: Mark a29k as deleted.
3896 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
3897 Move new configurations to the top.
3898 * configure.tgt: Remove a29k.
3899 * config/a29k/tm-vx29k.h: Delete.
3900 * config/a29k/vx29k.mt: Delete.
3901 * config/a29k/tm-a29k.h: Delete.
3902 * config/a29k/a29k-udi.mt: Delete.
3903 * config/a29k/a29k.mt: Delete.
3904 * a29k-tdep.c: Delete.
3905 * remote-udi.c: Delete.
3906 * remote-mm.c: Delete.
3907 * remote-eb.c: Delete.
3908 * remote-adapt.c: Delete.
3909 * Makefile.in: Remove obsolete code.
3910 * gdbserver/Makefile.in: Ditto.
3911 * config/s390/s390x.mt: Ditto.
3912 * config/s390/s390.mt: Ditto.
3913 * config/sparc/sparclynx.mh: Ditto.
3914 * config/sparc/linux.mh: Ditto.
3915 * config/pa/hppaosf.mh: Ditto.
3916 * config/pa/hppabsd.mh: Ditto.
3917 * config/ns32k/nbsd.mt: Ditto.
3918 * config/mips/vr5000.mt: Ditto.
3919 * config/m68k/sun3os4.mh: Ditto.
3920 * config/m68k/nbsd.mt: Ditto.
3921 * config/m68k/m68klynx.mh: Ditto.
3922 * config/m32r/m32r.mt: Ditto.
3923 * config/i386/x86-64linux.mt: Ditto.
3924 * config/i386/nbsdelf.mt: Ditto.
3925 * config/i386/nbsd.mt: Ditto.
3926 * config/i386/i386lynx.mh: Ditto.
3928 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3930 * target.c (debug_print_register): New function. Handle oversize
3932 (debug_to_fetch_registers): Call.
3933 (debug_to_store_registers): Call.
3935 2002-05-03 Jim Blandy <jimb@redhat.com>
3937 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
3938 (read_type): Doc fix.
3939 * gdbtypes.c (replace_type): Doc fix.
3941 * stabsread.c (multiply_defined_struct): New complaint.
3942 (read_struct_type): If the type we were passed isn't empty, or
3943 incomplete, don't read the new struct type into it; complain,
3944 and return the original type unchanged. Take a new `type_code'
3945 argument, which is the type code for the new type.
3946 (read_type): Rather than storing the type's type code here, pass
3947 it as an argument to read_struct_type, and let that take care of
3948 storing it. That way, we don't overwrite the original type code,
3949 so read_struct_type can use it to decide whether we're overwriting
3950 something we shouldn't.
3951 (complain_about_struct_wipeout): New function.
3953 2002-05-03 Andrew Cagney <ac131313@redhat.com>
3955 * gdbarch.sh: Assert that gdbarch is non-NULL.
3956 * gdbarch.c: Regenerate.
3958 2002-05-03 Jason Merrill <jason@redhat.com>
3960 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
3963 2002-05-03 Michal Ludvig <mludvig@suse.cz>
3965 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
3966 (x86_64_dwarf2gdb_regno_map_length),
3967 (x86_64_dwarf2_reg_to_regnum): Added.
3968 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
3969 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
3970 (_initialize_x86_64_tdep): Synced with the change above.
3971 (x86_64_skip_prologue): Reformulated message.
3973 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3975 * f-exp.y: Also use new prev_lexptr variable
3976 to improve error reporting. Based on Michael Snyder
3977 2002-04-24 dated patch to c-exp.y.
3978 * jv-exp.y: Likewise.
3979 * m2-exp.y: Likewise.
3981 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
3983 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
3984 we are dealing with vectors.
3986 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3988 * config/m68k/tm-nbsd.h: Obvious fix,
3989 correct machine name.
3991 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3993 * p-typeprint.c (pascal_type_print_base): Add support
3994 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
3996 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3998 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
3999 for fondamental pascal 'char' type.
4001 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4003 * p-lang.h (is_pascal_string_type): Declaration changed,
4004 new sixth argument of type char ** added.
4005 * p-lang.c (is_pascal_string_type): Implementation
4006 changed. Args length_pos, length_size, string_pos, char_size
4007 can now be NULL. New argument arrayname set to the field
4008 name of the char array. Return value set to char array
4009 field index plus one.
4010 * p-valprint.c (pascal_val_print): Adapt to new declaration of
4011 is_pascal_string_type function.
4013 2002-05-02 Andrew Cagney <cagney@redhat.com>
4015 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
4016 <cagney@redhat.com> change.
4017 * gdbarch.c: Regenerate.
4019 2002-05-02 Andrew Cagney <cagney@redhat.com>
4021 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
4022 before probing for a new one. Detect errorenous gdbarch_init
4024 * gdbarch.c: Regenerate.
4026 2002-05-01 Andrew Cagney <cagney@redhat.com>
4028 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
4029 * config/mcore/tm-mcore.h: Ditto. Update copyright.
4030 * config/v850/tm-v850.h: Ditto. Update copyright.
4032 2002-04-30 Andrew Cagney <ac131313@redhat.com>
4034 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
4037 2002-04-30 Michael Snyder <msnyder@redhat.com>
4039 * arm-tdep.c: Whitespace clean-ups.
4040 (arm_skip_prologue): Fix thinko; two lines
4041 should have been removed as part of 4/24 change.
4043 2002-04-30 Kevin Buettner <kevinb@redhat.com>
4045 * rs6000-tdep.c: Added comment describing how fpscr register
4046 numbers were chosen.
4048 2002-04-30 Michael Snyder <msnyder@redhat.com>
4050 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
4052 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
4054 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
4055 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
4056 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
4058 2002-04-29 Kevin Buettner <kevinb@redhat.com>
4060 From Louis Hamilton <hamilton@redhat.com>:
4061 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
4062 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
4063 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
4064 not bfd-private xcoff data, to determine wordsize.
4065 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
4067 2002-04-29 Andrew Cagney <ac131313@redhat.com>
4069 GDB 5.2 released from 5.2 branch.
4071 2002-04-29 Michal Ludvig <mludvig@suse.cz>
4073 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
4074 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4075 (x86_64_register_info_table): Added comments with register numbers.
4077 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
4079 * rs6000-tdep.c (rs6000_extract_return_value,
4080 rs6000_store_return_value): Handle returning vectors.
4081 (rs6000_gdbarch_init): Use
4082 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
4083 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
4085 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
4087 (ppc_sysv_abi_push_arguments): Handle vector parameters.
4088 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
4090 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4092 * hpread.c (hpread_psymtab_to_symtab_1,
4093 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
4094 with fprintf_unfiltered (gdb_stderr,...).
4096 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4098 * remote-array.c (printf_monitor, write_monitor,
4099 array_insert_breakpoint, array_remove_breakpoint ):
4100 Replace fprintf (stderr,...
4101 with fprintf_unfiltered (gdb_stderr,....
4102 * remote-es.c: Likewise.
4103 * remote-os9k.c: Likewise.
4104 * remote-st.c: Likewise.
4106 2002-04-28 Andreas Schwab <schwab@suse.de>
4108 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
4109 linux-proc.o and gcore.o.
4111 2002-04-26 Michal Ludvig <mludvig@suse.cz>
4113 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
4114 code without frame pointers.
4116 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4118 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
4121 2002-04-26 Ben Elliston <bje@redhat.com>
4123 * target.c (do_xfer_memory): Correct reference to the new option
4124 "trust-readonly-sections".
4126 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
4128 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
4129 * gdbtypes.c (recursive_dump_type): Output the vector flag.
4130 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
4132 (read_array_type): Record the fact that this array type is really a
4133 vector (i.e. are passed in by value).
4135 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
4137 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
4138 * alpha-tdep.c (alpha_sigcontext_addr): New function.
4139 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
4140 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
4141 * alpha-linux-tdep.c: Include frame.h.
4142 (alpha_linux_sigcontext_addr): New function.
4143 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
4144 alpha_linux_sigcontext_addr.
4145 * alpha-osf1-tdep.c: Include gdbcore.h.
4146 (alpha_osf1_sigcontext_addr): New function.
4147 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
4148 alpha_osf1_sigcontext_addr.
4149 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
4150 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
4152 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4154 * stack.c (selected_frame_level):
4155 (select_frame): Do not set selected_frame_level.
4156 * frame.h (selected_frame_level): Delete declaration.
4158 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4160 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
4161 convert_from_func_ptr-addr when AIX / PowerOpen.
4163 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4165 * valops.c (hand_function_call): Call
4166 generic_save_call_dummy_addr.
4167 * frame.h (generic_save_call_dummy_addr): Declare.
4168 * blockframe.c (struct dummy_frame): Add fields call_lo and
4170 (generic_find_dummy_frame): Check for PC in range call_lo to
4171 call_hi instead of entry_point_address.
4172 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
4173 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
4174 (generic_save_call_dummy_addr): New function.
4176 2002-04-24 David S. Miller <davem@redhat.com>
4178 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
4179 sparc_skip_prologue.
4180 (sparc_skip_prologue): Kill frameless_p arg, and use line number
4181 information to find prologue when possible.
4182 (sparc_prologue_frameless_p): Call examine_prologue directly.
4183 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
4184 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
4186 (SKIP_PROLOGUE): Likewise.
4188 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4190 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
4191 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
4192 indicate that the condition it was testing is always true.
4193 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
4194 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4195 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4197 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4199 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
4200 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
4201 tdep->jb_pc and tdep->jb_elt_size.
4202 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
4203 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
4204 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4205 * alpha-nat.c (get_longjmp_target): Remove.
4206 (JB_ELEMENT_SIZE): Ditto.
4208 * alpha-tdep.c (alpha_get_longjmp_target): New function.
4209 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
4210 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
4211 to alpha_get_longjmp_target.
4212 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
4213 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
4214 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
4216 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4218 * README: Update to GDB 5.2.
4220 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4222 * gdbarch.sh (LC_ALL): Set to `c'.
4224 2002-04-25 Theodore A. Roth <troth@verinet.com>
4226 * avr-tdep.c: Ran through gdb_indent.sh.
4228 2002-04-25 Theodore A. Roth <troth@verinet.com>
4230 * MAINTAINERS: Add myself as AVR maintainer.
4231 * NEWS: Note new target avr.
4233 2002-04-25 Theodore A. Roth <troth@verinet.com>
4235 * Makefile.in: Add support for AVR target.
4236 * configure.tgt: Add support for AVR target.
4237 * avr-tdep.c: New file
4238 * config/avr/avr.mt: New file.
4240 2002-04-25 Theodore A. Roth <troth@verinet.com>
4242 * MAINTAINERS: Add myself to write-after-approval.
4244 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4246 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
4247 with fprintf_unfiltered (gdb_stderr,....
4249 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4252 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
4254 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4256 * p-exp.y: Also use new prev_lexptr variable
4257 to improve error reporting. Based on Michael Snyder
4258 2002-04-24 dated patch to c-exp.y.
4260 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4262 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
4263 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
4264 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
4266 * config/alpha/tm-alpha.h: Remove forward decls of struct type
4268 (FUNCTION_START_OFFSET): Remove.
4269 (BREAKPOINT): Ditto.
4271 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4273 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
4276 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4278 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
4279 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
4280 alpha_linux_pc_in_sigtramp.
4281 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
4282 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
4283 alpha_osf1_pc_in_sigtramp.
4284 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
4285 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
4286 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4287 alphafbsd_pc_in_sigtramp.
4288 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
4289 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4290 alphanbsd_pc_in_sigtramp.
4291 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
4292 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
4294 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4296 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4298 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4300 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
4302 (alphanbsd-nat.o): New dependency list.
4303 (alphanbsd-tdep.o): Ditto.
4304 * NEWS: Note new native NetBSD/alpha configuration.
4305 * alphanbsd-nat.c: New file.
4306 * alphanbsd-tdep.c: Ditto.
4307 * configure.host (alpha*-*-netbsd*): New host.
4308 * configure.tgt (alpha*-*-netbsd*): New target.
4309 * config/alpha/nbsd.mh: New file.
4310 * config/alpha/nbsd.mt: Ditto.
4311 * config/alpha/nm-nbsd.h: Ditto.
4312 * config/alpha/tm-nbsd.h: Ditto.
4314 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4316 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
4317 (alpha-osf1-tdep.o): New dependency list.
4318 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
4319 and skip_sigtramp_frame members.
4320 * alpha-linux-tdep.c: Include gdbcore.h.
4321 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
4322 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
4323 * alpha-osf1-tdep.c: New file.
4324 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
4326 (alpha_frame_past_sigtramp_frame): New function.
4327 (alpha_dynamic_sigtramp_offset): Ditto.
4328 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
4329 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
4330 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
4331 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
4332 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
4333 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
4334 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
4335 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
4336 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
4337 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
4338 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
4339 to find_solib_trampoline_target.
4340 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
4341 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
4342 (SKIP_TRAMPOLINE_CODE): Remove.
4343 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4344 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4345 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4346 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4347 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
4348 (PROC_SIGTRAMP_MAGIC): Ditto.
4349 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4350 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4351 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4352 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4353 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4355 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4357 * NEWS: Note that Alpha targets are now multi-arch.
4359 2002-04-24 Michael Snyder <msnyder@redhat.com>
4361 * parser-defs.h (prev_lexptr): New external variable.
4362 * parse.c (parse_exp_1): Set prev_lexptr to null before
4363 calling the language-specific parser.
4364 * c-exp.y (yylex): Set prev_lexptr to start of current token.
4365 (yyerror): Use prev_lexptr in error reporting.
4367 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
4369 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
4370 * gregset.h: If FILL_FPXREGSET is defined, provide
4371 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
4372 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
4373 is defined, call fill_fpxregset.
4375 2002-04-24 Roland McGrath <roland@frob.com>
4377 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
4378 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
4379 (supply_gregset, supply_fpregset): New functions.
4381 * gnu-nat.c (gnu_find_memory_regions): New function.
4382 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
4383 (gnu_xfer_memory): Add a cast.
4385 2002-04-24 Michael Snyder <msnyder@redhat.com>
4387 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
4388 loop. Add handling for "str lr, [sp, #-4]!" and for saves
4389 of argument regs ("str r(0123), [r11, #-nn"]).
4390 (arm_skip_prologue): Better handling for frameless functions.
4391 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
4392 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
4394 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
4396 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
4397 NUM_PSEUDO_REGS can be used.
4399 2002-04-24 Andrew Cagney <ac131313@redhat.com>
4401 * arch-utils.h: Update copyright.
4403 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
4404 * gdbarch.h, gdbarch.c: Re-generate.
4406 * inferior.h (IN_SIGTRAMP): Delete definition.
4407 * arch-utils.c (legacy_pc_in_sigtramp): New function.
4408 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
4410 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
4411 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
4412 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
4413 (find_proc_framesize): Ditto.
4414 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
4415 (alpha_init_extra_frame_info): Ditto.
4416 * infrun.c (handle_inferior_event): Ditto.
4417 (handle_inferior_event): Ditto.
4418 (check_sigtramp2): Ditto.
4419 * blockframe.c (create_new_frame): Ditto.
4420 (get_prev_frame): Ditto.
4421 * ppc-linux-tdep.c: Update comments.
4422 * i386-linux-tdep.c: Update comments.
4423 * breakpoint.c (bpstat_what): Update comment.
4425 2002-04-24 Michal Ludvig <mludvig@suse.cz>
4427 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
4428 (regsets_store_inferior_registers): Removed cast to int from
4430 * gdbserver/regcache.h: Added declaration of struct inferior_info.
4432 2002-04-24 David S. Miller <davem@redhat.com>
4434 * i960-tdep.c (register_in_window_p): New function.
4435 (i960_find_saved_register): Use it instead of
4436 REGISTER_IN_WINDOW_P.
4437 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
4439 * symtab.h (find_stab_function_addr): Kill extern.
4440 * minsyms.c (find_stab_function_addr): Remove from here...
4441 * dbxread.c: ... to here, and mark it static.
4443 2002-04-20 David S. Miller <davem@redhat.com>
4445 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
4446 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
4448 2002-04-21 David S. Miller <davem@redhat.com>
4450 * remote-vxsparc.c (vx_read_register): Fix typo, we want
4451 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
4452 (vx_write_register): Likewise.
4454 2002-04-23 J. Brobecker <brobecker@gnat.com>
4456 * source.c (is_regular_file): New function.
4457 (openp): Check wether file to open is a regular file
4458 to avoid opening directories.
4460 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4462 * findvar.c (extract_signed_integer): Cast printf argument
4463 to suppress format warning.
4464 (extract_unsigned_integer): Likewise.
4465 * infcmd.c (registers_info): Likewise.
4466 * top.c (get_prompt_1): Likewise.
4467 * valops.c (value_assign): Likewise.
4468 * valprint.c (print_decimal): Likewise.
4470 2002-04-22 H.J. Lu (hjl@gnu.org)
4472 * c-exp.y (typebase): Support
4474 [long|long long|short] [signed|unsigned] [int|]
4478 signed [long|long long|short] int
4480 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4482 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
4484 * vax-tdep.h: New file.
4485 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
4486 Make several routines static.
4487 (vax_get_saved_register): New function.
4488 (vax_gdbarch_init): New function.
4489 (_initialize_vax_tdep): Register vax_gdbarch_init.
4490 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
4491 Remove macros now under the control of gdbarch.
4493 2002-04-22 Michael Snyder <msnyder@redhat.com>
4495 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
4496 Some whitespace and coding standards tweaks.
4498 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4500 * vax-tdep.c: Include regcache.h.
4501 (vax_call_dummy_words): New.
4502 (sizeof_vax_call_dummy_words): New.
4503 (vax_fix_call_dummy): New function.
4504 (vax_saved_pc_after_call): Ditto.
4505 * config/vax/tm-vax.h: Don't include regcache.h.
4506 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
4507 (CALL_DUMMY): Remove.
4508 (CALL_DUMMY_WORDS): Define.
4509 (SIZEOF_CALL_DUMMY_WORDS): Define.
4510 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
4512 2002-04-18 Michael Snyder <msnyder@redhat.com>
4514 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
4516 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4518 * vax-tdep.c (vax_frame_chain): New function.
4519 (vax_push_dummy_frame): Ditto.
4520 (vax_pop_frame): Ditto.
4521 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
4522 (FRAMELESS_FUNCTION_INVOCATION): Use
4523 generic_frameless_function_invocation_not.
4524 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
4525 (POP_FRAME): Use vax_pop_frame.
4527 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4529 * vax-tdep.c (vax_store_struct_return): New function.
4530 (vax_extract_return_value): Ditto.
4531 (vax_store_return_value): Ditto.
4532 (vax_extract_struct_value_address): Ditto.
4533 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
4534 vax_store_struct_return.
4535 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
4536 (STORE_RETURN_VALUE): Use vax_store_return_value.
4537 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
4539 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4541 * vax-tdep.c (vax_frame_saved_pc): New function.
4542 (vax_frame_args_address_correct): Ditto.
4543 (vax_frame_args_address): Ditto.
4544 (vax_frame_locals_address): Ditto.
4545 (vax_frame_num_args): Move code to be in proximity to
4546 other frame-related functions.
4547 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
4548 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
4549 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
4550 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
4551 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
4553 2002-04-22 H.J. Lu (hjl@gnu.org)
4555 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
4558 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4560 * vax-tdep.c (vax_frame_init_saved_regs): New function.
4561 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
4562 (FRAME_INIT_SAVED_REGS): New macro.
4564 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4566 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
4568 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4570 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
4572 (fetch_osf_core_registers): Likewise.
4573 (supply_gregset): Likewise.
4575 2002-04-22 J. Brobecker <brobecker@gnat.com>
4577 * symfile.h (get_section_index): Define.
4578 * symfile.c (get_section_index): New function.
4579 * mdebugread.c (SC_IS_SBSS): New macro.
4580 (SC_IS_BSS): Return true for the scBss storage class only, as
4581 the scSBss storage class refers to the .sbss section.
4582 (parse_partial_symbols): Discard the symbols which associated
4583 section does not exist.
4584 Make sure to use the .sbss section index for symbols which
4585 storage class is scBss, rather than using the .bss section index.
4587 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4589 * vax-tdep.c: Update copyright years.
4590 (vax_register_name): New function.
4591 (vax_register_byte): Ditto.
4592 (vax_register_raw_size): Ditto.
4593 (vax_register_virtual_size): Ditto.
4594 (vax_register_virtual_type): Ditto.
4595 * config/vax/tm-vax.h: Update copyright years.
4596 (REGISTER_NAMES): Remove.
4597 (REGISTER_NAME): Define.
4598 (REGISTER_BYTE): Use vax_register_byte.
4599 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
4600 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
4601 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
4603 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4605 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
4607 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
4609 2002-04-21 David S. Miller <davem@redhat.com>
4611 * arch-utils.c (generic_prologue_frameless_p): Kill
4612 SKIP_PROLOGUE_FRAMELESS_P code.
4613 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4615 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
4616 * arc-tdep.c (arc_prologue_frameless_p): Implement.
4617 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4619 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
4620 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
4621 (sparc_gdbarch_init): Pass it to
4622 set_gdbarch_prologue_frameless_p.
4624 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4626 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
4627 (alphabsd-nat.o): New dependency list.
4629 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4631 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
4633 (alpha-linux-tdep.o): New dependency list.
4634 (alphafbsd-tdep.o): Likewise.
4636 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4638 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
4640 * alpha-tdep.c: ...from here.
4641 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
4643 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4645 * config/alpha/tm-alpha.h: Move alpha_software_single_step
4646 prototype from here...
4647 * alpha-tdep.h: ...to here.
4649 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4651 * frame.h (selected_frame_level): Document as deprecated.
4652 (frame_relative_level): Declare.
4653 * stack.c (frame_relative_level): New function.
4654 (selected_frame_level): Document as deprecated.
4655 (select_frame): Do not set the selected_frame_level.
4657 * stack.c (frame_info, record_selected_frame): Update.
4658 (frame_command, current_frame_command): Update.
4659 (up_silently_base, up_command, down_silently_base): Update.
4660 (down_command): Update.
4661 * inflow.c (kill_command): Update.
4662 * tracepoint.c (finish_tfind_command): Update.
4663 * corelow.c (core_open): Update.
4664 * thread.c (info_threads_command): Update.
4665 (do_captured_thread_select): Update.
4666 * infcmd.c (finish_command): Update.
4667 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
4669 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4671 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
4673 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4675 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
4678 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4680 * alphafbsd-tdep.c: Update copyright years. Include
4682 (alphafbsd_use_struct_convention): Make static.
4683 (alphafbsd_init_abi): New function.
4684 (_initialize_alphafbsd_tdep): New function.
4685 * config/alpha/tm-fbsd.h: Update copyright years.
4686 (USE_STRUCT_CONVENTION): Remove.
4688 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4690 * alpha-tdep.c (alpha_abi_handler): New structure to describe
4691 an Alpha ABI variant.
4692 (alpha_abi_handler_list): Declare.
4693 (alpha_gdbarch_register_os_abi): New function.
4694 (alpha_gdbarch_init): Give registered ABI variant handlers a
4695 chance to tweak the gdbarch once we have set up defaults.
4696 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
4698 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4700 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
4701 to standard_coerce_float_to_double.
4702 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4704 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4706 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
4707 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
4708 from gdbarch_tdep rather than a constant.
4709 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
4710 the default text address for all Alpha Unix ABIs.
4711 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
4712 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
4714 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4716 * alpha-tdep.h: New file. Includes several Alpha target constants
4718 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
4719 let gdbarch deal with.
4720 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
4721 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
4723 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
4724 Alpha target register names.
4725 * alphabsd-nat.c: Likewise.
4726 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
4727 Alpha target register names. Make serveral routines static.
4728 (alpha_get_saved_register): New function.
4729 (alpha_abi_names): New.
4730 (process_note_abi_tag_sections): New function.
4731 (get_elfosabi): New function.
4732 (alpha_gdbarch_init): New function.
4733 (alpha_dump_tdep): New function.
4734 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
4736 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4738 * frame.c (find_saved_register): Delete #ifdef
4739 HAVE_REGISTER_WINDOWS code.
4740 * config/sparc/tm-sparc.h: Update comments.
4741 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
4743 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4745 * i960-tdep.c (i960_find_saved_register): New function.
4746 (i960_get_saved_register): New function.
4747 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
4748 (i960_get_saved_register): Declare.
4749 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
4751 2002-04-20 David S. Miller <davem@redhat.com>
4753 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
4755 2002-04-20 Andrew Cagney <ac131313@redhat.com>
4757 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
4758 instead of NUM_PSEUDO_REGS.
4760 2002-04-20 David S. Miller <davem@redhat.com>
4762 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
4763 GDB_MULTI_ARCH_PARTIAL
4764 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
4765 define, let tm-sp64.h do it.
4767 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
4769 * frame.c (find_saved_register): Avoid a NULL pointer
4770 dereference and actually walk the frame list.
4772 2002-04-20 Andrew Cagney <ac131313@redhat.com>
4774 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
4775 sorted in most most-recent-used order. Document.
4776 * gdbarch.h, gdbarch.c: Regenerate.
4778 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
4780 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
4781 (add_inferior): Call create_register_cache.
4782 (clear_inferiors): Call free_register_cache.
4783 (inferior_regcache_data, set_inferior_regcache_data): New functions.
4784 * gdbserver/regcache.c (struct inferior_regcache_data): New.
4785 (registers): Remove.
4786 (get_regcache): New function.
4787 (create_register_cache, free_register_cache): New functions.
4788 (set_register_cache): Don't initialize the register cache here.
4789 (registers_to_string, registers_from_string, register_data): Call
4791 * gdbserver/regcache.h: Add prototypes.
4792 * gdbserver/server.h: Likewise.
4794 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
4796 * gdbserver/mem-break.c: New file.
4797 * gdbserver/mem-break.h: New file.
4798 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
4800 * gdbserver/inferiors.c (struct inferior_info): Add target_data
4802 (clear_inferiors): Free target_data member if set.
4803 (inferior_target_data, set_inferior_target_data): New functions.
4804 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
4805 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
4806 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
4807 (struct inferior_linux_data): New.
4808 (linux_create_inferior): Use set_inferior_target_data.
4809 (linux_attach): Likewise. Call add_inferior.
4810 (linux_wait_for_one_inferior): New function.
4811 (linux_wait): Call it.
4812 (linux_write_memory): Add const.
4813 (initialize_low): Call set_breakpoint_data.
4814 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
4816 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
4818 * gdbserver/server.h: Include mem-break.h. Update inferior.c
4820 * gdbserver/target.c (read_inferior_memory)
4821 (write_inferior_memory): New functions.
4822 * gdbserver/target.h (read_inferior_memory)
4823 (write_inferior_memory): Change macros to prototypes.
4824 (struct target_ops): Update comments. Add const to write_memory
4827 2002-04-19 Andrew Cagney <ac131313@redhat.com>
4829 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
4831 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
4832 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
4833 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
4836 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
4839 * gdbtypes.c (init_simd_type): Rewrite using new functions.
4840 (build_builtin_type_vec128): Ditto.
4841 (append_composite_type_field): Fix calculation of type length in
4844 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
4846 * config/djgpp/README: Update.
4848 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
4851 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
4853 * alpha-tdep.c (setup_arbitrary_frame): Rename...
4854 (alpha_setup_arbitrary_frame): ...to this.
4855 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
4856 for alpha_setup_arbitrary_frame.
4858 2002-04-18 Andrew Cagney <cagney@redhat.com>
4860 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
4861 * gdbarch.h, gdbarch.c: Regenerate.
4863 * defs.h (breakpoint_from_pc_fn): Delete type definition.
4864 * target.h (memory_breakpoint_from_pc): Update declaration.
4865 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
4867 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
4868 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
4869 * mem-break.c (memory_breakpoint_from_pc): Ditto.
4870 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
4871 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
4872 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
4873 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
4874 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
4875 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
4876 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
4877 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
4878 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
4880 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
4882 * monitor.c (monitor_insert_breakpoint): Ditto.
4883 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
4885 * config/mcore/tm-mcore.h: Update copyright.
4886 * mem-break.c: Ditto.
4887 * xstormy16-tdep.c: Ditto.
4889 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
4891 * p-exp.y: Add precedence rule for '^' token.
4892 This removes the shift/reduce conflicts.
4893 Remove the comment concerning these shift/reduce conflicts.
4895 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
4897 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
4898 (registers_powerpc_nofp): New register set for processors
4899 without floating point unit.
4901 2002-04-18 David S. Miller <davem@redhat.com>
4903 * MAINTAINERS: Add myself to write-after-approval.
4905 2002-04-17 Michael Snyder <msnyder@redhat.com>
4907 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
4909 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4911 * rs6000-tdep.c (frame_initial_stack_address): Use
4912 frame_register_read to read the alloca_reg.
4914 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4916 * frame.c (find_saved_register): Find saved registers in the next
4920 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4922 * gdbarch.sh (LANG): Set to ``c''.
4924 2002-04-15 Andrew Cagney <ac131313@redhat.com>
4926 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
4928 2002-04-15 Andrew Cagney <ac131313@redhat.com>
4930 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
4933 * hpread.c (hpread_get_lntt): Add declaration.
4934 Also fix PR gdb/391.
4936 2002-04-14 Andrew Cagney <ac131313@redhat.com>
4938 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
4939 * aclocal.m4, configure: Re-generate.
4942 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
4944 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
4945 instead of tm_print_insn.
4947 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
4949 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
4951 2002-04-14 Andrew Cagney <ac131313@redhat.com>
4953 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
4954 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
4955 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
4957 2002-04-12 Don Howard <dhoward@redhat.com>
4959 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
4960 max_user_call_depth.
4961 (init_cmd_lists): Initialize the new value;
4962 * cli/cli-script.c (execute_user_command): Limit the call depth of
4963 user defined commands. This avoids a core-dump when user commands
4964 are infinitly recursive.
4966 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4968 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
4969 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
4970 from tdep struct instead of DEFAULT_LR_SAVE.
4971 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
4972 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
4973 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
4975 2002-04-12 Michael Snyder <msnyder@redhat.com>
4977 * Remote.c: Spelling fix.
4978 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
4979 If no symbol found for "sbrk", try "_sbrk".
4980 (make_output_phdrs): Use bfd_section_name.
4981 (gcore_copy_callback): Use bfd_section_name.
4982 * eval.c: Indentation fix-ups.
4983 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
4984 in case it gets applied to an address that is already
4985 in the instruction space.
4986 * cli/cli-decode.c (help_list): Allow long lines to wrap.
4987 * symfile.c: Fix indentation, long lines.
4988 * source.c: White space fix-up.
4990 2002-04-12 Andrew Cagney <cagney@redhat.com>
4992 * defs.h (read_relative_register_raw_bytes): Delete declaration.
4993 * frame.c (frame_register_read): New function. Return non-zero on
4995 (read_relative_register_raw_bytes_for_frame): Delete.
4996 (read_relative_register_raw_bytes): Delete.
4997 * frame.h (frame_register_read): Declare.
4998 * d30v-tdep.c: Update Copyright. Use frame_register_read.
5000 * infcmd.c (do_registers_info): Ditto.
5001 * hppa-tdep.c: Ditto.
5002 * rs6000-tdep.c: Ditto.
5003 * h8500-tdep.c: Ditto.
5004 * mips-tdep.c: Ditto.
5005 * h8300-tdep.c: Ditto.
5006 * z8k-tdep.c: Ditto.
5008 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5010 From Jimi X <jimix@watson.ibm.com>:
5011 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
5014 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5016 From Jimi X <jimix@watson.ibm.com>:
5017 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
5020 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5022 From Jimi X <jimix@watson.ibm.com>:
5023 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
5024 register sets for these processor variants.
5026 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
5028 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
5029 registers which are allowed to fail to store.
5030 * gdbserver/linux-low.h (linux_target_ops): Likewise.
5031 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
5032 (ppc_cannot_store_register): FPSCR may not be storable.
5033 * regformats/reg-ppc.dat: Support FPSCR.
5035 2002-04-11 Kevin Buettner <kevinb@redhat.com>
5037 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
5038 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5039 Add fpscr as an invalid/unfetchable register.
5040 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
5041 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
5042 (fill_fpregset): Add support for register fpscr.
5043 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
5044 (fill_gregset): Account for the fact that register ``mq'' might
5046 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
5047 (registers_power): Add fpscr to register set at slot 71.
5048 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
5049 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
5051 2002-04-11 Michael Snyder <msnyder@redhat.com>
5053 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
5054 * configure: Regenerate.
5055 * config.in: Regenerate.
5056 * acconfig.h: Add define for _SYSCALL32.
5057 * core-sol2.c: Remove #define _SYSCALL32.
5058 * solib-legacy.c: Remove #define _SYSCALL32.
5060 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5062 * stack.c (select_frame): Cleanup internal error message, do not
5065 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5067 * stack.c (select_frame): Check that selected_frame and the
5068 specified level are as expected.
5069 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
5071 * frame.h (struct frame_info): Add field `level'. Update
5073 Work-in-progress PR gdb/464.
5075 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5077 * maint.c (maint_print_section_info): Rename print_section_info.
5078 (print_bfd_section_info, print_objfile_section_info): Update.
5079 * inferior.h (struct gdbarch): Add opaque declaration.
5080 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
5081 * gdbarch.h: Regenerate.
5083 2002-04-10 Michal Ludvig <mludvig@suse.cz>
5085 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
5086 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
5087 (kernel_u_size): Added.
5088 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
5089 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
5091 2002-04-04 Jim Ingham <jingham@apple.com>
5093 * valarith.c (find_size_for_pointer_math): New function, either returns
5094 the size for a pointer's target, returns 1 for void *, or errors for
5096 (value_add, value_sub): use find_size_for_pointer_math.
5098 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5100 * linux-low.c (linux_look_up_symbols): New hook.
5101 (linux_target_ops): Add linux_look_up_symbols.
5102 * remote-utils.c (decode_address): New function.
5103 (look_up_one_symbol): New function.
5104 * server.c (handle_query): Call target look_up_symbols hook.
5105 * server.h (look_up_one_symbol): Add prototype.
5106 * target.h (struct target_ops): Add look_up_symbols hook.
5108 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5110 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
5111 * ChangeLog: Correct paths in last ChangeLog entry.
5113 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5115 * gdbserver/linux-low.h: Remove obsolete prototypes.
5116 (struct linux_target_ops): New.
5117 (extern the_low_target): New.
5118 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
5119 (register_addr): Use the_low_target explicitly.
5120 (fetch_register): Likewise.
5121 (usr_fetch_inferior_registers): Likewise.
5122 (usr_store_inferior_registers): Likewise.
5123 * gdbserver/linux-arm-low.c (num_regs): Remove.
5124 (arm_num_regs): Define.
5125 (arm_regmap): Renamed from regmap, made static.
5126 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
5128 (arm_cannot_store_register): Renamed from cannot_store_register,
5130 (the_low_target): New.
5131 * gdbserver/linux-i386-low.c (num_regs): Remove.
5132 (i386_num_regs): Define.
5133 (i386_regmap): Renamed from regmap, made static.
5134 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
5136 (i386_cannot_store_register): Renamed from cannot_store_register,
5138 (the_low_target): New.
5139 * gdbserver/linux-ia64-low.c (num_regs): Remove.
5140 (ia64_num_regs): Define.
5141 (ia64_regmap): Renamed from regmap, made static.
5142 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
5144 (ia64_cannot_store_register): Renamed from cannot_store_register,
5146 (the_low_target): New.
5147 * gdbserver/linux-m68k-low.c (num_regs): Remove.
5148 (m68k_num_regs): Define.
5149 (m68k_regmap): Renamed from regmap, made static.
5150 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
5152 (m68k_cannot_store_register): Renamed from cannot_store_register,
5154 (the_low_target): New.
5155 * gdbserver/linux-mips-low.c (num_regs): Remove.
5156 (mips_num_regs): Define.
5157 (mips_regmap): Renamed from regmap, made static.
5158 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
5160 (mips_cannot_store_register): Renamed from cannot_store_register,
5162 (the_low_target): New.
5163 * gdbserver/linux-ppc-low.c (num_regs): Remove.
5164 (ppc_num_regs): Define.
5165 (ppc_regmap): Renamed from regmap, made static.
5166 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
5168 (ppc_cannot_store_register): Renamed from cannot_store_register,
5170 (the_low_target): New.
5171 * gdbserver/linux-s390-low.c (num_regs): Remove.
5172 (s390_num_regs): Define.
5173 (s390_regmap): Renamed from regmap, made static.
5174 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
5176 (s390_cannot_store_register): Renamed from cannot_store_register,
5178 (the_low_target): New.
5179 * gdbserver/linux-sh-low.c (num_regs): Remove.
5180 (sh_num_regs): Define.
5181 (sh_regmap): Renamed from regmap, made static.
5182 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
5184 (sh_cannot_store_register): Renamed from cannot_store_register,
5186 (the_low_target): New.
5187 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
5188 (the_low_target): New.
5190 2002-04-09 Andrew Cagney <ac131313@redhat.com>
5192 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
5193 override FP_REGNUM with frame->fp. Update copyright.
5194 * parse.c (num_std_regs, std_regs): Delete.
5195 (target_map_name_to_register): Do not search std_regs. Update
5196 function description.
5197 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
5198 declarations. Update copyright.
5201 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5203 * gdbserver/Makefile.in: Add stamp-h target.
5204 * gdbserver/configure.in: Create stamp-h.
5205 * gdbserver/configure: Regenerated.
5207 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5209 * gdbserver/inferiors.c: New file.
5210 * gdbserver/target.c: New file.
5211 * gdbserver/target.h: New file.
5212 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
5214 * gdbserver/linux-low.c (inferior_pid): New static variable,
5215 moved from server.c.
5216 (linux_create_inferior): Renamed from create_inferior.
5217 Call add_inferior. Return 0 on success instead of a PID.
5218 (linux_attach): Renamed from myattach.
5219 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
5220 (linux_thread_alive): Renamed from mythread_alive.
5221 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
5223 (linux_resume): Renamed from myresume. Add missing ``return 0''.
5224 (regsets_store_inferior_registers): Correct error message.
5225 Add missing ``return 0''.
5226 (linux_fetch_registers): Renamed from fetch_inferior_registers.
5227 (linux_store_registers): Renamed from store_inferior_registers.
5228 (linux_read_memory): Renamed from read_inferior_memory.
5229 (linux_write_memory): Renamed from write_inferior_memory.
5230 (linux_target_ops): New structure.
5231 (initialize_low): Call set_target_ops ().
5232 * gdbserver/remote-utils.c (unhexify): New function.
5233 (hexify): New function.
5234 (input_interrupt): Send signals to ``signal_pid''.
5235 * gdbserver/server.c (inferior_pid): Remove.
5236 (start_inferior): Update create_inferior call.
5237 (attach_inferior): Call add_inferior.
5238 (handle_query): New function.
5239 (main): Call handle_query for `q' packets.
5240 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
5241 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
5243 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5245 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
5247 * gdbserver/configure.in: Check for <string.h>
5248 * gdbserver/configure: Regenerate.
5249 * gdbserver/config.in: Regenerate.
5250 * gdbserver/gdbreplay.c: Include needed system headers.
5251 (remote_open): Remove strchr prototype.
5252 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
5253 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
5254 (supply_register_by_name): Likewise.
5255 (collect_register): Change buf argument to void *.
5256 (collect_register_by_name): Likewise.
5257 * gdbserver/regcache.h: Add missing prototypes.
5258 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
5259 * gdbserver/server.c (handle_query): New function.
5260 (attached): New static variable, moved out of main.
5261 (main): Quiet longjmp clobber warnings.
5262 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
5263 * gdbserver/utils.c (error): Remove NORETURN.
5266 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5268 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
5269 after the last symbol in a block.
5271 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
5273 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
5274 is non zero as a found symbol.
5276 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5278 * findvar.c: Include "builtin-regs.h".
5279 (value_of_register): Call value_of_builtin_reg when applicable.
5280 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
5281 (target_map_name_to_register): Call
5282 builtin_reg_map_name_to_regnum.
5283 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
5284 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
5285 (builtin_regs_h): Define.
5286 (builtin-regs.o): New target.
5287 (findvar.o): Add $(builtin_regs_h).
5288 * builtin-regs.c, builtin-regs.h: New files.
5289 * std-regs.c: New file.
5290 Partial fix for PR gdb/251.
5292 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5294 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
5295 it's no longer required.
5297 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5299 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
5301 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5303 From Jimi X <jimix@watson.ibm.com>:
5304 * rs6000-tdep.c (rs6000_software_single_step): Use
5305 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
5306 and size. Use target_insert_breakpoint() and
5307 target_remove_breakpoint() to insert and remove breakpoints
5308 instead of explicit memory reads and writes.
5310 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5312 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
5313 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
5314 ELF_OBJECT_FORMAT ifdef.
5316 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5318 From Jimi X <jimix@watson.ibm.com>:
5319 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
5321 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5323 From Jimi X <jimix@watson.ibm.com>:
5324 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
5325 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
5327 2002-04-07 Mark Kettenis <kettenis@gnu.org>
5329 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
5330 s/asprintf/xasprintf/.
5331 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
5333 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5335 I believe Jeff Law denies responsability for this one:
5336 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
5337 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
5338 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
5339 Work-around for PR gdb/366.
5341 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5343 * remote-e7000.c (write_small, e7000_read_inferior_memory,
5344 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
5345 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
5347 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5349 * sh-tdep.c (sh_fp_frame_init_saved_regs,
5350 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
5353 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5355 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
5358 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5360 * README (Reporting Bugs in GDB): Document the bug web page as the
5361 prefered way of submitting bugs.
5364 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5366 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
5368 * gdbarch.h, gdbarch.c: Re-generate.
5370 2002-04-07 Andreas Schwab <schwab@suse.de>
5372 * m68klinux-nat.c (fill_fpregset): Properly pass address of
5373 buffer to regcache_collect.
5375 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5377 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
5378 * gdbarch.c, gdbarch.h: Re-generate.
5380 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5382 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
5383 declaration. Fix -Werror.
5385 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
5387 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
5388 * gdbarch.c: Regenerate.
5390 2002-04-05 Michael Snyder <msnyder@redhat.com>
5392 * breakpoint.c (clear_command): Rewrite middle section to
5393 combine two loops with identical control conditions.
5394 Add a cleanup to eliminate a memory leak.
5395 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
5397 2002-04-05 H.J. Lu (hjl@gnu.org)
5399 * solib-svr4.c (bkpt_names): Add "__start".
5401 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5403 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
5404 as test for 64 bit target.
5406 2002-04-05 Andrew Cagney <ac131313@redhat.com>
5408 * h8500-tdep.c (h8500_write_fp): Delete function.
5409 * dwarf2cfi.c (cfi_write_fp): Document as not used.
5410 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
5411 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
5412 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
5413 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
5414 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
5416 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
5417 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
5418 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
5419 (d10v_write_fp): Delete function.
5420 * inferior.h (write_fp, generic_target_write_fp): Delete
5422 * regcache.c (generic_target_write_fp): Delete function.
5423 (write_fp): Delete function.
5424 * gdbarch.sh (TARGET_WRITE_FP): Delete.
5425 * gdbarch.h, gdbarch.c: Regenerate.
5426 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
5427 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
5428 (sparc64_write_fp): Delete declaration.
5429 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
5430 (h8500_write_fp): Delete declaration.
5432 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5434 * sparc-tdep.c (sparc64_write_fp): Delete.
5435 (sparc_push_dummy_frame): Replace write_fp call with code to store
5437 (sparc_gdbarch_init): Do not initialize write_fp.
5439 2002-04-05 Kevin Buettner <kevinb@redhat.com>
5441 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
5444 2002-03-29 Jim Blandy <jimb@redhat.com>
5446 * stack.c (get_selected_block): Add new argument `addr_in_block',
5447 used to return the exact code address we used to select the block,
5449 * blockframe.c (get_frame_block, get_current_block): Same.
5450 * frame.h (get_frame_block, get_current_block,
5451 get_selected_block): Update declarations.
5452 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
5453 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
5455 2002-04-05 Michael Snyder <msnyder@redhat.com>
5457 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
5460 2002-04-05 J. Brobecker <brobecker@gnat.com>
5462 * utils.c (xfullpath): New function.
5463 * defs.h (xfullpath): Add declaration.
5464 * source.c (openp): Use xfullpath in place of gdb_realpath to
5465 avoid resolving the basename part of filenames when the
5466 associated file is a symbolic link. This fixes a potential
5467 inconsistency between the filenames known to GDB and the
5468 filenames it prints in the annotations.
5469 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
5470 to be able to match a filename with either the real filename, or
5471 the name of any symbolic link to this file.
5472 (lookup_partial_symtab): Ditto.
5474 2002-04-04 Michael Snyder <msnyder@redhat.com>
5476 * breakpoint.c: Add support for hardware breakpoints in overlays.
5477 (overlay_events_enabled): New state variable.
5478 (insert_breakpoints): Use overlay_events_enabled to decide
5479 whether to attempt to set a breakpoint at the overlay load addr.
5480 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5481 (remove_breakpoint): Use overlay_events_enabled to decide
5482 whether breakpoints need to be removed from overlay load addr.
5483 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5484 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
5485 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
5486 disable_overlay_breakpoints): Update overlay_events_enabled.
5488 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
5490 * dwarf2read.c (struct function_range): New.
5491 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
5492 (check_cu_functions): New.
5493 (read_file_scope): Initialize global function lists.
5494 Call dwarf_decode_line after processing children.
5495 (read_func_scope): Add to global function list.
5496 (dwarf_decode_lines): Call check_cu_functions everywhere
5497 record_line is called. Call record_line with a linenumber
5498 of 0 to mark sequence ends.
5500 2002-04-04 Michal Ludvig <mludvig@suse.cz>
5502 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
5503 change sync with glibc.
5505 2002-04-03 Jim Blandy <jimb@redhat.com>
5507 * configure.in: Call AC_C_INLINE.
5508 * configure: Regenerated.
5510 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
5512 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
5513 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
5515 2002-03-31 Mark Kettenis <kettenis@gnu.org>
5517 * NEWS: Mention gcore support on FreeBSD/i386.
5519 * fbsd-proc.c: New file.
5520 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
5521 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
5523 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
5526 2002-03-29 Jim Blandy <jimb@redhat.com>
5528 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
5529 unescaped newlines in string literals, but newer ones don't. So
5532 2002-03-26 Michael Snyder <msnyder@redhat.com>
5533 Andrew Cagney <cagney@redhat.com>
5535 * cli/cli-dump.c: New file. Dump memory to file,
5536 restore file to memory.
5537 * cli/cli-dump.h: New file.
5538 * Makefile.in: Add rules, dependencies for cli-dump.o.
5539 * NEWS: Mention new commands.
5541 2002-03-28 Michael Snyder <msnyder@redhat.com>
5543 * symfile.c (symbol_file_add): Move test for null symbols to later.
5545 2002-03-27 Andrew Cagney <ac131313@redhat.com>
5547 From veksler at il.ibm.com:
5548 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
5549 the xstrduped original path.
5552 2002-03-27 Michael Snyder <msnyder@redhat.com>
5554 * breakpoint.c (_initialize_breakpoint): Clean up help string.
5555 * infcmd.c (_initialize_infcmd): Ditto.
5556 * language.c (_initialize_language): Ditto.
5557 * symfile.c (_initialize_symfile): Ditto.
5558 * top.c (_init_main): Ditto.
5559 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5561 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
5563 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
5564 vector registers handling.
5565 (skip_prologue): Handle new AltiVec instructions. Fill in new
5566 fields of frame data.
5567 (frame_get_saved_regs): Fill in information for AltiVec registers.
5569 2002-03-27 Jim Blandy <jimb@redhat.com>
5571 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
5572 a function; leave this macro here to invoke that function.
5573 (symbol_init_mangled_name): Declaration for that function.
5574 * symtab.c (symbol_init_mangled_name): New function.
5576 2002-03-27 Andrew Cagney <ac131313@redhat.com>
5578 * valarith.c: Replace strerror with safe_strerror.
5579 * tracepoint.c: Ditto.
5581 * go32-nat.c: Ditto.
5585 2002-03-27 Andreas Schwab <schwab@suse.de>
5587 * event-top.c (command_line_handler): Remove useless if.
5589 2002-03-27 Andreas Jaeger <aj@suse.de>
5591 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
5594 2002-03-27 Michal Ludvig <mludvig@suse.cz>
5596 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
5597 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
5598 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
5599 (x86_64_linux_dr_get_status, supply_gregset),
5600 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
5601 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
5602 (x86_64_register_info_table): Add.
5603 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
5604 (x86_64_register_raw_size, x86_64_register_virtual_type),
5605 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
5606 general x86_64_register_info_table.
5607 (i386_gdbarch_init): gdbarch_register_bytes is now set
5608 dynamicaly during initialization.
5609 * regformats/reg-x86-64.dat: Synced with changes to registers above.
5610 * gdbserver/linux-x86-64-low.c: Ditto.
5612 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5614 * gdbserver/server.c (main): Call target_signal_to_host_p
5615 and target_signal_to_host on signals received from the remote.
5616 * gdbserver/remote-utils.c (prepare_resume_reply): Call
5617 target_signal_from_host on signals sent to the remote.
5618 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
5619 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
5621 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5623 * signals/signals.c: Include "server.h" in gdbserver build.
5624 (target_signal_from_name): Don't use STREQ.
5625 (_initialize_signals): Likewise. Don't include function in
5628 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5630 * signals.c: Moved to...
5631 * signals/signals.c: Here.
5632 * Makefile (signals.o): Update.
5634 2002-03-26 Jeff Law (law@redhat.com)
5636 * somread.c (som_symtab_read): Remove some commented out code and
5637 updated related comments. Do not set the minimal symbol table to
5638 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
5639 in a dynamic executable.
5640 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
5641 where we are unable to find the minimal symbol for the given
5644 2002-03-25 Jeff Law (law@redhat.com)
5646 * linux-proc.c (read_mapping): Scan up to end of line for filename.
5648 2002-03-25 Michal Ludvig <mludvig@suse.cz>
5650 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
5652 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5654 * command.h: Update copyright.
5655 (struct cmd_list_element): Replace definition with opaque
5657 (enum cmd_types): Document that it will eventually be moved to
5659 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
5660 (MALLOCED_REPLACEMENT): Delete macro.
5661 * Makefile.in (cli_decode_h): Add $(command_h).
5662 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
5663 * top.c: Include "cli/cli-decode.h".
5664 * completer.c: Include "cli/cli-decode.h".
5665 * maint.c: Include "cli/cli-decode.h".
5666 * cli/cli-decode.h: Include "command.h".
5667 (enum command_class): Delete.
5668 (enum cmd_types): Comment out.
5669 (enum cmd_auto_boolean): Delete.
5670 (enum var_types): Delete.
5672 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5674 * cli/cli-decode.c: Include "gdb_assert.h".
5675 (add_set_or_show_cmd): New static function.
5676 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
5677 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
5678 all fields, such as func, from the set command.
5680 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5682 * MAINTAINERS (sh-elf): Change warning flag to -w.
5684 2002-03-23 Andrew Cagney <cagney@redhat.com>
5686 * defs.h (error): Add printf format attribute.
5687 * thread-db.c (thread_from_lwp): Fix error format string.
5688 * stack.c (parse_frame_specification): Ditto.
5689 * cli/cli-decode.c (undef_cmd_error): Ditto.
5690 * scm-lang.c (scm_lookup_name): Ditto.
5691 * tracepoint.c (trace_error): Ditto.
5692 * remote-utils.c (usage): Ditto.
5693 * remote.c (compare_sections_command): Ditto.
5696 2002-03-22 Andrew Cagney <ac131313@redhat.com>
5698 * gdbtypes.c (append_composite_type_field): New function.
5699 (init_composite_type): New function.
5700 * gdbtypes.h (append_composite_type_field): Declare.
5701 (init_composite_type): Ditto.
5703 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
5705 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
5707 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
5708 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
5709 structure returning convention for SYSV ABI case, but not
5710 for GNU/Linux, FreeBSD, or NetBSD.
5712 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
5714 * symtab.h (lookup_block_symbol): Add mangled_name argument
5717 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
5718 with new mangled_name argument.
5719 * linespec.c (decode_line_1): Likewise.
5720 * valops (value_of_this): Likewise.
5721 * symtab.c (lookup_transparent_type): Likewise.
5722 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
5723 (lookup_symbol): If we are given a mangled name, pass it down
5724 to lookup_symbol_aux.
5725 (lookup_block_symbol): If we are given a mangled name to check
5726 against, only return symbols which match it.
5728 2002-03-22 Christopher Faylor <cgf@redhat.com>
5730 * win32-nat.c (child_create_inferior): Check for proper shell to use
5731 here, in case the user changes it on the fly.
5732 (_initialize_inftarg): Remove shell path considerations.
5734 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
5736 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
5737 for gdbarch_max_register_raw_size and max_register_virtual_size.
5738 Adjust copyright year.
5740 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
5742 * dbxread.c (process_one_symbol): Extend the first N_SLINE
5743 in a function to cover the entire beginning of the function
5744 as well if it does not already.
5746 2002-03-21 Tom Rix <trix@redhat.com>
5748 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
5749 (rs6000_ptrace64): Renamed from ptrace64.
5751 2002-03-20 Martin M. Hunt <hunt@redhat.com>
5753 * gdbserver/remote-utils.c (remote_open): Don't call
5754 getprotobyname, we're all using TCP here so just use
5756 * gdbserver/gdbreplay.c (remote_open): Ditto.
5758 2002-03-20 Martin M. Hunt <hunt@redhat.com>
5760 * regcache.c (_initialize_regcache): No need to call
5761 build_regcache() at this time; it gets called whenever
5762 the gdbarch changes.
5764 2002-03-20 David O'Brien <obrien@FreeBSD.org>
5766 * sparc-nat.c: Include sys/param.h where possible.
5768 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
5771 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
5772 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
5773 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
5775 * stabsread.c (rs6000_builtin_type): Likewise.
5776 (read_sun_floating_type): Likewise.
5778 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5780 * stabsread.c (read_member_functions): Remove skip code for duplicate
5781 constructor/destructor methods. Use standard parsing for these
5782 methods and just do not chain them to the list of methods after
5785 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
5787 * coffread.c: Remove redundant static declarations. Replace
5788 occurrences of `PTR' with `void *'.
5789 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
5790 * top.h (quit_cover): Likewise.
5791 * defs.h (catch_errors): Likewise.
5793 2002-03-18 Andrew Cagney <ac131313@redhat.com>
5795 * defs.h (XMALLOC): Define.
5796 * gdb-events.sh (XMALLOC): Delete macro.
5797 * gdb-events.c, gdb-events.h: Regenerate.
5798 * gdbarch.sh (XMALLOC): Delete macro.
5799 * gdbarch.c: Regenerate.
5800 * serial.c (XMALLOC): Delete macro.
5801 * ui-file.c (XMALLOC): Ditto.
5802 * ser-unix.h (XMALLOC): Ditto.
5803 * sh-tdep.c (XMALLOC): Ditto.
5804 * ui-out.c (XMALLOC): Ditto.
5805 * utils.c (XMALLOC): Ditto.
5806 * i386-tdep.c (XMALLOC): Ditto.
5807 * gdb-events.c (XMALLOC): Ditto.
5808 * d10v-tdep.c (XMALLOC): Ditto.
5809 * cli-out.c (XMALLOC): Ditto.
5811 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
5812 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
5813 * ui-file.c, ui-out.c: Ditto.
5815 2002-03-18 Andrew Cagney <ac131313@redhat.com>
5817 * command.h (struct cmd_list_element): Add field context.
5818 (set_cmd_context, get_cmd_context): Declare.
5819 * cli/cli-decode.h: Ditto.
5820 * cli/cli-decode.c (get_cmd_context): New function.
5821 (set_cmd_context): New function.
5822 (add_cmd): Initialize context.
5823 Part of fixing PR gdb/145 and PR gdb/146.
5825 2002-03-17 Andrew Cagney <ac131313@redhat.com>
5827 * cli/cli-decode.c (cmd_type): New function.
5828 * command.h (cmd_type): Declare.
5829 * infrun.c (set_schedlock_func): Call function cmd_type.
5830 * kod.c (kod_set_os): Call cmd_type.
5831 * cris-tdep.c (cris_version_update): Use function cmd_type.
5832 (cris_mode_update, cris_abi_update): Ditto.
5834 * command.h: (execute_cmd_post_hook): Declare.
5835 (execute_cmd_pre_hook): Declare.
5836 * cli/cli-script.c (clear_hook_in_cleanup): New function.
5837 (execute_cmd_post_hook, execute_cmd_pre_hook): New
5838 functions. Execute pre/post hook while ensuring that afterwords
5840 * top.c (execute_command): Use execute_cmd_post_hook, and
5841 execute_cmd_pre_hook to execute pre/post commands.
5842 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
5844 (hook_stop_stub): Call execute_cmd_pre_hook.
5846 2002-03-17 Andrew Cagney <ac131313@redhat.com>
5848 * kod.c (kod_set_os): Revert previous change. Is called by ``info
5849 set'' and this leads to a core dump. Move xstrdup of
5850 operating_system to after check that it is not NULL.
5852 2002-03-17 Andrew Cagney <ac131313@redhat.com>
5854 * kod.c (kod_set_os): Remove unnecessary check that
5855 ``command->type'' is set_cmd.
5857 * valprint.c (set_input_radix): Use input_radix.
5858 (set_output_radix): Use output_radix.
5859 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
5862 2002-03-16 Andrew Cagney <ac131313@redhat.com>
5864 * value.h (struct value): Delete field ``substring_addr''. Change
5865 aligner fields to force_doublest_align, force_longest_align,
5866 force_core_addr_align and force_pointer_aligh.
5868 * value.h (struct value): Fix typo in above change.
5870 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5872 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
5873 to fix internal_error from ``maintenance print architecture''.
5875 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5877 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
5878 for gcc versions after gcc-2.8.1.
5880 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5882 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
5883 for method resolution. Restore adjustment of ``this'' pointer after
5884 calling value_struct_elt, which was accidentally removed during the
5887 2002-03-15 Andrew Cagney <ac131313@redhat.com>
5889 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
5891 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
5893 * value.h (value_of_register): Update.
5895 2002-03-14 Richard Henderson <rth@redhat.com>
5897 * configure.in: Detect declaration for canonicalize_file_name.
5898 * utils.c (canonicalize_file_name): Declare, if needed.
5899 (gdb_realpath): Prefer realpath if available and usable.
5900 * config.in, configure: Rebuild.
5902 2002-03-14 Richard Henderson <rth@redhat.com>
5904 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
5905 a constant array bound.
5907 * MAINTAINERS: Add myself to write-after-approval.
5909 2002-03-14 Michael Snyder <msnyder@redhat.com>
5911 * symfile.c (syms_from_objfile): Return immediately if no syms.
5912 (symbol_file_add): Return immediately if no syms.
5913 (find_sym_fns): Return immediately if no syms.
5915 2002-03-13 Michal Ludvig <mludvig@suse.cz>
5917 * gdbserver/remote-util.c (remote_open): Print remote-side's
5918 IP address when remote debugging over the network.
5920 2002-03-12 David O'Brien <obrien@FreeBSD.org>
5922 * config/sparc/fbsd.mh: Fix copyright.
5923 * config/sparc/fbsd.mt: Likewise.
5925 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
5927 * MAINTAINERS: Fix typo in name of gdb warnings option.
5928 (x86-64): Fix formating so that this can be parsed by awk.
5930 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
5932 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
5933 * defs.h: Include "gdb/signals.h".
5934 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
5936 2002-03-10 Michal Ludvig <mludvig@suse.cz>
5938 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
5939 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
5942 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
5943 Don Howard <dhoward@redhat.com>
5945 * mips-tdep.c (ST0_FR): Define.
5946 (mips2_fp_compat): New function, temporarily disabled.
5947 (mips_read_fp_register_single): New function.
5948 (mips_read_fp_register_double): New function.
5949 (mips_print_register): Use them.
5950 (do_fp_register_row): Likewise.
5952 2002-03-09 Andrew Cagney <ac131313@redhat.com>
5954 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
5957 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5959 * stabsread.c (read_member_functions): Fix is_stub test for
5960 static member functions, improve comment.
5962 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
5964 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
5965 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
5966 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
5967 commands that set boolean values.
5968 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
5969 (arm_rdi_resume): Always initialize PC.
5970 (arm_rdi_open): Don't use rslt as a boolean.
5971 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
5972 (arm_rdi_fetch_registers, arm_rdi_store_registers)
5973 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
5974 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
5976 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
5978 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
5979 * configure: Rebuilt.
5981 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5983 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
5984 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
5986 2002-03-06 Andrew Cagney <ac131313@redhat.com>
5988 * cli/cli-decode.c (set_cmd_completer): New function.
5989 * command.h (set_cmd_completer): Declare.
5990 * cli/cli-decode.h (set_cmd_completer): Ditto.
5992 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
5993 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5994 * win32-nat.c (_initialize_inftarg): Ditto.
5995 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5996 * proc-api.c (_initialize_proc_api): Ditto.
5997 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
5998 * source.c (_initialize_source): Ditto.
5999 * exec.c (_initialize_exec): Ditto.
6000 * solib.c (_initialize_solib): Ditto.
6001 * top.c (init_main): Ditto.
6002 * tracepoint.c (_initialize_tracepoint): Ditto.
6003 * symfile.c (_initialize_symfile): Ditto.
6004 * printcmd.c (_initialize_printcmd): Ditto.
6005 * infcmd.c (_initialize_infcmd): Ditto.
6006 * corefile.c (_initialize_core): Ditto.
6008 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6010 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
6012 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6014 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
6016 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6018 * NEWS: Update headings, 5.2 has branched.
6020 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
6022 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
6023 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
6024 (register_addr, REGISTER_RAW_SIZE): Likewise.
6025 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
6026 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
6028 2002-03-03 Michal Ludvig <mludvig@suse.cz>
6030 * MAINTAINERS (x86-64): Add myself.
6031 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
6032 changed value_ptr -> struct value *
6034 2002-03-01 David O'Brien <obrien@FreeBSD.org>
6036 * configure.host (sparc64-*-freebsd): Add.
6037 * configure.tgt: Likewise.
6038 * config/sparc/fbsd.mh: New file.
6039 * config/sparc/fbsd.mt: Likewise.
6040 * config/sparc/nm-fbsd.h: Likewise.
6041 * config/sparc/tm-fbsd.h: Likewise.
6043 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
6045 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
6046 regformats/reg-s390x.dat.
6048 2002-03-01 Andrew Cagney <ac131313@redhat.com>
6050 * utils.c: Add FIXME explaining true/false problem.
6052 2002-02-28 Andrew Cagney <ac131313@redhat.com>
6054 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
6056 2002-02-28 Michael Chastain <mec@shout.net>
6058 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
6060 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
6062 * gdbserver/linux-s390-low.c: New file.
6063 * regformats/reg-s390.dat: New file.
6064 * regformats/reg-s390x.dat: New file.
6065 * gdbserver/configure.srv: Add S/390.
6066 * gdbserver/Makefile.in: Add S/390.
6067 * configure.tgt: Enable gdbserver for S/390.
6069 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
6071 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
6072 first line of the doc string for "info dos", except at the end of
6073 the sentence, since the short help stops at the first period.
6075 2002-02-28 Jason Merrill <jason@redhat.com>
6077 * dwarf2read.c (dwarf_cfi_name): Add new codes.
6079 2002-02-27 Fred Fish <fnf@redhat.com>
6081 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
6082 comment (dumy -> dummy).
6084 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6086 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
6088 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
6090 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
6092 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6094 * gdbserver/acconfig.h: New file.
6095 * gdbserver/i387-fp.c: New file.
6096 * gdbserver/i387-fp.h: New file.
6097 * gdbserver/linux-x86-64.c: New file.
6098 * regformats/reg-x86-64.dat: New file.
6099 * configure.tgt: Add x86_64-*-linux* gdbserver support.
6100 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
6101 * gdbserver/configure.in: Add support for regsets.
6102 * gdbserver/config.in: Regenerate.
6103 * gdbserver/configure: Regenerate.
6104 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
6105 * gdbserver/linux-low.h: New file.
6106 * gdbserver/linux-low.c: Include "linux-low.h". Add support
6108 * gdbserver/linux-arm-low.c: Include "linux-low.h".
6109 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
6110 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
6111 * gdbserver/linux-mips-low.c: Include "linux-low.h".
6112 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
6113 * gdbserver/linux-sh-low.c: Include "linux-low.h".
6114 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
6115 "i387-fp.h". Add PTRACE_GETREGS and friends.
6116 * gdbserver/regcache.c (supply_register): New function.
6117 (supply_register_by_name): New function.
6118 (collect_register): New function.
6119 (collect_register_by_name): New function.
6121 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6123 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
6124 (config.status): Add configure.srv dependency.
6125 (server_h): Add config.h dependency.
6127 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6129 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
6130 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
6131 * gdbserver/configure.srv: Change i386-*-linux* to use
6134 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6136 * x86-64-tdep.c: Re-indent. Update copyright date.
6138 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6140 From Michal Ludvig <mludvig@suse.cz>:
6141 * x86-64-tdep.c (value.h): Delete.
6142 (gdb_assert.h): Include.
6143 (x86_64_register_convert_to_virtual,
6144 x86_64_register_convert_to_raw ): Add check which lets only
6145 floating-point values to be converted.
6146 (value_push): Delete.
6147 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
6148 (i386_gdbarch_init): Number of register_bytes fixed.
6150 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6152 * MAINTAINERS: Add x86-64 target.
6154 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6156 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
6157 * osfsolib.c (solib_map_sections): Ditto.
6158 * irix5-nat.c (solib_map_sections): Ditto.
6159 * corelow.c (gdb_check_format): Ditto.
6160 * symfile.c (symfile_bfd_open): Ditto.
6161 * solib.c (solib_map_sections): Ditto.
6164 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6166 * remote.c (_initialize_remote): By default, disable ``e'' and
6167 ``E'' step out-of-range packets.
6169 2002-02-26 Andreas Schwab <schwab@suse.de>
6171 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
6172 m68k_linux_frame_saved_pc.
6173 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
6175 (SIGCONTEXT_PC_OFFSET): Remove.
6176 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
6177 m68k_linux_sigtramp_saved_pc): New functions.
6178 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
6179 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
6180 (UCONTEXT_PC_OFFSET): Define.
6181 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
6182 non-RT and RT signal trampolines.
6184 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
6186 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
6187 (TARGET_NBPG, STACK_END_ADDR): Delete
6188 (VARIABLES_INSIDE_BLOCK): Delete.
6190 2002-02-25 Andrew Cagney <ac131313@redhat.com>
6192 * utils.c (perror_with_name): Make string parameter constant.
6193 (print_sys_errmsg): Ditto.
6195 * defs.h (perror_with_name): Update.
6196 (print_sys_errmsg): Update.
6199 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
6201 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
6202 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
6204 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6206 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
6207 if it already matches the current architecture from the exec file.
6208 Include arch-utils.h for gdbarch_info_init prototype.
6209 * Makefile.in (rs6000-nat.o): Update dependencies.
6211 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
6213 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
6214 list of exported variables.
6216 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
6218 * gdbserver/configure.srv: New file.
6219 * gdbserver/configure.in: Use configure.srv instead
6220 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
6222 * gdbserver/configure: Regenerated.
6223 * gdbserver/terminal.h: New file.
6224 * gdbserver/Makefile.in: Update for configure changes. Remove
6225 more unneeded include paths.
6227 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6229 From wiz at danbala:
6230 * config/sparc/tm-sp64.h: Fix grammar and typos.
6233 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6235 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
6236 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
6237 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
6238 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
6239 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
6240 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
6241 * s390-tdep.c: Ditto.
6242 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
6243 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
6244 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
6245 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
6246 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
6247 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
6248 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
6249 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
6250 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
6251 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
6254 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6256 * lin-thread.c: Delete file.
6257 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
6258 to gdb_proc_service.h.
6259 * configure: Re-generate.
6261 * ocd.c (ocd_open): Do not try to open the "ocd" device.
6262 * serial.c (serial_open): Delete check for "ocd".
6265 * Makefile.in (linux-thread.o): Delete target.
6266 * linux-thread.c: Delete file.
6268 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
6269 renamed SH files to be consistent.
6271 * symtab.c (sort_search_symbols): Use xfree.
6273 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6275 * arm-linux-tdep.c (arm_linux_init_abi): Register
6276 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
6277 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
6278 definition with undef, since we don't want the sysvr4 definition.
6279 (SKIP_TRAMPOLINE_CODE): Likewise.
6281 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6283 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
6285 * configure.in: (AC_CHECK_FUNCS) Added test for
6286 canonicalize_file_name Regenerated.
6287 * config.in, configure: Regenerated.
6288 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
6289 defined use canonicalize_file_name.
6291 2002-02-23 Michael Chastain <mec@shout.net>
6293 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
6295 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6297 * README: Remove references to cygnus.com.
6298 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
6299 dot com'' form. Remove references to cygnus.com and sourceware.
6301 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6303 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
6304 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
6305 1003.1-2001 no longer allows "head -1".
6306 * gdb/Makefile.in (version.c): Likewise.
6307 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
6308 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
6309 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
6311 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6313 * cli/cli-decode.c (cmd_cfunc_eq): New function.
6314 * command.h (cmd_cfunc_eq): Declare.
6315 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
6317 * cli/cli-cmds.h (is_complete_command): Change parameter to a
6318 ``struct cmd_list_element *''.
6319 * cli/cli-cmds.c (is_complete_command): Update. Use
6321 * top.c (execute_command): Pass the command to
6322 is_complete_command.
6323 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
6325 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6327 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
6328 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
6329 architecture defines.
6330 * s390-tdep.c (s390_gdbarch_init): Likewise.
6332 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6334 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
6335 (arm_linux_push_arguments): Likewise.
6336 (arm_linux_init_abi): Register them. Also register linux-specific
6338 (find_minsym_and_objfile): Use strcmp, not STREQ.
6339 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
6340 (arm_linux_call_dummy_words): Delete declaration.
6341 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
6342 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
6344 (LOWEST_PC): Delete.
6346 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6348 * maint.c (print_section_info): Do not prepend `0x' to filepos
6349 output, it will be handled by local_hex_string_custom.
6351 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6353 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
6354 (store_newfpe_double, store_newfpe_extended, store_fpregister)
6355 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
6357 2002-02-22 Jim Blandy <jimb@redhat.com>
6359 Indicate that the bcache functions don't change the strings
6361 * bcache.h (bcache, hash): Add `const' keywords to declarations.
6362 * bcache.c (bcache, hash): Add `const' keywords to definitions.
6364 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
6366 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
6368 2002-02-21 Christopher Faylor <cgf@redhat.com>
6370 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
6371 find the complete path to a loaded DLL.
6373 2002-02-21 Fred Fish <fnf@redhat.com>
6375 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
6376 that marks the end of the range of a function, enter a line number
6377 entry that has a line number of zero and a PC offset that matches
6378 the end of the function. This starts a range of PC's for which no
6379 line number information is known.
6380 * symtab.c (find_pc_sect_line): If our best fit is in a range of
6381 PC's for which no line number info is found (line number is zero)
6382 then we didn't find any valid line information.
6383 * symtab.h: Document use of zero line number entry.
6385 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
6387 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
6388 (have_ptrace_getvrregs): Define for run time checks.
6389 (gdb_vrregset_t): New type for Altivec register handling.
6390 (fetch_register, store_register): Fetch/store altivec register
6392 (fetch_altivec_register, store_altivec_register): New functions.
6393 (supply_vrregset, fill_vrregset): New functions.
6394 (fetch_altivec_registers, store_altivec_registers): New functions.
6395 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
6398 2002-02-21 Jiri Smid <smid@suse.cz>
6400 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
6402 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6404 * Makefile.in (armnbsd-nat.o): Update dependencies.
6405 * armnbsd-nat.c (supply_gregset): New function. Common code to
6406 supply the integer register set.
6407 (supply_fparegset): New function. Similar for FPA registers.
6408 (fetch_regs, fetch_fp_regs): Use them.
6409 (fetch_core_registers): Likewise.
6410 (fetch_elfcore_registers): New function.
6411 (arm_netbsd_elfcore_fns): New core-file type specification.
6412 (_initialize_arm_netbsd_nat): Register it.
6414 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6416 * armnbsd-nat.c: Include gdbcore.h.
6417 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
6418 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
6419 'void' to declaration, to shut up ARI.
6420 (fetch_core_registers): Make static. Rewrite using supply_register.
6421 (arm_netbsd_core_fns): New core-file type specification.
6422 (_initialize_arm_netbsd_nat): New function.
6424 2002-02-21 Christopher Faylor <cgf@redhat.com>
6426 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
6429 2002-02-20 Christopher Faylor <cgf@redhat.com>
6431 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
6434 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6436 * jv-exp.y (parse_number): Change type of implicit longs
6437 to builtin_type_uint64.
6439 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6441 * gdbserver/linux-low.c (mywait): Change argument to waitpid
6442 to be an integer instead of a `union wait'.
6444 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6446 * mips-linux-nat.c: Call the operating system GNU/Linux.
6447 * mips-linux-tdep.c: Likewise.
6448 * mips-tdep.c: Likewise.
6450 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6453 * jv-exp.y (parse_number): Handle 64-bit integers.
6455 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6457 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
6458 AC_STDC_HEADERS to AC_HEADER_STDC.
6459 * gdbserver/configure: Regenerated.
6461 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6463 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
6465 * sparc-tdep.c (get_longjmp_target): Likewise.
6467 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6469 * News: Add news about ARM and Multi-arch. Mention the new target
6472 2002-02-19 Jim Blandy <jimb@redhat.com>
6474 * stabsread.c (error_type_complaint): Improve error message.
6476 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
6478 * gdbserver/README: Update documentation.
6479 * gdbserver/configure.in: Update configury to match documentation.
6480 * gdbserver/Makefile.in: Likewise.
6481 * gdbserver/configure: Regenerated.
6482 * gdbserver/aclocal.m4: New file, generated by aclocal.
6483 * gdbserver/config.in: New file, generated by autoheader.
6485 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6487 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
6490 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6492 * arm-tdep.h (enum arm_float_model): New enum.
6493 (struct gdbarch_tdep): Add fp_model.
6494 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
6495 up floating-point conversions until we know the floating-point model
6496 in use by the inferior. Don't complain about being unable to
6497 determine the ABI of the inferior when we don't have one.
6498 (arm_extract_return_value): Support different floating-point models.
6499 (arm_store_return_value): Likewise.
6500 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
6502 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
6504 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6506 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
6507 of ``current_gdbarch''.
6509 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6511 * armnbsd-nat.c : ANSIfy all function declarations.
6512 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
6513 (fetch_inferior_registers): Re-implement in terms of above.
6514 (store_register, store_regs, store_fp_register, store_fp_regs): New.
6515 (store_inferior_registers): Re-implement in terms of above.
6517 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6519 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
6521 * arm-linux-tdep.c: Likewise.
6522 * config/arm/tm-linux.h: Likewise.
6524 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6526 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
6527 * config/arm/nbsd.mt (TM_FILE): Delete.
6528 * config/arm/tm-nbsd.h: Delete.
6530 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6532 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
6533 Initialize CALL_DUMMY_LENGTH.
6535 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6537 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
6539 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
6540 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
6541 defines one thing and that is incorrect for this port.
6542 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
6544 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6546 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
6548 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6550 * win32-nat.c (display_selector): New function. Displays information
6551 about the information returned by GetThreadSelectorEntry API function.
6552 (display_selectors): New function. Displays the infomation of
6553 the selector given as argument, or of CS, DS ans FS selectors
6554 if no argument is given.
6555 ( _initialize_inftarg): Add "w32" as info prefix command.
6556 Add "info w32 selector" as command calling display_selectors.
6558 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
6560 * i386-tdep.c (get_longjmp_target): Fix compilation failure
6561 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
6564 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6566 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
6568 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6570 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
6571 (arm_fix_call_dummy): Call it.
6572 (arm_call_dummy_breakpoint_offset): Delete.
6573 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
6574 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6576 2002-02-18 Andrew Cagney <ac131313@redhat.com>
6578 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
6579 Default to func_frame_chain_valid.
6580 * gdbarch.h, gdbarch.c: Re-generate.
6581 * frame.h (FRAME_CHAIN_VALID): Delete definition.
6583 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
6585 * ppc-linux-nat.c: Update copyright.
6586 (fetch_register, store_register): Add tid parameter, don't compute
6588 (fetch_ppc_registers, store_ppc_registers): Add tid
6589 parameter. Pass it along to callees.
6590 (fetch_inferior_registers, store_inferior_registers): Compute tid
6591 here, and pass it to calleed functions.
6592 (fill_gregset, supply_fpregset): Clean up formatting.
6594 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6596 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
6597 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
6599 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6601 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
6602 * gdbarch.c gdbarch.h: Regenerate.
6603 * breakpoint.c (create_longjmp_breakpoint): Always compile this
6605 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
6606 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
6607 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
6609 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
6610 * arm-tdep.c (arm_get_longjmp_target): New function.
6611 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
6612 this to a positive value register arm_get_longjmp_target as the
6614 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
6615 (arm_linux_init_abi): Set up longjmp description in tdep.
6616 * armnbsd-nat.c (get_longjmp_target): Delete.
6617 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
6618 description in tdep.
6619 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
6620 (get_longjmp_target): Delete declaration.
6621 (GET_LONGJMP_TARGET): Delete.
6622 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
6623 (GET_LONGJMP_TARGET): Delete.
6625 2002-02-17 Kevin Buettner <kevinb@redhat.com>
6627 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
6628 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
6629 of ``current_gdbarch''.
6631 2002-02-17 Tom Tromey <tromey@redhat.com>
6633 * cli/cli-cmds.c (compare_strings): New function.
6634 (complete_command): Only print each unique item once.
6635 * completer.h (complete_line): Declare.
6636 * completer.c (complete_line): New function.
6637 (line_completion_function): Use it.
6639 2002-02-16 Andrew Cagney <ac131313@redhat.com>
6641 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
6642 * gdbarch.h, gdbarch.c: Re-generate.
6644 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
6646 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
6648 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
6650 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6651 * valops.c (value_arg_coerce): Don't take the address of a reference
6652 to convert an argument to a reference.
6654 2002-02-15 Christopher Faylor <cgf@redhat.com>
6656 * win32-nat.c (get_image_name): New function.
6657 (handle_load_dll): Use get_image_name function.
6658 (get_child_debug_event): Avoid registering debug events until possibly
6659 execed process is started.
6660 (child_create_inferior): Allow invocation via shell so that command
6661 line redirection, etc. works ok.
6662 (_initialize_inftarg): Add new command: "set shell" to control whether
6663 a shell is used to start a process.
6665 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
6667 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
6668 instead of find_register_by_number.
6669 (cannot_store_register): Likewise.
6671 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
6673 * dwarf2read.c: Replace fprintf (stderr, ...) by
6674 fprintf_unfiltered (gdb_stderr, ...).
6676 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
6678 * gdbserver/gdbserver.1: Document --attach.
6680 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
6682 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
6684 * arm-tdep.c (arm_default_arm_le_breakpoint)
6685 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
6686 (arm_default_thumb_be_breakpoint): New. Initialize them from
6687 traditional breakpoint defines.
6688 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
6689 (arm_gdbarch_init): Initialize new breakpoint variables.
6690 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
6691 (arm_linux_init_abi): Initialize linux-specific breakpoint.
6692 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
6693 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
6695 (arm_netbsd_init_abi_common): ... here; new function.
6696 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
6697 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
6698 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
6699 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
6701 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
6703 * arm-tdep.h (enum arm_abi): New enum.
6704 (struct gdbarch_tdep): New structure.
6705 (LOWEST_PC): Provide a default.
6706 (arm_gdbarch_register_os_abi): Declare new function.
6707 * arm-tdep.c (arm_abi_names): New array.
6708 (process_note_abi_tag_sections): New function.
6709 (get_elfosabi): New function.
6710 (arm_gdbarch_register_os_abi): New function.
6711 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
6712 support for that ABI has been built in, then call the appropriate
6713 configuration routine. Use gdbarch_num_regs() to get the number
6715 (arm_dump_tdep): New function.
6716 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
6717 place-holder functions.
6718 (_initialize_arm_tdep): Register them.
6719 * config/arm/tm-arm.h (LOWEST_PC): Delete.
6721 * armnbsd-tdep.c: New file.
6722 * Makefile.in (armnbsd-tdep.o): Add dependencies.
6723 * config/arm/nbsd.mt (TDEPFILES): Add it.
6724 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
6726 * armnbsd-nat.c: Include regcache.h.
6727 * Makefile.in (armnbsd-nat.o): Update dependency list.
6729 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
6731 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6733 * gdbserver/Makefile.in: Fix typos in target rules.
6735 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6737 Fix part of PR gdb/267.
6738 * linespec.c (find_methods): Handle constructors specially for now.
6740 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
6742 * arm-tdep.c (arm_push_arguments): Eliminate special float type
6744 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
6745 standard_coerce_float_to_double().
6747 2002-02-14 Christopher Faylor <cgf@redhat.com>
6749 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
6752 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
6754 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
6755 find_variant_by_name, because it confuses the multiarch
6756 framework. Return NULL if there isn't an architecture with the
6757 user supplied name, instead of forcing a different one without
6758 recording the change with the multiarch machinery.
6759 (find_variant_by_name): Delete.
6761 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6763 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
6764 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
6766 2002-02-13 Martin M. Hunt <hunt@redhat.com>
6768 * stack.c (print_frame_info_base): When calling
6769 print_frame_info_listing_hook, set current_source_symtab.
6771 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6773 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
6774 and remove unused $(INCLUDE_DIR).
6775 Add regcache.c to OBS.
6776 Add generated register protocol files to clean target.
6777 Update dependencies for new objects, obsolete old target code.
6779 * gdbserver/linux-low.c: Remove all platform-specific code to
6780 new files. Remove various dead code. Update to use regcache
6782 * gdbserver/remote-utils.c (fromhex): Add return statement
6784 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
6786 (input_interrupt): Add integer parameter to match prototype
6787 of a signal handler.
6788 (outreg): Use register_data ().
6789 (prepare_resume_reply): Use gdbserver_expedite_regs.
6790 * gdbserver/server.c (main): Dynamically allocate own_buf because
6791 PBUFSIZ is no longer constant. Use registers_to_string () and
6792 registers_from_string ().
6793 * gdbserver/server.h: No longer include "defs.h". Add prototypes
6794 for error (), fatal (), and warning (). Update definition of
6795 PBUFSIZ to use regcache functionality. Add include guard.
6796 * gdbserver/utils.c (fatal): Add missing ``const''.
6797 (warning): New function.
6799 * regformats/regdat.sh: Include "regcache.h" in generated files.
6800 Provide init_registers () function.
6801 * regformats/regdef.h: Add prototype for set_register_cache ().
6804 * gdbserver/linux-arm-low.c: New file.
6805 * gdbserver/linux-i386-low.c: New file.
6806 * gdbserver/linux-ia64-low.c: New file.
6807 * gdbserver/linux-m68k-low.c: New file.
6808 * gdbserver/linux-mips-low.c: New file.
6809 * gdbserver/linux-ppc-low.c: New file.
6810 * gdbserver/linux-sh-low.c: New file.
6812 * gdbserver/regcache.c: New file.
6813 * gdbserver/regcache.h: New file.
6815 * gdbserver/low-linux.c: Removed obsolete file.
6817 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6819 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
6820 * config/i386/linux.mt: Likewise.
6821 * config/ia64/linux.mt: Likewise.
6822 * config/m68k/linux.mh: Likewise.
6823 * config/powerpc/linux.mh: Likewise.
6824 * config/mips/linux.mt: Likewise.
6826 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
6828 * config/i386/i386lynx.mh: Mark gdbserver variables
6829 as (currently) obsolete for this target.
6830 * config/i386/nbsd.mt: Likewise.
6831 * config/i386/nbsdelf.mt: Likewise.
6832 * config/m32r/m32r.mt: Likewise.
6833 * config/m68k/m68klynx.mh: Likewise.
6834 * config/m68k/nbsd.mt: Likewise.
6835 * config/m68k/sun3os4.mh: Likewise.
6836 * config/mips/vr5000.mt: Likewise.
6837 * config/ns32k/nbsd.mt: Likewise.
6838 * config/pa/hppabsd.mh: Likewise.
6839 * config/pa/hppaosf.mh: Likewise.
6840 * config/powerpc/nbsd.mt: Likewise.
6841 * config/rs6000/rs6000lynx.mh: Likewise.
6842 * config/s390/s390.mt: Likewise.
6843 * config/s390/s390x.mt: Likewise.
6844 * config/sparc/sparclynx.mh: Likewise.
6845 * config/sparc/sun4os4.mh: Likewise.
6846 * config/i386/x86-64linux.mt: Likewise.
6847 * config/sparc/linux.mh: Likewise.
6849 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6851 * configure.tgt: Configure gdbserver only for known working
6852 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
6853 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
6854 SUBDIRS if it is configured. Update comment for ${nativefile}.
6855 * configure: Regenerated.
6857 2002-02-13 Michael Snyder <msnyder@redhat.com>
6859 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
6861 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
6862 (default_gcore_mach): Just return 0, work around a problem in bfd.
6863 (default_gcore_target): OK to return NULL if exec_bfd is null.
6864 (make_mem_sec): Use a cast, avoid a warning.
6866 * procfs.c (find_memory_regions_callback): Use a cast instead of
6867 calling host_pointer_to_address (which complains if
6868 sizeof (host pointer) != sizeof (target pointer)).
6869 (procfs_make_note_section): Avoid overflow in psargs string.
6871 * procfs.c (procfs_make_note_section): Make the default
6872 implementation return an error.
6874 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
6876 * procfs.c (procfs_make_note_section): Provide a default definition
6877 (for alpha-dec-osf4.0f). Fix typos.
6879 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
6881 * linux-proc.c: Add include of regcache.h.
6882 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
6884 2002-02-13 Andrew Cagney <ac131313@redhat.com>
6886 From 2002-01-18 Greg McGary <greg@mcgary.org>:
6887 * memattr.c (create_mem_region): Disallow useless empty region.
6888 Regions are half-open intervals, so allow [A..B) [B..C) as
6891 2002-02-13 Michael Chastain <mec@shout.net>
6893 * defs.h: Kill CONST_PTR.
6894 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
6895 * c-lang.c (c_builtin_types): Likewise.
6896 * ch-lang.c (ch_builtin_types): Likewise.
6897 * f-lang.c (f_builtin_types): Likewise.
6898 * language.c (unknown_builtin_types): Likewise.
6899 * m2-lang.c (m2_builtin_types): Likewise.
6900 * p-lang.c (pascal_builtin_types): Likewise.
6901 * scm-lang.c (c_builtin_types): Likewise.
6903 2002-02-13 Keith Seitz <keiths@redhat.com>
6905 * arm-tdep.h (arm_get_next_pc): Add declaration.
6907 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
6909 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
6910 with other related struct-returning functions.
6911 (arm_extract_struct_value_address): New function.
6912 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
6913 initialize float_format, double_format and long_double_format as
6914 appropriate to the endianness of the target.
6915 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
6916 (arm_use_struct_convention): Delete declaration.
6917 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
6919 2002-02-13 Keith Seitz <keiths@redhat.com>
6921 * defs.h (core_addr_to_string_nz): New function.
6923 2002-02-13 Mark Kettenis <kettenis@gnu.org>
6925 Apply missing bits of 2002-01-15 patch.
6926 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
6927 (fill_fpregset): Use i387_fill_fsave.
6929 2002-02-12 Keith Seitz <keiths@redhat.com>
6931 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
6932 (core_addr_to_string_nz): New function.
6934 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6936 * arm-linux-nat.c: Really include arm-tdep.h.
6937 * config/arm/tm-linux.h (struct type, struct value): Declare.
6939 2002-02-11 Michael Snyder <msnyder@redhat.com>
6941 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
6942 (gcore section): Ifdef for Solaris and Unixware only.
6943 (procfs_do_thread_registers): Unixware needs one lwpstatus
6944 per thread (not one prstatus or pstatus).
6945 (procfs_make_note_section): Iterate only over kernel threads (lwps),
6946 not over all gdb threads. For unixware, call elfcore_write_pstatus
6947 once before iterating over threads.
6949 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6951 * arm-tdep.h: New file.
6952 * arm-tdep.c: Include arm-tdep.h.
6953 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6954 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6955 (arm_print_float_info, arm_register_type, convert_to_extended)
6956 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6957 (arm_extract_return_value, arm_register_name): Make static.
6958 (arm_software_single_step): Similarly. Fix types in declaration.
6959 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
6960 (arm_store_return_value, arm_store_struct_return): New functions.
6961 (arm_gdbarch_init): Register the above functions. Also register
6962 call_dummy_start_offset, sizeof_call_dummy_words,
6963 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
6964 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
6965 max_register_virtual_size, register_size. Set up
6966 prologue_cache.saved_regs here, rather than ...
6967 (_initialize_arm_tdep): ... here.
6968 * config/arm/tm-arm.h (struct type, struct value): Delete forward
6970 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6971 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6972 (arm_print_float_info, arm_register_type, convert_to_extended)
6973 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6974 (arm_extract_return_value, arm_register_name): Delete declarations.
6975 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
6976 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
6977 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
6978 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
6979 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6980 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
6981 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
6982 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
6983 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
6984 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
6985 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
6986 (arm_get_next_pc): No-longer static -- these are needed by the RDI
6988 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
6989 * remote-rdi.c remote-rdp.c: Likewise.
6990 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
6991 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
6992 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
6995 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
6996 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
6997 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
6998 from non-ARM_ prefixed definitions.
6999 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
7001 * remote-rdi.c remote-rdp.c: Likewise.
7002 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
7004 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7006 * arm-tdep.c (arm_frameless_function_invocation)
7007 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
7008 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
7009 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
7010 (arm_pop_frame, arm_get_next_pc): Make static.
7011 (arm_gdbarch_init): Register above in gdbarch structure.
7012 (arm_read_fp): Renamed from arm_target_read_fp.
7013 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
7014 * config/arm/tm-arm.h (arm_frameless_function_invocation)
7015 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
7016 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
7017 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
7018 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
7019 (arm_pc_is_thumb_dummy): Delete declarations.
7020 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
7021 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
7022 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
7023 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
7025 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
7027 * symtab.c (compare_search_syms): New function.
7028 (sort_search_symbols): New function.
7029 (search_symbols): Sort symbols after searching rather than
7032 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7034 * NEWS: Linux -> GNU/Linux.
7036 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7038 * gdbarch.sh: For for level one methods, disallow a definition
7039 when partially multi-arched. Add comments explaining rationale.
7040 * gdbarch.h: Re-generate.
7042 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7044 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
7047 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7049 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
7051 * gdbarch.c: Re-generate.
7053 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7055 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
7056 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
7059 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7061 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
7063 (PUSH_ARGUMENTS): Switch to using predefault.
7064 * gdbarch.c: Regenerate.
7066 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7068 * valops.c (PUSH_ARGUMENTS): Delete definition.
7069 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
7070 partial. Default to default_push_arguments.
7071 * gdbarch.h, gdbarch.c: Regenerate.
7073 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7075 * defs.h (throw_exception): Rename return_to_top_level. Update
7077 * utils.c (error_stream, internal_verror, quit): Ditto.
7078 * top.c (throw_exception, catcher): Ditto.
7079 * sparclet-rom.c (sparclet_load): Ditto.
7080 * remote.c (interrupt_query, minitelnet): Ditto.
7081 * remote-sds.c (interrupt_query): Ditto.
7082 * remote-mips.c (mips_error, mips_kill): Ditto.
7083 * ocd.c (interrupt_query): Ditto.
7084 * monitor.c (monitor_interrupt_query): Ditto.
7085 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
7086 * target.h: Update comment.
7088 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
7090 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7092 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
7093 default_double_format.
7094 * gdbarch.h, gdbarch.c: Re-generate.
7095 * findvar.c (floatformat_unknown): Delete variable definition.
7096 * doublest.h (floatformat_unknown): Delete variable declaration.
7098 2002-02-09 Jim Blandy <jimb@redhat.com>
7100 * stabsread.c (read_type): Add code to parse Sun's syntax for
7101 prototyped function types.
7103 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7105 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
7106 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
7108 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7110 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
7111 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
7112 now _initialize_xcoffsolib gets called again and overrides the
7113 commands from solib.c in a native configuration.
7115 2002-02-09 Mark Kettenis <kettenis@gnu.org>
7117 * doublest.c (store_typed_floating): Don't try to return a value.
7120 2002-02-08 Jim Blandy <jimb@redhat.com>
7122 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
7123 is prototyped and has no arguments, print its argument list as
7126 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7128 * MAINTAINERS (write-after-approval): Add myself.
7129 (paper-trail): I've escaped!
7131 2002-02-08 Christopher Faylor <cgf@redhat.com>
7133 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
7135 (_initialize_check_for_gdb_ini): Ditto.
7137 2002-02-08 Martin M. Hunt <hunt@redhat.com>
7139 * win32-nat.c (cygwin_pid_to_str): Fix typo.
7140 xaprintf -> xasprintf.
7142 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
7144 * win32-nat.c: Remove use of printf and sprintf functions.
7146 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
7148 * arm-tdep.c (arm_frame_chain_valid): Make static.
7149 (arm_push_arguments): Likewise.
7150 (arm_gdbarch_init): New function.
7151 (_initialize_arm_tdep): Call it.
7152 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
7153 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
7154 (FRAME_CHAIN_VALID): Delete.
7155 (arm_frame_chain_valid): Delete declaration.
7156 (PUSH_ARGUMENTS): Delete.
7157 (arm_push_arguments): Delete declaration.
7158 (CALL_DUMMY_P): Delete.
7160 2002-02-08 Andrew Cagney <ac131313@redhat.com>
7161 Corinna Vinschen <vinschen@redhat.com>
7163 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
7164 on builtin float types.
7166 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
7168 * utils.c: Include <curses.h> before "bfd.h".
7169 * tui/tui-hooks.c: Likewise.
7170 * tui/tui.c: Likewise.
7171 * tui/tuiCommand.c: Likewise.
7172 * tui/tuiData.c: Likewise.
7173 * tui/tuiDataWin.c: Likewise.
7174 * tui/tuiDisassem.c: Likewise.
7175 * tui/tuiGeneralWin.c: Likewise.
7176 * tui/tuiIO.c: Likewise.
7177 * tui/tuiLayout.c: Likewise.
7178 * tui/tuiRegs.c: Likewise.
7179 * tui/tuiSource.c: Likewise.
7180 * tui/tuiSourceWin.c: Likewise.
7181 * tui/tuiStack.c: Likewise.
7182 * tui/tuiWin.c: Likewise.
7184 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
7186 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
7187 to include space for pseudoregs as well. Update loops accordingly.
7188 (sh_fp_frame_init_saved_regs): Ditto.
7189 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
7191 2002-02-07 Andrew Cagney <ac131313@redhat.com>
7193 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
7194 Add Richard Earnshaw to Arm maintainers.
7196 2002-02-07 Andrew Cagney <ac131313@redhat.com>
7198 * defs.h (warning_begin): Delete declaration.
7200 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
7203 2002-02-07 Michael Snyder <msnyder@redhat.com>
7205 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
7206 Logic bug, remove misplaced else.
7208 2002-02-07 Klee Dienes <klee@apple.com>
7210 * fork-inferior.c (fork_inferior): Add '!' to the list of
7211 characters that need to be quoted when building a string for the
7212 shell. Quote '!' specifically with a backslash, since CSH chokes
7213 when trying to evaluate "str!str".
7215 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
7217 * rdi-share/host.h: Only provide a typedef for bool if it is not
7220 2002-02-04 Michael Snyder <msnyder@redhat.com>
7222 * breakpoint.h (enum bptype): Add new overlay event bp type.
7223 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
7225 * breakpoint.c (create_internal_breakpoint): New function.
7226 (internal_breakpoint_number): Moved into create_internal_breakpoint.
7227 (create_longjmp_breakpoint): Use create_internal_breakpoint.
7228 (create_thread_event_breakpoint): Ditto.
7229 (create_solib_event_breakpoint): Ditto.
7230 (create_overlay_event_breakpoint): New function.
7231 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
7232 (update_breakpoints_after_exec): Delete and re-initialize
7233 overlay event breakpoints after an exec. Add FIXME comment
7234 about longjmp breakpoint.
7235 (print_it_typical): Ignore overlay event breakpoints.
7236 (print_one_breakpoint): Ditto.
7238 (bpstat_what): Do not stop for overlay event breakpoints.
7239 (delete_breakpoint): Don't delete overlay event breakpoints.
7240 (breakpoint_re_set_one): Delete the overlay event breakpoint.
7241 (breakpoint_re_set): Re-create overlay event breakpoint.
7243 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
7244 (overlay_manual_command): Disable overlay breakpoints.
7245 (overlay_off_command): Disable overlay breakpoints.
7247 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7249 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
7250 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
7251 to here from config/tm-arm.h.
7252 (coff_sym_is_thumb): Make static.
7253 (arm_elf_make_msymbol_special): New function.
7254 (arm_coff_make_msymbol_special): New function.
7255 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
7256 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
7257 (coff_sym_is_thumb): Delete declaration.
7258 (arm_elf_make_msymbol_special): Declare.
7259 (arm_coff_make_msymbol_special): Declare.
7260 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
7261 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
7263 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7265 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
7267 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7269 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
7270 * gdbarch.c gdbarch.h: Regenerate.
7271 * arch-utils.c (default_print_float_info): New function.
7272 * arch-utils.h (default_print_float_info): Prototype it.
7273 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
7274 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
7275 (PRINT_FLOAT_INFO): Document it.
7277 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
7278 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
7279 (PRINT_FLOAT_INFO): Define.
7281 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
7283 * win32-nat.c (_initialize_check_for_gdb_ini):
7284 Add typecast to sprintf argument to suppress a warning.
7286 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
7288 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7289 to allow easier handling of pass state.
7290 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
7291 that gives exception name and address.
7292 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
7293 and set last_sig value to ourstatus->value.sig. Some missing
7295 (child_continue): Correctly report continue_status.
7296 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7297 TARGET_SIGNAL_0 (new default value).
7298 (child_resume): consider sig argument passed to decide if
7299 the exception should be passed to debuggee or not.
7301 2002-02-05 Michael Snyder <msnyder@redhat.com>
7303 * regcache.c (fetch_register): Call target_fetch_register
7304 only if we don't call FETCH_PSEUDO_REGISTER.
7305 (store_register): Call target_store_register only if we
7306 don't call STORE_PSEUDO_REGISTER.
7308 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
7310 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
7311 ELF_MAKE_MSYMBOL_SPECIAL.
7312 * gdbarch.c, gdbarch.h: Regenerate.
7313 * arch-utils.c (default_make_msymbol_special): New function.
7314 * arch-utils.h (default_make_msymbol_special): Export.
7315 * elfread.c (elf_symtab_read): Compile use of
7316 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
7318 * coffread.c (coff_symtab_read): Ditto, for
7319 COFF_MAKE_MSYMBOL_SPECIAL.
7321 2002-02-05 Jim Blandy <jimb@redhat.com>
7323 * solib-svr4.c (svr4_truncate_ptr): New function.
7324 (svr4_relocate_section_addresses): Do the address arithmetic with
7325 the appropriate truncation for target addresses, even when
7326 CORE_ADDR is larger than a target address.
7328 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7330 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
7333 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7335 * gdbserver/linux-low.c (kill_inferior): Remove commented out
7338 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7340 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
7342 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7344 * gdbserver/linux-low.c: Remove unused include files.
7346 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7348 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
7349 (read_inferior_memory): Use it.
7350 (write_inferior_memory): Likewise.
7352 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7354 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
7355 grubbing through sys_errlist.
7357 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7359 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
7361 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7362 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
7364 2002-02-04 Andrew Cagney <ac131313@redhat.com>
7366 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
7367 (do_sfunc, set_cmd_sfunc): New functions.
7369 * command.h (struct cmd_list_element): Add field func.
7370 * cli/cli-decode.h (struct cmd_list_element): Ditto.
7371 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
7372 * cli/cli-decode.h: Ditto.
7374 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
7375 (help_all, help_cmd_list): Ditto.
7376 (find_cmd, complete_on_cmdlist): Ditto.
7377 * top.c (execute_command): Ditto.
7379 * cli/cli-setshow.c (do_setshow_command): Call func instead of
7382 * infcmd.c (notice_args_read): Fix function signature.
7384 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
7385 * cli/cli-decode.c (add_set_cmd): Ditto.
7386 * utils.c (initialize_utils): Ditto.
7387 * maint.c (_initialize_maint_cmds): Ditto.
7388 * infrun.c (_initialize_infrun): Ditto.
7389 * demangle.c (_initialize_demangler): Ditto.
7390 * remote.c (add_packet_config_cmd): Ditto.
7391 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7392 * cris-tdep.c (_initialize_cris_tdep): Ditto.
7393 * proc-api.c (_initialize_proc_api): Ditto.
7394 * kod.c (_initialize_kod): Ditto.
7395 * valprint.c (_initialize_valprint): Ditto.
7396 * top.c (init_main): Ditto.
7397 * infcmd.c (_initialize_infcmd): Ditto.
7398 * corefile.c (_initialize_core): Ditto.
7399 * arm-tdep.c (_initialize_arm_tdep): Ditto.
7400 * arch-utils.c (initialize_current_architecture): Ditto.
7401 (_initialize_gdbarch_utils): Ditto.
7402 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
7404 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
7405 * wince.c (_initialize_inftarg): Ditto.
7406 * symfile.c (_initialize_symfile): Ditto.
7407 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7408 * language.c (_initialize_language): Ditto.
7409 * arc-tdep.c (_initialize_arc_tdep): Ditto.
7411 2002-02-04 Michael Snyder <msnyder@redhat.com>
7413 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
7415 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7417 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
7418 Add rules for building the register data files.
7420 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7422 * regformats/regdat.sh: Add braces to the definition of
7423 expedite_regs_${arch}.
7425 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7427 * regformats/regdef.h (struct reg): Add comment describing the
7428 requirements for offset and size fields.
7430 2002-02-04 Andreas Schwab <schwab@suse.de>
7432 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
7433 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
7435 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
7437 * gdbarch.sh (copyright): Update years in generated header.
7438 (SMASH_TEXT_ADDRESS): Add rule.
7439 * gdbarch.h, gdbarch.c: Re-generate.
7440 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
7441 * dbxread.c: Likewise.
7442 * dwarfread.c: Likewise.
7443 * elfread.c: Likewise.
7444 * somread.c: Likewise.
7446 * arm-tdep.c (arm_smash_text_address): New function.
7447 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
7449 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7451 Add support for hardware watchpoints on win32 native.
7452 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
7453 CONTEXT_DEBUG_REGISTERS.
7454 (dr variable): New variable. Static array containing a local copy
7456 (debug_registers_changed): New variable. Reflects when debug registers
7457 are changed and need to be written to inferior.
7458 (debug_registers_used): New variable. Reflects when any debug register
7459 was set, used when new threads are created.
7460 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
7462 (thread_rec): Set dr array if id is the thread of current_event .
7463 (child_continue, child_resume): Change the debug registers for all
7464 threads if debug_registers_changed.
7465 (child_add_thread): Change the debug registers if debug_registers_used.
7466 * config/i386/cygwin.mh: Add use of i386-nat.o file.
7467 Link nm.h to new nm-cygwin.h file.
7468 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
7469 of hardware registers.
7471 2002-02-03 Andrew Cagney <ac131313@redhat.com>
7473 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
7474 Restore behavour broken by 2002-01-20 Andrew Cagney
7475 <ac131313@redhat.com> IEEE_FLOAT removal.
7477 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7479 * c-valprint.c (c_val_print): Pass a proper valaddr to
7480 cp_print_class_method.
7481 * valops.c (search_struct_method): If there is only one method
7482 and args is NULL, return that method.
7484 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7486 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
7487 accessing tag_name directly.
7489 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7491 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
7492 of accessing tag_name directly.
7494 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7497 * gdbtypes.c (replace_type): New function.
7498 * gdbtypes.h (replace_type): Add prototype.
7499 * stabsread.c (read_type): Use replace_type.
7501 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
7503 * Makefile.in (memattr.o): Add missing dependencies rule.
7505 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7507 * breakpoint.c (break_at_finish_command): Really export.
7508 (break_at_finish_at_depth_command): Ditto.
7509 (tbreak_at_finish_command): Ditto.
7510 * hppa-tdep.c: Include completer.h.
7511 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
7512 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
7514 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7516 * utils.c (do_write): New function.
7517 (error_stream): Rewrite combining the code from error_begin and
7519 (verror): Rewrite using error_stream.
7520 (error_begin): Delete function.
7522 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7524 * utils.c (error_begin): Make static.
7525 * defs.h (error_begin): Delete declaration.
7527 * linespec.c (cplusplus_error): Replace cplusplus_hint.
7528 (decode_line_1): Use cplusplus_error instead of error_begin,
7529 cplusplus_hint and return_to_top_level.
7530 * coffread.c (coff_symfile_read): Use error instead of error_begin
7531 and return_to_top_level.
7532 * infrun.c (default_skip_permanent_breakpoint): Ditto.
7534 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7536 * language.h (type_error, range_error): Make string parameter
7538 * language.c (warning_pre_print): Delete extern declaration.
7539 * dwarfread.c (warning_pre_print): Ditto.
7540 * language.c (type_error, range_error): Rewrite to use verror and
7541 vwarning instead of warning_begin.
7543 2002-02-01 Michael Snyder <msnyder@redhat.com>
7545 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
7546 (set_ignore_count): Move misplaced comment back where it belongs.
7548 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7550 * command.h (NO_FUNCTION): Delete macro.
7551 * cli/cli-decode.h (NO_FUNCTION): Ditto.
7552 * top.c (execute_command): Replace NO_FUNCTION with NULL.
7553 * tracepoint.c (_initialize_tracepoint): Ditto.
7554 * cli/cli-decode.c (add_set_cmd): Ditto.
7555 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7557 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
7559 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
7560 Update ``this'' pointer when calling virtual functions.
7562 2002-02-01 Michael Snyder <msnyder@redhat.com>
7564 * breakpoint.c (create_temp_exception_breakpoint): Delete.
7565 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
7567 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
7569 * regformats/reg-arm.dat: New file.
7570 * regformats/reg-i386.dat: New file.
7571 * regformats/reg-ia64.dat: New file.
7572 * regformats/reg-m68k.dat: New file.
7573 * regformats/reg-mips.dat: New file.
7574 * regformats/reg-ppc.dat: New file.
7575 * regformats/reg-sh.dat: New file.
7576 * regformats/regdef.h: New file.
7577 * regformats/regdat.sh: New file.
7579 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
7581 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
7582 (arm_frame_args_address, arm_frame_locals_address): New functions.
7583 (arm_frame_num_args): New function.
7584 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
7585 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
7586 (FRMA_NUM_ARGS): Call arm_frame_num_args.
7588 2002-01-31 Michael Snyder <msnyder@redhat.com>
7590 * breakpoint.c (break_at_finish_command): Export.
7591 (break_at_finish_at_depth_command): Export.
7592 (tbreak_at_finish_command): Export.
7593 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
7594 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
7595 "tbreak" commands, which are HPPA specific.
7597 * printcmd.c (disassemble_command): Remove an ancient
7598 artifact of an old merge.
7600 * symfile.h (enum overlay_debugging_state):
7601 Define enum constant values for overlay mode.
7602 * symfile.c (overlay_debugging): Use enums instead of literals.
7603 (overlay_is_mapped, overlay_auto_command,
7604 overlay_manual_command): Ditto.
7606 * breakpoint.c (insert_breakpoints, remove_breakpoint,
7607 breakpoint_here_p, breakpoint_inserted_here_p,
7608 breakpoint_thread_match, bpstat_stop_status,
7609 describe_other_breakpoints, check_duplicates, clear_command):
7610 Coding standard fixes.
7612 * target.c (target_xfer_memory): Add spaces, coding standard.
7613 (do_xfer_memory): Add missing line to trust-readonly
7614 code: check bfd SEC_READONLY flag for section.
7616 2002-01-31 Andrew Cagney <ac131313@redhat.com>
7618 * PROBLEMS: Fix typo, 5.1->5.1.1.
7620 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
7622 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
7623 data symbols, since we search based on textlow and texthigh.
7624 (find_pc_sect_symtab): Likewise.
7626 2002-01-30 Andrew Cagney <ac131313@redhat.com>
7628 * defs.h (vwarning): Declare.
7629 * utils.c (vwarning): New function.
7630 (warning): Call vwarning.
7631 (warning_begin): Delete function.
7633 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
7634 the warning message.
7635 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
7638 2002-01-30 Michael Snyder <msnyder@redhat.com>
7640 * NEWS: Mention "set trust-readonly-sections" command.
7641 Mention generate-core-file command.
7643 2002-01-15 Michael Snyder <msnyder@redhat.com>
7645 * target.c: New command, "set trust-readonly-sections on".
7646 (do_xfer_memory): Honor the suggestion to trust readonly sections
7647 by reading them from the object file instead of from the target.
7648 (initialize_targets): Register command "set trust-readonly-sections".
7650 2002-01-29 Andrew Cagney <ac131313@redhat.com>
7652 * parse.c (target_map_name_to_register): Simplify, search regs and
7653 pseudo-regs using a single loop.
7655 2002-01-30 Andrew Cagney <ac131313@redhat.com>
7657 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
7659 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
7661 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
7662 * config/i386/i386v42mp.mh: Add i387-nat.o .
7663 * i386v4-nat.c: Include i387-nat.h.
7664 (supply_fpregset): Use i387_supply_fsave.
7665 (fill_fpregset): Use i387_fill_fsave.
7667 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
7669 * arm-tdep.c (arm_call_dummy_words): Define.
7670 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
7671 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
7672 (CALL_DUMMY_WORDS): Define.
7673 (arm_call_dummy_words): Declare.
7674 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
7675 (arm_linux_call_dummy_words): Declare.
7677 2002-01-30 Andreas Schwab <schwab@suse.de>
7679 * m68klinux-nat.c: Fix last change to use regcache_collect
7680 instead of referencing registers[] directly.
7682 2002-01-29 Andrew Cagney <ac131313@redhat.com>
7684 * parse.c (target_map_name_to_register): Delete code wrapped in
7685 #ifdef REGISTER_NAME_ALIAS_HOOK.
7687 2002-01-28 Michael Snyder <msnyder@redhat.com>
7689 * regcache.c (legacy_read_register_gen): Need to be able to
7690 read pseudo-register as well as real register.
7691 (legacy_write_register_gen): Ditto.
7693 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7695 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7696 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
7697 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
7698 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
7699 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
7700 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
7701 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
7702 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
7703 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
7704 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7705 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
7706 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
7707 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
7708 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
7709 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
7710 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
7711 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
7712 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
7713 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
7714 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
7716 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7718 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
7719 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
7720 (initialize_current_architecture): Update target_byte_order using
7721 information from BFD.
7722 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
7723 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
7725 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7727 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
7728 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
7730 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
7731 #ifdef INVALID_FLOAT.
7732 * infcmd.c (do_registers_info): Ditto.
7733 * values.c (unpack_double): Ditto. Add comment.
7735 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
7736 already commented out.
7738 2002-01-26 Andreas Schwab <schwab@suse.de>
7740 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7741 * m68klinux-nat.c: Update ptrace interface for fetching/storing
7742 registers and add support for PTRACE_GETREGS.
7744 2002-01-24 Andrew Cagney <ac131313@redhat.com>
7746 GDB 5.1.1 released from 5.1 branch.
7747 * NEWS: Add 5.1.1 news.
7748 * README: Sync with 5.1 branch.
7750 2002-01-23 Fred Fish <fnf@redhat.com>
7752 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
7753 stabstring on initial malloc. Reallocing will copy it for us,
7756 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
7758 * Makefile.in (hpread_h): Delete.
7759 (HFILES_NO_SRCDIR): Remove hpread.h.
7760 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
7761 (hpread.o): Update dependencies.
7762 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
7764 * hp-psymtab-read.c: Remove file.
7765 * hp-symtab-read.c: Remove file.
7766 * hpread.h: Remove file.
7768 * hpread.c: Merge all contents of hp-psymtab-read.c,
7769 hp-symtab-read.c and hpread.h into this file, as it was prior to
7772 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
7773 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
7774 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
7775 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
7777 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
7779 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
7780 fill_gregset): Call gdbarch_tdep() just once, assign result to
7781 variable and use that, instead of calling the function several
7784 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7786 * configure.host: Accept sparcv9 as alias for sparc64.
7787 * configure.tgt: Likewise.
7789 2002-01-22 Kevin Buettner <kevinb@redhat.com>
7791 * solib-aix5.c (build_so_list_from_mapfile)
7792 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
7793 arguments is not reversed.
7794 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
7795 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
7797 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
7799 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
7800 modified version of obsolete sh_fetch_pseudo_register.
7801 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
7802 (sh4_register_read): New function.
7803 (sh_pseudo_register_write): New function. Renamed and modified
7804 version of obsolete sh_store_pseudo_register.
7805 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
7806 (sh4_register_write): New function.
7807 (sh_gdbarch_init): Remove setting of gdbarch function
7808 fetch_pseudo_register and store_pseudo_register. Remove setting of
7809 register_convert_to_raw, register_convert_to_virtual,
7810 register_convertible.
7811 (sh_sh4_register_convertible): Delete. No longer needed. All is
7812 taken care by architecture specific functions
7813 register_read/register_write.
7814 (sh_sh4_register_convert_to_virtual): Make static.
7815 (sh_sh4_register_convert_to_raw): Ditto.
7817 2002-01-22 Andrew Cagney <ac131313@redhat.com>
7819 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
7820 (floatformat_is_nan, floatformat_mantissa): Ditto.
7822 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
7823 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
7824 builtin_type_ieee_double_little,
7825 builtin_type_ieee_double_littlebyte_bigword,
7826 builtin_type_m68881_ext, builtin_type_i960_ext,
7827 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
7828 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
7829 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
7830 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
7832 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
7834 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
7835 parameter. Set frameless flag if it exists and depended of
7836 whether the scanned function is frameless or not.
7837 (xstormy16_skip_prologue): If function is frameless, return
7838 result of xstormy16_scan_prologue().
7839 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
7842 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
7844 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
7845 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
7846 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
7847 sh_sh4_register_byte, sh_sh4_register_raw_size,
7848 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
7849 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
7850 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
7851 sh_store_pseudo_register, sh_do_pseudo_register): Call
7852 gdbarch_tdep() just once, assign result to variable and use that,
7853 instead of calling the function several times.
7855 2002-01-20 Mark Kettenis <kettenis@gnu.org>
7857 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
7858 macros instead of LAST_FPU_CTRL_REGNUM.
7859 (store_register): Likewise.
7861 2002-01-21 Jim Blandy <jimb@redhat.com>
7863 * infcmd.c (run_command): Check that the `exec' target layer's BFD
7864 is up-to-date before running the program, not just when a program
7867 2002-01-21 Fred Fish <fnf@redhat.com>
7869 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
7870 when we have found all instructions we are looking for.
7872 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
7874 * arm-tdep.c (arm_register_name): New function.
7875 (arm_registers_names): Make static.
7876 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
7877 (arm_register_name): Declare.
7878 (REGISTER_NAME): Use it.
7880 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
7881 Kevin Buettner <kevinb@redhat.com>
7883 Convert arm targets to new FRAME interface.
7884 * arm-tdep.c (struct frame_extra_info): Remove fsr.
7885 (arm_frame_find_save_regs): Delete.
7886 (arm_frame_init_saved_regs): New.
7887 (arm_init_extra_frame_info): Alloacte saved_regs as required.
7888 Allocate extra_info as required. Convert all uses of fsr.regs
7889 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
7891 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
7892 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
7893 (check_prologue_cache, save_prologue_cache): Likewise.
7894 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
7895 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
7896 (FRAME_FIND_SAVED_REGS): Delete.
7897 (arm_frame_find_saved_regs): Delete prototype.
7898 (arm_frame_init_saved_regs): New prototype.
7899 (FRAME_INIT_SAVED_REGS): Define.
7901 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7903 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
7905 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7907 From Jeff Law <law@redhat.com>:
7908 * infttrace.c: Include <sys/pstat.h>.
7909 (child_pid_to_exec_file): Revamp. Use pstat call to get the
7910 exec file if the ttrace equivalent fails.
7912 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7914 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
7915 (closeLogFile): Ditto.
7917 2002-01-20 Michael Chastain <mec@shout.net>
7919 * top.c (print_gdb_version): Bump copyright year to 2002.
7921 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7923 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
7924 Zannoni and Eli Zaretskii.
7926 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7928 * buildsym.c: Update copyright years.
7929 * c-typeprint.c: Likewise.
7930 * dwarf2read.c: Likewise.
7931 * f-typeprint.c: Likewise.
7932 * gdbtypes.c: Likewise.
7933 * gdbtypes.h: Likewise.
7934 * hp-symtab-read.c: Likewise.
7935 * hpread.c: Likewise.
7936 * mdebugread.c: Likewise.
7937 * p-typeprint.c: Likewise.
7939 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7941 * remote-sim.c (gdbsim_open): Simplify code testing the macro
7942 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
7943 byte-order selectable.
7944 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
7945 * arch-utils.c: Ditto.
7946 (set_endian): Ditto.
7947 (set_endian_from_file): Ditto.
7948 * gdbserver/low-sim.c (create_inferior): Ditto.
7949 * gdbarch.sh: Ditto.
7950 * gdbarch.h: Re-generate.
7951 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7952 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
7953 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
7954 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7955 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7956 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7957 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
7958 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
7960 * config/mips/tm-wince.h: Remove #undef of macro
7961 TARGET_BYTE_ORDER_SELECTABLE.
7962 * config/sh/tm-wince.h: Ditto.
7964 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7966 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
7967 member function fields. Add accessor macro
7968 TYPE_FN_FIELD_ARTIFICIAL.
7969 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
7970 * c-typeprint.c (c_type_print_base): Skip artificial member
7973 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7975 * f-typeprint.c: Delete unused function f_type_print_args.
7976 * p-typeprint.c: Delete unused function pascal_type_print_args.
7978 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7980 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
7981 comment. Add ``artificial'' to ``union field_location''.
7983 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
7985 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
7986 * mdebugread.c (parse_symbol): Likewise.
7987 * stabsread.c (define_symbol): Likewise.
7988 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
7989 initializing TYPE_FIELD_BITPOS to n (obsolete).
7990 (hpread_doc_function_type): Likewise.
7991 * hpread.c (hpread_function_type): Likewise.
7993 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7995 * configure.in (host_makefile_frag): Only require a host makefile
7996 fragment when a native build.
7997 * configure: Re-generate.
7999 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8001 * doublest.h (floatformat_from_type): Declare.
8002 * doublest.c (floatformat_from_type): New function.
8003 (convert_typed_floating): Use.
8005 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
8006 call to function floatformat_from_type.
8008 * gdbarch.sh (IEEE_FLOAT): Delete.
8009 * gdbarch.h, gdbarch.c: Re-generate.
8010 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
8011 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
8012 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
8013 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
8014 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
8015 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
8016 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
8017 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
8018 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
8019 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
8020 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
8021 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
8023 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
8024 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8025 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8026 * sh-tdep.c (sh_gdbarch_init): Ditto.
8027 * mips-tdep.c (mips_gdbarch_init): Ditto.
8028 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8029 * cris-tdep.c (cris_gdbarch_init): Ditto.
8031 2002-01-20 Jiri Smid <smid@suse.cz>
8033 * configure.host, configure.tgt: Support x86-64.
8034 * NEWS: Note new target x86-64.
8036 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
8037 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
8038 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
8039 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
8040 x86-64-linux-nat.o): Fix dependencies.
8042 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8044 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
8045 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
8046 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
8047 * config/sparc/xm-sun4os4.h: Delete file.
8048 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
8050 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8052 * config/sparc/sparclynx.mh (XM_FILE): Delete.
8053 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
8054 * config/m68k/m68klynx.mh (XM_FILE): Delete.
8055 * config/i386/i386lynx.mh (XM_FILE): Delete.
8056 * config/rs6000/xm-rs6000ly.h: Delete file.
8057 * config/sparc/xm-sparclynx.h: Delete file.
8058 * config/m68k/xm-m68klynx.h: Delete file.
8059 * config/i386/xm-i386lynx.h: Delete file.
8060 * config/xm-lynx.h: Delete file.
8061 * config/djgpp/fnchange.lst: Update.
8063 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8065 * alpha-tdep.c (alpha_register_byte): New function.
8066 (alpha_register_raw_size): Ditto.
8067 (alpha_register_virtual_size): Ditto.
8068 (alpha_skip_prologue_internal): Renamed from
8069 alpha_skip_prologue.
8070 (alpha_skip_prologue): New version that calls
8071 alpha_skip_prologue_internal.
8072 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
8073 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
8074 second argument from alpha_skip_prologue.
8075 (REGISTER_BYTE): Use alpha_register_byte.
8076 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
8077 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
8078 (FRAMELESS_FUNCTION_INVOCATION): Use
8079 generic_frameless_function_invocation_not.
8080 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
8081 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
8083 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8085 * config/mips/xm-news-mips.h: Delete file.
8086 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
8088 * config/m88k/xm-m88k.h: Delete file.
8089 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
8090 * config/m88k/xm-delta88v4.h: Ditto.
8091 * config/m88k/xm-delta88.h: Ditto.
8093 * config/alpha/xm-fbsd.h: Delete file.
8094 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
8096 * config/sparc/xm-sparc.h: Delete file.
8097 * Makefile.in (xm-sun4os4.h): Delete dependency.
8098 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
8099 * config/sparc/xm-sun4os4.h: Ditto.
8100 * config/sparc/xm-linux.h: Ditto.
8102 * config/i386/xm-windows.h: Delete file.
8104 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8106 * utils.c: Include <sys/param.h> for MAXPATHLEN.
8107 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
8109 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8111 * alpha-tdep.c (alpha_call_dummy_words): New.
8112 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
8113 (CALL_DUMMY_P): Define.
8114 (CALL_DUMMY_WORDS): Define.
8115 (SIZEOF_CALL_DUMMY_WORDS): Define.
8117 2002-01-19 Per Bothner <per@bothner.com>
8119 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
8120 isn't NULL, which can happen with some gcj-3.x-produced code.
8122 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8124 * alpha-tdep.c (alpha_register_virtual_type): New function.
8125 (alpha_init_frame_pc_first): Ditto.
8126 (alpha_fix_call_dummy): Ditto.
8127 (alpha_store_struct_return): Ditto.
8128 (alpha_extract_struct_value_address): Ditto.
8129 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
8130 alpha_register_virtual_type.
8131 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
8132 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
8133 alpha_extract_struct_value_address.
8134 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
8135 (INIT_FRAME_PC): Use init_frame_pc_noop.
8136 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
8138 2002-01-19 Mark Kettenis <kettenis@gnu.org>
8140 * i386gnu-nat.c: Include "i386-tdep.h".
8141 (fetch_fpregs): Simplify code dealing with uninitialized floating
8142 point states such that it doesn't require FP7_REGNUM.
8144 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8146 * alpha-tdep.c (frame_extra_info): New.
8147 (alpha_find_saved_regs): Make static. Use
8149 (alpha_frame_init_saved_regs): New function.
8150 (alpha_frame_saved_pc): Use frame->extra_info.
8151 (temp_saved_regs): Don't declare as struct frame_saved_regs.
8152 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
8153 (init_extra_frame_info): Rename to...
8154 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
8155 (alpha_print_extra_frame_info): New function.
8156 (alpha_frame_locals_address): Ditto.
8157 (alpha_frame_args_address): Ditto.
8158 (alpha_pop_frame): Use frame->extra_info.
8159 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
8160 alpha_frame_args_address.
8161 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
8162 (alpha_find_saved_regs): Remove prototype.
8163 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
8164 (EXTRA_FRAME_INFO): Remove.
8165 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
8166 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
8168 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8170 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
8171 (alpha_cannot_fetch_register): Ditto.
8172 (alpha_cannot_store_register): Ditto.
8173 (alpha_register_convertible): Ditto.
8174 (alpha_use_struct_convention): Ditto.
8175 * config/alpha/tm-alpha.h: Update copyright years.
8176 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
8177 (INNER_THAN): Use core_addr_lessthan.
8178 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
8179 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
8180 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
8181 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
8182 (FRAME_CHAIN): Remove unnecessary cast.
8184 2002-01-18 Andrew Cagney <ac131313@redhat.com>
8186 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
8189 2002-01-18 Andrew Cagney <ac131313@redhat.com>
8191 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
8192 * monitor.c, remote-array.c, remote-bug.c: Ditto.
8193 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
8194 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
8195 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
8196 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
8197 * x86-64-linux-nat.c: Ditto.
8199 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8201 * alpha-tdep.c (alpha_register_name): New function.
8202 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
8203 (REGISTER_NAME): Define.
8205 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8207 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
8209 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8211 * alpha-tdep.c: Update copyright years.
8212 (alpha_next_pc): New function.
8213 (alpha_software_single_step): Ditto.
8214 * config/alpha/tm-alpha.h: Add prototype for
8215 alpha_software_single_step.
8217 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8219 * alphabsd-nat.c: Update copyright years.
8220 (fill_gregset): Use regcache_collect.
8221 (fill_fpregset): Likewise.
8222 (fetch_inferior_registers): Only fetch integer registers
8223 if requested to do so.
8224 (store_inferior_registers): Only store integer registers
8225 if requested to do so.
8227 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8229 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
8230 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
8231 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
8232 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
8233 * config/alpha/fbsd.mh (XDEPFILES): Delete.
8234 * config/arm/linux.mh (XDEPFILES): Delete.
8235 * config/arm/nbsd.mh (XDEPFILES): Delete.
8236 * config/i386/i386dgux.mh (XDEPFILES): Delete.
8237 * config/i386/i386sol2.mh (XDEPFILES): Delete.
8238 * config/i386/i386m3.mh (XDEPFILES): Delete.
8239 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
8240 * config/i386/i386gnu.mh (XDEPFILES): Delete.
8241 * config/i386/fbsd.mh (XDEPFILES): Delete.
8242 * config/i386/i386bsd.mh (XDEPFILES): Delete.
8243 * config/i386/i386sco5.mh (XDEPFILES): Delete.
8244 * config/i386/i386v4.mh (XDEPFILES): Delete.
8245 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
8246 * config/i386/i386sco4.mh (XDEPFILES): Delete.
8247 * config/i386/i386aix.mh (XDEPFILES): Delete.
8248 * config/i386/go32.mh (XDEPFILES): Delete.
8249 * config/i386/cygwin.mh (XDEPFILES): Delete.
8250 * config/i386/i386lynx.mh (XDEPFILES): Delete.
8251 * config/i386/i386mach.mh (XDEPFILES): Delete.
8252 * config/i386/i386v32.mh (XDEPFILES): Delete.
8253 * config/i386/linux.mh (XDEPFILES): Delete.
8254 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
8255 * config/i386/ncr3000.mh (XDEPFILES): Delete.
8256 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
8257 * config/i386/i386sco.mh (XDEPFILES): Delete.
8258 * config/i386/i386v.mh (XDEPFILES): Delete.
8259 * config/i386/nbsd.mh (XDEPFILES): Delete.
8260 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
8261 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
8262 * config/i386/symmetry.mh (XDEPFILES): Delete.
8263 * config/i386/obsd.mh (XDEPFILES): Delete.
8264 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
8265 * config/ia64/linux.mh (XDEPFILES): Delete.
8266 * config/ia64/aix.mh (XDEPFILES): Delete.
8267 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
8268 * config/m68k/dpx2.mh (XDEPFILES): Delete.
8269 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
8270 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
8271 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
8272 * config/m68k/linux.mh (XDEPFILES): Delete.
8273 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
8274 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
8275 * config/m68k/nbsd.mh (XDEPFILES): Delete.
8276 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
8277 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
8278 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
8279 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
8280 * config/m88k/delta88.mh (XDEPFILES): Delete.
8281 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
8282 * config/m88k/m88k.mh (XDEPFILES): Delete.
8283 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
8284 * config/mips/linux.mh (XDEPFILES): Delete.
8285 * config/mips/irix6.mh (XDEPFILES): Delete.
8286 * config/mips/irix5.mh (XDEPFILES): Delete.
8287 * config/mips/irix4.mh (XDEPFILES): Delete.
8288 * config/mips/irix3.mh (XDEPFILES): Delete.
8289 * config/mips/decstation.mh (XDEPFILES): Delete.
8290 * config/mips/mipsm3.mh (XDEPFILES): Delete.
8291 (NATDEPFILES): Move core-aout.o to here.
8292 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
8293 * config/pa/hpux1020.mh (XDEPFILES): Delete.
8294 * config/pa/hppabsd.mh (XDEPFILES): Delete.
8295 * config/pa/hppahpux.mh (XDEPFILES): Delete.
8296 * config/pa/hpux11w.mh (XDEPFILES): Delete.
8297 * config/pa/hppaosf.mh (XDEPFILES): Delete.
8298 * config/pa/hpux11.mh (XDEPFILES): Delete.
8299 * config/powerpc/aix.mh (XDEPFILES): Delete.
8300 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
8301 * config/powerpc/linux.mh (XDEPFILES): Delete.
8302 * config/romp/rtbsd.mh: Rename XDEPFILES.
8303 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
8304 * config/rs6000/aix4.mh (XDEPFILES): Delete.
8305 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
8306 * config/s390/s390.mh (XDEPFILES): Delete.
8307 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
8308 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
8309 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
8310 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
8311 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
8312 * config/sparc/nbsd.mh (XDEPFILES): Delete.
8313 * config/sparc/linux.mh (XDEPFILES): Delete.
8314 * config/vax/vaxult.mh (XDEPFILES): Delete.
8315 * config/vax/vaxult2.mh (XDEPFILES): Delete.
8316 * Makefile.in (DEPFILES): Remove XDEPFILES.
8318 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8320 * utils.c (internal_verror): Fix comments, default is yes not no.
8321 Update queries to match. Default to quit and dump core.
8323 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8325 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
8327 * defs.h, event-top.c, gdbcmd.h: Ditto.
8328 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
8329 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
8330 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
8331 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
8332 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
8333 * mi/mi-main.c:Ditto.
8335 * stack.c, symfile.c: Update copyright.
8337 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8339 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
8340 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
8341 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
8342 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
8344 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8346 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
8347 * gdbserver/low-lynx.c (myattach): Likewise.
8348 * gdbserver/low-nbsd.c (myattach): Likewise.
8349 * gdbserver/low-sim.c (myattach): Likewise.
8350 * gdbserver/low-sparc.c (myattach): Likewise.
8351 * gdbserver/low-sun3.c (myattach): Likewise.
8353 * gdbserver/low-linux.c (myattach): New function.
8355 * gdbserver/server.c (attach_inferior): New function.
8356 (main): Handle "--attach".
8358 2002-01-16 Andrew Cagney <ac131313@redhat.com>
8360 * MAINTAINERS (language support): Daniel Jacobwitz is C++
8363 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
8365 * c-typeprint.c (is_type_conversion_operator): Add additional
8366 check for non-conversion operators.
8368 2002-01-15 Michael Snyder <msnyder@redhat.com>
8370 * linux-proc.c: Add "info proc" command, a la procfs.c.
8371 (read_mapping): New function, abstract and re-use code.
8372 (linux_find_memory_regions): Use new func read_mapping.
8373 (linux_info_proc_cmd): New function, implement "info proc".
8374 (_initialize_linux_proc): Add new command "info proc".
8376 2002-01-15 Michael Snyder <msnyder@redhat.com>
8378 * symfile.c (generic_load): Use bfd_map_over_sections method
8379 instead of manipulating bfd structure members directly.
8380 (add_section_size_callback): New function, bfd sections callback
8381 used by generic_load.
8382 (load_sections_callback): New function, bfd sections callback
8383 used by generic_load.
8385 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
8387 [Based on work by Jim Blandy]
8388 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
8389 (builtin_type_vec128): Export.
8390 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
8392 (builtin_type_vec128): New builtin type for 128 bit vector
8394 (build_gdbtypes): Initialize builtin_type_v16qi and
8395 builtin_type_v8hi. Create the vec128 register builtin type
8397 (build_builtin_type_vec128): New function.
8398 (_initialize_gdbtypes): Register builtin_type_v16qi and
8399 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
8400 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
8401 AltiVec register to new builtin type.
8403 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
8405 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
8408 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8410 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
8411 CLEAN_UP_REGISTER_VALUE.
8412 * regcache.c (supply_register): Update only call.
8414 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8416 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8417 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8418 a29k-*-vxworks* targets as obsolete.
8420 2002-01-14 Michael Snyder <msnyder@redhat.com>
8422 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
8423 until we can resolve portability issues.
8424 * gregset.h: Remove references to fpxregs.
8425 * gcore.c (gcore_command): Initialize note_sec to NULL.
8427 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8429 * signals.c (target_signal_to_name): Rewrite. Only use
8430 signals[].name when in bounds and non-NULL.
8432 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8434 From Petr Ledvina <ledvinap@kae.zcu.cz>:
8435 * signals.c (target_signal_to_name): Verify that SIG is within the
8436 bounds of the signals array.
8438 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8440 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
8442 2002-01-13 Keith Seitz <keiths@redhat.com>
8444 * stack.c (print_frame_info_base): Print the frame's pc
8445 only if when print_frame_info_listing_hook is not defined.
8447 2002-01-13 Keith Seitz <keiths@redhat.com>
8449 * varobj.c (varobj_set_value): Make sure that there were no
8450 errors evaluating the object before attempting to set its
8452 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
8453 so this offset adjustment is no longer necessary.
8454 (create_child): Don't set the error flag if the child is
8456 (value_of_child): If value_fetch_lazy fails, return NULL
8457 so that callers will be notified that an error occurred.
8458 (c_value_of_variable): Delay check of variable's validity
8459 until later. We actually want all structs and unions to have
8461 Do not return "???" for variables which could not be evaluated.
8462 This error condition must be returned to the caller so that it
8463 can get the error condition from gdb.
8464 (cplus_name_of_child): Adjust index for vptr before figuring
8465 out the name of the child.
8466 (cplus_value_of_child): If a child's (real) parent is not valid,
8467 don't even bother trying to give a value for it. Just return
8468 an error. Change all instances in this function.
8469 (cplus_type_of_child): If our parent is one of the "fake"
8470 parents, we need to get at the type of the real parent, and
8471 derive the child's true type using this information.
8473 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8475 From 2002-01-09 John Marshall <johnm@falch.net>:
8476 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
8477 sources.redhat.com, and tweak some related URLs which had
8478 suffered from linkrot.
8480 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8483 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
8484 structures passed in registers.
8486 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
8488 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
8489 white space which prevented compilation. Reported by DSK
8490 <dsk@student.unsw.edu.au>.
8492 2002-01-11 Michael Snyder <msnyder@redhat.com>
8494 * symfile.c (build_section_addr_info_from_section_tab):
8495 Use bfd access method instead of manipulating bfd directly.
8496 (syms_from_objfile): Ditto.
8497 (simple_overlay_update_1): Ditto.
8498 (simple_overlay_update): Ditto.
8499 (generic_load): Ditto.
8500 (overlay_unmapped_address): FIXME comment, bfd access methods.
8501 (sections_overlap): FIXME comment, bfd access methods.
8502 (pc_in_mapped_range): FIXME comment, bfd access methods.
8503 (pc_in_unmapped_range): FIXME comment, bfd access methods.
8504 (section_is_mapped): FIXME comment, bfd access methods.
8505 (section_is_overlay): FIXME comment, bfd access methods.
8507 * symfile.c (generic_load): Whitespace and long line cleanups.
8508 Remove duplicate variable, change several local variables to
8509 more appropriate data types.
8510 (print_transfer_performance): Use %lu instead of %ld for ulongs.
8512 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8515 * language.c (longest_local_hex_string_custom): Use phex_nz to
8516 convert NUM to a hex string.
8518 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
8520 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
8522 Update Copyright year.
8524 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8526 * language.c (longest_raw_hex_string): Delete unused function.
8528 2002-01-11 Petr Sorfa <petrs@caldera.com>
8530 * MAINTAINERS (write-after-approval): Add myself.
8531 * dwarf2read.c (read_tag_string_type): Handling of
8533 (read_tag_string_type): FORTRAN fix to prevent propagation of
8535 (set_cu_language): Handling of DW_LANG_Fortran95
8537 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
8539 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
8540 GETPID(inferior_ptid).
8541 (store_inferior_registers): Likewise.
8543 2002-01-10 Jason Merrill <jason@redhat.com>
8545 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
8548 2002-01-10 Andrew Cagney <ac131313@redhat.com>
8550 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
8551 and bfd/elf32-sh-nbsd.c.
8553 2002-01-10 Michael Snyder <msnyder@redhat.com>
8555 * NEWS: Mention --pid and corefile/proc-id behavior change.
8557 * Makefile.in: Add rules for gcore.o and linux-proc.o.
8558 * gcore.c: Include cli/cli-decode.h instead of command.h.
8560 * main.c (captured_main): Add new command line option "--pid".
8561 If the second command line argument (following the symbol-file)
8562 begins with a digit, try to attach to it before trying to open
8564 (print_gdb_help): Document the "--pid" argument.
8566 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
8568 * completer.c (command_completer): New function.
8570 * completer.h <command_completer>: Add prototype.
8572 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
8573 completer for the "help" command.
8575 2002-01-09 Jason Merrill <jason@redhat.com>
8577 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
8579 2002-01-09 Michael Snyder <msnyder@redhat.com>
8581 * i386-linux-nat.c (fill_fpxregset): Make global.
8582 (store_fpxregset): Ditto.
8584 * gregset.h (gdb_fpxregset_t): Define.
8585 (supply_fpxregset): Prototype.
8586 (fill_fpxregset): Prototype.
8588 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
8590 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
8592 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
8593 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
8594 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
8596 2002-01-09 Andrew Cagney <ac131313@redhat.com>
8598 * MAINTAINERS: Update target maintainer rules so that any
8599 Maintainer can approve a tested patch for a maintenance-only
8602 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
8604 * MAINTAINERS (write-after-approval): Add myself.
8606 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
8609 2002-01-08 Michael Snyder <msnyder@redhat.com>
8611 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
8612 real name of the executable, rather than the /proc name.
8614 2002-01-03 Michael Snyder <msnyder@redhat.com>
8616 Implement a "generate-core-file" command in gdb, save target state.
8617 * gcore.c: New file. Implement new command 'generate-core-file'.
8618 Save a corefile image of the current state of the inferior.
8619 * linux-proc.c: Add linux-specific code for saving corefiles.
8620 * target.h (struct target_ops): Add new target vectors for saving
8621 corefiles; to_find_memory_regions and to_make_corefile_notes.
8622 (target_find_memory_regions): New macro.
8623 (target_make_corefile_notes): New macro.
8624 * target.c (update_current_target): Inherit new target methods.
8625 (dummy_find_memory_regions): New place-holder method.
8626 (dummy_make_corefile_notes): New place-holder method.
8627 (init_dummy_target): Initialize new dummy target vectors.
8628 * exec.c (exec_set_find_memory_regions): New function.
8629 Allow the exec_ops vector for memory regions to be taken over.
8630 (exec_make_note_section): New function, target vector method.
8631 * defs.h (exec_set_find_memory_regions): Export prototype.
8632 * procfs.c (proc_find_memory_regions): New function, corefile method.
8633 (procfs_make_note_section): New function, corefile method.
8634 (init_procfs_ops): Set new target vector pointers.
8635 (find_memory_regions_callback): New function.
8636 (procfs_do_thread_registers): New function.
8637 (procfs_corefile_thread_callback): New function.
8638 * sol-thread.c (sol_find_memory_regions): New function.
8639 (sol_make_note_section): New function.
8640 (init_sol_thread_ops): Initialize new target vectors.
8641 * inftarg.c (inftarg_set_find_memory_regions): New function.
8642 Allow to_find_memory_regions vector to be taken over.
8643 (inftarg_set_make_corefile_notes): New function.
8644 Allow to_make_corefile_notes vector to be taken over.
8645 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
8646 interface layer if not target_has_execution (may be a corefile).
8647 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
8648 * config/sparc/sun4sol2.mh: Ditto.
8649 * config/alpha/alpha-linux.mh: Ditto.
8650 * config/arm/linux.mh: Ditto.
8651 * config/i386/x86-64linux.mh: Ditto.
8652 * config/ia64/linux.mh: Ditto.
8653 * config/m68k/linux.mh: Ditto.
8654 * config/mips/linux.mh: Ditto.
8655 * config/powerpc/linux.mh: Ditto.
8656 * config/sparc/linux.mh: Ditto.
8658 2002-01-07 Michael Snyder <msnyder@redhat.com>
8660 * arm-linux-nat.c: Remove references to regcache.c internal data
8661 (registers[] and register_valid[]).
8663 2002-01-07 Michael Snyder <msnyder@redhat.com>
8665 * linux-proc.c: New file. Implement child_pid_to_exec_file,
8666 so that attaching to a pid will automatically read the process's
8667 symbol file and shlibs.
8668 * Makefile.in: Add rule for linux-proc.o.
8669 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
8670 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
8671 * config/arm/linux.mh: Ditto.
8672 * config/i386/linux.mh: Ditto.
8673 * config/i386/x86-64linux.mh: Ditto.
8674 * config/ia64/linux.mh: Ditto.
8675 * config/m68k/linux.mh: Ditto.
8676 * config/mips/linux.mh: Ditto.
8677 * config/powerpc/linux.mh: Ditto.
8678 * config/sparc/linux.mh: Ditto.
8680 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
8682 * win32-nat.c: Add i386-tdep.h dependency.
8684 2002-01-07 Michael Snyder <msnyder@redhat.com>
8686 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
8687 instead of bfd_get_arch_size. Don't bail out just because
8688 there's no exec_bfd.
8690 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
8691 * p-valprint.c (pascal_object_print_value): Ditto.
8692 * somread.c (som_symtab_read): Ditto.
8693 * symfile.c (simple_free_overlay_region_table): Ditto.
8694 * valops.c (value_assign): Ditto.
8696 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
8697 use tilde_expand and strerror for opening save-tracepoints file.
8699 * thread-db.c (thread_db_new_objfile): Indendation fix.
8701 * infptrace.c (GDB_MAX_ALLOCA): New define.
8702 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
8703 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
8704 can be overridden with whatever value is appropriate to the host).
8705 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
8706 alloca to allocate potentially large buffer.
8707 * rs6000-nat.c (child_xfer_memory): Ditto.
8708 * symm-nat.c (child_xfer_memory): Ditto.
8709 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
8711 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
8713 From Nick Clifton <nickc@redhat.com>
8714 * d10v-tdep.c: Set STACK_START to 0x200bffe.
8716 2002-01-07 Michael Snyder <msnyder@redhat.com>
8718 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8719 Don't use exec_bfd if it's NULL.
8721 2002-01-06 Mark Kettenis <kettenis@gnu.org>
8723 * valops.c (value_arg_coerce): Fix formatting.
8725 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8727 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
8730 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8732 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
8733 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
8734 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
8735 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
8736 z8k-coff have not been multi-arched. Update z8k-coff build
8739 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8741 * MAINTAINERS: Mark a29k target as obsolete.
8742 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
8743 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
8745 * NEWS: Note that a29k targets are obsolete.
8746 * a29k-tdep.c: Mark as obsolete.
8747 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8748 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8749 a29k-*-vxworks* targets as obsolete.
8750 * remote-adapt.c: Obsolete.
8751 * remote-eb.c: Obsolete.
8752 * remote-mm.c: Obsolete.
8753 * remote-udi.c: Obsolete.
8754 * config/a29k/a29k-udi.mt: Obsolete.
8755 * config/a29k/a29k.mt: Obsolete.
8756 * config/a29k/tm-a29k.h: Obsolete.
8757 * config/a29k/tm-vx29k.h: Obsolete.
8758 * config/a29k/vx29k.mt: Obsolete.
8760 2002-01-05 Andrew Cagney <ac131313@redhat.com>
8762 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
8763 with BFD_ENDIAN_BIG.
8765 2002-01-05 Andrew Cagney <ac131313@redhat.com>
8767 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
8768 * configure, config.in: Re-generate.
8769 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
8770 * defs.h: Do not include <endian.h>.
8772 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
8774 * acconfig.h (HAVE_PT_GETXMMREGS): New.
8775 * config.in: Regenerate.
8776 * configure.in: Update copyright years.
8777 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
8778 * configure: Regenerate.
8779 * i386bsd-nat.c: Update copyright years.
8780 (fill_gregset): Use regcache_collect.
8781 (fetch_inferior_registers): Only fetch integer registers
8782 if requested to do so. Add support for XMM registers
8783 using PT_GETXMMREGS.
8784 (store_inferior_registers): Only store integer registers
8785 if requested to do so. Add support for XMM registers
8786 using PT_SETXMMREGS.
8787 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
8788 (store_inferior_registers): Remove.
8789 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
8790 (fetch_elfcore_registers): New function.
8791 (i386nbsd_elfcore_fns): New.
8792 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
8793 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
8795 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8796 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
8797 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
8798 * config/i386/tm-nbsd.h: Update copyright years.
8799 (HAVE_SSE_REGS): Define.
8800 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
8801 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
8802 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
8803 (SIGCONTEXT_PC_OFFSET): Remove.
8804 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
8806 2002-01-05 Andrew Cagney <ac131313@redhat.com>
8808 * configure.tgt: Remove powerpc-*-macos* target.
8809 * config/m68k/xm-mpw.h: Delete file.
8810 * config/xm-mpw.h: Delete file.
8811 * ser-mac.c: Delete file.
8812 * mpw-make.sed: Delete file.
8813 * mpw-config.in: Delete file.
8814 * mac-xdep.c: Delete file.
8815 * mac-gdb.r: Delete file.
8816 * mac-defs.h: Delete file.
8817 * mac-nat.c: Delete file.
8818 * config/powerpc/macos.mh: Delete file.
8819 * config/powerpc/macos.mt: Delete file.
8820 * config/powerpc/nm-macos.h: Delete file.
8821 * config/powerpc/tm-macos.h: Delete file.
8822 * source.c (openp, open_source_file): Remove obsolete code.
8823 * top.c (gdb_readline): Ditto.
8824 * utils.c (query): Ditto.
8825 * event-top.c (display_gdb_prompt): Ditto.
8826 * Makefile.in (ser-mac.o): Delete obsolete target.
8829 2002-01-04 Andrew Cagney <ac131313@redhat.com>
8831 * defs.h (BIG_ENDIAN): Delete macro definition.
8832 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
8833 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
8834 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
8835 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
8836 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
8837 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
8838 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
8839 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
8840 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
8841 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
8842 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
8843 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
8844 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8845 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8846 * gdbarch.c: Re-generate.
8848 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8850 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
8853 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8855 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
8857 2002-01-04 Andrew Cagney <ac131313@redhat.com>
8859 * value.h (value_ptr): Delete typedef.
8861 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8863 * i386nbsd-nat.c: Update copyright years.
8864 Include i386-tdep.h.
8866 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
8868 * stabsread.c: Update copyright years.
8870 From Debashis Mahata <debashis.mahata@wipro.com>:
8871 (read_struct_fields): Deal with Sun C compiler erroneous stab
8872 output for structs and unions.
8875 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8877 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
8880 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8882 * cp-abi.c: Fix whitespace.
8883 (baseclass_offset): New wrapper function.
8884 * cp-abi.h (baseclass_offset): Add prototype.
8885 (struct cp_abi_ops): Add baseclass_offset pointer.
8887 * valops.c (vb_match): Move to...
8888 * gnu-v2-abi.c (vb_match): here.
8889 * valops.c (baseclass_offset): Move to...
8890 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
8892 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
8894 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
8895 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
8896 * hpacc-abi.c (init_hpacc_ops): Likewise.
8898 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8900 * valops.c (find_overload_match): Accept obj as a
8901 reference parameter. Update it before returning.
8902 * value.h (find_overload_match): Update prototype.
8903 * eval.c (evaluate_subexp_standard): Pass object to
8904 find_overload_match by reference.
8906 2002-01-03 Andrew Cagney <ac131313@redhat.com>
8908 * valarith.c: Replace value_ptr with struct value pointer. Remove
8909 register attribute from value declarations.
8912 * scm-lang.c (scm_lookup_name): Ditto.
8914 2002-01-03 Michael Snyder <msnyder@redhat.com>
8916 Abstract the functionality of iterating over mapped memory
8917 regions into a general purpose iterator function.
8918 * procfs.c (iterate_over_mappings): New function, general purpose
8919 iterator for memory sections.
8920 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
8921 (solib_mappings_callback): New function, callback for above.
8922 (info_proc_mappings): Reimpliment using iterate_over_mappings.
8923 (info_mappings_callback): New function, callback for above.
8925 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
8927 2002-01-01 Mark Kettenis <kettenis@gnu.org>
8929 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
8930 * i386-tdep.c: Include "elf-bfd.h".
8931 (process_note_abi_tag_sections): New function.
8932 (i386_gdbarch_init): Add code to recognize various OS/ABI
8935 * maint.c (_initialize_maint_cmds): Add missing \ in
8938 For older changes see ChangeLog-2001
8944 version-control: never