前提・実現したいこと
gdbでブレークポイントをセットした後、その地点までプログラムを実行しようとすると、”The program is not being run.”と出力されてしまいます。
どうすればこのエラーを回避出来るでしょうか?
発生している問題・エラーメッセージ
Terminal
1[kai@localhost Downloads]$ gdb rev200 2GNU gdb (GDB) Red Hat Enterprise Linux 8.2-6.el8 3Copyright (C) 2018 Free Software Foundation, Inc. 4License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> 5This is free software: you are free to change and redistribute it. 6There is NO WARRANTY, to the extent permitted by law. 7Type "show copying" and "show warranty" for details. 8This GDB was configured as "x86_64-redhat-linux-gnu". 9Type "show configuration" for configuration details. 10For bug reporting instructions, please see: 11<http://www.gnu.org/software/gdb/bugs/>. 12Find the GDB manual and other documentation resources online at: 13 <http://www.gnu.org/software/gdb/documentation/>. 14 15For help, type "help". 16Type "apropos word" to search for commands related to "word"... 17Reading symbols from rev200...(no debugging symbols found)...done. 18(gdb) disas main 19Dump of assembler code for function main: 20 0x080483ed <+0>: push %ebp 21 0x080483ee <+1>: mov %esp,%ebp 22 0x080483f0 <+3>: push %edi 23 0x080483f1 <+4>: push %ebx 24 0x080483f2 <+5>: add $0xffffff80,%esp 25 0x080483f5 <+8>: movl $0x7a,-0x78(%ebp) 26 0x080483fc <+15>: movl $0x69,-0x74(%ebp) 27 0x08048403 <+22>: movl $0x78,-0x70(%ebp) 28 0x0804840a <+29>: movl $0x6e,-0x6c(%ebp) 29 0x08048411 <+36>: movl $0x62,-0x68(%ebp) 30 0x08048418 <+43>: movl $0x6f,-0x64(%ebp) 31 0x0804841f <+50>: movl $0x7c,-0x60(%ebp) 32 0x08048426 <+57>: movl $0x6b,-0x5c(%ebp) 33 0x0804842d <+64>: movl $0x77,-0x58(%ebp) 34 0x08048434 <+71>: movl $0x78,-0x54(%ebp) 35 0x0804843b <+78>: movl $0x74,-0x50(%ebp) 36 0x08048442 <+85>: movl $0x38,-0x4c(%ebp) 37 0x08048449 <+92>: movl $0x38,-0x48(%ebp) 38 0x08048450 <+99>: movl $0x64,-0x44(%ebp) 39 0x08048457 <+106>: movl $0x19,-0x7c(%ebp) 40 0x0804845e <+113>: lea -0x40(%ebp),%ebx 41 0x08048461 <+116>: mov $0x0,%eax 42--Type <RET> for more, q to quit, c to continue without paging--c 43 0x08048466 <+121>: mov $0xe,%edx 44 0x0804846b <+126>: mov %ebx,%edi 45 0x0804846d <+128>: mov %edx,%ecx 46 0x0804846f <+130>: rep stos %eax,%es:(%edi) 47 0x08048471 <+132>: movl $0x0,-0x80(%ebp) 48 0x08048478 <+139>: jmp 0x8048491 <main+164> 49 0x0804847a <+141>: mov -0x80(%ebp),%eax 50 0x0804847d <+144>: mov -0x78(%ebp,%eax,4),%eax 51 0x08048481 <+148>: xor -0x7c(%ebp),%eax 52 0x08048484 <+151>: mov %eax,%edx 53 0x08048486 <+153>: mov -0x80(%ebp),%eax 54 0x08048489 <+156>: mov %edx,-0x40(%ebp,%eax,4) 55 0x0804848d <+160>: addl $0x1,-0x80(%ebp) 56 0x08048491 <+164>: cmpl $0xd,-0x80(%ebp) 57 0x08048495 <+168>: jle 0x804847a <main+141> 58 0x08048497 <+170>: mov $0x0,%eax 59 0x0804849c <+175>: sub $0xffffff80,%esp 60 0x0804849f <+178>: pop %ebx 61 0x080484a0 <+179>: pop %edi 62 0x080484a1 <+180>: pop %ebp 63 0x080484a2 <+181>: ret 64End of assembler dump. 65(gdb) b * 0x0804845e 66Breakpoint 1 at 0x804845e 67(gdb) c 68The program is not being run. 69
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/05/23 11:06
2020/05/23 11:18
2020/05/24 05:08
2020/05/24 07:15 編集
2020/05/24 07:35
2020/05/24 08:05
2020/05/24 09:02
2020/05/24 09:23 編集
2020/05/24 09:32
2020/05/24 10:48
2020/05/24 10:56
2020/05/24 11:01
2020/05/24 11:07
2020/05/24 11:11 編集
2020/05/24 11:13
2020/05/24 11:14
2020/05/24 11:22 編集
2020/05/24 11:23
2020/05/24 11:26
2020/05/24 11:28
2020/05/24 11:38
2020/05/24 11:48
2020/05/24 12:05 編集
2020/05/24 12:48 編集
2020/05/24 13:49
2020/05/24 15:02
2020/05/25 11:12 編集
2020/06/06 13:40 編集