This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] 'info os' additions


After weighing the options and thinking about everybody's input, I decided we should continue with the current "info os" architecture (sorry Eli).

Although it's a little unusual among GDB commands in that the command is generic while the arguments it accepts are target-specific, this bit of irregularity doesn't seem to have caused any problems for users in the past three years. So in the absence of any pressing need, I think we can continue on this path.

Also, if anybody wishes, they can convert "info dos" and "info w32" commands to be based on "info os" instead.

Finally, for the record, here's what I committed. A related patch for MI will follow soon.

Stan

2012-05-11  Stan Shebs <stan@codesourcery.com>
        Kwok Cheung Yeung <kcy@codesourcery.com>

    * NEWS: Describe new info os commands.
    * common/linux-osdata.c (PID_T, TIME_T): Define.
    (MAX_PID_T_STRLEN): New.
    (linux_common_core_of_thread): Add comment.  Change to use PID_T and
    MAX_PID_T_STRLEN.
    (command_from_pid): Add comment.  Change to use PID_T.
    (commandline_from_pid):  Change to use PID_T.
    (user_from_pid): Add comment.
    (get_process_owner): Add comment. Change to use PID_T and
    MAX_PID_T_STRLEN.
    (get_number_of_cpu_cores): Add comment.
    (get_cores_used_by_process): Add comment.  Change to use PID_T and
    MAX_PID_T_STRLEN.
    (linux_xfer_osdata_processes): Change to use PID_T and
    MAX_PID_T_STRLEN.
    (compare_processes): New function.
    (linux_xfer_osdata_processgroups): New function.
    (linux_xfer_osdata_threads): Change to use PID_T.
    (linux_xfer_osdata_fds): New function.
    (format_socket_state, print_sockets): New functions.
    (union socket_addr): New union.
    (linux_xfer_osdata_isockets): New function.
    (time_from_time_t, group_from_gid): New functions.
    (linux_xfer_osdata_shm): New function.
    (linux_xfer_osdata_sem): New function.
    (linux_xfer_osdata_msg): New function.
    (linux_xfer_osdata_modules): New function.
    (osdata_table): Add new entries.
    * common/buffer.c (buffer_xml_printf): Add support for long and
    long long format specifiers.

    * gdb.texinfo (Operating System Auxiliary Information): Document new
    'info os' subcommands.

    * gdb.base/info-os.exp: New file.
    * gdb.base/info-os.c: New file.


Attachment: osdata-patch-4
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]