Commit Graph

11135 Commits

Author SHA1 Message Date
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