Lines 1286-1297
Link Here
|
1286 |
/* We found the line. */ |
1286 |
/* We found the line. */ |
1287 |
int lineno; |
1287 |
int lineno; |
1288 |
(void) dwarf_lineno (line, &lineno); |
1288 |
(void) dwarf_lineno (line, &lineno); |
1289 |
int n; |
1289 |
char *s; |
1290 |
n = obstack_printf (&whereob, "%s:%d%c", |
1290 |
int n = asprintf (&s, "%s:%d%c", |
1291 |
basename (dwarf_linesrc (line, |
1291 |
basename (dwarf_linesrc (line, NULL, NULL)), |
1292 |
NULL, |
1292 |
lineno, '\0'); |
1293 |
NULL)), |
1293 |
obstack_grow (&whereob, s, strlen(s)); |
1294 |
lineno, '\0'); |
|
|
1295 |
sym_mem[nentries_used].where |
1294 |
sym_mem[nentries_used].where |
1296 |
= obstack_finish (&whereob); |
1295 |
= obstack_finish (&whereob); |
1297 |
|
1296 |
|
Lines 1318-1327
Link Here
|
1318 |
if (found != NULL) |
1317 |
if (found != NULL) |
1319 |
{ |
1318 |
{ |
1320 |
/* We found the line. */ |
1319 |
/* We found the line. */ |
1321 |
int n = obstack_printf (&whereob, "%s:%" PRIu64 "%c", |
1320 |
char *s; |
1322 |
basename ((*found)->file), |
1321 |
int n = asprintf (&s, "%s:%" PRIu64 "%c", |
1323 |
(*found)->lineno, |
1322 |
basename ((*found)->file), |
1324 |
'\0'); |
1323 |
(*found)->lineno, |
|
|
1324 |
'\0'); |
1325 |
obstack_grow (&whereob, s, strlen(s)); |
1325 |
sym_mem[nentries_used].where = obstack_finish (&whereob); |
1326 |
sym_mem[nentries_used].where = obstack_finish (&whereob); |
1326 |
|
1327 |
|
1327 |
/* The return value of obstack_print included the |
1328 |
/* The return value of obstack_print included the |