Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (gdb) down
- #0 strlen () at ../sysdeps/x86_64/strlen.S:106
- 106 ../sysdeps/x86_64/strlen.S: No such file or directory.
- (gdb) list
- 101 in ../sysdeps/x86_64/strlen.S
- (gdb) up
- #1 0x00007fb6aad36f9e in __GI___strdup (s=0x0) at strdup.c:41
- 41 strdup.c: No such file or directory.
- (gdb) list
- 36 in strdup.c
- (gdb) up
- #2 0x0000000000417b19 in xstrdup (ptr=ptr@entry=0x0) at misc.c:259
- 259 result = strdup (ptr);
- (gdb) list
- 254 xstrdup (const char *ptr)
- 255 {
- 256 char *result;
- 257
- 258 #ifdef HAVE_STRDUP
- 259 result = strdup (ptr);
- 260 #else
- 261 result = malloc (strlen (ptr) + 1);
- 262 #endif
- 263
- (gdb) up
- #3 0x000000000042274c in define_variable_in_set (name=name@entry=0x428d65 "MAKE_TERMOUT", length=length@entry=12, value=0x0, origin=origin@entry=o_default, recursive=recursive@entry=0,
- set=set@entry=0x634040 <global_variable_set>, flocp=flocp@entry=0x0) at variable.c:243
- 243 v->value = xstrdup (value);
- (gdb) list
- 238
- 239 v = xmalloc (sizeof (struct variable));
- 240 v->name = xstrndup (name, length);
- 241 v->length = length;
- 242 hash_insert_at (&set->table, v, var_slot);
- 243 v->value = xstrdup (value);
- 244 if (flocp != 0)
- 245 v->fileinfo = *flocp;
- 246 else
- 247 v->fileinfo.filenm = 0;
- (gdb) up
- #4 0x0000000000406ac0 in main (argc=<optimized out>, argv=<optimized out>, envp=0x7fffee1ea7d8) at main.c:1404
- 1404 define_variable_cname ("MAKE_TERMOUT", TTYNAME (fileno (stdout)),
- (gdb) list
- 1399
- 1400 /* Set a variable specifying whether stdout/stdin is hooked to a TTY. */
- 1401 #ifdef HAVE_ISATTY
- 1402 if (isatty (fileno (stdout)))
- 1403 if (! lookup_variable (STRING_SIZE_TUPLE ("MAKE_TERMOUT")))
- 1404 define_variable_cname ("MAKE_TERMOUT", TTYNAME (fileno (stdout)),
- 1405 o_default, 0)->export = v_export;
- 1406
- 1407 if (isatty (fileno (stderr)))
- 1408 if (! lookup_variable (STRING_SIZE_TUPLE ("MAKE_TERMERR")))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement