Sponsored Content
Top Forums UNIX for Dummies Questions & Answers unable to display the souce line in gdb Post 95880 by vino on Monday 16th of January 2006 12:27:52 AM
Old 01-16-2006
Some of the things which need to be done before your run your application in gdb.

Make sure the application is compiled with the -ggdb flag. Minimally the -g flag should be there. None of -O flags should be present.

Try running your app and see if you can see the source code displayed.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

xhost unable to open display

I am trying to install ORACLE 10g database on HP-UNIX 11.11 I am running OUI runinstaller from exceed terminal from windows PC. I have set DISPLAY=IPAddress of PC:0.0 When installer starts it is giving me error of display (5 Replies)
Discussion started by: ymg
5 Replies

2. Programming

Incorrect address display by GDB

Hi, On using GDB debugger on different executables, the address displayed for the symbols seem incorrect, as it shows me the same address in each prorgram, run simultaneoulsy. eg: Program: linkmain1.c Breakpoint 1, main () at linkmain1.c:14 14 printf("In linkmain1.c\n"); (gdb)... (0 Replies)
Discussion started by: karthikb23
0 Replies

3. Shell Programming and Scripting

Unable to display correctly the contents of a file without a line feed

I am using AIX and ksh. I need to display the contents of a file that has a pid (process id). Because the file is open, it doesn't have the line feed or new line, so for some reason if I do this: `cat $pid` , where $pid is the name of the fully qualified file, it displays test3.sh: 426110:... (1 Reply)
Discussion started by: Gato
1 Replies

4. Programming

gdb: how to debug an executable file with a few command line papameters

If an executalbe file has several parameters, gdb can not pass parameters correctly. Let us see: run: ./executablefile1 agr1 arg2 arg3 debug: gdb executablefile1 run executalbefile1 arg1 arg2 arg3 then argv : executablefile1 argv : executablefile argv : arg1 ... (3 Replies)
Discussion started by: cdbug
3 Replies

5. Shell Programming and Scripting

Copy a file by creating folder structure in destination as in Souce

Hello, i am having a source directory which consist of multiple sub directories and my destination folder is a empty directory. if try to copy a file source->test->1.txt from source to destination test2 using the commaind. cp source/test/1.txt desti/ It will copy the 1.txt under desti... (1 Reply)
Discussion started by: tsaravanan
1 Replies

6. Programming

GDB No line in file error

Hi, I have a c program i compile with gcc4.5. This elf, if I use gdb and put a breakpoint on main, instead has a breakpoint in a function other than main or says no line in file. I verified the elf is 1 to 1 with source, have all debug symbols for compilation etc. The problem I think is the... (2 Replies)
Discussion started by: dragonpoint
2 Replies

7. Linux

unable to read core dumps on unix. Is there another way than using GDB?

hi all, I am having set of core dumps obtained from client server. Now i am trying to read them but unable to do so. I have few queries: 1. Core dumps were generated on some xyz server and copied to my unix virtual. Can I read them as text here? 2. I tried installing gdb-7.3 but when i fire... (0 Replies)
Discussion started by: suyogs
0 Replies

8. Programming

Why does gdb stop at a different line than “i b” shows while returning from function?

Here is the program I am trying to debug: #include <stdio.h> int i = 5; int main(void) { int x = 3; display(x); return 0; } void display(int x) { for ( i=0; i<x; ++i ) { printf("i is %d.\n", i); } }This code is coming from here Peter's gdb Tutorial: Stepping... (2 Replies)
Discussion started by: ijustneeda
2 Replies

9. UNIX for Dummies Questions & Answers

Display Date and Time in GDB

In gdb is there any way we can display date/time in first column while debugging or is there any command which will print date/time? I am asking this just to know when exactly a breakpoint got hit. (6 Replies)
Discussion started by: rupeshkp728
6 Replies

10. UNIX for Dummies Questions & Answers

GDB not showing line details

I have bunch of source code which I compiled using -ggdb3 flag. I have copied the source code and executable to an another machine. When I run the exe in gdb it does not show the statments at the line numbers when it breaks. This is what I see Breakpoint 1, TestCode (handler=0x806e110,... (1 Reply)
Discussion started by: rupeshkp728
1 Replies
CAKEPHP-INSTAWEB(1)					      General Commands Manual					       CAKEPHP-INSTAWEB(1)

NAME
cakephp-instaweb - lightweight HTTP server for developing CakePHP applications SYNOPSIS
cakephp-instaweb [-p PORT] [-i INTERFACE] [-r] [-q] [<webroot>] DESCRIPTION
cakephp-instaweb is a lightweight web server designed for quick development of CakePHP web applications. It is designed to be reasonably intelligent in locating your application's webroot folder: running the program from somewhere near your application's "app" folder without specifying a webroot argument will start a small web server on port 3000 that will point at your appli- cation. (If cakephp-instaweb is unsuccessful in locating your application, or you wish to start the server from a different folder, you can specify a precise application webroot location on the command line.) OPTIONS
--port, -p Specify which port to run on. (default: 3000) --interface, -i Specify which interface to run on. (default: 127.0.0.1) --disable-rewrite, -r Disables Apache-style rewriting of URLs. You will need to enable the BASE_URL configuration variable in app/config/core.php for URLs to function correctly after disabling rewrites. --quiet, -q Make as little noise as possible. -help, -h Shows help message. AUTHOR
cakephp-instaweb was written by Chris Lamb <chris@chris-lamb.co.uk>. September 15, 2007 CAKEPHP-INSTAWEB(1)
All times are GMT -4. The time now is 03:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy