Questions tagged as 'gdb'

1
answer

How to see the value of a define or macro in gdb?

I have the following line of code: int a = MAX(b,c); How to check the definition of the MAX(b,c) macro? Sometimes the same macro is defined in several different ways in a code (for example, depending on the architecture). This would...
asked by 13.02.2015 / 15:27
1
answer

How to configure "gdb" for the syntax Intel

I'm trying to set gdb to syntax intel , however I'm getting the following message: Ambiguous set command "dis intel": disable-randomization, disassemble-next-line, disassembly-flavor, disconnected-dprintf... I'm tempted by the...
asked by 18.10.2016 / 18:03
1
answer

How to set a breakpoint in gdb for all functions of a certain file?

Is it possible to set a breakpoint for all functions of a given file in gdb? An application, for example, would check if the program goes through a certain file during its execution.     
asked by 26.02.2015 / 15:42
1
answer

How to check register values by gdb?

How to check the value of all registers in gdb? Also, how to check the value of a specific register in gdb?     
asked by 26.02.2015 / 15:54
0
answers

Problem with GDB libraries [closed]

I'm trying to debug a code but my gdb is buggy. It crashes whenever executing something from a library be a printf, malloc. It's not code problem. I have already uninstalled gcc and gdb and installed again and the program continues. The messa...
asked by 17.02.2018 / 00:46
0
answers

About the GDB Debugger

Oops, I wanted to get in touch with you. I run my application with the GDB debugger, I'm not very knowledgeable about it, but from what I know it's one of the best. The fact is that in some cases it reports the error but not clearly, since my...
asked by 29.11.2018 / 18:38
0
answers

GDB: How to add shared libraries?

I'm using gdb to test my code, however I'm having the following problem when giving run: Starting program: /home/silas/PIBIC/code/gameoflife /home/silas/PIBIC/code/gameoflife: error while loading shared libraries: libhwloc.so.15: cannot open...
asked by 19.09.2018 / 23:19
1
answer

How to debug a C / C ++ application remotely using ECLIPSE, different operating systems?

I'm developing a C ++ application that runs a NanoPI M3 card with Linux specially compiled for my purpose, and there have been some unexpected errors and behaviors, I wish I could debug the application remotely since the NanoPI M3 is a Cortex-A5...
asked by 08.10.2016 / 09:00
2
answers

How to open .GDB files [closed]

I am a list of clients and work order, in backup in .GDB, how can I open such a file.     
asked by 23.03.2018 / 19:11