This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug symtab/21695] Loss of line info


https://sourceware.org/bugzilla/show_bug.cgi?id=21695

--- Comment #4 from Stephen Kim <stephen.kim at oracle dot com> ---
Hi, all, 

I could not reproduce this bug. Here are my configurations:

I have an Ubuntu box:
 $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.10
Release:        16.10
Codename:       yakkety

It comes up with a binary package for the cross compiler:
$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (15:4.9.3+svn231177-1) 4.9.3 20150529 (prerelease)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I think I configured my GDB with the options in this bug report, and the
version is:
 $ ./gdb --version
GNU gdb (GDB) 8.0.50.20170908-git

The test case was from:
https://bugs.launchpad.net/gcc-arm-embedded/+bug/1700646

There was a batch file as far as I remember it. I made a bash script from it as
follows:
$ cat ./build.sh 
#!/bin/bash
arm-none-eabi-gcc -O0 -fno-common -fpie -ffunction-sections -fdata-sections
-Wall -mcpu=cortex-m0 -mthumb -mfloat-abi=soft -g3 -T"linker_script.ld"
-Wl,-Map,gdb_test.map,--gc-sections,-emain -nostdlib main.c -o gdb_test2.elf
arm-none-eabi-objcopy --output-target binary gdb_test2.elf gdb_test2.bin

Then, I did what is described in this bug report:
$ ./gdb
GNU gdb (GDB) 8.0.50.20170908-git
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-linux-gnu --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) add-symbol-file ./gdb_test2.elf 0x1fff0000
add symbol table from file "./gdb_test2.elf" at
        .text_addr = 0x1fff0000

The bug was not reproducible. Would you check if the bug is gone in the
8..50-20170908 GDB? Otherwise, I guess the difference would be the compiler we
used.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]