Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix C++ build for Cygwin
@ 2016-06-02 14:15 Jon Turney
  2016-06-03 10:58 ` Pedro Alves
  0 siblings, 1 reply; 7+ messages in thread
From: Jon Turney @ 2016-06-02 14:15 UTC (permalink / raw)
  To: gdb-patches; +Cc: Jon Turney

gdb/ChangeLog:

2016-06-02  Jon Turney  <jon.turney@dronecode.org.uk>

	* windows-nat.c (handle_output_debug_string): return type of
	gdb_signal_from_host() is gdb_signal, not an int.
	(windows_get_exec_module_filename): Add pointer casts for C++.

gdb/gdbserver/ChangeLog:

2016-06-02  Jon Turney  <jon.turney@dronecode.org.uk>

	* win32-low.c (win32_create_inferior): Add pointer casts for C++.
---
 gdb/ChangeLog             | 6 ++++++
 gdb/gdbserver/ChangeLog   | 4 ++++
 gdb/gdbserver/win32-low.c | 4 ++--
 gdb/windows-nat.c         | 4 ++--
 4 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/gdb/gdbserver/win32-low.c b/gdb/gdbserver/win32-low.c
index e60be5a..70abfcd 100644
--- a/gdb/gdbserver/win32-low.c
+++ b/gdb/gdbserver/win32-low.c
@@ -642,8 +642,8 @@ win32_create_inferior (char *program, char **program_args)
   if (path_ptr)
     {
       int size = cygwin_conv_path_list (CCP_POSIX_TO_WIN_A, path_ptr, NULL, 0);
-      orig_path = alloca (strlen (path_ptr) + 1);
-      new_path = alloca (size);
+      orig_path = (char *) alloca (strlen (path_ptr) + 1);
+      new_path = (char *) alloca (size);
       strcpy (orig_path, path_ptr);
       cygwin_conv_path_list (CCP_POSIX_TO_WIN_A, path_ptr, new_path, size);
       setenv ("PATH", new_path, 1);
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 2e8a777..149403a 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -864,7 +864,7 @@ handle_output_debug_string (struct target_waitstatus *ourstatus)
 	 to treat this like a real signal.  */
       char *p;
       int sig = strtol (s + sizeof (_CYGWIN_SIGNAL_STRING) - 1, &p, 0);
-      int gotasig = gdb_signal_from_host (sig);
+      gdb_signal gotasig = gdb_signal_from_host (sig);
 
       ourstatus->value.sig = gotasig;
       if (gotasig)
@@ -1894,7 +1894,7 @@ windows_get_exec_module_filename (char *exe_name_ret, size_t exe_name_max_len)
     /* Cygwin prefers that the path be in /x/y/z format, so extract
        the filename into a temporary buffer first, and then convert it
        to POSIX format into the destination buffer.  */
-    cygwin_buf_t *pathbuf = alloca (exe_name_max_len * sizeof (cygwin_buf_t));
+    cygwin_buf_t *pathbuf = (cygwin_buf_t *) alloca (exe_name_max_len * sizeof (cygwin_buf_t));
 
     len = GetModuleFileNameEx (current_process_handle,
 			       dh_buf, pathbuf, exe_name_max_len);
-- 
2.8.3


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

* Re: [PATCH] Fix C++ build for Cygwin
  2016-06-02 14:15 [PATCH] Fix C++ build for Cygwin Jon Turney
@ 2016-06-03 10:58 ` Pedro Alves
  2016-06-03 11:34   ` Jon Turney
  0 siblings, 1 reply; 7+ messages in thread
From: Pedro Alves @ 2016-06-03 10:58 UTC (permalink / raw)
  To: Jon Turney, gdb-patches

On 06/02/2016 03:14 PM, Jon Turney wrote:

> 	* windows-nat.c (handle_output_debug_string): return type of

Uppercase "Return".

OK.

Thanks,
Pedro Alves


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

* Re: [PATCH] Fix C++ build for Cygwin
  2016-06-03 10:58 ` Pedro Alves
@ 2016-06-03 11:34   ` Jon Turney
  2016-06-03 11:38     ` Pedro Alves
  0 siblings, 1 reply; 7+ messages in thread
From: Jon Turney @ 2016-06-03 11:34 UTC (permalink / raw)
  To: gdb-patches

On 03/06/2016 11:57, Pedro Alves wrote:
> On 06/02/2016 03:14 PM, Jon Turney wrote:
>
>> 	* windows-nat.c (handle_output_debug_string): return type of
>
> Uppercase "Return".
>
> OK.

Pushed with that correction.


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

* Re: [PATCH] Fix C++ build for Cygwin
  2016-06-03 11:34   ` Jon Turney
@ 2016-06-03 11:38     ` Pedro Alves
  2016-06-03 11:49       ` Jon Turney
  0 siblings, 1 reply; 7+ messages in thread
From: Pedro Alves @ 2016-06-03 11:38 UTC (permalink / raw)
  To: Jon Turney, gdb-patches

On 06/03/2016 12:34 PM, Jon Turney wrote:
> On 03/06/2016 11:57, Pedro Alves wrote:
>> On 06/02/2016 03:14 PM, Jon Turney wrote:
>>
>>>     * windows-nat.c (handle_output_debug_string): return type of
>>
>> Uppercase "Return".
>>
>> OK.
> 
> Pushed with that correction.
> 

Seems like you also created a "2.24.51.20140326" tag at
the same time?

 https://sourceware.org/ml/gdb-cvs/2016-06/msg00012.html

Thanks,
Pedro Alves


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

* Re: [PATCH] Fix C++ build for Cygwin
  2016-06-03 11:38     ` Pedro Alves
@ 2016-06-03 11:49       ` Jon Turney
  2016-06-03 15:23         ` Pedro Alves
  0 siblings, 1 reply; 7+ messages in thread
From: Jon Turney @ 2016-06-03 11:49 UTC (permalink / raw)
  To: gdb-patches

On 03/06/2016 12:37, Pedro Alves wrote:
> On 06/03/2016 12:34 PM, Jon Turney wrote:
>> On 03/06/2016 11:57, Pedro Alves wrote:
>>> On 06/02/2016 03:14 PM, Jon Turney wrote:
>>>
>>>>     * windows-nat.c (handle_output_debug_string): return type of
>>>
>>> Uppercase "Return".
>>>
>>> OK.
>>
>> Pushed with that correction.
>>
>
> Seems like you also created a "2.24.51.20140326" tag at
> the same time?
>
>  https://sourceware.org/ml/gdb-cvs/2016-06/msg00012.html

Yes.

I guess turning on push.followTags globally wasn't such a good idea.

It seems I cannot remove this tag, please do so.


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

* Re: [PATCH] Fix C++ build for Cygwin
  2016-06-03 11:49       ` Jon Turney
@ 2016-06-03 15:23         ` Pedro Alves
  2016-06-03 18:03           ` Joel Brobecker
  0 siblings, 1 reply; 7+ messages in thread
From: Pedro Alves @ 2016-06-03 15:23 UTC (permalink / raw)
  To: Jon Turney, gdb-patches, Joel Brobecker

On 06/03/2016 12:48 PM, Jon Turney wrote:
> On 03/06/2016 12:37, Pedro Alves wrote:

>> Seems like you also created a "2.24.51.20140326" tag at
>> the same time?
>>
>>  https://sourceware.org/ml/gdb-cvs/2016-06/msg00012.html
> 
> Yes.
> 
> I guess turning on push.followTags globally wasn't such a good idea.
> 
> It seems I cannot remove this tag, please do so.
> 

I believe this needs to be done server-side.  Joel, can you
do this?

Thanks,
Pedro Alves


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

* Re: [PATCH] Fix C++ build for Cygwin
  2016-06-03 15:23         ` Pedro Alves
@ 2016-06-03 18:03           ` Joel Brobecker
  0 siblings, 0 replies; 7+ messages in thread
From: Joel Brobecker @ 2016-06-03 18:03 UTC (permalink / raw)
  To: Pedro Alves; +Cc: Jon Turney, gdb-patches

> >> Seems like you also created a "2.24.51.20140326" tag at
> >> the same time?
> >>
> >>  https://sourceware.org/ml/gdb-cvs/2016-06/msg00012.html
> > 
> > Yes.
> > 
> > I guess turning on push.followTags globally wasn't such a good idea.
> > 
> > It seems I cannot remove this tag, please do so.
> 
> I believe this needs to be done server-side.  Joel, can you
> do this?

Of course, done! For the record:

    % git tag -d 2.24.51.20140326
    Deleted tag '2.24.51.20140326' (was de7067d)

-- 
Joel


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

end of thread, other threads:[~2016-06-03 18:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-02 14:15 [PATCH] Fix C++ build for Cygwin Jon Turney
2016-06-03 10:58 ` Pedro Alves
2016-06-03 11:34   ` Jon Turney
2016-06-03 11:38     ` Pedro Alves
2016-06-03 11:49       ` Jon Turney
2016-06-03 15:23         ` Pedro Alves
2016-06-03 18:03           ` Joel Brobecker

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