This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. bae8a07ab1793e3c7d4e596906f4d4b87588935e
- From: qiyao at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 10 Dec 2013 12:35:35 -0000
- Subject: gdb and binutils branch master updated. bae8a07ab1793e3c7d4e596906f4d4b87588935e
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via bae8a07ab1793e3c7d4e596906f4d4b87588935e (commit)
via 0865b04a4dec8a458bee54081b5598a6268b0724 (commit)
from f15cb84a84613a5017e41ae435312ddcb17877b5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bae8a07ab1793e3c7d4e596906f4d4b87588935e
commit bae8a07ab1793e3c7d4e596906f4d4b87588935e
Author: Yao Qi <yao@codesourcery.com>
Date: Wed Oct 23 21:49:32 2013 +0800
Use target_read_code in skip_prologue (amd64)
gdb:
2013-12-10 Yao Qi <yao@codesourcery.com>
* amd64-tdep.c (amd64_analyze_stack_align): Call
target_read_code instead of target_read_memory.
(amd64_analyze_prologue): Call read_code_unsigned_integer
instead of read_memory_unsigned_integer. Call read_code
instead of read_memory.
(amd64_skip_xmm_prologue): Likewise.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0865b04a4dec8a458bee54081b5598a6268b0724
commit 0865b04a4dec8a458bee54081b5598a6268b0724
Author: Yao Qi <yao@codesourcery.com>
Date: Fri Oct 18 17:36:11 2013 +0800
Use target_read_code in skip_prologue (i386)
GDB is able to cache memory accesses requested in target_read_code,
so target_read_code is more efficient than general target_read_memory.
This patch uses target_read_code and its variants to read target
memory in the functions related to i386_skip_prologue. It improves
the performance when doing 'b foo' (foo is a function) in remote
debugging.
Nowadays, when we set a breakpoint on function f1, GDB will fetch the
code in f1 to determine the start of the function body (say skip the
prologue), it requests read from target many times. With this patch
applied, the number of RSP 'm' packets are reduced.
gdb:
2013-12-10 Yao Qi <yao@codesourcery.com>
* corefile.c (read_code): New function.
(read_code_integer): New function.
(read_code_unsigned_integer): New function.
* gdbcore.h (read_code): Declare.
(read_code_integer): Declare.
(read_code_unsigned_integer): Declare.
* i386-tdep.c (i386_follow_jump): Call target_read_code instead
of target_read_memory. Call read_code_unsigned_integer instead
of read_memory_unsigned_integer.
(i386_analyze_struct_return): Likewise.
(i386_skip_probe): Likewise.
(i386_analyze_stack_align): Likewise.
(i386_match_pattern): Likewise.
(i386_skip_noop): Likewise.
(i386_analyze_frame_setup): Likewise.
(i386_analyze_register_saves): Likewise.
(i386_skip_prologue): Likewise.
(i386_skip_main_prologue): Likewise.
(i386_frame_cache_1): Likewise.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 31 ++++++++++++++++++++++++
gdb/amd64-tdep.c | 8 +++---
gdb/corefile.c | 32 +++++++++++++++++++++++++
gdb/gdbcore.h | 17 +++++++++++++
gdb/i386-tdep.c | 69 +++++++++++++++++++++++++++--------------------------
5 files changed, 119 insertions(+), 38 deletions(-)
hooks/post-receive
--
gdb and binutils