By definition, the discrete logarithm problem is to solve the following congruence for $x$ and it is known that there are no efficient algorithm for that, in general.
$$\begin{align*}
b^x\equiv r&\pmod p\quad(1)\end{align*}$$
It is to find $x$ (if exists any) for given $r,b$ as integers smaller than a prime $p$.
Am I right so far? please correct me if I am misunderstanding anything.
In elliptic curve cryptography it is said that in $P=a\times G$ we can not calculate $a$ by knowing $P$ and $G$ because the discrete logarithm problem is hard to solve. I don't understand that how is this related to equation 1. I mean is that only terminology similar in both problems?
To clarify my question lets imagine that a genius from future generations can finally introduce a solution to equation 1 which is done in feasible time by using an average hardware set up of the time. The algorithm they propose is capable of finding $x$ (if exists) for any given prime $p$ and any given $r, b$. Now, I want to know that is this invention a threat to security of elliptic curve cryptography? In other words, will the knowledge of such algorithm help in retrieving $a$ from $P$?
If yes please explain how is this relation defined and what is the math flow by which we can calculate $a$ from $P$, which I guess will have to pass through solving a congruence similar to equation 1.
If no please tell me what is different between the hardness of discrete logarithm problem in elliptic curves and in that of equation 1 and why is this terminology used here.