Closed Bug 1625614 Opened 4 years ago Closed 4 years ago

gdb 9.1 doesn't like ambiguous `def` in .gdbinit

Categories

(Developer Infrastructure :: Developer Environment Integration, defect)

defect
Not set
normal

Tracking

(firefox76 fixed)

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: jld, Assigned: rstewart)

Details

Attachments

(1 file)

Starting GDB 9.1 (Debian package version 9.1-1) from the top level of a mozilla-central clone shows this error:

.gdbinit:25: Error in sourced command file:
Ambiguous command "def prun": define, define-prefix.

And the commands that would have been defined by that file aren't defined. It looks like gdb added the define-prefix command in 9.1, making any proper prefix of define ambiguous. We should change all of the defs in our gdbinit to the unabbreviated define.

Attachment #9136936 - Attachment description: Bug 1625614 - gdb 9.1 doesn't like ambiguous `def` in .gdbinit → Bug 1625614 - Use un-prefixed "define" command in .gdbinit so as to not upset gdb 9.1
Assignee: nobody → rstewart
Status: NEW → ASSIGNED

See the attached patch -- is this what you meant?

Flags: needinfo?(jld)

Yes; thanks. I applied that patch locally and GDB 9.1 successfully interprets the .gdbinit file.

Flags: needinfo?(jld)
Pushed by rstewart@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/314b298f5af9
Use un-prefixed "define" command in .gdbinit so as to not upset gdb 9.1 r=froydnj
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: