Commit Graph

10651 Commits

Author SHA1 Message Date
Corinna Vinschen 7d159115bf * gdb.asm/arm.inc: New file.
* gdb.asm/asm-source.exp: Add arm targets.
	* gdb.asm/configure.in: Ditto.
	* gdb.asm/configure: Recreated from configure.in.
2001-12-20 22:12:20 +00:00
Kevin Buettner d4473757f1 * arm-tdep.c (arm_scan_prologue): Don't require "mov ip, sp"
to be the first instruction in the prologue.  Also, revise
	the way the frame offset is computed for frameless functions.
2001-12-20 21:56:56 +00:00
Kevin Buettner f079148d61 Fix some ARM call dummy problems. 2001-12-20 21:40:22 +00:00
Jim Blandy c3d3ce5b89 * gdbint.texinfo (TARGET_CHAR_SIGNED): Document. 2001-12-20 21:16:31 +00:00
Michael Snyder 43155bc167 2001-12-20 Michael Snyder <msnyder@redhat.com>
* maint.c (maintenance_info_sections): Pass string argument to
	print_section_table, so that it can be used to select sections.
	(print_section_table): Change PTR to void *.  Look at string arg
	to select sections by name and by flag attributes.
	(match_bfd_flags): New function.
	(print_bfd_flags): New function.
2001-12-20 21:03:03 +00:00
Jeff Law 47724592cf * cli/cli-decode.c (add_cmd): Initialize pre_show_hook in
the new command.
2001-12-20 18:35:30 +00:00
Andrew Cagney b323314b01 * remote.c (struct packet_reg): Add field in_g_packet.
(struct remote_state): Rename field g_packet to regs;
(free_remote_state): Update.
(init_remote_state): Add pseudo-registers to table.  Initialize
in_g_packet.  Drop sentinal from table.
(packet_reg_from_regnum, packet_reg_from_pnum): Update.
(remote_fetch_registers): Handle registers not in the g-packet.
(remote_store_registers): Ditto.
2001-12-20 17:39:58 +00:00
Andrew Cagney 2c283bc467 * gdbarch.sh (TARGET_CHAR_SIGNED): Do not specify the print
format.
2001-12-20 17:23:06 +00:00
Jeff Law 3f3c6e5503 * gdb.c++/templates.exp: Use "hppa64-*-*", not "hppa2.0w-*-*" 2001-12-20 16:53:52 +00:00
Jeff Law 8fb87725a3 * gdb.base/annota1.exp: Expect failure for hpux11 when posting
a SIGTRAP to the inferior.
2001-12-20 16:52:07 +00:00
Corinna Vinschen cf599fa727 * gdb.asm/asm-source.exp: Drop setting link-flags for xstormy16.
Substitute call to target_link by call to gdb_compile.
2001-12-20 16:06:11 +00:00
Jim Blandy 1a889ea5ea * s390-tdep.c (s390_pop_frame_regular): Make sure the saved_regs
array is actually set before we try to use it.
2001-12-20 08:55:31 +00:00
Jim Blandy 529765f487 * s390-tdep.c (s390_frame_saved_pc_nofix): If we get the saved PC
out of the return address register, cache that in the frame's
extra info, just as if we'd gotten it from the saved regs array;
that way, it's not a lie to set the saved_pc_valid flag.
2001-12-20 08:54:02 +00:00
Jim Blandy 76cc2cf029 * s390-tdep.c (s390_get_frame_info): Give orig_sp a reasonable
value, even when fextra_info->stack_bought can't be trusted,
2001-12-20 08:52:37 +00:00
Jim Blandy c5e243bbc4 * s390-tdep.c (s390_readinstruction): Don't call
info->read_memory_func to read zero bytes.  Some targets'
xfer_memory functions can't cope with that.
2001-12-20 08:50:47 +00:00
Jim Blandy 2e7db62a77 * gdbarch.sh (TARGET_CHAR_SIGNED): New macro.
* gdbarch.c, gdbarch.h: Regenerated.
* gdbtypes.c (build_gdbtypes): If TARGET_CHAR_SIGNED is zero,
set the TYPE_FLAG_UNSIGNED bit on the type.
* s390-tdep.c (s390_gdbarch_init): On the S/390, characters
are unsigned by default.
* rs6000-tdep.c (rs6000_gdbarch_init): Same for PowerPC and
RS6000.
2001-12-20 08:33:34 +00:00
Jim Blandy 4e40929968 * gdbarch.sh (TARGET_CHAR_SIGNED): New macro.
* gdbarch.c, gdbarch.h: Regenerated.
* gdbtypes.c (build_gdbtypes): If TARGET_CHAR_SIGNED is zero,
set the TYPE_FLAG_UNSIGNED bit on the type.
* s390-tdep.c (s390_gdbarch_init): On the S/390, characters
are unsigned by default.
* rs6000-tdep.c (rs6000_gdbarch_init): Same for PowerPC and
RS6000.
2001-12-20 03:26:08 +00:00
gdbadmin afcca5a5ea *** empty log message *** 2001-12-20 00:00:32 +00:00
Elena Zannoni 16a0f3e75e 2001-12-19 Elena Zannoni <ezannoni@redhat.com>
* corefile.c (do_captured_read_memory_integer,
        safe_read_memory_integer): New functions.
        * gdbcore.h (safe_read_memory_integer): Export.
        * arm-tdep.c (arm_scan_prologue): Use safe_read_memory_integer,
        to read the frame value, to capture calls to error().
2001-12-19 23:54:27 +00:00
Jim Blandy b09677dcf8 * s390-tdep.c (s390_register_name): S390_LAST_REGNUM is, in fact,
the last register number, not one greater than the last register
number.

* s390-tdep.c (s390_register_virtual_type): Replace clever but
incorrect range comparison with correct, legible equivalent.
2001-12-19 23:07:53 +00:00
Keith Seitz 69c10d9280 * mi-var-display.exp: char* variables have a child. Update all
occurences.
	* mi0-var-display.exp: Likewise.
2001-12-19 22:57:46 +00:00
Jim Blandy d5d9af1069 * s390-tdep.c (s390_gdbarch_init): Revert accidentally committed
change.
2001-12-19 22:32:35 +00:00
Jim Blandy 23b7362fd7 * s390-tdep.c (s390_register_raw_size): Replace unnecessarily
obscure range comparison with legible equivalent.
2001-12-19 22:24:49 +00:00
Jeff Law 2cd045cd85 * gdb.base/break.exp: Fix HP specific search string when testing
backtracing in a called function.

        * gdb.base/constvars.exp: Only set lang to C++ if we're
        compiling the test with HP's compilers.
        * gdb.base/volatile.exp: Similarly.
2001-12-19 21:08:45 +00:00
Jeff Law 1cdb71fe7e * config/pa/tm-hppa.h (STORE_RETURN_VALUE): Use hppa_store_return_value.
(EXTRACT_RETURN_VALUE): Similarly.
        * hppa-tdep.c (hppa_store_return_value): New function.
        (hppa_extract_return_value): New function.
2001-12-19 20:21:43 +00:00
Jeff Law 6c482b8720 * infttrate.c (child_acknowledge_created_inferior): Pass
correct argument to add_thread.
        (update_thread_state_after_attach): Likewise.
2001-12-19 19:16:50 +00:00
Fernando Nasser 80fcf3f023 2001-12-19 Fernando Nasser <fnasser@redhat.com>
* config/arm/tm-arm.h: Properly define SOFTWARE_SINGLE_STEP_P.
	Always define SOFTWARE_SINGLE_STEP.
	* config/arm/tm-embed.h: Properly define SOFTWARE_SINGLE_STEP_P.
	* arm-tdep.c (arm_get_next_pc, thumb_get_next_pc, bitcount,
	shifted_reg_val): Always compile these functions.
	(arm_software_single_step): Fix second argument in function calls.
2001-12-19 17:57:42 +00:00
Andrew Cagney fb6ecb0ffc Add function gdbarch_info_init() replaces memset(). 2001-12-19 14:14:52 +00:00
Jim Blandy 99ebe9acce * gdb.base/printcmds.exp: Expect the null character to be printed
as '\0', and the '\013' to be printed as '\v'.
* gdb.base/callfuncs.exp ("backtrace at nested call level 4"): Same.
* gdb.base/setvar.exp: Same.
2001-12-19 06:29:45 +00:00
Jim Blandy ae23c7a369 * c-lang.c (c_emit_char): Print ASCII 11 as '\v', to match
ISO C, and our parser.  Print ASCII 0 as '\0', since that's what
people are used to seeing.
2001-12-19 06:29:18 +00:00
Jim Blandy 78a5120271 * c-lang.c (c_printstr, c_builtin_types, cplus_builtin_types):
Fix indentation.
2001-12-19 03:07:08 +00:00
Jim Blandy c0d4a49f4e * Makefile.in (c-exp.tab.o): Delete duplicate build rule. Fix
dependency list on remaining build rule.
2001-12-19 02:45:36 +00:00
gdbadmin c81122093f *** empty log message *** 2001-12-19 00:00:07 +00:00
Martin Hunt 67a59bc02d 2001-12-18 Martin M. Hunt <hunt@redhat.com>
* ser-tcp.c (tcp_open): Disable Nagle algorithm which
	improves performance in some cases.
2001-12-18 18:54:18 +00:00
gdbadmin 66ce524609 *** empty log message *** 2001-12-18 00:00:03 +00:00
Jim Blandy 0eba65ab18 * gdb.base/completion.exp: Rather than completing very long
filenames, which can make the readline library produce output we
don't recognize, cd to the directory first, and then complete
using nice, short relative paths.
2001-12-17 22:58:42 +00:00
Jim Blandy 6970b5b149 * gdb.base/completion.exp: On some systems, there is, in fact, a
variable named `b' in scope, since GDB treats all static
variables as being in scope.  So use `no_var_named_this'
instead of `b'.
2001-12-17 21:49:09 +00:00
Ben Harris de7dd7a986 2001-12-17 Ben Harris <bjh21@netbsd.org>
* armbsd-nat.c: Remove file, renamed to armnbsd-nat.c.
	* armnbsd-nat.c: New file, renamed from armbsd-nat.c.
	* Makefile.in: Rename armbsd-nat.c to armnbsd-nat.c.
	* config/arm/nbsd.mh: Likewise.
2001-12-17 21:14:10 +00:00
Jim Blandy b9891b29d8 * gdb.base/corefile.exp: Recognize the message saying that GDB
can't find the core file's registers as a failure.
2001-12-17 21:03:48 +00:00
Jim Blandy 47a849606f Remove accidentally committed ChangeLog entries for callfuncs.exp. 2001-12-17 20:38:57 +00:00
Corinna Vinschen c9f63e6b7f * NEWS: Note new target XStormy16.
* MAINTAINERS: Add -Werror to XStormy16.
2001-12-17 18:13:11 +00:00
Fernando Nasser 9512d7fdf5 2001-12-17 Fernando Nasser <fnasser@redhat.com>
From Richard Earnshaw <rearnsha@arm.com>:
	* arm-tdep.c (arm_software_single_step): New function. Implements
	software single-stepping for ARM targets.
	(arm_get_next_pc, thumb_get_next_pc, bitcount, shifted_reg_val): Only
	needed for software single-stepping.
	* config/arm/tm-arm.h: Activate SOFTWARE_SINGLE_STEP_P.
2001-12-17 17:03:58 +00:00
Fernando Nasser c5c586eddb 2001-12-17 Fernando Nasser <fnasser@redhat.com>
From Richard Earnshaw <rearnsha@arm.com>:
        * config/arm/nbsd.mh, config/arm/nbsd.mt, config/arm/tm-nbsd.h,
        config/arm/nm-nbsd.h, config/arm/xm-nbsd.h: New files.
        * armbsd-nat.c: New file.
        * Makefile.in: Build it.
        * configure.host, configure.tgt: Support NetBSD/arm.
2001-12-17 16:37:35 +00:00
Fernando Nasser e7a42bc893 2001-12-17 Fernando Nasser <fnasser@redhat.com>
From Richard Earnshaw <rearnsha@arm.com>:
        * config/arm/nbsd.mh, config/arm/nbsd.mt, config/arm/tm-nbsd.h,
        config/arm/nm-nbsd.h, config/arm/xm-nbsd.h: New files.
        * armbsd-nat.c: New file.
        * Makefile.in: Build it.
        * configure.host, configure.tgt: Support NetBSD/arm.
2001-12-17 16:23:02 +00:00
Corinna Vinschen 7c0a2a0aaa * MAINTAINERS: Add myself as XStormy16 maintainer. 2001-12-17 15:52:33 +00:00
gdbadmin d9464f48d7 *** empty log message *** 2001-12-17 00:00:32 +00:00
Kevin Buettner 2d5177f34b Conditionally include solib.h. 2001-12-16 00:59:58 +00:00
gdbadmin 25b14e71cb *** empty log message *** 2001-12-16 00:00:04 +00:00
Andrew Cagney 33cce46887 Regenerate. 2001-12-15 18:07:57 +00:00
Andrew Cagney 8dacb7ef2e * MAINTAINERS: Remove powerpcle-eabi and rs6000-ibm-aix3.2 from
target list.
2001-12-15 17:09:04 +00:00