1 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6 2002-07-16 Joel Brobecker <brobecker@gnat.com>
8 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
9 <sys/proc.h> when not available.
11 2002-07-16 Andrew Cagney <ac131313@redhat.com>
13 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
14 * stabsread.c: Make os9k sections of the code obsolete.
15 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
16 * config/i386/i386os9k.mt: Make file obsolete.
17 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
18 (COMMON_OBS): Remove os9kread.o
19 (SFILES): Remove os9kread.c.
20 (os9kread.o, remote-os9k.o): Make target obsolete.
21 * remote-os9k.c: Make file obsolete.
22 * os9kread.c: Make file obsolete.
25 2002-07-16 Andrew Cagney <ac131313@redhat.com>
27 * NEWS: Mention that the FR30 has been made obsolete.
28 * fr30-tdep.c: Make file obsolete.
29 * config/fr30/tm-fr30.h: Ditto.
30 * config/fr30/fr30.mt: Ditto.
31 * configure.tgt: Make fr30-*-elf obsolete.
32 * MAINTAINERS: Make fr30-elf obsolete.
34 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
36 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
37 found is not inside a section.
39 2002-07-15 Kevin Buettner <kevinb@redhat.com>
41 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
43 (pdc_realloc): Use xrealloc() instead of realloc().
45 2002-07-15 Kevin Buettner <kevinb@redhat.com>
47 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
48 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
49 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
52 2002-07-15 Kevin Buettner <kevinb@redhat.com>
54 * aix-thread.c (ptrace_check): Eliminate goto.
55 (sync_threadlists): Eliminate gotos. Also, fix array overrun
58 2002-07-15 Kevin Buettner <kevinb@redhat.com>
60 * aix-thread.c (gdbcmd.h): Include.
61 (DEBUG, DBG, DBG2, dbg): Eliminate.
62 (debug_aix_thread): New static global.
63 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
64 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
65 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
66 invocations to DBG and DBG2 macros to test against
67 ``debug_aix_thread'' and call fprintf_unfiltered().
68 (_initialize_aix_thread): Add new command "set debug aix-thread".
70 2002-07-15 Andrew Cagney <ac131313@redhat.com>
72 From Gerhard Tonn <TON@de.ibm.com>:
73 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
74 instead of supply_register.
76 2002-07-15 Andrew Cagney <ac131313@redhat.com>
78 * dwarf2cfi.c: Include "gdb_assert.h".
79 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
81 (update_context): Do not use __func__. Add missing ``break''.
82 (update_context): Do not use __func__.
84 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
86 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
87 and its setting. Set gdbarch instruction printing functions
88 directly. For non-rs6000 case use new function
89 gdb_print_insn_powerpc.
90 (gdb_print_insn_powerpc): New function.
92 2002-07-13 Andrew Cagney <ac131313@redhat.com>
94 * NEWS: Mention that the d30v has been marked obsolete.
95 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
96 * configure.tgt: Mark d30v-*-* as obsolete.
97 * d30v-tdep.c: Mark file as obsolete.
98 * config/d30v/d30v.mt: Ditto.
99 * config/d30v/tm-d30v.h: Ditto.
101 2002-07-13 Aidan Skinner <aidan@velvet.net>
103 * ada-tasks.c (add_task_entry): replace calls to
104 malloc() with xmalloc
105 * ada-tasks.c (init_task_list): replace calls to free with xfree()
107 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
108 ada_finish_decode_line_1, all_sals_for_line
109 ada_breakpoint_rewrite): replace calls to free() with xfree()
111 2002-07-12 Kevin Buettner <kevinb@redhat.com>
113 From Nicholas Duffek (with minor changes by Martin Hunt,
114 Louis Hamilton, and Kevin Buettner):
115 * aix-thread.c: New file.
117 2002-07-12 Petr Sorfa <petrs@caldera.com>
119 * dwarf2read.c (dwarf2_invalid_attrib_class): New
120 complaint for invalid attribute class or form.
121 (read_func_scope): DW_AT_frame_base
122 better handling of DW_AT_block*.
123 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
124 better handling of DW_AT_block*.
125 (read_common_block): DW_AT_location
126 better handling of DW_AT_block*.
127 (read_partial_die): DW_AT_location better handling
129 (new_symbol): DW_AT_external better handling of
130 DW_AT_block*. Proper initialization of variable
132 (attr_form_is_block): New function that returns true
133 if the attribute's form is of DW_FORM_block*.
135 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
137 * valops.c (find_method_list): Remove comment about
138 removed STATIC_MEMFUNCP argument.
139 (value_find_oload_method_list): Likewise.
141 2002-07-12 Kevin Buettner <kevinb@redhat.com>
143 From Nicholas Duffek:
144 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
145 target_new_objfile_hook.
147 2002-07-12 Kevin Buettner <kevinb@redhat.com>
149 From Nicholas Duffek:
150 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
153 2002-07-12 Andrew Cagney <cagney@redhat.com>
155 * MAINTAINERS: Mention --enable-sim-build-warnings.
156 (m68hc11-elf): Disable sim build warnings.
157 (m32r-elf): Mark as broken obsolete candidate.
158 (x86_64-linux-gnu): Mark as buildable with -Werror.
159 (arm-elf): Change -w to ``,'' which enables warnings but not
162 2002-07-12 Andrew Cagney <ac131313@redhat.com>
164 * bcache.h: Update copyright.
165 (struct bstring, struct bcache): Move definition to "bcache.c".
166 Replaced by opaque declaration.
167 (bcache_xfree): Replace free_bcache.
168 (bcache_xmalloc, bcache_memory_used): Declare.
170 * bcache.c: Update copyright.
171 (struct bstring, struct bcache): Moved to here from "bcache.h".
173 (bcache_xmalloc, bcache_memory_used): New functions.
174 (bcache_xfree): Replace function free_bcache.
176 * Makefile.in (objfiles.o): Add $(bcache_h).
177 (objfiles_h): Remove $(bcache_h).
178 (symfile.o): Add $(bcache_h).
180 * symmisc.c: Update copyright.
181 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
182 (print_objfile_statistics): Use bcache_memory_used.
184 * symfile.c: Include "bcache.h".
185 (reread_symbols): Use bcache_xfree.
186 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
187 (add_psymbol_to_list): Pass psymbol_cache by value.
188 (add_psymbol_with_dem_name_to_list): Ditto.
190 * objfiles.h: Update copyright.
191 (struct bcache): Declare opaque. Do not include "bcache.h".
192 (struct objfile): Change psymbol_cache and macro_cache to ``struct
194 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
196 * objfiles.c: Include "bcache.h". Update copyright.
197 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
199 (free_objfile): Use bcache_xfree.
201 2002-07-11 Grace Sainsbury <graces@redhat.com>
203 * monitor.c (monitor_fetch_register): Make name a constant.
204 (monitor_store_register): Same.
206 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
208 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
209 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
210 (finish_block) For non-function blocks, hash the symbol table. For
211 function blocks, mark the symbol table as unhashed.
212 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
213 (msymbol_hash_iw): Likewise.
214 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
216 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
217 (lookup_minimal_symbol): Likewise for both.
218 * symtab.h (struct block): Add `hashtable' flag. Comment the
220 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
221 (ALL_BLOCK_SYMBOLS): Update.
222 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
223 (struct symbol): Add `hash_next' pointer.
224 * symtab.c (lookup_block_symbol): Search using the hash table when
226 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
227 (search_symbols, find_addr_symbol): Likewise.
229 * dstread.c (process_dst_block): Clear hashtable bit for new block.
230 (read_dst_symtab): Likewise.
231 * jv-lang.c (get_java_class_symtab): Likewise.
232 * mdebugread.c: Include "gdb_assert.h".
233 (shrink_block): Assert that the block being modified is not hashed.
234 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
235 * symmisc.c (free_symtab_block): Walk the hash table when freeing
237 (dump_symtab): Recognize hashed blocks.
238 * printcmd.c (print_frame_args): Assert that function blocks do not
239 have hashed symbol tables.
240 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
241 (fill_in_ada_prototype, debug_print_block): Likewise.
242 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
244 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
246 * stack.c (print_frame): Use result of frame_address_in_block()
247 instead of fi->pc when evaluating symbols.
248 (backtrace_command_1): Ditto.
250 2002-07-11 Andrew Cagney <cagney@redhat.com>
252 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
255 * arm-tdep.c (arm_register_name): Make return type constant.
257 2002-07-10 Andrew Cagney <ac131313@redhat.com>
259 * win32-nat.c (has_detach_ability): Convert to strict ISO C
261 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
262 * s390-tdep.c (s390_fp_regnum): Ditto.
263 (s390_read_fp): Ditto.
264 (s390_pop_frame): Ditto.
265 (_initialize_s390_tdep): Ditto.
266 * remote.c (get_remote_state): Ditto.
267 * procfs.c (mappingflags): Ditto.
268 * memattr.c (_initialize_mem): Ditto.
269 * mcore-tdep.c (mcore_pop_frame): Ditto.
270 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
271 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
272 * language.c (set_case_str): Ditto.
273 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
274 * frv-tdep.c (new_variant): Ditto.
275 (frv_stopped_data_address): Ditto.
276 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
277 (context_alloc): Ditto.
278 (frame_state_alloc): Ditto.
279 (unwind_tmp_obstack_init): Ditto.
280 (unwind_tmp_obstack_free): Ditto.
281 (cfi_read_fp): Ditto.
282 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
283 (cris_pop_frame): Ditto.
284 * c-lang.c (scanning_macro_expansion): Ditto.
285 (finished_macro_expansion): Ditto.
286 (c_preprocess_and_parse): Ditto.
288 * gdbarch.h, gdbarch.c: Regenerate.
289 * config/mn10200/tm-mn10200.h: Adjust indentation.
290 * target.c: Adjust indentation.
291 * symtab.h: Adjust indentation.
292 * stabsread.h: Adjust indentation.
293 * remote-es.c: Adjust indentation.
294 * os9kread.c: Adjust indentation.
296 2002-07-10 Andrew Cagney <ac131313@redhat.com>
298 * wince.c (_initialize_wince): Rename _initialize_inftarg.
299 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
301 2002-07-10 Grace Sainsbury <graces@redhat.com>
303 * NEWS: Mention m68k, mcore multi-arching.
304 * MAINTAINERS: Change status of m68k, mcore to reflect
307 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
309 * valops.c (find_overload_match): Free oload_syms.
311 2002-07-09 Joel Brobecker <brobecker@gnat.com>
313 Define HAVE_SYS_PROC_H if sys/proc.h exists
314 * configure.in: Add check for sys/proc.h
315 * config.in: Regenerate.
316 * configure: Regenerate.
318 2002-07-09 Grace Sainsbury <graces@redhat.com>
320 * config/m68k/tm-m68k.h: Remove macros wrapped in
323 2002-07-09 David O'Brien <obrien@FreeBSD.org>
325 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
326 (perror_with_name, remote_close, remote_open, expect, play): Static.
328 2002-07-08 Andrew Cagney <ac131313@redhat.com>
330 * config.in, configure: Regenerate.
332 2002-07-08 Mark Kettenis <kettenis@gnu.org>
334 * dwarf2cfi.c: Include "gcore.h".
335 (execute_stack_op): Fix implementation of the
336 DW_OP_deref and DW_OP_deref_size operators by letting do their
337 lookup in the target.
339 2002-07-07 Mark Kettenis <kettenis@gnu.org>
341 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
342 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
345 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
347 Fix PR gdb/595, gdb/602
348 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
349 Don't call value_cast, just read the vtable pointer; update comments
352 2002-07-05 Grace Sainsbury <graces@redhat.com>
354 * config/mcore/tm-mcore.h: Remove file.
355 * config/mcore/mcore.mt: Remove definition of TM_FILE
356 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
358 2002-07-05 Mark Kettenis <kettenis@gnu.org>
360 * i386bsd-tdep.c: Include "gdb_string.h".
362 2002-07-04 Grace Sainsbury <graces@redhat.com>
364 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
365 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
367 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
368 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
369 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
370 (RETVAL_REGNUM): Move macros from tm-mcore.h
371 (mcore_reg_struct_has_addr): New function.
372 (mcore_gdbarch_init): Added initializations for the macros removed
375 2002-07-04 Mark Kettenis <kettenis@gnu.org>
377 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
378 traditonal string branding within the ELF header.
380 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
382 * symtab.c (remove_params): New function.
383 (make_symbol_overload_list): Use it instead of cplus_demangle.
384 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
386 2002-07-04 Mark Kettenis <kettenis@gnu.org>
388 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
390 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
392 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
393 and tdep->sigtramp_end.
394 * i386obsd-nat.c: New file.
395 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
397 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
398 Don't call get_current_frame().
400 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
402 * i386-nat.c (child_post_startup_inferior): New function
403 calling i386_cleanup_dregs if
404 I386_USE_GENERIC_WATCHPOINTS is defined.
405 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
406 conditional to acknowledge that i386-nat.c has its
407 own child_post_startup_inferior function.
409 2002-07-04 Mark Kettenis <kettenis@gnu.org>
411 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
412 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
413 instead of MAX_REGISTER_RAW_SIZE.
414 (i386_extract_return_value, i386_extract_struct_value_address):
415 Convert to use regcache.
416 (i386_gdbarch_init): Set max_register_raw_size and
417 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
418 Set extract_return_value and extract_struct_value_address instead
419 of their deprecated variants.
421 Convert i386 target to generic dummy frames.
422 * i386-tdep.c: Include "symfile.h".
423 (i386_frameless_signal_p): Consider a function to be frameless if
424 the pc points at the first instruction of the function.
425 (i386_frame_chain): Handle (generic) call dummies.
426 (i386_frame_saved_pc): Likewise.
427 (i386_frame_init_saved_regs): Remove code dealing with call
428 dummies on the stack.
429 (i386_push_dummy_frame): Removed.
430 (i386_call_dummy_words): Removed.
431 (i386_fix_call_dummy): Removed.
432 (i386_push_return_address): New function.
433 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
434 parameter, and don't call get_current_frame.
435 (i386_pop_frame): New function.
436 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
437 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
438 entry_point_address, set call_dummy_breakpoint_offset to 0, set
439 call_dummy_length to 0, set call_dummy_words to NULL, set
440 sizeof_call_dummy_words to 0, set fix_call_dummy to
441 generic_fix_call_dummy, set pc_in_call_dummy to
442 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
443 generic_push_dummy_frame, set push_return_address to
444 i386_push_return_address and set frame_chain_valid to
445 generic_file_frame_chain_valid.
447 2002-07-04 Michal Ludvig <mludvig@suse.cz>
449 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
450 byte offsets instead of an array of indexes.
451 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
453 2002-07-03 Andrew Cagney <ac131313@redhat.com>
455 * gdbarch.sh (struct regcache): Add opaque declaration.
456 (EXTRACT_RETURN_VALUE): New architecture method.
457 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
458 * gdbarch.h, gdbarch.c: Regenerate.
459 * arch-utils.c (legacy_extract_return_value): New function.
460 * arch-utils.h (legacy_extract_return_value): Declare.
461 * values.c (value_being_returned): Re-enable code handling
462 EXTRACT_STRUCT_VALUE_ADDRESS. Move
463 deprecated_grub_regcache_for_registers call to block handling
464 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
465 (EXTRACT_RETURN_VALUE): Do not define.
467 2002-07-03 Grace Sainsbury <graces@redhat.com>
469 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
470 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
471 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
472 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
473 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
474 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
475 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
476 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
477 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
478 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
479 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
480 argument so the function fits the prototype in the architecture
482 (mcore_pop_frame): Remove argument so the function fits the
483 prototype. Use get_current_frame instead of the argument.
484 (mcore_push_arguments): Change type of struct_return so the
485 function can be used in the architecture vector.
486 (mcore_store_struct_return): Add.
487 (mcore_frame_init_saved_regs): Add.
488 (mcore_gdbarch_init): Add function calls to replace the macros
489 removed from tm-mcore.h
491 2002-07-03 Andrew Cagney <ac131313@redhat.com>
493 * infcmd.c (print_return_value): Remove compatibility code calling
494 deprecated_grub_regcache_for_registers.
496 * values.c: Include "regcache.h".
497 (value_being_returned): Update. Use
498 deprecated_grub_regcache_for_registers to extract the register
500 * value.h (value_being_returned): Change ``retbuf'' parameter to a
502 * Makefile.in (values.o): Add dependency on $(regcache_h).
504 * inferior.h (run_stack_dummy): Change type of second parameter to
505 a ``struct regcache''.
506 * valops.c (hand_function_call): Change type of retbuf to ``struct
507 regcache''. Allocate using regcache_xmalloc, clean using
508 make_cleanup_regcache_xfree.
509 * infcmd.c (run_stack_dummy): Update. Use
510 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
512 * regcache.c (do_regcache_xfree): New function.
513 (make_cleanup_regcache_xfree): New function.
514 * regcache.h (make_cleanup_regcache_xfree): Declare.
516 2002-07-03 Martin M. Hunt <hunt@redhat.com>
518 * event-top.c (command_line_handler): Don't read past
521 2002-07-03 Martin M. Hunt <hunt@redhat.com>
523 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
525 (varobj_create): Store frame_id for root.
526 (varobj_gen_name): Use xasprintf.
527 (varobj_update): Save and restore frame using get_frame_id() and
529 (create_child): Use xasprintf.
530 (new_root_variable): Initialize frame_id.
531 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
532 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
533 to prevent memory leak.
535 2002-07-03 Andrew Cagney <ac131313@redhat.com>
537 * valops.c (hand_function_call): Move declaration of retbuf to
538 start of function, allocate using malloc, add a cleanup but before
539 the inf_status cleanup, cleanup the buffer. Rename local variable
540 old_chain to inf_status_cleanup.
542 2002-07-03 Martin M. Hunt <hunt@redhat.com>
544 * top.c (execute_command): Use cmd_func() and cmd_func_p().
546 * cli/cli-decode.c (cmd_func_p): New function.
547 (cmd_func): New function.
549 * command.h: Add cmd_func() and cmd_func_p().
551 2002-07-03 Grace Sainsbury <graces@redhat.com>
553 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
554 (REGISTER_SIZE): Remove.
555 (MAX_REGISTER_RAW_SIZE): Remove.
556 (REGISTER_VIRTUAL_TYPE): Remove.
557 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
558 (REGISTER_NAME): Remove.
559 (USE_GENERIC_DUMMY_FRAMES): Remove.
560 (CALL_DUMMY): Remove.
561 (CALL_DUMMY_START_OFFSET): Remove.
562 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
563 (CALL_DUMMY_LOCATION): Remove.
564 (FIX_CALL_DUMMY): Remove.
565 (CALL_DUMMY_ADDRESS): Remove.
566 (SIZEOF_CALL_DUMMY_WORDS): Remove.
567 (SAVE_DUMMY_FRAME_TOS): Remove.
568 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
569 (mcore_register_virtual_type): New function.
570 (mcore_register_byte): New function.
571 (mcore_register_size): New function.
572 (mcore_register_name): New function.
573 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
574 macros removed from tm-mcore.h.
575 (mcore_dump_tdep): Add.
576 (_initialize_mcore_tdep): Add gdbarch_register call.
578 2002-07-03 Mark Kettenis <kettenis@gnu.org>
580 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
581 frameless_look_for_prologue, such that we actually call this
584 2002-07-02 Joel Brobecker <brobecker@gnat.com>
586 * frame.h (frame_address_in_block): New function.
588 * blockframe.c (frame_address_in_block): New function extracted
589 from get_frame_block().
590 (get_frame_block): Use frame_address_in_block().
591 (block_innermost_frame): Use frame_address_in_block() to match
592 the frame pc address against the block boundaries rather than
593 the frame pc directly. This prevents a failure when a frame pc
594 is actually a return-address pointing immediately after the end
597 2002-07-02 Grace Sainsbury <graces@redhat.com>
599 * MAINTAINERS: Add self under write after approval.
601 2002-07-02 Grace Sainsbury <graces@redhat.com>
603 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
604 used in architecture vector. The default is
605 m68k_local_breakpoint_from_pc.
606 (m68k_local_breakpoint_from_pc): Add.
607 (enum): Add register numbers from tm-m68k.h.
608 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
610 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
611 GDB_MULTI_ARCH_PARTIAL.
612 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
613 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
615 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
616 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
617 to enum in m68k-tdep.c
619 2002-07-02 Joel Brobecker <brobecker@gnat.com>
621 * solib-osf.c (open_map): Compute the list of shared libraries
622 loaded by the inferior, rather than the list of libraries loaded
623 by GDB itself. Otherwise, GDB ends up reading the symbols from
624 the wrong shared libraries...
626 2002-07-02 Mark Kettenis <kettenis@gnu.org>
628 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
629 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
631 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
633 (FRAMELESS_SIGNAL): Remove function.
634 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
635 i386_linux_saved_pc_after_call): Removed.
636 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
637 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
638 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
640 * i386-tdep.c (i386_frameless_signal_p): New function.
641 (i386_frame_chain): Deal with frameless signals.
642 (i386_sigtramp_saved_sp): New function.
643 (i386_frame_saved_pc): Deal with frameless signals.
644 (i386_saved_pc_after_call): Make sure the correct value is
645 returned just after entry into a sigtramp.
646 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
647 i386fbsd4_sc_sp_offset): New variables.
648 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
649 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
650 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
651 similiar to what we already did for sc_pc_offset.
652 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
655 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
657 2002-07-02 Michal Ludvig <mludvig@suse.cz>
659 * config/i386/tm-x86-64linux.h: New.
660 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
662 * config/i386/nm-x86-64.h: Rename to ...
663 * config/i386/nm-x86-64linux.h: ... this one.
664 * config/i386/x86-64linux.mh: Reflect the above change.
666 2002-07-01 Mark Kettenis <kettenis@gnu.org>
668 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
669 with sigcontext_addr. Add sc_sp_offset.
670 (i386bsd_sigtramp_saved_pc): Remove prototype.
671 (i386bsd_sicontext_addr): Add prototype.
672 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
673 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
674 (i386_svr4_sigtramp_saved_pc): Removed.
675 (i386_svr4_sigcontext_addr): New function.
676 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
677 Initialize tdep->sigcontext_addr instead. Initialize
678 tdep->sc_pc_offset and tdep->sc_sp_offset.
679 (i386_gdbarch_init): Likewise.
680 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
682 (i386bsd_sigtramp_saved_pc): Remove function.
683 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
684 Initialize tdep->sigcontext_addr instead. Initialize
686 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
687 of tdep->sigtramp_saved_pc.
688 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
689 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
692 * i386-tdep.c (i386_frameless_function_invocation,
693 i386_frame_num_args, i386_frame_init_saved_regs,
694 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
695 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
696 i386_extract_return_value, i386_store_return_value,
697 i386_extract_struct_value_address, i386_register_virtual_type,
698 i386_register_convertible, i386_register_convert_to_virtual,
699 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
700 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
703 2002-07-01 Mark Kettenis <kettenis@gnu.org>
705 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
707 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
708 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
709 this macro. Include "value.h".
711 2002-06-30 Aidan Skinner <aidan@velvet.net>
713 * ada-exp.tab.c: remove as it's a generated file
714 * ada-lex.c: remove as it's a generated file
716 2002-06-30 Mark Kettenis <kettenis@gnu.org>
718 * config/i386/tm-i386.h (struct frame_info, struct
719 frame_saved_regs, struct value, struct type): Remove forward
722 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
723 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
724 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
725 (FILL_FPXREGSET): Define.
727 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
729 * configure.tgt (i[3456]86-*-openbsd*): Fold into
730 i[3456]86-*-netbsd* case.
731 * config/i386/tm-obsd.h: Removed.
732 * config/i386/obsd.mt: Removed.
733 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
735 (MH_CFLAGS): Add -DYYDEBUG=0.
737 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
738 i386nbsd_sc_pc_offset on OpenBSD too.
740 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
741 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
742 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
744 * i386bsd-tdep.c: Include "arch-utils.h".
745 (i386bsd_aout_in_solib_call_trampoline): New function.
746 (i386bsd_init_abi): Set in_solib_call_trampoline to
747 i386bsd_aout_in_solib_call_trampoline.
748 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
749 in_solib_call_trampoline to generic_in_solib_call_trampoline.
751 2002-06-28 Andrew Cagney <ac131313@redhat.com>
753 * macrotab.h: Do not include "obstack.h" or "bcache.h".
754 (struct obstack, struct bcache): Add opaque declarations.
755 * Makefile.in (macrotab_h): Update
757 2002-06-28 Andrew Cagney <ac131313@redhat.com>
759 * blockframe.c (generic_find_dummy_frame): Change return type to
761 (struct dummy_frame): Replace field ``registers'' with regcache, a
762 struct regcache object.
763 (generic_find_dummy_frame): Update.
764 (generic_push_dummy_frame): Update. Use regcache_xfree,
765 regcache_xmalloc and regcache_cpy.
766 (generic_pop_dummy_frame): Update. Use regcache_cpy and
768 (deprecated_generic_find_dummy_frame): Update.
769 (generic_read_register_dummy): Update. Use
770 regcache_read_as_address.
771 (generic_call_dummy_register_unwind): Update. Use regcache_read.
772 (generic_get_saved_register): Update. Use regcache_read.
774 2002-06-28 Andrew Cagney <ac131313@redhat.com>
776 * Makefile.in (objfiles_h): Add $(bcache_h).
777 * objfiles.h: Include "bcache.h".
779 * Makefile.in (symtab_h): Remove $(bcache_h).
780 * symtab.h: Do not include "bcache.h".
782 2002-06-28 Andrew Cagney <ac131313@redhat.com>
784 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
785 generic_func_frame_chain_valid.
787 2002-06-28 David O'Brien <obrien@FreeBSD.org>
789 * config/i386/nm-fbsd.h: Include <sys/param.h>.
790 * config/i386/tm-fbsd.h: Likewise.
792 2002-06-28 Andrew Cagney <ac131313@redhat.com>
794 * rs6000-tdep.c (rs6000_gdbarch_init): Use
795 generic_unwind_get_saved_register.
797 2002-06-27 Andrew Cagney <ac131313@redhat.com>
799 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
800 * regcache.c (supply_register): Add missing argument to
801 register_buffer call.
803 2002-06-27 Andrew Cagney <ac131313@redhat.com>
805 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
806 Solaris /bin/grep does not not like it. From Peter Schauer.
808 2002-06-26 Tom Tromey <tromey@redhat.com>
810 * command.h (add_setshow_cmd): Declare.
811 (add_setshow_cmd_full): Declare.
812 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
813 returns void. Use add_setshow_cmd_full.
814 (add_setshow_cmd_full): New function.
815 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
816 (add_setshow_boolean_cmd): Likewise.
818 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
820 * config/vax/tm-vax.h: Protect from multiple inclusion.
821 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
822 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
823 * config/vax/tm-vaxbsd.h: ...here. New file.
824 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
826 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
828 * config/vax/tm-vax.h (BREAKPOINT): Remove.
829 (BELIEVE_PCC_PROMOTION): Remove.
830 (AP_REGNUM): Move to...
831 * config/vax/nm-vax.h: ...here.
832 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
833 (vax_breakpoint_from_pc): New function.
834 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
835 and gdbarch_believe_pcc_promotion.
837 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
839 * Makefile.in (vax_tdep_h): Define.
840 (vax-tdep.o): Use $(vax_tdep_h).
841 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
842 (vax_dump_tdep): New function.
843 (_initialize_vax_tdep): Register vax_dump_tdep.
844 * vax-tdep.h: Include osabi.h.
845 (struct gdbarch_tdep): New.
847 2002-06-26 Andrew Cagney <cagney@redhat.com>
849 * frame.h (deprecated_generic_find_dummy_frame): Rename
850 generic_find_dummy_frame.
851 * blockframe.c (generic_find_dummy_frame): Make static.
852 (deprecated_generic_find_dummy_frame): New function.
853 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
854 generic_find_dummy_frame with deprecated_find_dummy_frame.
855 (sh64_nofp_frame_init_saved_regs): Ditto.
856 (sh_fp_frame_init_saved_regs): Ditto.
857 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
858 (s390_frame_chain): Ditto.
859 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
861 2002-06-26 Grace Sainsbury <graces@redhat.com>
863 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
864 gdbarch vector are at the top.
866 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
867 (FRAME_ARGS_ADDRESS): Remove.
868 (FRAME_LOCALS_ADDRESS): Remove.
869 (FRAME_NUM_ARGS): Remove.
870 (FRAME_ARGS_SKIP): Remove.
871 * m68k-tdep.c (enum): Add eumeration of special register numbers.
872 (m68k_gdbarch_init): Add gdbarch initializations for macros
873 undefined in tm-m68k.h
875 2002-06-26 Grace Sainsbury <graces@redhat.com>
877 * monitor.h: Add the function regname to monitor_ops
878 structure. This way NUM_REGS does not have to be a constant.
879 * monitor.c (monitor_fetch_register): Added support for regname
880 function. The function is called if the array regnames is NULL.
881 (monitor_store_register): Same.
882 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
884 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
885 cpu32bug_cmds.regname to point to new function.
886 * abug-rom.c (abug_regname): Same as above.
887 (init_abug_cmds): Same.
888 * dbug-rom.c (dbug_regname): Same as above.
889 (init_dbug_cmds): Same.
890 * remote-est.c (est_regname): Same.
891 (init_est_cmds): Same.
892 * rom68k-rom.c (rom68k_regname): Same.
893 (init_rom68k_cmds): Same.
895 2002-06-25 Tom Tromey <tromey@redhat.com>
897 * breakpoint.c (delete_command): Don't repeat `delete' commands.
899 2002-06-25 Andrew Cagney <cagney@redhat.com>
901 * infrun.c (stop_registers): Change variable's type to ``struct
903 (xmalloc_inferior_status): Delete function.
904 (free_inferior_status): Delete function.
905 (normal_stop): Use regcache_cpy.
906 (struct inferior_status): Change type of fields ``stop_registers''
907 and ``registers'' to ``struct regcache''.
908 (write_inferior_status_register): Use regcache_write.
909 (save_inferior_status): Instead of calling
910 xmalloc_inferior_status, allocate the inf_status buffer directly.
911 Use regcache_dup_no_passthrough and regcache_dup to save the
913 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
914 Replace the stop_registers regcache instead of overriding it. Use
915 regcache_xfree. Instead of calling free_inferior_status, xfree
917 (discard_inferior_status): Use regcache_xfree. Instead of calling
918 free_inferior_status, xfree the buffer directly.
919 (build_infrun): Use regcache_xmalloc.
920 (_initialize_infrun): Delete redundant call to build_infrun.
922 * Makefile.in (infcmd.o): Add $(regcache_h).
924 * infcmd.c: Include "regcache.h".
925 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
926 obtain the address of `stop_registers' register buffer.
927 (print_return_value): Ditto.
929 * inferior.h (struct regcache): Add opaque declaration.
930 (stop_registers): Change variable's declared type to ``struct
933 2002-06-24 Tom Tromey <tromey@redhat.com>
935 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
936 * target.c (initialize_targets): Fixed typo in
937 trust-readonly-sections `show' documentation.
939 * main.c: Marked all strings with _().
941 2002-06-24 Don Howard <dhoward@redhat.com>
943 * memattr.c (create_mem_region): Treat hi == 0 as a special case
944 that means max CORE_ADDR+1.
945 (lookup_mem_region): Ditto.
946 (mem_info_command): Ditto.
948 2002-06-24 Grace Sainsbury <graces@redhat.com>
950 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
951 (REGISTER_BYTES_OK): Remove.
952 (REGISTER_BYTES): Remove.
953 (STORE_STRUCT_RETURN): Remove.
954 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
955 (STORE_RETURN_VALUE): Remove.
956 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
957 (FRAME_CHAIN): Remove.
958 (FRAMELESS_FUNCTION_INVOCATION): Remove.
959 (FRAME_SAVED_PC): Remove.
960 * m68k-tdep.c (m68k_register_bytes_ok):Add.
961 (m68k_store_struct_return): Add.
962 (m68k_deprecated_extract_return_value): Add.
963 (m68k_deprecated_extract_struct_value_address): Add.
964 (m68k_store_return_value): Add.
965 (m68k_frame_chain): Add.
966 (m68k_frameless_function_invocation): Add.
967 (m68k_frame_saved_pc): Add.
968 (m68k_gdbarch_init): added set_gdbarch calls for new
969 functions and deleted macros.
971 2002-06-23 Tom Tromey <tromey@redhat.com>
973 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
974 (ALLDEPFILES): Likewise.
975 (udiheaders): Removed.
976 (udip2soc.o): Likewise.
977 (udi2go32.o): Likewise.
979 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
981 2002-06-22 Andrew Cagney <ac131313@redhat.com>
983 * infrun.c (_initialize_infrun): Delete unnecessary call to
986 * regcache.h: Update comments describing the regcache_cpy family
988 (regcache_save, regcache_restore): Delete declaration.
989 (regcache_save_no_passthrough): Delete declaration.
990 (regcache_restore_no_passthrough): Delete declaration.
991 * regcache.c (regcache_save): Delete function.
992 (regcache_save_no_passthrough): Delete function.
993 (regcache_restore): Delete function.
994 (regcache_restore_no_passthrough): Delete function.
996 2002-06-21 Andrew Cagney <ac131313@redhat.com>
998 * config/m68k/tm-m68k.h: Fix typo.
999 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
1000 (m68k_frame_init_saved_regs): Declare.
1002 2002-06-21 Jim Blandy <jimb@redhat.com>
1004 Remove some vestiges of Harris 88k support.
1005 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
1006 register numbering quirk.
1007 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
1008 odd symbols occurring in Harris 88k ELF targets.
1010 2002-06-21 Tom Tromey <tromey@redhat.com>
1012 * gdb_locale.h: New file.
1013 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
1014 (defs_h): Added gdb_locale.h.
1015 * configure, config.in: Rebuilt.
1016 * configure.in (PACKAGE): Define.
1017 * defs.h: Include gdb_locale.h.
1018 * main.c (captured_main): Call setlocale, bindtextdomain,
1021 2002-06-21 Dave Brolley <brolley@redhat.com>
1023 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
1024 * config/frv/frv.mt: New file.
1025 * config/frv/tm-frv.h: New file.
1026 * configure.tgt: Support frv-*-*.
1027 * Makefile.in (frv-tdep.o): New target.
1028 * frv-tdep.c: New file.
1029 * NEWS: Mention frv.
1031 2002-06-21 Dave Brolley <brolley@redhat.com>
1033 * MAINTAINERS: Add self to "Write After Approval" list.
1035 2002-06-21 Grace Sainsbury <graces@redhat.com>
1037 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
1038 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
1039 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
1040 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
1041 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
1043 * m68k-tdep.c: Include arch-utils.h
1044 (m68k_register_raw_size): Add.
1045 (m68k_register_virtual_size): Add.
1046 (m68k_register_virtual_type): Add.
1047 (m68k_register_name): Add.
1048 (m68k_stack_align): Add.
1049 (m68k_register_byte): Add.
1050 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
1053 2002-06-21 Grace Sainsbury <graces@redhat.com>
1055 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
1056 m68k_find_saved_regs.
1057 (m68k_pop_frame): Removed saved_regs structure, and replaced
1058 references to it with frame->saved_regs.
1059 (m68k_gdbarch_init): Added function calls to initialize the
1061 (m68k_fix_call_dummy): Add.
1062 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
1063 (CALL_DUMMY): Remove.
1064 (CALL_DUMMY_LENGTH): Remove.
1065 (CALL_DUMMY_START_OFFSET): Remove.
1066 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1067 (FIX_CALL_DUMMY): Remove.
1068 (PUSH_DUMMY_FRAME): Remove.
1069 (POP_FRAME): Remove.
1071 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
1073 * parse.c (parse_fprintf): New function used to avoid calls to
1074 fprintf in bison parser generated debug code.
1075 * parser-defs.h: Declaration of new parse_fprintf function.
1076 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
1077 Set YYDEBUG to 1 by default.
1078 Set YYFPRINTF as parse_fprintf.
1080 2002-06-21 Michal Ludvig <mludvig@suse.cz>
1082 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
1084 (pointer_encoding, enum ptr_encoding): New.
1085 (execute_cfa_program): Take care about pointer encoding.
1086 (dwarf2_build_frame_info): Only call parse_frame_info for
1087 .debug_frame and .eh_frame.
1088 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
1089 fixed augmentation handling, added relative addressing,
1090 ignore duplicate FDEs. Added comments.
1091 * dwarf2cfi.c: Reindented.
1093 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
1095 * event-top.c (command_handler): Don't use space_at_cmd_start
1096 unless there is sbrk() on the host. Assign time and space data
1097 to union fields of the appropriate length.
1099 2002-06-20 Michal Ludvig <mludvig@suse.cz>
1101 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
1102 x86_64_register_name. Return type changed to 'const char *'.
1103 (x86_64_register_name2nr): Rename to x86_64_register_number.
1104 (x86_64_gdbarch_init): Update to reflect the change.
1105 * x86-64-tdep.h: Ditto.
1106 * x86-64-linux-nat.c (x86_64_fxsave_offset)
1107 (supply_fpregset): Ditto.
1109 2002-06-19 Andrew Cagney <cagney@redhat.com>
1111 * regcache.h: Update copyright.
1112 (struct regcache, struct gdbarch): Add opaque declarations.
1113 (current_regcache): Declare global variable.
1114 (regcache_read, regcache_write): Add gdbarch parameter.
1115 (regcache_save, regcache_save_no_passthrough)
1116 (regcache_restore, regcache_restore_no_passthrough)
1117 (regcache_dup, regcache_dup_no_passthrough)
1118 (regcache_cpy, regcache_cpy_no_passthrough)
1119 (deprecated_grub_regcache_for_registers)
1120 (deprecated_grub_regcache_for_register_valid)
1121 (regcache_valid_p): Add function declarations.
1123 * regcache.c: Update copyright.
1124 (regcache_descr_handle): New global variable.
1125 (struct regcache_descr): Define.
1126 (init_legacy_regcache_descr, init_regcache_descr): New functions.
1127 (regcache_descr, xfree_regcache_descr): New functions.
1128 (struct regcache): Define.
1129 (regcache_xmalloc, regcache_xfree): New functions.
1130 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
1131 (regcache_dup, regcache_dup_no_passthrough): New functions.
1132 (regcache_valid_p, regcache_read_as_address): New functions.
1133 (deprecated_grub_regcache_for_registers): New function.
1134 (deprecated_grub_regcache_for_register_valid): New function.
1135 (current_regcache): New global variable.
1136 (register_buffer): Add regcache parameter. Update calls.
1137 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
1138 (read_register_gen, write_register_gen): Update register_buffer
1139 call. Test for legacy_p instead of gdbarch_register_read_p or
1140 gdbarch_register_write_p.
1141 (regcache_collect): Update register_buffer call.
1142 (build_regcache): Rewrite. Use deprecated grub functions.
1143 (regcache_save, regcache_save_no_passthrough): New functions.
1144 (regcache_restore, regcache_restore_no_passthrough): New
1146 (_initialize_regcache): Create the regcache_data_handle. Swap
1147 current_regcache global variable.
1149 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
1150 parameter to regcache_read and regcache_write calls.
1151 (sh4_register_read): Ditto.
1152 (sh64_pseudo_register_read): Ditto.
1153 (sh64_register_read): Ditto.
1154 (sh_pseudo_register_write): Ditto.
1155 (sh4_register_write): Ditto.
1156 (sh64_pseudo_register_write): Ditto.
1157 (sh64_register_write): Ditto.
1159 * defs.h (XCALLOC): Define.
1161 2002-06-19 Grace Sainsbury <graces@redhat.com>
1163 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
1164 * m68k-tdep.c (m68k_gdbarch_init): Added.
1165 (m68k_dump_tdep): Added.
1167 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
1169 * ada-lang.c (fill_in_ada_prototype): Update comment.
1171 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
1173 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
1175 (mips_abi_string, mips_abi_strings): New.
1176 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
1177 (mips_gdbarch_init): Set tdep->found_abi. Don't set
1178 tdep->mips_abi_string. Honor mips_abi_string. Default to
1179 O32 if no ABI is found.
1180 (mips_dump_tdep): Use mips_abi_strings.
1181 (mips_abi_update): New function.
1182 (_initialize_mips_tdep): Initialize mips_abi_string. Add
1183 ``set mips abi'' and ``show mips abi''. Check the size of
1186 2002-06-19 Andrew Cagney <cagney@redhat.com>
1188 * i386-linux-tdep.c (i386_linux_register_name): Make return type
1191 2002-06-18 Joel Brobecker <brobecker@gnat.com>
1193 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
1194 current frame using only the first stack size adjustment. All
1195 subsequent size adjustments are not considered to be part of
1196 the "static" part of the current frame.
1197 Compute the address of the saved registers relative to the
1198 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
1199 in use in this frame.
1201 2002-06-18 Don Howard <dhoward@redhat.com>
1203 * valops.c (value_ind): Use value_at_lazy() when dereferencing
1204 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
1205 suggesting this solution.
1207 2002-06-18 Andrew Cagney <ac131313@redhat.com>
1209 * config/romp/xm-rtbsd.h: Delete file.
1210 * config/romp/rtbsd.mh: Delete file.
1212 2002-06-18 Keith Seitz <keiths@redhat.com>
1214 * breakpoint.c (condition_command): Post breakpoint_modify
1215 when a condition is added to an existing breakpoint.
1216 (commands_command): Likewise for commands.
1217 (set_ignore_count): Likewise for ignore counts.
1218 If no tty, do not simply return, still need to send event
1220 (ignore_command): Only print a newline if the command came
1222 Don't call breakpoints_changed, since this is now properly
1223 handled by set_ignore_count.
1225 2002-06-18 Andrew Cagney <cagney@redhat.com>
1227 * MAINTAINERS: Note that cris-elf target can be compiled with
1229 * cris-tdep.c (cris_register_name): Make return type constant.
1230 (cris_breakpoint_from_pc): Ditto.
1232 2002-06-18 Michal Ludvig <mludvig@suse.cz>
1234 * frame.h (struct frame_info): Change type of context to
1237 2002-06-17 Andrew Cagney <cagney@redhat.com>
1239 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
1241 * gdbarch.h, gdbarch.c: Regenerate.
1242 * config/mips/tm-mips.h (mips_register_name): Update.
1243 * i386-tdep.h (i386_register_name): Update.
1244 * mips-tdep.c (mips_register_name): Update
1245 * alpha-tdep.c (alpha_register_name): Update.
1246 * arch-utils.c (legacy_register_name): Update.
1247 * arch-utils.h (legacy_register_name): Update.
1248 * avr-tdep.c (avr_register_name): Update.
1249 * ia64-tdep.c (ia64_register_name): Update.
1250 * i386-tdep.c (i386_register_name): Update.
1251 * sparc-tdep.c (sparc32_register_name): Update.
1252 (sparc64_register_name): Update.
1253 (sparclite_register_name): Update.
1254 (sparclet_register_name): Update.
1255 * sh-tdep.c (sh_generic_register_name): Update.
1256 (sh_sh_register_name): Update.
1257 (sh_sh3_register_name): Update.
1258 (sh_sh3e_register_name): Update.
1259 (sh_sh_dsp_register_name): Update.
1260 (sh_sh3_dsp_register_name): Update.
1261 (sh_sh4_register_name): Update.
1262 (sh_sh64_register_name): Update.
1263 * s390-tdep.c (s390_register_name): Update.
1264 * rs6000-tdep.c (rs6000_register_name): Update.
1265 * ns32k-tdep.c (ns32k_register_name_32082): Update.
1266 (ns32k_register_name_32382): Update.
1267 * d10v-tdep.c (d10v_ts2_register_name): Update.
1268 (d10v_ts3_register_name): Update.
1269 * xstormy16-tdep.c (xstormy16_register_name): Update.
1270 * vax-tdep.c (vax_register_name): Update.
1271 * v850-tdep.c (v850_register_name): Update.
1272 * m68hc11-tdep.c (m68hc11_register_name): Update.
1273 * mn10300-tdep.c (mn10300_generic_register_name): Update.
1274 (am33_register_name): Update.
1276 2002-06-17 Grace Sainsbury <graces@redhat.com>
1278 * m68k-tdep.c: Reindented.
1280 2002-06-17 Andrew Cagney <ac131313@redhat.com>
1282 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
1283 list of predefined types.
1285 2002-06-16 Mark Kettenis <kettenis@gnu.org>
1287 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
1288 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1289 REGISTER_CONVERT_TO_RAW): Remove defines.
1290 (i386_register_virtual_type, i386_register_convertible,
1291 i386_register_convert_to_virtual, i386_register_convert_to_raw):
1293 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1294 macros mentioned above.
1296 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
1297 (i386lynx_saved_pc_after_call): Remove prototype.
1298 * i386ly-tdep.c: Include "i386-tdep.h".
1299 (i386lynx_saved_pc_after_call): Make static. Use
1300 read_memory_nobpt instead of read_memory. Use
1301 read_memory_unsigned_integer instead of read_memory_integer.
1302 (i386lynx_init_abi): New function.
1303 (i386lynx_coff_osabi_sniffer): New function.
1304 (_initialize_i386bsd_tdep): New function.
1306 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
1307 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
1308 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
1309 (i386_fix_call_dummy): Remove prototype.
1310 * i386-tdep.c (i386_call_dummy_words): New variable.
1311 (i386_gdbarch_init): Adjust for removal of the
1312 macros mentioned above.
1314 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1316 * command.h (add_setshow_auto_boolean_cmd): Replace
1317 add_set_auto_boolean_cmd.
1318 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
1319 add_set_auto_boolean_cmd.
1320 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
1321 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
1322 mask-address'' command.
1323 (show_mask_address): Add cmd parameter.
1324 * remote.c (add_packet_config_cmd): Update. Change type of
1325 set_func and show_func to cmd_sfunc_ftype.
1326 (_initialize_remote): Update `set remote Z-packet'
1327 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
1328 (show_remote_protocol_e_packet_cmd): Ditto.
1329 (show_remote_protocol_E_packet_cmd): Ditto.
1330 (show_remote_protocol_P_packet_cmd): Ditto.
1331 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
1332 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
1333 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
1334 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
1335 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
1336 (show_remote_protocol_Z_packet_cmd): Ditto.
1337 (show_remote_protocol_binary_download_cmd): Ditto.
1338 (show_remote_cmd): Pass NULL to all of above.
1340 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1342 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
1343 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
1344 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
1345 POP_FRAME): Remove defines.
1346 (i386_push_arguments, i386_store_struct_return,
1347 i386_extract_return_value, i386_store_return_value,
1348 i386_extract_struct_value_address, i386_push_dummy_frame,
1349 i386_pop_frame): Renove prototypes.
1350 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1351 macros mentioned above.
1353 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1355 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
1356 add_set_boolean_cmd.
1357 (add_setshow_cmd): New function.
1358 * command.h (add_setshow_boolean_cmd): Replace
1359 add_set_boolean_cmd.
1360 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
1361 and ``set rdiromatzero''.
1362 * maint.c (_initialize_maint_cmds): Update commented out code.
1363 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
1364 * target.c (initialize_targets): Update `set
1365 trust-readonly-sections'.
1366 * remote.c (_initialize_remote): Update `set remotebreak'.
1368 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1370 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
1371 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
1372 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
1373 fit into multi-arch framework.
1374 (i386_breakpoint_from_pc): New function.
1375 (i386_gdbarch_init): Adjust for removal of the macros mentioned
1378 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
1379 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
1380 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
1381 (i386_frameless_function_invocation, i386_frame_num_args,
1382 i386_frame_init_saved_regs): Remove prototypes.
1383 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1384 macros mentioned above.
1386 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1388 * cli/cli-decode.c (set_cmd_cfunc): Update.
1389 (set_cmd_sfunc): Update.
1390 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
1391 (set_cmd_sfunc, set_cmd_cfunc): Update.
1392 * cli/cli-decode.h: Update.
1394 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1396 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
1397 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
1399 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1401 * defs.h (auto_boolean): Declare enum.
1402 * command.h (cmd_auto_boolean): Delete enum.
1403 * mips-tdep.c (mask_address_var): Update.
1404 (mips_mask_address_p): Update.
1405 (show_mask_address): Update.
1406 * remote.c (struct packet_config): Update.
1407 (update_packet_config): Update.
1408 (show_packet_config_cmd): Update.
1409 (packet_ok): Update.
1410 (add_packet_config_cmd): Update.
1411 (_initialize_remote):
1412 * command.h: Update.
1413 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
1414 (do_setshow_command): Update.
1415 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
1416 * cli/cli-decode.h: Update.
1418 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1420 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
1421 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
1422 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
1423 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
1424 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
1425 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
1427 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
1428 list of DJGPP COFF targets.
1430 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
1431 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
1432 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
1433 (FP0_REGNUM): Remove define.
1434 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
1435 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
1436 (i386_register_virtual_size): Remove protoype.
1437 * i386-tdep.c (i386_register_virtual_size): Removed.
1438 (i386_extract_return_value, i386_store_return_value): Use
1439 FP0_REGNUM instead of NUM_FREGS to determine whether the
1440 floating-point registers are available.
1441 (i386_gdbarch_init): Tweak FIXME about FPU registers.
1442 Adjust for removal of macros mentioned above.
1444 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1446 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
1448 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
1450 (supply_gregset, fill_gregset): Remove use of register keyword and
1451 remove declaration for regmap. Use I386_NUM_GREGS instead of
1452 NUM_REGS and NUM_FREGS.
1453 (FPREGSET_FSAVE_OFFSET): Remove.
1454 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
1455 NUM_FREGS to determine whether the floating-point registers are
1458 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
1459 gnu_store_registers): Replace usage of NUM_GREGS with
1462 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
1463 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
1464 usage of NUM_GREGS with I386_NUM_GREGS.
1466 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
1468 * i386bsd-nat.c: Include "i386-tdep.h".
1469 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
1472 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
1473 and associated comment. They no longer make any sense, since we
1474 don't use this file anymore on Linux.
1476 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
1477 * i386-tdep.c (i386_register_offset, i386_register_size): Use
1478 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
1479 elements in these arrays.
1480 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
1483 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1485 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
1486 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
1488 2002-06-14 Andrew Cagney <cagney@redhat.com>
1490 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
1491 EXTRACT_RETURN_VALUE.
1492 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
1493 EXTRACT_STRUCT_VALUE_ADDRESS.
1494 * gdbarch.h, gdbarch.c: Regenerate.
1496 * values.c (value_being_returned): Handle
1497 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1498 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
1500 * arm-linux-tdep.c (arm_linux_init_abi): Update.
1501 * arm-tdep.c (arm_gdbarch_init): Update.
1502 * avr-tdep.c (avr_gdbarch_init): Update.
1503 * cris-tdep.c (cris_gdbarch_init): Update.
1504 * d10v-tdep.c (d10v_gdbarch_init): Update.
1505 * ia64-tdep.c (ia64_gdbarch_init): Update.
1506 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1507 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1508 * s390-tdep.c (s390_gdbarch_init): Update.
1509 * sh-tdep.c (sh_gdbarch_init): Update.
1510 * s390-tdep.c (s390_gdbarch_init): Update.
1511 * sparc-tdep.c (sparc_gdbarch_init): Update.
1512 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1513 * v850-tdep.c (v850_gdbarch_init): Update.
1514 * vax-tdep.c (vax_gdbarch_init): Update.
1515 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1516 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1518 * config/arc/tm-arc.h: Update.
1519 * config/d30v/tm-d30v.h: Update.
1520 * config/fr30/tm-fr30.h: Update.
1521 * config/h8300/tm-h8300.h: Update.
1522 * config/h8500/tm-h8500.h: Update.
1523 * config/i386/tm-i386.h: Update.
1524 * config/i386/tm-ptx.h: Update.
1525 * config/i386/tm-symmetry.h: Update.
1526 * config/i960/tm-i960.h: Update.
1527 * config/m32r/tm-m32r.h: Update.
1528 * config/m68k/tm-delta68.h: Update.
1529 * config/m68k/tm-linux.h: Update.
1530 * config/m68k/tm-m68k.h: Update.
1531 * config/m88k/tm-m88k.h: Update.
1532 * config/mcore/tm-mcore.h: Update.
1533 * config/mips/tm-mips.h: Update.
1534 * config/mn10200/tm-mn10200.h: Update.
1535 * config/pa/tm-hppa.h: Update.
1536 * config/pa/tm-hppa64.h: Update.
1537 * config/sparc/tm-sp64.h: Update.
1538 * config/sparc/tm-sparc.h: Update.
1539 * config/sparc/tm-sparclet.h: Update.
1540 * config/z8k/tm-z8k.h: Update.
1542 2002-06-14 Andrew Cagney <cagney@redhat.com>
1544 * Makefile.in (i386_linux_tdep_h): Define.
1545 (i386_tdep_h, i387_tdep_h): Define.
1546 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
1547 $(i386_tdep_h) and $(i387_tdep_h).
1548 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1550 2002-06-14 Mark Kettenis <kettenis@gnu.org>
1552 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
1553 Already covered by the default.
1555 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
1556 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
1557 (i386_gdbarch_init): Initialize long_double_format and long_double
1560 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
1561 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
1563 * config/i386/i386sol2.mh: ... here.
1564 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
1565 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
1566 (SIGCONTEXT_PC_OFFSET): Remove define.
1567 (IN_SIGTRAMP): Remove define.
1568 * i386-sol2-tdep.c: New file.
1570 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
1571 * config/i386/tm-i386nw.h: Removed.
1573 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
1574 USE_STRUCT_CONVENTION): Remove defines.
1575 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1576 (get_longjmp_target): Remove prototype.
1577 (IN_SIGTRAMP): Remove define.
1578 (i386bsd_in_sigtramp): Remove prototype.
1579 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1580 function. Update comment accordingly
1581 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1582 (FRAME_SAVED_PC): Remove define.
1583 (i386bsd_frame_saved_pc): Remove prototype.
1584 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
1585 GET_LONGJMP_TARGET): Remove defines.
1586 (get_longjmp_target): Remove prototype.
1587 (IN_SIGTRAMP): Remove define.
1588 (i386bsd_in_sigtramp): Remove prototype.
1589 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1590 function. Update comment accordingly
1591 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1592 (FRAME_SAVED_PC): Remove define.
1593 (i386bsd_frame_saved_pc): Remove prototype.
1594 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
1596 (USE_STRUCT_CONVENTION): Remove prototype.
1597 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
1599 (_initialize_i386bsd_nat): Revise logic to determine some
1600 constants at compile time when compiling a native GDB. Warn if
1601 things don't match up with what we expect.
1602 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
1604 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
1605 to use date stored in `struct gdbarch_tdep'.
1606 (i386bsd_sigcontext_offset): Remove varaible.
1607 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
1608 stored in `struct gdbarch_tdep'.
1609 (i386bsd_frame_saved_pc): Make static.
1610 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
1611 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
1612 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1613 i386fbsd4_sc_pc_offset): New variables.
1614 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
1615 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
1617 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
1619 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
1620 Modify the value of i386fbsd_sigtramp_start and
1621 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
1622 i386fbsd_sigtramp_end.
1623 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
1626 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
1627 define to i386-linux-tdep.h.
1628 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
1629 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
1631 (i386_linux_register_name, i386_linux_register_byte,
1632 i386_linux_register_raw_size): Remove prototypes.
1633 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
1634 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
1635 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
1636 TARGET_WRITE_PC): Remove defines.
1637 (i386_linux_in_sigtramp, i386_linux_frame_chain,
1638 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
1639 i386_linux_write_pc): Remove prototypes.
1640 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1641 (get_longjmp_target): Remove prototype.
1642 * i386-linux-tdep.h: New file.
1643 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1644 * i386-linux-tdep.c: Include "i386-tdep.h" and
1645 "i386-linux-tdep.h".
1646 (i386_linux_register_name, i386_linux_register_byte,
1647 i386_linux_register_raw_size, i386_linux_in_sigtramp,
1648 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
1650 (i386_linux_init_abi): New function.
1651 (_initialize_i386_linux_tdep): New function.
1653 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
1654 (i386_saved_pc_after_call): Remove prototype.
1655 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
1656 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
1657 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
1658 (i386_register_name, i386_stab_reg_to_regnum,
1659 i386_dwarf_reg_to_regnum): Remove prototypes.
1660 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
1661 SIZEOF_SSE_REGS): Remove defines.
1662 (REGISTER_BYTES): Remove define.
1663 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
1664 (i386_register_byte, i386_register_raw_size): Remove prototypes.
1665 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
1666 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
1667 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
1668 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
1669 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
1670 (get_longjmp_target): Remove prototype.
1671 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
1672 (sigtramp_saved_pc): Remove define.
1673 (i386v4_sigtramp_saved_pc): Remove prototype.
1674 * config/i386/tm-go32.h (FRAME_CHAIN,
1675 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
1676 (i386go32_frame_saved_pc): Remove prototype.
1677 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1678 (get_longjmp_target): Remove prototype.
1679 * i386-tdep.h: Include "osabi.h".
1680 (enum i386_abi): Removed.
1681 (enum struct_return): New enum.
1682 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
1683 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
1684 sc_pc_offset members.
1685 (i386_gdbarch_register_os_abi): Remove prototype.
1686 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
1687 I386_SSE_NUM_REGS): New defines.
1688 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
1689 I386_SSE_SIZEOF_REGS): New defines.
1690 (i386_register_name, i386_register_byte, i386_register_raw_size):
1692 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
1693 (i386bsd_sigtramp_saved_pc): New prototype.
1694 * i386-tdep.c: Don't include "elf-bfd.h".
1695 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
1696 i386_frame_chain, i386_saved_pc_after_call): Make static.
1697 (i386_frame_saved_pc): Rewrite to call architecture dependent
1698 function to deal with signal handlers. Make static.
1699 (i386go32_frame_saved_pc): Removed.
1700 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
1702 (i386_get_longjmp_target): New function.
1703 (default_struct_convention, pcc_struct_convention,
1704 reg_struct_convention, valid_conventions, struct_convention): New
1706 (i386_use_struct_convention): New function.
1707 (i386v4_sigtramp_saved_pc): Renamed to
1708 i386_svr4_sigtramp_saved_pc. Made static. Moved.
1709 (i386_pc_in_sigtramp): New function.
1710 (i386_abi_names): Removed.
1711 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
1712 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
1714 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
1715 i386_gdbarch_register_os_abi): Removed.
1716 (struct i386_abi_handler): Removed.
1717 (i386_abi_handler_list): Removed.
1718 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
1720 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
1721 i386_nw_init_abi): New functions.
1722 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
1723 Use set_gdbarch_xxx() calls instead of relying on macros for a
1725 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
1726 (_initialize_i386_tdep): Add new 'struct-convcention' command.
1727 Register the various architecture variants defined in this file.
1729 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
1731 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
1732 (struct main_type): Remove arg_types member. Update comments for
1734 (TYPE_ARG_TYPES): Remove.
1735 (TYPE_FN_FIELD_ARGS): Update.
1736 (smash_to_method_type): Update prototype.
1738 * c-typeprint.c (cp_type_print_method_args): Take method type
1739 instead of argument list. Use new argument layout. Simplify.
1740 (c_type_print_args): Use new argument layout. Simplify.
1741 (c_type_print_base): Update call to cp_type_print_method_args.
1742 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
1743 argument; use die->type instead. Update call to
1744 smash_to_method_type.
1745 (read_structure_scope): Update call to dwarf2_add_member_fn.
1746 * gdbtypes.c (allocate_stub_method): Update comment.
1747 (smash_to_method_type): Take new NARGS and VARARGS arguments.
1748 Use new argument layout.
1749 (check_stub_method): Use new argument layout. Don't count
1750 void as an argument.
1751 (print_arg_types): Update comments. Use new argument layout.
1752 (recursive_dump_type): Don't print arg_types member.
1753 * hpread.c (hpread_read_struct_type): Use new argument layout.
1754 (fixup_class_method_type): Likewise.
1755 (hpread_type_lookup): Likewise.
1756 * stabsread.c (read_type): Update calls to read_args and
1757 smash_to_method_type.
1758 (read_args): Use new argument layout. Simplify.
1759 * valops.c (typecmp): Use new argument layout. Update parameters
1760 and comments. Simplify.
1761 (hand_function_call): Use new argument layout.
1762 (search_struct_method): Update call to typecmp.
1763 (find_overload_match): Use new argument layout.
1765 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1767 * NEWS: Mention multithreaded debug support for gdbserver.
1769 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1771 * MAINTAINERS: Mention NEWS.
1773 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1775 * gdbserver/regcache.c: Add comment.
1777 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1779 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
1780 (struct mips_objfile_private, compare_pdr_entries): New.
1781 (non_heuristic_proc_desc): Read the ".pdr" section if it
1784 2002-06-12 Andrew Cagney <ac131313@redhat.com>
1786 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
1787 (arm_debug): New static variable.
1788 (_initialize_arm_tdep): Add ``set debug arm'' command.
1790 2002-06-12 Andrew Cagney <ac131313@redhat.com>
1792 * Makefile.in (sim_arm_h): Define.
1793 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
1794 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
1795 (arm_register_sim_regno): New function, map an internal REGNUM
1796 onto a simulator register number.
1797 (arm_gdbarch_init): Set register_sim_regno.
1799 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
1801 * MAINTAINERS: Add self.
1803 2002-06-11 Jim Blandy <jimb@redhat.com>
1805 * source.c (source_info): Mention whether the symtab has
1806 information about preprocessor macros.
1808 Call the command `info macro', not `show macro'.
1809 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
1811 (_initialize_macrocmd): Register `info_macro_command' in
1812 `infolist', not `showlist'.
1814 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
1816 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
1817 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
1818 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
1819 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
1820 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
1822 (set_mipsfpu_single_command, set_mipsfpu_double_command)
1823 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
1824 (_initialize_mips_tdep): Remove dead code.
1825 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
1826 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1827 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
1828 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1829 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
1830 MIPS_LAST_FP_ARG_REGNUM): Remove.
1832 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
1834 * gdbserver/thread-db.c: New file.
1835 * gdbserver/proc-service.c: New file.
1836 * gdbserver/acinclude.m4: New file.
1837 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
1838 proc-service.o, and thread-db.o.
1839 (linux-low.o): Add USE_THREAD_DB.
1840 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
1841 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
1842 * gdbserver/aclocal.m4: Regenerated.
1843 * gdbserver/config.in: Regenerated.
1844 * gdbserver/configure: Regenerated.
1845 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
1846 thread_db.h, and linux/elf.h headrs.
1847 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
1848 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
1849 Check for -lthread_db and thread support.
1850 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
1851 PowerPC, and SuperH.
1852 * gdbserver/i387-fp.c: Constify arguments.
1853 * gdbserver/i387-fp.h: Likewise.
1854 * gdbserver/inferiors.c: (struct thread_info): Renamed from
1855 `struct inferior_info'. Remove PID member. Use generic inferior
1856 list header. All uses updated.
1857 (inferiors, signal_pid): Removed.
1858 (all_threads): New variable.
1859 (get_thread): Define.
1860 (add_inferior_to_list): New function.
1861 (for_each_inferior): New function.
1862 (change_inferior_id): New function.
1863 (add_inferior): Removed.
1864 (remove_inferior): New function.
1865 (add_thread): New function.
1866 (free_one_thread): New function.
1867 (remove_thread): New function.
1868 (clear_inferiors): Use for_each_inferior and free_one_thread.
1869 (find_inferior): New function.
1870 (find_inferior_id): New function.
1871 (inferior_target_data): Update argument type.
1872 (set_inferior_target_data): Likewise.
1873 (inferior_regcache_data): Likewise.
1874 (set_inferior_regcache_data): Likewise.
1875 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
1876 (all_processes, stopping_threads, using_thrads)
1877 (struct pending_signals, debug_threads, pid_of): New.
1878 (inferior_pid): Replace with macro.
1879 (struct inferior_linux_data): Remove.
1880 (get_stop_pc, add_process): New functions.
1881 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1882 Use add_process and add_thread.
1883 (linux_attach_lwp): New function, based on old linux_attach. Use
1884 add_process and add_thread. Set stop_expected for new threads.
1885 (linux_attach): New function.
1886 (linux_kill_one_process): New function.
1887 (linux_kill): Kill all LWPs.
1888 (linux_thread_alive): Use find_inferior_id.
1889 (check_removed_breakpoints, status_pending_p): New functions.
1890 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1891 Update. Use WNOHANG. Wait for cloned processes also. Update process
1892 struct for the found process.
1893 (linux_wait_for_event): New function.
1894 (linux_wait): Use it. Support LWPs.
1895 (send_sigstop, wait_for_sigstop, stop_all_processes)
1896 (linux_resume_one_process, linux_continue_one_process): New functions.
1897 (linux_resume): Support LWPs.
1898 (REGISTER_RAW_SIZE): Remove.
1899 (fetch_register): Use register_size instead. Call supply_register.
1900 (usr_store_inferior_registers): Likewise. Call collect_register.
1902 (regsets_fetch_inferior_registers): Improve error message.
1903 (regsets_store_inferior_registers): Add debugging.
1904 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1905 (unstopped_p, linux_signal_pid): New functions.
1906 (linux_target_ops): Add linux_signal_pid.
1907 (linux_init_signals): New function.
1908 (initialize_low): Call it. Initialize using_threads.
1909 * gdbserver/regcache.c (inferior_regcache_data): Add valid
1911 (get_regcache): Fetch registers lazily. Add fetch argument
1912 and update all callers.
1913 (regcache_invalidate_one, regcache_invalidate): New
1915 (new_register_cache): Renamed from create_register_cache.
1916 Return the new regcache.
1917 (free_register_cache): Change argument to a void *.
1918 (registers_to_string, registers_from_string): Call get_regcache
1919 with fetch flag set.
1920 (register_data): Make static. Pass fetch flag to get_regcache.
1921 (supply_register): Call get_regcache with fetch flag clear.
1922 (collect_register): Call get_regcache with fetch flag set.
1923 (collect_register_as_string): New function.
1924 * gdbserver/regcache.h: Update.
1925 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
1927 Handle input interrupts while waiting for an ACK.
1928 (input_interrupt): Use signal_pid method.
1929 (getpkt): Flush after debug output and use stderr.
1930 (outreg): Use collect_register_as_string.
1931 (new_thread_notify, dead_thread_notify): New functions.
1932 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1934 (look_up_one_symbol): Flush after debug output.
1935 * gdbserver/server.c (step_thread, server_waiting): New variables.
1936 (start_inferior): Don't use signal_pid. Update call to mywait.
1937 (attach_inferior): Update call to mywait.
1938 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1939 (main): Don't fetch/store registers explicitly. Use
1940 set_desired_inferior. Support proposed ``Hs'' packet. Update
1942 * gdbserver/server.h: Update.
1943 (struct inferior_list, struct_inferior_list_entry): New.
1944 * gdbserver/target.c (set_desired_inferior): New.
1945 (write_inferior_memory): Constify.
1946 (mywait): New function.
1947 * gdbserver/target.h: Update.
1948 (struct target_ops): New signal_pid method.
1949 (mywait): Removed macro, added prototype.
1951 * gdbserver/linux-low.h (regset_func): Removed.
1952 (regset_fill_func, regset_store_func): New.
1953 (enum regset_type): New.
1954 (struct regset_info): Add type field. Use new operation types.
1955 (struct linux_target_ops): stop_pc renamed to get_pc.
1956 Add decr_pc_after_break and breakpoint_at.
1957 (get_process, get_thread_proess, get_process_thread)
1958 (strut process_info, all_processes, linux_attach_lwp)
1959 (thread_db_init): New.
1961 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
1962 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1963 (the_low_target): Add new members.
1964 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1965 (i386_store_fpxregset): Constify.
1966 (target_regsets): Add new kind identifier.
1967 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1968 (i386_set_pc): Add debugging.
1969 (i386_breakpoint_at): New function.
1970 (the_low_target): Add new members.
1971 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
1972 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1973 (mips_breakpoint_at): New.
1974 (the_low_target): Add new members.
1975 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1976 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1977 (the_low_target): Add new members.
1978 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
1979 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1980 (the_low_target): Add new members.
1981 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
1984 2002-06-11 Michal Ludvig <mludvig@suse.cz>
1986 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
1987 (unwind_tmp_obstack_free, parse_frame_info)
1988 (update_context, cfi_read_fp, cfi_write_fp)
1989 (cfi_frame_chain, cfi_init_extra_frame_info)
1990 (cfi_virtual_frame_pointer): Use the above function.
1991 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
1993 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
1995 * v850-tdep.c (v850_type_is_scalar): New function.
1996 (v850_use_struct_convention): Match current gcc implementation
1997 as close as possible.
1998 (v850_push_arguments): Fix stack_offset handling. Don't write
1999 struct_addr into register. This is done by v850_store_struct_return.
2000 (v850_extract_return_value): Care for structs.
2001 (v850_store_return_value): Ditto.
2002 (v850_store_struct_return): Actually write address.
2004 2002-06-11 Michal Ludvig <mludvig@suse.cz>
2006 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
2007 without debug information too.
2009 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2011 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
2012 Make multi-arch pure.
2013 * gdbarch.h, gdbarch.c: Re-generate.
2014 * arm-tdep.c (arm_print_float_info): Update.
2015 * arch-utils.h (default_print_float_info): Update.
2016 * arch-utils.c (default_print_float_info): Update.
2017 * infcmd.c (float_info): Update call.
2019 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2021 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
2022 the front of the initialize list.
2024 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2026 * infrun.c (struct inferior_status): Replace fields
2027 selected_frame_address and selected_level with field
2029 (save_inferior_status): Update. Use get_frame_id.
2030 (struct restore_selected_frame_args): Delete.
2031 (restore_selected_frame): Update. Use frame_find_by_id.
2032 (restore_inferior_status): Update.
2034 * breakpoint.h (struct breakpoint): Change type of
2035 watchpoint_frame to frame_id.
2036 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
2037 call to get_current_frame.
2038 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
2040 (watchpoint_check): Use frame_find_by_id.
2042 * frame.h (record_selected_frame): Delete declaration.
2043 * stack.c (record_selected_frame): Delete function.
2045 * frame.h (struct frame_id): Define.
2046 (get_frame_id): Declare.
2047 (frame_find_by_id): Declare.
2048 * frame.c (frame_find_by_id): New function.
2049 (get_frame_id): New function.
2051 2002-06-10 Andrey Volkov <avolkov@transas.com>
2053 * ser-e7kpc.c: Fix duplicated define and call of
2054 _initialize_ser_e7000pc
2056 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
2058 * signals/signals.c (target_signal_from_host): Fix #ifdef
2060 (do_target_signal_to_host): Likewise.
2062 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
2064 * mips-tdep.c (mips_find_abi_section): New function.
2065 (mips_gdbarch_init): Call it.
2067 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2069 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
2070 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
2071 after Andrew's 2002-06-08 gdbarch change.
2073 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2075 * i386-linux-nat.c (suppy_gregset): Don't supply
2076 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
2078 (fill_gregset): Don't fetch it under the same circumstances.
2080 2002-06-09 Andrew Cagney <cagney@redhat.com>
2082 * Makefile.in (callback_h): Define.
2083 (remote_sim_h): Update path to remote-sim.h.
2084 (remote-rdp.o): Add $(callback_h).
2085 (remote-sim.o): Use $(callback_h).
2086 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
2087 * remote-rdp.c: Include "gdb/callback.h".
2089 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2091 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
2092 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
2094 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2096 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
2097 * rdi-share/serpardr.c: Ditto.
2098 * rdi-share/unixcomm.c: Ditto.
2099 * rdi-share/serdrv.c: Ditto.
2100 * rdi-share/hostchan.h: Ditto.
2101 * rdi-share/hostchan.c: Ditto.
2102 * rdi-share/host.h: Ditto.
2103 * rdi-share/devsw.c: Ditto.
2105 * objfiles.h: Change type of obj_private to void pointer.
2106 * pa64solib.c: Update copyright. Don't include "assert.h", use
2107 strcmp instead of STREQ, use LONGEST, do not use PTR
2108 * somsolib.c: Ditto.
2110 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
2111 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
2112 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
2114 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2116 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
2117 (default_get_saved_register): Delete function.
2118 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
2119 generic_unwind_get_saved_register.
2120 * gdbarch.h, gdbarch.c: Re-generate.
2122 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2124 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
2125 generic_func_frame_chain_valid.
2126 * gdbarch.h, gdbarch.c: Re-generate.
2127 * blockframe.c (generic_func_frame_chain_valid): Only check
2128 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
2129 passing FP to PC_IN_CALL_DUMMY.
2132 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2134 * gdbarch.sh (struct gdbarch_data): Add field init_p.
2135 (register_gdbarch_data): Initialize init_p.
2136 (gdbarch_data): Initialize data pointer using the init function.
2137 (init_gdbarch_data): Delete function.
2138 (gdbarch_update_p): Update.
2139 (initialize_non_multiarch): Update.
2140 (struct gdbarch): Add field initialized_p.
2141 * gdbarch.h, gdbarch.c: Re-generate.
2143 2002-06-07 Michal Ludvig <mludvig@suse.cz>
2145 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
2146 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
2147 better do the things actually here.
2148 * x86-64-tdep.c (x86_64_register_name2nr): New.
2149 (x86_64_register_name): Renamed to x86_64_register_nr2name.
2150 (x86_64_gdbarch_init): Respect the above change.
2151 * x86-64-tdep.h (x86_64_register_name2nr)
2152 (x86_64_register_nr2name): Add prototypes.
2153 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
2155 2002-06-06 Michael Snyder <msnyder@redhat.com>
2157 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
2158 Delete extra braces and re-indent.
2159 (d10v_store_return_value): Char return values
2160 must be shifted over by one byte in R0.
2161 (d10v_extract_return_value): Delete extra braces, re-indent.
2163 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2165 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
2166 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
2167 (d10v_integer_to_address): Rewrite.
2168 (d10v_frame_init_saved_regs): When reading fp and sp registers use
2169 the d10v specific functions which take care of converting to the
2172 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2174 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
2175 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
2177 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2179 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
2181 * config/tm-linux.h: Ditto.
2182 * config/alpha/tm-alphalinux.h: Ditto.
2183 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
2184 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
2185 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
2186 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
2187 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
2188 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
2189 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
2190 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
2191 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
2192 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
2193 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
2194 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2195 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
2196 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
2197 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
2198 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
2199 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
2200 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
2201 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
2202 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
2203 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
2204 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
2205 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
2206 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
2207 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
2208 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
2209 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
2210 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
2211 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
2212 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
2213 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
2214 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
2215 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
2216 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
2217 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
2218 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
2219 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
2221 2002-05-04 Aidan Skinner <aidan@velvet.net>
2223 * ada-exp.tab.c: New file
2224 * ada-exp.y: New file
2225 * ada-lang.c: New file
2226 * ada-lang.h: New file
2227 * ada-lex.c: New file
2228 * ada-lex.l: New file
2229 * ada-tasks.c: New file
2230 * ada-typeprint.c: New file
2231 * ada-valprint.c: New file
2233 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2235 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
2236 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
2238 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2240 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
2241 insetead of ppc-linux-tdep.o.
2242 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
2243 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
2245 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2247 2002-05-07 Christian Groessler <chris@groessler.org>
2248 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
2249 bit register contents for little endian hosts.
2251 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2253 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
2256 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2258 * gdbarch.h: Regenerate.
2260 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2262 * MAINTAINERS: Add everyone to write-after-approval list.
2264 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2266 * stack.c (frame_info): Use frame_register_unwind instead of
2267 saved_regs. Mention when the SP is on the stack or in a register.
2269 * frame.h (frame_register_unwind_ftype): Define. Document.
2270 (struct frame_info): Add field register_unwind and
2271 register_unwind_cache.
2272 (frame_register_unwind): Declare.
2273 (generic_unwind_get_saved_register): Declare.
2275 * frame.c (frame_register_unwind): New function.
2276 (generic_unwind_get_saved_register): New function.
2278 * blockframe.c (generic_call_dummy_register_unwind): New function.
2279 (frame_saved_regs_register_unwind): New function.
2280 (set_unwind_by_pc): New function.
2281 (create_new_frame): New function.
2282 (get_prev_frame): New function.
2284 2002-05-30 Andrew Cagney <ac131313@redhat.com>
2286 * a29k-share/: Delete directory.
2287 * remote-vx29k.c: Delete file.
2289 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2291 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
2292 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2294 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2296 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
2297 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2300 (sparcnbsd-tdep.o): New dependency lists.
2301 * NEWS: Note new UltraSPARC NetBSD native configuration.
2302 * configure.host (sparc64-*-netbsd*): New host.
2303 * configure.tgt (sparc-*-netbsdelf*)
2304 (sparc-*-netbsd*): Set gdb_target to nbsd.
2305 (sparc64-*-netbsd*): New target.
2306 * sparc64nbsd-nat.c: New file.
2307 * sparcnbsd-nat.c: New file.
2308 * sparcnbsd-tdep.c: New file.
2309 * sparcnbsd-tdep.h: New file.
2310 * config/sparc/nbsd.mt: New file.
2311 * config/sparc/nbsd64.mh: New file.
2312 * config/sparc/nbsd64.mt: New file.
2313 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
2314 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2316 * config/sparc/nbsdaout.mt: Remove.
2317 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
2318 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2320 * config/sparc/nbsdelf.mt: Remove.
2321 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
2322 sparc-nat.c compatiblity defines.
2323 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
2324 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
2325 * config/sparc/tm-nbsd64.h: New file.
2326 * config/sparc/tm-nbsdaout.h: Remove.
2327 * config/sparc/xm-nbsd.h: Remove.
2329 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2331 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
2332 * sparc-tdep.c: Include osabi.h.
2333 (gdbarch_tdep): Add osabi member.
2334 (_initialize_sparc_tdep): Use gdbarch_register.
2335 (sparc_gdbarch_init): Use generic OS ABI framework.
2336 (sparc_dump_tdep): New function.
2338 2002-05-30 Kevin Buettner <kevinb@redhat.com>
2340 * corefile.c (do_captured_read_memory_integer): Return non-zero
2342 (safe_read_memory_integer): Copy result of memory read when
2343 status is non-zero. Also, add comments.
2345 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
2347 * Makefile.in (ppc_tdep_h): Define.
2350 (rs6000-tdep.o): Use $(ppc_tdep_h).
2353 (ppcnbsd-tdep.o): New dependency lists.
2354 * ppc-tdep.h: Use generic OS ABI framework.
2355 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
2356 (ppc_linux_init_abi): New functions.
2357 (ppc_sysv_abi_broken_use_struct_convention)
2358 (ppc_sysv_abi_use_struct_convention)
2359 (ppc_sysv_abi_push_arguments): Move to...
2360 * ppc-sysv-tdep.c: ...here.
2361 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
2362 * rs6000-tdep.c (process_note_abi_tag_sections)
2363 (get_elfosabi): Remove.
2364 (rs6000_gdbarch_init): Use generic OS ABI framework.
2365 (rs6000_dump_tdep): New function.
2366 (_initialize_rs6000_tdep): Use gdbarch_register.
2367 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
2368 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2369 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
2370 of ppc-linux-tdep.o.
2371 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
2372 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
2373 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
2374 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
2375 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
2376 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
2378 2002-05-29 Jim Blandy <jimb@redhat.com>
2380 * macroscope.c (default_macro_scope): Put `void' in empty argument
2383 2002-05-29 Andrew Cagney <ac131313@redhat.com>
2385 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
2386 * arch-utils.c: Include "sim-regno.h".
2387 * gdbarch.sh: Don't include "sim-regno.h".
2388 * gdbarch.h, gdbarch.c: Regenerate.
2389 * sim-regno.h (legacy_register_sim_regno): Move declaration from
2391 * arch-utils.h (legacy_register_sim_regno): To here.
2392 * remote-sim.c (legacy_register_sim_regno): Move function from
2394 * arch-utils.c (legacy_register_sim_regno): To here.
2396 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2398 * sim-regno.h: New file.
2399 * Makefile.in (sim_regno_h): Define.
2400 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
2401 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
2402 (legacy_register_sim_regno): New function.
2403 (one2one_register_sim_regno): New function.
2404 (gdbsim_fetch_register): Rewrite.
2405 (gdbsim_store_register): Only store a register when
2406 REGISTER_SIM_REGNO is valid.
2407 * d10v-tdep.c: Include "sim-regno.h".
2408 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
2409 (d10v_ts3_register_sim_regno): Ditto.
2410 * gdbarch.sh: Include "sim-regno.h".
2411 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
2412 * gdbarch.h, gdbarch.c: Regenerate.
2413 * arch-utils.h (default_register_sim_regno): Delete declaration.
2414 * arch-utils.c (default_register_sim_regno): Delete function.
2416 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2418 * ppcnbsd-nat.c: Rewrite.
2419 * ppcnbsd-tdep.c: New file.
2420 * ppcnbsd-tdep.h: New file.
2421 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
2422 solib.o, and solib-svr4.o.
2423 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
2424 nbsd-tdep.o, and corelow.o.
2426 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2428 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
2429 `tr' and `sed'. Mention that `broken' targets are not expected to
2432 2002-05-27 Michal Ludvig <mludvig@suse.cz>
2434 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
2435 Let PC point right after the prologue before looking up symbols.
2437 2002-05-27 Martin M. Hunt <hunt@redhat.com>
2439 * i386-tdep.c (i386_register_virtual_type): Return
2440 builtin_type_vec128i for SSE registers.
2442 * gdbtypes.h (builtin_type_vec128i): Declare.
2444 * gdbtypes.c (build_builtin_type_vec128i): New function.
2445 (builtin_type_v2_double, builtin_type_v4_int64): New types.
2446 (builtin_type_vec128i): New type for SSE2 128-bit registers.
2447 (build_gdbtypes): Initialize new builtin vector types.
2448 (_initialize_gdbtypes): Register new vector types with gdbarch.
2450 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2452 * MAINTAINERS: ns32k is not longer an obsolete candidate,
2453 since it has been multi-arch'd.
2454 * NEWS: Note that ns32k-*-* is now partial multi-arch.
2455 Move Alpha and VAX multi-arch news entries to same section
2456 as other multi-arch news.
2458 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2460 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
2461 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
2462 static. Rename some register numbers to put them in ns32k-tdep
2464 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
2465 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
2467 (_initialize_ns32k_tdep): Use gdbarch_register.
2468 * ns32k-tdep.h: New file.
2469 * ns32knbsd-tdep.c: New file.
2470 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
2471 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
2472 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
2473 REGISTER_BYTES, REGISTER_BYTE): Remove.
2474 * config/ns32k/tm-ns32k.h: New file.
2475 * config/ns32k/tm-umax.h: Remove.
2477 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2479 * ns32k-tdep.c (ns32k_saved_pc_after_call,
2480 ns32k_store_struct_return, ns32k_extract_return_value,
2481 ns32k_store_return_value, ns32k_extract_struct_value_address): New
2483 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
2484 ns32k_saved_pc_after_call.
2485 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
2486 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
2487 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
2488 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
2489 ns32k_extract_struct_value_address.
2491 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2493 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
2494 ns32k_fix_call_dummy): New.
2495 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
2496 ns32k_call_dummy_words.
2497 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
2498 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
2499 CALL_DUMMY_NARGS): Remove.
2500 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
2502 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2504 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
2505 ns32k_frame_saved_pc, ns32k_frame_args_address,
2506 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
2507 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
2508 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
2509 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
2510 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
2511 (BREAKPOINT): Remove..
2512 (FRAME_CHAIN): Define as ns32k_frame_chain.
2513 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
2514 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
2515 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
2516 (FRAME_FIND_SAVED_REGS): Remove.
2517 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
2518 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
2519 (POP_FRAME): Define as ns32k_pop_frame.
2521 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2523 * ns32k-tdep.c (ns32k_register_byte_32082,
2524 ns32k_register_byte_32382, ns32k_register_raw_size,
2525 ns32k_register_virtual_size, ns32k_register_virtual_type): New
2527 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
2528 ns32k_register_byte_32382.
2529 * config/ns32k/tm-umax.h: Update copyright years.
2530 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
2531 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
2532 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
2533 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
2534 (ns32k_get_enter_addr): Fix prototype.
2536 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2538 * ns32k-tdep.c: Update copyright years.
2539 (ns32k_register_name_32082): New function.
2540 (ns32k_register_name_32382): Ditto.
2541 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
2542 (REGISTER_NAME): Define as ns32k_register_name_32382.
2543 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
2544 (REGISTER_NAME): Define as ns32k_register_name_32082.
2546 2002-05-24 Jim Blandy <jimb@redhat.com>
2548 * dwarf2read.c (free_line_header): Use xfree, not free.
2550 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
2552 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
2553 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
2555 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2557 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
2559 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2561 From Ross Alexander at NEC Europe:
2562 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
2564 2002-05-23 Michael Snyder <msnyder@redhat.com>
2566 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
2567 for input, rather than parse_and_eval_address.
2569 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2571 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
2572 * Makefile.in (sim_d10v_h): Update definition.
2574 2002-05-24 Andrew Cagney <cagney@redhat.com>
2576 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
2577 change `2002-05-22 Michael Snyder' below.
2578 (d10v_push_arguments): Ditto.
2579 (d10v_extract_return_value): Ditto.
2581 2002-05-23 Jim Blandy <jimb@redhat.com>
2583 * macrotab.c (check_for_redefinition): Don't complain if the new
2584 definition is the same as the previous one. Take more arguments
2585 to allow the comparison.
2586 (macro_define_object, macro_define_function): Pass more arguments
2587 to check_for_redefinition.
2589 2002-05-22 Michael Snyder <msnyder@redhat.com>
2591 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
2592 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
2593 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
2594 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
2595 Don't bail if return_pc is PC_IN_CALL_DUMMY.
2596 Add a temp variable to save a call (and a memory read).
2597 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
2598 if possible (so that PC_IN_CALL_DUMMY will work).
2600 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
2602 * MAINTAINERS: Remove status `OBSOLETE' from v850.
2604 2002-05-22 Michal Ludvig <mludvig@suse.cz>
2606 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
2608 (dwarf2_build_frame_info): Corrected handling of eh_frame.
2609 (dwarf2_build_frame_info): Add offset to fde->initial_location
2610 so that frames of shared libraries are mapped correctly.
2611 (execute_stack_op): Change type of 'result' from ULONGEST to
2614 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2616 * config/alpha/tm-nbsd.h: Include solib.h.
2618 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2620 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
2621 assumptions about the host's byte order.
2623 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2625 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
2627 * alphanbsd-tdep.c: Include solib-svr4.h.
2628 * shnbsd-tdep.c: Ditto.
2630 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2632 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
2633 nbsd-tdep.h to dependency list.
2634 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
2635 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
2636 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
2637 nbsdaout.mh and nbsdelf.mh consistently.
2638 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
2639 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
2640 nbsdaout.mt and nbsdelf.mh consistently.
2641 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
2642 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
2643 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2644 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
2645 a.out shared library stuff from here...
2646 * config/nm-nbsdaout.h: ...to here.
2647 * config/tm-nbsd.h: Remove.
2648 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
2649 * config/arm/nbsd.mh: Remove.
2650 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
2652 * config/arm/nbsdaout.mh: New file.
2653 * config/arm/nbsdelf.mh: New file.
2654 * config/arm/nm-nbsdaout.h: New file.
2655 * config/i386/nbsd.mh: Remove.
2656 * config/i386/nbsd.mt: Remove.
2657 * config/i386/nbsdaout.mh: New file.
2658 * config/i386/nbsdaout.mt: New file.
2659 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2660 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
2661 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
2662 i386_register_u_addr): Remove.
2663 * config/i386/nm-nbsdaout.h: New file.
2664 * config/i386/nm-nbsdelf.h: Remove.
2665 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
2666 (USE_STRUCT_CONVENTION): Remove.
2667 * config/i386/tm-nbsdaout.h: New file.
2668 * config/i386/tm-nbsdelf.h: Remove.
2669 * config/m68k/nbsd.mh: Remove.
2670 * config/m68k/nbsd.mt: Remove.
2671 * config/m68k/nbsdaout.mh: New file.
2672 * config/m68k/nbsdaout.mt: New file.
2673 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
2674 * config/m68k/nm-nbsdaout.h: New file.
2675 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2676 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2677 * config/ns32k/nbsd.mh: Remove.
2678 * config/ns32k/nbsd.mt: Remove.
2679 * config/ns32k/nbsdaout.mh: New file.
2680 * config/ns32k/nbsdaout.mt: New file.
2681 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
2682 * config/ns32k/nm-nbsdaout.h: New file.
2683 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2684 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2685 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
2686 (SVR4_SHARED_LIBS): Remove.
2687 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
2688 * config/sparc/nbsd.mh: Remove.
2689 * config/sparc/nbsd.mt: Remove.
2690 * config/sparc/nbsdaout.mh: New file.
2691 * config/sparc/nbsdaout.mt: New file.
2692 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2693 * config/sparc/nbsdelf.mt: New file.
2694 * config/sparc/nm-nbsdaout.h: New file.
2695 * config/sparc/nm-nbsdelf.h: Remove.
2696 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
2697 * config/sparc/tm-nbsdaout.h: New file.
2699 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2701 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
2703 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
2705 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2707 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
2709 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
2711 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2713 * NEWS: Note new MIPS NetBSD native configuration.
2714 * configure.host (mips*-*-netbsd*): New host.
2715 * configure.tgt (mips*-*-netbsd*): New target.
2716 * mipsnbsd-nat.c: New file.
2717 * mipsnbsd-tdep.c: New file.
2718 * mipsnbsd-tdep.h: New file.
2719 * config/mips/nbsd.mh: New file.
2720 * config/mips/nbsd.mt: New file.
2721 * config/mips/nm-nbsd.h: New file.
2722 * config/mips/tm-nbsd.h: New file.
2724 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2726 * Makefile.in (SFILES): Add osabi.c.
2727 (COMMON_OBS): Add osabi.o.
2728 (osabi.o): New dependency list.
2729 * osabi.c: New file.
2730 * osabi.h: New file.
2731 * doc/gdbint.texinfo: Document new generic OS ABI framework.
2733 * Makefile.in (alpha_tdep_h): Define and use instead of
2735 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
2736 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
2738 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
2739 * alpha-tdep.h: Include osabi.h.
2740 (alpha_abi): Remove.
2741 (gdbarch_tdep): Use generic OS ABI framework.
2742 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
2743 gdbarch_register_osabi.
2744 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
2745 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
2746 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
2748 * Makefile.in (sh_tdep_h): Add osabi.h.
2749 * sh-tdep.h (sh_osabi): Remove.
2750 (gdbarch_tdep): Use generic OS ABI framework.
2751 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
2752 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
2753 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
2754 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
2756 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
2757 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
2758 gdbarch_register_osabi.
2759 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
2760 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
2761 (get_elfosabi): Rename to...
2762 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
2763 ABI framework support routines.
2764 (arm_gdbarch_init): Use generic OS ABI framework.
2765 (arm_dump_tdep): Likewise.
2766 (_initialize_arm_tdep): Likewise.
2767 * arm-tdep.h: Include osabi.h.
2769 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
2771 (arm_gdbarch_register_os_abi): Remove prototype.
2772 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
2773 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
2775 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
2776 * mips-tdep.c: Include osabi.h.
2777 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
2780 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
2782 * h8300-tdep.c: Fix formatting.
2784 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
2786 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
2787 printing vector registers.
2789 2002-05-19 Andrew Cagney <ac131313@redhat.com>
2791 From Fernando Nasser:
2792 * remote.c (remote_async_open_1): Re-throw the exception when the
2794 (remote_cisco_open): Ditto.
2795 (remote_open_1): Ditto.
2797 2002-05-19 Andrew Cagney <ac131313@redhat.com>
2799 * remote.c (remote_start_remote_dummy): Add uiout parameter.
2800 (remote_start_remote): Add uiout parameter. Pass through to
2801 remote_start_remote_dummy.
2802 (remote_open_1): Use catch_exception instead of catch_errors.
2803 (remote_async_open_1): Ditto.
2804 (remote_cisco_open): Ditto.
2806 2002-05-19 Andrew Cagney <ac131313@redhat.com>
2808 * remote.c (remote_start_remote): Replace PTR with void pointer.
2809 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
2812 2002-05-18 Andrew Cagney <ac131313@redhat.com>
2814 * gdb_indent.sh: Allow the script to be run in the sim directory.
2816 2002-05-18 Mark Kettenis <kettenis@gnu.org>
2818 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
2819 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
2821 * corelow.c (core_open): Only call set_gdbarch_from_file if
2824 2002-05-17 Andrey Volkov <avolkov@transas.com>
2826 * h8300-tdep.c: Add support of EXR register
2827 * config/h8300/tm-h8300.h: Ditto.
2829 2002-05-17 Andrey Volkov <avolkov@transas.com>
2831 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
2833 2002-05-17 Andrey Volkov <avolkov@transas.com>
2835 * h8300-tdep.c: Change literal regnums to REGNO.
2837 2002-05-17 Jim Blandy <jimb@redhat.com>
2839 * NEWS: Note addition of macro support.
2841 Expand preprocessor macros in C expressions.
2842 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
2843 (scan_macro_expansion, scanning_macro_expansion,
2844 finished_macro_expansion): New function declarations.
2845 (expression_macro_lookup_func, expression_macro_lookup_baton): New
2846 variable declarations.
2847 * parser-defs.h (expression_context_pc): New declaration.
2848 * parse.c (expression_context_pc): New variable.
2849 (parse_exp_1): Set expression_context_pc, as well as
2850 expression_context_block.
2851 * c-exp.y (yylex): If we're not already reading the result of a
2852 macro expansion, try to macro-expand the next token. When we're
2853 done scanning a macro expansion, switch back to the mainline text.
2854 Commas and `if's in a macro's expansion don't terminate the input.
2855 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
2856 (macro_original_text, macro_expanded_text,
2857 expression_macro_lookup_func, expression_macro_lookup_baton): New
2859 (scan_macro_expansion, scanning_macro_expansion,
2860 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
2861 c_preprocess_and_parse): New functions.
2862 (c_language_defn, cplus_language_defn, asm_language_defn): Call
2863 c_preprocess_and_parse, instead of c_parse.
2864 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
2865 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
2867 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
2869 * sh-tdep.c (gdb_print_insn_sh64): Delete.
2870 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
2871 (sh_gdbarch_init): Always use gdb_print_insn_sh.
2873 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
2875 * NEWS: Add section for multi-arched targets. Add v850 to that section.
2877 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2879 * Makefile.in (sh_tdep_h): Define and use.
2880 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
2881 register enum): Move to...
2882 * * sh-tdep.h: ...here.
2883 * sh-tdep.c: Include sh-tdep.h.
2884 * sh3-rom.c: Likewise.
2885 * shnbsd-tdep.c: Likewise.
2887 2002-05-16 Michael Snyder <msnyder@redhat.com>
2889 * arm-tdep.c: Spelling fix in comment.
2891 2002-05-16 Jim Blandy <jimb@redhat.com>
2893 Add commands for manually expanding macros and showing their
2895 * macrocmd.c, macroscope.c, macroscope.h: New files.
2896 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
2897 (macroscope_h): New variable.
2898 (HFILES_NO_SRCDIR): Add macroscope.h.
2899 (COMMON_OBS): Add macrocmd.o, macroscope.o.
2900 (macroscope.o, macrocmd.o): New rules.
2902 Teach the Dwarf 2 reader to read macro information.
2903 * dwarf2read.c: #include "macrotab.h".
2904 (dwarf_macinfo_buffer): New variable.
2905 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
2907 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
2908 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
2909 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
2910 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
2911 dwarf2_macro_spaces_in_definition): New complaints.
2912 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
2913 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
2914 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
2915 the partial symbol table.
2916 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
2917 from what's recorded in the partial symbol table.
2918 (read_file_scope): If the compilation unit has a
2919 `DW_AT_macro_info' attribute, read its macro information.
2920 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
2922 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
2925 * ser-tcp.c: Don't include <netinet/udp.h>.
2927 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
2929 * MAINTAINERS: Update my email address.
2931 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
2933 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
2934 include file of the same name.
2936 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2938 * configure.tgt: Mark v850 as multi-arched.
2939 * config/v850/tm-v850.h: Remove file.
2940 * config/v850/v850.mt: Eliminate TM_FILE.
2942 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2944 * v850-tdep.c: Full multi-arch.
2945 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
2946 Define GDB_MULTI_ARCH to 2.
2948 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
2950 * p-exp.y (current_type): New static variable.
2951 Carries the type of the expression at the position that is parsed.
2952 (push_current_type, pop_current_type): Two new functions. Used
2953 to store/restore current_type in expression on specific tokens.
2954 (search_field): New static variable. Set to one after parsing a point
2955 as at that point only a FIELDNAME token should be searched.
2956 (FIELDNAME): New token. After a point only a token belonging to
2957 current_type type definition is allowed.
2958 (all over token rules): reset and change current_type according
2960 (exp '[' rule): insert implicit array index field if
2961 exp is a pascal string type.
2963 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2965 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
2966 frame info. Use frame_info's saved_regs instead of matching member
2967 in extra_frame_info throughout.
2968 (v850_frame_init_saved_regs): New function.
2969 (v850_init_extra_frame_info): Move most functionality into
2970 v850_frame_init_saved_regs().
2971 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
2972 (v850_frame_find_saved_regs): Remove declaration.
2973 (FRAME_FIND_SAVED_REGS): Remove definition.
2974 (v850_frame_init_saved_regs): Add declaration.
2975 (FRAME_INIT_SAVED_REGS): Add definition.
2977 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2979 * v850-tdep.c: Begin multi-arch'ing v850.
2980 (v850_target_architecture_hook): Remove function.
2981 (v850_gdbarch_init): New function. Add code previously in
2982 v850_target_architecture_hook().
2983 (_initialize_v850_tdep): Don't set target_architecture_hook.
2984 Call register_gdbarch_init() instead.
2986 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
2988 * gdbtypes.h (struct cplus_struct_type): Remove args field.
2989 * hpread.c (hpread_read_struct_type): Remove assignments to args.
2990 (fixup_class_method_type): Likewise.
2992 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
2994 From Martin Pool <mbp@samba.org>:
2995 * gdbserver/server.c (gdbserver_usage): New function.
2998 2002-05-15 Jim Blandy <jimb@redhat.com>
3000 Add macro structures to GDB's symbol tables. Nobody puts anything
3002 * symtab.h (struct symtab): New member: `macro_table'.
3003 * buildsym.h (pending_macros): New global variable.
3004 * buildsym.c: #include "macrotab.h".
3005 (buildsym_init): Initialize `pending_macros'.
3006 (end_symtab): If we found macro information while reading a CU's
3007 debugging info, do build a symtab structure for it. Make the
3008 symtab point to the macro information, and clear the
3009 `pending_macros' pointer which held it while we were reading the
3011 (really_free_pendings): Free any pending macro table.
3012 * objfiles.h (struct objfile): New member: `macro_cache'.
3013 * objfiles.c (allocate_objfile): Set allocate and free functions
3014 for the macro cache's objstack.
3015 (free_objfile): Empty the macro cache's obstack.
3016 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
3017 set new allocate and free functions for it.
3018 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
3019 free functions for the macro cache's objstack. (Why is this
3020 function building its own objfile?)
3021 * symmisc.c (print_objfile_statistics): Print statistics on the
3023 * Makefile.in: Note that buildsym.o depends on macrotab.h.
3025 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
3027 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
3028 (REGISTER_U_ADDR): Delete definition.
3029 (arm_register_u_addr): Delete declaration.
3031 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
3033 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
3034 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
3036 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3038 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
3041 2002-05-14 Andrew Cagney <ac131313@redhat.com>
3043 * regcache.c (register_valid): Revise comments refering to "Not
3044 available" and "unavailable".
3045 * frame.c (frame_register_read): Ditto.
3046 * findvar.c (value_of_register): Ditto.
3048 2002-05-15 Andrew Cagney <cagney@redhat.com>
3050 * Makefile.in (remote_sim_h): Replace remote-sim_h.
3051 (remote-sim.o): Update dependencies.
3052 (d10v-tdep.o): Specify dependencies.
3053 (sim_d10v_h): Define.
3055 2002-05-14 Jim Blandy <jimb@redhat.com>
3057 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
3058 * macrotab.c (macro_lookup_inclusion, find_definition,
3059 new_macro_table): Same.
3061 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
3062 not `! strcmp ()'. This is a dubious improvement.
3063 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
3065 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
3066 although it's not necessary, to avoid a warning.
3068 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3070 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
3071 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
3072 TYPE_INSTANCE_FLAGS.
3073 (struct main_type): New.
3074 (struct type): Move most members to struct main_type. Change
3075 cv_type and as_type to new type_chain member. Add instance_flags.
3076 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
3077 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
3078 (finish_cv_type): Remove prototype.
3079 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
3081 (alloc_type_instance): New function.
3082 (smash_type): New function.
3083 (make_pointer_type, make_reference_type, make_function_type)
3084 (smash_to_member_type, smash_to_method_type): Call smash_type.
3085 (make_qualified_type): New function.
3086 (make_type_with_address_space): Call make_qualified_type.
3087 (make_cv_type): Likewise.
3088 (finish_cv_type): Remove unnecessary function.
3089 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
3090 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
3091 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
3092 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
3093 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
3094 * hpread.c (hpread_read_struct_type): Likewise.
3095 * stabsread.c (read_struct_type): Likewise.
3097 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
3099 * configure.tgt: Add a catch all sh* target, for cases like
3100 sh[2,3,4]-elf and sh-hms.
3102 2002-05-14 Keith Seitz <keiths@redhat.com>
3104 * event-loop.c (create_file_handler): Don't do anything but
3105 update data when we are given a fd which we are already
3108 2002-05-14 Michal Ludvig <mludvig@suse.cz>
3110 * dwarf2cfi.c (context_cpy): Copy registers correctly.
3111 (update_context): Use __func__ in warnings.
3113 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3115 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
3116 and tcp_close to net_open and net_close.
3117 (net_open): Accept "udp:" and "tcp:" specifications. Connect
3118 using UDP if requested. Don't try to disable Nagle on UDP
3120 * remote.c (remote_serial_open): New function. Warn about UDP.
3121 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
3123 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
3125 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
3127 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
3129 * configure.tgt: Remove sh-hms target.
3130 * MAINTAINERS: Don't list sh-hms as a separate target.
3132 2002-05-13 Jim Blandy <jimb@redhat.com>
3134 Add first preprocessor macro-expansion files.
3135 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3136 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3137 (splay_tree_h, macroexp_h, macrotab_h): New variable.
3138 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3139 (COMMON_OBS): Add macrotab.o, macroexp.o.
3140 (macroexp.o, macrotab.o): New rules.
3142 2002-05-13 Andrew Cagney <ac131313@redhat.com>
3144 * config/m88k/tm-m88k.h: Update copyright.
3145 (m88k_target_write_pc): Declare
3146 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
3147 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
3148 (SHIFT_INST_REGS): Update definition.
3149 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
3150 using old definition of TARGET_WRITE_PC.
3151 * regcache.c (generic_target_write_pc): Delete code handling
3153 * gdbarch.sh (NNPC_REGNUM): Delete.
3154 * gdbarch.h, gdbarch.c: Regenerate.
3156 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
3158 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
3161 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
3163 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
3164 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
3165 (gen_address_of, gen_struct_ref, gen_repeat): Use type
3167 * c-typeprint.c (cp_type_print_method_args): Likewise.
3168 (c_type_print_args): Likewise.
3169 * d10v-tdep.c (d10v_push_arguments): Likewise.
3170 (d10v_extract_return_value): Likewise.
3171 * expprint.c (print_subexp): Likewise.
3172 * gdbtypes.c (lookup_primitive_typename): Likewise.
3173 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
3174 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
3175 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
3176 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
3177 (TYPE_VECTOR): Likewise.
3178 * hpread.c (hpread_read_struct_type)
3179 (fix_static_member_physnames, fixup_class_method_type)
3180 (hpread_type_lookup): Likewise.
3181 * mdebugread.c (parse_symbol, parse_type): Likewise.
3182 * p-lang.c (is_pascal_string_type): Likewise.
3183 * valops.c (hand_function_call): Likewise.
3184 * x86-64-tdep.c (classify_argument): Likewise.
3186 * hpread.c (hpread_read_function_type)
3187 (hpread_read_doc_function_type): Call replace_type.
3188 * dstread.c (create_new_type): Delete.
3189 (decode_dst_structure, process_dst_function): Call alloc_type.
3190 Use type access macros.
3192 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3194 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
3195 the're not supported by the current architecture.
3196 (i387_fill_fxsave): Likewise.
3198 2002-05-12 Fred Fish <fnf@redhat.com>
3200 * symfile.c (default_symfile_offsets): Arrange for uninitialized
3201 sect_index_xxx members to index the first slot in section_offsets
3202 if all of the section_offsets are zero.
3204 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3206 * configure.tgt (sparc-*openbsd): Remove entry accidentially
3207 checked in with last change.
3209 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3211 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
3212 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
3215 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
3217 * Makefile.in: Update dependencies.
3219 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3221 * language.c (local_hex_string_custom): Simplify. Do not depend
3222 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
3224 * memattr.c (mem_info_command): Replace calls to
3225 longest_local_hex_string and longest_local_hex_string_custom.
3226 * buildsym.c (make_blockvector): Ditto.
3227 * solib.c (info_sharedlibrary_command): Ditto.
3228 * tracepoint.c (tracepoints_info): Ditto.
3229 * symtab.c (print_msymbol_info): Ditto.
3231 * language.c (local_hex_string): Delete.
3232 (local_hex_string_custom): Delete.
3233 (longest_local_hex_string): Rename to local_hex_string.
3234 (longest_local_hex_string_custom): Rename to
3235 local_hex_string_custom.
3236 * language.h (local_hex_string): Change parameter type to LONGEST.
3237 (local_hex_string_custom): Ditto.
3238 (longest_local_hex_string): Delete declaration.
3239 (longest_local_hex_string_custom): Ditto.
3241 * solib.c: Update copyright.
3242 * memattr.c: Update copyright.
3244 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3246 * arch-utils.h (legacy_register_to_value): Declare.
3247 (legacy_value_to_register): Declare.
3248 (legacy_convert_register_p): Declare.
3249 * arch-utils.c (legacy_register_to_value): New function.
3250 (legacy_value_to_register): New function.
3251 (legacy_convert_register_p): New function.
3253 * gdbarch.sh (REGISTER_TO_VALUE): Define.
3254 (VALUE_TO_REGISTER): Define.
3255 (CONVERT_REGISTER_P): Define.
3256 * gdbarch.h, gdbarch.c: Regenerate.
3258 * valops.c (value_assign): Use CONVERT_REGISTER_P and
3260 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
3263 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
3264 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3266 * Makefile.in: Update dependencies for valops.c.
3267 * valops.c: Include "gdb_assert.h".
3268 (typecmp): Skip THIS parameter to methods.
3269 (find_method_list): Remove static_memfuncp argument,
3270 update callers. Check for stub methods.
3271 (find_value_oload_method_list): Don't set *static_memfuncp.
3272 (find_overload_match): Don't check for stub methods. Assert
3273 that methods are not stubbed. Handle static methods.
3274 (value_find_oload_method_list): Remove static_memfuncp argument.
3275 * gdbtypes.c (check_stub_method): Do not add THIS pointer
3276 to the argument list for static stub methods.
3277 * value.h (value_find_oload_method_list): Update prototype.
3279 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3281 * arch-utils.h (generic_register_size): Declare.
3282 (generic_register_raw_size, generic_register_virtual_size): Delete
3284 * arch-utils.c (generic_register_raw_size): Delete.
3285 (generic_register_size): New function.
3286 (generic_register_virtual_size): Delete.
3288 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
3289 default generic_register_size.
3290 * gdbarch.h, gdbarch.c: Re-generate.
3292 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
3293 register_virtual_size.
3294 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
3295 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3297 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3299 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
3300 * gdbarch.h, gdbarch.c: Regenerate.
3301 * gnu-v3-abi.c: Update copyright.
3302 (vtable_address_point_offset): Update.
3303 (gnuv3_rtti_type): Update.
3304 (gnuv3_baseclass_offset): Update.
3305 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
3306 (init_fetch_link_map_offsets): Update.
3307 * remote.c (get_remote_state): Update.
3309 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3311 * TODO: Remove value_headof/value_from_vtable_info comment.
3312 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
3313 * values.c (value_headof, value_from_vtable_info): Delete.
3314 * value.h (value_from_vtable_info): Delete prototype.
3316 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3318 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
3319 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
3321 (gdb_assert_h): Define.
3322 (gdb_wait_h): Define.
3323 (gdb_regex_h): Define.
3325 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3327 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3328 * linespec.c (find_methods): Handle GCC 3.x template constructors.
3330 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3332 * nbsd-tdep.c: Fix comment.
3334 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3336 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
3337 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
3338 (nbsd-tdep.o): New dependency list.
3339 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
3341 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
3342 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
3343 * nbsd-tdep.c: New file.
3344 * nbsd-tdep.h: New file.
3345 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
3347 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
3348 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3349 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3350 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3352 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3354 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
3355 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
3356 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
3357 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
3358 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
3359 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
3361 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3363 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
3364 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3365 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
3366 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
3367 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
3368 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
3369 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
3371 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3373 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
3374 fetch_elfcore_registers to...
3375 * i386nbsd-tdep.c: ...here.
3376 (i386nbsd_use_struct_convention): Rename to...
3377 (i386nbsd_aout_use_struct_convention): ...this.
3378 (i386nbsd_supply_reg): New function.
3379 (i386nbsd_fill_reg): New function.
3380 (fetch_core_registers): Use i386nbsd_supply_reg.
3381 (fetch_elfcore_registers): Likewise.
3382 (_initialize_i386nbsd_tdep): New function.
3383 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
3384 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3385 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
3386 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
3387 (i386nbsd_aout_use_struct_convention): ...this.
3389 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3391 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
3392 (store_inferior_registers): Use shnbsd_fill_reg.
3393 * shnbsd-tdep.c (sh_nbsd_supply_registers,
3394 sh_nbsd_supply_register): Collapse into...
3395 (shnbsd_supply_reg): ...this.
3396 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
3397 (shnbsd_fill_reg): ...this.
3398 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
3399 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
3400 (fetch_core_registers): Use shnbsd_supply_reg.
3401 (fetch_elfcore_registers): Use shnbsd_supply_reg.
3402 (sh_nbsd_core_fns): Rename to...
3403 (shnbsd_core_fns): ...this.
3404 (sh_nbsd_elfcore_fns): Rename to...
3405 (shnbsd_elfcore_fns): ...this.
3406 (sh_nbsd_init_abi): Rename to...
3407 (shnbsd_init_abi): ...this.
3408 (_initialize_sh_nbsd_tdep): Rename to...
3409 (_initialize_shnbsd_tdep): ...this.
3410 * shnbsd-tdep.h (sh_nbsd_supply_registers,
3411 sh_nbsd_supply_register, sh_nbsd_fill_registers,
3412 sh_nbsd_fill_register): Remove prototypes.
3413 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
3415 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3417 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
3418 (i387-nat.o): Delete dependency list.
3419 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
3420 (x86-64-linux-nat.o): Likewise.
3421 * i387-nat.c: Delete file, moving contents to...
3422 * i387-tdep.c: ...here.
3423 * i387-nat.h: Rename...
3424 * i387-tdep.h: ...to this.
3425 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
3426 * i386-linux-nat.c: Likewise.
3427 * i386bsd-nat.c: Likewise.
3428 * i386gnu-nat.c: Likewise.
3429 * i386nbsd-nat.c: Likewise.
3430 * i386v4-nat.c: Likewise.
3431 * x86-64-linux-nat.c: Likewise.
3432 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
3433 * config/i386/go32.mh (NATDEPFILES): Likewise.
3434 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
3435 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
3436 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
3437 * config/i386/linux.mh (NATDEPFILES): Likewise.
3438 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
3439 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3440 * config/i386/obsd.mh (NATDEPFILES): Likewise.
3441 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3443 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3445 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
3446 (alphanbsd-nat.o): Remove dependency list.
3447 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
3448 * alphanbsd-nat.c: Delete. Contents moved to...
3449 * alphanbsd-tdep.c: ...here.
3450 (_initialize_alphanbsd_tdep): Register core functions.
3451 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
3453 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3455 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
3456 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
3457 (alphanbsd-nat.o): Likewise.
3458 (alphabsd-tdep.o): New dependency list.
3459 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
3460 (fill_gregset): Use alphabsd_fill_reg.
3461 (supply_fpregset): Use alphabsd_supply_fpreg.
3462 (fill_fpregset): Use alphabsd_fill_fpreg.
3463 (fetch_inferior_registers): Use struct reg and struct fpreg
3464 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
3465 and alphabsd_supply_fpreg.
3466 (store_inferior_registers): Use struct reg and struct fpreg
3467 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
3468 and alphabsd_fill_fpreg.
3469 * alphabsd-tdep.c: New file.
3470 * alphabsd-tdep.h: New file.
3471 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
3472 (fetch_elfcore_registers): Use alphabsd_supply_reg and
3473 alphabsd_supply_fpreg.
3474 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
3475 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3477 2002-05-11 Eric Christopher <echristo@redhat.com>
3479 * mips-tdep.c (mips_double_register_type): Fix thinko.
3480 (mips_single_register_type): Ditto.
3481 * MAINTAINERS: Add self.
3483 2002-05-11 Mark Kettenis <kettenis@gnu.org>
3485 * i387-nat.c (i387_supply_register, i387_fill_fsave,
3486 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
3487 right thing on architectures with different endianness and/or
3490 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
3492 From Christian Limpach <chris@Pin.LU>
3493 * configure.in: Change sed expression which comments out
3494 NATDEPFILES to also comment out continuation lines.
3495 * configure: Regenerate.
3497 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3499 * sh-tdep.c: Clean up code erroneously reintroduced by previous
3502 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3504 * sh-tdep.c: Include correct file.
3506 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3508 New support for sh64-elf (sh5) target.
3510 * configure.tgt: For sh64-elf target, default to sh-elf.
3512 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
3513 (struct gdbarch_tdep): Add new fields for new registers and ABI
3516 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
3517 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
3518 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
3519 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
3520 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
3521 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
3522 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
3523 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
3524 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
3525 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
3526 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
3527 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
3528 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
3529 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
3530 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
3531 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
3532 sh64_get_gdb_regnum, sh64_media_reg_base_num,
3533 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
3534 sign_extend, sh64_nofp_frame_init_saved_regs,
3535 sh64_init_extra_frame_info, sh64_get_saved_register,
3536 sh64_extract_struct_value_address, sh64_pop_frame,
3537 sh64_push_arguments, sh64_extract_return_value,
3538 sh64_store_return_value, sh64_show_media_regs,
3539 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
3540 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
3541 sh_sh64_register_virtual_type,
3542 sh_sh64_register_convert_to_virtual,
3543 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
3544 sh64_register_read, sh64_pseudo_register_write,
3545 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
3546 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
3547 sh64_do_pseudo_register, sh_compact_do_registers_info,
3548 sh64_do_registers_info, sh_gdbarch_init): New functions.
3550 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3552 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
3554 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
3556 * linespec.c (decode_line_1): Check for a double quote after
3557 a filename correctly.
3559 2002-05-10 Jim Blandy <jimb@redhat.com>
3561 Properly track the size of the current objfile's .debug_line section.
3562 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
3563 (DWARF_LINE_SIZE): New macro.
3564 (dwarf2_build_psymtabs_hard): Record the line section's size in
3565 the partial symbol table.
3566 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
3569 2002-05-10 Petr Sorfa <petrs@caldera.com>
3571 * ia64-tdep.c: Handle breakpoints on L instruction type
3572 in MLX instruction bundle by moving the breakpoint to
3573 the third slot (X instruction type) as L holds only data.
3575 2002-05-10 Kevin Buettner <kevinb@redhat.com>
3577 * dbxread.c (discarding_local_symbols_complaint): New complaint.
3578 (process_one_symbol): Complain about discarding local symbols
3579 due to a misplaced N_LBRAC entry.
3581 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
3583 From Daniel Berlin <dan@cgsoftware.com>
3584 * linespec.c (find_toplevel_char): '<' and '>' also increase and
3585 decrease the depth we are at, in the case of templates.
3587 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
3589 * mips-tdep.c (mips_float_register_type): New function.
3590 (mips_double_register_type): New function.
3591 (mips_print_register): Use them.
3592 (do_fp_register_row): Likewise.
3594 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
3596 * signals/signals.c (signals): Remove conditional compilation around
3597 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
3598 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
3600 2002-05-09 Michael Snyder <msnyder@redhat.com>
3602 * remote-rdp.c (remote_rdp_can_run): Remove.
3604 2002-05-09 Tom Tromey <tromey@redhat.com>
3606 * jv-valprint.c (java_val_print): Handle `char' as a special case
3609 2002-05-09 Michael Snyder <msnyder@redhat.com>
3611 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
3612 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
3613 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
3614 str r(0123),[sp,#nn].
3615 (arm_skip_prologue): Ditto. Also make disassembly
3616 order-independent by placing it in a loop.
3618 2002-05-06 Michael Snyder <msnyder@redhat.com>
3620 * stabsread.c (read_type): Add recognition for new attribute:
3621 "@V;" means that an array type is actually a vector.
3622 This is analogous to the vector flag that's been added to dwarf2.
3624 2002-05-09 Mark Kettenis <kettenis@gnu.org>
3626 * i386-tdep.h (i386_abi): New enum.
3627 (struct gdbarch_tdep): Replace os_ident member with abi.
3628 (i386_gdbarch_register_os_abi): New prototype.
3629 * i386-tdep.c (i386_abi_names): New array.
3630 (process_note_abi_tag_sections): Removed.
3631 (process_note_sections): New function.
3632 (i386_elf_abi_from_note, i386_elf_abi): New functions.
3633 (struct i386_abi_handler): New struct.
3634 (i386_abi_handler_list): New variable.
3635 (i386_gdbarch_register_os_abi): New function.
3636 (i386_gdbarch_init): Adapt for the changes given above.
3638 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
3640 * gregset.h: Say "GNU/Linux".
3642 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
3644 * gdbtypes.c : Add new builtin type for 64 bit vectors.
3645 (build_gdbtypes): Build builtin_type_v2_float.
3646 (_initialize_gdbtypes): Register new builtin type.
3648 2002-05-08 Andrew Cagney <ac131313@redhat.com>
3650 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
3651 (clear_gdbarch_swap): New function.
3652 (initialize_non_multiarch): Call.
3653 (gdbarch_update_p): Before calling init(), swap out and clear the
3654 existing architecture.
3655 * gdbarch.c: Regenerate.
3657 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3659 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
3662 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3664 * sh-nbsd-nat.c: Rename to...
3665 * shnbsd-nat.c: ...this.
3666 * sh-nbsd-tdep.c: Rename to...
3667 * shnbsd-tdep.c: ...this.
3668 * sh-nbsd-tdep.h: Rename to...
3669 * shnbsd-tdep.h: ...this.
3670 * config/sh/nbsd.mh: Use shnbsd-nat.o.
3671 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
3673 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
3675 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
3676 concatenation for command help messages.
3678 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3680 * NEWS: Note new sh*-*-netbsdelf* configuration.
3681 * configure.host: Set gdb_host_cpu to sh for all sh*.
3682 (sh*-*-netbsdelf*): New host.
3683 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
3684 (sh*-*-netbsdelf*): New target.
3685 * sh-nbsd-nat.c: New file.
3686 * sh-nbsd-tdep.c: New file.
3687 * sh-nbsd-tdep.h: New file.
3688 * config/sh/nbsd.mh: New file.
3689 * config/sh/nbsd.mt: New file.
3690 * config/sh/nm-nbsd.h: New file.
3691 * config/sh/tm-nbsd.h: New file.
3693 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3695 * sh-tdep.c (sh_osabi_names): Declare.
3696 (process_note_abi_tag_sections): New function.
3697 (get_elfosabi): Ditto.
3698 (sh_gdbarch_register_os_abi): Ditto.
3699 (sh_dump_tdep): Ditto.
3700 _initialize_sh_tdep): Use gdbarch_register to register
3701 sh_gdbarch_init and sh_dump_tdep.
3702 * config/sh/tm-sh.h (sh_osabi): Declare.
3703 (gdbarch_tdep): Add sh_osabi and osabi_name members.
3705 2002-05-07 Andrew Cagney <ac131313@redhat.com>
3707 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
3708 (thumb_scan_prologue): Ditto.
3709 (arm_find_callers_reg): Ditto.
3710 (arm_frame_chain): Ditto.
3711 (arm_init_extra_frame_info): Ditto.
3712 (arm_frame_saved_pc): Ditto.
3713 (arm_pop_frame): Ditto.
3714 (arm_push_return_address): New function.
3715 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
3716 call_dummy_location, call_dummy_breakpoint_offset_p,
3717 call_dummy_breakpoint_offset, call_dummy_p,
3718 call_dummy_stack_adjust_p, call_dummy_words,
3719 sizeof_call_dummy_words, call_dummy_start_offset,
3720 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
3721 call_dummy_address, push_return_address and push_dummy_frame for
3722 generic dummy frames.
3724 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3726 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
3727 size computation for alloca.
3728 (sh_fp_frame_init_saved_regs): Likewise.
3730 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
3732 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
3733 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
3734 * arm-tdep.c (arm_store_return_value): Use them.
3735 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
3736 * remote-rdp.c (remote_rdp_fetch_register): Use
3737 ARM_MAX_REGISTER_RAW_SIZE.
3738 (remote_rdp_store_register): Likewise.
3740 2002-05-07 Michal Ludvig <mludvig@suse.cz>
3742 * dwarf2cfi.c: Code cleanup, removed unused variables,
3743 added default labels to switch {} statements.
3744 * x86-64-tdep.c: Ditto.
3745 * x86-64-linux-nat.c: Ditto.
3747 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3749 * solib.h: Protect against multiple inclusion.
3751 2002-05-06 Jim Blandy <jimb@redhat.com>
3753 Add first preprocessor macro-expansion files.
3754 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3755 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3756 (splay_tree_h, macroexp_h, macrotab_h): New variable.
3757 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3758 (COMMON_OBS): Add macrotab.o, macroexp.o.
3759 (macroexp.o, macrotab.o): New rules.
3761 Separate the job of reading the line number info statement program
3762 header (...expialidocious) out into its own function.
3763 * dwarf2read.c (struct line_head, struct filenames, struct
3764 directories): Replace with...
3765 (struct line_header): New structure, containing the full
3766 contents of the statement program header, including the
3767 include directory and file name tables.
3768 (read_file_scope): If we have line number info, instead of just
3769 calling dwarf_decode_lines to do all the work, call
3770 dwarf_decode_line_header first to get a `struct line_header'
3771 containing the data in the statement program header, and then
3772 pass that to dwarf_decode_lines, which will pick up where that
3773 left off. Be sure to clean up the `struct line_header' object.
3774 (dwarf_decode_line_header, free_line_header, add_include_dir,
3775 add_file_name): New functions.
3776 (dwarf_decode_lines): Move all the code to read the statement
3777 program header into dwarf_decode_line_header. Take the line
3778 header it built as the first argument, instead of the offset to
3779 the compilation unit's line number info. Use the new `struct
3780 line_header' type instead of the old structures. No need to do
3781 cleanups here now, since we don't allocate anything.
3782 (dwarf2_statement_list_fits_in_line_number_section,
3783 dwarf2_line_header_too_long): New complaints.
3785 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
3787 * gdbtypes.c (init_vector_type): New function.
3788 (build_builtin_type_vec128): Simplify the representation of SIMD
3790 (build_gdbtypes): Initialize new builtin vector types.
3791 (_initialize_gdbtypes): Register new vector types with gdbarch.
3792 (builtin_type_v4_float, builtin_type_v4_int32,
3793 builtin_type_v8_int16, builtin_type_v16_int8,
3794 builtin_type_v2_int32, builtin_type_v4_int16,
3795 builtin_type_v8_int8): New (renamed) SIMD types.
3797 2002-05-06 Mark Kettenis <kettenis@gnu.org>
3799 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
3800 (i387_fill_fxsave): Likewise.
3802 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
3804 * alpha-tdep.c (alpha_extract_return_value): Don't use
3805 non-constant array size in prototype.
3807 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3809 From Brian Taylor <briant at model dot com>:
3810 * ui-out.c (ui_out_field_core_addr): Use the function
3811 longest_local_hex_string_custom'to format addresses > 32 bits
3814 * ui-out.c (ui_out_field_core_addr): Update comment.
3816 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3818 * stack.c (select_and_print_frame): Make static. Delete the
3820 (func_command): Update call.
3821 (select_frame_command): Delete code computing the frame level.
3822 * frame.h (select_and_print_frame): Delete declaration.
3824 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3826 * sparc-tdep.c (sparc_get_saved_register): Comment why
3827 get_prev_frame call is safe.
3829 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3831 * frame.h (select_frame): Delete level parameter.
3832 * stack.c (select_frame): Update. Use frame_relative_level to
3833 obtain the frame's level.
3834 (select_and_print_frame): Update call.
3835 (select_frame_command): Ditto.
3836 (up_silently_base): Ditto.
3837 (down_silently_base): Ditto.
3838 * ocd.c (ocd_start_remote): Ditto.
3839 * remote-rdp.c (remote_rdp_open): Ditto.
3840 * remote-mips.c (mips_initialize): Ditto.
3841 (common_open): Ditto.
3842 * remote-e7000.c (e7000_start_remote): Ditto.
3843 * m3-nat.c (select_thread): Ditto.
3844 * hppa-tdep.c (child_get_current_exception_event): Ditto.
3845 (child_get_current_exception_event): Ditto.
3846 * varobj.c (varobj_create): Ditto.
3847 (varobj_update): Ditto.
3848 (c_value_of_root): Ditto.
3849 * tracepoint.c (finish_tfind_command): Ditto.
3850 * corelow.c (core_open): Ditto.
3851 * arch-utils.c (generic_prepare_to_proceed): Ditto.
3852 * thread.c (info_threads_command): Ditto.
3853 (switch_to_thread): Ditto.
3854 * infrun.c (normal_stop): Ditto.
3855 (restore_selected_frame): Ditto.
3856 (restore_inferior_status): Ditto.
3857 * breakpoint.c (insert_breakpoints): Ditto.
3858 (watchpoint_check): Ditto.
3859 (bpstat_stop_status): Ditto.
3860 (do_enable_breakpoint): Ditto.
3861 * blockframe.c (flush_cached_frames): Ditto.
3862 (reinit_frame_cache): Ditto.
3864 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3866 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
3869 2002-05-04 Jim Blandy <jimb@redhat.com>
3871 * gdbtypes.c (replace_type): Doc fix.
3873 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3875 * valprint.c (strcat_longest): Delete commented out function.
3878 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3880 * MAINTAINERS: Mark a29k as deleted.
3881 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
3882 Move new configurations to the top.
3883 * configure.tgt: Remove a29k.
3884 * config/a29k/tm-vx29k.h: Delete.
3885 * config/a29k/vx29k.mt: Delete.
3886 * config/a29k/tm-a29k.h: Delete.
3887 * config/a29k/a29k-udi.mt: Delete.
3888 * config/a29k/a29k.mt: Delete.
3889 * a29k-tdep.c: Delete.
3890 * remote-udi.c: Delete.
3891 * remote-mm.c: Delete.
3892 * remote-eb.c: Delete.
3893 * remote-adapt.c: Delete.
3894 * Makefile.in: Remove obsolete code.
3895 * gdbserver/Makefile.in: Ditto.
3896 * config/s390/s390x.mt: Ditto.
3897 * config/s390/s390.mt: Ditto.
3898 * config/sparc/sparclynx.mh: Ditto.
3899 * config/sparc/linux.mh: Ditto.
3900 * config/pa/hppaosf.mh: Ditto.
3901 * config/pa/hppabsd.mh: Ditto.
3902 * config/ns32k/nbsd.mt: Ditto.
3903 * config/mips/vr5000.mt: Ditto.
3904 * config/m68k/sun3os4.mh: Ditto.
3905 * config/m68k/nbsd.mt: Ditto.
3906 * config/m68k/m68klynx.mh: Ditto.
3907 * config/m32r/m32r.mt: Ditto.
3908 * config/i386/x86-64linux.mt: Ditto.
3909 * config/i386/nbsdelf.mt: Ditto.
3910 * config/i386/nbsd.mt: Ditto.
3911 * config/i386/i386lynx.mh: Ditto.
3913 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3915 * target.c (debug_print_register): New function. Handle oversize
3917 (debug_to_fetch_registers): Call.
3918 (debug_to_store_registers): Call.
3920 2002-05-03 Jim Blandy <jimb@redhat.com>
3922 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
3923 (read_type): Doc fix.
3924 * gdbtypes.c (replace_type): Doc fix.
3926 * stabsread.c (multiply_defined_struct): New complaint.
3927 (read_struct_type): If the type we were passed isn't empty, or
3928 incomplete, don't read the new struct type into it; complain,
3929 and return the original type unchanged. Take a new `type_code'
3930 argument, which is the type code for the new type.
3931 (read_type): Rather than storing the type's type code here, pass
3932 it as an argument to read_struct_type, and let that take care of
3933 storing it. That way, we don't overwrite the original type code,
3934 so read_struct_type can use it to decide whether we're overwriting
3935 something we shouldn't.
3936 (complain_about_struct_wipeout): New function.
3938 2002-05-03 Andrew Cagney <ac131313@redhat.com>
3940 * gdbarch.sh: Assert that gdbarch is non-NULL.
3941 * gdbarch.c: Regenerate.
3943 2002-05-03 Jason Merrill <jason@redhat.com>
3945 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
3948 2002-05-03 Michal Ludvig <mludvig@suse.cz>
3950 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
3951 (x86_64_dwarf2gdb_regno_map_length),
3952 (x86_64_dwarf2_reg_to_regnum): Added.
3953 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
3954 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
3955 (_initialize_x86_64_tdep): Synced with the change above.
3956 (x86_64_skip_prologue): Reformulated message.
3958 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3960 * f-exp.y: Also use new prev_lexptr variable
3961 to improve error reporting. Based on Michael Snyder
3962 2002-04-24 dated patch to c-exp.y.
3963 * jv-exp.y: Likewise.
3964 * m2-exp.y: Likewise.
3966 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
3968 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
3969 we are dealing with vectors.
3971 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3973 * config/m68k/tm-nbsd.h: Obvious fix,
3974 correct machine name.
3976 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3978 * p-typeprint.c (pascal_type_print_base): Add support
3979 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
3981 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3983 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
3984 for fondamental pascal 'char' type.
3986 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3988 * p-lang.h (is_pascal_string_type): Declaration changed,
3989 new sixth argument of type char ** added.
3990 * p-lang.c (is_pascal_string_type): Implementation
3991 changed. Args length_pos, length_size, string_pos, char_size
3992 can now be NULL. New argument arrayname set to the field
3993 name of the char array. Return value set to char array
3994 field index plus one.
3995 * p-valprint.c (pascal_val_print): Adapt to new declaration of
3996 is_pascal_string_type function.
3998 2002-05-02 Andrew Cagney <cagney@redhat.com>
4000 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
4001 <cagney@redhat.com> change.
4002 * gdbarch.c: Regenerate.
4004 2002-05-02 Andrew Cagney <cagney@redhat.com>
4006 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
4007 before probing for a new one. Detect errorenous gdbarch_init
4009 * gdbarch.c: Regenerate.
4011 2002-05-01 Andrew Cagney <cagney@redhat.com>
4013 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
4014 * config/mcore/tm-mcore.h: Ditto. Update copyright.
4015 * config/v850/tm-v850.h: Ditto. Update copyright.
4017 2002-04-30 Andrew Cagney <ac131313@redhat.com>
4019 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
4022 2002-04-30 Michael Snyder <msnyder@redhat.com>
4024 * arm-tdep.c: Whitespace clean-ups.
4025 (arm_skip_prologue): Fix thinko; two lines
4026 should have been removed as part of 4/24 change.
4028 2002-04-30 Kevin Buettner <kevinb@redhat.com>
4030 * rs6000-tdep.c: Added comment describing how fpscr register
4031 numbers were chosen.
4033 2002-04-30 Michael Snyder <msnyder@redhat.com>
4035 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
4037 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
4039 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
4040 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
4041 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
4043 2002-04-29 Kevin Buettner <kevinb@redhat.com>
4045 From Louis Hamilton <hamilton@redhat.com>:
4046 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
4047 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
4048 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
4049 not bfd-private xcoff data, to determine wordsize.
4050 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
4052 2002-04-29 Andrew Cagney <ac131313@redhat.com>
4054 GDB 5.2 released from 5.2 branch.
4056 2002-04-29 Michal Ludvig <mludvig@suse.cz>
4058 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
4059 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4060 (x86_64_register_info_table): Added comments with register numbers.
4062 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
4064 * rs6000-tdep.c (rs6000_extract_return_value,
4065 rs6000_store_return_value): Handle returning vectors.
4066 (rs6000_gdbarch_init): Use
4067 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
4068 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
4070 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
4072 (ppc_sysv_abi_push_arguments): Handle vector parameters.
4073 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
4075 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4077 * hpread.c (hpread_psymtab_to_symtab_1,
4078 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
4079 with fprintf_unfiltered (gdb_stderr,...).
4081 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4083 * remote-array.c (printf_monitor, write_monitor,
4084 array_insert_breakpoint, array_remove_breakpoint ):
4085 Replace fprintf (stderr,...
4086 with fprintf_unfiltered (gdb_stderr,....
4087 * remote-es.c: Likewise.
4088 * remote-os9k.c: Likewise.
4089 * remote-st.c: Likewise.
4091 2002-04-28 Andreas Schwab <schwab@suse.de>
4093 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
4094 linux-proc.o and gcore.o.
4096 2002-04-26 Michal Ludvig <mludvig@suse.cz>
4098 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
4099 code without frame pointers.
4101 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4103 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
4106 2002-04-26 Ben Elliston <bje@redhat.com>
4108 * target.c (do_xfer_memory): Correct reference to the new option
4109 "trust-readonly-sections".
4111 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
4113 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
4114 * gdbtypes.c (recursive_dump_type): Output the vector flag.
4115 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
4117 (read_array_type): Record the fact that this array type is really a
4118 vector (i.e. are passed in by value).
4120 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
4122 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
4123 * alpha-tdep.c (alpha_sigcontext_addr): New function.
4124 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
4125 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
4126 * alpha-linux-tdep.c: Include frame.h.
4127 (alpha_linux_sigcontext_addr): New function.
4128 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
4129 alpha_linux_sigcontext_addr.
4130 * alpha-osf1-tdep.c: Include gdbcore.h.
4131 (alpha_osf1_sigcontext_addr): New function.
4132 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
4133 alpha_osf1_sigcontext_addr.
4134 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
4135 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
4137 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4139 * stack.c (selected_frame_level):
4140 (select_frame): Do not set selected_frame_level.
4141 * frame.h (selected_frame_level): Delete declaration.
4143 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4145 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
4146 convert_from_func_ptr-addr when AIX / PowerOpen.
4148 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4150 * valops.c (hand_function_call): Call
4151 generic_save_call_dummy_addr.
4152 * frame.h (generic_save_call_dummy_addr): Declare.
4153 * blockframe.c (struct dummy_frame): Add fields call_lo and
4155 (generic_find_dummy_frame): Check for PC in range call_lo to
4156 call_hi instead of entry_point_address.
4157 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
4158 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
4159 (generic_save_call_dummy_addr): New function.
4161 2002-04-24 David S. Miller <davem@redhat.com>
4163 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
4164 sparc_skip_prologue.
4165 (sparc_skip_prologue): Kill frameless_p arg, and use line number
4166 information to find prologue when possible.
4167 (sparc_prologue_frameless_p): Call examine_prologue directly.
4168 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
4169 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
4171 (SKIP_PROLOGUE): Likewise.
4173 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4175 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
4176 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
4177 indicate that the condition it was testing is always true.
4178 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
4179 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4180 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4182 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4184 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
4185 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
4186 tdep->jb_pc and tdep->jb_elt_size.
4187 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
4188 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
4189 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4190 * alpha-nat.c (get_longjmp_target): Remove.
4191 (JB_ELEMENT_SIZE): Ditto.
4193 * alpha-tdep.c (alpha_get_longjmp_target): New function.
4194 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
4195 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
4196 to alpha_get_longjmp_target.
4197 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
4198 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
4199 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
4201 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4203 * README: Update to GDB 5.2.
4205 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4207 * gdbarch.sh (LC_ALL): Set to `c'.
4209 2002-04-25 Theodore A. Roth <troth@verinet.com>
4211 * avr-tdep.c: Ran through gdb_indent.sh.
4213 2002-04-25 Theodore A. Roth <troth@verinet.com>
4215 * MAINTAINERS: Add myself as AVR maintainer.
4216 * NEWS: Note new target avr.
4218 2002-04-25 Theodore A. Roth <troth@verinet.com>
4220 * Makefile.in: Add support for AVR target.
4221 * configure.tgt: Add support for AVR target.
4222 * avr-tdep.c: New file
4223 * config/avr/avr.mt: New file.
4225 2002-04-25 Theodore A. Roth <troth@verinet.com>
4227 * MAINTAINERS: Add myself to write-after-approval.
4229 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4231 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
4232 with fprintf_unfiltered (gdb_stderr,....
4234 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4237 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
4239 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4241 * p-exp.y: Also use new prev_lexptr variable
4242 to improve error reporting. Based on Michael Snyder
4243 2002-04-24 dated patch to c-exp.y.
4245 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4247 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
4248 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
4249 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
4251 * config/alpha/tm-alpha.h: Remove forward decls of struct type
4253 (FUNCTION_START_OFFSET): Remove.
4254 (BREAKPOINT): Ditto.
4256 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4258 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
4261 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4263 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
4264 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
4265 alpha_linux_pc_in_sigtramp.
4266 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
4267 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
4268 alpha_osf1_pc_in_sigtramp.
4269 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
4270 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
4271 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4272 alphafbsd_pc_in_sigtramp.
4273 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
4274 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4275 alphanbsd_pc_in_sigtramp.
4276 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
4277 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
4279 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4281 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4283 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4285 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
4287 (alphanbsd-nat.o): New dependency list.
4288 (alphanbsd-tdep.o): Ditto.
4289 * NEWS: Note new native NetBSD/alpha configuration.
4290 * alphanbsd-nat.c: New file.
4291 * alphanbsd-tdep.c: Ditto.
4292 * configure.host (alpha*-*-netbsd*): New host.
4293 * configure.tgt (alpha*-*-netbsd*): New target.
4294 * config/alpha/nbsd.mh: New file.
4295 * config/alpha/nbsd.mt: Ditto.
4296 * config/alpha/nm-nbsd.h: Ditto.
4297 * config/alpha/tm-nbsd.h: Ditto.
4299 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4301 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
4302 (alpha-osf1-tdep.o): New dependency list.
4303 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
4304 and skip_sigtramp_frame members.
4305 * alpha-linux-tdep.c: Include gdbcore.h.
4306 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
4307 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
4308 * alpha-osf1-tdep.c: New file.
4309 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
4311 (alpha_frame_past_sigtramp_frame): New function.
4312 (alpha_dynamic_sigtramp_offset): Ditto.
4313 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
4314 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
4315 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
4316 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
4317 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
4318 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
4319 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
4320 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
4321 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
4322 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
4323 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
4324 to find_solib_trampoline_target.
4325 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
4326 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
4327 (SKIP_TRAMPOLINE_CODE): Remove.
4328 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4329 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4330 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4331 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4332 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
4333 (PROC_SIGTRAMP_MAGIC): Ditto.
4334 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4335 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4336 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4337 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4338 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4340 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4342 * NEWS: Note that Alpha targets are now multi-arch.
4344 2002-04-24 Michael Snyder <msnyder@redhat.com>
4346 * parser-defs.h (prev_lexptr): New external variable.
4347 * parse.c (parse_exp_1): Set prev_lexptr to null before
4348 calling the language-specific parser.
4349 * c-exp.y (yylex): Set prev_lexptr to start of current token.
4350 (yyerror): Use prev_lexptr in error reporting.
4352 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
4354 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
4355 * gregset.h: If FILL_FPXREGSET is defined, provide
4356 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
4357 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
4358 is defined, call fill_fpxregset.
4360 2002-04-24 Roland McGrath <roland@frob.com>
4362 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
4363 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
4364 (supply_gregset, supply_fpregset): New functions.
4366 * gnu-nat.c (gnu_find_memory_regions): New function.
4367 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
4368 (gnu_xfer_memory): Add a cast.
4370 2002-04-24 Michael Snyder <msnyder@redhat.com>
4372 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
4373 loop. Add handling for "str lr, [sp, #-4]!" and for saves
4374 of argument regs ("str r(0123), [r11, #-nn"]).
4375 (arm_skip_prologue): Better handling for frameless functions.
4376 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
4377 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
4379 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
4381 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
4382 NUM_PSEUDO_REGS can be used.
4384 2002-04-24 Andrew Cagney <ac131313@redhat.com>
4386 * arch-utils.h: Update copyright.
4388 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
4389 * gdbarch.h, gdbarch.c: Re-generate.
4391 * inferior.h (IN_SIGTRAMP): Delete definition.
4392 * arch-utils.c (legacy_pc_in_sigtramp): New function.
4393 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
4395 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
4396 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
4397 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
4398 (find_proc_framesize): Ditto.
4399 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
4400 (alpha_init_extra_frame_info): Ditto.
4401 * infrun.c (handle_inferior_event): Ditto.
4402 (handle_inferior_event): Ditto.
4403 (check_sigtramp2): Ditto.
4404 * blockframe.c (create_new_frame): Ditto.
4405 (get_prev_frame): Ditto.
4406 * ppc-linux-tdep.c: Update comments.
4407 * i386-linux-tdep.c: Update comments.
4408 * breakpoint.c (bpstat_what): Update comment.
4410 2002-04-24 Michal Ludvig <mludvig@suse.cz>
4412 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
4413 (regsets_store_inferior_registers): Removed cast to int from
4415 * gdbserver/regcache.h: Added declaration of struct inferior_info.
4417 2002-04-24 David S. Miller <davem@redhat.com>
4419 * i960-tdep.c (register_in_window_p): New function.
4420 (i960_find_saved_register): Use it instead of
4421 REGISTER_IN_WINDOW_P.
4422 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
4424 * symtab.h (find_stab_function_addr): Kill extern.
4425 * minsyms.c (find_stab_function_addr): Remove from here...
4426 * dbxread.c: ... to here, and mark it static.
4428 2002-04-20 David S. Miller <davem@redhat.com>
4430 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
4431 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
4433 2002-04-21 David S. Miller <davem@redhat.com>
4435 * remote-vxsparc.c (vx_read_register): Fix typo, we want
4436 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
4437 (vx_write_register): Likewise.
4439 2002-04-23 J. Brobecker <brobecker@gnat.com>
4441 * source.c (is_regular_file): New function.
4442 (openp): Check wether file to open is a regular file
4443 to avoid opening directories.
4445 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4447 * findvar.c (extract_signed_integer): Cast printf argument
4448 to suppress format warning.
4449 (extract_unsigned_integer): Likewise.
4450 * infcmd.c (registers_info): Likewise.
4451 * top.c (get_prompt_1): Likewise.
4452 * valops.c (value_assign): Likewise.
4453 * valprint.c (print_decimal): Likewise.
4455 2002-04-22 H.J. Lu (hjl@gnu.org)
4457 * c-exp.y (typebase): Support
4459 [long|long long|short] [signed|unsigned] [int|]
4463 signed [long|long long|short] int
4465 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4467 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
4469 * vax-tdep.h: New file.
4470 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
4471 Make several routines static.
4472 (vax_get_saved_register): New function.
4473 (vax_gdbarch_init): New function.
4474 (_initialize_vax_tdep): Register vax_gdbarch_init.
4475 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
4476 Remove macros now under the control of gdbarch.
4478 2002-04-22 Michael Snyder <msnyder@redhat.com>
4480 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
4481 Some whitespace and coding standards tweaks.
4483 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4485 * vax-tdep.c: Include regcache.h.
4486 (vax_call_dummy_words): New.
4487 (sizeof_vax_call_dummy_words): New.
4488 (vax_fix_call_dummy): New function.
4489 (vax_saved_pc_after_call): Ditto.
4490 * config/vax/tm-vax.h: Don't include regcache.h.
4491 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
4492 (CALL_DUMMY): Remove.
4493 (CALL_DUMMY_WORDS): Define.
4494 (SIZEOF_CALL_DUMMY_WORDS): Define.
4495 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
4497 2002-04-18 Michael Snyder <msnyder@redhat.com>
4499 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
4501 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4503 * vax-tdep.c (vax_frame_chain): New function.
4504 (vax_push_dummy_frame): Ditto.
4505 (vax_pop_frame): Ditto.
4506 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
4507 (FRAMELESS_FUNCTION_INVOCATION): Use
4508 generic_frameless_function_invocation_not.
4509 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
4510 (POP_FRAME): Use vax_pop_frame.
4512 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4514 * vax-tdep.c (vax_store_struct_return): New function.
4515 (vax_extract_return_value): Ditto.
4516 (vax_store_return_value): Ditto.
4517 (vax_extract_struct_value_address): Ditto.
4518 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
4519 vax_store_struct_return.
4520 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
4521 (STORE_RETURN_VALUE): Use vax_store_return_value.
4522 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
4524 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4526 * vax-tdep.c (vax_frame_saved_pc): New function.
4527 (vax_frame_args_address_correct): Ditto.
4528 (vax_frame_args_address): Ditto.
4529 (vax_frame_locals_address): Ditto.
4530 (vax_frame_num_args): Move code to be in proximity to
4531 other frame-related functions.
4532 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
4533 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
4534 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
4535 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
4536 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
4538 2002-04-22 H.J. Lu (hjl@gnu.org)
4540 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
4543 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4545 * vax-tdep.c (vax_frame_init_saved_regs): New function.
4546 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
4547 (FRAME_INIT_SAVED_REGS): New macro.
4549 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4551 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
4553 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4555 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
4557 (fetch_osf_core_registers): Likewise.
4558 (supply_gregset): Likewise.
4560 2002-04-22 J. Brobecker <brobecker@gnat.com>
4562 * symfile.h (get_section_index): Define.
4563 * symfile.c (get_section_index): New function.
4564 * mdebugread.c (SC_IS_SBSS): New macro.
4565 (SC_IS_BSS): Return true for the scBss storage class only, as
4566 the scSBss storage class refers to the .sbss section.
4567 (parse_partial_symbols): Discard the symbols which associated
4568 section does not exist.
4569 Make sure to use the .sbss section index for symbols which
4570 storage class is scBss, rather than using the .bss section index.
4572 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4574 * vax-tdep.c: Update copyright years.
4575 (vax_register_name): New function.
4576 (vax_register_byte): Ditto.
4577 (vax_register_raw_size): Ditto.
4578 (vax_register_virtual_size): Ditto.
4579 (vax_register_virtual_type): Ditto.
4580 * config/vax/tm-vax.h: Update copyright years.
4581 (REGISTER_NAMES): Remove.
4582 (REGISTER_NAME): Define.
4583 (REGISTER_BYTE): Use vax_register_byte.
4584 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
4585 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
4586 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
4588 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4590 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
4592 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
4594 2002-04-21 David S. Miller <davem@redhat.com>
4596 * arch-utils.c (generic_prologue_frameless_p): Kill
4597 SKIP_PROLOGUE_FRAMELESS_P code.
4598 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4600 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
4601 * arc-tdep.c (arc_prologue_frameless_p): Implement.
4602 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4604 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
4605 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
4606 (sparc_gdbarch_init): Pass it to
4607 set_gdbarch_prologue_frameless_p.
4609 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4611 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
4612 (alphabsd-nat.o): New dependency list.
4614 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4616 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
4618 (alpha-linux-tdep.o): New dependency list.
4619 (alphafbsd-tdep.o): Likewise.
4621 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4623 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
4625 * alpha-tdep.c: ...from here.
4626 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
4628 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4630 * config/alpha/tm-alpha.h: Move alpha_software_single_step
4631 prototype from here...
4632 * alpha-tdep.h: ...to here.
4634 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4636 * frame.h (selected_frame_level): Document as deprecated.
4637 (frame_relative_level): Declare.
4638 * stack.c (frame_relative_level): New function.
4639 (selected_frame_level): Document as deprecated.
4640 (select_frame): Do not set the selected_frame_level.
4642 * stack.c (frame_info, record_selected_frame): Update.
4643 (frame_command, current_frame_command): Update.
4644 (up_silently_base, up_command, down_silently_base): Update.
4645 (down_command): Update.
4646 * inflow.c (kill_command): Update.
4647 * tracepoint.c (finish_tfind_command): Update.
4648 * corelow.c (core_open): Update.
4649 * thread.c (info_threads_command): Update.
4650 (do_captured_thread_select): Update.
4651 * infcmd.c (finish_command): Update.
4652 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
4654 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4656 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
4658 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4660 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
4663 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4665 * alphafbsd-tdep.c: Update copyright years. Include
4667 (alphafbsd_use_struct_convention): Make static.
4668 (alphafbsd_init_abi): New function.
4669 (_initialize_alphafbsd_tdep): New function.
4670 * config/alpha/tm-fbsd.h: Update copyright years.
4671 (USE_STRUCT_CONVENTION): Remove.
4673 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4675 * alpha-tdep.c (alpha_abi_handler): New structure to describe
4676 an Alpha ABI variant.
4677 (alpha_abi_handler_list): Declare.
4678 (alpha_gdbarch_register_os_abi): New function.
4679 (alpha_gdbarch_init): Give registered ABI variant handlers a
4680 chance to tweak the gdbarch once we have set up defaults.
4681 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
4683 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4685 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
4686 to standard_coerce_float_to_double.
4687 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4689 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4691 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
4692 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
4693 from gdbarch_tdep rather than a constant.
4694 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
4695 the default text address for all Alpha Unix ABIs.
4696 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
4697 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
4699 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4701 * alpha-tdep.h: New file. Includes several Alpha target constants
4703 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
4704 let gdbarch deal with.
4705 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
4706 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
4708 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
4709 Alpha target register names.
4710 * alphabsd-nat.c: Likewise.
4711 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
4712 Alpha target register names. Make serveral routines static.
4713 (alpha_get_saved_register): New function.
4714 (alpha_abi_names): New.
4715 (process_note_abi_tag_sections): New function.
4716 (get_elfosabi): New function.
4717 (alpha_gdbarch_init): New function.
4718 (alpha_dump_tdep): New function.
4719 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
4721 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4723 * frame.c (find_saved_register): Delete #ifdef
4724 HAVE_REGISTER_WINDOWS code.
4725 * config/sparc/tm-sparc.h: Update comments.
4726 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
4728 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4730 * i960-tdep.c (i960_find_saved_register): New function.
4731 (i960_get_saved_register): New function.
4732 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
4733 (i960_get_saved_register): Declare.
4734 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
4736 2002-04-20 David S. Miller <davem@redhat.com>
4738 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
4740 2002-04-20 Andrew Cagney <ac131313@redhat.com>
4742 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
4743 instead of NUM_PSEUDO_REGS.
4745 2002-04-20 David S. Miller <davem@redhat.com>
4747 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
4748 GDB_MULTI_ARCH_PARTIAL
4749 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
4750 define, let tm-sp64.h do it.
4752 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
4754 * frame.c (find_saved_register): Avoid a NULL pointer
4755 dereference and actually walk the frame list.
4757 2002-04-20 Andrew Cagney <ac131313@redhat.com>
4759 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
4760 sorted in most most-recent-used order. Document.
4761 * gdbarch.h, gdbarch.c: Regenerate.
4763 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
4765 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
4766 (add_inferior): Call create_register_cache.
4767 (clear_inferiors): Call free_register_cache.
4768 (inferior_regcache_data, set_inferior_regcache_data): New functions.
4769 * gdbserver/regcache.c (struct inferior_regcache_data): New.
4770 (registers): Remove.
4771 (get_regcache): New function.
4772 (create_register_cache, free_register_cache): New functions.
4773 (set_register_cache): Don't initialize the register cache here.
4774 (registers_to_string, registers_from_string, register_data): Call
4776 * gdbserver/regcache.h: Add prototypes.
4777 * gdbserver/server.h: Likewise.
4779 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
4781 * gdbserver/mem-break.c: New file.
4782 * gdbserver/mem-break.h: New file.
4783 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
4785 * gdbserver/inferiors.c (struct inferior_info): Add target_data
4787 (clear_inferiors): Free target_data member if set.
4788 (inferior_target_data, set_inferior_target_data): New functions.
4789 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
4790 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
4791 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
4792 (struct inferior_linux_data): New.
4793 (linux_create_inferior): Use set_inferior_target_data.
4794 (linux_attach): Likewise. Call add_inferior.
4795 (linux_wait_for_one_inferior): New function.
4796 (linux_wait): Call it.
4797 (linux_write_memory): Add const.
4798 (initialize_low): Call set_breakpoint_data.
4799 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
4801 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
4803 * gdbserver/server.h: Include mem-break.h. Update inferior.c
4805 * gdbserver/target.c (read_inferior_memory)
4806 (write_inferior_memory): New functions.
4807 * gdbserver/target.h (read_inferior_memory)
4808 (write_inferior_memory): Change macros to prototypes.
4809 (struct target_ops): Update comments. Add const to write_memory
4812 2002-04-19 Andrew Cagney <ac131313@redhat.com>
4814 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
4816 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
4817 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
4818 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
4821 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
4824 * gdbtypes.c (init_simd_type): Rewrite using new functions.
4825 (build_builtin_type_vec128): Ditto.
4826 (append_composite_type_field): Fix calculation of type length in
4829 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
4831 * config/djgpp/README: Update.
4833 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
4836 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
4838 * alpha-tdep.c (setup_arbitrary_frame): Rename...
4839 (alpha_setup_arbitrary_frame): ...to this.
4840 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
4841 for alpha_setup_arbitrary_frame.
4843 2002-04-18 Andrew Cagney <cagney@redhat.com>
4845 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
4846 * gdbarch.h, gdbarch.c: Regenerate.
4848 * defs.h (breakpoint_from_pc_fn): Delete type definition.
4849 * target.h (memory_breakpoint_from_pc): Update declaration.
4850 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
4852 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
4853 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
4854 * mem-break.c (memory_breakpoint_from_pc): Ditto.
4855 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
4856 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
4857 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
4858 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
4859 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
4860 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
4861 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
4862 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
4863 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
4865 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
4867 * monitor.c (monitor_insert_breakpoint): Ditto.
4868 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
4870 * config/mcore/tm-mcore.h: Update copyright.
4871 * mem-break.c: Ditto.
4872 * xstormy16-tdep.c: Ditto.
4874 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
4876 * p-exp.y: Add precedence rule for '^' token.
4877 This removes the shift/reduce conflicts.
4878 Remove the comment concerning these shift/reduce conflicts.
4880 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
4882 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
4883 (registers_powerpc_nofp): New register set for processors
4884 without floating point unit.
4886 2002-04-18 David S. Miller <davem@redhat.com>
4888 * MAINTAINERS: Add myself to write-after-approval.
4890 2002-04-17 Michael Snyder <msnyder@redhat.com>
4892 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
4894 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4896 * rs6000-tdep.c (frame_initial_stack_address): Use
4897 frame_register_read to read the alloca_reg.
4899 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4901 * frame.c (find_saved_register): Find saved registers in the next
4905 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4907 * gdbarch.sh (LANG): Set to ``c''.
4909 2002-04-15 Andrew Cagney <ac131313@redhat.com>
4911 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
4913 2002-04-15 Andrew Cagney <ac131313@redhat.com>
4915 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
4918 * hpread.c (hpread_get_lntt): Add declaration.
4919 Also fix PR gdb/391.
4921 2002-04-14 Andrew Cagney <ac131313@redhat.com>
4923 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
4924 * aclocal.m4, configure: Re-generate.
4927 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
4929 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
4930 instead of tm_print_insn.
4932 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
4934 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
4936 2002-04-14 Andrew Cagney <ac131313@redhat.com>
4938 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
4939 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
4940 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
4942 2002-04-12 Don Howard <dhoward@redhat.com>
4944 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
4945 max_user_call_depth.
4946 (init_cmd_lists): Initialize the new value;
4947 * cli/cli-script.c (execute_user_command): Limit the call depth of
4948 user defined commands. This avoids a core-dump when user commands
4949 are infinitly recursive.
4951 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4953 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
4954 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
4955 from tdep struct instead of DEFAULT_LR_SAVE.
4956 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
4957 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
4958 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
4960 2002-04-12 Michael Snyder <msnyder@redhat.com>
4962 * Remote.c: Spelling fix.
4963 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
4964 If no symbol found for "sbrk", try "_sbrk".
4965 (make_output_phdrs): Use bfd_section_name.
4966 (gcore_copy_callback): Use bfd_section_name.
4967 * eval.c: Indentation fix-ups.
4968 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
4969 in case it gets applied to an address that is already
4970 in the instruction space.
4971 * cli/cli-decode.c (help_list): Allow long lines to wrap.
4972 * symfile.c: Fix indentation, long lines.
4973 * source.c: White space fix-up.
4975 2002-04-12 Andrew Cagney <cagney@redhat.com>
4977 * defs.h (read_relative_register_raw_bytes): Delete declaration.
4978 * frame.c (frame_register_read): New function. Return non-zero on
4980 (read_relative_register_raw_bytes_for_frame): Delete.
4981 (read_relative_register_raw_bytes): Delete.
4982 * frame.h (frame_register_read): Declare.
4983 * d30v-tdep.c: Update Copyright. Use frame_register_read.
4985 * infcmd.c (do_registers_info): Ditto.
4986 * hppa-tdep.c: Ditto.
4987 * rs6000-tdep.c: Ditto.
4988 * h8500-tdep.c: Ditto.
4989 * mips-tdep.c: Ditto.
4990 * h8300-tdep.c: Ditto.
4991 * z8k-tdep.c: Ditto.
4993 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4995 From Jimi X <jimix@watson.ibm.com>:
4996 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
4999 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5001 From Jimi X <jimix@watson.ibm.com>:
5002 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
5005 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5007 From Jimi X <jimix@watson.ibm.com>:
5008 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
5009 register sets for these processor variants.
5011 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
5013 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
5014 registers which are allowed to fail to store.
5015 * gdbserver/linux-low.h (linux_target_ops): Likewise.
5016 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
5017 (ppc_cannot_store_register): FPSCR may not be storable.
5018 * regformats/reg-ppc.dat: Support FPSCR.
5020 2002-04-11 Kevin Buettner <kevinb@redhat.com>
5022 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
5023 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5024 Add fpscr as an invalid/unfetchable register.
5025 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
5026 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
5027 (fill_fpregset): Add support for register fpscr.
5028 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
5029 (fill_gregset): Account for the fact that register ``mq'' might
5031 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
5032 (registers_power): Add fpscr to register set at slot 71.
5033 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
5034 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
5036 2002-04-11 Michael Snyder <msnyder@redhat.com>
5038 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
5039 * configure: Regenerate.
5040 * config.in: Regenerate.
5041 * acconfig.h: Add define for _SYSCALL32.
5042 * core-sol2.c: Remove #define _SYSCALL32.
5043 * solib-legacy.c: Remove #define _SYSCALL32.
5045 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5047 * stack.c (select_frame): Cleanup internal error message, do not
5050 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5052 * stack.c (select_frame): Check that selected_frame and the
5053 specified level are as expected.
5054 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
5056 * frame.h (struct frame_info): Add field `level'. Update
5058 Work-in-progress PR gdb/464.
5060 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5062 * maint.c (maint_print_section_info): Rename print_section_info.
5063 (print_bfd_section_info, print_objfile_section_info): Update.
5064 * inferior.h (struct gdbarch): Add opaque declaration.
5065 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
5066 * gdbarch.h: Regenerate.
5068 2002-04-10 Michal Ludvig <mludvig@suse.cz>
5070 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
5071 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
5072 (kernel_u_size): Added.
5073 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
5074 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
5076 2002-04-04 Jim Ingham <jingham@apple.com>
5078 * valarith.c (find_size_for_pointer_math): New function, either returns
5079 the size for a pointer's target, returns 1 for void *, or errors for
5081 (value_add, value_sub): use find_size_for_pointer_math.
5083 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5085 * linux-low.c (linux_look_up_symbols): New hook.
5086 (linux_target_ops): Add linux_look_up_symbols.
5087 * remote-utils.c (decode_address): New function.
5088 (look_up_one_symbol): New function.
5089 * server.c (handle_query): Call target look_up_symbols hook.
5090 * server.h (look_up_one_symbol): Add prototype.
5091 * target.h (struct target_ops): Add look_up_symbols hook.
5093 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5095 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
5096 * ChangeLog: Correct paths in last ChangeLog entry.
5098 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5100 * gdbserver/linux-low.h: Remove obsolete prototypes.
5101 (struct linux_target_ops): New.
5102 (extern the_low_target): New.
5103 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
5104 (register_addr): Use the_low_target explicitly.
5105 (fetch_register): Likewise.
5106 (usr_fetch_inferior_registers): Likewise.
5107 (usr_store_inferior_registers): Likewise.
5108 * gdbserver/linux-arm-low.c (num_regs): Remove.
5109 (arm_num_regs): Define.
5110 (arm_regmap): Renamed from regmap, made static.
5111 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
5113 (arm_cannot_store_register): Renamed from cannot_store_register,
5115 (the_low_target): New.
5116 * gdbserver/linux-i386-low.c (num_regs): Remove.
5117 (i386_num_regs): Define.
5118 (i386_regmap): Renamed from regmap, made static.
5119 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
5121 (i386_cannot_store_register): Renamed from cannot_store_register,
5123 (the_low_target): New.
5124 * gdbserver/linux-ia64-low.c (num_regs): Remove.
5125 (ia64_num_regs): Define.
5126 (ia64_regmap): Renamed from regmap, made static.
5127 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
5129 (ia64_cannot_store_register): Renamed from cannot_store_register,
5131 (the_low_target): New.
5132 * gdbserver/linux-m68k-low.c (num_regs): Remove.
5133 (m68k_num_regs): Define.
5134 (m68k_regmap): Renamed from regmap, made static.
5135 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
5137 (m68k_cannot_store_register): Renamed from cannot_store_register,
5139 (the_low_target): New.
5140 * gdbserver/linux-mips-low.c (num_regs): Remove.
5141 (mips_num_regs): Define.
5142 (mips_regmap): Renamed from regmap, made static.
5143 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
5145 (mips_cannot_store_register): Renamed from cannot_store_register,
5147 (the_low_target): New.
5148 * gdbserver/linux-ppc-low.c (num_regs): Remove.
5149 (ppc_num_regs): Define.
5150 (ppc_regmap): Renamed from regmap, made static.
5151 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
5153 (ppc_cannot_store_register): Renamed from cannot_store_register,
5155 (the_low_target): New.
5156 * gdbserver/linux-s390-low.c (num_regs): Remove.
5157 (s390_num_regs): Define.
5158 (s390_regmap): Renamed from regmap, made static.
5159 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
5161 (s390_cannot_store_register): Renamed from cannot_store_register,
5163 (the_low_target): New.
5164 * gdbserver/linux-sh-low.c (num_regs): Remove.
5165 (sh_num_regs): Define.
5166 (sh_regmap): Renamed from regmap, made static.
5167 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
5169 (sh_cannot_store_register): Renamed from cannot_store_register,
5171 (the_low_target): New.
5172 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
5173 (the_low_target): New.
5175 2002-04-09 Andrew Cagney <ac131313@redhat.com>
5177 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
5178 override FP_REGNUM with frame->fp. Update copyright.
5179 * parse.c (num_std_regs, std_regs): Delete.
5180 (target_map_name_to_register): Do not search std_regs. Update
5181 function description.
5182 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
5183 declarations. Update copyright.
5186 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5188 * gdbserver/Makefile.in: Add stamp-h target.
5189 * gdbserver/configure.in: Create stamp-h.
5190 * gdbserver/configure: Regenerated.
5192 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5194 * gdbserver/inferiors.c: New file.
5195 * gdbserver/target.c: New file.
5196 * gdbserver/target.h: New file.
5197 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
5199 * gdbserver/linux-low.c (inferior_pid): New static variable,
5200 moved from server.c.
5201 (linux_create_inferior): Renamed from create_inferior.
5202 Call add_inferior. Return 0 on success instead of a PID.
5203 (linux_attach): Renamed from myattach.
5204 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
5205 (linux_thread_alive): Renamed from mythread_alive.
5206 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
5208 (linux_resume): Renamed from myresume. Add missing ``return 0''.
5209 (regsets_store_inferior_registers): Correct error message.
5210 Add missing ``return 0''.
5211 (linux_fetch_registers): Renamed from fetch_inferior_registers.
5212 (linux_store_registers): Renamed from store_inferior_registers.
5213 (linux_read_memory): Renamed from read_inferior_memory.
5214 (linux_write_memory): Renamed from write_inferior_memory.
5215 (linux_target_ops): New structure.
5216 (initialize_low): Call set_target_ops ().
5217 * gdbserver/remote-utils.c (unhexify): New function.
5218 (hexify): New function.
5219 (input_interrupt): Send signals to ``signal_pid''.
5220 * gdbserver/server.c (inferior_pid): Remove.
5221 (start_inferior): Update create_inferior call.
5222 (attach_inferior): Call add_inferior.
5223 (handle_query): New function.
5224 (main): Call handle_query for `q' packets.
5225 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
5226 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
5228 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5230 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
5232 * gdbserver/configure.in: Check for <string.h>
5233 * gdbserver/configure: Regenerate.
5234 * gdbserver/config.in: Regenerate.
5235 * gdbserver/gdbreplay.c: Include needed system headers.
5236 (remote_open): Remove strchr prototype.
5237 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
5238 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
5239 (supply_register_by_name): Likewise.
5240 (collect_register): Change buf argument to void *.
5241 (collect_register_by_name): Likewise.
5242 * gdbserver/regcache.h: Add missing prototypes.
5243 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
5244 * gdbserver/server.c (handle_query): New function.
5245 (attached): New static variable, moved out of main.
5246 (main): Quiet longjmp clobber warnings.
5247 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
5248 * gdbserver/utils.c (error): Remove NORETURN.
5251 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5253 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
5254 after the last symbol in a block.
5256 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
5258 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
5259 is non zero as a found symbol.
5261 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5263 * findvar.c: Include "builtin-regs.h".
5264 (value_of_register): Call value_of_builtin_reg when applicable.
5265 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
5266 (target_map_name_to_register): Call
5267 builtin_reg_map_name_to_regnum.
5268 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
5269 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
5270 (builtin_regs_h): Define.
5271 (builtin-regs.o): New target.
5272 (findvar.o): Add $(builtin_regs_h).
5273 * builtin-regs.c, builtin-regs.h: New files.
5274 * std-regs.c: New file.
5275 Partial fix for PR gdb/251.
5277 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5279 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
5280 it's no longer required.
5282 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5284 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
5286 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5288 From Jimi X <jimix@watson.ibm.com>:
5289 * rs6000-tdep.c (rs6000_software_single_step): Use
5290 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
5291 and size. Use target_insert_breakpoint() and
5292 target_remove_breakpoint() to insert and remove breakpoints
5293 instead of explicit memory reads and writes.
5295 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5297 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
5298 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
5299 ELF_OBJECT_FORMAT ifdef.
5301 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5303 From Jimi X <jimix@watson.ibm.com>:
5304 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
5306 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5308 From Jimi X <jimix@watson.ibm.com>:
5309 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
5310 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
5312 2002-04-07 Mark Kettenis <kettenis@gnu.org>
5314 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
5315 s/asprintf/xasprintf/.
5316 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
5318 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5320 I believe Jeff Law denies responsability for this one:
5321 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
5322 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
5323 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
5324 Work-around for PR gdb/366.
5326 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5328 * remote-e7000.c (write_small, e7000_read_inferior_memory,
5329 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
5330 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
5332 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5334 * sh-tdep.c (sh_fp_frame_init_saved_regs,
5335 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
5338 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5340 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
5343 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5345 * README (Reporting Bugs in GDB): Document the bug web page as the
5346 prefered way of submitting bugs.
5349 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5351 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
5353 * gdbarch.h, gdbarch.c: Re-generate.
5355 2002-04-07 Andreas Schwab <schwab@suse.de>
5357 * m68klinux-nat.c (fill_fpregset): Properly pass address of
5358 buffer to regcache_collect.
5360 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5362 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
5363 * gdbarch.c, gdbarch.h: Re-generate.
5365 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5367 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
5368 declaration. Fix -Werror.
5370 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
5372 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
5373 * gdbarch.c: Regenerate.
5375 2002-04-05 Michael Snyder <msnyder@redhat.com>
5377 * breakpoint.c (clear_command): Rewrite middle section to
5378 combine two loops with identical control conditions.
5379 Add a cleanup to eliminate a memory leak.
5380 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
5382 2002-04-05 H.J. Lu (hjl@gnu.org)
5384 * solib-svr4.c (bkpt_names): Add "__start".
5386 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5388 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
5389 as test for 64 bit target.
5391 2002-04-05 Andrew Cagney <ac131313@redhat.com>
5393 * h8500-tdep.c (h8500_write_fp): Delete function.
5394 * dwarf2cfi.c (cfi_write_fp): Document as not used.
5395 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
5396 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
5397 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
5398 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
5399 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
5401 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
5402 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
5403 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
5404 (d10v_write_fp): Delete function.
5405 * inferior.h (write_fp, generic_target_write_fp): Delete
5407 * regcache.c (generic_target_write_fp): Delete function.
5408 (write_fp): Delete function.
5409 * gdbarch.sh (TARGET_WRITE_FP): Delete.
5410 * gdbarch.h, gdbarch.c: Regenerate.
5411 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
5412 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
5413 (sparc64_write_fp): Delete declaration.
5414 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
5415 (h8500_write_fp): Delete declaration.
5417 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5419 * sparc-tdep.c (sparc64_write_fp): Delete.
5420 (sparc_push_dummy_frame): Replace write_fp call with code to store
5422 (sparc_gdbarch_init): Do not initialize write_fp.
5424 2002-04-05 Kevin Buettner <kevinb@redhat.com>
5426 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
5429 2002-03-29 Jim Blandy <jimb@redhat.com>
5431 * stack.c (get_selected_block): Add new argument `addr_in_block',
5432 used to return the exact code address we used to select the block,
5434 * blockframe.c (get_frame_block, get_current_block): Same.
5435 * frame.h (get_frame_block, get_current_block,
5436 get_selected_block): Update declarations.
5437 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
5438 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
5440 2002-04-05 Michael Snyder <msnyder@redhat.com>
5442 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
5445 2002-04-05 J. Brobecker <brobecker@gnat.com>
5447 * utils.c (xfullpath): New function.
5448 * defs.h (xfullpath): Add declaration.
5449 * source.c (openp): Use xfullpath in place of gdb_realpath to
5450 avoid resolving the basename part of filenames when the
5451 associated file is a symbolic link. This fixes a potential
5452 inconsistency between the filenames known to GDB and the
5453 filenames it prints in the annotations.
5454 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
5455 to be able to match a filename with either the real filename, or
5456 the name of any symbolic link to this file.
5457 (lookup_partial_symtab): Ditto.
5459 2002-04-04 Michael Snyder <msnyder@redhat.com>
5461 * breakpoint.c: Add support for hardware breakpoints in overlays.
5462 (overlay_events_enabled): New state variable.
5463 (insert_breakpoints): Use overlay_events_enabled to decide
5464 whether to attempt to set a breakpoint at the overlay load addr.
5465 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5466 (remove_breakpoint): Use overlay_events_enabled to decide
5467 whether breakpoints need to be removed from overlay load addr.
5468 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5469 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
5470 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
5471 disable_overlay_breakpoints): Update overlay_events_enabled.
5473 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
5475 * dwarf2read.c (struct function_range): New.
5476 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
5477 (check_cu_functions): New.
5478 (read_file_scope): Initialize global function lists.
5479 Call dwarf_decode_line after processing children.
5480 (read_func_scope): Add to global function list.
5481 (dwarf_decode_lines): Call check_cu_functions everywhere
5482 record_line is called. Call record_line with a linenumber
5483 of 0 to mark sequence ends.
5485 2002-04-04 Michal Ludvig <mludvig@suse.cz>
5487 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
5488 change sync with glibc.
5490 2002-04-03 Jim Blandy <jimb@redhat.com>
5492 * configure.in: Call AC_C_INLINE.
5493 * configure: Regenerated.
5495 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
5497 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
5498 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
5500 2002-03-31 Mark Kettenis <kettenis@gnu.org>
5502 * NEWS: Mention gcore support on FreeBSD/i386.
5504 * fbsd-proc.c: New file.
5505 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
5506 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
5508 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
5511 2002-03-29 Jim Blandy <jimb@redhat.com>
5513 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
5514 unescaped newlines in string literals, but newer ones don't. So
5517 2002-03-26 Michael Snyder <msnyder@redhat.com>
5518 Andrew Cagney <cagney@redhat.com>
5520 * cli/cli-dump.c: New file. Dump memory to file,
5521 restore file to memory.
5522 * cli/cli-dump.h: New file.
5523 * Makefile.in: Add rules, dependencies for cli-dump.o.
5524 * NEWS: Mention new commands.
5526 2002-03-28 Michael Snyder <msnyder@redhat.com>
5528 * symfile.c (symbol_file_add): Move test for null symbols to later.
5530 2002-03-27 Andrew Cagney <ac131313@redhat.com>
5532 From veksler at il.ibm.com:
5533 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
5534 the xstrduped original path.
5537 2002-03-27 Michael Snyder <msnyder@redhat.com>
5539 * breakpoint.c (_initialize_breakpoint): Clean up help string.
5540 * infcmd.c (_initialize_infcmd): Ditto.
5541 * language.c (_initialize_language): Ditto.
5542 * symfile.c (_initialize_symfile): Ditto.
5543 * top.c (_init_main): Ditto.
5544 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5546 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
5548 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
5549 vector registers handling.
5550 (skip_prologue): Handle new AltiVec instructions. Fill in new
5551 fields of frame data.
5552 (frame_get_saved_regs): Fill in information for AltiVec registers.
5554 2002-03-27 Jim Blandy <jimb@redhat.com>
5556 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
5557 a function; leave this macro here to invoke that function.
5558 (symbol_init_mangled_name): Declaration for that function.
5559 * symtab.c (symbol_init_mangled_name): New function.
5561 2002-03-27 Andrew Cagney <ac131313@redhat.com>
5563 * valarith.c: Replace strerror with safe_strerror.
5564 * tracepoint.c: Ditto.
5566 * go32-nat.c: Ditto.
5570 2002-03-27 Andreas Schwab <schwab@suse.de>
5572 * event-top.c (command_line_handler): Remove useless if.
5574 2002-03-27 Andreas Jaeger <aj@suse.de>
5576 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
5579 2002-03-27 Michal Ludvig <mludvig@suse.cz>
5581 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
5582 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
5583 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
5584 (x86_64_linux_dr_get_status, supply_gregset),
5585 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
5586 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
5587 (x86_64_register_info_table): Add.
5588 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
5589 (x86_64_register_raw_size, x86_64_register_virtual_type),
5590 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
5591 general x86_64_register_info_table.
5592 (i386_gdbarch_init): gdbarch_register_bytes is now set
5593 dynamicaly during initialization.
5594 * regformats/reg-x86-64.dat: Synced with changes to registers above.
5595 * gdbserver/linux-x86-64-low.c: Ditto.
5597 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5599 * gdbserver/server.c (main): Call target_signal_to_host_p
5600 and target_signal_to_host on signals received from the remote.
5601 * gdbserver/remote-utils.c (prepare_resume_reply): Call
5602 target_signal_from_host on signals sent to the remote.
5603 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
5604 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
5606 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5608 * signals/signals.c: Include "server.h" in gdbserver build.
5609 (target_signal_from_name): Don't use STREQ.
5610 (_initialize_signals): Likewise. Don't include function in
5613 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5615 * signals.c: Moved to...
5616 * signals/signals.c: Here.
5617 * Makefile (signals.o): Update.
5619 2002-03-26 Jeff Law (law@redhat.com)
5621 * somread.c (som_symtab_read): Remove some commented out code and
5622 updated related comments. Do not set the minimal symbol table to
5623 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
5624 in a dynamic executable.
5625 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
5626 where we are unable to find the minimal symbol for the given
5629 2002-03-25 Jeff Law (law@redhat.com)
5631 * linux-proc.c (read_mapping): Scan up to end of line for filename.
5633 2002-03-25 Michal Ludvig <mludvig@suse.cz>
5635 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
5637 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5639 * command.h: Update copyright.
5640 (struct cmd_list_element): Replace definition with opaque
5642 (enum cmd_types): Document that it will eventually be moved to
5644 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
5645 (MALLOCED_REPLACEMENT): Delete macro.
5646 * Makefile.in (cli_decode_h): Add $(command_h).
5647 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
5648 * top.c: Include "cli/cli-decode.h".
5649 * completer.c: Include "cli/cli-decode.h".
5650 * maint.c: Include "cli/cli-decode.h".
5651 * cli/cli-decode.h: Include "command.h".
5652 (enum command_class): Delete.
5653 (enum cmd_types): Comment out.
5654 (enum cmd_auto_boolean): Delete.
5655 (enum var_types): Delete.
5657 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5659 * cli/cli-decode.c: Include "gdb_assert.h".
5660 (add_set_or_show_cmd): New static function.
5661 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
5662 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
5663 all fields, such as func, from the set command.
5665 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5667 * MAINTAINERS (sh-elf): Change warning flag to -w.
5669 2002-03-23 Andrew Cagney <cagney@redhat.com>
5671 * defs.h (error): Add printf format attribute.
5672 * thread-db.c (thread_from_lwp): Fix error format string.
5673 * stack.c (parse_frame_specification): Ditto.
5674 * cli/cli-decode.c (undef_cmd_error): Ditto.
5675 * scm-lang.c (scm_lookup_name): Ditto.
5676 * tracepoint.c (trace_error): Ditto.
5677 * remote-utils.c (usage): Ditto.
5678 * remote.c (compare_sections_command): Ditto.
5681 2002-03-22 Andrew Cagney <ac131313@redhat.com>
5683 * gdbtypes.c (append_composite_type_field): New function.
5684 (init_composite_type): New function.
5685 * gdbtypes.h (append_composite_type_field): Declare.
5686 (init_composite_type): Ditto.
5688 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
5690 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
5692 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
5693 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
5694 structure returning convention for SYSV ABI case, but not
5695 for GNU/Linux, FreeBSD, or NetBSD.
5697 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
5699 * symtab.h (lookup_block_symbol): Add mangled_name argument
5702 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
5703 with new mangled_name argument.
5704 * linespec.c (decode_line_1): Likewise.
5705 * valops (value_of_this): Likewise.
5706 * symtab.c (lookup_transparent_type): Likewise.
5707 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
5708 (lookup_symbol): If we are given a mangled name, pass it down
5709 to lookup_symbol_aux.
5710 (lookup_block_symbol): If we are given a mangled name to check
5711 against, only return symbols which match it.
5713 2002-03-22 Christopher Faylor <cgf@redhat.com>
5715 * win32-nat.c (child_create_inferior): Check for proper shell to use
5716 here, in case the user changes it on the fly.
5717 (_initialize_inftarg): Remove shell path considerations.
5719 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
5721 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
5722 for gdbarch_max_register_raw_size and max_register_virtual_size.
5723 Adjust copyright year.
5725 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
5727 * dbxread.c (process_one_symbol): Extend the first N_SLINE
5728 in a function to cover the entire beginning of the function
5729 as well if it does not already.
5731 2002-03-21 Tom Rix <trix@redhat.com>
5733 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
5734 (rs6000_ptrace64): Renamed from ptrace64.
5736 2002-03-20 Martin M. Hunt <hunt@redhat.com>
5738 * gdbserver/remote-utils.c (remote_open): Don't call
5739 getprotobyname, we're all using TCP here so just use
5741 * gdbserver/gdbreplay.c (remote_open): Ditto.
5743 2002-03-20 Martin M. Hunt <hunt@redhat.com>
5745 * regcache.c (_initialize_regcache): No need to call
5746 build_regcache() at this time; it gets called whenever
5747 the gdbarch changes.
5749 2002-03-20 David O'Brien <obrien@FreeBSD.org>
5751 * sparc-nat.c: Include sys/param.h where possible.
5753 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
5756 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
5757 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
5758 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
5760 * stabsread.c (rs6000_builtin_type): Likewise.
5761 (read_sun_floating_type): Likewise.
5763 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5765 * stabsread.c (read_member_functions): Remove skip code for duplicate
5766 constructor/destructor methods. Use standard parsing for these
5767 methods and just do not chain them to the list of methods after
5770 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
5772 * coffread.c: Remove redundant static declarations. Replace
5773 occurrences of `PTR' with `void *'.
5774 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
5775 * top.h (quit_cover): Likewise.
5776 * defs.h (catch_errors): Likewise.
5778 2002-03-18 Andrew Cagney <ac131313@redhat.com>
5780 * defs.h (XMALLOC): Define.
5781 * gdb-events.sh (XMALLOC): Delete macro.
5782 * gdb-events.c, gdb-events.h: Regenerate.
5783 * gdbarch.sh (XMALLOC): Delete macro.
5784 * gdbarch.c: Regenerate.
5785 * serial.c (XMALLOC): Delete macro.
5786 * ui-file.c (XMALLOC): Ditto.
5787 * ser-unix.h (XMALLOC): Ditto.
5788 * sh-tdep.c (XMALLOC): Ditto.
5789 * ui-out.c (XMALLOC): Ditto.
5790 * utils.c (XMALLOC): Ditto.
5791 * i386-tdep.c (XMALLOC): Ditto.
5792 * gdb-events.c (XMALLOC): Ditto.
5793 * d10v-tdep.c (XMALLOC): Ditto.
5794 * cli-out.c (XMALLOC): Ditto.
5796 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
5797 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
5798 * ui-file.c, ui-out.c: Ditto.
5800 2002-03-18 Andrew Cagney <ac131313@redhat.com>
5802 * command.h (struct cmd_list_element): Add field context.
5803 (set_cmd_context, get_cmd_context): Declare.
5804 * cli/cli-decode.h: Ditto.
5805 * cli/cli-decode.c (get_cmd_context): New function.
5806 (set_cmd_context): New function.
5807 (add_cmd): Initialize context.
5808 Part of fixing PR gdb/145 and PR gdb/146.
5810 2002-03-17 Andrew Cagney <ac131313@redhat.com>
5812 * cli/cli-decode.c (cmd_type): New function.
5813 * command.h (cmd_type): Declare.
5814 * infrun.c (set_schedlock_func): Call function cmd_type.
5815 * kod.c (kod_set_os): Call cmd_type.
5816 * cris-tdep.c (cris_version_update): Use function cmd_type.
5817 (cris_mode_update, cris_abi_update): Ditto.
5819 * command.h: (execute_cmd_post_hook): Declare.
5820 (execute_cmd_pre_hook): Declare.
5821 * cli/cli-script.c (clear_hook_in_cleanup): New function.
5822 (execute_cmd_post_hook, execute_cmd_pre_hook): New
5823 functions. Execute pre/post hook while ensuring that afterwords
5825 * top.c (execute_command): Use execute_cmd_post_hook, and
5826 execute_cmd_pre_hook to execute pre/post commands.
5827 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
5829 (hook_stop_stub): Call execute_cmd_pre_hook.
5831 2002-03-17 Andrew Cagney <ac131313@redhat.com>
5833 * kod.c (kod_set_os): Revert previous change. Is called by ``info
5834 set'' and this leads to a core dump. Move xstrdup of
5835 operating_system to after check that it is not NULL.
5837 2002-03-17 Andrew Cagney <ac131313@redhat.com>
5839 * kod.c (kod_set_os): Remove unnecessary check that
5840 ``command->type'' is set_cmd.
5842 * valprint.c (set_input_radix): Use input_radix.
5843 (set_output_radix): Use output_radix.
5844 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
5847 2002-03-16 Andrew Cagney <ac131313@redhat.com>
5849 * value.h (struct value): Delete field ``substring_addr''. Change
5850 aligner fields to force_doublest_align, force_longest_align,
5851 force_core_addr_align and force_pointer_aligh.
5853 * value.h (struct value): Fix typo in above change.
5855 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5857 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
5858 to fix internal_error from ``maintenance print architecture''.
5860 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5862 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
5863 for gcc versions after gcc-2.8.1.
5865 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5867 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
5868 for method resolution. Restore adjustment of ``this'' pointer after
5869 calling value_struct_elt, which was accidentally removed during the
5872 2002-03-15 Andrew Cagney <ac131313@redhat.com>
5874 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
5876 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
5878 * value.h (value_of_register): Update.
5880 2002-03-14 Richard Henderson <rth@redhat.com>
5882 * configure.in: Detect declaration for canonicalize_file_name.
5883 * utils.c (canonicalize_file_name): Declare, if needed.
5884 (gdb_realpath): Prefer realpath if available and usable.
5885 * config.in, configure: Rebuild.
5887 2002-03-14 Richard Henderson <rth@redhat.com>
5889 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
5890 a constant array bound.
5892 * MAINTAINERS: Add myself to write-after-approval.
5894 2002-03-14 Michael Snyder <msnyder@redhat.com>
5896 * symfile.c (syms_from_objfile): Return immediately if no syms.
5897 (symbol_file_add): Return immediately if no syms.
5898 (find_sym_fns): Return immediately if no syms.
5900 2002-03-13 Michal Ludvig <mludvig@suse.cz>
5902 * gdbserver/remote-util.c (remote_open): Print remote-side's
5903 IP address when remote debugging over the network.
5905 2002-03-12 David O'Brien <obrien@FreeBSD.org>
5907 * config/sparc/fbsd.mh: Fix copyright.
5908 * config/sparc/fbsd.mt: Likewise.
5910 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
5912 * MAINTAINERS: Fix typo in name of gdb warnings option.
5913 (x86-64): Fix formating so that this can be parsed by awk.
5915 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
5917 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
5918 * defs.h: Include "gdb/signals.h".
5919 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
5921 2002-03-10 Michal Ludvig <mludvig@suse.cz>
5923 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
5924 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
5927 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
5928 Don Howard <dhoward@redhat.com>
5930 * mips-tdep.c (ST0_FR): Define.
5931 (mips2_fp_compat): New function, temporarily disabled.
5932 (mips_read_fp_register_single): New function.
5933 (mips_read_fp_register_double): New function.
5934 (mips_print_register): Use them.
5935 (do_fp_register_row): Likewise.
5937 2002-03-09 Andrew Cagney <ac131313@redhat.com>
5939 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
5942 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5944 * stabsread.c (read_member_functions): Fix is_stub test for
5945 static member functions, improve comment.
5947 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
5949 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
5950 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
5951 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
5952 commands that set boolean values.
5953 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
5954 (arm_rdi_resume): Always initialize PC.
5955 (arm_rdi_open): Don't use rslt as a boolean.
5956 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
5957 (arm_rdi_fetch_registers, arm_rdi_store_registers)
5958 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
5959 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
5961 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
5963 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
5964 * configure: Rebuilt.
5966 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5968 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
5969 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
5971 2002-03-06 Andrew Cagney <ac131313@redhat.com>
5973 * cli/cli-decode.c (set_cmd_completer): New function.
5974 * command.h (set_cmd_completer): Declare.
5975 * cli/cli-decode.h (set_cmd_completer): Ditto.
5977 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
5978 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5979 * win32-nat.c (_initialize_inftarg): Ditto.
5980 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5981 * proc-api.c (_initialize_proc_api): Ditto.
5982 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
5983 * source.c (_initialize_source): Ditto.
5984 * exec.c (_initialize_exec): Ditto.
5985 * solib.c (_initialize_solib): Ditto.
5986 * top.c (init_main): Ditto.
5987 * tracepoint.c (_initialize_tracepoint): Ditto.
5988 * symfile.c (_initialize_symfile): Ditto.
5989 * printcmd.c (_initialize_printcmd): Ditto.
5990 * infcmd.c (_initialize_infcmd): Ditto.
5991 * corefile.c (_initialize_core): Ditto.
5993 2002-03-05 Andrew Cagney <ac131313@redhat.com>
5995 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
5997 2002-03-05 Andrew Cagney <ac131313@redhat.com>
5999 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
6001 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6003 * NEWS: Update headings, 5.2 has branched.
6005 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
6007 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
6008 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
6009 (register_addr, REGISTER_RAW_SIZE): Likewise.
6010 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
6011 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
6013 2002-03-03 Michal Ludvig <mludvig@suse.cz>
6015 * MAINTAINERS (x86-64): Add myself.
6016 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
6017 changed value_ptr -> struct value *
6019 2002-03-01 David O'Brien <obrien@FreeBSD.org>
6021 * configure.host (sparc64-*-freebsd): Add.
6022 * configure.tgt: Likewise.
6023 * config/sparc/fbsd.mh: New file.
6024 * config/sparc/fbsd.mt: Likewise.
6025 * config/sparc/nm-fbsd.h: Likewise.
6026 * config/sparc/tm-fbsd.h: Likewise.
6028 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
6030 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
6031 regformats/reg-s390x.dat.
6033 2002-03-01 Andrew Cagney <ac131313@redhat.com>
6035 * utils.c: Add FIXME explaining true/false problem.
6037 2002-02-28 Andrew Cagney <ac131313@redhat.com>
6039 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
6041 2002-02-28 Michael Chastain <mec@shout.net>
6043 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
6045 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
6047 * gdbserver/linux-s390-low.c: New file.
6048 * regformats/reg-s390.dat: New file.
6049 * regformats/reg-s390x.dat: New file.
6050 * gdbserver/configure.srv: Add S/390.
6051 * gdbserver/Makefile.in: Add S/390.
6052 * configure.tgt: Enable gdbserver for S/390.
6054 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
6056 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
6057 first line of the doc string for "info dos", except at the end of
6058 the sentence, since the short help stops at the first period.
6060 2002-02-28 Jason Merrill <jason@redhat.com>
6062 * dwarf2read.c (dwarf_cfi_name): Add new codes.
6064 2002-02-27 Fred Fish <fnf@redhat.com>
6066 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
6067 comment (dumy -> dummy).
6069 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6071 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
6073 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
6075 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
6077 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6079 * gdbserver/acconfig.h: New file.
6080 * gdbserver/i387-fp.c: New file.
6081 * gdbserver/i387-fp.h: New file.
6082 * gdbserver/linux-x86-64.c: New file.
6083 * regformats/reg-x86-64.dat: New file.
6084 * configure.tgt: Add x86_64-*-linux* gdbserver support.
6085 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
6086 * gdbserver/configure.in: Add support for regsets.
6087 * gdbserver/config.in: Regenerate.
6088 * gdbserver/configure: Regenerate.
6089 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
6090 * gdbserver/linux-low.h: New file.
6091 * gdbserver/linux-low.c: Include "linux-low.h". Add support
6093 * gdbserver/linux-arm-low.c: Include "linux-low.h".
6094 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
6095 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
6096 * gdbserver/linux-mips-low.c: Include "linux-low.h".
6097 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
6098 * gdbserver/linux-sh-low.c: Include "linux-low.h".
6099 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
6100 "i387-fp.h". Add PTRACE_GETREGS and friends.
6101 * gdbserver/regcache.c (supply_register): New function.
6102 (supply_register_by_name): New function.
6103 (collect_register): New function.
6104 (collect_register_by_name): New function.
6106 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6108 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
6109 (config.status): Add configure.srv dependency.
6110 (server_h): Add config.h dependency.
6112 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6114 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
6115 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
6116 * gdbserver/configure.srv: Change i386-*-linux* to use
6119 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6121 * x86-64-tdep.c: Re-indent. Update copyright date.
6123 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6125 From Michal Ludvig <mludvig@suse.cz>:
6126 * x86-64-tdep.c (value.h): Delete.
6127 (gdb_assert.h): Include.
6128 (x86_64_register_convert_to_virtual,
6129 x86_64_register_convert_to_raw ): Add check which lets only
6130 floating-point values to be converted.
6131 (value_push): Delete.
6132 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
6133 (i386_gdbarch_init): Number of register_bytes fixed.
6135 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6137 * MAINTAINERS: Add x86-64 target.
6139 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6141 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
6142 * osfsolib.c (solib_map_sections): Ditto.
6143 * irix5-nat.c (solib_map_sections): Ditto.
6144 * corelow.c (gdb_check_format): Ditto.
6145 * symfile.c (symfile_bfd_open): Ditto.
6146 * solib.c (solib_map_sections): Ditto.
6149 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6151 * remote.c (_initialize_remote): By default, disable ``e'' and
6152 ``E'' step out-of-range packets.
6154 2002-02-26 Andreas Schwab <schwab@suse.de>
6156 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
6157 m68k_linux_frame_saved_pc.
6158 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
6160 (SIGCONTEXT_PC_OFFSET): Remove.
6161 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
6162 m68k_linux_sigtramp_saved_pc): New functions.
6163 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
6164 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
6165 (UCONTEXT_PC_OFFSET): Define.
6166 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
6167 non-RT and RT signal trampolines.
6169 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
6171 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
6172 (TARGET_NBPG, STACK_END_ADDR): Delete
6173 (VARIABLES_INSIDE_BLOCK): Delete.
6175 2002-02-25 Andrew Cagney <ac131313@redhat.com>
6177 * utils.c (perror_with_name): Make string parameter constant.
6178 (print_sys_errmsg): Ditto.
6180 * defs.h (perror_with_name): Update.
6181 (print_sys_errmsg): Update.
6184 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
6186 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
6187 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
6189 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6191 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
6192 if it already matches the current architecture from the exec file.
6193 Include arch-utils.h for gdbarch_info_init prototype.
6194 * Makefile.in (rs6000-nat.o): Update dependencies.
6196 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
6198 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
6199 list of exported variables.
6201 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
6203 * gdbserver/configure.srv: New file.
6204 * gdbserver/configure.in: Use configure.srv instead
6205 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
6207 * gdbserver/configure: Regenerated.
6208 * gdbserver/terminal.h: New file.
6209 * gdbserver/Makefile.in: Update for configure changes. Remove
6210 more unneeded include paths.
6212 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6214 From wiz at danbala:
6215 * config/sparc/tm-sp64.h: Fix grammar and typos.
6218 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6220 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
6221 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
6222 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
6223 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
6224 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
6225 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
6226 * s390-tdep.c: Ditto.
6227 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
6228 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
6229 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
6230 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
6231 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
6232 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
6233 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
6234 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
6235 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
6236 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
6239 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6241 * lin-thread.c: Delete file.
6242 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
6243 to gdb_proc_service.h.
6244 * configure: Re-generate.
6246 * ocd.c (ocd_open): Do not try to open the "ocd" device.
6247 * serial.c (serial_open): Delete check for "ocd".
6250 * Makefile.in (linux-thread.o): Delete target.
6251 * linux-thread.c: Delete file.
6253 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
6254 renamed SH files to be consistent.
6256 * symtab.c (sort_search_symbols): Use xfree.
6258 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6260 * arm-linux-tdep.c (arm_linux_init_abi): Register
6261 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
6262 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
6263 definition with undef, since we don't want the sysvr4 definition.
6264 (SKIP_TRAMPOLINE_CODE): Likewise.
6266 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6268 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
6270 * configure.in: (AC_CHECK_FUNCS) Added test for
6271 canonicalize_file_name Regenerated.
6272 * config.in, configure: Regenerated.
6273 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
6274 defined use canonicalize_file_name.
6276 2002-02-23 Michael Chastain <mec@shout.net>
6278 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
6280 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6282 * README: Remove references to cygnus.com.
6283 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
6284 dot com'' form. Remove references to cygnus.com and sourceware.
6286 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6288 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
6289 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
6290 1003.1-2001 no longer allows "head -1".
6291 * gdb/Makefile.in (version.c): Likewise.
6292 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
6293 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
6294 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
6296 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6298 * cli/cli-decode.c (cmd_cfunc_eq): New function.
6299 * command.h (cmd_cfunc_eq): Declare.
6300 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
6302 * cli/cli-cmds.h (is_complete_command): Change parameter to a
6303 ``struct cmd_list_element *''.
6304 * cli/cli-cmds.c (is_complete_command): Update. Use
6306 * top.c (execute_command): Pass the command to
6307 is_complete_command.
6308 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
6310 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6312 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
6313 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
6314 architecture defines.
6315 * s390-tdep.c (s390_gdbarch_init): Likewise.
6317 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6319 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
6320 (arm_linux_push_arguments): Likewise.
6321 (arm_linux_init_abi): Register them. Also register linux-specific
6323 (find_minsym_and_objfile): Use strcmp, not STREQ.
6324 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
6325 (arm_linux_call_dummy_words): Delete declaration.
6326 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
6327 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
6329 (LOWEST_PC): Delete.
6331 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6333 * maint.c (print_section_info): Do not prepend `0x' to filepos
6334 output, it will be handled by local_hex_string_custom.
6336 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6338 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
6339 (store_newfpe_double, store_newfpe_extended, store_fpregister)
6340 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
6342 2002-02-22 Jim Blandy <jimb@redhat.com>
6344 Indicate that the bcache functions don't change the strings
6346 * bcache.h (bcache, hash): Add `const' keywords to declarations.
6347 * bcache.c (bcache, hash): Add `const' keywords to definitions.
6349 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
6351 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
6353 2002-02-21 Christopher Faylor <cgf@redhat.com>
6355 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
6356 find the complete path to a loaded DLL.
6358 2002-02-21 Fred Fish <fnf@redhat.com>
6360 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
6361 that marks the end of the range of a function, enter a line number
6362 entry that has a line number of zero and a PC offset that matches
6363 the end of the function. This starts a range of PC's for which no
6364 line number information is known.
6365 * symtab.c (find_pc_sect_line): If our best fit is in a range of
6366 PC's for which no line number info is found (line number is zero)
6367 then we didn't find any valid line information.
6368 * symtab.h: Document use of zero line number entry.
6370 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
6372 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
6373 (have_ptrace_getvrregs): Define for run time checks.
6374 (gdb_vrregset_t): New type for Altivec register handling.
6375 (fetch_register, store_register): Fetch/store altivec register
6377 (fetch_altivec_register, store_altivec_register): New functions.
6378 (supply_vrregset, fill_vrregset): New functions.
6379 (fetch_altivec_registers, store_altivec_registers): New functions.
6380 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
6383 2002-02-21 Jiri Smid <smid@suse.cz>
6385 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
6387 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6389 * Makefile.in (armnbsd-nat.o): Update dependencies.
6390 * armnbsd-nat.c (supply_gregset): New function. Common code to
6391 supply the integer register set.
6392 (supply_fparegset): New function. Similar for FPA registers.
6393 (fetch_regs, fetch_fp_regs): Use them.
6394 (fetch_core_registers): Likewise.
6395 (fetch_elfcore_registers): New function.
6396 (arm_netbsd_elfcore_fns): New core-file type specification.
6397 (_initialize_arm_netbsd_nat): Register it.
6399 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6401 * armnbsd-nat.c: Include gdbcore.h.
6402 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
6403 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
6404 'void' to declaration, to shut up ARI.
6405 (fetch_core_registers): Make static. Rewrite using supply_register.
6406 (arm_netbsd_core_fns): New core-file type specification.
6407 (_initialize_arm_netbsd_nat): New function.
6409 2002-02-21 Christopher Faylor <cgf@redhat.com>
6411 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
6414 2002-02-20 Christopher Faylor <cgf@redhat.com>
6416 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
6419 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6421 * jv-exp.y (parse_number): Change type of implicit longs
6422 to builtin_type_uint64.
6424 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6426 * gdbserver/linux-low.c (mywait): Change argument to waitpid
6427 to be an integer instead of a `union wait'.
6429 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6431 * mips-linux-nat.c: Call the operating system GNU/Linux.
6432 * mips-linux-tdep.c: Likewise.
6433 * mips-tdep.c: Likewise.
6435 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6438 * jv-exp.y (parse_number): Handle 64-bit integers.
6440 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6442 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
6443 AC_STDC_HEADERS to AC_HEADER_STDC.
6444 * gdbserver/configure: Regenerated.
6446 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6448 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
6450 * sparc-tdep.c (get_longjmp_target): Likewise.
6452 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6454 * News: Add news about ARM and Multi-arch. Mention the new target
6457 2002-02-19 Jim Blandy <jimb@redhat.com>
6459 * stabsread.c (error_type_complaint): Improve error message.
6461 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
6463 * gdbserver/README: Update documentation.
6464 * gdbserver/configure.in: Update configury to match documentation.
6465 * gdbserver/Makefile.in: Likewise.
6466 * gdbserver/configure: Regenerated.
6467 * gdbserver/aclocal.m4: New file, generated by aclocal.
6468 * gdbserver/config.in: New file, generated by autoheader.
6470 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6472 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
6475 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6477 * arm-tdep.h (enum arm_float_model): New enum.
6478 (struct gdbarch_tdep): Add fp_model.
6479 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
6480 up floating-point conversions until we know the floating-point model
6481 in use by the inferior. Don't complain about being unable to
6482 determine the ABI of the inferior when we don't have one.
6483 (arm_extract_return_value): Support different floating-point models.
6484 (arm_store_return_value): Likewise.
6485 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
6487 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
6489 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6491 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
6492 of ``current_gdbarch''.
6494 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6496 * armnbsd-nat.c : ANSIfy all function declarations.
6497 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
6498 (fetch_inferior_registers): Re-implement in terms of above.
6499 (store_register, store_regs, store_fp_register, store_fp_regs): New.
6500 (store_inferior_registers): Re-implement in terms of above.
6502 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6504 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
6506 * arm-linux-tdep.c: Likewise.
6507 * config/arm/tm-linux.h: Likewise.
6509 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6511 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
6512 * config/arm/nbsd.mt (TM_FILE): Delete.
6513 * config/arm/tm-nbsd.h: Delete.
6515 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6517 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
6518 Initialize CALL_DUMMY_LENGTH.
6520 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6522 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
6524 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
6525 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
6526 defines one thing and that is incorrect for this port.
6527 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
6529 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6531 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
6533 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6535 * win32-nat.c (display_selector): New function. Displays information
6536 about the information returned by GetThreadSelectorEntry API function.
6537 (display_selectors): New function. Displays the infomation of
6538 the selector given as argument, or of CS, DS ans FS selectors
6539 if no argument is given.
6540 ( _initialize_inftarg): Add "w32" as info prefix command.
6541 Add "info w32 selector" as command calling display_selectors.
6543 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
6545 * i386-tdep.c (get_longjmp_target): Fix compilation failure
6546 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
6549 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6551 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
6553 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6555 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
6556 (arm_fix_call_dummy): Call it.
6557 (arm_call_dummy_breakpoint_offset): Delete.
6558 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
6559 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6561 2002-02-18 Andrew Cagney <ac131313@redhat.com>
6563 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
6564 Default to func_frame_chain_valid.
6565 * gdbarch.h, gdbarch.c: Re-generate.
6566 * frame.h (FRAME_CHAIN_VALID): Delete definition.
6568 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
6570 * ppc-linux-nat.c: Update copyright.
6571 (fetch_register, store_register): Add tid parameter, don't compute
6573 (fetch_ppc_registers, store_ppc_registers): Add tid
6574 parameter. Pass it along to callees.
6575 (fetch_inferior_registers, store_inferior_registers): Compute tid
6576 here, and pass it to calleed functions.
6577 (fill_gregset, supply_fpregset): Clean up formatting.
6579 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6581 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
6582 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
6584 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6586 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
6587 * gdbarch.c gdbarch.h: Regenerate.
6588 * breakpoint.c (create_longjmp_breakpoint): Always compile this
6590 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
6591 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
6592 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
6594 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
6595 * arm-tdep.c (arm_get_longjmp_target): New function.
6596 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
6597 this to a positive value register arm_get_longjmp_target as the
6599 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
6600 (arm_linux_init_abi): Set up longjmp description in tdep.
6601 * armnbsd-nat.c (get_longjmp_target): Delete.
6602 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
6603 description in tdep.
6604 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
6605 (get_longjmp_target): Delete declaration.
6606 (GET_LONGJMP_TARGET): Delete.
6607 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
6608 (GET_LONGJMP_TARGET): Delete.
6610 2002-02-17 Kevin Buettner <kevinb@redhat.com>
6612 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
6613 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
6614 of ``current_gdbarch''.
6616 2002-02-17 Tom Tromey <tromey@redhat.com>
6618 * cli/cli-cmds.c (compare_strings): New function.
6619 (complete_command): Only print each unique item once.
6620 * completer.h (complete_line): Declare.
6621 * completer.c (complete_line): New function.
6622 (line_completion_function): Use it.
6624 2002-02-16 Andrew Cagney <ac131313@redhat.com>
6626 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
6627 * gdbarch.h, gdbarch.c: Re-generate.
6629 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
6631 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
6633 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
6635 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6636 * valops.c (value_arg_coerce): Don't take the address of a reference
6637 to convert an argument to a reference.
6639 2002-02-15 Christopher Faylor <cgf@redhat.com>
6641 * win32-nat.c (get_image_name): New function.
6642 (handle_load_dll): Use get_image_name function.
6643 (get_child_debug_event): Avoid registering debug events until possibly
6644 execed process is started.
6645 (child_create_inferior): Allow invocation via shell so that command
6646 line redirection, etc. works ok.
6647 (_initialize_inftarg): Add new command: "set shell" to control whether
6648 a shell is used to start a process.
6650 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
6652 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
6653 instead of find_register_by_number.
6654 (cannot_store_register): Likewise.
6656 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
6658 * dwarf2read.c: Replace fprintf (stderr, ...) by
6659 fprintf_unfiltered (gdb_stderr, ...).
6661 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
6663 * gdbserver/gdbserver.1: Document --attach.
6665 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
6667 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
6669 * arm-tdep.c (arm_default_arm_le_breakpoint)
6670 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
6671 (arm_default_thumb_be_breakpoint): New. Initialize them from
6672 traditional breakpoint defines.
6673 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
6674 (arm_gdbarch_init): Initialize new breakpoint variables.
6675 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
6676 (arm_linux_init_abi): Initialize linux-specific breakpoint.
6677 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
6678 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
6680 (arm_netbsd_init_abi_common): ... here; new function.
6681 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
6682 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
6683 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
6684 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
6686 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
6688 * arm-tdep.h (enum arm_abi): New enum.
6689 (struct gdbarch_tdep): New structure.
6690 (LOWEST_PC): Provide a default.
6691 (arm_gdbarch_register_os_abi): Declare new function.
6692 * arm-tdep.c (arm_abi_names): New array.
6693 (process_note_abi_tag_sections): New function.
6694 (get_elfosabi): New function.
6695 (arm_gdbarch_register_os_abi): New function.
6696 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
6697 support for that ABI has been built in, then call the appropriate
6698 configuration routine. Use gdbarch_num_regs() to get the number
6700 (arm_dump_tdep): New function.
6701 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
6702 place-holder functions.
6703 (_initialize_arm_tdep): Register them.
6704 * config/arm/tm-arm.h (LOWEST_PC): Delete.
6706 * armnbsd-tdep.c: New file.
6707 * Makefile.in (armnbsd-tdep.o): Add dependencies.
6708 * config/arm/nbsd.mt (TDEPFILES): Add it.
6709 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
6711 * armnbsd-nat.c: Include regcache.h.
6712 * Makefile.in (armnbsd-nat.o): Update dependency list.
6714 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
6716 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6718 * gdbserver/Makefile.in: Fix typos in target rules.
6720 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6722 Fix part of PR gdb/267.
6723 * linespec.c (find_methods): Handle constructors specially for now.
6725 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
6727 * arm-tdep.c (arm_push_arguments): Eliminate special float type
6729 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
6730 standard_coerce_float_to_double().
6732 2002-02-14 Christopher Faylor <cgf@redhat.com>
6734 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
6737 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
6739 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
6740 find_variant_by_name, because it confuses the multiarch
6741 framework. Return NULL if there isn't an architecture with the
6742 user supplied name, instead of forcing a different one without
6743 recording the change with the multiarch machinery.
6744 (find_variant_by_name): Delete.
6746 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6748 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
6749 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
6751 2002-02-13 Martin M. Hunt <hunt@redhat.com>
6753 * stack.c (print_frame_info_base): When calling
6754 print_frame_info_listing_hook, set current_source_symtab.
6756 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6758 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
6759 and remove unused $(INCLUDE_DIR).
6760 Add regcache.c to OBS.
6761 Add generated register protocol files to clean target.
6762 Update dependencies for new objects, obsolete old target code.
6764 * gdbserver/linux-low.c: Remove all platform-specific code to
6765 new files. Remove various dead code. Update to use regcache
6767 * gdbserver/remote-utils.c (fromhex): Add return statement
6769 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
6771 (input_interrupt): Add integer parameter to match prototype
6772 of a signal handler.
6773 (outreg): Use register_data ().
6774 (prepare_resume_reply): Use gdbserver_expedite_regs.
6775 * gdbserver/server.c (main): Dynamically allocate own_buf because
6776 PBUFSIZ is no longer constant. Use registers_to_string () and
6777 registers_from_string ().
6778 * gdbserver/server.h: No longer include "defs.h". Add prototypes
6779 for error (), fatal (), and warning (). Update definition of
6780 PBUFSIZ to use regcache functionality. Add include guard.
6781 * gdbserver/utils.c (fatal): Add missing ``const''.
6782 (warning): New function.
6784 * regformats/regdat.sh: Include "regcache.h" in generated files.
6785 Provide init_registers () function.
6786 * regformats/regdef.h: Add prototype for set_register_cache ().
6789 * gdbserver/linux-arm-low.c: New file.
6790 * gdbserver/linux-i386-low.c: New file.
6791 * gdbserver/linux-ia64-low.c: New file.
6792 * gdbserver/linux-m68k-low.c: New file.
6793 * gdbserver/linux-mips-low.c: New file.
6794 * gdbserver/linux-ppc-low.c: New file.
6795 * gdbserver/linux-sh-low.c: New file.
6797 * gdbserver/regcache.c: New file.
6798 * gdbserver/regcache.h: New file.
6800 * gdbserver/low-linux.c: Removed obsolete file.
6802 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6804 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
6805 * config/i386/linux.mt: Likewise.
6806 * config/ia64/linux.mt: Likewise.
6807 * config/m68k/linux.mh: Likewise.
6808 * config/powerpc/linux.mh: Likewise.
6809 * config/mips/linux.mt: Likewise.
6811 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
6813 * config/i386/i386lynx.mh: Mark gdbserver variables
6814 as (currently) obsolete for this target.
6815 * config/i386/nbsd.mt: Likewise.
6816 * config/i386/nbsdelf.mt: Likewise.
6817 * config/m32r/m32r.mt: Likewise.
6818 * config/m68k/m68klynx.mh: Likewise.
6819 * config/m68k/nbsd.mt: Likewise.
6820 * config/m68k/sun3os4.mh: Likewise.
6821 * config/mips/vr5000.mt: Likewise.
6822 * config/ns32k/nbsd.mt: Likewise.
6823 * config/pa/hppabsd.mh: Likewise.
6824 * config/pa/hppaosf.mh: Likewise.
6825 * config/powerpc/nbsd.mt: Likewise.
6826 * config/rs6000/rs6000lynx.mh: Likewise.
6827 * config/s390/s390.mt: Likewise.
6828 * config/s390/s390x.mt: Likewise.
6829 * config/sparc/sparclynx.mh: Likewise.
6830 * config/sparc/sun4os4.mh: Likewise.
6831 * config/i386/x86-64linux.mt: Likewise.
6832 * config/sparc/linux.mh: Likewise.
6834 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6836 * configure.tgt: Configure gdbserver only for known working
6837 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
6838 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
6839 SUBDIRS if it is configured. Update comment for ${nativefile}.
6840 * configure: Regenerated.
6842 2002-02-13 Michael Snyder <msnyder@redhat.com>
6844 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
6846 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
6847 (default_gcore_mach): Just return 0, work around a problem in bfd.
6848 (default_gcore_target): OK to return NULL if exec_bfd is null.
6849 (make_mem_sec): Use a cast, avoid a warning.
6851 * procfs.c (find_memory_regions_callback): Use a cast instead of
6852 calling host_pointer_to_address (which complains if
6853 sizeof (host pointer) != sizeof (target pointer)).
6854 (procfs_make_note_section): Avoid overflow in psargs string.
6856 * procfs.c (procfs_make_note_section): Make the default
6857 implementation return an error.
6859 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
6861 * procfs.c (procfs_make_note_section): Provide a default definition
6862 (for alpha-dec-osf4.0f). Fix typos.
6864 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
6866 * linux-proc.c: Add include of regcache.h.
6867 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
6869 2002-02-13 Andrew Cagney <ac131313@redhat.com>
6871 From 2002-01-18 Greg McGary <greg@mcgary.org>:
6872 * memattr.c (create_mem_region): Disallow useless empty region.
6873 Regions are half-open intervals, so allow [A..B) [B..C) as
6876 2002-02-13 Michael Chastain <mec@shout.net>
6878 * defs.h: Kill CONST_PTR.
6879 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
6880 * c-lang.c (c_builtin_types): Likewise.
6881 * ch-lang.c (ch_builtin_types): Likewise.
6882 * f-lang.c (f_builtin_types): Likewise.
6883 * language.c (unknown_builtin_types): Likewise.
6884 * m2-lang.c (m2_builtin_types): Likewise.
6885 * p-lang.c (pascal_builtin_types): Likewise.
6886 * scm-lang.c (c_builtin_types): Likewise.
6888 2002-02-13 Keith Seitz <keiths@redhat.com>
6890 * arm-tdep.h (arm_get_next_pc): Add declaration.
6892 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
6894 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
6895 with other related struct-returning functions.
6896 (arm_extract_struct_value_address): New function.
6897 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
6898 initialize float_format, double_format and long_double_format as
6899 appropriate to the endianness of the target.
6900 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
6901 (arm_use_struct_convention): Delete declaration.
6902 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
6904 2002-02-13 Keith Seitz <keiths@redhat.com>
6906 * defs.h (core_addr_to_string_nz): New function.
6908 2002-02-13 Mark Kettenis <kettenis@gnu.org>
6910 Apply missing bits of 2002-01-15 patch.
6911 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
6912 (fill_fpregset): Use i387_fill_fsave.
6914 2002-02-12 Keith Seitz <keiths@redhat.com>
6916 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
6917 (core_addr_to_string_nz): New function.
6919 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6921 * arm-linux-nat.c: Really include arm-tdep.h.
6922 * config/arm/tm-linux.h (struct type, struct value): Declare.
6924 2002-02-11 Michael Snyder <msnyder@redhat.com>
6926 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
6927 (gcore section): Ifdef for Solaris and Unixware only.
6928 (procfs_do_thread_registers): Unixware needs one lwpstatus
6929 per thread (not one prstatus or pstatus).
6930 (procfs_make_note_section): Iterate only over kernel threads (lwps),
6931 not over all gdb threads. For unixware, call elfcore_write_pstatus
6932 once before iterating over threads.
6934 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6936 * arm-tdep.h: New file.
6937 * arm-tdep.c: Include arm-tdep.h.
6938 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6939 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6940 (arm_print_float_info, arm_register_type, convert_to_extended)
6941 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6942 (arm_extract_return_value, arm_register_name): Make static.
6943 (arm_software_single_step): Similarly. Fix types in declaration.
6944 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
6945 (arm_store_return_value, arm_store_struct_return): New functions.
6946 (arm_gdbarch_init): Register the above functions. Also register
6947 call_dummy_start_offset, sizeof_call_dummy_words,
6948 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
6949 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
6950 max_register_virtual_size, register_size. Set up
6951 prologue_cache.saved_regs here, rather than ...
6952 (_initialize_arm_tdep): ... here.
6953 * config/arm/tm-arm.h (struct type, struct value): Delete forward
6955 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6956 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6957 (arm_print_float_info, arm_register_type, convert_to_extended)
6958 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6959 (arm_extract_return_value, arm_register_name): Delete declarations.
6960 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
6961 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
6962 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
6963 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
6964 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6965 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
6966 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
6967 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
6968 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
6969 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
6970 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
6971 (arm_get_next_pc): No-longer static -- these are needed by the RDI
6973 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
6974 * remote-rdi.c remote-rdp.c: Likewise.
6975 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
6976 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
6977 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
6980 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
6981 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
6982 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
6983 from non-ARM_ prefixed definitions.
6984 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
6986 * remote-rdi.c remote-rdp.c: Likewise.
6987 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
6989 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6991 * arm-tdep.c (arm_frameless_function_invocation)
6992 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6993 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6994 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6995 (arm_pop_frame, arm_get_next_pc): Make static.
6996 (arm_gdbarch_init): Register above in gdbarch structure.
6997 (arm_read_fp): Renamed from arm_target_read_fp.
6998 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
6999 * config/arm/tm-arm.h (arm_frameless_function_invocation)
7000 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
7001 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
7002 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
7003 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
7004 (arm_pc_is_thumb_dummy): Delete declarations.
7005 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
7006 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
7007 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
7008 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
7010 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
7012 * symtab.c (compare_search_syms): New function.
7013 (sort_search_symbols): New function.
7014 (search_symbols): Sort symbols after searching rather than
7017 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7019 * NEWS: Linux -> GNU/Linux.
7021 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7023 * gdbarch.sh: For for level one methods, disallow a definition
7024 when partially multi-arched. Add comments explaining rationale.
7025 * gdbarch.h: Re-generate.
7027 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7029 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
7032 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7034 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
7036 * gdbarch.c: Re-generate.
7038 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7040 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
7041 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
7044 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7046 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
7048 (PUSH_ARGUMENTS): Switch to using predefault.
7049 * gdbarch.c: Regenerate.
7051 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7053 * valops.c (PUSH_ARGUMENTS): Delete definition.
7054 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
7055 partial. Default to default_push_arguments.
7056 * gdbarch.h, gdbarch.c: Regenerate.
7058 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7060 * defs.h (throw_exception): Rename return_to_top_level. Update
7062 * utils.c (error_stream, internal_verror, quit): Ditto.
7063 * top.c (throw_exception, catcher): Ditto.
7064 * sparclet-rom.c (sparclet_load): Ditto.
7065 * remote.c (interrupt_query, minitelnet): Ditto.
7066 * remote-sds.c (interrupt_query): Ditto.
7067 * remote-mips.c (mips_error, mips_kill): Ditto.
7068 * ocd.c (interrupt_query): Ditto.
7069 * monitor.c (monitor_interrupt_query): Ditto.
7070 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
7071 * target.h: Update comment.
7073 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
7075 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7077 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
7078 default_double_format.
7079 * gdbarch.h, gdbarch.c: Re-generate.
7080 * findvar.c (floatformat_unknown): Delete variable definition.
7081 * doublest.h (floatformat_unknown): Delete variable declaration.
7083 2002-02-09 Jim Blandy <jimb@redhat.com>
7085 * stabsread.c (read_type): Add code to parse Sun's syntax for
7086 prototyped function types.
7088 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7090 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
7091 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
7093 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7095 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
7096 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
7097 now _initialize_xcoffsolib gets called again and overrides the
7098 commands from solib.c in a native configuration.
7100 2002-02-09 Mark Kettenis <kettenis@gnu.org>
7102 * doublest.c (store_typed_floating): Don't try to return a value.
7105 2002-02-08 Jim Blandy <jimb@redhat.com>
7107 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
7108 is prototyped and has no arguments, print its argument list as
7111 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7113 * MAINTAINERS (write-after-approval): Add myself.
7114 (paper-trail): I've escaped!
7116 2002-02-08 Christopher Faylor <cgf@redhat.com>
7118 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
7120 (_initialize_check_for_gdb_ini): Ditto.
7122 2002-02-08 Martin M. Hunt <hunt@redhat.com>
7124 * win32-nat.c (cygwin_pid_to_str): Fix typo.
7125 xaprintf -> xasprintf.
7127 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
7129 * win32-nat.c: Remove use of printf and sprintf functions.
7131 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
7133 * arm-tdep.c (arm_frame_chain_valid): Make static.
7134 (arm_push_arguments): Likewise.
7135 (arm_gdbarch_init): New function.
7136 (_initialize_arm_tdep): Call it.
7137 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
7138 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
7139 (FRAME_CHAIN_VALID): Delete.
7140 (arm_frame_chain_valid): Delete declaration.
7141 (PUSH_ARGUMENTS): Delete.
7142 (arm_push_arguments): Delete declaration.
7143 (CALL_DUMMY_P): Delete.
7145 2002-02-08 Andrew Cagney <ac131313@redhat.com>
7146 Corinna Vinschen <vinschen@redhat.com>
7148 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
7149 on builtin float types.
7151 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
7153 * utils.c: Include <curses.h> before "bfd.h".
7154 * tui/tui-hooks.c: Likewise.
7155 * tui/tui.c: Likewise.
7156 * tui/tuiCommand.c: Likewise.
7157 * tui/tuiData.c: Likewise.
7158 * tui/tuiDataWin.c: Likewise.
7159 * tui/tuiDisassem.c: Likewise.
7160 * tui/tuiGeneralWin.c: Likewise.
7161 * tui/tuiIO.c: Likewise.
7162 * tui/tuiLayout.c: Likewise.
7163 * tui/tuiRegs.c: Likewise.
7164 * tui/tuiSource.c: Likewise.
7165 * tui/tuiSourceWin.c: Likewise.
7166 * tui/tuiStack.c: Likewise.
7167 * tui/tuiWin.c: Likewise.
7169 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
7171 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
7172 to include space for pseudoregs as well. Update loops accordingly.
7173 (sh_fp_frame_init_saved_regs): Ditto.
7174 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
7176 2002-02-07 Andrew Cagney <ac131313@redhat.com>
7178 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
7179 Add Richard Earnshaw to Arm maintainers.
7181 2002-02-07 Andrew Cagney <ac131313@redhat.com>
7183 * defs.h (warning_begin): Delete declaration.
7185 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
7188 2002-02-07 Michael Snyder <msnyder@redhat.com>
7190 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
7191 Logic bug, remove misplaced else.
7193 2002-02-07 Klee Dienes <klee@apple.com>
7195 * fork-inferior.c (fork_inferior): Add '!' to the list of
7196 characters that need to be quoted when building a string for the
7197 shell. Quote '!' specifically with a backslash, since CSH chokes
7198 when trying to evaluate "str!str".
7200 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
7202 * rdi-share/host.h: Only provide a typedef for bool if it is not
7205 2002-02-04 Michael Snyder <msnyder@redhat.com>
7207 * breakpoint.h (enum bptype): Add new overlay event bp type.
7208 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
7210 * breakpoint.c (create_internal_breakpoint): New function.
7211 (internal_breakpoint_number): Moved into create_internal_breakpoint.
7212 (create_longjmp_breakpoint): Use create_internal_breakpoint.
7213 (create_thread_event_breakpoint): Ditto.
7214 (create_solib_event_breakpoint): Ditto.
7215 (create_overlay_event_breakpoint): New function.
7216 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
7217 (update_breakpoints_after_exec): Delete and re-initialize
7218 overlay event breakpoints after an exec. Add FIXME comment
7219 about longjmp breakpoint.
7220 (print_it_typical): Ignore overlay event breakpoints.
7221 (print_one_breakpoint): Ditto.
7223 (bpstat_what): Do not stop for overlay event breakpoints.
7224 (delete_breakpoint): Don't delete overlay event breakpoints.
7225 (breakpoint_re_set_one): Delete the overlay event breakpoint.
7226 (breakpoint_re_set): Re-create overlay event breakpoint.
7228 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
7229 (overlay_manual_command): Disable overlay breakpoints.
7230 (overlay_off_command): Disable overlay breakpoints.
7232 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7234 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
7235 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
7236 to here from config/tm-arm.h.
7237 (coff_sym_is_thumb): Make static.
7238 (arm_elf_make_msymbol_special): New function.
7239 (arm_coff_make_msymbol_special): New function.
7240 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
7241 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
7242 (coff_sym_is_thumb): Delete declaration.
7243 (arm_elf_make_msymbol_special): Declare.
7244 (arm_coff_make_msymbol_special): Declare.
7245 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
7246 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
7248 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7250 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
7252 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7254 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
7255 * gdbarch.c gdbarch.h: Regenerate.
7256 * arch-utils.c (default_print_float_info): New function.
7257 * arch-utils.h (default_print_float_info): Prototype it.
7258 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
7259 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
7260 (PRINT_FLOAT_INFO): Document it.
7262 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
7263 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
7264 (PRINT_FLOAT_INFO): Define.
7266 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
7268 * win32-nat.c (_initialize_check_for_gdb_ini):
7269 Add typecast to sprintf argument to suppress a warning.
7271 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
7273 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7274 to allow easier handling of pass state.
7275 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
7276 that gives exception name and address.
7277 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
7278 and set last_sig value to ourstatus->value.sig. Some missing
7280 (child_continue): Correctly report continue_status.
7281 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7282 TARGET_SIGNAL_0 (new default value).
7283 (child_resume): consider sig argument passed to decide if
7284 the exception should be passed to debuggee or not.
7286 2002-02-05 Michael Snyder <msnyder@redhat.com>
7288 * regcache.c (fetch_register): Call target_fetch_register
7289 only if we don't call FETCH_PSEUDO_REGISTER.
7290 (store_register): Call target_store_register only if we
7291 don't call STORE_PSEUDO_REGISTER.
7293 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
7295 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
7296 ELF_MAKE_MSYMBOL_SPECIAL.
7297 * gdbarch.c, gdbarch.h: Regenerate.
7298 * arch-utils.c (default_make_msymbol_special): New function.
7299 * arch-utils.h (default_make_msymbol_special): Export.
7300 * elfread.c (elf_symtab_read): Compile use of
7301 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
7303 * coffread.c (coff_symtab_read): Ditto, for
7304 COFF_MAKE_MSYMBOL_SPECIAL.
7306 2002-02-05 Jim Blandy <jimb@redhat.com>
7308 * solib-svr4.c (svr4_truncate_ptr): New function.
7309 (svr4_relocate_section_addresses): Do the address arithmetic with
7310 the appropriate truncation for target addresses, even when
7311 CORE_ADDR is larger than a target address.
7313 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7315 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
7318 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7320 * gdbserver/linux-low.c (kill_inferior): Remove commented out
7323 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7325 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
7327 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7329 * gdbserver/linux-low.c: Remove unused include files.
7331 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7333 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
7334 (read_inferior_memory): Use it.
7335 (write_inferior_memory): Likewise.
7337 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7339 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
7340 grubbing through sys_errlist.
7342 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7344 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
7346 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7347 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
7349 2002-02-04 Andrew Cagney <ac131313@redhat.com>
7351 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
7352 (do_sfunc, set_cmd_sfunc): New functions.
7354 * command.h (struct cmd_list_element): Add field func.
7355 * cli/cli-decode.h (struct cmd_list_element): Ditto.
7356 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
7357 * cli/cli-decode.h: Ditto.
7359 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
7360 (help_all, help_cmd_list): Ditto.
7361 (find_cmd, complete_on_cmdlist): Ditto.
7362 * top.c (execute_command): Ditto.
7364 * cli/cli-setshow.c (do_setshow_command): Call func instead of
7367 * infcmd.c (notice_args_read): Fix function signature.
7369 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
7370 * cli/cli-decode.c (add_set_cmd): Ditto.
7371 * utils.c (initialize_utils): Ditto.
7372 * maint.c (_initialize_maint_cmds): Ditto.
7373 * infrun.c (_initialize_infrun): Ditto.
7374 * demangle.c (_initialize_demangler): Ditto.
7375 * remote.c (add_packet_config_cmd): Ditto.
7376 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7377 * cris-tdep.c (_initialize_cris_tdep): Ditto.
7378 * proc-api.c (_initialize_proc_api): Ditto.
7379 * kod.c (_initialize_kod): Ditto.
7380 * valprint.c (_initialize_valprint): Ditto.
7381 * top.c (init_main): Ditto.
7382 * infcmd.c (_initialize_infcmd): Ditto.
7383 * corefile.c (_initialize_core): Ditto.
7384 * arm-tdep.c (_initialize_arm_tdep): Ditto.
7385 * arch-utils.c (initialize_current_architecture): Ditto.
7386 (_initialize_gdbarch_utils): Ditto.
7387 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
7389 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
7390 * wince.c (_initialize_inftarg): Ditto.
7391 * symfile.c (_initialize_symfile): Ditto.
7392 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7393 * language.c (_initialize_language): Ditto.
7394 * arc-tdep.c (_initialize_arc_tdep): Ditto.
7396 2002-02-04 Michael Snyder <msnyder@redhat.com>
7398 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
7400 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7402 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
7403 Add rules for building the register data files.
7405 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7407 * regformats/regdat.sh: Add braces to the definition of
7408 expedite_regs_${arch}.
7410 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7412 * regformats/regdef.h (struct reg): Add comment describing the
7413 requirements for offset and size fields.
7415 2002-02-04 Andreas Schwab <schwab@suse.de>
7417 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
7418 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
7420 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
7422 * gdbarch.sh (copyright): Update years in generated header.
7423 (SMASH_TEXT_ADDRESS): Add rule.
7424 * gdbarch.h, gdbarch.c: Re-generate.
7425 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
7426 * dbxread.c: Likewise.
7427 * dwarfread.c: Likewise.
7428 * elfread.c: Likewise.
7429 * somread.c: Likewise.
7431 * arm-tdep.c (arm_smash_text_address): New function.
7432 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
7434 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7436 Add support for hardware watchpoints on win32 native.
7437 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
7438 CONTEXT_DEBUG_REGISTERS.
7439 (dr variable): New variable. Static array containing a local copy
7441 (debug_registers_changed): New variable. Reflects when debug registers
7442 are changed and need to be written to inferior.
7443 (debug_registers_used): New variable. Reflects when any debug register
7444 was set, used when new threads are created.
7445 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
7447 (thread_rec): Set dr array if id is the thread of current_event .
7448 (child_continue, child_resume): Change the debug registers for all
7449 threads if debug_registers_changed.
7450 (child_add_thread): Change the debug registers if debug_registers_used.
7451 * config/i386/cygwin.mh: Add use of i386-nat.o file.
7452 Link nm.h to new nm-cygwin.h file.
7453 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
7454 of hardware registers.
7456 2002-02-03 Andrew Cagney <ac131313@redhat.com>
7458 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
7459 Restore behavour broken by 2002-01-20 Andrew Cagney
7460 <ac131313@redhat.com> IEEE_FLOAT removal.
7462 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7464 * c-valprint.c (c_val_print): Pass a proper valaddr to
7465 cp_print_class_method.
7466 * valops.c (search_struct_method): If there is only one method
7467 and args is NULL, return that method.
7469 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7471 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
7472 accessing tag_name directly.
7474 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7476 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
7477 of accessing tag_name directly.
7479 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7482 * gdbtypes.c (replace_type): New function.
7483 * gdbtypes.h (replace_type): Add prototype.
7484 * stabsread.c (read_type): Use replace_type.
7486 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
7488 * Makefile.in (memattr.o): Add missing dependencies rule.
7490 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7492 * breakpoint.c (break_at_finish_command): Really export.
7493 (break_at_finish_at_depth_command): Ditto.
7494 (tbreak_at_finish_command): Ditto.
7495 * hppa-tdep.c: Include completer.h.
7496 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
7497 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
7499 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7501 * utils.c (do_write): New function.
7502 (error_stream): Rewrite combining the code from error_begin and
7504 (verror): Rewrite using error_stream.
7505 (error_begin): Delete function.
7507 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7509 * utils.c (error_begin): Make static.
7510 * defs.h (error_begin): Delete declaration.
7512 * linespec.c (cplusplus_error): Replace cplusplus_hint.
7513 (decode_line_1): Use cplusplus_error instead of error_begin,
7514 cplusplus_hint and return_to_top_level.
7515 * coffread.c (coff_symfile_read): Use error instead of error_begin
7516 and return_to_top_level.
7517 * infrun.c (default_skip_permanent_breakpoint): Ditto.
7519 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7521 * language.h (type_error, range_error): Make string parameter
7523 * language.c (warning_pre_print): Delete extern declaration.
7524 * dwarfread.c (warning_pre_print): Ditto.
7525 * language.c (type_error, range_error): Rewrite to use verror and
7526 vwarning instead of warning_begin.
7528 2002-02-01 Michael Snyder <msnyder@redhat.com>
7530 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
7531 (set_ignore_count): Move misplaced comment back where it belongs.
7533 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7535 * command.h (NO_FUNCTION): Delete macro.
7536 * cli/cli-decode.h (NO_FUNCTION): Ditto.
7537 * top.c (execute_command): Replace NO_FUNCTION with NULL.
7538 * tracepoint.c (_initialize_tracepoint): Ditto.
7539 * cli/cli-decode.c (add_set_cmd): Ditto.
7540 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7542 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
7544 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
7545 Update ``this'' pointer when calling virtual functions.
7547 2002-02-01 Michael Snyder <msnyder@redhat.com>
7549 * breakpoint.c (create_temp_exception_breakpoint): Delete.
7550 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
7552 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
7554 * regformats/reg-arm.dat: New file.
7555 * regformats/reg-i386.dat: New file.
7556 * regformats/reg-ia64.dat: New file.
7557 * regformats/reg-m68k.dat: New file.
7558 * regformats/reg-mips.dat: New file.
7559 * regformats/reg-ppc.dat: New file.
7560 * regformats/reg-sh.dat: New file.
7561 * regformats/regdef.h: New file.
7562 * regformats/regdat.sh: New file.
7564 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
7566 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
7567 (arm_frame_args_address, arm_frame_locals_address): New functions.
7568 (arm_frame_num_args): New function.
7569 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
7570 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
7571 (FRMA_NUM_ARGS): Call arm_frame_num_args.
7573 2002-01-31 Michael Snyder <msnyder@redhat.com>
7575 * breakpoint.c (break_at_finish_command): Export.
7576 (break_at_finish_at_depth_command): Export.
7577 (tbreak_at_finish_command): Export.
7578 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
7579 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
7580 "tbreak" commands, which are HPPA specific.
7582 * printcmd.c (disassemble_command): Remove an ancient
7583 artifact of an old merge.
7585 * symfile.h (enum overlay_debugging_state):
7586 Define enum constant values for overlay mode.
7587 * symfile.c (overlay_debugging): Use enums instead of literals.
7588 (overlay_is_mapped, overlay_auto_command,
7589 overlay_manual_command): Ditto.
7591 * breakpoint.c (insert_breakpoints, remove_breakpoint,
7592 breakpoint_here_p, breakpoint_inserted_here_p,
7593 breakpoint_thread_match, bpstat_stop_status,
7594 describe_other_breakpoints, check_duplicates, clear_command):
7595 Coding standard fixes.
7597 * target.c (target_xfer_memory): Add spaces, coding standard.
7598 (do_xfer_memory): Add missing line to trust-readonly
7599 code: check bfd SEC_READONLY flag for section.
7601 2002-01-31 Andrew Cagney <ac131313@redhat.com>
7603 * PROBLEMS: Fix typo, 5.1->5.1.1.
7605 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
7607 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
7608 data symbols, since we search based on textlow and texthigh.
7609 (find_pc_sect_symtab): Likewise.
7611 2002-01-30 Andrew Cagney <ac131313@redhat.com>
7613 * defs.h (vwarning): Declare.
7614 * utils.c (vwarning): New function.
7615 (warning): Call vwarning.
7616 (warning_begin): Delete function.
7618 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
7619 the warning message.
7620 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
7623 2002-01-30 Michael Snyder <msnyder@redhat.com>
7625 * NEWS: Mention "set trust-readonly-sections" command.
7626 Mention generate-core-file command.
7628 2002-01-15 Michael Snyder <msnyder@redhat.com>
7630 * target.c: New command, "set trust-readonly-sections on".
7631 (do_xfer_memory): Honor the suggestion to trust readonly sections
7632 by reading them from the object file instead of from the target.
7633 (initialize_targets): Register command "set trust-readonly-sections".
7635 2002-01-29 Andrew Cagney <ac131313@redhat.com>
7637 * parse.c (target_map_name_to_register): Simplify, search regs and
7638 pseudo-regs using a single loop.
7640 2002-01-30 Andrew Cagney <ac131313@redhat.com>
7642 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
7644 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
7646 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
7647 * config/i386/i386v42mp.mh: Add i387-nat.o .
7648 * i386v4-nat.c: Include i387-nat.h.
7649 (supply_fpregset): Use i387_supply_fsave.
7650 (fill_fpregset): Use i387_fill_fsave.
7652 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
7654 * arm-tdep.c (arm_call_dummy_words): Define.
7655 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
7656 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
7657 (CALL_DUMMY_WORDS): Define.
7658 (arm_call_dummy_words): Declare.
7659 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
7660 (arm_linux_call_dummy_words): Declare.
7662 2002-01-30 Andreas Schwab <schwab@suse.de>
7664 * m68klinux-nat.c: Fix last change to use regcache_collect
7665 instead of referencing registers[] directly.
7667 2002-01-29 Andrew Cagney <ac131313@redhat.com>
7669 * parse.c (target_map_name_to_register): Delete code wrapped in
7670 #ifdef REGISTER_NAME_ALIAS_HOOK.
7672 2002-01-28 Michael Snyder <msnyder@redhat.com>
7674 * regcache.c (legacy_read_register_gen): Need to be able to
7675 read pseudo-register as well as real register.
7676 (legacy_write_register_gen): Ditto.
7678 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7680 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7681 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
7682 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
7683 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
7684 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
7685 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
7686 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
7687 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
7688 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
7689 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7690 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
7691 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
7692 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
7693 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
7694 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
7695 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
7696 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
7697 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
7698 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
7699 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
7701 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7703 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
7704 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
7705 (initialize_current_architecture): Update target_byte_order using
7706 information from BFD.
7707 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
7708 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
7710 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7712 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
7713 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
7715 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
7716 #ifdef INVALID_FLOAT.
7717 * infcmd.c (do_registers_info): Ditto.
7718 * values.c (unpack_double): Ditto. Add comment.
7720 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
7721 already commented out.
7723 2002-01-26 Andreas Schwab <schwab@suse.de>
7725 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7726 * m68klinux-nat.c: Update ptrace interface for fetching/storing
7727 registers and add support for PTRACE_GETREGS.
7729 2002-01-24 Andrew Cagney <ac131313@redhat.com>
7731 GDB 5.1.1 released from 5.1 branch.
7732 * NEWS: Add 5.1.1 news.
7733 * README: Sync with 5.1 branch.
7735 2002-01-23 Fred Fish <fnf@redhat.com>
7737 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
7738 stabstring on initial malloc. Reallocing will copy it for us,
7741 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
7743 * Makefile.in (hpread_h): Delete.
7744 (HFILES_NO_SRCDIR): Remove hpread.h.
7745 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
7746 (hpread.o): Update dependencies.
7747 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
7749 * hp-psymtab-read.c: Remove file.
7750 * hp-symtab-read.c: Remove file.
7751 * hpread.h: Remove file.
7753 * hpread.c: Merge all contents of hp-psymtab-read.c,
7754 hp-symtab-read.c and hpread.h into this file, as it was prior to
7757 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
7758 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
7759 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
7760 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
7762 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
7764 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
7765 fill_gregset): Call gdbarch_tdep() just once, assign result to
7766 variable and use that, instead of calling the function several
7769 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7771 * configure.host: Accept sparcv9 as alias for sparc64.
7772 * configure.tgt: Likewise.
7774 2002-01-22 Kevin Buettner <kevinb@redhat.com>
7776 * solib-aix5.c (build_so_list_from_mapfile)
7777 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
7778 arguments is not reversed.
7779 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
7780 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
7782 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
7784 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
7785 modified version of obsolete sh_fetch_pseudo_register.
7786 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
7787 (sh4_register_read): New function.
7788 (sh_pseudo_register_write): New function. Renamed and modified
7789 version of obsolete sh_store_pseudo_register.
7790 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
7791 (sh4_register_write): New function.
7792 (sh_gdbarch_init): Remove setting of gdbarch function
7793 fetch_pseudo_register and store_pseudo_register. Remove setting of
7794 register_convert_to_raw, register_convert_to_virtual,
7795 register_convertible.
7796 (sh_sh4_register_convertible): Delete. No longer needed. All is
7797 taken care by architecture specific functions
7798 register_read/register_write.
7799 (sh_sh4_register_convert_to_virtual): Make static.
7800 (sh_sh4_register_convert_to_raw): Ditto.
7802 2002-01-22 Andrew Cagney <ac131313@redhat.com>
7804 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
7805 (floatformat_is_nan, floatformat_mantissa): Ditto.
7807 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
7808 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
7809 builtin_type_ieee_double_little,
7810 builtin_type_ieee_double_littlebyte_bigword,
7811 builtin_type_m68881_ext, builtin_type_i960_ext,
7812 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
7813 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
7814 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
7815 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
7817 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
7819 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
7820 parameter. Set frameless flag if it exists and depended of
7821 whether the scanned function is frameless or not.
7822 (xstormy16_skip_prologue): If function is frameless, return
7823 result of xstormy16_scan_prologue().
7824 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
7827 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
7829 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
7830 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
7831 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
7832 sh_sh4_register_byte, sh_sh4_register_raw_size,
7833 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
7834 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
7835 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
7836 sh_store_pseudo_register, sh_do_pseudo_register): Call
7837 gdbarch_tdep() just once, assign result to variable and use that,
7838 instead of calling the function several times.
7840 2002-01-20 Mark Kettenis <kettenis@gnu.org>
7842 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
7843 macros instead of LAST_FPU_CTRL_REGNUM.
7844 (store_register): Likewise.
7846 2002-01-21 Jim Blandy <jimb@redhat.com>
7848 * infcmd.c (run_command): Check that the `exec' target layer's BFD
7849 is up-to-date before running the program, not just when a program
7852 2002-01-21 Fred Fish <fnf@redhat.com>
7854 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
7855 when we have found all instructions we are looking for.
7857 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
7859 * arm-tdep.c (arm_register_name): New function.
7860 (arm_registers_names): Make static.
7861 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
7862 (arm_register_name): Declare.
7863 (REGISTER_NAME): Use it.
7865 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
7866 Kevin Buettner <kevinb@redhat.com>
7868 Convert arm targets to new FRAME interface.
7869 * arm-tdep.c (struct frame_extra_info): Remove fsr.
7870 (arm_frame_find_save_regs): Delete.
7871 (arm_frame_init_saved_regs): New.
7872 (arm_init_extra_frame_info): Alloacte saved_regs as required.
7873 Allocate extra_info as required. Convert all uses of fsr.regs
7874 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
7876 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
7877 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
7878 (check_prologue_cache, save_prologue_cache): Likewise.
7879 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
7880 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
7881 (FRAME_FIND_SAVED_REGS): Delete.
7882 (arm_frame_find_saved_regs): Delete prototype.
7883 (arm_frame_init_saved_regs): New prototype.
7884 (FRAME_INIT_SAVED_REGS): Define.
7886 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7888 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
7890 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7892 From Jeff Law <law@redhat.com>:
7893 * infttrace.c: Include <sys/pstat.h>.
7894 (child_pid_to_exec_file): Revamp. Use pstat call to get the
7895 exec file if the ttrace equivalent fails.
7897 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7899 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
7900 (closeLogFile): Ditto.
7902 2002-01-20 Michael Chastain <mec@shout.net>
7904 * top.c (print_gdb_version): Bump copyright year to 2002.
7906 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7908 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
7909 Zannoni and Eli Zaretskii.
7911 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7913 * buildsym.c: Update copyright years.
7914 * c-typeprint.c: Likewise.
7915 * dwarf2read.c: Likewise.
7916 * f-typeprint.c: Likewise.
7917 * gdbtypes.c: Likewise.
7918 * gdbtypes.h: Likewise.
7919 * hp-symtab-read.c: Likewise.
7920 * hpread.c: Likewise.
7921 * mdebugread.c: Likewise.
7922 * p-typeprint.c: Likewise.
7924 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7926 * remote-sim.c (gdbsim_open): Simplify code testing the macro
7927 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
7928 byte-order selectable.
7929 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
7930 * arch-utils.c: Ditto.
7931 (set_endian): Ditto.
7932 (set_endian_from_file): Ditto.
7933 * gdbserver/low-sim.c (create_inferior): Ditto.
7934 * gdbarch.sh: Ditto.
7935 * gdbarch.h: Re-generate.
7936 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7937 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
7938 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
7939 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7940 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7941 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7942 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
7943 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
7945 * config/mips/tm-wince.h: Remove #undef of macro
7946 TARGET_BYTE_ORDER_SELECTABLE.
7947 * config/sh/tm-wince.h: Ditto.
7949 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7951 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
7952 member function fields. Add accessor macro
7953 TYPE_FN_FIELD_ARTIFICIAL.
7954 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
7955 * c-typeprint.c (c_type_print_base): Skip artificial member
7958 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7960 * f-typeprint.c: Delete unused function f_type_print_args.
7961 * p-typeprint.c: Delete unused function pascal_type_print_args.
7963 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7965 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
7966 comment. Add ``artificial'' to ``union field_location''.
7968 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
7970 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
7971 * mdebugread.c (parse_symbol): Likewise.
7972 * stabsread.c (define_symbol): Likewise.
7973 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
7974 initializing TYPE_FIELD_BITPOS to n (obsolete).
7975 (hpread_doc_function_type): Likewise.
7976 * hpread.c (hpread_function_type): Likewise.
7978 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7980 * configure.in (host_makefile_frag): Only require a host makefile
7981 fragment when a native build.
7982 * configure: Re-generate.
7984 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7986 * doublest.h (floatformat_from_type): Declare.
7987 * doublest.c (floatformat_from_type): New function.
7988 (convert_typed_floating): Use.
7990 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
7991 call to function floatformat_from_type.
7993 * gdbarch.sh (IEEE_FLOAT): Delete.
7994 * gdbarch.h, gdbarch.c: Re-generate.
7995 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
7996 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
7997 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
7998 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
7999 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
8000 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
8001 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
8002 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
8003 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
8004 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
8005 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
8006 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
8008 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
8009 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8010 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8011 * sh-tdep.c (sh_gdbarch_init): Ditto.
8012 * mips-tdep.c (mips_gdbarch_init): Ditto.
8013 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8014 * cris-tdep.c (cris_gdbarch_init): Ditto.
8016 2002-01-20 Jiri Smid <smid@suse.cz>
8018 * configure.host, configure.tgt: Support x86-64.
8019 * NEWS: Note new target x86-64.
8021 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
8022 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
8023 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
8024 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
8025 x86-64-linux-nat.o): Fix dependencies.
8027 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8029 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
8030 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
8031 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
8032 * config/sparc/xm-sun4os4.h: Delete file.
8033 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
8035 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8037 * config/sparc/sparclynx.mh (XM_FILE): Delete.
8038 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
8039 * config/m68k/m68klynx.mh (XM_FILE): Delete.
8040 * config/i386/i386lynx.mh (XM_FILE): Delete.
8041 * config/rs6000/xm-rs6000ly.h: Delete file.
8042 * config/sparc/xm-sparclynx.h: Delete file.
8043 * config/m68k/xm-m68klynx.h: Delete file.
8044 * config/i386/xm-i386lynx.h: Delete file.
8045 * config/xm-lynx.h: Delete file.
8046 * config/djgpp/fnchange.lst: Update.
8048 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8050 * alpha-tdep.c (alpha_register_byte): New function.
8051 (alpha_register_raw_size): Ditto.
8052 (alpha_register_virtual_size): Ditto.
8053 (alpha_skip_prologue_internal): Renamed from
8054 alpha_skip_prologue.
8055 (alpha_skip_prologue): New version that calls
8056 alpha_skip_prologue_internal.
8057 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
8058 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
8059 second argument from alpha_skip_prologue.
8060 (REGISTER_BYTE): Use alpha_register_byte.
8061 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
8062 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
8063 (FRAMELESS_FUNCTION_INVOCATION): Use
8064 generic_frameless_function_invocation_not.
8065 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
8066 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
8068 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8070 * config/mips/xm-news-mips.h: Delete file.
8071 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
8073 * config/m88k/xm-m88k.h: Delete file.
8074 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
8075 * config/m88k/xm-delta88v4.h: Ditto.
8076 * config/m88k/xm-delta88.h: Ditto.
8078 * config/alpha/xm-fbsd.h: Delete file.
8079 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
8081 * config/sparc/xm-sparc.h: Delete file.
8082 * Makefile.in (xm-sun4os4.h): Delete dependency.
8083 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
8084 * config/sparc/xm-sun4os4.h: Ditto.
8085 * config/sparc/xm-linux.h: Ditto.
8087 * config/i386/xm-windows.h: Delete file.
8089 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8091 * utils.c: Include <sys/param.h> for MAXPATHLEN.
8092 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
8094 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8096 * alpha-tdep.c (alpha_call_dummy_words): New.
8097 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
8098 (CALL_DUMMY_P): Define.
8099 (CALL_DUMMY_WORDS): Define.
8100 (SIZEOF_CALL_DUMMY_WORDS): Define.
8102 2002-01-19 Per Bothner <per@bothner.com>
8104 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
8105 isn't NULL, which can happen with some gcj-3.x-produced code.
8107 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8109 * alpha-tdep.c (alpha_register_virtual_type): New function.
8110 (alpha_init_frame_pc_first): Ditto.
8111 (alpha_fix_call_dummy): Ditto.
8112 (alpha_store_struct_return): Ditto.
8113 (alpha_extract_struct_value_address): Ditto.
8114 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
8115 alpha_register_virtual_type.
8116 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
8117 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
8118 alpha_extract_struct_value_address.
8119 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
8120 (INIT_FRAME_PC): Use init_frame_pc_noop.
8121 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
8123 2002-01-19 Mark Kettenis <kettenis@gnu.org>
8125 * i386gnu-nat.c: Include "i386-tdep.h".
8126 (fetch_fpregs): Simplify code dealing with uninitialized floating
8127 point states such that it doesn't require FP7_REGNUM.
8129 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8131 * alpha-tdep.c (frame_extra_info): New.
8132 (alpha_find_saved_regs): Make static. Use
8134 (alpha_frame_init_saved_regs): New function.
8135 (alpha_frame_saved_pc): Use frame->extra_info.
8136 (temp_saved_regs): Don't declare as struct frame_saved_regs.
8137 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
8138 (init_extra_frame_info): Rename to...
8139 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
8140 (alpha_print_extra_frame_info): New function.
8141 (alpha_frame_locals_address): Ditto.
8142 (alpha_frame_args_address): Ditto.
8143 (alpha_pop_frame): Use frame->extra_info.
8144 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
8145 alpha_frame_args_address.
8146 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
8147 (alpha_find_saved_regs): Remove prototype.
8148 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
8149 (EXTRA_FRAME_INFO): Remove.
8150 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
8151 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
8153 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8155 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
8156 (alpha_cannot_fetch_register): Ditto.
8157 (alpha_cannot_store_register): Ditto.
8158 (alpha_register_convertible): Ditto.
8159 (alpha_use_struct_convention): Ditto.
8160 * config/alpha/tm-alpha.h: Update copyright years.
8161 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
8162 (INNER_THAN): Use core_addr_lessthan.
8163 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
8164 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
8165 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
8166 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
8167 (FRAME_CHAIN): Remove unnecessary cast.
8169 2002-01-18 Andrew Cagney <ac131313@redhat.com>
8171 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
8174 2002-01-18 Andrew Cagney <ac131313@redhat.com>
8176 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
8177 * monitor.c, remote-array.c, remote-bug.c: Ditto.
8178 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
8179 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
8180 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
8181 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
8182 * x86-64-linux-nat.c: Ditto.
8184 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8186 * alpha-tdep.c (alpha_register_name): New function.
8187 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
8188 (REGISTER_NAME): Define.
8190 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8192 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
8194 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8196 * alpha-tdep.c: Update copyright years.
8197 (alpha_next_pc): New function.
8198 (alpha_software_single_step): Ditto.
8199 * config/alpha/tm-alpha.h: Add prototype for
8200 alpha_software_single_step.
8202 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8204 * alphabsd-nat.c: Update copyright years.
8205 (fill_gregset): Use regcache_collect.
8206 (fill_fpregset): Likewise.
8207 (fetch_inferior_registers): Only fetch integer registers
8208 if requested to do so.
8209 (store_inferior_registers): Only store integer registers
8210 if requested to do so.
8212 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8214 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
8215 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
8216 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
8217 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
8218 * config/alpha/fbsd.mh (XDEPFILES): Delete.
8219 * config/arm/linux.mh (XDEPFILES): Delete.
8220 * config/arm/nbsd.mh (XDEPFILES): Delete.
8221 * config/i386/i386dgux.mh (XDEPFILES): Delete.
8222 * config/i386/i386sol2.mh (XDEPFILES): Delete.
8223 * config/i386/i386m3.mh (XDEPFILES): Delete.
8224 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
8225 * config/i386/i386gnu.mh (XDEPFILES): Delete.
8226 * config/i386/fbsd.mh (XDEPFILES): Delete.
8227 * config/i386/i386bsd.mh (XDEPFILES): Delete.
8228 * config/i386/i386sco5.mh (XDEPFILES): Delete.
8229 * config/i386/i386v4.mh (XDEPFILES): Delete.
8230 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
8231 * config/i386/i386sco4.mh (XDEPFILES): Delete.
8232 * config/i386/i386aix.mh (XDEPFILES): Delete.
8233 * config/i386/go32.mh (XDEPFILES): Delete.
8234 * config/i386/cygwin.mh (XDEPFILES): Delete.
8235 * config/i386/i386lynx.mh (XDEPFILES): Delete.
8236 * config/i386/i386mach.mh (XDEPFILES): Delete.
8237 * config/i386/i386v32.mh (XDEPFILES): Delete.
8238 * config/i386/linux.mh (XDEPFILES): Delete.
8239 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
8240 * config/i386/ncr3000.mh (XDEPFILES): Delete.
8241 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
8242 * config/i386/i386sco.mh (XDEPFILES): Delete.
8243 * config/i386/i386v.mh (XDEPFILES): Delete.
8244 * config/i386/nbsd.mh (XDEPFILES): Delete.
8245 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
8246 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
8247 * config/i386/symmetry.mh (XDEPFILES): Delete.
8248 * config/i386/obsd.mh (XDEPFILES): Delete.
8249 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
8250 * config/ia64/linux.mh (XDEPFILES): Delete.
8251 * config/ia64/aix.mh (XDEPFILES): Delete.
8252 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
8253 * config/m68k/dpx2.mh (XDEPFILES): Delete.
8254 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
8255 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
8256 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
8257 * config/m68k/linux.mh (XDEPFILES): Delete.
8258 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
8259 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
8260 * config/m68k/nbsd.mh (XDEPFILES): Delete.
8261 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
8262 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
8263 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
8264 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
8265 * config/m88k/delta88.mh (XDEPFILES): Delete.
8266 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
8267 * config/m88k/m88k.mh (XDEPFILES): Delete.
8268 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
8269 * config/mips/linux.mh (XDEPFILES): Delete.
8270 * config/mips/irix6.mh (XDEPFILES): Delete.
8271 * config/mips/irix5.mh (XDEPFILES): Delete.
8272 * config/mips/irix4.mh (XDEPFILES): Delete.
8273 * config/mips/irix3.mh (XDEPFILES): Delete.
8274 * config/mips/decstation.mh (XDEPFILES): Delete.
8275 * config/mips/mipsm3.mh (XDEPFILES): Delete.
8276 (NATDEPFILES): Move core-aout.o to here.
8277 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
8278 * config/pa/hpux1020.mh (XDEPFILES): Delete.
8279 * config/pa/hppabsd.mh (XDEPFILES): Delete.
8280 * config/pa/hppahpux.mh (XDEPFILES): Delete.
8281 * config/pa/hpux11w.mh (XDEPFILES): Delete.
8282 * config/pa/hppaosf.mh (XDEPFILES): Delete.
8283 * config/pa/hpux11.mh (XDEPFILES): Delete.
8284 * config/powerpc/aix.mh (XDEPFILES): Delete.
8285 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
8286 * config/powerpc/linux.mh (XDEPFILES): Delete.
8287 * config/romp/rtbsd.mh: Rename XDEPFILES.
8288 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
8289 * config/rs6000/aix4.mh (XDEPFILES): Delete.
8290 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
8291 * config/s390/s390.mh (XDEPFILES): Delete.
8292 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
8293 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
8294 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
8295 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
8296 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
8297 * config/sparc/nbsd.mh (XDEPFILES): Delete.
8298 * config/sparc/linux.mh (XDEPFILES): Delete.
8299 * config/vax/vaxult.mh (XDEPFILES): Delete.
8300 * config/vax/vaxult2.mh (XDEPFILES): Delete.
8301 * Makefile.in (DEPFILES): Remove XDEPFILES.
8303 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8305 * utils.c (internal_verror): Fix comments, default is yes not no.
8306 Update queries to match. Default to quit and dump core.
8308 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8310 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
8312 * defs.h, event-top.c, gdbcmd.h: Ditto.
8313 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
8314 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
8315 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
8316 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
8317 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
8318 * mi/mi-main.c:Ditto.
8320 * stack.c, symfile.c: Update copyright.
8322 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8324 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
8325 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
8326 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
8327 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
8329 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8331 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
8332 * gdbserver/low-lynx.c (myattach): Likewise.
8333 * gdbserver/low-nbsd.c (myattach): Likewise.
8334 * gdbserver/low-sim.c (myattach): Likewise.
8335 * gdbserver/low-sparc.c (myattach): Likewise.
8336 * gdbserver/low-sun3.c (myattach): Likewise.
8338 * gdbserver/low-linux.c (myattach): New function.
8340 * gdbserver/server.c (attach_inferior): New function.
8341 (main): Handle "--attach".
8343 2002-01-16 Andrew Cagney <ac131313@redhat.com>
8345 * MAINTAINERS (language support): Daniel Jacobwitz is C++
8348 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
8350 * c-typeprint.c (is_type_conversion_operator): Add additional
8351 check for non-conversion operators.
8353 2002-01-15 Michael Snyder <msnyder@redhat.com>
8355 * linux-proc.c: Add "info proc" command, a la procfs.c.
8356 (read_mapping): New function, abstract and re-use code.
8357 (linux_find_memory_regions): Use new func read_mapping.
8358 (linux_info_proc_cmd): New function, implement "info proc".
8359 (_initialize_linux_proc): Add new command "info proc".
8361 2002-01-15 Michael Snyder <msnyder@redhat.com>
8363 * symfile.c (generic_load): Use bfd_map_over_sections method
8364 instead of manipulating bfd structure members directly.
8365 (add_section_size_callback): New function, bfd sections callback
8366 used by generic_load.
8367 (load_sections_callback): New function, bfd sections callback
8368 used by generic_load.
8370 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
8372 [Based on work by Jim Blandy]
8373 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
8374 (builtin_type_vec128): Export.
8375 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
8377 (builtin_type_vec128): New builtin type for 128 bit vector
8379 (build_gdbtypes): Initialize builtin_type_v16qi and
8380 builtin_type_v8hi. Create the vec128 register builtin type
8382 (build_builtin_type_vec128): New function.
8383 (_initialize_gdbtypes): Register builtin_type_v16qi and
8384 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
8385 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
8386 AltiVec register to new builtin type.
8388 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
8390 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
8393 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8395 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
8396 CLEAN_UP_REGISTER_VALUE.
8397 * regcache.c (supply_register): Update only call.
8399 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8401 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8402 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8403 a29k-*-vxworks* targets as obsolete.
8405 2002-01-14 Michael Snyder <msnyder@redhat.com>
8407 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
8408 until we can resolve portability issues.
8409 * gregset.h: Remove references to fpxregs.
8410 * gcore.c (gcore_command): Initialize note_sec to NULL.
8412 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8414 * signals.c (target_signal_to_name): Rewrite. Only use
8415 signals[].name when in bounds and non-NULL.
8417 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8419 From Petr Ledvina <ledvinap@kae.zcu.cz>:
8420 * signals.c (target_signal_to_name): Verify that SIG is within the
8421 bounds of the signals array.
8423 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8425 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
8427 2002-01-13 Keith Seitz <keiths@redhat.com>
8429 * stack.c (print_frame_info_base): Print the frame's pc
8430 only if when print_frame_info_listing_hook is not defined.
8432 2002-01-13 Keith Seitz <keiths@redhat.com>
8434 * varobj.c (varobj_set_value): Make sure that there were no
8435 errors evaluating the object before attempting to set its
8437 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
8438 so this offset adjustment is no longer necessary.
8439 (create_child): Don't set the error flag if the child is
8441 (value_of_child): If value_fetch_lazy fails, return NULL
8442 so that callers will be notified that an error occurred.
8443 (c_value_of_variable): Delay check of variable's validity
8444 until later. We actually want all structs and unions to have
8446 Do not return "???" for variables which could not be evaluated.
8447 This error condition must be returned to the caller so that it
8448 can get the error condition from gdb.
8449 (cplus_name_of_child): Adjust index for vptr before figuring
8450 out the name of the child.
8451 (cplus_value_of_child): If a child's (real) parent is not valid,
8452 don't even bother trying to give a value for it. Just return
8453 an error. Change all instances in this function.
8454 (cplus_type_of_child): If our parent is one of the "fake"
8455 parents, we need to get at the type of the real parent, and
8456 derive the child's true type using this information.
8458 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8460 From 2002-01-09 John Marshall <johnm@falch.net>:
8461 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
8462 sources.redhat.com, and tweak some related URLs which had
8463 suffered from linkrot.
8465 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8468 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
8469 structures passed in registers.
8471 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
8473 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
8474 white space which prevented compilation. Reported by DSK
8475 <dsk@student.unsw.edu.au>.
8477 2002-01-11 Michael Snyder <msnyder@redhat.com>
8479 * symfile.c (build_section_addr_info_from_section_tab):
8480 Use bfd access method instead of manipulating bfd directly.
8481 (syms_from_objfile): Ditto.
8482 (simple_overlay_update_1): Ditto.
8483 (simple_overlay_update): Ditto.
8484 (generic_load): Ditto.
8485 (overlay_unmapped_address): FIXME comment, bfd access methods.
8486 (sections_overlap): FIXME comment, bfd access methods.
8487 (pc_in_mapped_range): FIXME comment, bfd access methods.
8488 (pc_in_unmapped_range): FIXME comment, bfd access methods.
8489 (section_is_mapped): FIXME comment, bfd access methods.
8490 (section_is_overlay): FIXME comment, bfd access methods.
8492 * symfile.c (generic_load): Whitespace and long line cleanups.
8493 Remove duplicate variable, change several local variables to
8494 more appropriate data types.
8495 (print_transfer_performance): Use %lu instead of %ld for ulongs.
8497 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8500 * language.c (longest_local_hex_string_custom): Use phex_nz to
8501 convert NUM to a hex string.
8503 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
8505 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
8507 Update Copyright year.
8509 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8511 * language.c (longest_raw_hex_string): Delete unused function.
8513 2002-01-11 Petr Sorfa <petrs@caldera.com>
8515 * MAINTAINERS (write-after-approval): Add myself.
8516 * dwarf2read.c (read_tag_string_type): Handling of
8518 (read_tag_string_type): FORTRAN fix to prevent propagation of
8520 (set_cu_language): Handling of DW_LANG_Fortran95
8522 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
8524 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
8525 GETPID(inferior_ptid).
8526 (store_inferior_registers): Likewise.
8528 2002-01-10 Jason Merrill <jason@redhat.com>
8530 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
8533 2002-01-10 Andrew Cagney <ac131313@redhat.com>
8535 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
8536 and bfd/elf32-sh-nbsd.c.
8538 2002-01-10 Michael Snyder <msnyder@redhat.com>
8540 * NEWS: Mention --pid and corefile/proc-id behavior change.
8542 * Makefile.in: Add rules for gcore.o and linux-proc.o.
8543 * gcore.c: Include cli/cli-decode.h instead of command.h.
8545 * main.c (captured_main): Add new command line option "--pid".
8546 If the second command line argument (following the symbol-file)
8547 begins with a digit, try to attach to it before trying to open
8549 (print_gdb_help): Document the "--pid" argument.
8551 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
8553 * completer.c (command_completer): New function.
8555 * completer.h <command_completer>: Add prototype.
8557 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
8558 completer for the "help" command.
8560 2002-01-09 Jason Merrill <jason@redhat.com>
8562 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
8564 2002-01-09 Michael Snyder <msnyder@redhat.com>
8566 * i386-linux-nat.c (fill_fpxregset): Make global.
8567 (store_fpxregset): Ditto.
8569 * gregset.h (gdb_fpxregset_t): Define.
8570 (supply_fpxregset): Prototype.
8571 (fill_fpxregset): Prototype.
8573 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
8575 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
8577 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
8578 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
8579 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
8581 2002-01-09 Andrew Cagney <ac131313@redhat.com>
8583 * MAINTAINERS: Update target maintainer rules so that any
8584 Maintainer can approve a tested patch for a maintenance-only
8587 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
8589 * MAINTAINERS (write-after-approval): Add myself.
8591 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
8594 2002-01-08 Michael Snyder <msnyder@redhat.com>
8596 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
8597 real name of the executable, rather than the /proc name.
8599 2002-01-03 Michael Snyder <msnyder@redhat.com>
8601 Implement a "generate-core-file" command in gdb, save target state.
8602 * gcore.c: New file. Implement new command 'generate-core-file'.
8603 Save a corefile image of the current state of the inferior.
8604 * linux-proc.c: Add linux-specific code for saving corefiles.
8605 * target.h (struct target_ops): Add new target vectors for saving
8606 corefiles; to_find_memory_regions and to_make_corefile_notes.
8607 (target_find_memory_regions): New macro.
8608 (target_make_corefile_notes): New macro.
8609 * target.c (update_current_target): Inherit new target methods.
8610 (dummy_find_memory_regions): New place-holder method.
8611 (dummy_make_corefile_notes): New place-holder method.
8612 (init_dummy_target): Initialize new dummy target vectors.
8613 * exec.c (exec_set_find_memory_regions): New function.
8614 Allow the exec_ops vector for memory regions to be taken over.
8615 (exec_make_note_section): New function, target vector method.
8616 * defs.h (exec_set_find_memory_regions): Export prototype.
8617 * procfs.c (proc_find_memory_regions): New function, corefile method.
8618 (procfs_make_note_section): New function, corefile method.
8619 (init_procfs_ops): Set new target vector pointers.
8620 (find_memory_regions_callback): New function.
8621 (procfs_do_thread_registers): New function.
8622 (procfs_corefile_thread_callback): New function.
8623 * sol-thread.c (sol_find_memory_regions): New function.
8624 (sol_make_note_section): New function.
8625 (init_sol_thread_ops): Initialize new target vectors.
8626 * inftarg.c (inftarg_set_find_memory_regions): New function.
8627 Allow to_find_memory_regions vector to be taken over.
8628 (inftarg_set_make_corefile_notes): New function.
8629 Allow to_make_corefile_notes vector to be taken over.
8630 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
8631 interface layer if not target_has_execution (may be a corefile).
8632 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
8633 * config/sparc/sun4sol2.mh: Ditto.
8634 * config/alpha/alpha-linux.mh: Ditto.
8635 * config/arm/linux.mh: Ditto.
8636 * config/i386/x86-64linux.mh: Ditto.
8637 * config/ia64/linux.mh: Ditto.
8638 * config/m68k/linux.mh: Ditto.
8639 * config/mips/linux.mh: Ditto.
8640 * config/powerpc/linux.mh: Ditto.
8641 * config/sparc/linux.mh: Ditto.
8643 2002-01-07 Michael Snyder <msnyder@redhat.com>
8645 * arm-linux-nat.c: Remove references to regcache.c internal data
8646 (registers[] and register_valid[]).
8648 2002-01-07 Michael Snyder <msnyder@redhat.com>
8650 * linux-proc.c: New file. Implement child_pid_to_exec_file,
8651 so that attaching to a pid will automatically read the process's
8652 symbol file and shlibs.
8653 * Makefile.in: Add rule for linux-proc.o.
8654 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
8655 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
8656 * config/arm/linux.mh: Ditto.
8657 * config/i386/linux.mh: Ditto.
8658 * config/i386/x86-64linux.mh: Ditto.
8659 * config/ia64/linux.mh: Ditto.
8660 * config/m68k/linux.mh: Ditto.
8661 * config/mips/linux.mh: Ditto.
8662 * config/powerpc/linux.mh: Ditto.
8663 * config/sparc/linux.mh: Ditto.
8665 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
8667 * win32-nat.c: Add i386-tdep.h dependency.
8669 2002-01-07 Michael Snyder <msnyder@redhat.com>
8671 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
8672 instead of bfd_get_arch_size. Don't bail out just because
8673 there's no exec_bfd.
8675 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
8676 * p-valprint.c (pascal_object_print_value): Ditto.
8677 * somread.c (som_symtab_read): Ditto.
8678 * symfile.c (simple_free_overlay_region_table): Ditto.
8679 * valops.c (value_assign): Ditto.
8681 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
8682 use tilde_expand and strerror for opening save-tracepoints file.
8684 * thread-db.c (thread_db_new_objfile): Indendation fix.
8686 * infptrace.c (GDB_MAX_ALLOCA): New define.
8687 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
8688 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
8689 can be overridden with whatever value is appropriate to the host).
8690 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
8691 alloca to allocate potentially large buffer.
8692 * rs6000-nat.c (child_xfer_memory): Ditto.
8693 * symm-nat.c (child_xfer_memory): Ditto.
8694 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
8696 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
8698 From Nick Clifton <nickc@redhat.com>
8699 * d10v-tdep.c: Set STACK_START to 0x200bffe.
8701 2002-01-07 Michael Snyder <msnyder@redhat.com>
8703 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8704 Don't use exec_bfd if it's NULL.
8706 2002-01-06 Mark Kettenis <kettenis@gnu.org>
8708 * valops.c (value_arg_coerce): Fix formatting.
8710 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8712 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
8715 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8717 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
8718 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
8719 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
8720 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
8721 z8k-coff have not been multi-arched. Update z8k-coff build
8724 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8726 * MAINTAINERS: Mark a29k target as obsolete.
8727 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
8728 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
8730 * NEWS: Note that a29k targets are obsolete.
8731 * a29k-tdep.c: Mark as obsolete.
8732 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8733 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8734 a29k-*-vxworks* targets as obsolete.
8735 * remote-adapt.c: Obsolete.
8736 * remote-eb.c: Obsolete.
8737 * remote-mm.c: Obsolete.
8738 * remote-udi.c: Obsolete.
8739 * config/a29k/a29k-udi.mt: Obsolete.
8740 * config/a29k/a29k.mt: Obsolete.
8741 * config/a29k/tm-a29k.h: Obsolete.
8742 * config/a29k/tm-vx29k.h: Obsolete.
8743 * config/a29k/vx29k.mt: Obsolete.
8745 2002-01-05 Andrew Cagney <ac131313@redhat.com>
8747 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
8748 with BFD_ENDIAN_BIG.
8750 2002-01-05 Andrew Cagney <ac131313@redhat.com>
8752 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
8753 * configure, config.in: Re-generate.
8754 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
8755 * defs.h: Do not include <endian.h>.
8757 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
8759 * acconfig.h (HAVE_PT_GETXMMREGS): New.
8760 * config.in: Regenerate.
8761 * configure.in: Update copyright years.
8762 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
8763 * configure: Regenerate.
8764 * i386bsd-nat.c: Update copyright years.
8765 (fill_gregset): Use regcache_collect.
8766 (fetch_inferior_registers): Only fetch integer registers
8767 if requested to do so. Add support for XMM registers
8768 using PT_GETXMMREGS.
8769 (store_inferior_registers): Only store integer registers
8770 if requested to do so. Add support for XMM registers
8771 using PT_SETXMMREGS.
8772 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
8773 (store_inferior_registers): Remove.
8774 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
8775 (fetch_elfcore_registers): New function.
8776 (i386nbsd_elfcore_fns): New.
8777 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
8778 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
8780 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8781 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
8782 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
8783 * config/i386/tm-nbsd.h: Update copyright years.
8784 (HAVE_SSE_REGS): Define.
8785 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
8786 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
8787 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
8788 (SIGCONTEXT_PC_OFFSET): Remove.
8789 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
8791 2002-01-05 Andrew Cagney <ac131313@redhat.com>
8793 * configure.tgt: Remove powerpc-*-macos* target.
8794 * config/m68k/xm-mpw.h: Delete file.
8795 * config/xm-mpw.h: Delete file.
8796 * ser-mac.c: Delete file.
8797 * mpw-make.sed: Delete file.
8798 * mpw-config.in: Delete file.
8799 * mac-xdep.c: Delete file.
8800 * mac-gdb.r: Delete file.
8801 * mac-defs.h: Delete file.
8802 * mac-nat.c: Delete file.
8803 * config/powerpc/macos.mh: Delete file.
8804 * config/powerpc/macos.mt: Delete file.
8805 * config/powerpc/nm-macos.h: Delete file.
8806 * config/powerpc/tm-macos.h: Delete file.
8807 * source.c (openp, open_source_file): Remove obsolete code.
8808 * top.c (gdb_readline): Ditto.
8809 * utils.c (query): Ditto.
8810 * event-top.c (display_gdb_prompt): Ditto.
8811 * Makefile.in (ser-mac.o): Delete obsolete target.
8814 2002-01-04 Andrew Cagney <ac131313@redhat.com>
8816 * defs.h (BIG_ENDIAN): Delete macro definition.
8817 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
8818 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
8819 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
8820 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
8821 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
8822 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
8823 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
8824 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
8825 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
8826 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
8827 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
8828 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
8829 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8830 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8831 * gdbarch.c: Re-generate.
8833 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8835 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
8838 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8840 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
8842 2002-01-04 Andrew Cagney <ac131313@redhat.com>
8844 * value.h (value_ptr): Delete typedef.
8846 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8848 * i386nbsd-nat.c: Update copyright years.
8849 Include i386-tdep.h.
8851 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
8853 * stabsread.c: Update copyright years.
8855 From Debashis Mahata <debashis.mahata@wipro.com>:
8856 (read_struct_fields): Deal with Sun C compiler erroneous stab
8857 output for structs and unions.
8860 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8862 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
8865 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8867 * cp-abi.c: Fix whitespace.
8868 (baseclass_offset): New wrapper function.
8869 * cp-abi.h (baseclass_offset): Add prototype.
8870 (struct cp_abi_ops): Add baseclass_offset pointer.
8872 * valops.c (vb_match): Move to...
8873 * gnu-v2-abi.c (vb_match): here.
8874 * valops.c (baseclass_offset): Move to...
8875 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
8877 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
8879 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
8880 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
8881 * hpacc-abi.c (init_hpacc_ops): Likewise.
8883 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8885 * valops.c (find_overload_match): Accept obj as a
8886 reference parameter. Update it before returning.
8887 * value.h (find_overload_match): Update prototype.
8888 * eval.c (evaluate_subexp_standard): Pass object to
8889 find_overload_match by reference.
8891 2002-01-03 Andrew Cagney <ac131313@redhat.com>
8893 * valarith.c: Replace value_ptr with struct value pointer. Remove
8894 register attribute from value declarations.
8897 * scm-lang.c (scm_lookup_name): Ditto.
8899 2002-01-03 Michael Snyder <msnyder@redhat.com>
8901 Abstract the functionality of iterating over mapped memory
8902 regions into a general purpose iterator function.
8903 * procfs.c (iterate_over_mappings): New function, general purpose
8904 iterator for memory sections.
8905 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
8906 (solib_mappings_callback): New function, callback for above.
8907 (info_proc_mappings): Reimpliment using iterate_over_mappings.
8908 (info_mappings_callback): New function, callback for above.
8910 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
8912 2002-01-01 Mark Kettenis <kettenis@gnu.org>
8914 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
8915 * i386-tdep.c: Include "elf-bfd.h".
8916 (process_note_abi_tag_sections): New function.
8917 (i386_gdbarch_init): Add code to recognize various OS/ABI
8920 * maint.c (_initialize_maint_cmds): Add missing \ in
8923 For older changes see ChangeLog-2001
8929 version-control: never