srcline.c (11ea2515f32e783b9a7984c148e742c377383915) | srcline.c (b38775cf7678d7715b35dded3dcfab66e244baae) |
---|---|
1#include <inttypes.h> 2#include <stdio.h> 3#include <stdlib.h> 4#include <string.h> 5 6#include <linux/kernel.h> 7 8#include "util/dso.h" --- 339 unchanged lines hidden (view full) --- 348 if (node == NULL) { 349 perror("not enough memory for the inline node"); 350 return NULL; 351 } 352 353 INIT_LIST_HEAD(&node->val); 354 node->addr = addr; 355 | 1#include <inttypes.h> 2#include <stdio.h> 3#include <stdlib.h> 4#include <string.h> 5 6#include <linux/kernel.h> 7 8#include "util/dso.h" --- 339 unchanged lines hidden (view full) --- 348 if (node == NULL) { 349 perror("not enough memory for the inline node"); 350 return NULL; 351 } 352 353 INIT_LIST_HEAD(&node->val); 354 node->addr = addr; 355 |
356 if (!addr2line(dso_name, addr, NULL, NULL, dso, TRUE, node, sym)) 357 goto out_free_inline_node; 358 359 if (list_empty(&node->val)) 360 goto out_free_inline_node; 361 | 356 addr2line(dso_name, addr, NULL, NULL, dso, true, node, sym); |
362 return node; | 357 return node; |
363 364out_free_inline_node: 365 inline_node__delete(node); 366 return NULL; | |
367} 368 369#else /* HAVE_LIBBFD_SUPPORT */ 370 371static int filename_split(char *filename, unsigned int *line_nr) 372{ 373 char *sep; 374 --- 100 unchanged lines hidden (view full) --- 475 goto out; 476 477 filename = NULL; 478 } 479 480out: 481 pclose(fp); 482 | 358} 359 360#else /* HAVE_LIBBFD_SUPPORT */ 361 362static int filename_split(char *filename, unsigned int *line_nr) 363{ 364 char *sep; 365 --- 100 unchanged lines hidden (view full) --- 466 goto out; 467 468 filename = NULL; 469 } 470 471out: 472 pclose(fp); 473 |
483 if (list_empty(&node->val)) { 484 inline_node__delete(node); 485 return NULL; 486 } 487 | |
488 return node; 489} 490 491#endif /* HAVE_LIBBFD_SUPPORT */ 492 493/* 494 * Number of addr2line failures (without success) before disabling it for that 495 * dso. --- 141 unchanged lines hidden --- | 474 return node; 475} 476 477#endif /* HAVE_LIBBFD_SUPPORT */ 478 479/* 480 * Number of addr2line failures (without success) before disabling it for that 481 * dso. --- 141 unchanged lines hidden --- |