Jump to content
Sign in to follow this  
Guest Flashstar

I Want To Learn To Program

Recommended Posts

Dev-C++ uses GDB...

515344[/snapback]

 

Uh huh. Tried using that one without a shiny GUI covering it up? It's not too pretty...

Share this post


Link to post
Share on other sites

Verran, each person learns at different rates and in different ways. I for example can't learn any algorithms or something without seeing the cold hard code with a few comments.

 

However, I respect your opinion, and I thank you for staying mature throughout the debate despite my posts.

 

EDIT: Markie, you may be right... the only debugging I've done is with Ollydbg32.exe and my Haaaandie Daaandie... Notebook- I mean Win32 System Kernel Interrupt List!

Share this post


Link to post
Share on other sites
EDIT: Markie, you may be right... the only debugging I've done is with Ollydbg32.exe and my Haaaandie Daaandie... Notebook- I mean Win32 System Kernel Interrupt List!

515366[/snapback]

 

Have an example of it :) (about as good of an example as you're gonna get from me lol)

 

(mrboo|bone)/home/mrboo$ gdb badpointer badpointer.core

GNU gdb 4.18 (FreeBSD)

Copyright 1998 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain conditions.

Type "show copying" to see the conditions.

There is absolutely no warranty for GDB.  Type "show warranty" for details.

This GDB was configured as "i386-unknown-freebsd"...Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs

Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf

 

Core was generated by `badpointer'.

Program terminated with signal 11, Segmentation fault.

Reading symbols from /usr/lib/libc.so.4...done.

Reading symbols from /usr/libexec/ld-elf.so.1...done.

#0  0x804848c in main () at badpointer.c:5

5              *bp = '\n';

(gdb) list 5

1      #include <stdio.h>

2

3      int main(void) {

4              int *bp = NULL;

5              *bp = '\n';

6              return 0;

7      }

(gdb) break 4

Breakpoint 1 at 0x8048482: file badpointer.c, line 4.

(gdb) run

Starting program: /usr/home/mrboo/badpointer

 

Breakpoint 1, main () at badpointer.c:4

4              int *bp = NULL;

(gdb) next

5              *bp = '\n';

(gdb) next

 

Program received signal SIGSEGV, Segmentation fault.

0x804848c in main () at badpointer.c:5

5              *bp = '\n';

(gdb)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...