• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: gdb command run or set ignores the arguments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gdb command run or set ignores the arguments


  • Subject: Re: gdb command run or set ignores the arguments
  • From: Perrog <email@hidden>
  • Date: Mon, 30 Oct 2006 03:10:39 +0100

An extension,

even a simple program behaves similar. For example, choosing New
Project/Command Line Utility/Standard Tool and writing (and disabling
"Start executables after starting debugger").

// file: main.c
#include <stdio.h>
int main (int argc, const char * argv[]) {
	int i;
	printf ("argc %d\n", argc);
	for (i=0; i<argc; ++i) printf("%s\n",argv[i]);
   return 0;
}

gives the output:
GNU gdb 6.3.50-20050815 (Apple version gdb-563) (Wed Jul 19 05:17:43 GMT 2006)

..<gdb messages> ..

tty /dev/ttyp3
Program loaded.
sharedlibrary apply-load-rules all
(gdb) run hello world what is you doing
Starting program: /src/build/Debug/sample_remove hello world what is you doing

(gdb) run
[Switching to process 22191 local thread 0xf03]
Running…
argc 1
/src/build/Debug/sample_remove

Debugger stopped.
Program exited with status value:0.


---

XCode
Version 2.4
Component versions
Xcode IDE: 759.0
Xcode Core: 757.0
ToolSupport: 733.0
GNU gdb 6.3.50-20050815 (Apple version gdb-563) (Wed Jul 19 05:17:43 GMT 2006)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >gdb command run or set ignores the arguments (From: Perrog <email@hidden>)

  • Prev by Date: Re: XCode Falls Short - for now
  • Next by Date: Re: XCode Falls Short - for now
  • Previous by thread: gdb command run or set ignores the arguments
  • Next by thread: setenv memory leak
  • Index(es):
    • Date
    • Thread