This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fixes problem setting breakpoint in dynamic loader
- From: Andreas Schwab <schwab at suse dot de>
- To: pgilliam at us dot ibm dot com
- Cc: Mark Kettenis <mark dot kettenis at xs4all dot nl>, gdb-patches at sources dot redhat dot com
- Date: Sun, 16 Jul 2006 20:42:35 +0200
- Subject: Re: [patch] Fixes problem setting breakpoint in dynamic loader
- References: <1148513171.315.104.camel@dufur.beaverton.ibm.com> <200606172021.k5HKL82O013629@elgar.sibelius.xs4all.nl> <1152143843.6282.49.camel@dufur.beaverton.ibm.com>
PAUL GILLIAM <pgilliam@us.ibm.com> writes:
> + if (sym_addr != 0)
> + /* Convert 'sym_addr' from a function pointer to an address. */
> + sym_addr = gdbarch_convert_from_func_ptr_addr (current_gdbarch,
> + sym_addr,
> + tmp_bfd_target);
Why do you call gdbarch_convert_from_func_ptr_addr here? This is already
called by adjust_breakpoint_address via
ppc64_sysv_abi_adjust_breakpoint_address when setting the breakpoint.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."