diff options
author | Yao Qi <yao@codesourcery.com> | 2012-03-03 09:51:29 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2012-03-03 09:51:29 +0000 |
commit | 5808517f9a2a8588228bd760c9e6a3a231f4f292 (patch) | |
tree | ec158109b2b63424bdc368877dd4e0fd74e2847a /gdb/common | |
parent | dfe2ac14962dac8aaf1484dac1419c0bc88de3a7 (diff) | |
download | gdb-5808517f9a2a8588228bd760c9e6a3a231f4f292.zip gdb-5808517f9a2a8588228bd760c9e6a3a231f4f292.tar.gz gdb-5808517f9a2a8588228bd760c9e6a3a231f4f292.tar.bz2 |
gdb:
* common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
* common/agent.h: Update declaration.
* inf-child.c (inf_child_use_agent): New.
(inf_child_can_use_agent): New.
(inf_child_target): Initialize fields `to_use_agent'
and `to_can_use_agent'.
* agent.c (agent_new_objfile): New.
(_initialize_agent): Add agent_new_objfile to new_objfile
observer.
* linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
New.
(linux_target_install_ops): Initialize field
`to_static_tracepoint_markers_by_strid'.
* remote.c (free_current_marker): Move it to ...
* tracepoint.c (free_current_marker): ... here. New.
(cleanup_target_stop): New.
* tracepoint.h: Declare free_current_marker.
* NEWS: Add one entry about `info static-tracepoint-marker'.
gdb/gdbserver:
* tracepoint.c (tracepoint_look_up_symbols): Update call to
agent_look_up_symbols.
gdb/testsuite:
* gdb.trace/strace.exp: run strace_info_marker in linux native gdb.
Diffstat (limited to 'gdb/common')
-rw-r--r-- | gdb/common/agent.c | 7 | ||||
-rw-r--r-- | gdb/common/agent.h | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/gdb/common/agent.c b/gdb/common/agent.c index 70a6de7..5c90822 100644 --- a/gdb/common/agent.c +++ b/gdb/common/agent.c @@ -83,7 +83,7 @@ agent_loaded_p (void) found, return non-zero otherwise. */ int -agent_look_up_symbols (void) +agent_look_up_symbols (void *arg) { int i; @@ -97,8 +97,9 @@ agent_look_up_symbols (void) if (look_up_one_symbol (symbol_list[i].name, addrp, 1) == 0) #else - struct minimal_symbol *sym = lookup_minimal_symbol (symbol_list[i].name, - NULL, NULL); + struct minimal_symbol *sym = + lookup_minimal_symbol (symbol_list[i].name, NULL, + (struct objfile *) arg); if (sym != NULL) *addrp = SYMBOL_VALUE_ADDRESS (sym); diff --git a/gdb/common/agent.h b/gdb/common/agent.h index b89d111..fa8bc36 100644 --- a/gdb/common/agent.h +++ b/gdb/common/agent.h @@ -19,7 +19,7 @@ int agent_run_command (int pid, const char *cmd); -int agent_look_up_symbols (void); +int agent_look_up_symbols (void *); #define STRINGIZE_1(STR) #STR #define STRINGIZE(STR) STRINGIZE_1(STR) |