diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-04-10 11:51:17 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-04-10 11:51:17 +0000 |
commit | 542c95c200376cb920fafd54d6f3016f0b245e1d (patch) | |
tree | 97d4d191f1f277974f09abc5fba531f95d01ad43 | |
parent | cfaefc65a409d1fdc5cdaee3ce430e735aba6362 (diff) | |
download | gdb-542c95c200376cb920fafd54d6f3016f0b245e1d.zip gdb-542c95c200376cb920fafd54d6f3016f0b245e1d.tar.gz gdb-542c95c200376cb920fafd54d6f3016f0b245e1d.tar.bz2 |
* solib-svr4.c (enable_break): Simplify return value.
(svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/solib-svr4.c | 13 |
2 files changed, 7 insertions, 11 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9799f3f..ece22bb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-04-10 Daniel Jacobowitz <dan@codesourcery.com> + + * solib-svr4.c (enable_break): Simplify return value. + (svr4_solib_create_inferior_hook): Do not warn if enable_break fails. + 2007-04-10 Andreas Schwab <schwab@suse.de> * solib-svr4.h (struct link_map_offsets): Remove l_addr_size, diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 2d3cae0..54a27b3 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -959,8 +959,6 @@ exec_entry_point (struct bfd *abfd, struct target_ops *targ) static int enable_break (void) { - int success = 0; - #ifdef BKPT_AT_SYMBOL struct minimal_symbol *msymbol; @@ -1126,13 +1124,9 @@ enable_break (void) return 1; } } - - /* Nothing good happened. */ - success = 0; - #endif /* BKPT_AT_SYMBOL */ - return (success); + return 0; } /* @@ -1337,10 +1331,7 @@ svr4_solib_create_inferior_hook (void) } if (!enable_break ()) - { - warning (_("shared library handler failed to enable breakpoint")); - return; - } + return; #if defined(_SCO_DS) /* SCO needs the loop below, other systems should be using the |