gdb no source file named error Weehawken New Jersey

Address 741 Bergen Ave, Jersey City, NJ 07306
Phone (201) 200-0245
Website Link http://pccomputersnj.com/site
Hours

gdb no source file named error Weehawken, New Jersey

Make breakpoint pending on future shared library load? (y or [n]) n (gdb) break C:\Users\podonoghue\Development\USBDM\EclipseTest\MKL25Z128M4_FRDM_Demo\Sources\i2c.c:150 No source file named C:\Users\podonoghue\Development\USBDM\EclipseTest\MKL25Z128M4_FRDM_Demo\Sources\i2c.c. Main Menu LQ Calendar LQ Rules LQ Sitemap Site FAQ View New Posts View Latest Posts Zero Reply Threads LQ Wiki Most Wanted Jeremy's Blog Report LQ Bug Syndicate Latest And because the substitution is applied only at the beginning of the directory name, this rule will not be applied to /root/usr/source/baz.c either. So I can conclude that it must have something to do with settings in Eclipse.

This is useful if gdb, libraries or executables with debug information and corresponding source code are being moved together. gdb 5.x works fine. Posts: 4291 Re: "No source file named " problem while debugging « Reply #11 on: November 28, 2006, 08:46:25 am » Quote from: kaylWould it be possible for C::B team to I can set breakpoints with absolute path on windows.

Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. For example, if the file /foo/bar/baz.c was moved to /mnt/cross/baz.c, then the command (gdb) set substitute-path /foo/bar /mnt/cross will tell gdb to replace ‘/foo/bar’ with ‘/mnt/cross’, which will allow gdb to bye PS. But I haven't found any setting or condition which could force CB to do this.

Peter O'Donoghue (podonoghue) said on 2013-12-09: #9 Hi Terry, It would appear that the problem is that the binary files use relative path. gdb does not look up the parts of the source file name, such as /mnt/cross/src/foo-1.0/lib/foo.c. Can a GM prohibit a player from referencing spells in the handbook during combat? For bug reporting instructions, please see: . (gdb) symbol-file C:\\Users\\podonoghue\\Development\\USBDM\\EclipseTest\\MKL25Z128M4_FRDM\\Debug\\MKL25Z128M4_FRDM.elf Reading symbols from C:\Users\podonoghue\Development\USBDM\EclipseTest\MKL25Z128M4_FRDM\Debug\MKL25Z128M4_FRDM.elf...done. (gdb) set remotetimeout 3000 (gdb) target remote localhost:1234 Remote debugging using localhost:1234 Reset_Handler () at ../Startup_Code/startup_ARMLtdGCC.S:91 91

my current directory has this main.c file. Code: gcc -gstabs test.c IIRC, i have had this error when trying to debug without debug compiled in... show substitute-path [path]If a path is specified, then print the source path substitution rule which would rewrite that path, if any. A substitution rule specifies how to rewrite source directories stored in the program's debug information in case the sources were moved to a different directory between compilation and debugging.

Posts: 9403 Re: "No source file named " problem while debugging « Reply #5 on: November 24, 2006, 11:51:56 am » Quote from: Ramazan Kartal on November 24, 2006, 10:35:51 am1. The program runs from a folder other than one it is compiled in, if that matters. No offense, but the last time I asked a similar question with regards to another C++ IDE led to a bug filling and an update in the IDE. Those commands work for me like below screen paste: D:\>toolchain\gcc-arm-none-eabi-4_7-2013q3-20130916-win32\bin\arm-none-eabi-gdb.

In order to find the correct sources, debugger and debug IDE (gdb? diazdh Guest Re: "No source file named " problem while debugging « Reply #12 on: December 09, 2006, 10:47:28 pm » Hi everyone,Thanks for the great work, CB is a really License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. With the directory command, you need to add each subdirectory of your project.

As I see it, you will have either to compile from a path within an Eclipse project, or convince Eclipse to work with a different path. [With the information you supplied Make breakpoint pending on future shared library load? (y or [n]) n (gdb) break /Users/podonoghue/Development/USBDM/EclipseTest/MKL25Z128M4_FRDM_Demo/Sources/i2c.c:150 No source file named /Users/podonoghue/Development/USBDM/EclipseTest/MKL25Z128M4_FRDM_Demo/Sources/i2c.c. In Harry Potter book 7, why didn't the Order flee Britain after Harry turned seventeen? Please notice that the file was before successfully compiled by BVRDE with "rebuild project", so to some extent the file is seen and recognized.

In the case when more than one substitution rule have been defined, the rules are evaluated one by one in the order where they have been defined. asked 3 years ago viewed 16276 times active 4 months ago Linked 24 Why does Eclipse CDT ignore breakpoints? 27 How to runtime debug shared libraries? 16 Debugging with Eclipse CDT I have made sure that I used -g option when compiling with gcc (make debug). Adding the -g option which I forgot earlier fixed the issue.

The results appear the same (as below) Could this have something to do with how the debug binary is built? The first one matching, if any, is selected to perform the substitution. Please also verify that this switch is available in major GDB version (5.x and 6.x) if possible. I checked the gdb code and found that the whole file is rewritten now.

Make breakpoint pending on future shared library load? (y or [n]) n (gdb) The source file is in the same working directory, I double checked within gdb using pwd, and I In order to be sure that it does not depend on my Makefile or external libs compiled with/withot "-g", I installed NetBeans and compiled it with the same Makefile and run Nothing helps. D:\embedded-toolchain-releases\test-cases>..\gcc-arm-none-eabi-4_7-2013q3-201309 16-win32\bin\arm-none-eabi-gdb.exe h.axf GNU gdb (GNU Tools for ARM Embedded Processors) 7.4.1.20130913-cvs Copyright (C) 2012 Free Software Foundation, Inc.

Terry Guo (terry.guo) said on 2013-12-09: #8 You can run below command to dump the DWARF debug information in MKL25Z128M4_FRDM.elf: arm-none-eabi-objdump -W MKL25Z128M4_FRDM.elf > mk.dwf Inside the mk.dwf, you might see I had one, deleted it, and since no more errors. share|improve this answer answered Aug 8 '14 at 10:28 MRRW_FR 1 add a comment| up vote -1 down vote for Makefile project existing code. Type "show copying" and "show warranty" for details.

so when I set break point by using (gdb) break main.c:672 it says : No source file named main.c. Can cats leave scratch marks on cars? By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Use directory with suitable arguments to reinstall the directories you want in the source path.

The use of relative paths etc? //== Just to confirm that the file exists ==/ C:\Users\podonoghue>dir C:\Users\podonoghue\Development\USBDM\EclipseTest\MKL25Z128M4_FRDM\Sources\main.c Volume in drive C is Windows-7 Volume Serial Number is 50CA-9917 Directory of C:\Users\podonoghue\Development\USBDM\EclipseTest\MKL25Z128M4_FRDM\Sources p/s/ Eclipse version is: Version: Indigo Service Release 1 Build id: 20110916-0149 p/p/s/ I can access GDB logs from both NetBeans and Eclipse, but I have absolutely no experience with GDB... are all treated as described above; for instance, if the source path is /mnt/cross, and the source file is recorded as ../lib/foo.c, gdb would first try ../lib/foo.c, then /mnt/cross/../lib/foo.c, and after i guess stabs is the type of debugging commonly supported?

In a long sum, how can we find how many terms are preceded by the plus (or minus) sign Why is water evaporated from the ocean not salty? here is the gcc debugging options page..