Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [gdbserver] (9/11) Relax the pid format
@ 2007-11-12  2:08 Pedro Alves
  2007-12-01 19:01 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Pedro Alves @ 2007-11-12  2:08 UTC (permalink / raw)
  To: gdb-patches, Lerele

[-- Attachment #1: Type: text/plain, Size: 247 bytes --]

Hi,

On Windows CE the PIDs are really handles, so they are
most frequently represented in hex.  Only accepting decimal
on the --attach command line argument is a bit annoying.

Would it be ok to relax the bases supported ?

Cheers,
Pedro Alves



[-- Attachment #2: gdbserver_attach_pid.diff --]
[-- Type: text/x-diff, Size: 732 bytes --]

2007-11-12  Pedro Alves  <pedro_alves@portugalmail.pt>

	* server.c (main): Relax numerical bases supported for the pid of
	the --attach command line argument.

---
 gdb/gdbserver/server.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: src/gdb/gdbserver/server.c
===================================================================
--- src.orig/gdb/gdbserver/server.c	2007-11-11 23:12:50.000000000 +0000
+++ src/gdb/gdbserver/server.c	2007-11-11 23:16:20.000000000 +0000
@@ -875,7 +875,7 @@ main (int argc, char *argv[])
     {
       if (argc == 4
 	  && argv[3][0] != '\0'
-	  && (pid = strtoul (argv[3], &arg_end, 10)) != 0
+	  && (pid = strtoul (argv[3], &arg_end, 0)) != 0
 	  && *arg_end == '\0')
 	{
 	  ;



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gdbserver] (9/11) Relax the pid format
  2007-11-12  2:08 [gdbserver] (9/11) Relax the pid format Pedro Alves
@ 2007-12-01 19:01 ` Daniel Jacobowitz
  2007-12-03  3:53   ` Pedro Alves
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2007-12-01 19:01 UTC (permalink / raw)
  To: Pedro Alves; +Cc: gdb-patches, Lerele

On Mon, Nov 12, 2007 at 02:08:38AM +0000, Pedro Alves wrote:
> 2007-11-12  Pedro Alves  <pedro_alves@portugalmail.pt>
> 
> 	* server.c (main): Relax numerical bases supported for the pid of
> 	the --attach command line argument.

Sure, this is OK.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gdbserver] (9/11) Relax the pid format
  2007-12-01 19:01 ` Daniel Jacobowitz
@ 2007-12-03  3:53   ` Pedro Alves
  0 siblings, 0 replies; 3+ messages in thread
From: Pedro Alves @ 2007-12-03  3:53 UTC (permalink / raw)
  To: gdb-patches, Lerele

Daniel Jacobowitz wrote:
> On Mon, Nov 12, 2007 at 02:08:38AM +0000, Pedro Alves wrote:
>> 2007-11-12  Pedro Alves  <pedro_alves@portugalmail.pt>
>>
>> 	* server.c (main): Relax numerical bases supported for the pid of
>> 	the --attach command line argument.
> 
> Sure, this is OK.
> 


Thank you.  Checked in.

-- 
Pedro Alves


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-12-03  3:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-12  2:08 [gdbserver] (9/11) Relax the pid format Pedro Alves
2007-12-01 19:01 ` Daniel Jacobowitz
2007-12-03  3:53   ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox