projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix classification of `module.type' in D lexer.
[deliverable/binutils-gdb.git]
/
gdb
/
arm-linux-tdep.c
diff --git
a/gdb/arm-linux-tdep.c
b/gdb/arm-linux-tdep.c
index 4a734b0be091de0dc8e9abb8a69999313b06277c..e1eab209df75d9fa776ab07572302c71ba5bece4 100644
(file)
--- a/
gdb/arm-linux-tdep.c
+++ b/
gdb/arm-linux-tdep.c
@@
-1,6
+1,6
@@
/* GNU/Linux on ARM target support.
/* GNU/Linux on ARM target support.
- Copyright (C) 1999-201
6
Free Software Foundation, Inc.
+ Copyright (C) 1999-201
7
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-921,12
+921,10
@@
arm_linux_get_next_pcs_syscall_next_pc (struct arm_get_next_pcs *self)
/* Insert a single step breakpoint at the next executed instruction. */
/* Insert a single step breakpoint at the next executed instruction. */
-static
int
-arm_linux_software_single_step (struct
frame_info *fram
e)
+static
VEC (CORE_ADDR) *
+arm_linux_software_single_step (struct
regcache *regcach
e)
{
{
- struct regcache *regcache = get_current_regcache ();
struct gdbarch *gdbarch = get_regcache_arch (regcache);
struct gdbarch *gdbarch = get_regcache_arch (regcache);
- struct address_space *aspace = get_regcache_aspace (regcache);
struct arm_get_next_pcs next_pcs_ctx;
CORE_ADDR pc;
int i;
struct arm_get_next_pcs next_pcs_ctx;
CORE_ADDR pc;
int i;
@@
-936,7
+934,7
@@
arm_linux_software_single_step (struct frame_info *frame)
/* If the target does have hardware single step, GDB doesn't have
to bother software single step. */
if (target_can_do_single_step () == 1)
/* If the target does have hardware single step, GDB doesn't have
to bother software single step. */
if (target_can_do_single_step () == 1)
- return
0
;
+ return
NULL
;
old_chain = make_cleanup (VEC_cleanup (CORE_ADDR), &next_pcs);
old_chain = make_cleanup (VEC_cleanup (CORE_ADDR), &next_pcs);
@@
-955,12
+953,9
@@
arm_linux_software_single_step (struct frame_info *frame)
VEC_replace (CORE_ADDR, next_pcs, i, pc);
}
VEC_replace (CORE_ADDR, next_pcs, i, pc);
}
- for (i = 0; VEC_iterate (CORE_ADDR, next_pcs, i, pc); i++)
- insert_single_step_breakpoint (gdbarch, aspace, pc);
-
- do_cleanups (old_chain);
+ discard_cleanups (old_chain);
- return
1
;
+ return
next_pcs
;
}
/* Support for displaced stepping of Linux SVC instructions. */
}
/* Support for displaced stepping of Linux SVC instructions. */
This page took
0.024137 seconds
and
4
git commands to generate.