jpkerone | 3 Sep 2004 03:29
Picon
Favicon

Gdb Problem whit cygwin on XP

Hello, i have installed gdb gdb-20030919-1 on cygwin 1.5.9-1, i have windows
xp prof. and when start gdb the graphical interface not work but in a other
computer where i have w98 the gdb graphical interface works correctly. Which
could be the problem?
Thanks
Francesco
Balaji Purushothaman | 9 Sep 2004 21:03
Picon
Favicon

Re: GDB Build Error - no rule to make libiberty.a

Hi All,

Thanks for reading my earlier mail.

Iam able build successfully, when i compiled with
different version of GCC compiler.

Thanks,
Balaji

--- Balaji Purushothaman <balajikp2000 <at> yahoo.com>
wrote:

> Hi All,
> 
> My Environment ..
> Target : PowerPc-405 / Threadx (OS)
> Host   : Sun Solaris
> 
> Iam trying to build GDB from the host workstation.
> 
> Configure command : configure --target=powerpc
> --prefix=mydir
> 
> When i do a make,after running some 10min Iam
> getting
> the following error.
> ///////////////////////////////
> make[2]: *** No rule to make target
> `../../libiberty/libiberty.a', needed by `psim'. 
(Continue reading)

Balaji Purushothaman | 9 Sep 2004 21:09
Picon
Favicon

Remote Stubs (GDB) - Powerpc

Hi all,

Does anyone has ( remote Stubs (GDB) / (RMON - Remote
debugging the target / GDB Agent)) for the PowerPC
target, Or please advise me where should i find one.

Basic functionality of GDB Stubs is Exception handling
,Debugging support and understand the GDB standard
protocol.

Thanks in Advance

Regards,
Balaji

		
_______________________________
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.
http://shopping.yahoo.com/backtoschool
Antonio SJ Musumeci | 10 Sep 2004 21:10
Gravatar

mmalloc

This may not be the correct place to ask but i'm not sure where else to. 
I just ran across mmalloc and it's just what I need for a project i'm 
working on. But i'm having some problems.

1. if i attempt to allocate more than 0x4000 i get this when i detach

./a.out: relocation error: ./a.out: symbol munmap, version GLIBC_2.0 not 
defined in file libc.so.6 with link time reference

2. If i incrementally allocate memory... after say 1KB-2KB it segfaults

0x08049a4d in mmalloc (md=0x40015000, size=4096) at mmalloc.c:298
298       mdp -> heapinfo[mdp -> heapinfo[block].free.prev].free.next

this is all i'm doing in my sample program

fd = open("mapped_data", O_CREAT|O_RDWR, S_IRWXU);
md = mmalloc_attach(fd, NULL);
data = mmalloc(md, 0x1000);
mmalloc_detach(md);

gcc-3.3.4
glibc-2.3.3
gdb-6.2

what am i missing? or is mmalloc just too old?
Michael Chastain | 14 Sep 2004 13:28
Picon

Re: mmalloc

gdb <at>  does not have much traffic; try this list:

  gdb <at> sources.redhat.com

It would help to use the 'script' command and include a complete
'typescript' file showing the gcc command and the whole gdb session.

Also you need to say the exact version of the operating system you are
using.

Michael Chastain
Fred J. | 16 Sep 2004 19:48
Picon
Favicon

skip over a section

Hello
during debubbing c++, how can I skip over say few
lines of code, e.g. bypass them and continue on the
following line after said section.

thanks

		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 
J. David Boyd | 16 Sep 2004 21:21
Favicon

Re: skip over a section

"Fred J." <phddas <at> yahoo.com> writes:

> Hello
> during debubbing c++, how can I skip over say few
> lines of code, e.g. bypass them and continue on the
> following line after said section.
> 

I usually set a breakpoint where I want to skip to, then run to that
point.
Ben Elliston | 17 Sep 2004 01:56
Picon
Favicon

Re: skip over a section

"Fred J." <phddas <at> yahoo.com> writes:

> during debubbing c++, how can I skip over say few lines of code,
> e.g. bypass them and continue on the following line after said
> section.

If I want to skip over the next ten lines, then I use next 10:

 (gdb) help next
 Step program, proceeding through subroutine calls.
 Like the "step" command as long as subroutine calls do not happen;
 when they do, the call is treated as one instruction.
 Argument N means do this N times (or till program stops for another reason).

Cheers, Ben
J. David Boyd | 17 Sep 2004 14:18
Favicon

Re: skip over a section

Ben Elliston <bje <at> au.ibm.com> writes:

> "Fred J." <phddas <at> yahoo.com> writes:
> 
> > during debubbing c++, how can I skip over say few lines of code,
> > e.g. bypass them and continue on the following line after said
> > section.
> 
> If I want to skip over the next ten lines, then I use next 10:
> 
>  (gdb) help next
>  Step program, proceeding through subroutine calls.
>  Like the "step" command as long as subroutine calls do not happen;
>  when they do, the call is treated as one instruction.
>  Argument N means do this N times (or till program stops for another reason).
> 
> Cheers, Ben

I never knew that, I must have read the docs most un-thoroughly.

Thanks for the info!
Gabi Istrail | 27 Sep 2004 16:43

Using gdb as PPC simulator

I'm looking into using gdb's PowerPC simulator capability for ASIC simulation and I have questions regarding the feasibility of such an endeavor.  How difficult is it to extend gdb to enable simulation of custom logic and peripherals? Does it provide hooks so one can specify that a write to a particular address triggers some simulated behavior in a peripheral?

Thanks,
Gabi Istrail
_______________________________________________
Gdb mailing list
Gdb <at> gnu.org
http://lists.gnu.org/mailman/listinfo/gdb

Gmane