From: Joel Brobecker Date: Sat, 22 Nov 2008 04:41:45 +0000 (+0000) Subject: Remove the unused BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d81191fc8caa832c477c8f8ec8a609d76d3a6951;p=binutils-gdb.git Remove the unused BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK. * breakpoint.h (enum bpstat_what_main_action): Remove BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK. * breakpoint.c (bpstat_what): Delete catch_shlib_event from enum class. Remove the BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK column from variable table. * infrun.c (wait_for_inferior): Remove handling of BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7b61feb437e..a38354d5865 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,15 @@ +2008-11-21 Joel Brobecker + + Remove the unused BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK. + + * breakpoint.h (enum bpstat_what_main_action): Remove + BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK. + * breakpoint.c (bpstat_what): Delete catch_shlib_event from enum class. + Remove the BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK column from + variable table. + * infrun.c (wait_for_inferior): Remove handling of + BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK. + 2008-11-21 Tom Tromey * configure: Rebuild. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 847dbdd7aca..07a9619532a 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -3054,9 +3054,6 @@ bpstat_what (bpstat bs) /* We hit the shared library event breakpoint. */ shlib_event, - /* We caught a shared library event. */ - catch_shlib_event, - /* This is just used to count how many enums there are. */ class_last }; @@ -3072,7 +3069,6 @@ bpstat_what (bpstat bs) #define clr BPSTAT_WHAT_CLEAR_LONGJMP_RESUME #define sr BPSTAT_WHAT_STEP_RESUME #define shl BPSTAT_WHAT_CHECK_SHLIBS -#define shlr BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK /* "Can't happen." Might want to print an error message. abort() is not out of the question, but chances are GDB is just @@ -3093,14 +3089,13 @@ bpstat_what (bpstat bs) back and decide something of a lower priority is better. The ordering is: - kc < clr sgl shl shlr slr sn sr ss - sgl < shl shlr slr sn sr ss - slr < err shl shlr sn sr ss - clr < err shl shlr sn sr ss - ss < shl shlr sn sr - sn < shl shlr sr - shl < shlr sr - shlr < sr + kc < clr sgl shl slr sn sr ss + sgl < shl slr sn sr ss + slr < err shl sn sr ss + clr < err shl sn sr ss + ss < shl sn sr + sn < shl sr + shl < sr sr < What I think this means is that we don't need a damned table @@ -3117,30 +3112,28 @@ bpstat_what (bpstat bs) table[(int) class_last][(int) BPSTAT_WHAT_LAST] = { /* old action */ - /* kc ss sn sgl slr clr sr shl shlr + /* kc ss sn sgl slr clr sr shl */ /*no_effect */ - {kc, ss, sn, sgl, slr, clr, sr, shl, shlr}, + {kc, ss, sn, sgl, slr, clr, sr, shl}, /*wp_silent */ - {ss, ss, sn, ss, ss, ss, sr, shl, shlr}, + {ss, ss, sn, ss, ss, ss, sr, shl}, /*wp_noisy */ - {sn, sn, sn, sn, sn, sn, sr, shl, shlr}, + {sn, sn, sn, sn, sn, sn, sr, shl}, /*bp_nostop */ - {sgl, ss, sn, sgl, slr, slr, sr, shl, shlr}, + {sgl, ss, sn, sgl, slr, slr, sr, shl}, /*bp_silent */ - {ss, ss, sn, ss, ss, ss, sr, shl, shlr}, + {ss, ss, sn, ss, ss, ss, sr, shl}, /*bp_noisy */ - {sn, sn, sn, sn, sn, sn, sr, shl, shlr}, + {sn, sn, sn, sn, sn, sn, sr, shl}, /*long_jump */ - {slr, ss, sn, slr, slr, err, sr, shl, shlr}, + {slr, ss, sn, slr, slr, err, sr, shl}, /*long_resume */ - {clr, ss, sn, err, err, err, sr, shl, shlr}, + {clr, ss, sn, err, err, err, sr, shl}, /*step_resume */ - {sr, sr, sr, sr, sr, sr, sr, sr, sr}, + {sr, sr, sr, sr, sr, sr, sr, sr}, /*shlib */ - {shl, shl, shl, shl, shl, shl, sr, shl, shlr}, -/*catch_shlib */ - {shlr, shlr, shlr, shlr, shlr, shlr, sr, shlr, shlr} + {shl, shl, shl, shl, shl, shl, sr, shl} }; #undef kc @@ -3153,7 +3146,6 @@ bpstat_what (bpstat bs) #undef sr #undef ts #undef shl -#undef shlr enum bpstat_what_main_action current_action = BPSTAT_WHAT_KEEP_CHECKING; struct bpstat_what retval; diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index cff6c3f927e..ef8121b5209 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -519,10 +519,6 @@ enum bpstat_what_main_action keep checking. */ BPSTAT_WHAT_CHECK_SHLIBS, - /* Check the dynamic linker's data structures for new libraries, then - resume out of the dynamic linker's callback, stop and print. */ - BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK, - /* This is just used to keep track of how many enums there are. */ BPSTAT_WHAT_LAST }; diff --git a/gdb/infrun.c b/gdb/infrun.c index 4043e75e5b3..7264c024368 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3161,7 +3161,6 @@ infrun: BPSTAT_WHAT_SET_LONGJMP_RESUME (!gdbarch_get_longjmp_target)\n"); break; case BPSTAT_WHAT_CHECK_SHLIBS: - case BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK: { if (debug_infrun) fprintf_unfiltered (gdb_stdlog, "infrun: BPSTAT_WHAT_CHECK_SHLIBS\n");