Commit Graph

11216 Commits

Author SHA1 Message Date
Andreas Schwab 75738c297b * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
m68k_linux_frame_saved_pc.
	(IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
	in_sigtramp.
	(SIGCONTEXT_PC_OFFSET): Remove.
	* m68klinux-nat.c (m68k_linux_frame_saved_pc,
	m68k_linux_sigtramp_saved_pc): New functions.
	(IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
	(SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
	(UCONTEXT_PC_OFFSET): Define.
	(m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
	non-RT and RT signal trampolines.
2002-02-26 22:12:49 +00:00
Richard Earnshaw 7e8ed687ca * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
(TARGET_NBPG, STACK_END_ADDR): Delete
(VARIABLES_INSIDE_BLOCK): Delete.
2002-02-26 14:23:12 +00:00
Andrew Cagney 6972bc8bef * utils.c (perror_with_name): Make string parameter constant.
(print_sys_errmsg): Ditto.
(query): Ditto.
* defs.h (perror_with_name): Update.
(print_sys_errmsg): Update.
(query): Update.
2002-02-26 03:29:55 +00:00
Daniel Jacobowitz aa32f823fc 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
From Eliot Dresselhaus <eliot@ayrnetworks.com>:
        * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2002-02-26 01:40:06 +00:00
gdbadmin 0e46f218e9 *** empty log message *** 2002-02-26 00:00:04 +00:00
Peter Schauer 19caaa4519 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
if it already matches the current architecture from the exec file.
	Include arch-utils.h for gdbarch_info_init prototype.
	* Makefile.in (rs6000-nat.o): Update dependencies.
2002-02-25 18:15:52 +00:00
Eli Zaretskii 798bd83101 Update for the next release. 2002-02-25 16:14:09 +00:00
Eli Zaretskii d951901f7b Add NM and CFLAGS to the exports. 2002-02-25 16:09:46 +00:00
Andrew Cagney a7b40f0783 * Makefile.in (gdb.info): Add explicit path to gdb.texinfo.
Remove reference to 3.12.
2002-02-25 04:32:58 +00:00
Daniel Jacobowitz 7ea814144a 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/configure.srv: New file.
        * gdbserver/configure.in: Use configure.srv instead
        of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
        from it.
        * gdbserver/configure: Regenerated.
        * gdbserver/terminal.h: New file.
        * gdbserver/Makefile.in: Update for configure changes.  Remove
        more unneeded include paths.
2002-02-25 02:49:02 +00:00
Andrew Cagney 080fe24b58 Fix PR gdb/287. From wiz at danbala. Then->than and typos. 2002-02-25 02:13:10 +00:00
gdbadmin aba9f16a1c *** empty log message *** 2002-02-25 00:00:06 +00:00
Andrew Cagney 923620278b s/Linux/.../
Fix PR gdb/378.
2002-02-24 22:56:08 +00:00
Andrew Cagney ca557f44a0 s/Linux/.../
Fix PR gdb/378.
2002-02-24 22:31:19 +00:00
Andrew Cagney a4b6fc86fa s/Linux/.../
Fix PR gdb/378.
2002-02-24 22:14:33 +00:00
Andrew Cagney 8605d56e7a * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
with either ``GNU/Linux'' or ``Linux kernel''.
Fix PR gdb/378.
2002-02-24 21:53:02 +00:00
Michael Chastain 258ad32d2b 2002-02-24 Michael Chastain <mec@shout.net>
* gdb.threads/pthreads.c (thread1): Add a return statement.
	(thread2): Likewise.
	(foo): Likewise.
2002-02-24 20:37:56 +00:00
Andrew Cagney aab4e0ec4b * gdbint.texinfo: Include fdl.texi.
(Top): Add GNU Free Documentation License.
* Makefile.in (SFILES_INCLUDED): Add gpl.texi.
(gdbint.dvi, gdbint.pdf, gdbint.info): Add dependency on fdl.texi.
(gdbint_toc.html): Add dependency on gdb-cfg.texi and fdl.texi.
(gdbint.info): Add srcdir to include path.
* gdb.texinfo: Include gpl.texi.
(Top): Add Copying.
* gpl.texi: New file.
2002-02-24 17:18:25 +00:00
Andrew Cagney a3007b6fd4 Zap lin-thread.c 2002-02-24 04:31:13 +00:00
Andrew Cagney 50a9e2f10c * ocd.c (ocd_open): Do not try to open the "ocd" device.
* serial.c (serial_open): Delete check for "ocd".
Fix PR gdb/349.
2002-02-24 03:59:50 +00:00
Andrew Cagney 8b6e79328f * Makefile.in (linux-thread.o): Delete target.
* linux-thread.c: Delete file.
2002-02-24 03:35:39 +00:00
Andrew Cagney d155c46b60 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
renamed SH files to be consistent.
2002-02-24 01:58:23 +00:00
Andrew Cagney 8ed32cc01a s/free/xfree/ 2002-02-24 01:44:00 +00:00
Michael Chastain 04c3b3d429 2002-02-23 Michael Chastain <mec@shout.net>
* gdb.threads/linux-dp.c (philosopher): Add a return statement
	to placate gcc.
2002-02-24 00:42:39 +00:00
gdbadmin 462f0d6ff3 *** empty log message *** 2002-02-24 00:00:07 +00:00
Richard Earnshaw 0e18d038da * arm-linux-tdep.c (arm_linux_init_abi): Register
IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
* config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
definition with undef, since we don't want the sysvr4 definition.
(SKIP_TRAMPOLINE_CODE): Likewise.
2002-02-23 22:17:12 +00:00
Andrew Cagney 27aac7ff48 * configure.in: (AC_CHECK_FUNCS) Added test for
canonicalize_file_name Regenerated.
* config.in, configure: Regenerated.
* utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
defined use canonicalize_file_name.
2002-02-23 21:54:25 +00:00
Michael Chastain 65a6e0eee5 2002-02-23 Michael Chastain <mec@shout.net>
* MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2002-02-23 21:44:56 +00:00
Jim Blandy 18d5d59095 Doc fix. 2002-02-23 21:30:23 +00:00
Andrew Cagney 47b95330e3 s/cygnus.com/.../ 2002-02-23 20:59:55 +00:00
Michael Chastain 5a2a0a2077 2002-02-23 Michael Chastain <mec@shout.net>
* gdb.c++/templates.exp: Remove setup_xfail_format "stabs" on
	test "ptype bint".  The test passes on all my stabs configurations.
2002-02-23 20:57:53 +00:00
Andrew Cagney 696f451b7e From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
* Makefile.in (VER): Change "head -1" to "sed q", since POSIX
1003.1-2001 no longer allows "head -1".
* gdb/Makefile.in (version.c): Likewise.
* gdb/doc/Makefile.in (GDBvn.texi): Likewise.
* gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
2002-02-23 20:36:49 +00:00
Andrew Cagney bbaca940eb * cli/cli-decode.c (cmd_cfunc_eq): New function.
* command.h (cmd_cfunc_eq): Declare.
* cli/cli-decode.h (cmd_cfunc_eq): Ditto.

* cli/cli-cmds.h (is_complete_command): Change parameter to a
``struct cmd_list_element *''.
* cli/cli-cmds.c (is_complete_command): Update.  Use
cmd_cfunc_eq.
* top.c (execute_command): Pass the command to
is_complete_command.
* tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2002-02-23 20:12:13 +00:00
Andrew Cagney b8b8b04721 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
* config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
architecture defines.
* s390-tdep.c (s390_gdbarch_init): Likewise.
2002-02-23 20:00:17 +00:00
Richard Earnshaw 19d3fc80c1 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
(arm_linux_push_arguments): Likewise.
(arm_linux_init_abi): Register them.  Also register linux-specific
call_dummy_words.
(find_minsym_and_objfile): Use strcmp, not STREQ.
* config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
(arm_linux_call_dummy_words): Delete declaration.
(EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
(arm_linux_extract_return_value, arm_linux_push_arguments): Delete
declarations.
(LOWEST_PC): Delete.
2002-02-23 17:07:57 +00:00
Peter Schauer 3ab136500f * maint.c (print_section_info): Do not prepend `0x' to filepos
output, it will be handled by local_hex_string_custom.
2002-02-23 13:18:36 +00:00
Richard Earnshaw 85ae890cdf * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
(store_newfpe_double, store_newfpe_extended, store_fpregister)
(store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2002-02-23 12:36:50 +00:00
Jim Blandy d85a5daf25 Indicate that the bcache functions don't change the strings
they're passed.
* bcache.h (bcache, hash): Add `const' keywords to declarations.
* bcache.c (bcache, hash): Add `const' keywords to definitions.
2002-02-23 03:57:26 +00:00
gdbadmin 374983f555 *** empty log message *** 2002-02-23 00:00:04 +00:00
Pierre Muller eeb25b8ac9 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
* win32-nat.c (child_create_inferior): Fix create flags setting bug.
2002-02-22 17:04:25 +00:00
Christopher Faylor 6badb179ab * win32-nat.c (register_loaded_dll): Just use raw name when we can't find the
complete path to a loaded DLL.
2002-02-22 01:35:59 +00:00
Fred Fish e8717518fc Approved by Jim Blandy (jimb@redhat.com).
2002-02-21  Fred Fish  <fnf@redhat.com>
	* dbxread.c (process_one_symbol): When finding an N_FUN symbol
	that marks the end of the range of a function, enter a line number
	entry that has a line number of zero and a PC offset that matches
	the end of the function.  This starts a range of PC's for which no
	line number information is known.
	* symtab.c (find_pc_sect_line): If our best fit is in a range of
	PC's for which no line number info is found (line number is zero)
	then we didn't find any valid line information.
	* symtab.h: Document use of zero line number entry.
2002-02-22 00:17:13 +00:00
gdbadmin b78c3c1808 *** empty log message *** 2002-02-22 00:00:05 +00:00
Elena Zannoni 9abe545046 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
* ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
	(have_ptrace_getvrregs): Define for run time checks.
	(gdb_vrregset_t): New type for Altivec register handling.
	(fetch_register, store_register): Fetch/store altivec register
	when needed.
	(fetch_altivec_register, store_altivec_register): New functions.
	(supply_vrregset, fill_vrregset): New functions.
	(fetch_altivec_registers, store_altivec_registers): New functions.
	(fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
	registers as well.
2002-02-21 22:04:46 +00:00
Jim Blandy 27924826b5 * gdb.asm/asm-source.exp: Parse the output from `info sources' one
filename at a time, and watch for the ones we want to see.
2002-02-21 20:58:25 +00:00
Jim Blandy a640f7fc6b * gdb.base/ptype.exp, gdb.base/ptype.c: Add tests for printing
types of pointers to prototyped functions.
2002-02-21 20:34:16 +00:00
Andreas Jaeger aaa38bb521 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o. 2002-02-21 12:48:36 +00:00
Richard Earnshaw b34db5769e * Makefile.in (armnbsd-nat.o): Update dependencies.
* armnbsd-nat.c (supply_gregset): New function.  Common code to
supply the integer register set.
(supply_fparegset): New function.  Similar for FPA registers.
(fetch_regs, fetch_fp_regs): Use them.
(fetch_core_registers): Likewise.
(fetch_elfcore_registers): New function.
(arm_netbsd_elfcore_fns): New core-file type specification.
(_initialize_arm_netbsd_nat): Register it.
2002-02-21 12:19:55 +00:00
Richard Earnshaw 3e56fc4b47 * armnbsd-nat.c: Include gdbcore.h.
(FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
(fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
'void' to declaration, to shut up ARI.
(fetch_core_registers): Make static.  Rewrite using supply_register.
(arm_netbsd_core_fns): New core-file type specification.
(_initialize_arm_netbsd_nat): New function.
2002-02-21 11:15:41 +00:00
Christopher Faylor 097f6b0bba * win32-nat.c (register_loaded_dll): Correctly check for invalid handle value. 2002-02-21 06:44:05 +00:00
Christopher Faylor c914e0cc47 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile fails. 2002-02-21 04:59:36 +00:00
Daniel Jacobowitz 385fa495bf 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
* jv-exp.y (parse_number): Change type of implicit longs
        to builtin_type_uint64.
2002-02-21 02:54:46 +00:00
Andrew Cagney edcc8c754b * gdb.base/sizeof.c (main): Call fill_structs. Print value of
signed, unsigned and straight char.
(padding_char, padding_short, padding_int, padding_long,
padding_long_long, padding_float, padding_double,
padding_long_double): New global variables.
(fill, fill_structs): New functions.

* gdb.base/sizeof.exp: Check for signed and unsigned char.  Check
for correctly sized writes.  Update copyright.
(get_valueof): New procedure.
(get_sizeof): Call get_valueof.
(check_valueof): New procedure.
(check_padding): New procedure.
2002-02-21 01:55:05 +00:00
gdbadmin 73823b989b *** empty log message *** 2002-02-21 00:00:04 +00:00
Michael Chastain ac57ea443e 2002-02-20 Michael Chastain <mec@shout.net>
* gdb.c++/virtfunc.exp (test_virtual_calls): Remove obsolete calls
	to setup_xfail.  Document some of the remaining calls.
2002-02-20 23:54:01 +00:00
Daniel Jacobowitz e5f1222d6b 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c (mywait): Change argument to waitpid
        to be an integer instead of a `union wait'.
2002-02-20 22:58:57 +00:00
Daniel Jacobowitz 75c9abc620 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
* mips-linux-nat.c: Call the operating system GNU/Linux.
        * mips-linux-tdep.c: Likewise.
        * mips-tdep.c: Likewise.
2002-02-20 22:51:41 +00:00
Daniel Jacobowitz 551792a5ad 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
Fix PR gdb/265.
        * jv-exp.y (parse_number): Handle 64-bit integers.
2002-02-20 22:41:52 +00:00
Jim Blandy 0f5881fada * stabsread.c (error_type_complaint): Improve error message. 2002-02-20 18:40:52 +00:00
Daniel Jacobowitz ee6e2b82d8 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
        AC_STDC_HEADERS to AC_HEADER_STDC.
        * gdbserver/configure: Regenerated.
2002-02-20 16:46:36 +00:00
Pierre Muller 78c47bea59 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
* gdb.texinfo: Document Cygwin native specific commands.
2002-02-20 16:09:04 +00:00
Richard Earnshaw a48442a050 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
is defined.
* sparc-tdep.c (get_longjmp_target): Likewise.
2002-02-20 10:42:59 +00:00
Richard Earnshaw fe419ffc23 * News: Add news about ARM and Multi-arch. Mention the new target
arm*-*-netbsd*.
2002-02-20 10:41:20 +00:00
Jim Blandy 5832ed7e43 * stabsread.c (error_type_complaint): Improve error message. 2002-02-20 00:26:46 +00:00
gdbadmin 077acb315c *** empty log message *** 2002-02-20 00:00:03 +00:00
Daniel Jacobowitz 845630402f 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/README: Update documentation.
        * gdbserver/configure.in: Update configury to match documentation.
        * gdbserver/Makefile.in: Likewise.
        * gdbserver/configure: Regenerated.
        * gdbserver/aclocal.m4: New file, generated by aclocal.
        * gdbserver/config.in: New file, generated by autoheader.
2002-02-19 23:48:14 +00:00
Richard Earnshaw 375fd65be6 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
armnbsd-nat.c.
2002-02-19 19:27:00 +00:00
Richard Earnshaw 08216dd78d * arm-tdep.h (enum arm_float_model): New enum.
(struct gdbarch_tdep): Add fp_model.
* arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
up floating-point conversions until we know the floating-point model
in use by the inferior.  Don't complain about being unable to
determine the ABI of the inferior when we don't have one.
(arm_extract_return_value): Support different floating-point models.
(arm_store_return_value): Likewise.
* armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
ARM_FLOAT_SOFT.
(arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2002-02-19 19:20:31 +00:00
Peter Schauer 65d6d66a1d * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
of ``current_gdbarch''.
2002-02-19 18:42:27 +00:00
Richard Earnshaw 47221191f6 * armnbsd-nat.c : ANSIfy all function declarations.
(fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
(fetch_inferior_registers): Re-implement in terms of above.
(store_register, store_regs, store_fp_register, store_fp_regs): New.
(store_inferior_registers): Re-implement in terms of above.
2002-02-19 17:26:27 +00:00
Richard Earnshaw fdf39c9a14 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
kernel.
* arm-linux-tdep.c: Likewise.
* config/arm/tm-linux.h: Likewise.
2002-02-19 14:29:00 +00:00
Richard Earnshaw 93247f887c * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
* config/arm/nbsd.mt (TM_FILE): Delete.
* config/arm/tm-nbsd.h: Delete.
2002-02-19 14:04:47 +00:00
Richard Earnshaw d7b486e739 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
Initialize CALL_DUMMY_LENGTH.
2002-02-19 13:57:35 +00:00
Richard Earnshaw 41d39a95af * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
function.
(arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
* config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
defines one thing and that is incorrect for this port.
(IN_SOLIB_CALL_TRAMPOLINE): Delete.
2002-02-19 11:46:21 +00:00
Pierre Muller e1195560f8 * fix compilation failure by adding #include "i386-tdep.h" 2002-02-19 10:54:27 +00:00
Pierre Muller c1748f97ec 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
* win32-nat.c (display_selector): New function. Displays information
	about the information returned by GetThreadSelectorEntry API function.
	(display_selectors): New function. Displays the infomation of
	the selector given as argument, or of CS, DS ans FS selectors
	if no argument is given.
	( _initialize_inftarg): Add "w32" as info prefix command.
	Add "info w32 selector" as command calling display_selectors.
2002-02-19 08:49:42 +00:00
Pierre Muller e41e6bbfeb * i386-tdep.c (get_longjmp_target): Fix compilation failure
by setting dummy values to JB_PC and JB_ELEMENT_SIZE
 	if not defined.
2002-02-19 08:44:29 +00:00
gdbadmin 55c0a857d6 *** empty log message *** 2002-02-19 00:00:10 +00:00
Michael Chastain 7a10c941ea 2002-02-18 Michael Chastain <mec@shout.net>
* gdb.c++/userdef.exp: Update copyright year.
2002-02-18 19:08:05 +00:00
Daniel Jacobowitz fb8acdcc53 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
* gdb.c++/userdef.exp: Test overloaded operators properly.
        Remove xfails.
2002-02-18 18:57:07 +00:00
Richard Earnshaw 0d3a9f4892 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o. 2002-02-18 18:34:48 +00:00
Richard Earnshaw 3fb4b924b5 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
(arm_fix_call_dummy): Call it.
(arm_call_dummy_breakpoint_offset): Delete.
(arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
* config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2002-02-18 16:42:54 +00:00
Andrew Cagney 7f55af320d * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
Default to func_frame_chain_valid.
* gdbarch.h, gdbarch.c: Re-generate.
* frame.h (FRAME_CHAIN_VALID): Delete definition.
2002-02-18 15:59:14 +00:00
Elena Zannoni 05f13b9c26 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
* ppc-linux-nat.c: Update copyright.
	(fetch_register, store_register): Add tid parameter, don't compute
	tid here.
	(fetch_ppc_registers, store_ppc_registers): Add tid
	parameter. Pass it along to callees.
	(fetch_inferior_registers, store_inferior_registers): Compute tid
	here, and pass it to calleed functions.
	(fill_gregset, supply_fpregset): Clean up formatting.
2002-02-18 15:08:40 +00:00
Richard Earnshaw d7afb4c983 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
* config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2002-02-18 15:04:19 +00:00
Richard Earnshaw 9df628e0aa * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
* gdbarch.c gdbarch.h: Regenerate.
* breakpoint.c (create_longjmp_breakpoint): Always compile this
function.
(breakpoint_reset): Test GET_LONGJMP_TARGET_P().
* infrun.c (GET_LONGJMP_TARGET): Delete default definition.
(handle_inferior_event): Test GET_LONGJMP_TARGET_P().

* arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
* arm-tdep.c (arm_get_longjmp_target): New function.
(arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
this to a positive value register arm_get_longjmp_target as the
longjmp handler.
* arm-linux-tdep.c (arm_get_longjmp_target): Delete.
(arm_linux_init_abi): Set up longjmp description in tdep.
* armnbsd-nat.c (get_longjmp_target): Delete.
* armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
description in tdep.
* config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
(get_longjmp_target): Delete declaration.
(GET_LONGJMP_TARGET): Delete.
* config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
(GET_LONGJMP_TARGET): Delete.
2002-02-18 13:35:31 +00:00
Kevin Buettner 57bc8964fe From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
* ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
	of ``current_gdbarch''.
2002-02-18 05:53:04 +00:00
Tom Tromey 83d31a92df * cli/cli-cmds.c (compare_strings): New function.
(complete_command): Only print each unique item once.
	* completer.h (complete_line): Declare.
	* completer.c (complete_line): New function.
	(line_completion_function): Use it.
2002-02-18 01:12:38 +00:00
gdbadmin 380caad4f1 *** empty log message *** 2002-02-18 00:00:06 +00:00
gdbadmin 36c7f8dce2 *** empty log message *** 2002-02-17 00:00:04 +00:00
Andrew Cagney 17ef5d9211 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
* gdbarch.h, gdbarch.c: Re-generate.
2002-02-16 23:09:16 +00:00
Daniel Jacobowitz 491b894671 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
* valarith.c (value_x_unop): Fix decrement; support post-decrement.

2002-02-16  Daniel Jacobowitz  <drow@mvista.com>

        From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
        * valops.c (value_arg_coerce): Don't take the address of a reference
        to convert an argument to a reference.
2002-02-16 22:25:50 +00:00
Christopher Faylor dfe7f3acac * win32-nat.c (get_image_name): New function.
(handle_load_dll): Use get_image_name function.
(get_child_debug_event): Avoid registering debug events until possibly execed
process is started.
(child_create_inferior): Allow invocation via shell so that command line
redirection, etc.  works ok.
(_initialize_inftarg): Add new command: "set shell" to control whether a shell
is used to start a process.
2002-02-16 02:33:24 +00:00
gdbadmin b88e43a246 *** empty log message *** 2002-02-16 00:00:06 +00:00
Daniel Jacobowitz 1d33e73ab9 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
        instead of find_register_by_number.
        (cannot_store_register): Likewise.
2002-02-15 22:59:13 +00:00
Pierre Muller 48cd0caa88 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
* dwarf2read.c: Replace fprintf (stderr, ...) by
	fprintf_unfiltered (gdb_stderr, ...).
2002-02-15 22:42:33 +00:00
Daniel Jacobowitz 8656e7d8b6 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/gdbserver.1: Document --attach.
2002-02-15 19:08:05 +00:00
Daniel Jacobowitz 56460a6114 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
* gdb.texinfo: Document gdbserver ``--attach'' command.
2002-02-15 19:06:33 +00:00
Richard Earnshaw 66e810cd09 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
descriptions.
* arm-tdep.c (arm_default_arm_le_breakpoint)
(arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
(arm_default_thumb_be_breakpoint): New.  Initialize them from
traditional breakpoint defines.
(arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
(arm_gdbarch_init): Initialize new breakpoint variables.
* arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
(arm_linux_init_abi): Initialize linux-specific breakpoint.
* armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
(arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
code out to ...
(arm_netbsd_init_abi_common): ... here; new function.
* config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
(THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
* config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
* config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2002-02-15 16:12:24 +00:00
Richard Earnshaw 97e03143bb * arm-tdep.h (enum arm_abi): New enum.
(struct gdbarch_tdep): New structure.
(LOWEST_PC): Provide a default.
(arm_gdbarch_register_os_abi): Declare new function.
* arm-tdep.c (arm_abi_names): New array.
(process_note_abi_tag_sections): New function.
(get_elfosabi): New function.
(arm_gdbarch_register_os_abi): New function.
(arm_gdbarch_init): Try to determine the ABI of the inferior.  If
support for that ABI has been built in, then call the appropriate
configuration routine.  Use gdbarch_num_regs() to get the number
of registers.
(arm_dump_tdep): New function.
(arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
place-holder functions.
(_initialize_arm_tdep): Register them.
* config/arm/tm-arm.h (LOWEST_PC): Delete.

* armnbsd-tdep.c: New file.
* Makefile.in (armnbsd-tdep.o): Add dependencies.
* config/arm/nbsd.mt (TDEPFILES): Add it.
* config/arm/tm-nbsd.h (LOWEST_PC): Delete.

* armnbsd-nat.c: Include regcache.h.
* Makefile.in (armnbsd-nat.o): Update dependency list.

* arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2002-02-15 13:35:27 +00:00