[PATCH 1/2] covoar/ObjdumpProcessor.cc: Add processing for ... padding notation w/hack

Chris Johns chrisj at rtems.org
Thu May 24 02:59:33 UTC 2018


On 24/5/18 12:07 pm, Joel Sherrill wrote:
> ---
>  tester/covoar/ObjdumpProcessor.cc | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)
> 
> diff --git a/tester/covoar/ObjdumpProcessor.cc b/tester/covoar/ObjdumpProcessor.cc
> index d41906c..183722b 100644
> --- a/tester/covoar/ObjdumpProcessor.cc
> +++ b/tester/covoar/ObjdumpProcessor.cc
> @@ -384,6 +384,28 @@ namespace Coverage {
>          break;
>        }
>  
> +      // This string indicates a block of padding at the end of a method
> +      if (!strncmp(line.c_str(), "\t...", 4)) {

You have an std::string so why no use C++ rather than resorting to C?

For example http://en.cppreference.com/w/cpp/string/basic_string/compare.

Chris



More information about the devel mailing list