Re: gdb issue

2021-02-05 Thread Anindya Mukherjee
>On 2021-02-04, Anindya Mukherjee wrote: >> I'm trying to debug the systat utility for learning purposes. I >> enabled >> -g -O0 in the Makefile, and built it in /usr/src/usr.bin/systat. It >> builds and runs fine. However, gdb cannot insert any breakspoints. I'm >> on a very recent snapshot and e

Re: gdb issue

2021-02-05 Thread Stuart Henderson
On 2021-02-04, Anindya Mukherjee wrote: > I'm trying to debug the systat utility for learning purposes. I enabled > -g -O0 in the Makefile, and built it in /usr/src/usr.bin/systat. It > builds and runs fine. However, gdb cannot insert any breakspoints. I'm > on a very recent snapshot and everythin

Re: gdb issue

2021-02-04 Thread Anindya Mukherjee
I notice now that the code from systat is mapped to very low memory addresses unlike my own programs. I think that's why I am getting errors. Curious how this is happening. >From: Anindya Mukherjee >Sent: February 4, 2021 3:59 PM >To: misc@openbsd.org >Subject: gdb issue >  >Hi, > >I'm trying to