NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
tsal_ has quit [Ping timeout: 245 seconds]
tsal has joined #openocd
nerozero has joined #openocd
zjason has quit [Remote host closed the connection]
zjason` has joined #openocd
joconor has quit [Ping timeout: 245 seconds]
joconor has joined #openocd
merethan has joined #openocd
PaulFertser has quit [Ping timeout: 264 seconds]
MGF_Fabio has joined #openocd
Haohmaru has joined #openocd
PaulFertser has joined #openocd
merethan has quit [Quit: Leaving]
MGF_Fabio has quit [Ping timeout: 244 seconds]
julien_ has joined #openocd
<julien_> hello all. I have built openocd with gcc14 and fixed a few errors. A few inverted calloc argument order and one useless pointer check (on an array). Are you interested in a patch for those or do you prefer to have that fix by regular contributors ?
JakeSays has quit [Ping timeout: 272 seconds]
JakeSays has joined #openocd
<Haohmaru> i think you should submit it, but i'm not a dev
julien_ has quit [Ping timeout: 260 seconds]
vampirefrog has quit [Ping timeout: 264 seconds]
MGF_Fabio has joined #openocd
joconor has quit [Ping timeout: 252 seconds]
joconor has joined #openocd
Dracos-Carazza has joined #openocd
<Dracos-Carazza> Hi, I'm trying to create a SMP configuration for a Cortex A55 octa core SoC. Is there a way to tell openocd (or the gdb?) to not set breakpoints on offline/not yet determined CPUs?
julien_ has joined #openocd
<PaulFertser> Dracos-Carazza: hi
<PaulFertser> Dracos-Carazza: basically, in the config file you add -defer-examine to the targets
<PaulFertser> And if the target is not examined no breakpoints should get set there I think?
<Dracos-Carazza> yeah, I would also expect that, but it seems to be not the case
<PaulFertser> How do you tell undesired thing happens?
<Dracos-Carazza> I get "Error: [r8a779f0.a55.1] can't add breakpoint: resource not available" and gdb doesn't seem to ignore this
<julien_> @Haohmaru thanks for your advice
<Haohmaru> julien_, mr PaulFertser should give better advice
<PaulFertser> Dracos-Carazza: but are you sure that core is not in examined state at that moment?
<PaulFertser> julien_: fixes sent to OpenOCD Gerrit are appreciated, would be nice if you send them, thank you!
<julien_> PaulFertser: thanks
<Dracos-Carazza> PaulFertser, I'm trying to debug an L4re based hypervisor with a fiasco kernel. from what I know, only core0 is active during boot until it is activated by the kernel. since I break at the entry of the bootsrapper, the kernel should not be active yet
<PaulFertser> Dracos-Carazza: yes, but I'm asking about OpenOCD point of view
<PaulFertser> Dracos-Carazza: what does "targets" say?
<PaulFertser> Dracos-Carazza: and are you adding hardware (not software) breakpoints?
<Dracos-Carazza> yes
<PaulFertser> Dracos-Carazza: probably you might need to change src/target/breakpoints.c breakpoint_add to account for that and to skip the targets that were not examined.
<PaulFertser> Dracos-Carazza: alternatively you can use "smp off" command manually before you get everything examined, then "smp on".
<Dracos-Carazza> yeah, I'm currently trying it with a patched breakpoint.c
MGF_Fabio has quit [Ping timeout: 248 seconds]
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
slobodan has quit [Remote host closed the connection]
slobodan has joined #openocd
julien_ has quit [Read error: Connection reset by peer]
<Dracos-Carazza> PaulFertser, looks like it's working now, but I have to poll the cores manually in order to make them available
julien_ has joined #openocd
<julien_> PaulFertser: and the issues had already been fixed, but I'll know for next time :-)
guestinator has quit [Remote host closed the connection]
guestinator has joined #openocd
<PaulFertser> julien_: you were building the release and not the latest commit initially?
<PaulFertser> julien_: it's not the last problem in OpenOCD so feel free to fix something else :)
<PaulFertser> Dracos-Carazza: looks like it's a shortcoming in the current implementation so if you can fix it properly and contribute that would be great.
<Dracos-Carazza> PaulFertser, I found another solution. I start debugging wihtout smp and start the debugsession. I added a breakpoint in the code after all cores have been activated via psci. When I hit the breakpoint I enable debugging for all remaining cores and switch on smp via a previously defined function
<Dracos-Carazza> this way I don't need to patch breakpoint.c
crabbedhaloablut has quit [Ping timeout: 260 seconds]
crabbedhaloablut has joined #openocd
<PaulFertser> Dracos-Carazza: yes, smp can be switched on and off at any time by using that "smp" command I mentioned.
<Dracos-Carazza> yeah, I decided to do it this way, since I need to retrigger the core detection manually, after the cores have been turned on
Haohmaru has quit [Quit: saionara]
guestinator has quit [Remote host closed the connection]
guestinator has joined #openocd
julien_ has quit [Ping timeout: 244 seconds]
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
guestinator has quit [Remote host closed the connection]
guestinator has joined #openocd
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
vampirefrog has joined #openocd
nerozero has quit [Ping timeout: 245 seconds]
greyltc has quit [Ping timeout: 248 seconds]
greyltc has joined #openocd
urja has quit [Read error: Connection reset by peer]
noarb has quit [Ping timeout: 276 seconds]
noarb has joined #openocd
urja has joined #openocd
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
slobodan has quit [Client Quit]
joconor has quit [Ping timeout: 248 seconds]
joconor has joined #openocd
guestinator has quit [Remote host closed the connection]
guestinator has joined #openocd
guestinator has quit [Remote host closed the connection]
guestinator has joined #openocd