Meta tags:
Headings (most frequently used words):
programming, reply, posts, logic, gdb, basic, commands, algorithms, computer, science, and, puzzles, post, navigation, leave, cancel, about, the, author, find, me, elsewhere, popular, categories, recent, archives,
Text of the page (most frequently used words):
the (42), you (23), and (17), with (15), 2013 (11), #program (11), will (11), gdb (10), basic (9), 2014 (8), code (8), commands (8), programming (8), run (8), this (6), next (6), can (6), #command (6), execute (6), breakpoint (6), your (5), 2012 (4), september (4), 2016 (4), node (4), for (4), find (4), email (4), source (4), print (4), memory (4), that (4), until (4), line (4), step (4), instruction (4), function (4), one (4), need (4), use (4), test (4), all (3), november (3), january (3), april (3), june (3), february (3), may (3), july (3), october (3), javascript (3), facebook (3), heroku (3), list (3), puzzles (3), project (3), assembly (3), algorithms (3), using (3), name (3), website (3), file (3), prints (3), value (3), continue (3), stop (3), machine (3), which (3), now (3), com (2), 2011 (2), december (2), march (2), 2017 (2), example (2), php (2), how (2), running (2), posts (2), euler (2), linux (2), java (2), challenges (2), sockets (2), simple (2), algorithm (2), problem (2), profile (2), daniel (2), scocco (2), time (2), comment (2), are (2), reply (2), post (2), entry (2), input (2), like (2), 0xa8 (2), location (2), char (2), 0x2034 (2), also (2), examine (2), info (2), registers (2), end (2), more (2), new (2), then (2), execution (2), have (2), should (2), programs (2), get (2), breakpoints (2), 0x26 (2), load (2), executable (2), writing (2), logic (2), copyright, programminglogic, rights, reserved, august, 2015, archives, modern, development, jsonp, getting, data, from, another, domain, webhook, integration, git, deploy, app, event, driven, resources, tutorials, express, mondodb, ffmpeg, mongodb, timezone, problems, date, objects, apps, locally, port, connect, recent, uncategorized, tricks, tools, sql, python, probability, oop, number, theory, networking, lisp, scheme, google, jam, games, hackers, cup, combinatorics, codechef, book, reviews, bitwise, stuff, categories, udp, datagrams, client, server, tcp, fast, exponentiation, poker, game, computers, represent, negative, binary, numbers, regex, patterns, perl, shell, mysql, powerset, sieve, eratosthenes, implemented, implementing, huffman, coding, knapsack, dynamic, popular, stackoverflow, github, danielscocco, elsewhere, programmer, entrepreneur, located, brazil, hobby, projects, samples, interesting, solutions, come, across, about, author, save, browser, required, fields, marked, address, not, published, leave, cancel, x86, multi, tasking, operating, system, arm, navigation, was, posted, txt, want, byte, shows, what, ascii, variables, locations, any, given, found, difference, call, whole, before, similar, but, instead, executing, translate, into, than, instructions, stands, only, four, main, options, three, cases, above, enough, most, fancier, lists, them, here, create, make, useful, points, where, stopped, see, however, won, gain, much, information, without, alternatively, could, start, itself, ready, just, once, gcc, first, compile, assemble, flag, include, necessary, never, gnu, debugger, well, easy, underestimate, its, usefulness, when, debugging, below, some, very, started, improve, skills, minutes, day, newsletter, daily, tips, computer, science,
Text of the page (random words):
gdb basic commands programming logic programming logic algorithms computer science and programming puzzles gdb basic commands improve your writing skills in 5 minutes a day with the daily writing tips email newsletter if you never use gdb the gnu project debugger well you should it s easy to underestimate its usefulness when debugging programs below you ll find some very basic commands that will get you started first of all you need to compile assemble your program with the g flag which will include in the executable the necessary code to run with gdb gcc test c o test g once you have the executable you can load it on gdb with the command gdb test alternatively you could also start gdb by itself and then load the file with file test gdb is ready to go and to execute the program you just need to use the run command run if you do this now however the program will execute until the end and you won t gain much information as this is like running the program without gdb to make it more useful you need to use breakpoints which are points where the execution of the program will be stopped you can see the source code with the list command list to create a new breakpoint you use the b command b 0x26 breakpoint at memory location 0x26 b 48 breakpoint at line 48 of the program b function breakpoint at entry of function the three cases above should be enough for most programs if you need to get fancier with breakpoints here s a post that lists all you can do with them now you can run the program and it will stop at the breakpoint to continue execution now you have four main options si si stands for step instruction and it will execute only one new instruction of the machine code then stop step similar to si but instead of executing one machine instruction step it will execute one line of your source code which may translate into more than one machine instructions next next will run the program until the next line of the source code the difference to step is that is the next instruction is a function call it will execute the whole function and stop before the next line continue continue will execute the program until the end or until a breakpoint is found at any given time you examine the registers with the info registers command info r you can also examine the value of variables or memory locations with the print command print x prints the value of memory x print 0xa8 prints the value of memory location 0xa8 print char 0x2034 prints the byte at 0x2034 and shows what char is that in ascii if you want to run your program using a source file as input you can run it like this run input txt this entry was posted in c on july 3 2013 by daniel scocco post navigation a simple multi tasking operating system in arm assembly problem 8 on project euler with x86 assembly leave a reply cancel reply your email address will not be published required fields are marked comment name email website save my name email and website in this browser for the next time i comment about the author my name is daniel scocco and i am a programmer and entrepreneur located in brazil on this website you ll find my hobby programming projects code samples i find interesting and solutions to programming puzzles and challenges i come across find me elsewhere danielscocco com github profile stackoverflow profile popular posts knapsack problem dynamic programming algorithm implementing huffman coding in c the sieve of eratosthenes implemented in c powerset algorithm in c mysql basic commands basic linux shell commands basic regex patterns in java perl gdb basic commands how computers represent negative binary numbers simple poker game in c fast exponentiation algorithms example of client server program in c using sockets and tcp sockets programming in c using udp datagrams categories algorithms assembly bitwise stuff book reviews c c challenges codechef combinatorics facebook hackers cup games google code jam heroku java javascript linux lisp scheme networking number theory oop php probability project euler puzzles python sql tools tricks uncategorized recent posts running heroku apps locally on port 80 with facebook connect mongodb and node js timezone problems with date objects list of basic ffmpeg commands resources and tutorials for node js express js and mondodb event driven programming with node js how to deploy a node js app to heroku git basic commands facebook webhook integration code in php jsonp example getting data from another domain with javascript modern javascript development archives october 2017 september 2017 november 2016 october 2016 september 2016 june 2016 february 2015 september 2014 august 2014 july 2014 may 2014 april 2014 march 2014 february 2014 january 2014 december 2013 november 2013 october 2013 september 2013 july 2013 june 2013 may 2013 april 2013 february 2013 january 2013 june 2012 april 2012 march 2012 january 2012 december 2011 november 2011 copyright programminglogic com all rights reserved
|