diff options
author | Joel Brobecker <brobecker@gnat.com> | 2005-03-29 08:51:59 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2005-03-29 08:51:59 +0000 |
commit | 7e7353ed547e66c371ac3ea4bc2570707f3dbae1 (patch) | |
tree | 4a4be395fe930eb7bf7f39177b0bf29407b3cacb /bfd/elf.c | |
parent | 166856d77d90a92b3a9a20813d094c5e91be3803 (diff) | |
download | gdb-7e7353ed547e66c371ac3ea4bc2570707f3dbae1.zip gdb-7e7353ed547e66c371ac3ea4bc2570707f3dbae1.tar.gz gdb-7e7353ed547e66c371ac3ea4bc2570707f3dbae1.tar.bz2 |
* elf.c (elfcore_grok_nto_status): Print tid as long.
(elfcore_grok_nto_regs): Likewise.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7335,7 +7335,7 @@ elfcore_grok_nto_status (bfd *abfd, Elf_Internal_Note *note, pid_t *tid) elf_tdata (abfd)->core_lwpid = *tid; /* Make a ".qnx_core_status/%d" section. */ - sprintf (buf, ".qnx_core_status/%d", *tid); + sprintf (buf, ".qnx_core_status/%ld", (long) *tid); name = bfd_alloc (abfd, strlen (buf) + 1); if (name == NULL) @@ -7365,7 +7365,7 @@ elfcore_grok_nto_regs (bfd *abfd, asection *sect; /* Make a "(base)/%d" section. */ - sprintf (buf, "%s/%d", base, tid); + sprintf (buf, "%s/%ld", base, (long) tid); name = bfd_alloc (abfd, strlen (buf) + 1); if (name == NULL) |