#  Copyright (C) 2003 Ingo K"ohne
#  
#  This program is free software; you can redistribute it and/or
#  modify it under the terms of the GNU General Public License
#  as published by the Free Software Foundation; either version 2
#  of the License, or (at your option) any later version.
#  
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#  
#  You should have received a copy of the GNU General Public License along
#  with this program; if not, write to the Free Software Foundation, Inc.,
#  59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.

cmd=objdump

optcomplete  $cmd archive-header a
optcomplete -D 'section address offset'  $cmd adjust-vma
optcomplete -C 'objdump -m 2>&1 | sed -n "s/.* supported targets: //p" #'  $cmd target b
optcomplete -m arg_optional -W 'gnu lucid arm hp edg gnu-new-abi'  $cmd demangle
optcomplete  $cmd C
optcomplete  $cmd debugging G
optcomplete  $cmd disassemble d
optcomplete  $cmd disassemble-all D
optcomplete  $cmd prefix-addresses
optcomplete  $cmd disassemble-zeroes
optcomplete -m glued -W 'L B'  $cmd E
optcomplete -W 'big little'  $cmd endian
optcomplete  $cmd file-header f
optcomplete  $cmd file-start-context
optcomplete  $cmd section-header header h
optcomplete  $cmd help
optcomplete  $cmd info i
optcomplete -C '#name'  $cmd section j
optcomplete  $cmd line-numbers l
optcomplete -C 'objdump -m 2>&1 | sed -n "s/.* supported architectures: //p" #'  $cmd  architecture m
optcomplete -C 'x86-64 i386 i8086 intel att addr32 addr16 data32 data16 suffix'  $cmd disassembler-options M
optcomplete  $cmd private-headers p
optcomplete  $cmd reloc r
optcomplete  $cmd dynamic-reloc R
optcomplete  $cmd full-contents s
optcomplete  $cmd source S
optcomplete  $cmd show-raw-insn
optcomplete  $cmd no-show-raw-insn
optcomplete  $cmd stabs G
optcomplete -m arg_required  $cmd start-address stop-address
optcomplete  $cmd syms t
optcomplete  $cmd dynamic-syms T
optcomplete  $cmd version
optcomplete  $cmd all-header x
optcomplete  $cmd wide w
optcomplete -f  $cmd NONOPT

optcomplete -m long  $cmd

complete -F xpcompfunc  $cmd

unset cmd ${!xpc_*}
