diff options
author | nobody <> | 2002-09-03 22:29:15 +0000 |
---|---|---|
committer | nobody <> | 2002-09-03 22:29:15 +0000 |
commit | 2e3c0e2427295c9cc09a8a707dfba38d50e2ba30 (patch) | |
tree | b870b2944410a7cd58805b1139cbbb6e68afdefc /gdb/i386-tdep.c | |
parent | 98c56715d7b32c12647ab664e75c92b1616b54ca (diff) | |
download | gdb-2e3c0e2427295c9cc09a8a707dfba38d50e2ba30.zip gdb-2e3c0e2427295c9cc09a8a707dfba38d50e2ba30.tar.gz gdb-2e3c0e2427295c9cc09a8a707dfba38d50e2ba30.tar.bz2 |
This commit was manufactured by cvs2svn to create branch 'gdb_5_3-branch'.gdb_5_3-2002-09-04-branchpoint
Sprout from cagney_sysregs-20020825-branch 2002-08-25 19:39:46 UTC nobody 'This commit was manufactured by cvs2svn to create branch'
Cherrypick from master 2002-09-03 22:29:14 UTC Keith Seitz <keiths@redhat.com> ' * lib/gdb.exp (gdb_compile_pthreads): Fix "build_bin" typo.':
bfd/ChangeLog
bfd/Makefile.am
bfd/Makefile.in
bfd/aoutx.h
bfd/archures.c
bfd/bfd-in.h
bfd/bfd-in2.h
bfd/coff-tic4x.c
bfd/coff64-rs6000.c
bfd/coffcode.h
bfd/coffswap.h
bfd/config.bfd
bfd/configure
bfd/configure.in
bfd/cpu-avr.c
bfd/cpu-pj.c
bfd/cpu-powerpc.c
bfd/cpu-rs6000.c
bfd/cpu-tic4x.c
bfd/cpu-v850.c
bfd/cpu-z8k.c
bfd/doc/ChangeLog
bfd/doc/chew.c
bfd/ecoff.c
bfd/elf32-arm.h
bfd/elf32-v850.c
bfd/libbfd.h
bfd/mipsbsd.c
bfd/pdp11.c
bfd/reloc.c
bfd/targets.c
bfd/ticoff.h
bfd/version.h
gdb/ChangeLog
gdb/Makefile.in
gdb/ada-exp.y
gdb/alphanbsd-tdep.c
gdb/avr-tdep.c
gdb/ax-gdb.c
gdb/breakpoint.c
gdb/c-exp.y
gdb/c-valprint.c
gdb/cli/cli-script.c
gdb/cli/cli-script.h
gdb/config/i386/nbsd.mt
gdb/config/i386/nbsdaout.mh
gdb/config/i386/nbsdelf.mh
gdb/config/i386/tm-nbsd.h
gdb/config/mips/nbsd.mt
gdb/configure.tgt
gdb/cp-abi.c
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/dwarf2read.c
gdb/f-exp.y
gdb/gdb-events.c
gdb/gdb-events.h
gdb/gdb-events.sh
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c
gdb/gdbserver/remote-utils.c
gdb/gdbserver/server.c
gdb/gdbserver/target.h
gdb/gnu-nat.c
gdb/hpux-thread.c
gdb/i386-linux-nat.c
gdb/i386-tdep.c
gdb/i386-tdep.h
gdb/i386bsd-tdep.c
gdb/i386nbsd-tdep.c
gdb/i387-tdep.c
gdb/inferior.h
gdb/inflow.c
gdb/inftarg.c
gdb/jv-exp.y
gdb/jv-valprint.c
gdb/lin-lwp.c
gdb/m2-exp.y
gdb/m3-nat.c
gdb/mipsnbsd-tdep.c
gdb/nbsd-tdep.c
gdb/nbsd-tdep.h
gdb/osabi.c
gdb/p-exp.y
gdb/p-lang.c
gdb/ppcnbsd-tdep.c
gdb/proc-api.c
gdb/procfs.c
gdb/regcache.c
gdb/regcache.h
gdb/rs6000-tdep.c
gdb/shnbsd-tdep.c
gdb/signals/signals.c
gdb/sol-thread.c
gdb/sparcnbsd-tdep.c
gdb/stack.c
gdb/symtab.c
gdb/target.c
gdb/target.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/commands.exp
gdb/testsuite/gdb.mi/ChangeLog
gdb/testsuite/gdb.mi/gdb680.exp
gdb/testsuite/gdb.threads/killed.c
gdb/testsuite/gdb.threads/killed.exp
gdb/testsuite/gdb.threads/pthreads.exp
gdb/testsuite/lib/gdb.exp
gdb/testsuite/lib/mi-support.exp
gdb/tui/ChangeLog
gdb/tui/tui-hooks.c
gdb/tui/tui-out.c
gdb/tui/tui.c
gdb/tui/tui.h
gdb/tui/tuiData.c
gdb/tui/tuiData.h
gdb/tui/tuiDisassem.c
gdb/tui/tuiDisassem.h
gdb/tui/tuiIO.c
gdb/tui/tuiIO.h
gdb/tui/tuiSource.c
gdb/tui/tuiSourceWin.c
gdb/tui/tuiSourceWin.h
gdb/tui/tuiStack.c
gdb/tui/tuiWin.c
gdb/version.in
gdb/win32-nat.c
gdb/wince.c
gdb/x86-64-linux-nat.c
gdb/x86-64-linux-tdep.c
include/ChangeLog
include/coff/internal.h
include/coff/ti.h
include/coff/tic4x.h
include/dis-asm.h
include/elf/ChangeLog
include/elf/v850.h
include/opcode/tic4x.h
opcodes/ChangeLog
opcodes/Makefile.am
opcodes/Makefile.in
opcodes/arc-opc.c
opcodes/configure
opcodes/configure.in
opcodes/disassemble.c
opcodes/mips-dis.c
opcodes/tic4x-dis.c
opcodes/v850-dis.c
opcodes/v850-opc.c
sim/common/ChangeLog
sim/common/Make-common.in
sim/igen/ChangeLog
sim/igen/gen-support.c
sim/v850/ChangeLog
sim/v850/Makefile.in
sim/v850/sim-main.h
sim/v850/simops.c
Delete:
gdb/config/i386/nbsdaout.mt
gdb/config/i386/nbsdelf.mt
gdb/config/i386/tm-nbsdaout.h
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 8684fce..4a2eab6 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -973,20 +973,21 @@ i386_extract_return_value (struct type *type, struct regcache *regcache, in VALBUF of type TYPE, given in virtual format. */ static void -i386_store_return_value (struct type *type, char *valbuf) +i386_store_return_value (struct type *type, struct regcache *regcache, + const void *valbuf) { int len = TYPE_LENGTH (type); if (TYPE_CODE (type) == TYPE_CODE_STRUCT && TYPE_NFIELDS (type) == 1) { - i386_store_return_value (TYPE_FIELD_TYPE (type, 0), valbuf); + i386_store_return_value (TYPE_FIELD_TYPE (type, 0), regcache, valbuf); return; } if (TYPE_CODE (type) == TYPE_CODE_FLT) { - unsigned int fstat; + ULONGEST fstat; char buf[FPU_REG_RAW_SIZE]; if (FP0_REGNUM == 0) @@ -1004,20 +1005,20 @@ i386_store_return_value (struct type *type, char *valbuf) not exactly how it would happen on the target itself, but it is the best we can do. */ convert_typed_floating (valbuf, type, buf, builtin_type_i387_ext); - write_register_gen (FP0_REGNUM, buf); + regcache_raw_write (regcache, FP0_REGNUM, buf); /* Set the top of the floating-point register stack to 7. The actual value doesn't really matter, but 7 is what a normal function return would end up with if the program started out with a freshly initialized FPU. */ - fstat = read_register (FSTAT_REGNUM); + regcache_raw_read_unsigned (regcache, FSTAT_REGNUM, &fstat); fstat |= (7 << 11); - write_register (FSTAT_REGNUM, fstat); + regcache_raw_write_unsigned (regcache, FSTAT_REGNUM, fstat); /* Mark %st(1) through %st(7) as empty. Since we set the top of the floating-point register stack to 7, the appropriate value for the tag word is 0x3fff. */ - write_register (FTAG_REGNUM, 0x3fff); + regcache_raw_write_unsigned (regcache, FTAG_REGNUM, 0x3fff); } else { @@ -1025,13 +1026,12 @@ i386_store_return_value (struct type *type, char *valbuf) int high_size = REGISTER_RAW_SIZE (HIGH_RETURN_REGNUM); if (len <= low_size) - write_register_bytes (REGISTER_BYTE (LOW_RETURN_REGNUM), valbuf, len); + regcache_raw_write_part (regcache, LOW_RETURN_REGNUM, 0, len, valbuf); else if (len <= (low_size + high_size)) { - write_register_bytes (REGISTER_BYTE (LOW_RETURN_REGNUM), - valbuf, low_size); - write_register_bytes (REGISTER_BYTE (HIGH_RETURN_REGNUM), - valbuf + low_size, len - low_size); + regcache_raw_write (regcache, LOW_RETURN_REGNUM, valbuf); + regcache_raw_write_part (regcache, HIGH_RETURN_REGNUM, 0, + len - low_size, (char *) valbuf + low_size); } else internal_error (__FILE__, __LINE__, @@ -1533,7 +1533,7 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_push_return_address (gdbarch, i386_push_return_address); set_gdbarch_pop_frame (gdbarch, i386_pop_frame); set_gdbarch_store_struct_return (gdbarch, i386_store_struct_return); - set_gdbarch_deprecated_store_return_value (gdbarch, i386_store_return_value); + set_gdbarch_store_return_value (gdbarch, i386_store_return_value); set_gdbarch_extract_struct_value_address (gdbarch, i386_extract_struct_value_address); set_gdbarch_use_struct_convention (gdbarch, i386_use_struct_convention); |