News for hackers. Stuff that matters.
Re:Give me 15 minutes and I'll change your view of GDB (2015... by saaadhu on Saturday August 12, 2017 @12:57PM (#14998709)
"b 0x12345" will place a line breakpoint at line number 0x12345 of the current source file. The "nonsensical" extra asterisk is used to tell gdb that you want an address breakpoint instead.
Re:Give me 15 minutes and I'll change your view of GDB (2015... by bennofs on Saturday August 12, 2017 @05:56PM (#15000230)
Oh! That makes sense, thank you. It only raises the question though, does anyone really use hexadecimal line numbers? :)
Re:Give me 15 minutes and I'll change your view of GDB (2015... by ithkuil on Sunday August 13, 2017 @04:14AM (#15002059)
Just a guess: if you have an expression language that lexes numbers in a few bases, then when parsing some commands you no longer know which base the number token was, all you know is that you got a number, and in case of the break command you interpret that as a line number unless prefixed with a * token