Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gdb command run or set ignores the arguments



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.