diff options
author | Pedro Alves <palves@redhat.com> | 2011-07-20 11:01:21 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-07-20 11:01:21 +0000 |
commit | 2275a1a7443865c1b2b08e54421cabc481697ce3 (patch) | |
tree | 4e0b0ae8cdc43f3e668e8a6ef20853aa36136410 | |
parent | 9b37cc0fb3275fd1e789c36588bf931ad916e137 (diff) | |
download | gdb-2275a1a7443865c1b2b08e54421cabc481697ce3.zip gdb-2275a1a7443865c1b2b08e54421cabc481697ce3.tar.gz gdb-2275a1a7443865c1b2b08e54421cabc481697ce3.tar.bz2 |
2011-07-20 Pedro Alves <pedro@codesourcery.com>
* tracepoint.c (tracepoint_look_up_symbols): Return upon the first
symbol error.
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/tracepoint.c | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 4a9baf6..5926a79 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2011-07-20 Pedro Alves <pedro@codesourcery.com> + + * tracepoint.c (tracepoint_look_up_symbols): Return upon the first + symbol error. + 2011-05-31 Pedro Alves <pedro@codesourcery.com> * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c index dc1050e..8cfb773 100644 --- a/gdb/gdbserver/tracepoint.c +++ b/gdb/gdbserver/tracepoint.c @@ -320,13 +320,11 @@ maybe_write_ipa_ust_not_loaded (char *buffer) void tracepoint_look_up_symbols (void) { - int all_ok; int i; if (all_tracepoint_symbols_looked_up) return; - all_ok = 1; for (i = 0; i < sizeof (symbol_list) / sizeof (symbol_list[0]); i++) { CORE_ADDR *addrp = @@ -336,11 +334,11 @@ tracepoint_look_up_symbols (void) { if (debug_threads) fprintf (stderr, "symbol `%s' not found\n", symbol_list[i].name); - all_ok = 0; + return; } } - all_tracepoint_symbols_looked_up = all_ok; + all_tracepoint_symbols_looked_up = 1; } #endif |