Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* PR/2386 [1/2]: MinGW attach to process without an exec file
@ 2007-12-28  1:21 Pedro Alves
  2007-12-29 11:30 ` Eli Zaretskii
  2007-12-30  4:18 ` Daniel Jacobowitz
  0 siblings, 2 replies; 5+ messages in thread
From: Pedro Alves @ 2007-12-28  1:21 UTC (permalink / raw)
  To: gdb-patches; +Cc: Bogdan Slusarczyk

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

We currently don't set a default gdb_osabi for MinGW, Cygwin or WinCE,

Having a default osabi allows gdb to set a useful current_gdbarch
if for some reason gdb isn't able to open a bfd to the executable.

For multi-target builds, the default will probably not make sense
for any other target than the native -- so we may want to
move this default osabi somewhere else, like the target interface, or
moving the target string matching into runtime code, but that's
for another day.  The patch just follows status quo.

Tested on XP Pro SP2, i686-pc-cygwin.  There is a regression,
because now Cygwin will also trip on gdb/2225.

OK ?

-- 
Pedro Alves




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

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

	* configure.tgt (*-*-mingw32ce*): Set gdb_osabi to
	GDB_OSABI_WINCE.
	(*-*-mingw* | *-*-cygwin*): Set gdb_osabi to GDB_OSABI_CYGWIN.

---
 gdb/configure.tgt |    3 +++
 1 file changed, 3 insertions(+)

Index: src/gdb/configure.tgt
===================================================================
--- src.orig/gdb/configure.tgt	2007-12-26 23:46:34.000000000 +0000
+++ src/gdb/configure.tgt	2007-12-27 00:50:52.000000000 +0000
@@ -530,4 +530,7 @@ m68*-*-openbsd* | m88*-*-openbsd* | vax-
 *-*-solaris*)	gdb_osabi=GDB_OSABI_SOLARIS ;;
 *-*-*-gnu*)	;; # prevent non-GNU kernels to match the Hurd rule below
 *-*-gnu*)	gdb_osabi=GDB_OSABI_HURD ;;
+*-*-mingw32ce*)	gdb_osabi=GDB_OSABI_WINCE ;;
+*-*-mingw* | *-*-cygwin*)
+		gdb_osabi=GDB_OSABI_CYGWIN ;;
 esac





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

* Re: PR/2386 [1/2]: MinGW attach to process without an exec file
  2007-12-28  1:21 PR/2386 [1/2]: MinGW attach to process without an exec file Pedro Alves
@ 2007-12-29 11:30 ` Eli Zaretskii
  2007-12-29 16:07   ` Pedro Alves
  2007-12-30  4:18 ` Daniel Jacobowitz
  1 sibling, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2007-12-29 11:30 UTC (permalink / raw)
  To: Pedro Alves; +Cc: gdb-patches, bodzio131

> Date: Fri, 28 Dec 2007 01:20:57 +0000
> From: Pedro Alves <pedro_alves@portugalmail.pt>
> CC: Bogdan Slusarczyk <bodzio131@op.pl>
> 
> 	(*-*-mingw* | *-*-cygwin*): Set gdb_osabi to GDB_OSABI_CYGWIN.

Is this really right?  Unless I'm missing something, GDB_OSABI_CYGWIN
is not the native Windows ABI, is it?


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

* Re: PR/2386 [1/2]: MinGW attach to process without an exec file
  2007-12-29 11:30 ` Eli Zaretskii
@ 2007-12-29 16:07   ` Pedro Alves
  2007-12-29 17:05     ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Pedro Alves @ 2007-12-29 16:07 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: gdb-patches, bodzio131

Eli Zaretskii wrote:
>> Date: Fri, 28 Dec 2007 01:20:57 +0000
>> From: Pedro Alves <pedro_alves@portugalmail.pt>
>> CC: Bogdan Slusarczyk <bodzio131@op.pl>
>>
>> 	(*-*-mingw* | *-*-cygwin*): Set gdb_osabi to GDB_OSABI_CYGWIN.
> 
> Is this really right?  Unless I'm missing something, GDB_OSABI_CYGWIN
> is not the native Windows ABI, is it?
> 

There is no Cygwin ABI, to the best of my knowledge, since Cygwin is a
library that sits on top of Windows, it follows the Windows ABI.  When
MinGW support was introduced, I didn't rename that.  I haven't found a
reason to split Cygwin|MinGW at this level.  I was avoiding rename-only
patches, in a rename-as-I-touch mode.

-- 
Pedro Alves


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

* Re: PR/2386 [1/2]: MinGW attach to process without an exec file
  2007-12-29 16:07   ` Pedro Alves
@ 2007-12-29 17:05     ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2007-12-29 17:05 UTC (permalink / raw)
  To: Pedro Alves; +Cc: gdb-patches, bodzio131

> Date: Sat, 29 Dec 2007 14:35:18 +0000
> From: Pedro Alves <pedro_alves@portugalmail.pt>
> CC: gdb-patches@sourceware.org, bodzio131@op.pl
> 
> Eli Zaretskii wrote:
> >> Date: Fri, 28 Dec 2007 01:20:57 +0000
> >> From: Pedro Alves <pedro_alves@portugalmail.pt>
> >> CC: Bogdan Slusarczyk <bodzio131@op.pl>
> >>
> >> 	(*-*-mingw* | *-*-cygwin*): Set gdb_osabi to GDB_OSABI_CYGWIN.
> > 
> > Is this really right?  Unless I'm missing something, GDB_OSABI_CYGWIN
> > is not the native Windows ABI, is it?
> > 
> 
> There is no Cygwin ABI, to the best of my knowledge, since Cygwin is a
> library that sits on top of Windows, it follows the Windows ABI.  When
> MinGW support was introduced, I didn't rename that.  I haven't found a
> reason to split Cygwin|MinGW at this level.  I was avoiding rename-only
> patches, in a rename-as-I-touch mode.

Thanks for explanations.


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

* Re: PR/2386 [1/2]: MinGW attach to process without an exec file
  2007-12-28  1:21 PR/2386 [1/2]: MinGW attach to process without an exec file Pedro Alves
  2007-12-29 11:30 ` Eli Zaretskii
@ 2007-12-30  4:18 ` Daniel Jacobowitz
  1 sibling, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2007-12-30  4:18 UTC (permalink / raw)
  To: Pedro Alves; +Cc: gdb-patches, Bogdan Slusarczyk

On Fri, Dec 28, 2007 at 01:20:57AM +0000, Pedro Alves wrote:
> 2007-12-28  Pedro Alves  <pedro_alves@portugalmail.pt>
> 
> 	* configure.tgt (*-*-mingw32ce*): Set gdb_osabi to
> 	GDB_OSABI_WINCE.
> 	(*-*-mingw* | *-*-cygwin*): Set gdb_osabi to GDB_OSABI_CYGWIN.

This is OK.

-- 
Daniel Jacobowitz
CodeSourcery


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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-28  1:21 PR/2386 [1/2]: MinGW attach to process without an exec file Pedro Alves
2007-12-29 11:30 ` Eli Zaretskii
2007-12-29 16:07   ` Pedro Alves
2007-12-29 17:05     ` Eli Zaretskii
2007-12-30  4:18 ` Daniel Jacobowitz

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