Reindented.

This commit is contained in:
Michal Ludvig 2002-10-24 01:37:40 +00:00
parent baed091b2b
commit b64bbf8c48
6 changed files with 41 additions and 42 deletions

View file

@ -1094,7 +1094,7 @@ execute_stack_op (struct objfile *objfile,
case DW_OP_deref_size: case DW_OP_deref_size:
{ {
int len = *op_ptr++; int len = *op_ptr++;
if (len != 1 && len != 2 && len != 4 && len !=8) if (len != 1 && len != 2 && len != 4 && len != 8)
internal_error (__FILE__, __LINE__, internal_error (__FILE__, __LINE__,
"execute_stack_op error"); "execute_stack_op error");
result = read_memory_unsigned_integer (result, len); result = read_memory_unsigned_integer (result, len);

View file

@ -84,7 +84,7 @@ CORE_ADDR cfi_get_ra (struct frame_info *fi);
The argument RAW_BUFFER must point to aligned memory. */ The argument RAW_BUFFER must point to aligned memory. */
void cfi_get_saved_register (char *raw_buffer, void cfi_get_saved_register (char *raw_buffer,
int *optimized, int *optimized,
CORE_ADDR * addrp, CORE_ADDR *addrp,
struct frame_info *frame, struct frame_info *frame,
int regnum, enum lval_type *lval); int regnum, enum lval_type *lval);

View file

@ -37,7 +37,7 @@ fi
# Different indent versions give different indentation. # Different indent versions give different indentation.
case `${indent} --version 2>/dev/null < /dev/null` in case `${indent} --version 2>/dev/null < /dev/null` in
GNU*2.2.6 ) ;; GNU*2.2* ) ;;
*GNU* ) echo "Incorrect version of GNU indent" 1>&2 ;; *GNU* ) echo "Incorrect version of GNU indent" 1>&2 ;;
* ) echo "Indent is not GNU" 1>&2 ;; * ) echo "Indent is not GNU" 1>&2 ;;
esac esac

View file

@ -100,8 +100,7 @@ x86_64_linux_sigcontext_addr (struct frame_info *frame)
/* This is the top frame. */ /* This is the top frame. */
rsp = read_register (SP_REGNUM); rsp = read_register (SP_REGNUM);
return rsp + LINUX_SIGINFO_SIZE + return rsp + LINUX_SIGINFO_SIZE + LINUX_UCONTEXT_SIGCONTEXT_OFFSET;
LINUX_UCONTEXT_SIGCONTEXT_OFFSET;
} }
@ -158,10 +157,10 @@ x86_64_linux_frame_chain (struct frame_info *fi)
ULONGEST addr; ULONGEST addr;
CORE_ADDR fp, pc; CORE_ADDR fp, pc;
if (! fi->signal_handler_caller) if (!fi->signal_handler_caller)
{ {
fp = cfi_frame_chain (fi); fp = cfi_frame_chain (fi);
if(fp) if (fp)
return fp; return fp;
else else
addr = fi->frame; addr = fi->frame;
@ -171,7 +170,7 @@ x86_64_linux_frame_chain (struct frame_info *fi)
addr += LINUX_SIGINFO_SIZE + LINUX_UCONTEXT_SIGCONTEXT_OFFSET; addr += LINUX_SIGINFO_SIZE + LINUX_UCONTEXT_SIGCONTEXT_OFFSET;
fp = read_memory_integer (addr + LINUX_SIGCONTEXT_FP_OFFSET, 8)+8; fp = read_memory_integer (addr + LINUX_SIGCONTEXT_FP_OFFSET, 8) + 8;
return fp; return fp;
} }
@ -181,13 +180,11 @@ x86_64_init_frame_pc (int fromleaf, struct frame_info *fi)
{ {
CORE_ADDR addr; CORE_ADDR addr;
if(fi->next && fi->next->signal_handler_caller) if (fi->next && fi->next->signal_handler_caller)
{ {
addr = fi->next->next->frame addr = fi->next->next->frame
+ LINUX_SIGINFO_SIZE + LINUX_SIGINFO_SIZE + LINUX_UCONTEXT_SIGCONTEXT_OFFSET;
+ LINUX_UCONTEXT_SIGCONTEXT_OFFSET; fi->pc = read_memory_integer (addr + LINUX_SIGCONTEXT_PC_OFFSET, 8);
fi->pc = read_memory_integer (addr
+ LINUX_SIGCONTEXT_PC_OFFSET, 8);
} }
else else
cfi_init_frame_pc (fromleaf, fi); cfi_init_frame_pc (fromleaf, fi);

View file

@ -904,7 +904,7 @@ x86_64_skip_prologue (CORE_ADDR pc)
/* Sequence of bytes for breakpoint instruction. */ /* Sequence of bytes for breakpoint instruction. */
static unsigned char * static unsigned char *
x86_64_breakpoint_from_pc (CORE_ADDR * pc, int *lenptr) x86_64_breakpoint_from_pc (CORE_ADDR *pc, int *lenptr)
{ {
static unsigned char breakpoint[] = { 0xcc }; static unsigned char breakpoint[] = { 0xcc };
*lenptr = 1; *lenptr = 1;
@ -1090,12 +1090,14 @@ x86_64_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* Extract from an array REGBUF containing the (raw) register state /* Extract from an array REGBUF containing the (raw) register state
a function return value of type TYPE, and copy that, in virtual format, a function return value of type TYPE, and copy that, in virtual format,
into VALBUF. */ into VALBUF. */
set_gdbarch_deprecated_extract_return_value (gdbarch, x86_64_extract_return_value); set_gdbarch_deprecated_extract_return_value (gdbarch,
x86_64_extract_return_value);
/* Write into the appropriate registers a function return value stored /* Write into the appropriate registers a function return value stored
in VALBUF of type TYPE, given in virtual format. */ in VALBUF of type TYPE, given in virtual format. */
set_gdbarch_deprecated_store_return_value (gdbarch, x86_64_store_return_value); set_gdbarch_deprecated_store_return_value (gdbarch,
x86_64_store_return_value);
/* Offset from address of function to start of its code. */ /* Offset from address of function to start of its code. */