New function cli-utils.c:extract_arg_const
authorJoel Brobecker <brobecker@adacore.com>
Mon, 11 Nov 2013 05:19:32 +0000 (09:19 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Thu, 14 Nov 2013 10:31:42 +0000 (14:31 +0400)
commitb5be8ce022f894831b133b3b424238d8058eb29e
tree4112aeb43628e418fecbb68a8cd46c5ae116f213
parent671afef641d8cf0672e36d7afeb053c8d01c294e
New function cli-utils.c:extract_arg_const

This function provides the exact same functionality as extract_arg,
except that it takes a "const char**" instead of a "char **".
It allows us also to re-implement extract_arg almost as a simple
wrapper around the new function.

gdb/ChangeLog:

        Pedro Alves  <palves@redhat.com>
        Joel Brobecker  <brobecker@adacore.com>

        * cli/cli-utils.h (extract_arg_const): Add declaration.
        * cli/cli-utils.c (extract_arg_const): New function.
        (extract_arg): Reimplement using extract_arg_const.
gdb/ChangeLog
gdb/cli/cli-utils.c
gdb/cli/cli-utils.h
This page took 0.028098 seconds and 4 git commands to generate.