GDB를 이용한 디버깅

Size: px
Start display at page:

Download "GDB를 이용한 디버깅"

Transcription

1 GDB GNU - Fifth Edition, for GDB version April 1998 Richard M. Stallman and Roland H. Pesch : GDB o o GDB GDB GDB o GDB o GDB o Shell GDB o o o GDB o o o o o o o o o o

2 o o Breakpoints, watchpoints, breakpoint watchpoint Breakpoint breakpoint breakpoint Disable Breakpoint Breakpoint o o o o o Backtraces o o o MIPS o o o o o o o o o o o Print o (Value Histor) o (Convenience variables) o o (Floating point hardware) GDB o working language GDB

3 o o o C C++ C C++ C C++ C++ C C++ C C++ GDB C C++ GDB Modula-2 Modula-2 Modula-2 Modula-2 ::. GDB Modula-2 o o o o o o GDB o o o (Active) o o o GDB stub stub Putting it all together

4 gdbserver gdbserve.nlm i960(nindy) GDB Nindy Nindy Nindy AMD29K UDI AMD29K EBMON EB29K Tandem ST2000 GDB GDB VxWorks VxWorks VxWorks GDB Sparclet Sparclet Sparclet GDB Hitachi Hitachi E7000 in-circuit emulator Hitachi micros GDB GDB MIPS CPU GDB o Prompt o o o o o o - o - (hooks) o o GNU Emacs GDB GDB

5 o? o GDB o GDB o o configure Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. Published by the Free Software Foundation 59 Temple Place - Suite 330, Boston, MA USA Printed copies are available for $20 each. ISBN Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided also that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions. GDB GDB. --. GDB 4 ( )....

6 ,. C C++ GDB., C C++. Modula-2 Chill. Modula-2, Modula-2. Chill. sets, subranges, Pascal. GDB,, Pascal.,, Fortran GDB Fortran.. GDB GNU General Public License(GPL). GPL. -- ( ). ; Free Software Foundation GPL., General Public License. GDB Richard Stallman GDB GDB... ;,. GDB `ChangeLog'. 2.0.

7 :. ( )., GDB.: Stan Shebs (release 4.14), Fred Fish (releases 4.13, 4.12, 4.11, 4.10, and 4.9), Stu Grossman and John Gilmore (releases 4.8, 4.7, 4.6, 4.5, and 4.4), John Gilmore (releases 4.3, 4.2, 4.1, 4.0, and 3.9); Jim Kingdon (releases 3.5, 3.4, and 3.3); and Randy Smith (releases 3.2, 3.1, and 3.0). GDB,. Peter TerMaat, Chris Hanson, Richard Mlynarik Richard Stallman 2.8. Michael Tiemann Per Bothner GDB GNU C++. James Clark C++ (demangler). C++ Peter TerMatt(3.0.). GDB 4 - BFD ; BFD David V.Henkel-Wallace, Rich Pixley, Steve Chamberlain, John Gilmore. David Johnson COFF ; Pace Willson COFF. Harris Computer Systems Brent Benson DWARF2. Adam de Boor Bradley Davis ISI Optimum V. Per Bothner, Noboyuki Hikichi, Alessandro Forin MIPS. Jean-Daniel Fekete Sun 386i. Chris Hanson HP9000. Noboyuki Hikichi Tomoyuki Hasei Sony/News OS 3. David Johnson Encore Umax. Jyrki Kuoppala Altos Jeff Law HP PA SOM. Keith Packard NS32K. Doug Rabson Acorn Risc Machine. Bob Rusk Harris Nighthawk CX-UX. Chris Smith Convex ( ). Jonathan Stone Pyramid. Michael Tiemann SPARC. Tim Tucker Gould NP1 Gould Powernode. Pace Willison Intel 386. Jay Vosburgh Symmetry. Rich Schaefer Peter Schauer SunOS.

8 Jay Fenlason Roland McGrath GDB GAS. Patrick Duval, Ted Goldstein, Vikram Koka Glenn Engel. Intel Corporation, Wind River Systems, AMD, ARM i960, VxWorks, A29K UDI, RDI targets. Brian Fox readline. SUNY Buffalo Andrew Beers -switch, Modula-2 Language chapter. Fred Fish Unix System Vr4. C++ -. Hitachi America, Ltd. Hitachi microprocessors. Kung Hsu, Jeff Law, Rick Sladkey watchpoints. Michael Snyder tracepoint. Stu Grossman gdbserver. Jim Kingdon, Peter Schauer, Ian Taylor, Stu Grossman GDB. Cygnus Solutions 1991 GDB. GDB GDB.,.., :input, GNU m4( ) :,

9 stop. m4, 0000 foo ; bar m4 defn., <QUOTE> <UNQUOTE>, baz. $ cd gnu/m4 $./m4 define(foo,0000) foo 0000 define(bar,defn(`foo')) bar 0000 changequote(<quote>,<unquote>) define(baz,defn(<quote>foo<unquote>)) baz C-d m4: End of input: 0: fatal error: EOF in string GDB. $ gdb m4 GDB is free software and you are welcome to 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. GDB, Copyright 1995 Free Software Foundation, Inc... (gdb) GDB.;,. GDB.. (gdb) set width 70

10 m4 changequote., m4_changequote, GDB break breakpoint. (gdb) break m4_changequote Breakpoint 1 at 0x62f4: file builtin.c, line 879. run, GDB m4 ; m4_changequote,. (gdb) run Starting program: /work/editorial/gdb/gnu/m4/m4 define(foo,0000) foo 0000 breakpoint, changequote. GDB m4. changequote(<quote>,<unquote>) Breakpoint 1, m4_changequote (argc=3, argv=0x33c70) at builtin.c: if (bad_argc(token_data_text(argv[0]),argc,1,3)) n(next). (gdb) n 882 set_quotes((argc >= 2)? TOKEN_DATA_TEXT(argv[1])\ : nil, set_quotes. next s (step). step any. set_quotes. (gdb) s set_quotes (lq=0x34c78 "<QUOTE>", rq=0x34c88 "<UNQUOTE>") at input.c: if (lquote!= def_lquote)

11 m4.. backtrace( bt) : backtrace. (gdb) bt #0 set_quotes (lq=0x34c78 "<QUOTE>", rq=0x34c88 "<UNQUOTE>") at input.c:530 #1 0x6344 in m4_changequote (argc=3, argv=0x33c70) at builtin.c:882 #2 0x8174 in expand_macro (sym=0x33320) at macro.c:242 #3 0x7a88 in expand_token (obs=0x0, t=209696, td=0xf7fffa30) at macro.c:71 #4 0x79dc in expand_input () at macro.c:40 #5 0x2930 in main (argc=0, argv=0xf7fffb20) at m4.c:195., `s' ;, xstrdup n. (gdb) s 0x3b5c 532 if (rquote!= def_rquote) (gdb) s 0x3b lquote = (lq == nil *lq == '\0')? \ def_lquote : xstrdup(lq); (gdb) n 536 rquote = (rq == nil *rq == '\0')? def_rquote\ : xstrdup(rq); (gdb) n 538 len_lquote = strlen(rquote); ; lquote rquote. p(print). (gdb) p lquote $1 = 0x35d40 "<QUOTE>" (gdb) p rquote $2 = 0x35d50 "<UNQUOTE>"

12 lquote rquote,., l(list) 10. (gdb) l 533 xfree(rquote); lquote = (lq == nil *lq == '\0')? def_lquote\ : xstrdup (lq); 536 rquote = (rq == nil *rq == '\0')? def_rquote\ : xstrdup (rq); len_lquote = strlen(rquote); 539 len_rquote = strlen(lquote); 540 } void len_lquote len_rquote. (gdb) n 539 len_rquote = strlen(lquote); (gdb) n 540 } (gdb) p len_lquote $3 = 9 (gdb) p len_rquote $4 = 7 len_lquote len_rquote lquote rquote. p (gdb) p len_lquote=strlen(lquote) $5 = 7 (gdb) p len_rquote=strlen(rquote) $6 = 9

13 m4 defn? c(continue) m4.. (gdb) c Continuing. define(baz,defn(<quote>foo<unquote>)) baz 0000!.. EOF m4. C-d Program exited normally. `Program exited normally.' GDB ; m4. GDB quit GDB. (gdb) quit GDB GDB. : GDB `gdb'. quit C-d. GDB gdb GDB., GDB (exit). gdb.

14 -.;,. GDB 1. gdb program (core) : gdb program core ID. gdb program GDB.( `1234' ; GDB.) OS.; bare GDB, " ".. -silent GDB gdb. gdb -silent - GDB. GDB. gdb -help.(`gdb -h'.). `-x'.

15 GDB, GDB ( ID). `-se' `-c'. (GDB `-se' ; `-c'.) long short ;. GDB. (, `-' `- -'.) -symbols file -s file file. -exec file -e file file. -se file file. -core file -c file file. -c number attach ID number. ( number -, `-c' ) -command file -x file file GDB.. -directory directory -d directory directory. -m -mapped : OS. - (memory-map) mmap,. `/tmp/fred', `./fred.syms'. GDB

16 . `.syms' GDB. GDB.. -r -readnow.. -mapped -readnow `.syms'. (.) `.syms' : gdb -batch -nx -mapped -readnow programname GDB --, -nx -n -quiet -q -batch ( `.gdbinit' ).,.. " ".... `-x'( `-n' ) 0. GDB 0. GDB.;. ( GDB.) Program exited normally. -cd directory

17 GDB directory. -fullname -f GNU Emacs GDB. ( ) GDB. `\032',,,. Emacs-to-GDB `\032'. -b bps GDB (baud rate bits per second). -tty device device. GDB quit GDB, quit( q). EOF ( C- d). expression, GDB ; expression. ( C-c) GDB GDB GDB.. GDB. GDB, detach. (.) Shell shell, GDB ; shell. shell command string

18 command string shell. shell, SHELL shell. GDB /bin/sh. make. GDB shell : make make-args make. `shell make make-args'. GDB GDB ; RET GDB. GDB TAB.( 1,.) GDB..., step `step 5'. step.. GDB..,.;, s s step. help. GDB ( RET ). (, run) ;. list x RET,..

19 GDB RET : more.(screen.) RET, GDB. # ;..(.) GDB.;. GDB, GDB,. TAB., GDB. ( RET.), (gdb) info bre TAB GDB `breakpoints'. `bre' info. (gdb) info breakpoints info breakpoints RET, backspace. ( info breakpoints, `info bre' RET.) TAB GDB. 2 TAB.; GDB., `make_' breakpoint. b make_tab GDB.TAB. : (gdb) b make_ TAB

20 GDB sounds bell; press TAB again, to see: make_a_section_from_file make_environ make_abs_section make_function_type make_blockvector make_pointer_type make_cleanup make_reference_type make_command make_symbol_completion_list (gdb) b make_, GDB ( `b make_')., TAB M-?. M-? META?. META shift? ESC?.., GDB '( ). C++. C++.( ), breakpoint, int name(int), float name(float). -, '. TAB M-? GDB. (gdb) b 'bubble( M-? bubble(double,double) bubble(int,int) (gdb) b 'bubble(, GDB., GDB.: (gdb) b bub TAB GDB. (gdb) b 'bubble(

21 ,, GDB. help GDB. help h help( h). (gdb) help List of classes of commands: running -- Running the program stack -- Examining the stack data -- Examining data breakpoints -- Making program stop at certain points files -- Specifying and examining files status -- Status inquiries support -- Support facilities user-defined -- User-defined commands aliases -- Aliases of other commands obscure -- Obscure features Type "help" followed by a class name for a list of commands in that class. Type "help" followed by command name for full documentation. Command name abbreviations are allowed if unambiguous. (gdb) help class help,., status. (gdb) help status Status inquiries. List of commands: show -- Generic command for showing things set with "set" info -- Generic command for printing status

22 Type "help" followed by command name for full documentation. Command name abbreviations are allowed if unambiguous. (gdb) help command help, GDB. complete args complete args. args. : complete i : info inspect ignore GNU Emacs. help, GDB GDB info show. ;. info show.. info set show ( i)., info args, info registers, info breakpoints breakpoint. help info info. set., GDB set prompt $ $-sign. info, show GDB. show set ;, set radix, show radix.,

23 show ; info set.. set 3 show. show version GDB. GDB -. GDB, GDB.; GDB. GDB. show copying GDB. show warranty GNU "NO WARRANTY". GDB GDB,. GDB.,,.,. ;.., `-g'. C `-g' `-O'.,. GNU C Compiler GCC `-g' `-O'. `-g'.,.

24 `-g -O', (optimizer).;.! :, GDB.--., `-g -O' `-g'., `-g'., (!). GNU C `-gg'. GDB ; GNU C,. run r GDB run. (VxWorks ) file exec-file.(.), run,. (, run.). GDB,.(,.) 4.. run. shell, shell (wildcard ). Unix, SHELL shell..

25 . GDB, GDB set environment unset environment... GDB. GDB cd GDB... GDB. run tty.. :,.;, GDB. run,.,., print call.. GDB, GDB., GDB breakpoint. run. shell, wildcard I/O. SHELL ( ) GDB shell. SHELL, GDB /bin/sh. run run set args. set args. set args, run

26 . run set args. show args GDB. environment.,,. shell.., GDB. path directory GDB PATH ( ) directory. `:' whitespace. directory,. GDB `$cwd'. `.', path. GDB directory directory ( ) `.'. show paths.(path ) show environment [varname] varname. varname,. env environment. set environment varname [=] value varname value. GDB. value ;. value ;, null., : set env USER = foo Unix `foo'. (`=' ;.) unset environment varname

27 varname. `set env varname =' ; unset environment. : shell ( /bin/sh) GDB SHELL shell. SHELL shell --C-shell `.cshrc', BASH `.bashrc'--. `.login' `.profile'. run, GDB. GDB, cd GDB. GDB GDB.. cd directory GDB directory. pwd GDB., GDB GDB. GDB. GDB. info terminal GDB. run shell., run > outfile

28 , `outfile'. tty. run. run,., tty /dev/ttyb run `/dev/ttyb'. run tty.. tty run,. GDB. attach process-id --GDB. (info files.) ID. Unix ID ps `jobs -l' shell. 2 RET attach. attach,.;, attach OS bare-.. attach, file... GDB. run GDB. breakpoint ; step continue ;

29 ., GDB continue. detach, GDB detach.. detach, GDB attach run. RET detach. GDB run,., GDB.; set confirm.(.) kill GDB.. GDB. OS, GDB breakpoint GDB. kill. kill.. run, GDB. ( breakpoint ) OS `/proc'. GDB OS, info proc

30 . info proc procfs SVR4. info proc. info proc mappings,,. info proc times CPU, CPU. info proc id ID ; ID, ID, ID ID. info proc status.,. info proc all. OS,. OS,.-- (,.),. GDB. `thread threadno' `info threads' `thread apply [threadno] [all] args' thread breakpoints : OS GDB. GDB,., `info threads' thread.:

31 (gdb) info threads (gdb) thread 1 Thread ID 1 not known. Use the "info threads" command to see the IDs of currently known threads. GDB. -- GDB,. current thread.. GDB, `[New systag]'. systag., LynxOS ; [New process 35 thread 27] GDB., SGI systag `process 368'., GDB info threads. GDB.: 1. GDB 2. (systag) 3. GDB `*'., (gdb) info threads 3 process 35 thread 27 0x34e5 in sigpause () 2 process 35 thread 23 0x34e5 in sigpause () * 1 process 35 thread 13 main (argc=1, argv=0x7ffffff8) at threadtest.c:68 thread threadno threadno. threadno `info threads' GDB. GDB ; (gdb) thread 2

32 [Switching to process 35 thread 23] 0x34e5 in sigpause () `[New...]', `Switching to'. thread apply [threadno] [all] args thread apply. threadno. threadno `info threads'., thread apply all args. GDB breakpoint, signal, GDB breakpoint signal. GDB `[Switching to systag]'. GDB,. watchpoint watchpoints. GDB fork. fork, GDB. breakpoint, ( ) SIGTRAP.,,. fork sleep. sleep. sleep, ID ps. GDB( GDB ) (.).,.

33 .;,. GDB, signal, breakpoint step GDB. breakpoint., GDB.--. info program.:,. Breakpoints, watchpoints, breakpoint. breakpoint. break (breakpoints.) breakpoint.. (GNU C++ ), (Breakpoints.) breakpoint. SunOS 4.x, SVR4 Alpha OSF/1, breakpoint. watchpoint breakpoint. watchpoint(watchpoints.). breakpoint watchpoint : breakpoint watchpoint,. GDB breakpoint.. GDB breakpoint watchpoint ; 1. breakpoint, breakpoint breakpoint. breakpoint enabled disabled.;

34 diabled, breakpoint. breakpoints Breakpoint break ( b). `$bpnum' breakpoint ;. breakpoint. break function function function breakpoint. C++, function break., Breakpoint. break +offset break -offset, breakpoint. break linenum linenum breakpoint.. breakpoint. break filename:linenum filename linenum breakpoint. break filename:function filename function breakpoint.. break *address address breakpoint. breakpoint. break, break breakpoint.(.),. finish.-- finish breakpoint. break, GDB ;. GDB

35 breakpoint., breakpoint disable brekapoint. breakpoint. break... if cond cond breakpoint.; breakpoint cond, 0.--, cond. `...'. breakpoint Break. tbreak args breakpoint. Set a breakpoint enabled only for one stop. args break, breakpoint. breakpoint. breakpoints disable. hbreak args - breakpoint. args break breakpoint. breakpoint. EPROM/ROM, breakpoint. SPARClite DSU trap-. DSU trap. breakpoint breakpoint GDB. breakpoint delete disable. Break conditions. thbreak args - breakpoint. args hbreak breakpoint., tbreak, breakpoint., hbreak, breakpoint. breakpoints disable., Break. rbreak regex regex breakpoint. breakpoint breakpoint. breakpoint, break breakpoint., disable breakpoint. C++, rbreak breakpoint. info breakpoints [n]

36 info break [n] info watchpoints [n] Print a table of all breakpoints and watchpoints set and not deleted, with the following columns for each breakpoint: Breakpoint Numbers Type breakpoint watchpoint. Disposition breakpoint disable deleted. Enabled or Disabled enable breakpoint `y'. `n' enable breakpoint. Address breakpoint. What breakpoint. breakpoint, info break breakpoint.;, breakpoint. breakpoint number n info break breakpoint. $_ x - breakpoint. (..) info break breakpoint. ignore. breakpoint, breakpoint breakpoint info. breakpoitn. GDB breakpoint.. breakpoint,. (Break.). GDB longjmp(c ) breakpoint. breakpoint -1.; `info breakpoints'. GDB `maint info breakpoints' breakpoint. maint info breakpoints Using the same format as `info breakpoints', breakpoint. GDB. breakpoint breakpoint

37 . breakpoint.: breakpoint, breakpoint. watchpoint, watchpoint. Normal, explicitly set watchpoint. longjmp longjmp stepping breakpoint longjmp resume longjmp breakpoint until GDB until breakpoint. finish GDB finish breakpoint. watchpoints watchpoint. Watchpoint breakpoint 2.. watch expr watchpoint. GDB expr break. SPARC lite DSU trap-. DSU trap. breakpoint register watchpoint. watchpoint., watch, rwatch, awatch watchpoint. watchpoint. watchpoint. watchpoint disable. rwatch expr args break watchpoint. watchpoint, rwatch. awatch expr

38 args break watchpoint. watchpoint, awatch. info watchpoints watchpoint breakpoint.; info break. : -, watchpoint. watchpiont, GDB. ( ), watchpoint., GDB. Breakpoints GNU C++. GDB. catch exceptions catch breakpoint. exceptions. info catch.. GDB.:, GDB., breakpoint. breakpoint GDB... catch :, before..

39 breakpoint,.,. GNU C++, ANSI C raise_exception. /* addr is where the exception identifier is stored. ID is the exception identifier. */ void raise_exception (void **addr, void *id);, raise_exception breakpoint. (Breakpoints, watchpoints,.) id breakpoint(break conditions >),. breakpoint. breakpoints breakpoint watchpoint. breakpoint. breakpoint ;. clear breakpoint. delete breakpoint breakpoint watchpoint. brekapoint. GDB breakpoint. clear breakpoint. (.), breakpoint. clear function clear filename:function function breakpoint. clear linenum

40 clear filename:linenum breakpoint. delete [breakpoints] [bnums...] breakpoint watchpoint., breakpoint.( set confirm off GDB.) d. breakpoints Disable breakpoint watchpoint, disable. breakpoint. breakpoint. enable. breakpoint, enable, disable breakpoint watchpoint disable, enable., breakpoint watchpoint info break info watch. breakpoint watchpoint 4. Enabled. breakpoint. break breakpoint. Diabled. breakpoint. Enabled once. breakpoint. disable. tbreak breakpoint. Enabled for deletion. breakpoint,. breakpoint watchpoint enable, disable : disable [breakpoints] [bnums...] breakpoint Disable --, breakpoit. disabled breakpoint. ignore-count, condition breakpoint enable. dis disable. enable [breakpoints] [bnums...] breakpoint ( breakpoint) Enable.. enable [breakpoints] once bnums...

41 breakpoint Enable. GDB breakpoint disable. enable [breakpoints] delete bnums... breakpoint enable. GDB breakpoint. tbreak(setting breakpoints.) breakpoint, breakpoint enable ;, disable enable.( until breakpoint. breakpoint ;.) breakpoint. breakpoint condition. Boolean.(.) breakpoint. true. ;,. --,. C, assert, breakpoint `! assert'. watchpoint.; watchpoint.-- watchpoint....,. enable breakpoint.(, GDB breakpoint.) breakpoint breakpoint. break `if', breakpoint. breakpoints. condition. watch if

42 ; condition watchpoint. condition bnum expression breakpoint watchpoint bnum break expression., expression (C 0 ) breakpoint bnum. condition, GDB expression. breakpoint. GDB condition expression. Expressions. condition bnum breakpoint bnum. breakpoint. breakpoint breakpoint. breakpoint ignore count. breakpoint ignore count., ignore count 0. ignore count breakpoint, ignore count. ignore count n, breakpoint n. ignore bnum count ignore count breakpoint bnum count. count breakpoint, ; ignore count GDB. breakpoint, count 0. breakpoint continue, ignore continue ignore count. (stepping). breakpoint ignore count,. ignore count 0, GDB. `$foo-- <= 0' ignore count.. Breakpoint breakpoint breakpoint( watchpoint)., breakpoint. commands [bnum]

43 ... command-list... end breakpoint bnum.. end. breakpoint, commands end.;,. bnum, commands breakpoint watchpoint.( breakpoint ) GDB RET command-list disable. breakpoint. continue step.,. ( next step ), breakpoint.--. silent, breakpoint. breakpoint continue., breakpoint. silent breakpoint. echo, output, printf. breakpoint.., x foo x breakpoint. break foo if x>0 commands silent printf "x is %d\n",x cont end breakpoint.. breakpoint.

44 . continue silent. : break 403 commands silent set x = y + 4 cont end Breakpoint ( C++),. overloading., `break function' breakpoint GDB., `break function(types)'., GDB breakpoint. `>'. `[0] cancel' `[1] all'. 1 function breakpoint 0 breakpoint break., String::after breakpoint. 3.: (gdb) b String::after [0] cancel [1] all [2] file:string.cc; line number:867 [3] file:string.cc; line number:860 [4] file:string.cc; line number:875 [5] file:string.cc; line number:853 [6] file:string.cc; line number:846 [7] file:string.cc; line number:735 > Breakpoint 1 at 0xb26c: file String.cc, line 867. Breakpoint 2 at 0xb344: file String.cc, line 875. Breakpoint 3 at 0xafcc: file String.cc, line 846. Multiple breakpoints were set. Use the "delete" command to delete unwanted breakpoints.

45 (gdb) Continuing., stepping "step". "step" (.)., breakpoint. (, handle `signal 0'..) continue [ignore-count] c [ignore-count] fg [ignore-count] ; breakpoint. ignore-count breakpoint ; ignore.(break.) ignore-count breakpoint., continue. c fg continue., return(.).; jump(.). stepping breakpoint(breakpoints, watchpoints, exceptions.). breakpoint step. step. GDB. s. : step,.,

46 step. step stepi. step. switch. step., step. next. MIPS cc - gl., step. step count step, count. breakpoint step count, steppint. next [count] ( ). step,. next. n. count step. next. switch. finish.. return.(.) u until. stepping. until next. stepping, until., next. until. until.,, f(frame) 206 ; until, 195. (gdb) f

47 #0 main (argc=4, argv=0xf7fffae8) at m4.c: expand_input(); (gdb) until 195 for ( ; argc > 0; NEXTARG) {.--C for-. until.; --. until stepping. until. until location u location. location break.(setting breakpoints.) breakpoint. until. stepi si.. stepping `display/i $pc'. GDB.. step. nexti ni.. next.. OS., Unix SIGINT (C-c).; SIGSEGV.; SIGALRM alarm. ( ) SIGALRM. SIGSEGV,.; ( ). SIGINT.

48 GDB. GDB., GDB SIGALRM. ( ) handle. info signals GDB.. info handle info signals. handle signal keywords... GDB signal. signal ( `SIG' ). keywords. handle. : nostop stop GDB.. GDB. print. print GDB. noprint GDB. nostop. pass GDB ;. nopass GDB., continue. pass., GDB continue pass nopass handle.

49 signal.,, continue.;., `signal 0'.. (.), breakpoint. break linespec thread threadno break linespec thread threadno if... linespec.;. breakpoint breakpoint `thread threadno'. threadno `info threads' GDB. breakpoint `thread threadno', breakpoint. breakpoint thread. ;, breakpoint `thread threadno'. (gdb) break frik.c:13 thread 28 if bartab > lim GDB,..,. step next stepping., GDB stepping. OS(GDB.), step.,.

50 continue -stepping. breakpoint,.,....., GDB. GDB selected GDB., GDB. GDB.., GDB frame. (.) stack frames frames.;.., main. initial outermost.,.,.,. innermost..

51 ,. ;. frame pointer register. GDB innermost 0, 1. ; GDB GDB..(, gcc `-fomit-frame-pointer'.). GDB. innermost, GDB. 0., GDB. frame args frame. args., frame. select-frame select-frame. frame. Backtraces backtrace. ( 0) ( 1). backtrace bt backtrace :. C-c backtrace. backtrace n bt n

52 , innermost n. backtrace -n bt -n, outermost n. where info stack( infos) backtrace. backtrace..-- set print address off. backtrace.. backtrace. 3 `bt 3'. #0 m4_traceon (obs=0x24eb0, argc=1, argv=0x2b8c8) at builtin.c:993 #1 0x6e38 in expand_macro (sym=0x2b600) at macro.c:242 #2 0x6840 in expand_token (obs=0x0, t=177664, td=0xf7fffb08) at macro.c:71 (More stack frames follow...) 0, builtin.c ;. frame n f n n. 0, 1 1. main. frame addr f addr addr..,. SPARC, frame

53 2.;. MIPS Alpha 2 :. 29k 3 :,,. up n n. n,,,. n 1. down n n. n,,,. down do. 2.,,,.. : (gdb) up #1 0x22f0 in main (argc=1, argv=0xf7fffbf4, env=0xf7fffbfc) at env.c:10 10 read_input_file (argv[i]);, list 10.. up-silently n down-silently n up down.;... frame f,. f.,..

54 info frame info f.: ( ) ( ) ( ). info frame addr info f addr, addr.. frame.( 1 )... info args. info locals. ( ). info catch.,.(up, down frame ); info catch. Breakpoints. MIPS MIP. GDB. ( GDB ),.: set heuristic-fence-post limit limit GDB. 0., 0

55 heuristic-fence-post.. show heuristic-fence-post. GDB MIP. GDB.., GDB., GDB. (.). GNU Emacs GDB, Emacs.; GNU Emacs GDB. list. ( l)., 10.. list.: list linenum linenum. list function function. list. list,.;, (.),. list -.

56 , GDB list 10. set listsize. set listsize count list count.( list ) show listsize list. RET list. list.. `-' ;., list 0, 1 2 linespecs. linespec ;,. list : list linespec linespec. list first,last first last. linespecs. list,last last. list first, first. list +. list -. list. -- linespec number number. number linespec, linespec. +offset line offset. list linespecs, linespec offset. -offset line offset.

57 filename:number filename number. function function body. : C, open brace. filename:function filename function body open-brace.,. *address address. address.. forward-search regexp search regexp `forward-search regexp' regexp,.. `search regexp' fo. reverse-search regexp `reverse-search regexp' regexp,.. rev..,. GDB.; source path. GDB, GDB..,. GDB, GDB.,, GDB.

58 , GDB. GDB,., directory. directory dirname... dir dirname... dirname. `:' whitespace..;. GDB. `$cdir'. `$cwd'. `$cwd' `.'. -- GDB.. directory.. show directories :., GDB. : 1. directory. 2. directory. ( ) info line. disassemble. GNU Emacs, info line., info line. info line linespec linespec. list (.).

59 , m4_changequote info line.: (gdb) info line m4_changecom Line 895 of "builtin.c" starts at pc 0x634c and ends at 0x6350. (linespec *addr ) : (gdb) info line *0x63ff Line 926 of "builtin.c" starts at pc 0x63e4 and ends at 0x6404. info line, x. `x/i' (.)., $_(.). disassemble.. ; GDB. (, ). info line ( SPARC.) disassemble.: (gdb) disas 0x63e4 0x6404 Dump of assembler code from 0x63e4 to 0x6404: 0x63e4 <builtin_init+5340>: ble 0x63f8 <builtin_init+5360> 0x63e8 <builtin_init+5344>: sethi %hi(0x4c00), %o0 0x63ec <builtin_init+5348>: ld [%i1+4], %o0 0x63f0 <builtin_init+5352>: b 0x63fc <builtin_init+5364> 0x63f4 <builtin_init+5356>: ld [%o0+4], %o0 0x63f8 <builtin_init+5360>: or %o0, 0x1a4, %o0 0x63fc <builtin_init+5364>: call 0x9288 <path_search> 0x6400 <builtin_init+5368>: nop End of assembler dump. set assembly-language instruction-set disassemble x/i.. Intel x86

60 . i386 i8086 instructionset. i386. print ( p) inspect.. ( GDB ). print exp print /f exp exp ( ). exp.; `/f'. f.;. print print /f exp, GDB. (value history ; Value history ).. low-level x... print ptype exp.. print GDB., GDB.,,. #define. GDB. {element, element...}., malloc print {1, 2, 3}.

61 C C. GDB., GDB. C.. `@'.. :: `::'.. {type} addr addr type. addr. (.). addr... (.);.: global (or static).. foo (a) int a;

62 { bar (a); { int b = test (); bar (b); } } foo a. b b. :. ( ) 1.,., -. file::variable function::variable file function variable., GDB. --, `f2.c' x : (gdb) p 'f2.c'::x `::' C++. GDB GDB C++. :,. --., 1. ( );.,

63 1 ;..; artificial array. operand of ;.., int *array = (int *) malloc (len * sizeof (int)); array. p *array@len `@'. `@'.. (Value history )....: (gdb) p/x (short[2])0x $1 = {0x1234, 0x5678}, (`(type)[])value') GDB. (`sizeof(value)/sizeof(type)': (gdb) p/x (short[])0x $2 = {0x1234, 0x5678} ;. --,

64 . ( (Convenience variables).). RET., dtab fv. : set $i = 0 p dtab[$i++]->fv RET RET..., GDB.., print (/). : x d u o t a `t' "two". (1) 16. ( ). (gdb) p/a 0x54320 $3 = 0x54320 <_initialize_vx+396>

65 c f.., 16 (PC). (Registers ) p/x $pc (/).: GDB (/)., print., `p/x' 16. x. x/nfu addr x addr x x. n, f, u. ; addr. nfu, `/'. addr. n, 10 ; 1. (u ). f, print `s' ( ), `i' ( ), `x' (16 ). x print. u,

66 . b. h halfword(2 ) w (4 ).. g Giant-word(8 ) x, x. (`s' `i',.) addr, addr GDB. ;.. addr. - : info breakpoints ( breakpoint ), info line ( ), print ( )., `x/3uh 0x54320' 10 (`u') 0x halfwords (h). `x/4xw $sp' 16 (, `$sp' ;Registers.) 4 (`w').,. `4xw' `4wx'. (, n ; `wx4'.) u `s' `i', n.;, `3i' 3. disassemble.. x x.., `x/3i addr', `x/7' 7. x RET, n ; x.

67 x., GDB $_ and $. x, $_. $. x, ;. ( ), GDB automatic display list. ;. : 2: foo = 38 3: bar[5] = (struct hack *) 0x3804,. x print,. ;, display print x. -- x (`i' and `s') GDB x.; GDB print. display exp exp.. display RET display. display/fmt exp fmt, exp. fmt.. display/fmt addr fmt `i' `s',, addr. `x/fmt addr'..

68 , `display/i $pc'. (`$pc' ; Registers.). undisplay dnums... delete display dnums... dnums. RET undisplay. ( `No display number...'.) disable display dnums... dnums... enable display dnums... dnums.. display,. info display. disable...,. disable., last_char, display last_char, GDB. --- ( last_char ) --- disable. last_char. Print GDB,. : set print address set print address on

69 GDB,,, breakpoints. on., set print address on : (gdb) f #0 set_quotes (lq=0x34c78 "<<", rq=0x34c88 ">>") at input.c: if (lquote!= def_lquote) set print address off., set print address off.: (gdb) set print addr off (gdb) f #0 set_quotes (lq="<<", rq=">>") at input.c: if (lquote!= def_lquote) GDB `set print address off'., print address off backtrace. -- show print address. GDB,. (, ),. info line, `info line *0x4537'., GDB. set print symbol-filename on GDB. set print symbol-filename off.. show print symbol-filename GDB..; GDB.

70 ,. set print max-symbolic-offset max-offset max-offset GDB. 0 GDB. show print max-symbolic-offset GDB., `set print symbol-filename on'. `p/a pointer'.., GDB `hi2.c' ptt t.: (gdb) set print symbol-filename on (gdb) p/a ptt $4 = 0xe008 <t in hi2.c> :, `p/a' set print.. set print array set print array on... set print array off. Return to compressed format for arrays. show print array. set print elements number-of-elements GDB. GDB, GDB set print elements.. number-of-elements 0. show print elements

71 GDB. 0,. set print null-stop NULL GDB.. set print pretty on GDB.: $1 = { next = 0x0, flags = { sweet = 1, sour = 1 }, meat = 0x54 "Pork" } set print pretty off GDB : $1 = {next = 0x0, flags = {sweet = 1, sour = 1}, \ meat = 0x54 "Pork"}. show print pretty GDB. set print sevenbit-strings on 7- ;, GDB \nnn 9- ( ). (ASCII) "meta". set print sevenbit-strings off 8.. show print sevenbit-strings 7- GDB. set print union on GDB.. set print union off GDB. show print union GDB.,

72 typedef enum {Tree, Bug} Species; typedef enum {Big_tree, Acorn, Seedling} Tree_forms; typedef enum {Caterpillar, Cocoon, Butterfly} Bug_forms; struct thing { Species it; union { Tree_forms tree; Bug_forms bug; } form; }; struct thing foo = {Tree, {Acorn}};. set print union on `p foo'. $1 = {it = Tree, form = {tree = Acorn, bug = Cocoon}} set print union off. $1 = {it = Tree, form = {...}} C++. set print demangle set print demangle on type-safe linage ("mangled") C++. `on'. show print demangle C++ mangle demangle. set print asm-demangle set print asm-demangle on, mangle C++. off. show print asm-demangle C++ mangle demangle. set demangle-style style C++. style : auto GDB. gnu GNU C++ (g++).. lucid

73 Lucid C++ (lcc). arm C++ Annotated Reference Manual. : cfront. GDB. foo. show demangle-style C++. set print object set print object on, declared actual. set print object off,.. show print object. set print static-members set print static-members on C++. on. set print static-members off C++. show print static-members C++. set print vtbl set print vtbl on C++. off. set print vtbl off C++. show print vtbl C++. print GDB...( file symbol-file.),..

74 . 1. print `$num = '.; num., `$'. $. $$. $$n n.; $$2 $$, $$1 $$ $$0 $.,.. p *$ next, : p *$.next.-- RET.. x 4 : print x set x=5 x, print 4. show values item 10. show values, `p $$9' 10. show values n item n 10. show values + 10., show values +.

75 show values n RET `show values +'. GDB GDB. GDB ;.. `$'. - (.), `$'. (, `$' numbers..),. : set $foo = *object_ptr object_ptr $foo.. void...,,.,. show convenience. show con.., : set $i = 0

76 print bar[$i++]->contents RET. GDB. $_ $_ (.) x. x $_.: info line info breakpoint. $_ $ x, void *. $ $ x.. $_exitcode $_exitcode. `$',..; info registers. info registers ( ). info all-registers. info registers regname... regname.,. regname `$',. GDB ( ) 4 " ".--. $pc $sp. $fp $ps.,.

77 p/x $pc. x/i $pc (2) 4. set $sp += 4, 4,. info registers., SPARC info registers $psr, $ps. GDB. ;..( `print/f $regname' print ) "raw" "virtual". OS., "extended" (raw). C "double" (virtual)., GDB virtual ( ). info registers., (.).., (`frame 0')., GDB., GDB,.

78 set rstack_high_address address AMD 29000, "register stack". GDB., GDB "large enough"., set rstack_high_address., 16 `0x'. show rstack_high_address AMD 29000,., GDB. info float.., `info float' ARM x86. GDB,., ANSI C p *p, Modula-2 p^.. C 16 `0x1ae' Modula-2 `1AEH'. GDB GDB. working language.. working language 2.--GDB. set language., GDB. working language,.

79 working language, GDB working language.,., GDB. C++ demangle. -- backtrace. GDB. C cfront f2c., C #line.; GDB. C., GDB. `.mod' Modula-2 `.c' C source file `.C' `.cc' `.cxx' `.cpp' `.cp' `.c++' C++ `.ch' `.c186' `.c286' CHILL `.s' `.S'. C, GDB stepping prologue. working language GDB,.

80 ,., `set language lang'. lang c modula-2., `set language'. GDB working language. working language , C, GDB Modula-2 : print a = b + c. C, b c a. a. Modula-2, a b+c. BOOLEAN. GDB working language GDB, `set language local' `set language auto'. GDB working language., ( breakpoint ), GDB working language. (, ), working language. GDB..,. `set language auto' working language. working language.. show language working language. print. info frame

81 . working language.,. info source.,. :, GDB GDB. GDB, print GDB. working language, GDB.,. Modula-2.., => 3 but error--> CARDINAL 1 REAL 2.3. GDB, GDB ; ;

82 ., GDB,., GDB., GDB int struct foo...., Modula-2 C. C,,.. GDB : set check type auto working language.. set check type on set check type off working language on off.. on, GDB. set check type warn.., GDB. show type, GDB. (Modula-2 ), ;.,. GDB, GDB :,.

83 ,.,. C, "wrap around".--, m, s, m + 1 => s.. GDB : set check range auto working language on off.. set check range on set check range off working language on off.. on, GDB. set check range warn GDB..,.( ) show range, GDB. GDB 4 C, C++ Modula-2. GDB.: ::, `{type}addr' (.). GDB., GDB..

84 ;. C C++ C C++, GDB.,. C++ GNU C++ GDB., C++, GNU C++ g++ C++. C++, stab. g++ `-gstabs' `-gstabs+'. Using GNU CC `Options for Debugging Your Program or GNU CC'. C C++., +.. C C++, : Integral types - int. ; char; enum. Floating-point types float double. Pointer types (type*). Scalar types..., = op=?:..... a op= b, a = a op b. op= =. op, ^, &, <<, >>, +, -, *, /, %. 3. a? b : c : a b, c. a.

85 OR.. && AND.. Bitwise OR.. ^ Bitwise exclusive-or.. & Bitwise AND.. ==,!= <, >, <=, >=,,, <<, GDB " " (.). +, -.,,. *, /, %,,.,.. ++, --,., ;,. * & C++, GDB C++ `&'.: C++ (`&ref' ) `&(&ref)`.(,, `&&ref') ! ~ Bitwise , ->

86 [] () :: ::,., GDB,. struct union.. a[i] *(a+i). ->.. ->. C++. struct, union, class. GDB. (Expressions.). ::. C, C++ GDB C C++.:. 8 `0'(, 0), 16 `0x' `0X'. `l'. long.,,. : `e[[+] -]nnn', nnn. `+'.. (') -- (ASCII ) --., escape sequences, `\nnn', nnn 8 (ASCII ).; `\x', `x' --, newline `\n' (").. C `&'. `{' `}'.;, `{1,2,3}' 3 -, `{{1,2}, {3,4}, {5,6}}' three-by-two `{&"hi", &"there", &"fred"}' 3. C++ GDB C++.

87 : GNU C++ GDB C++., C++. GDB stab., stab a.out, MIPS ECOFF, RS/6000 XCOF, ELF,. (GNU CC, stab `-gstabs'.) COFF ELF DWARF,, GDB C ; count = aml->getoriginal(x, y) 4. ( ),.:, GDB C++ this. 5. ; GDB.--. GDB GDB C++ ; C GDB, ( );.. `set print address off', address. 7. GDB C++ :: --.,, `scope1::scope2::name' ::. GDB C, C++ (.). C C++

88 GDB, C C++ off. GDB. GDB, `.c', `.C', or `.cc', GDB, GDB C C++. GDB.. C C++, GDB C C++,.,, GDB. o o. typedef.,..,. GDB C set print union show print union union. `on', struct class union., C++ GDB GDB C++. C++. : breakpoint menus breakpoint, GDB breakpoint menus. Breakpoint menus.

89 rbreak regex breakpoint brekapint. breakpoints. catch exceptions info catch C++. Breakpoints. ptype typename typename.. set print demangle show print demangle set print asm-demangle show print asm-demangle C++ C++.. set print object show print object.. set print vtbl show print vtbl.. Overloaded symbol names C++,.: symbol symbol(types). GDB -.,. Modula-2 Modula-2 GDB GNU Modula-2 ( ). Modula-2, GDB.., +.. Modula-2, :

90 o o o o o o o Integral types INTEGER, CARDINAL,. Character types CHAR. Floating-point types REAL. Pointer types POINTER TO type. Scalar types. Set types SET BITSET. Boolean types BOOLEAN..:,. :=. var := value value. <, >,,. <=, >=,,,,,. <. =, <>, #,. <. GDB, <>. #. IN.. <. OR OR.. AND, & GDB " " (Expressions.) +, -, * Multiplication on integral and floating-point types, or set intersection on set types. /. *. DIV, MOD.. *.

91 -. INTEGER REAL. ^.. NOT.. ^.. RECORD. RECORD. ^. []. ARRAY. ^. (). PROCEDURE. ^. ::,. GDB Modula-2. : Sets and their operations are not yet supported, so GDB treats the use of the operator IN, or the use of operators +, -, *, /, =,, <>, #, <=, and >= on sets as an error. Modula-2.,. a ARRAY. c CHAR. i. m. s. s SET OF mtype. (mtype m.) n. r. t. v.

92 x.. Modula-2. ABS(n) n. CAP(c) c,.,. CHR(i) i. DEC(v) v.. DEC(v,i) i v.. EXCL(m,s) s m.. FLOAT(i) i. HIGH(a) a. INC(v) v.. INC(v,i) i v.. INCL(m,s) m s.. MAX(t) t. MIN(t) t. ODD(i) i TRUE. ORD(x)., ASCII.( ASCII ). x,. SIZE(x). x. TRUNC(r) r. VAL(t,i)

93 i t. :. GDB INCL EXCL. GDB Modula-2.: o o o o o o o o., `H' 8 `B'. 10. `E[+ -]nnn'. `[+ -]nnn'. 10. (') ("). (ASCII ), `C'. (') ("). C. C C++.. TRUE FALSE... Modula-2 GDB, Modula-2 on. GDB. GDB, `.mod' Modula-2. GDB. Modula-2

94 Modula-2..: o o o o Modula-2,..( Modula-2, ;.) C. GDB. - `CHR(nnn)'. (:=).. Modula-2 :, GDB. GDB Modula-2.: o o TYPEt1 = t2..( : GNU Modula-2,.) enable,.,,,. ::. Modula-2 (.) GDB (::). : module. id scope :: id

95 scope, module id. :: id scope GDB., GDB scope. module id. GDB., id module id module. GDB Modula-2 GDB Modula-2. set print show print C C++ : `vtbl', `demangle', `asm-demangle', `object', and `union' 4 C++ C union ( ) Modula-2. C C++ Modula-2 dynamic arrays.,, `{type}adrexp'. (.) GDB, Modula-2 #. <>. (, ).. GDB GDB ( ), - ( ).,, GDB. ( ).

96 , GDB 3 `foo' `.' `c' `foo.c'. GDB `foo.c', ;, p 'foo.c'::x `foo.c' x. info address symbol symbol.,. -, -. `print &symbol',. whatis exp exp. exp, ( ).. whatis $. ptype typename typename. typename `class class-name', `struct struct-tag', `union union-tag' `enum enum-tag' C. ptype exp ptype exp. ptype whatis., : struct complex {double real; double imag;} v; : (gdb) whatis v type = struct complex (gdb) ptype v type = struct complex { double real; double imag; } whatis, $ ptype.

97 info types regexp info types regexp(, ). ;`i type value' value. `i type ^value$' value. ptype :, whatis ;,. info source --, --. info sources, : info functions. info functions regexp, regexp., `info fun step' step.; `info fun ^step' step. info variables.(,.) info variables regexp ( ). regexp.., VxWorks., GDB. set symbol-reloading on. set symbol-reloading off. ;, symbol-reloading off. GDB (

98 ). show symbol-reloading on off. maint print symbols filename maint print psymbols filename maint print msymbols filename filename. GDB -.. `maint print symbols', GDB. info sources. `maint print psymbols', GDB.--, GDB,., `maint print msymbols' GDB. GDB (symbol-file ),.,. GDB,.,.,,.,.., print x=4 4 x,., GDB.

99 , print set. set ( ) print.. set set, set set variable. set., width, `set width=13'., GDB set width.: (gdb) whatis width type = double (gdb) p width $4 = 13 (gdb) set width=47 Invalid syntax in expression. `=47'. width,. (gdb) set var width=47 GDB C.;.., ( ) `{...}'., {int} 0x x set {int}0x83040 = 4 4.

100 ,, continue.. jump linespec linespec. breakpoint. linespec,. jump,,. linespec,., jump.,. jump *address address. $pc jump. ; continue., set $pc = 0x485 continue 0x485 stepping.. jump -- breakpoint --. signal signal. signal. signal., signal 2 signal SIGINT., signal 0.

101 continue.;`signal 0'. signal RET. signal kill. kill GDB. ( ). signal. return return expression return. expression,. return, GDB ( ).., return. (.)... return.;., finish (.). call expr void expr. void, print. void,.

102 -, call_scratch_address GDB.., GDB ( ). ;., set write.,. set write on set write off `set write on', GDB.; `set write off'( ), GDB -., set write,.(exec-file core-file ) show write -. GDB GDB., GDB.. GDB. (GDB.) GDB. GDB. GDB.

103 file filename filename.. run. GDB, shell GDB PATH. path GDB,., `filename.syms' filename., GDB `filename.syms'. `-mapped' `-readnow'. (, file, symbol-file, add-symbol-file.) file file GDB. exec-file [ filename ] ( ) filename., GDB PATH. filename. symbol-file [ filename ] filename. PATH. file. symbol-file GDB. symbol-file GDB, breakpoint., GDB. RET, symbol-file. GDB, GDB.; GNU. GNU.;, gcc,., symbol-file.,.. GDB.,.(set verbose..)

104 COFF. COFF, symbol-file. symbol-file filename [ -readnow ] [ -mapped ] file filename [ -readnow ] [ -mapped ] GDB, `-readnow' 2. mmap, GDB, `-mapped'. GDB ( ). `-mapped' `-mapped' GDB.. myprog `myprog.syms'., myprog GDB. `.syms' GDB. GDB.. core-file [ filename ] " ".,.; GDB. core-file. GDB.,,., kill. (.) load filename GDB, load., filename.--,. load add-symbol-file, GDB filename. GDB load, "You can't do that when your target is...".., ; a.out,. VxWorks, load GDB

105 filename. Intel 960 board Nindy, load GDB 960 filename. Hitachi SH, H8/300, H8/500 board, load Hitachi board(gdb Hitachi microprocessors.) (file ) GDB. RET load. add-symbol-file filename address add-symbol-file filename address [ -readnow ] [ -mapped ] add-symbol-file filename. filename. address ; GDB. address. filename symbol-file. ADD- SYMBOL-FILE ;., symbol-file. RET, addsymbol-file. GDB filename symbol-file, `- mapped' and `-readnow'. add-shared-symbol-file add-shared-symbol-file Motorola 88k OS Harris' CXUX. GDB. GDB, add-sharedsymbol-file.. section section SECTIO ADDR. exec,.. "info files". info files info target info files info target ; GDB. (.) help target.. GB.

106 GDB SunOS, SVr4, Irix 5, IBM RS/6000. GDB run. ( run, GDB.--.) info share info sharedlibrary. sharedlibrary regex share regex Unix., run. regex,., GDB., GDB..,, GDB.; set complaints (.). GDB., : inner block not inside outer block in symbol ( ).. GDB., symbol "(don't know)". block at address out of order.. GDB

107 . ( set verbose on..) bad block start address patched. SunOS ( ) C. GDB. bad string table offset in symbol n n. GDB foo,. unknown symbol type 0xnn GDB. 0xnn 16. GDB.,., gdb, complain breakpont, read_dbx_symtab *bufp. stub type has NULL name GDB. const/volatile indicator missing (ok if using g++ v1.x), got... C++. info mismatch between compiler and debugger GDB. target., GDB ;, file core. --, GDB TCP/IP -- GDB target. ( ).

108 (Active) :,, GDB.., `gdb a.out', a.out GDB tandem corefile. (, ) run,. GDB ;. core-file exec-file. ( ). attach.( ). target type parameters GDB.. type. parameters,,. RET target. help target., info target info files. (.). help target name

109 . set gnutarget args GDB BFD. GDB executable, core,.o, set gnutarget. target, gnutarget target. : set gnutarget, BFD.. show gnutarget gnutarget show gnutarget. gnutarget, GDB show gnutarget The current BDF target is "auto"..(gdb ): target exec program. `target exec program' `exec-file program'. target core filename. `target core filename' `core-file filename'. target remote dev GDB-. dev.(e.g. `/dev/ttya').. target remote load.. target sim CPU. CPU. target udi keyword AMD UDI AMD29k. keyword 29k. AMD29K UDI. target amd-eb dev speed PROG PC AMD EB29k. target remote dev.; speed ; PROG PC DOS.is the AMD29K EBMON. target hms dev Hitachi SH, H8/300, H8/500 board.

110 device speed. GDB Hitachi. target nindy devicename Nindy Monitor Intel 960. devicename. e.g. `/dev/ttya'. i960(nindy) GDB. target st2000 dev speed Tandem's STDBUG Tandem ST2000. dev ST2000 ; speed. GDB TCP Telnet ST2000. Tandem ST2000 GDB. target vxworks machinename TCP/IP VxWorks machinename IP. GDB VxWorks. target bug dev MVME187 (m88k) BUG. target cpu32bug dev CPU32 (M68K) CPU32BUG. target op50n dev OKI HPPA OP50N. target w89k dev Winbond HPPA W89K. target est dev CPU32 (M68K) EST-300 ICE. target rom68k dev IDP ROM 68K. target array dev Tech LSI33K RAID. target sparclite dev Fujitsu sparclite.. : GDB target remote dev GDB ;.. set endian big set endian little. GDB set endian auto. show endian

111 . :, MIPS. GDB,., OS OS. GDB TCP/IP., GDB (stubs)--gdb -- (GDB ). GDB ; help target. GDB ( target ),., C : 31. C : `crt0'.,. 32. C ,... GDB (host )., : On the host,

112 GDB ;, `target remote'. (.) On the target, GDB. debugging stub., stub gdbserver., gdbserver. debugging stub ;, SPARC `sparc-stub.c'. stub GDB : i386-stub.c Intel 386. m68k-stub.c Motorola 680x0. sh-stub.c Hitachi SH. sparc-stub.c SPARC. sparcl-stub.c Fujitsu SPARCLITE. GDB `README' stub. stub debugging stub.: set_debug_traps handle_exception.. handle_exception,.-- trap handle_exception. handle_exception (, breakpoint). GDB.

113 .; handle_exception GDB.;., GDB GDB.;, handle_exception. breakpoint breakpoint., GDB.,, ; handle_exception --, GDB., trap.;, breakpoint.--, `target remote' GDB.,, breakpoint. stub GDB debugging stub chip.. stub. int getdebugchar(). getchar ;. void putdebugchar(int). putchar ;. GDB, -driven. ^C (`\003', control- C ). GDB.

114 GDB stub.; breakpoint. (" " GDB SIGINT SIGTRAP.) : void exceptionhandler (int exception_number, void *exception_address) exception_address.., stub. (,, RAM.) exception_number.; - (, 0,.), exception_number. (, )., exception_address jump, jump jump. 386, exception_address. 0. SPARK 68k stub exceptionhandler. void flush_i_cache() ( sparclite )., no-op., GDB. : void *memset(void *, int, int) memset. libc.a, memset ;,. GNU C,.; stub. stub gcc inline.

115 Putting it all together,, ( stub.) getdebugchar, putdebugchar, 37. flush_i_cache, memset, exceptionhandler. 38. : set_debug_traps(); 41. breakpoint(); x0, exceptionhook. : void (*exceptionhook)() = 0; set_debug_traps,. GDB trap(, bus error). exceptionhook ; int. 45. :, GDB debugging stub. 46. GDB ( ). 48., GDB.. GDB. target remote..-- TCP ( )., `/dev/ttyb' : target remote /dev/ttyb

116 TCP, host:port., manyfarms 2828 : target remote manyfarms:2828 step continue., detach. GDB, (C-C), GDB.., GDB : Interrupted while waiting for the program. Give up (and stop debugging it)? (y or n) y, GDB. (, `target remote'.) n, GDB waiting. GDB stub. GDB GDB `remote.c'.,,. ( stub, : stub. `sparcstub.c' ),.--,,.

117 GDB checksum. `$' `#' 2 checksum. $packet info#checksum checksum packet info modulo 256..;, `+'( ) `-'( ) (GDB), ( debugging stub)....(`gdb/remote.c.'.) g CPU. G CPU. maddr,count addr count. Maddr, count:... addr count. c caddr.( addr ) s saddr addr step. k.?. GDB, debugging stub POSIX CPU trap. T GDB stepping breakpoint stub. stepped

118 . GDB. GDB., set remotedebug. GDB. GDB. set remotedebug off show remotedebug. gdbserver gdbserver Unix target remote GDB. -- debugging stub. gdbserver debugging stub. GDB OS., GDB gdbserver GDB., gdbserver. GDB. GDB. gdbserver., real-time, real-time, -. gdbserver. GDB gdbserver GDB TCP.. gdbserver. strip. GDB., GDB ; ;. : target> gdbserver comm program [ args... ] comm ( ) TCP., `foo.txt' Emacs

119 `/dev/com1' GDB : target> gdbserver /dev/com1 emacs foo.txt gdbserver GDB. TCP : target> gdbserver host:2345 emacs foo.txt TCP GDB. `host:2345' gdbserver `host' TCP 2345 TCP. (, `host'.) TCP. (, 23 telnet.) (3) GDB target remote. GDB, strip., GDB. GDB,. ( 9600 bps `--baud'.), gdbserver target remote. host:port TCP. : (gdb) target remote /dev/ttyb `/dev/ttyb'. (gdb) target remote the-target:2345 `the-target' 2345 TCP. TCP, target remote gdbserver.. `Connection refused'. gdbserve.nlm gdbserve.nlm NetWare target remote GDB. GDB gdbserve.nlm GDB,.,

120 . gdbserve.nlm. strip. GDB., GDB ; ;. : load gdbserve [ BOARD=board ] [ PORT=port ] [ BAUD=baud ] program [ args... ] board port ; baud baud. port node 0 baud 9600 bps., `foo.txt' Emacs bps 1 GDB : load gdbserve BOARD=1 PORT=2 BAUD=19200 emacs foo.txt GDB, strip. GDB. GDB,. ( 9600 bps `--baud'.), gdbserve.nlm target remote. (`/dev/ttyb', ). : (gdb) target remote /dev/ttyb `/dev/ttyb'. i960 (Nindy) GDB Nindy Intel 960 ROM Monitor. GDB Nindy Intel 960, 960 GDB. o o o, Nindy, ; ; GDB target.. Nindy

121 gdb, GDB.: Attach /dev/ttynn -- specify NN, or "quit" to quit: (`/dev/tty' )., Nindy. Nindy, target. (.) Nindy Nindy-960 GDB.: -r port. GDB Intel 960. port ; (e.g. `-r /dev/ttya'), `/dev' (e.g. `-r ttya'), tty (e.g. `-r a'). -O (0 "O".) GDB "old" Nindy. GDB Intel 960. : `-O',,. GDB.. -brk GDB Nindy BREAK. : ;. `-b'.

122 Nindy reset Nindy, "break" ; break ( ). AMD29K UDI GDB a29k AMD UDI("Universal Debugger Interface"). MiniMON AMD, AMD MONTIP. AMD UDI-conformant a29k ISSTIP GDB. target udi keyword a29k UDI. keyword AMD `udi_soc'. a29k keyword. `udi_soc', `UDICONF'. AMD29K EBMON AMD DOS EBMON PC a29k., "EB29K". Unix GDB EB29K, PC. PC `COM1' `/dev/ttya'. PC DOS PC.: C:\> MODE com1:9600,n,8,1,none --MS DOS PC 9600 bps,, 8, 1 stop "retry".; Unix.

123 PC Unix, DOS.: C:\> CTTY com1 (, DOS, CTTY con --. `COM1' ) Unix, PC tip cu ;, cu -s l /dev/ttya cu. tip, : tip /dev/ttya tip `/dev/ttya'. "remote" tip.-- `/etc/remote'. tip cu, DOS a29k. PC EBMON.(EB29K AMD.) EBMON. EBMON `#'. C:\> G: G:\> CD \usr\joe\work29k G:\USR\JOE\WORK29K> EBMON Am29000 PC Coprocessor Board Monitor, version Copyright 1990 Advanced Micro Devices, Inc. Written by Gibbons and Associates, Inc. Enter '?' or 'H' for help

124 PC Coprocessor Type = EB29K I/O Base = 0x208 Memory Base = 0xd0000 Data Memory Size = 2048KB Available I-RAM Range = 0x8000 to 0x1fffff Available D-RAM Range = 0x to 0x801fffff PageSize = 0x400 Register Stack Size = 0x800 Memory Stack Size = 0x1800 CPU PRL = 0x3 Am29027 Available = No Byte Write Available = Yes # ~. cu tip (EBMON ~. ). EBMON GDB., 29k PC ; PC/NFS PC "drive G:". PC/NFS, PC 29k -- - ; GDB. EB29K, 29k cd GDB -- 29k : cd /usr/joe/work29k gdb myfoo target : target amd-eb /dev/ttya 9600 MYFOO

125 , `myfoo'. target amd-eb DOS., MYFOO, DOS Unix., breakpoint ; 29k, GDB run., GDB detach. PC, GDB EBMON tip cu. EBMON q. DOS. DOS CTTY con. tip cu ~.. target amd-eb `eb.log'. `eb.log' EBMON. `tail -f' EBMON PC. Tandem ST2000 GDB ST2000. ST2000, : To connect your ST2000 to the host system, see the manufacturer's manual. Once the ST2000 is physically attached, you can run: target st2000 dev speed. dev `/dev/ttya', ST2000. hostname:portnumber TCP (, concentrator ) dev. load attach ; ST2000. GDB

126 ( ). GDB ST2000.: st2000 command command STDBUG.. connect STDBUG. STDBUG, GDB : RET~.(Return, tilde, periold) RET~Cd(Return, tiilde, control-d) GDB VxWorks GDB Unix VxWorks spawn. VxWorks spawn. GDB Unix VxWorks. gdb. ( GDB vxgdb.) VxWorks-timeout args VxWorks vxworks-timeout. args GDB rpc. VxWorks thin. VxWorks ; VxWorks. To use GDB with VxWorks, you must rebuild your VxWorks kernel to include the remote debugging interface routines in the VxWorks library `rdb.a'. To do this, define INCLUDE_RDB in the VxWorks configuration file `configall.h' and rebuild your VxWorks kernel. The resulting kernel contains `rdb.a', and spawns the source debugging task trdbtask when VxWorks is booted. For more information on configuring and remaking VxWorks, see the manufacturer' s manual. VxWorks `rdb.a' GDB, GDB. Unix, gdb.(, vxgdb)

강의10

강의10 Computer Programming gdb and awk 12 th Lecture 김현철컴퓨터공학부서울대학교 순서 C Compiler and Linker 보충 Static vs Shared Libraries ( 계속 ) gdb awk Q&A Shared vs Static Libraries ( 계속 ) Advantage of Using Libraries Reduced

More information

Microsoft PowerPoint - System Programming Lab Week1.ppt [호환 모드]

Microsoft PowerPoint - System Programming Lab Week1.ppt [호환 모드] System Programming Lab Week 1: Basic Skills for Practice Contents vi Editor 사용법 GCC 컴파일러사용법 Makefile 사용법 GDB 사용법 VI Editor Usage vi 모드 입력모드 : 실제문서를편집하는모드. 명령모드 : 키입력이바로명령이되는모드로서쓴내용을삭제하거나, 복사할때사용. ex 명령모드

More information

hlogin2

hlogin2 0x02. Stack Corruption off-limit Kernel Stack libc Heap BSS Data Code off-limit Kernel Kernel : OS Stack libc Heap BSS Data Code Stack : libc : Heap : BSS, Data : bss Code : off-limit Kernel Kernel : OS

More information

Sena Technologies, Inc. HelloDevice Super 1.1.0

Sena Technologies, Inc. HelloDevice Super 1.1.0 HelloDevice Super 110 Copyright 1998-2005, All rights reserved HelloDevice 210 ()137-130 Tel: (02) 573-5422 Fax: (02) 573-7710 E-Mail: support@senacom Website: http://wwwsenacom Revision history Revision

More information

6주차.key

6주차.key 6, Process concept A program in execution Program code PCB (process control block) Program counter, registers, etc. Stack Heap Data section => global variable Process in memory Process state New Running

More information

SRC PLUS 제어기 MANUAL

SRC PLUS 제어기 MANUAL ,,,, DE FIN E I N T R E A L L O C E N D SU B E N D S U B M O TIO

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 2... ( ). ( ). @ vs. logic data method variable behavior attribute method field Flow (Type), ( ) member @ () : C program Method A ( ) Method B ( ) Method C () program : Java, C++, C# data @ Program

More information

프로그램을 학교 등지에서 조금이라도 배운 사람들을 위한 프로그래밍 노트 입니다. 저 역시 그 사람들 중 하나 입니다. 중고등학교 시절 학교 도서관, 새로 생긴 시립 도서관 등을 다니며 책을 보 고 정리하며 어느정도 독학으르 공부하긴 했지만, 자주 안하다 보면 금방 잊어

프로그램을 학교 등지에서 조금이라도 배운 사람들을 위한 프로그래밍 노트 입니다. 저 역시 그 사람들 중 하나 입니다. 중고등학교 시절 학교 도서관, 새로 생긴 시립 도서관 등을 다니며 책을 보 고 정리하며 어느정도 독학으르 공부하긴 했지만, 자주 안하다 보면 금방 잊어 개나리 연구소 C 언어 노트 (tyback.egloos.com) 프로그램을 학교 등지에서 조금이라도 배운 사람들을 위한 프로그래밍 노트 입니다. 저 역시 그 사람들 중 하나 입니다. 중고등학교 시절 학교 도서관, 새로 생긴 시립 도서관 등을 다니며 책을 보 고 정리하며 어느정도 독학으르 공부하긴 했지만, 자주 안하다 보면 금방 잊어먹고 하더라구요. 그래서,

More information

MPLAB C18 C

MPLAB C18 C MPLAB C18 C MPLAB C18 MPLAB C18 C MPLAB C18 C #define START, c:\mcc18 errorlevel{0 1} char isascii(char ch); list[list_optioin,list_option] OK, Cancel , MPLAB IDE User s Guide MPLAB C18 C

More information

untitled

untitled Push... 2 Push... 4 Push... 5 Push... 13 Push... 15 1 FORCS Co., LTD A Leader of Enterprise e-business Solution Push (Daemon ), Push Push Observer. Push., Observer. Session. Thread Thread. Observer ID.

More information

Remote UI Guide

Remote UI Guide Remote UI KOR Remote UI Remote UI PDF Adobe Reader/Adobe Acrobat Reader. Adobe Reader/Adobe Acrobat Reader Adobe Systems Incorporated.. Canon. Remote UI GIF Adobe Systems Incorporated Photoshop. ..........................................................

More information

vi 사용법

vi 사용법 유닉스프로그래밍및실습 gdb 사용법 fprintf 이용 단순디버깅 확인하고자하는코드부분에 fprintf(stderr, ) 를이용하여그지점까지도달했는지여부와관심있는변수의값을확인 여러유형의단순한문제를확인할수있음 그러나자세히살펴보기위해서는디버깅툴필요 int main(void) { int count; long large_no; double real_no; init_vars();

More information

MAX+plus II Getting Started - 무작정따라하기

MAX+plus II Getting Started - 무작정따라하기 무작정 따라하기 2001 10 4 / Version 20-2 0 MAX+plus II Digital, Schematic Capture MAX+plus II, IC, CPLD FPGA (Logic) ALTERA PLD FLEX10K Series EPF10K10QC208-4 MAX+plus II Project, Schematic, Design Compilation,

More information

C 프로그래밍 언어 입문 C 프로그래밍 언어 입문 김명호저 숭실대학교 출판국 머리말..... C, C++, Java, Fortran, Python, Ruby,.. C. C 1972. 40 C.. C. 1999 C99. C99. C. C. C., kmh ssu.ac.kr.. ,. 2013 12 Contents 1장 프로그래밍 시작 1.1 C 10 1.2 12

More information

CD-RW_Advanced.PDF

CD-RW_Advanced.PDF HP CD-Writer Program User Guide - - Ver. 2.0 HP CD-RW Adaptec Easy CD Creator Copier, Direct CD. HP CD-RW,. Easy CD Creator 3.5C, Direct CD 3.0., HP. HP CD-RW TEAM ( 02-3270-0803 ) < > 1. CD...3 CD...5

More information

휠세미나3 ver0.4

휠세미나3 ver0.4 andromeda@sparcs:/$ ls -al dev/sda* brw-rw---- 1 root disk 8, 0 2014-06-09 18:43 dev/sda brw-rw---- 1 root disk 8, 1 2014-06-09 18:43 dev/sda1 brw-rw---- 1 root disk 8, 2 2014-06-09 18:43 dev/sda2 andromeda@sparcs:/$

More information

Microsoft Word - FS_ZigBee_Manual_V1.3.docx

Microsoft Word - FS_ZigBee_Manual_V1.3.docx FirmSYS Zigbee etworks Kit User Manual FS-ZK500 Rev. 2008/05 Page 1 of 26 Version 1.3 목 차 1. 제품구성... 3 2. 개요... 4 3. 네트워크 설명... 5 4. 호스트/노드 설명... 6 네트워크 구성... 6 5. 모바일 태그 설명... 8 6. 프로토콜 설명... 9 프로토콜 목록...

More information

PRO1_09E [읽기 전용]

PRO1_09E [읽기 전용] Siemens AG 1999 All rights reserved File: PRO1_09E1 Information and - ( ) 2 3 4 5 Monitor/Modify Variables" 6 7 8 9 10 11 CPU 12 Stop 13 (Forcing) 14 (1) 15 (2) 16 : 17 : Stop 18 : 19 : (Forcing) 20 :

More information

Copyright 2012, Oracle and/or its affiliates. All rights reserved.,.,,,,,,,,,,,,.,...,. U.S. GOVERNMENT END USERS. Oracle programs, including any oper

Copyright 2012, Oracle and/or its affiliates. All rights reserved.,.,,,,,,,,,,,,.,...,. U.S. GOVERNMENT END USERS. Oracle programs, including any oper Windows Netra Blade X3-2B( Sun Netra X6270 M3 Blade) : E37790 01 2012 9 Copyright 2012, Oracle and/or its affiliates. All rights reserved.,.,,,,,,,,,,,,.,...,. U.S. GOVERNMENT END USERS. Oracle programs,

More information

Deok9_Exploit Technique

Deok9_Exploit Technique Exploit Technique CodeEngn Co-Administrator!!! and Team Sur3x5F Member Nick : Deok9 E-mail : DDeok9@gmail.com HomePage : http://deok9.sur3x5f.org Twitter :@DDeok9 > 1. Shell Code 2. Security

More information

1

1 1 1....6 1.1...6 2. Java Architecture...7 2.1 2SDK(Software Development Kit)...8 2.2 JRE(Java Runtime Environment)...9 2.3 (Java Virtual Machine, JVM)...10 2.4 JVM...11 2.5 (runtime)jvm...12 2.5.1 2.5.2

More information

Chap04(Signals and Sessions).PDF

Chap04(Signals and Sessions).PDF Signals and Session Management 2002 2 Hyun-Ju Park (Signal)? Introduction (1) mechanism events : asynchronous events - interrupt signal from users : synchronous events - exceptions (accessing an illegal

More information

10X56_NWG_KOR.indd

10X56_NWG_KOR.indd 디지털 프로젝터 X56 네트워크 가이드 이 제품을 구입해 주셔서 감사합니다. 본 설명서는 네트워크 기능 만을 설명하기 위한 것입니다. 본 제품을 올바르게 사 용하려면 이 취급절명저와 본 제품의 다른 취급절명저를 참조하시기 바랍니다. 중요한 주의사항 이 제품을 사용하기 전에 먼저 이 제품에 대한 모든 설명서를 잘 읽어 보십시오. 읽은 뒤에는 나중에 필요할 때

More information

untitled

untitled CAN BUS RS232 Line Ethernet CAN H/W FIFO RS232 FIFO IP ARP CAN S/W FIFO TERMINAL Emulator COMMAND Interpreter ICMP TCP UDP PROTOCOL Converter TELNET DHCP C2E SW1 CAN RS232 RJ45 Power

More information

K7VT2_QIG_v3

K7VT2_QIG_v3 1......... 2 3..\ 4 5 [R] : Enter Raid setup utility 6 Press[A]keytocreateRAID RAID Type: JBOD RAID 0 RAID 1: 2 7 " RAID 0 Auto Create Manual Create: 2 RAID 0 Block Size: 16K 32K

More information

(Asynchronous Mode) ( 1, 5~8, 1~2) & (Parity) 1 ; * S erial Port (BIOS INT 14H) - 1 -

(Asynchronous Mode) ( 1, 5~8, 1~2) & (Parity) 1 ; * S erial Port (BIOS INT 14H) - 1 - (Asynchronous Mode) - - - ( 1, 5~8, 1~2) & (Parity) 1 ; * S erial Port (BIOS INT 14H) - 1 - UART (Univ ers al As y nchronous Receiver / T rans mitter) 8250A 8250A { COM1(3F8H). - Line Control Register

More information

Microsoft PowerPoint - PL_03-04.pptx

Microsoft PowerPoint - PL_03-04.pptx Copyright, 2011 H. Y. Kwak, Jeju National University. Kwak, Ho-Young http://cybertec.cheju.ac.kr Contents 1 프로그래밍 언어 소개 2 언어의 변천 3 프로그래밍 언어 설계 4 프로그래밍 언어의 구문과 구현 기법 5 6 7 컴파일러 개요 변수, 바인딩, 식 및 제어문 자료형 8

More information

T100MD+

T100MD+ User s Manual 100% ) ( x b a a + 1 RX+ TX+ DTR GND TX+ RX+ DTR GND RX+ TX+ DTR GND DSR RX+ TX+ DTR GND DSR [ DCE TYPE ] [ DCE TYPE ] RS232 Format Baud 1 T100MD+

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 (Host) set up : Linux Backend RS-232, Ethernet, parallel(jtag) Host terminal Target terminal : monitor (Minicom) JTAG Cross compiler Boot loader Pentium Redhat 9.0 Serial port Serial cross cable Ethernet

More information

PRO1_04E [읽기 전용]

PRO1_04E [읽기 전용] Siemens AG 1999 All rights reserved File: PRO1_04E1 Information and S7-300 2 S7-400 3 EPROM / 4 5 6 HW Config 7 8 9 CPU 10 CPU : 11 CPU : 12 CPU : 13 CPU : / 14 CPU : 15 CPU : / 16 HW 17 HW PG 18 SIMATIC

More information

DE1-SoC Board

DE1-SoC Board 실습 1 개발환경 DE1-SoC Board Design Tools - Installation Download & Install Quartus Prime Lite Edition http://www.altera.com/ Quartus Prime (includes Nios II EDS) Nios II Embedded Design Suite (EDS) is automatically

More information

Solaris Express Developer Edition

Solaris Express Developer Edition Solaris Express Developer Edition : 2008 1 Solaris TM Express Developer Edition Solaris OS. Sun / Solaris, Java, Web 2.0,,. Developer Solaris Express Developer Edition System Requirements. 768MB. SPARC

More information

OPCTalk for Hitachi Ethernet 1 2. Path. DCOMwindow NT/2000 network server. Winsock update win95. . . 3 Excel CSV. Update Background Thread Client Command Queue Size Client Dynamic Scan Block Block

More information

초보자를 위한 C++

초보자를 위한 C++ C++. 24,,,,, C++ C++.,..,., ( ). /. ( 4 ) ( ).. C++., C++ C++. C++., 24 C++. C? C++ C C, C++ (Stroustrup) C++, C C++. C. C 24.,. C. C+ +?. X C++.. COBOL COBOL COBOL., C++. Java C# C++, C++. C++. Java C#

More information

K&R2 Reference Manual 번역본

K&R2 Reference Manual 번역본 typewriter structunion struct union if-else if if else if if else if if if if else else ; auto register static extern typedef void char short int long float double signed unsigned const volatile { } struct

More information

PowerChute Personal Edition v3.1.0 에이전트 사용 설명서

PowerChute Personal Edition v3.1.0 에이전트 사용 설명서 PowerChute Personal Edition v3.1.0 990-3772D-019 4/2019 Schneider Electric IT Corporation Schneider Electric IT Corporation.. Schneider Electric IT Corporation,,,.,. Schneider Electric IT Corporation..

More information

gdb 사용법 Debugging Debug라는말은 bug를없앤다는말이다. Bug란, 컴퓨터프로그램상의논리적오류를말하며, 이것을찾아해결하는과정이바로, debugging이다. 초기컴퓨터들은실제벌레가컴퓨터에들어가서오작동을일으키는경우가있었다고하며, 여기서 debug 이라는말이

gdb 사용법 Debugging Debug라는말은 bug를없앤다는말이다. Bug란, 컴퓨터프로그램상의논리적오류를말하며, 이것을찾아해결하는과정이바로, debugging이다. 초기컴퓨터들은실제벌레가컴퓨터에들어가서오작동을일으키는경우가있었다고하며, 여기서 debug 이라는말이 gdb 사용법 Debugging Debug라는말은 bug를없앤다는말이다. Bug란, 컴퓨터프로그램상의논리적오류를말하며, 이것을찾아해결하는과정이바로, debugging이다. 초기컴퓨터들은실제벌레가컴퓨터에들어가서오작동을일으키는경우가있었다고하며, 여기서 debug 이라는말이나왔다한다. Debugging을하는가장원초적방법은프로그램소스를눈으로따라가며, 머리로실행시켜논리적오류를찾아내는것이다.

More information

목차 제 1 장 inexio Touch Driver소개... 3 1.1 소개 및 주요 기능... 3 1.2 제품사양... 4 제 2 장 설치 및 실행... 5 2.1 설치 시 주의사항... 5 2.2 설치 권고 사양... 5 2.3 프로그램 설치... 6 2.4 하드웨

목차 제 1 장 inexio Touch Driver소개... 3 1.1 소개 및 주요 기능... 3 1.2 제품사양... 4 제 2 장 설치 및 실행... 5 2.1 설치 시 주의사항... 5 2.2 설치 권고 사양... 5 2.3 프로그램 설치... 6 2.4 하드웨 최종 수정일: 2010.01.15 inexio 적외선 터치스크린 사용 설명서 [Notes] 본 매뉴얼의 정보는 예고 없이 변경될 수 있으며 사용된 이미지가 실제와 다를 수 있습니다. 1 목차 제 1 장 inexio Touch Driver소개... 3 1.1 소개 및 주요 기능... 3 1.2 제품사양... 4 제 2 장 설치 및 실행... 5 2.1 설치 시

More information

02 C h a p t e r Java

02 C h a p t e r Java 02 C h a p t e r Java Bioinformatics in J a va,, 2 1,,,, C++, Python, (Java),,, (http://wwwbiojavaorg),, 13, 3D GUI,,, (Java programming language) (Sun Microsystems) 1995 1990 (green project) TV 22 CHAPTER

More information

ESP1ºÎ-04

ESP1ºÎ-04 Chapter 04 4.1..,..,.,.,.,. RTOS(Real-Time Operating System)., RTOS.. VxWorks(www.windriver.com), psos(www.windriver.com), VRTX(www.mento. com), QNX(www.qnx.com), OSE(www.ose.com), Nucleus(www.atinudclus.

More information

13주-14주proc.PDF

13주-14주proc.PDF 12 : Pro*C/C++ 1 2 Embeded SQL 3 PRO *C 31 C/C++ PRO *C NOT! NOT AND && AND OR OR EQUAL == = SQL,,, Embeded SQL SQL 32 Pro*C C SQL Pro*C C, C Pro*C, C C 321, C char : char[n] : n int, short, long : float

More information

PCServerMgmt7

PCServerMgmt7 Web Windows NT/2000 Server DP&NM Lab 1 Contents 2 Windows NT Service Provider Management Application Web UI 3 . PC,, Client/Server Network 4 (1),,, PC Mainframe PC Backbone Server TCP/IP DCS PLC Network

More information

IDA 5.x Manual 07.02.hwp

IDA 5.x Manual 07.02.hwp IDA 5.x Manual - Manual 01 - 영리를 목적으로 한 곳에서 배포금지 Last Update 2007. 02 이강석 / certlab@gmail.com 어셈블리어 개발자 그룹 :: 어셈러브 http://www.asmlove.co.kr - 1 - IDA Pro 는 Disassembler 프로그램입니다. 기계어로 되어있는 실행파일을 어셈블리언어

More information

슬라이드 제목 없음

슬라이드 제목 없음 < > Target cross compiler Target code Target Software Development Kit (SDK) T-Appl T-Appl T-VM Cross downloader Cross debugger Case 1) Serial line Case 2) LAN line LAN line T-OS Target debugger Host System

More information

목차 BUG offline replicator 에서유효하지않은로그를읽을경우비정상종료할수있다... 3 BUG 각 partition 이서로다른 tablespace 를가지고, column type 이 CLOB 이며, 해당 table 을 truncate

목차 BUG offline replicator 에서유효하지않은로그를읽을경우비정상종료할수있다... 3 BUG 각 partition 이서로다른 tablespace 를가지고, column type 이 CLOB 이며, 해당 table 을 truncate ALTIBASE HDB 6.1.1.5.6 Patch Notes 목차 BUG-39240 offline replicator 에서유효하지않은로그를읽을경우비정상종료할수있다... 3 BUG-41443 각 partition 이서로다른 tablespace 를가지고, column type 이 CLOB 이며, 해당 table 을 truncate 한뒤, hash partition

More information

Copyright 2012, Oracle and/or its affiliates. All rights reserved.,,,,,,,,,,,,,.,..., U.S. GOVERNMENT END USERS. Oracle programs, including any operat

Copyright 2012, Oracle and/or its affiliates. All rights reserved.,,,,,,,,,,,,,.,..., U.S. GOVERNMENT END USERS. Oracle programs, including any operat Sun Server X3-2( Sun Fire X4170 M3) Oracle Solaris : E35482 01 2012 9 Copyright 2012, Oracle and/or its affiliates. All rights reserved.,,,,,,,,,,,,,.,..., U.S. GOVERNMENT END USERS. Oracle programs, including

More information

untitled

untitled 1... 2 System... 3... 3.1... 3.2... 3.3... 4... 4.1... 5... 5.1... 5.2... 5.2.1... 5.3... 5.3.1 Modbus-TCP... 5.3.2 Modbus-RTU... 5.3.3 LS485... 5.4... 5.5... 5.5.1... 5.5.2... 5.6... 5.6.1... 5.6.2...

More information

LXR 설치 및 사용법.doc

LXR 설치 및 사용법.doc Installation of LXR (Linux Cross-Reference) for Source Code Reference Code Reference LXR : 2002512( ), : 1/1 1 3 2 LXR 3 21 LXR 3 22 LXR 221 LXR 3 222 LXR 3 3 23 LXR lxrconf 4 24 241 httpdconf 6 242 htaccess

More information

0.1-6

0.1-6 HP-19037 1 EMP400 2 3 POWER EMP400 4 5 6 7 ALARM CN2 8 9 CN3 CN1 10 24V DC CN4 TB1 11 12 Copyright ORIENTAL MOTOR CO., LTD. 2001 2 1 2 3 4 5 1.1...1-2 1.2... 1-2 2.1... 2-2 2.2... 2-4 3.1... 3-2 3.2...

More information

Chap7.PDF

Chap7.PDF Chapter 7 The SUN Intranet Data Warehouse: Architecture and Tools All rights reserved 1 Intranet Data Warehouse : Distributed Networking Computing Peer-to-peer Peer-to-peer:,. C/S Microsoft ActiveX DCOM(Distributed

More information

CPX-E-EC_BES_C_ _ k1

CPX-E-EC_BES_C_ _ k1 CPX-E CPX-E-EC EtherCAT 8071155 2017-07 [8075310] CPX-E-EC CPX-E-EC-KO EtherCAT, TwinCAT (). :, 2 Festo CPX-E-EC-KO 2017-07 CPX-E-EC 1... 4 1.1... 4 1.2... 4 1.3... 4 1.4... 5 1.5... 5 2... 6 2.1... 6

More information

C# Programming Guide - Types

C# Programming Guide - Types C# Programming Guide - Types 최도경 lifeisforu@wemade.com 이문서는 MSDN 의 Types 를요약하고보충한것입니다. http://msdn.microsoft.com/enus/library/ms173104(v=vs.100).aspx Types, Variables, and Values C# 은 type 에민감한언어이다. 모든

More information

chap10.PDF

chap10.PDF 10 C++ Hello!! C C C++ C++ C++ 2 C++ 1980 Bell Bjarne Stroustrup C++ C C++ C, C++ C C 3 C C++ (prototype) (type checking) C C++ : C++ 4 C C++ (prototype) (type checking) [ 10-1] #include extern

More information

歯메뉴얼v2.04.doc

歯메뉴얼v2.04.doc 1 SV - ih.. 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 - - - 23 24 R S T G U V W P1 P2 N R S T G U V W P1 P2 N R S T G U V W P1 P2 N 25 26 DC REACTOR(OPTION) DB UNIT(OPTION) 3 φ 220/440 V 50/60

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 3 if, if else, if else if, switch case for, while, do while break, continue : System.in, args, JOptionPane for (,, ) @ vs. logic data method variable Data Data Flow (Type), ( ) @ Member field

More information

歯처리.PDF

歯처리.PDF E06 (Exception) 1 (Report) : { $I- } { I/O } Assign(InFile, InputName); Reset(InFile); { $I+ } { I/O } if IOResult 0 then { }; (Exception) 2 2 (Settling State) Post OnValidate BeforePost Post Settling

More information

untitled

untitled Embedded System Lab. II Embedded System Lab. II 2 RTOS Hard Real-Time vs Soft Real-Time RTOS Real-Time, Real-Time RTOS General purpose system OS H/W RTOS H/W task Hard Real-Time Real-Time System, Hard

More information

The_IDA_Pro_Book

The_IDA_Pro_Book The IDA Pro Book Hacking Group OVERTIME force (forceteam01@gmail.com) GETTING STARTED WITH IDA IDA New : Go : IDA Previous : IDA File File -> Open Processor type : Loading Segment and Loading Offset x86

More information

GNU/Linux 1, GNU/Linux MS-DOS LOADLIN DOS-MBR LILO DOS-MBR LILO... 6

GNU/Linux 1, GNU/Linux MS-DOS LOADLIN DOS-MBR LILO DOS-MBR LILO... 6 GNU/ 1, qkim@pecetrirekr GNU/ 1 1 2 2 3 4 31 MS-DOS 5 32 LOADLIN 5 33 DOS- LILO 6 34 DOS- 6 35 LILO 6 4 7 41 BIOS 7 42 8 43 8 44 8 45 9 46 9 47 2 9 5 X86 GNU/LINUX 10 1 GNU/, GNU/ 2, 3, 1 : V 11, 2001

More information

chap7.key

chap7.key 1 7 C 2 7.1 C (System Calls) Unix UNIX man Section 2 C. C (Library Functions) C 1975 Dennis Ritchie ANSI C Standard Library 3 (system call). 4 C?... 5 C (text file), C. (binary file). 6 C 1. : fopen( )

More information

untitled

untitled Step Motor Device Driver Embedded System Lab. II Step Motor Step Motor Step Motor source Embedded System Lab. II 2 open loop, : : Pulse, 1 Pulse,, -, 1 +5%, step Step Motor (2),, Embedded System Lab. II

More information

untitled

untitled PowerBuilder 連 Microsoft SQL Server database PB10.0 PB9.0 若 Microsoft SQL Server 料 database Profile MSS 料 (Microsoft SQL Server database interface) 行了 PB10.0 了 Sybase 不 Microsoft 料 了 SQL Server 料 PB10.0

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 DEVELOPMENT ENVIRONMENT 2 MAKE Jo, Heeseung MAKE Definition make is utility to maintain groups of programs Object If some file is modified, make detects it and update files related with modified one 2

More information

Sena Device Server Serial/IP TM Version

Sena Device Server Serial/IP TM Version Sena Device Server Serial/IP TM Version 1.0.0 2005. 3. 7. Release Note Revision Date Name Description V1.0.0 2005-03-7 HJ Jeon Serial/IP 4.3.2 ( ) 210 137-130, : (02) 573-5422 : (02) 573-7710 email: support@sena.com

More information

<4D F736F F F696E74202D20B8B6C0CCC5A9B7CEC7C1B7CEBCBCBCAD202839C1D6C2F7207E203135C1D6C2F >

<4D F736F F F696E74202D20B8B6C0CCC5A9B7CEC7C1B7CEBCBCBCAD202839C1D6C2F7207E203135C1D6C2F > 10주차 문자 LCD 의인터페이스회로및구동함수 Next-Generation Networks Lab. 5. 16x2 CLCD 모듈 (HY-1602H-803) 그림 11-18 19 핀설명표 11-11 번호 분류 핀이름 레벨 (V) 기능 1 V SS or GND 0 GND 전원 2 V Power DD or V CC +5 CLCD 구동전원 3 V 0 - CLCD 명암조절

More information

Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Cras

Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Cras Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Crash Unity SDK... Log & Crash Search. - Unity3D v4.0 ios

More information

歯9장.PDF

歯9장.PDF 9 Hello!! C printf() scanf() getchar() putchar() gets() puts() fopen() fclose() fprintf() fscant() fgetc() fputs() fgets() gputs() fread() fwrite() fseek() ftell() I/O 2 (stream) C (text stream) : `/n'

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 Development Environment 2 Jo, Heeseung make make Definition make is utility to maintain groups of programs Object If some file is modified, make detects it and update files related with modified one It

More information

untitled

untitled - -, (insert) (delete) - - (insert) (delete) (top ) - - (insert) (rear) (delete) (front) A A B top A B C top push(a) push(b) push(c) A B top pop() top A B D push(d) top #define MAX_STACK_SIZE 100 int

More information

SIGPLwinterschool2012

SIGPLwinterschool2012 1994 1992 2001 2008 2002 Semantics Engineering with PLT Redex Matthias Felleisen, Robert Bruce Findler and Matthew Flatt 2009 Text David A. Schmidt EXPRESSION E ::= N ( E1 O E2 ) OPERATOR O ::=

More information

歯FDA6000COP.PDF

歯FDA6000COP.PDF OPERATION MANUAL AC Servo Drive FDA6000COP [OPERATION UNIT] Ver 1.0 (Soft. Ver. 8.00 ~) FDA6000C Series Servo Drive OTIS LG 1. 1.1 OPERATION UNIT FDA6000COP. UNIT, FDA6000COP,,,. 1.1.1 UP DOWN ENTER 1.1.2

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 4 (Object) (Class) (Instance) (Method) (Constructor) Memory 1 UML 1 @ & 1 (Real World) (Software World) @ &.. () () @ & 2 (Real World) (Software World) OOA/ Modeling Abstraction Instantiation

More information

APOGEE Insight_KR_Base_3P11

APOGEE Insight_KR_Base_3P11 Technical Specification Sheet Document No. 149-332P25 September, 2010 Insight 3.11 Base Workstation 그림 1. Insight Base 메인메뉴 Insight Base Insight Insight Base, Insight Base Insight Base Insight Windows

More information

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O Orange for ORACLE V4.0 Installation Guide ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE...1 1....2 1.1...2 1.2...2 1.2.1...2 1.2.2 (Online Upgrade)...11 1.3 ORANGE CONFIGURATION ADMIN...12 1.3.1 Orange Configuration

More information

H3050(aap)

H3050(aap) USB Windows 7/ Vista 2 Windows XP English 1 2 3 4 Installation A. Headset B. Transmitter C. USB charging cable D. 3.5mm to USB audio cable - Before using the headset needs to be fully charged. -Connect

More information

Orcad Capture 9.x

Orcad Capture 9.x OrCAD Capture Workbook (Ver 10.xx) 0 Capture 1 2 3 Capture for window 4.opj ( OrCAD Project file) Design file Programe link file..dsn (OrCAD Design file) Design file..olb (OrCAD Library file) file..upd

More information

10주차.key

10주차.key 10, Process synchronization (concurrently) ( ) => critical section ( ) / =>, A, B / Race condition int counter; Process A { counter++; } Process B { counter ;.. } counter++ register1 = counter register1

More information

PRO1_02E [읽기 전용]

PRO1_02E [읽기 전용] Siemens AG 1999 All rights reserved File: PRO1_02E1 Information and 2 STEP 7 3 4 5 6 STEP 7 7 / 8 9 10 S7 11 IS7 12 STEP 7 13 STEP 7 14 15 : 16 : S7 17 : S7 18 : CPU 19 1 OB1 FB21 I10 I11 Q40 Siemens AG

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 KeyPad Device Control - Device driver Jo, Heeseung HBE-SM5-S4210 에는 16 개의 Tack Switch 를사용하여 4 행 4 열의 Keypad 가장착 4x4 Keypad 2 KeyPad 를제어하기위하여 FPGA 내부에 KeyPad controller 가구현 KeyPad controller 16bit 로구성된

More information

61 62 63 64 234 235 p r i n t f ( % 5 d :, i+1); g e t s ( s t u d e n t _ n a m e [ i ] ) ; if (student_name[i][0] == \ 0 ) i = MAX; p r i n t f (\ n :\ n ); 6 1 for (i = 0; student_name[i][0]!= \ 0&&

More information

solution map_....

solution map_.... SOLUTION BROCHURE RELIABLE STORAGE SOLUTIONS ETERNUS FOR RELIABILITY AND AVAILABILITY PROTECT YOUR DATA AND SUPPORT BUSINESS FLEXIBILITY WITH FUJITSU STORAGE SOLUTIONS kr.fujitsu.com INDEX 1. Storage System

More information

4. #include <stdio.h> #include <stdlib.h> int main() { functiona(); } void functiona() { printf("hihi\n"); } warning: conflicting types for functiona

4. #include <stdio.h> #include <stdlib.h> int main() { functiona(); } void functiona() { printf(hihi\n); } warning: conflicting types for functiona 이름 : 학번 : A. True or False: 각각항목마다 True 인지 False 인지적으세요. 1. (Python:) randint 함수를사용하려면, random 모듈을 import 해야한다. 2. (Python:) '' (single quote) 는한글자를표현할때, (double quote) 는문자열을표현할때사용한다. B. 다음에러를수정하는방법을적으세요.

More information

OCaml

OCaml OCaml 2009.. (khheo@ropas.snu.ac.kr) 1 ML 2 ML OCaml INRIA, France SML Bell lab. & Princeton, USA nml SNU/KAIST, KOREA 3 4 (let) (* ex1.ml *) let a = 10 let add x y = x + y (* ex2.ml *) let sumofsquare

More information

Modern Javascript

Modern Javascript ES6 - Arrow Function Class Template String Destructuring Default, Rest, Spread let, const for..of Promises Module System Map, Set * Generator * Symbol * * https://babeljs.io/ Babel is a JavaScript compiler.

More information

1217 WebTrafMon II

1217 WebTrafMon II (1/28) (2/28) (10 Mbps ) Video, Audio. (3/28) 10 ~ 15 ( : telnet, ftp ),, (4/28) UDP/TCP (5/28) centralized environment packet header information analysis network traffic data, capture presentation network

More information

Plc\PLC-p

Plc\PLC-p GP GP-PRO/PB III for Windows Ver. 4.0] (1) [ GP-PRO/PB III for Windows Ver. 4.0] ( Digital Electronic (2) (Readme.txt files ) Copyright 2000 Digital Electronics Corporation. All rights reserved. Digital

More information

목차 1. 제품 소개... 4 1.1 특징... 4 1.2 개요... 4 1.3 Function table... 5 2. 기능 소개... 6 2.1 Copy... 6 2.2 Compare... 6 2.3 Copy & Compare... 6 2.4 Erase... 6 2

목차 1. 제품 소개... 4 1.1 특징... 4 1.2 개요... 4 1.3 Function table... 5 2. 기능 소개... 6 2.1 Copy... 6 2.2 Compare... 6 2.3 Copy & Compare... 6 2.4 Erase... 6 2 유영테크닉스( 주) 사용자 설명서 HDD014/034 IDE & SATA Hard Drive Duplicator 유 영 테 크 닉 스 ( 주) (032)670-7880 www.yooyoung-tech.com 목차 1. 제품 소개... 4 1.1 특징... 4 1.2 개요... 4 1.3 Function table... 5 2. 기능 소개... 6 2.1 Copy...

More information

Dialog Box 실행파일을 Web에 포함시키는 방법

Dialog Box 실행파일을 Web에 포함시키는 방법 DialogBox Web 1 Dialog Box Web 1 MFC ActiveX ControlWizard workspace 2 insert, ID 3 class 4 CDialogCtrl Class 5 classwizard OnCreate Create 6 ActiveX OCX 7 html 1 MFC ActiveX ControlWizard workspace New

More information

12-file.key

12-file.key 11 (String).. java.lang.stringbuffer. s String s = "abcd"; s = s + "e"; a b c d e a b c d e ,., "910359,, " "910359" " " " " (token) (token),, (delimiter). java.util.stringtokenizer String s = "910359,,

More information

,,,,,, (41) ( e f f e c t ), ( c u r r e n t ) ( p o t e n t i a l difference),, ( r e s i s t a n c e ) 2,,,,,,,, (41), (42) (42) ( 41) (Ohm s law),

,,,,,, (41) ( e f f e c t ), ( c u r r e n t ) ( p o t e n t i a l difference),, ( r e s i s t a n c e ) 2,,,,,,,, (41), (42) (42) ( 41) (Ohm s law), 1, 2, 3, 4, 5, 6 7 8 PSpice EWB,, ,,,,,, (41) ( e f f e c t ), ( c u r r e n t ) ( p o t e n t i a l difference),, ( r e s i s t a n c e ) 2,,,,,,,, (41), (42) (42) ( 41) (Ohm s law), ( ),,,, (43) 94 (44)

More information

Copyright 0, Oracle and/or its affiliates. All rights reserved.,.,,,,,,,,,,,,.,...,. U.S. GOVERNMENT RIGHTS Programs, software, databases, and related

Copyright 0, Oracle and/or its affiliates. All rights reserved.,.,,,,,,,,,,,,.,...,. U.S. GOVERNMENT RIGHTS Programs, software, databases, and related Virtual Machine Sun Fire X4800 M : E4570 0 8 Copyright 0, Oracle and/or its affiliates. All rights reserved.,.,,,,,,,,,,,,.,...,. U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation

More information

Microsoft Word - ExecutionStack

Microsoft Word - ExecutionStack Lecture 15: LM code from high level language /* Simple Program */ external int get_int(); external void put_int(); int sum; clear_sum() { sum=0; int step=2; main() { register int i; static int count; clear_sum();

More information

Integ

Integ HP Integrity HP Chipset Itanium 2(Processor 9100) HP Integrity HP, Itanium. HP Integrity Blade BL860c HP Integrity Blade BL870c HP Integrity rx2660 HP Integrity rx3600 HP Integrity rx6600 2 HP Integrity

More information

슬라이드 1

슬라이드 1 / 유닉스시스템개요 / 파일 / 프로세스 01 File Descriptor file file descriptor file type unix 에서의파일은단지바이트들의나열임 operating system 은파일에어떤포맷도부과하지않음 파일의내용은바이트단위로주소를줄수있음 file descriptor 는 0 이나양수임 file 은 open 이나 creat 로 file

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 1,..... @ 1 Green Project 1991 Oak Java 1995. 5 December '90 by Patrick Naughton, Mike Sheridan and James Gosling Embedded in various consumer electronic device 1992. 9. 3 Star 7 1993 www portability

More information

C++-¿Ïº®Çؼ³10Àå

C++-¿Ïº®Çؼ³10Àå C C++. (preprocessor directives), C C++ C/C++... C++, C. C++ C. C C++. C,, C++, C++., C++.,.. #define #elif #else #error #if #itdef #ifndef #include #line #pragma #undef #.,.,. #include #include

More information

lecture4(6.범용IO).hwp

lecture4(6.범용IO).hwp 제 2 부 C-언어를 사용한 마이크로컨트롤러 활용기초 66 C-언어는 수학계산을 위해 개발된 FORTRAN 같은 고급언어들과는 달 리 Unix 운영체제를 개발하면서 같이 개발된 고급언어이다. 운영체제의 특성상 C-언어는 다른 고급언어에 비해 컴퓨터의 하드웨어를 직접 제어할 수 있는 능력이 탁월하여 마이크로프로세서의 프로그램에 있어서 어셈블 리와 더불어 가장

More information

example code are examined in this stage The low pressure pressurizer reactor trip module of the Plant Protection System was programmed as subject for

example code are examined in this stage The low pressure pressurizer reactor trip module of the Plant Protection System was programmed as subject for 2003 Development of the Software Generation Method using Model Driven Software Engineering Tool,,,,, Hoon-Seon Chang, Jae-Cheon Jung, Jae-Hack Kim Hee-Hwan Han, Do-Yeon Kim, Young-Woo Chang Wang Sik, Moon

More information

chapter4

chapter4 Basic Netw rk 1. ก ก ก 2. 3. ก ก 4. ก 2 1. 2. 3. 4. ก 5. ก 6. ก ก 7. ก 3 ก ก ก ก (Mainframe) ก ก ก ก (Terminal) ก ก ก ก ก ก ก ก 4 ก (Dumb Terminal) ก ก ก ก Mainframe ก CPU ก ก ก ก 5 ก ก ก ก ก ก ก ก ก ก

More information