This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR 2343 fix: signal number mismatch


On Tue, Apr 22, 2008 at 09:54:13AM -0400, Aleksandar Ristovski wrote:
> Added other changes anyway. The attached patch contains complete proposed
> patch. Typically, targets would install their own signal translation
> functions during the osabi registration. For gdb configured for the same
> host and target, no translation is needed, but for other cases, in general,
> it is.
> 
> This patch effectively deprecates functions "target_signal_from_host" and
> "target_signal_to_host".

Only for targets with cross core file support.  Native and remote
debugging are not affected.

> 2008-04-22  Aleksandar Ristovski  <aristovski@qnx.com>
> 
> 	PR gdb/2343
> 	* corelow.c (core_open): Use gdbarch_target_signal_from_host to
> 	translate signal numeric value from the target to GDB's enum
> 	target_signal.
> 	* gdbarch.c (gdbarch_target_signal_from_host, 
> 	gdbarch_target_signal_to_host, set_gdbarch_target_signal_from_host,
> 	set_gdbarch_target_signal_to_host): New functions. Generated by 
> 	gdbarch.sh.
> 	* gdbarch.h: Likewise.
> 	* gdbarch.sh: Added two new functions target_signal_from_host and
> 	target_signal_to_host.
> 	* target.h (default_target_signal_from_host, 
> 	default_target_signal_to_host): New functions - declarations.
> 	* signals/signals.c (struct gdbarch): New declaration.
> 	(default_target_signal_to_host, default_target_signal_from_host):
> New
> 	functions.

Thanks, this is OK.

You can just write:

	* gdbarch.c, gdbarch.sh: Regenerated.

for those two files.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]