* RE: Breakpoint on class member function
@ 2003-06-18 18:06 Mathews_Alex
2003-06-18 18:10 ` Daniel Jacobowitz
0 siblings, 1 reply; 10+ messages in thread
From: Mathews_Alex @ 2003-06-18 18:06 UTC (permalink / raw)
To: drow; +Cc: gdb
In my case language is set to auto, so when I was in the C routine the
language was C. Once I ended up in a routine that was C++ my current
language became C++. I want to be clear, even if the current language is C,
I should be able to set a breakpoint on a C++ class member function as I was
expecting?
-----Original Message-----
From: Daniel Jacobowitz [mailto:drow@mvista.com]
Sent: Wednesday, June 18, 2003 1:33 PM
To: Mathews_Alex@emc.com
Cc: gdb@sources.redhat.com
Subject: Re: Breakpoint on class member function
OK, that makes sense. Let's file this with the "current language
doesn't make sense" pile. Would you mind filing a PR for tracking
purposes? It probably won't be fixed any time soon.
On Wed, Jun 18, 2003 at 01:31:33PM -0400, Mathews_Alex@emc.com wrote:
> Finally figured out what was going on. I think it's because when I do the
> target remote, the entry point is into a C routine, so the current
language
> is c instead of c++. When the language is c++ then the breakpoint works
as
> expected.
>
> -----Original Message-----
> From: Daniel Jacobowitz [mailto:drow@mvista.com]
> Sent: Wednesday, June 18, 2003 12:07 PM
> To: Mathews_Alex@emc.com
> Cc: gdb@sources.redhat.com
> Subject: Re: Breakpoint on class member function
>
>
> Well, if I can't get a test case I'm not sure how much help I can be.
> Let's see...
>
> Is "ptype foo" correct both before and after the "target remote"?
>
> Does it list foo1 as a member?
>
> If both are yes, you're going to have to debug the lookup routines
> yourself to see where the problem is.
>
> On Wed, Jun 18, 2003 at 11:36:49AM -0400, Mathews_Alex@emc.com wrote:
> > I have tried with a gdb 5.3 without my changes and see the same problem.
> > When I do the configure I use target==i686-pc-linux if that's of any
> > significance. I'm working with a proprietary OS, so I don't have a
binary
> > to distribute.
> >
> > Doing "b foo::foo1; delete 1; b foo::foo1" without the target remote
does
> > work.
> >
> >
> > -----Original Message-----
> > From: Daniel Jacobowitz [mailto:drow@mvista.com]
> > Sent: Wednesday, June 18, 2003 11:06 AM
> > To: Mathews_Alex@emc.com
> > Cc: gdb@sources.redhat.com
> > Subject: Re: Breakpoint on class member function
> >
> >
> > On Wed, Jun 18, 2003 at 10:50:29AM -0400, Mathews_Alex@emc.com wrote:
> > >
> > > I'm working with an internally modified gdb 5.3. I'm trying to figure
> out
> > > if something happens with symbols after a target remote is issued.
The
> > > binary is ELF format with debugging information built with gcc 3.2.
The
> > > scenario that I'm seeing is the following:
> > >
> > > (gdb) file symbols.gdb
> > > (gdb) b foo::foo1
> > > Breakpoint 1 @ ...
> > > (gdb) delete 1
> > > (gdb) target remote /dev/ttyS1
> > > (gdb) b foo::foo1
> > > the class foo does not have any method named foo1
> > > Hint: try 'foo::foo1<TAB> or 'foo::foo1<ESC-?>
> > > (gdb) b 'foo::foo1(char *, char *)'
> > > Breakpoint 2 @ ...
> > >
> > > So, before I do a target remote, I'm able to set a breakpoint without
> the
> > > fully typed member function. Then afterwards, it won't work unless
it's
> > > fully typed, so I'm forced to use the hint provided. I haven't
modified
> > > anything in the symbol area, but I have made modifications to target
> > remote
> > > related code.
> > >
> > > Any insight would be appreciated. I did see bug 1023, but I wasn't
sure
> > if
> > > that applied in my case.
> >
> > This doesn't make any sense to me. Do you have any distributable
> > binaries which reproduce the problem - and can you reproduce it without
> > your local changes?
> >
> > Does "b foo::foo1; delete 1; b foo::foo1" work without the target
> > remote?
> >
> > --
> > Daniel Jacobowitz
> > MontaVista Software Debian GNU/Linux Developer
> >
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
>
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Breakpoint on class member function
2003-06-18 18:06 Breakpoint on class member function Mathews_Alex
@ 2003-06-18 18:10 ` Daniel Jacobowitz
0 siblings, 0 replies; 10+ messages in thread
From: Daniel Jacobowitz @ 2003-06-18 18:10 UTC (permalink / raw)
To: Mathews_Alex; +Cc: gdb
"Should", yes. But in practice, as you have discovered, it does not
work.
On Wed, Jun 18, 2003 at 02:06:53PM -0400, Mathews_Alex@emc.com wrote:
> In my case language is set to auto, so when I was in the C routine the
> language was C. Once I ended up in a routine that was C++ my current
> language became C++. I want to be clear, even if the current language is C,
> I should be able to set a breakpoint on a C++ class member function as I was
> expecting?
>
> -----Original Message-----
> From: Daniel Jacobowitz [mailto:drow@mvista.com]
> Sent: Wednesday, June 18, 2003 1:33 PM
> To: Mathews_Alex@emc.com
> Cc: gdb@sources.redhat.com
> Subject: Re: Breakpoint on class member function
>
>
> OK, that makes sense. Let's file this with the "current language
> doesn't make sense" pile. Would you mind filing a PR for tracking
> purposes? It probably won't be fixed any time soon.
>
> On Wed, Jun 18, 2003 at 01:31:33PM -0400, Mathews_Alex@emc.com wrote:
> > Finally figured out what was going on. I think it's because when I do the
> > target remote, the entry point is into a C routine, so the current
> language
> > is c instead of c++. When the language is c++ then the breakpoint works
> as
> > expected.
> >
> > -----Original Message-----
> > From: Daniel Jacobowitz [mailto:drow@mvista.com]
> > Sent: Wednesday, June 18, 2003 12:07 PM
> > To: Mathews_Alex@emc.com
> > Cc: gdb@sources.redhat.com
> > Subject: Re: Breakpoint on class member function
> >
> >
> > Well, if I can't get a test case I'm not sure how much help I can be.
> > Let's see...
> >
> > Is "ptype foo" correct both before and after the "target remote"?
> >
> > Does it list foo1 as a member?
> >
> > If both are yes, you're going to have to debug the lookup routines
> > yourself to see where the problem is.
> >
> > On Wed, Jun 18, 2003 at 11:36:49AM -0400, Mathews_Alex@emc.com wrote:
> > > I have tried with a gdb 5.3 without my changes and see the same problem.
> > > When I do the configure I use target==i686-pc-linux if that's of any
> > > significance. I'm working with a proprietary OS, so I don't have a
> binary
> > > to distribute.
> > >
> > > Doing "b foo::foo1; delete 1; b foo::foo1" without the target remote
> does
> > > work.
> > >
> > >
> > > -----Original Message-----
> > > From: Daniel Jacobowitz [mailto:drow@mvista.com]
> > > Sent: Wednesday, June 18, 2003 11:06 AM
> > > To: Mathews_Alex@emc.com
> > > Cc: gdb@sources.redhat.com
> > > Subject: Re: Breakpoint on class member function
> > >
> > >
> > > On Wed, Jun 18, 2003 at 10:50:29AM -0400, Mathews_Alex@emc.com wrote:
> > > >
> > > > I'm working with an internally modified gdb 5.3. I'm trying to figure
> > out
> > > > if something happens with symbols after a target remote is issued.
> The
> > > > binary is ELF format with debugging information built with gcc 3.2.
> The
> > > > scenario that I'm seeing is the following:
> > > >
> > > > (gdb) file symbols.gdb
> > > > (gdb) b foo::foo1
> > > > Breakpoint 1 @ ...
> > > > (gdb) delete 1
> > > > (gdb) target remote /dev/ttyS1
> > > > (gdb) b foo::foo1
> > > > the class foo does not have any method named foo1
> > > > Hint: try 'foo::foo1<TAB> or 'foo::foo1<ESC-?>
> > > > (gdb) b 'foo::foo1(char *, char *)'
> > > > Breakpoint 2 @ ...
> > > >
> > > > So, before I do a target remote, I'm able to set a breakpoint without
> > the
> > > > fully typed member function. Then afterwards, it won't work unless
> it's
> > > > fully typed, so I'm forced to use the hint provided. I haven't
> modified
> > > > anything in the symbol area, but I have made modifications to target
> > > remote
> > > > related code.
> > > >
> > > > Any insight would be appreciated. I did see bug 1023, but I wasn't
> sure
> > > if
> > > > that applied in my case.
> > >
> > > This doesn't make any sense to me. Do you have any distributable
> > > binaries which reproduce the problem - and can you reproduce it without
> > > your local changes?
> > >
> > > Does "b foo::foo1; delete 1; b foo::foo1" work without the target
> > > remote?
> > >
> > > --
> > > Daniel Jacobowitz
> > > MontaVista Software Debian GNU/Linux Developer
> > >
> >
> > --
> > Daniel Jacobowitz
> > MontaVista Software Debian GNU/Linux Developer
> >
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
>
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Breakpoint on class member function
2003-06-18 17:31 Mathews_Alex
@ 2003-06-18 17:32 ` Daniel Jacobowitz
0 siblings, 0 replies; 10+ messages in thread
From: Daniel Jacobowitz @ 2003-06-18 17:32 UTC (permalink / raw)
To: Mathews_Alex; +Cc: gdb
OK, that makes sense. Let's file this with the "current language
doesn't make sense" pile. Would you mind filing a PR for tracking
purposes? It probably won't be fixed any time soon.
On Wed, Jun 18, 2003 at 01:31:33PM -0400, Mathews_Alex@emc.com wrote:
> Finally figured out what was going on. I think it's because when I do the
> target remote, the entry point is into a C routine, so the current language
> is c instead of c++. When the language is c++ then the breakpoint works as
> expected.
>
> -----Original Message-----
> From: Daniel Jacobowitz [mailto:drow@mvista.com]
> Sent: Wednesday, June 18, 2003 12:07 PM
> To: Mathews_Alex@emc.com
> Cc: gdb@sources.redhat.com
> Subject: Re: Breakpoint on class member function
>
>
> Well, if I can't get a test case I'm not sure how much help I can be.
> Let's see...
>
> Is "ptype foo" correct both before and after the "target remote"?
>
> Does it list foo1 as a member?
>
> If both are yes, you're going to have to debug the lookup routines
> yourself to see where the problem is.
>
> On Wed, Jun 18, 2003 at 11:36:49AM -0400, Mathews_Alex@emc.com wrote:
> > I have tried with a gdb 5.3 without my changes and see the same problem.
> > When I do the configure I use target==i686-pc-linux if that's of any
> > significance. I'm working with a proprietary OS, so I don't have a binary
> > to distribute.
> >
> > Doing "b foo::foo1; delete 1; b foo::foo1" without the target remote does
> > work.
> >
> >
> > -----Original Message-----
> > From: Daniel Jacobowitz [mailto:drow@mvista.com]
> > Sent: Wednesday, June 18, 2003 11:06 AM
> > To: Mathews_Alex@emc.com
> > Cc: gdb@sources.redhat.com
> > Subject: Re: Breakpoint on class member function
> >
> >
> > On Wed, Jun 18, 2003 at 10:50:29AM -0400, Mathews_Alex@emc.com wrote:
> > >
> > > I'm working with an internally modified gdb 5.3. I'm trying to figure
> out
> > > if something happens with symbols after a target remote is issued. The
> > > binary is ELF format with debugging information built with gcc 3.2. The
> > > scenario that I'm seeing is the following:
> > >
> > > (gdb) file symbols.gdb
> > > (gdb) b foo::foo1
> > > Breakpoint 1 @ ...
> > > (gdb) delete 1
> > > (gdb) target remote /dev/ttyS1
> > > (gdb) b foo::foo1
> > > the class foo does not have any method named foo1
> > > Hint: try 'foo::foo1<TAB> or 'foo::foo1<ESC-?>
> > > (gdb) b 'foo::foo1(char *, char *)'
> > > Breakpoint 2 @ ...
> > >
> > > So, before I do a target remote, I'm able to set a breakpoint without
> the
> > > fully typed member function. Then afterwards, it won't work unless it's
> > > fully typed, so I'm forced to use the hint provided. I haven't modified
> > > anything in the symbol area, but I have made modifications to target
> > remote
> > > related code.
> > >
> > > Any insight would be appreciated. I did see bug 1023, but I wasn't sure
> > if
> > > that applied in my case.
> >
> > This doesn't make any sense to me. Do you have any distributable
> > binaries which reproduce the problem - and can you reproduce it without
> > your local changes?
> >
> > Does "b foo::foo1; delete 1; b foo::foo1" work without the target
> > remote?
> >
> > --
> > Daniel Jacobowitz
> > MontaVista Software Debian GNU/Linux Developer
> >
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
>
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Breakpoint on class member function
@ 2003-06-18 17:31 Mathews_Alex
2003-06-18 17:32 ` Daniel Jacobowitz
0 siblings, 1 reply; 10+ messages in thread
From: Mathews_Alex @ 2003-06-18 17:31 UTC (permalink / raw)
To: drow, Mathews_Alex; +Cc: gdb
Finally figured out what was going on. I think it's because when I do the
target remote, the entry point is into a C routine, so the current language
is c instead of c++. When the language is c++ then the breakpoint works as
expected.
-----Original Message-----
From: Daniel Jacobowitz [mailto:drow@mvista.com]
Sent: Wednesday, June 18, 2003 12:07 PM
To: Mathews_Alex@emc.com
Cc: gdb@sources.redhat.com
Subject: Re: Breakpoint on class member function
Well, if I can't get a test case I'm not sure how much help I can be.
Let's see...
Is "ptype foo" correct both before and after the "target remote"?
Does it list foo1 as a member?
If both are yes, you're going to have to debug the lookup routines
yourself to see where the problem is.
On Wed, Jun 18, 2003 at 11:36:49AM -0400, Mathews_Alex@emc.com wrote:
> I have tried with a gdb 5.3 without my changes and see the same problem.
> When I do the configure I use target==i686-pc-linux if that's of any
> significance. I'm working with a proprietary OS, so I don't have a binary
> to distribute.
>
> Doing "b foo::foo1; delete 1; b foo::foo1" without the target remote does
> work.
>
>
> -----Original Message-----
> From: Daniel Jacobowitz [mailto:drow@mvista.com]
> Sent: Wednesday, June 18, 2003 11:06 AM
> To: Mathews_Alex@emc.com
> Cc: gdb@sources.redhat.com
> Subject: Re: Breakpoint on class member function
>
>
> On Wed, Jun 18, 2003 at 10:50:29AM -0400, Mathews_Alex@emc.com wrote:
> >
> > I'm working with an internally modified gdb 5.3. I'm trying to figure
out
> > if something happens with symbols after a target remote is issued. The
> > binary is ELF format with debugging information built with gcc 3.2. The
> > scenario that I'm seeing is the following:
> >
> > (gdb) file symbols.gdb
> > (gdb) b foo::foo1
> > Breakpoint 1 @ ...
> > (gdb) delete 1
> > (gdb) target remote /dev/ttyS1
> > (gdb) b foo::foo1
> > the class foo does not have any method named foo1
> > Hint: try 'foo::foo1<TAB> or 'foo::foo1<ESC-?>
> > (gdb) b 'foo::foo1(char *, char *)'
> > Breakpoint 2 @ ...
> >
> > So, before I do a target remote, I'm able to set a breakpoint without
the
> > fully typed member function. Then afterwards, it won't work unless it's
> > fully typed, so I'm forced to use the hint provided. I haven't modified
> > anything in the symbol area, but I have made modifications to target
> remote
> > related code.
> >
> > Any insight would be appreciated. I did see bug 1023, but I wasn't sure
> if
> > that applied in my case.
>
> This doesn't make any sense to me. Do you have any distributable
> binaries which reproduce the problem - and can you reproduce it without
> your local changes?
>
> Does "b foo::foo1; delete 1; b foo::foo1" work without the target
> remote?
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
>
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Breakpoint on class member function
@ 2003-06-18 16:27 Mathews_Alex
0 siblings, 0 replies; 10+ messages in thread
From: Mathews_Alex @ 2003-06-18 16:27 UTC (permalink / raw)
To: drow, Mathews_Alex; +Cc: gdb
The ptype output is the same before and after, and it does list all the
members. I'll try to debug the lookup routines. Thanks for your
assistance.
-----Original Message-----
From: Daniel Jacobowitz [mailto:drow@mvista.com]
Sent: Wednesday, June 18, 2003 12:07 PM
To: Mathews_Alex@emc.com
Cc: gdb@sources.redhat.com
Subject: Re: Breakpoint on class member function
Well, if I can't get a test case I'm not sure how much help I can be.
Let's see...
Is "ptype foo" correct both before and after the "target remote"?
Does it list foo1 as a member?
If both are yes, you're going to have to debug the lookup routines
yourself to see where the problem is.
On Wed, Jun 18, 2003 at 11:36:49AM -0400, Mathews_Alex@emc.com wrote:
> I have tried with a gdb 5.3 without my changes and see the same problem.
> When I do the configure I use target==i686-pc-linux if that's of any
> significance. I'm working with a proprietary OS, so I don't have a binary
> to distribute.
>
> Doing "b foo::foo1; delete 1; b foo::foo1" without the target remote does
> work.
>
>
> -----Original Message-----
> From: Daniel Jacobowitz [mailto:drow@mvista.com]
> Sent: Wednesday, June 18, 2003 11:06 AM
> To: Mathews_Alex@emc.com
> Cc: gdb@sources.redhat.com
> Subject: Re: Breakpoint on class member function
>
>
> On Wed, Jun 18, 2003 at 10:50:29AM -0400, Mathews_Alex@emc.com wrote:
> >
> > I'm working with an internally modified gdb 5.3. I'm trying to figure
out
> > if something happens with symbols after a target remote is issued. The
> > binary is ELF format with debugging information built with gcc 3.2. The
> > scenario that I'm seeing is the following:
> >
> > (gdb) file symbols.gdb
> > (gdb) b foo::foo1
> > Breakpoint 1 @ ...
> > (gdb) delete 1
> > (gdb) target remote /dev/ttyS1
> > (gdb) b foo::foo1
> > the class foo does not have any method named foo1
> > Hint: try 'foo::foo1<TAB> or 'foo::foo1<ESC-?>
> > (gdb) b 'foo::foo1(char *, char *)'
> > Breakpoint 2 @ ...
> >
> > So, before I do a target remote, I'm able to set a breakpoint without
the
> > fully typed member function. Then afterwards, it won't work unless it's
> > fully typed, so I'm forced to use the hint provided. I haven't modified
> > anything in the symbol area, but I have made modifications to target
> remote
> > related code.
> >
> > Any insight would be appreciated. I did see bug 1023, but I wasn't sure
> if
> > that applied in my case.
>
> This doesn't make any sense to me. Do you have any distributable
> binaries which reproduce the problem - and can you reproduce it without
> your local changes?
>
> Does "b foo::foo1; delete 1; b foo::foo1" work without the target
> remote?
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
>
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Breakpoint on class member function
@ 2003-06-18 16:08 Mathews_Alex
0 siblings, 0 replies; 10+ messages in thread
From: Mathews_Alex @ 2003-06-18 16:08 UTC (permalink / raw)
To: drow, Mathews_Alex; +Cc: gdb
I just tried with the 6-18 snapshot from cvs and the problem still occurs.
-----Original Message-----
From: Daniel Jacobowitz [mailto:drow@mvista.com]
Sent: Wednesday, June 18, 2003 11:06 AM
To: Mathews_Alex@emc.com
Cc: gdb@sources.redhat.com
Subject: Re: Breakpoint on class member function
On Wed, Jun 18, 2003 at 10:50:29AM -0400, Mathews_Alex@emc.com wrote:
>
> I'm working with an internally modified gdb 5.3. I'm trying to figure out
> if something happens with symbols after a target remote is issued. The
> binary is ELF format with debugging information built with gcc 3.2. The
> scenario that I'm seeing is the following:
>
> (gdb) file symbols.gdb
> (gdb) b foo::foo1
> Breakpoint 1 @ ...
> (gdb) delete 1
> (gdb) target remote /dev/ttyS1
> (gdb) b foo::foo1
> the class foo does not have any method named foo1
> Hint: try 'foo::foo1<TAB> or 'foo::foo1<ESC-?>
> (gdb) b 'foo::foo1(char *, char *)'
> Breakpoint 2 @ ...
>
> So, before I do a target remote, I'm able to set a breakpoint without the
> fully typed member function. Then afterwards, it won't work unless it's
> fully typed, so I'm forced to use the hint provided. I haven't modified
> anything in the symbol area, but I have made modifications to target
remote
> related code.
>
> Any insight would be appreciated. I did see bug 1023, but I wasn't sure
if
> that applied in my case.
This doesn't make any sense to me. Do you have any distributable
binaries which reproduce the problem - and can you reproduce it without
your local changes?
Does "b foo::foo1; delete 1; b foo::foo1" work without the target
remote?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Breakpoint on class member function
2003-06-18 15:37 Mathews_Alex
@ 2003-06-18 16:08 ` Daniel Jacobowitz
0 siblings, 0 replies; 10+ messages in thread
From: Daniel Jacobowitz @ 2003-06-18 16:08 UTC (permalink / raw)
To: Mathews_Alex; +Cc: gdb
Well, if I can't get a test case I'm not sure how much help I can be.
Let's see...
Is "ptype foo" correct both before and after the "target remote"?
Does it list foo1 as a member?
If both are yes, you're going to have to debug the lookup routines
yourself to see where the problem is.
On Wed, Jun 18, 2003 at 11:36:49AM -0400, Mathews_Alex@emc.com wrote:
> I have tried with a gdb 5.3 without my changes and see the same problem.
> When I do the configure I use target==i686-pc-linux if that's of any
> significance. I'm working with a proprietary OS, so I don't have a binary
> to distribute.
>
> Doing "b foo::foo1; delete 1; b foo::foo1" without the target remote does
> work.
>
>
> -----Original Message-----
> From: Daniel Jacobowitz [mailto:drow@mvista.com]
> Sent: Wednesday, June 18, 2003 11:06 AM
> To: Mathews_Alex@emc.com
> Cc: gdb@sources.redhat.com
> Subject: Re: Breakpoint on class member function
>
>
> On Wed, Jun 18, 2003 at 10:50:29AM -0400, Mathews_Alex@emc.com wrote:
> >
> > I'm working with an internally modified gdb 5.3. I'm trying to figure out
> > if something happens with symbols after a target remote is issued. The
> > binary is ELF format with debugging information built with gcc 3.2. The
> > scenario that I'm seeing is the following:
> >
> > (gdb) file symbols.gdb
> > (gdb) b foo::foo1
> > Breakpoint 1 @ ...
> > (gdb) delete 1
> > (gdb) target remote /dev/ttyS1
> > (gdb) b foo::foo1
> > the class foo does not have any method named foo1
> > Hint: try 'foo::foo1<TAB> or 'foo::foo1<ESC-?>
> > (gdb) b 'foo::foo1(char *, char *)'
> > Breakpoint 2 @ ...
> >
> > So, before I do a target remote, I'm able to set a breakpoint without the
> > fully typed member function. Then afterwards, it won't work unless it's
> > fully typed, so I'm forced to use the hint provided. I haven't modified
> > anything in the symbol area, but I have made modifications to target
> remote
> > related code.
> >
> > Any insight would be appreciated. I did see bug 1023, but I wasn't sure
> if
> > that applied in my case.
>
> This doesn't make any sense to me. Do you have any distributable
> binaries which reproduce the problem - and can you reproduce it without
> your local changes?
>
> Does "b foo::foo1; delete 1; b foo::foo1" work without the target
> remote?
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
>
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Breakpoint on class member function
@ 2003-06-18 15:37 Mathews_Alex
2003-06-18 16:08 ` Daniel Jacobowitz
0 siblings, 1 reply; 10+ messages in thread
From: Mathews_Alex @ 2003-06-18 15:37 UTC (permalink / raw)
To: drow, Mathews_Alex; +Cc: gdb
I have tried with a gdb 5.3 without my changes and see the same problem.
When I do the configure I use target==i686-pc-linux if that's of any
significance. I'm working with a proprietary OS, so I don't have a binary
to distribute.
Doing "b foo::foo1; delete 1; b foo::foo1" without the target remote does
work.
-----Original Message-----
From: Daniel Jacobowitz [mailto:drow@mvista.com]
Sent: Wednesday, June 18, 2003 11:06 AM
To: Mathews_Alex@emc.com
Cc: gdb@sources.redhat.com
Subject: Re: Breakpoint on class member function
On Wed, Jun 18, 2003 at 10:50:29AM -0400, Mathews_Alex@emc.com wrote:
>
> I'm working with an internally modified gdb 5.3. I'm trying to figure out
> if something happens with symbols after a target remote is issued. The
> binary is ELF format with debugging information built with gcc 3.2. The
> scenario that I'm seeing is the following:
>
> (gdb) file symbols.gdb
> (gdb) b foo::foo1
> Breakpoint 1 @ ...
> (gdb) delete 1
> (gdb) target remote /dev/ttyS1
> (gdb) b foo::foo1
> the class foo does not have any method named foo1
> Hint: try 'foo::foo1<TAB> or 'foo::foo1<ESC-?>
> (gdb) b 'foo::foo1(char *, char *)'
> Breakpoint 2 @ ...
>
> So, before I do a target remote, I'm able to set a breakpoint without the
> fully typed member function. Then afterwards, it won't work unless it's
> fully typed, so I'm forced to use the hint provided. I haven't modified
> anything in the symbol area, but I have made modifications to target
remote
> related code.
>
> Any insight would be appreciated. I did see bug 1023, but I wasn't sure
if
> that applied in my case.
This doesn't make any sense to me. Do you have any distributable
binaries which reproduce the problem - and can you reproduce it without
your local changes?
Does "b foo::foo1; delete 1; b foo::foo1" work without the target
remote?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Breakpoint on class member function
2003-06-18 14:58 Mathews_Alex
@ 2003-06-18 15:05 ` Daniel Jacobowitz
0 siblings, 0 replies; 10+ messages in thread
From: Daniel Jacobowitz @ 2003-06-18 15:05 UTC (permalink / raw)
To: Mathews_Alex; +Cc: gdb
On Wed, Jun 18, 2003 at 10:50:29AM -0400, Mathews_Alex@emc.com wrote:
>
> I'm working with an internally modified gdb 5.3. I'm trying to figure out
> if something happens with symbols after a target remote is issued. The
> binary is ELF format with debugging information built with gcc 3.2. The
> scenario that I'm seeing is the following:
>
> (gdb) file symbols.gdb
> (gdb) b foo::foo1
> Breakpoint 1 @ ...
> (gdb) delete 1
> (gdb) target remote /dev/ttyS1
> (gdb) b foo::foo1
> the class foo does not have any method named foo1
> Hint: try 'foo::foo1<TAB> or 'foo::foo1<ESC-?>
> (gdb) b 'foo::foo1(char *, char *)'
> Breakpoint 2 @ ...
>
> So, before I do a target remote, I'm able to set a breakpoint without the
> fully typed member function. Then afterwards, it won't work unless it's
> fully typed, so I'm forced to use the hint provided. I haven't modified
> anything in the symbol area, but I have made modifications to target remote
> related code.
>
> Any insight would be appreciated. I did see bug 1023, but I wasn't sure if
> that applied in my case.
This doesn't make any sense to me. Do you have any distributable
binaries which reproduce the problem - and can you reproduce it without
your local changes?
Does "b foo::foo1; delete 1; b foo::foo1" work without the target
remote?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 10+ messages in thread
* Breakpoint on class member function
@ 2003-06-18 14:58 Mathews_Alex
2003-06-18 15:05 ` Daniel Jacobowitz
0 siblings, 1 reply; 10+ messages in thread
From: Mathews_Alex @ 2003-06-18 14:58 UTC (permalink / raw)
To: gdb
I'm working with an internally modified gdb 5.3. I'm trying to figure out
if something happens with symbols after a target remote is issued. The
binary is ELF format with debugging information built with gcc 3.2. The
scenario that I'm seeing is the following:
(gdb) file symbols.gdb
(gdb) b foo::foo1
Breakpoint 1 @ ...
(gdb) delete 1
(gdb) target remote /dev/ttyS1
(gdb) b foo::foo1
the class foo does not have any method named foo1
Hint: try 'foo::foo1<TAB> or 'foo::foo1<ESC-?>
(gdb) b 'foo::foo1(char *, char *)'
Breakpoint 2 @ ...
So, before I do a target remote, I'm able to set a breakpoint without the
fully typed member function. Then afterwards, it won't work unless it's
fully typed, so I'm forced to use the hint provided. I haven't modified
anything in the symbol area, but I have made modifications to target remote
related code.
Any insight would be appreciated. I did see bug 1023, but I wasn't sure if
that applied in my case.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2003-06-18 18:10 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-18 18:06 Breakpoint on class member function Mathews_Alex
2003-06-18 18:10 ` Daniel Jacobowitz
-- strict thread matches above, loose matches on Subject: below --
2003-06-18 17:31 Mathews_Alex
2003-06-18 17:32 ` Daniel Jacobowitz
2003-06-18 16:27 Mathews_Alex
2003-06-18 16:08 Mathews_Alex
2003-06-18 15:37 Mathews_Alex
2003-06-18 16:08 ` Daniel Jacobowitz
2003-06-18 14:58 Mathews_Alex
2003-06-18 15:05 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).