aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2011-10-07 * gdb.texinfo (gdb.printing): Document new `replace' arg toDoug Evans2-1/+9
register_pretty_printer.
2011-10-07 * python/lib/gdb/printing.py (register_pretty_printer): New argumentDoug Evans4-6/+33
`replace'. testsuite/ * gdb.python/py-pp-maint.py: Add tests for `replace' arg.
2011-10-07 * python/lib/gdb/printing.py: Whitespace cleanup.Doug Evans2-9/+13
2011-10-07 * python/py-value.c (valpy_call): Initialize ftype to avoid compilerDoug Evans2-1/+6
warning.
2011-10-07Fix PR spelling, 13624 -> 13264.Doug Evans1-2/+1
2011-10-072011-10-07 Pedro Alves <pedro@codesourcery.com>Pedro Alves9-76/+75
* linux-nat.h (ALL_LWPS): Remove the ptid parameter. * amd64-linux-nat.c (amd64_linux_dr_set_control) (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust. * arm-linux-nat.c (arm_linux_insert_hw_breakpoint) (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint) (arm_linux_remove_watchpoint): Adjust. * i386-linux-nat.c (i386_linux_dr_set_control) (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust. * ia64-linux-nat.c (ia64_linux_insert_watchpoint) (ia64_linux_remove_watchpoint): Adjust. * mips-linux-nat.c (write_watchpoint_regs): Adjust. * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint) (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint) (ppc_linux_insert_mask_watchpoint) (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint) (ppc_linux_remove_watchpoint): Adjust. * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Adjust.
2011-10-07 * windows-nat.c: Include wchar.h to avoid compiler warnings.Corinna Vinschen2-3/+64
(clear_win32_environment): New function for Cygwin to clear out Win32 environment. (windows_create_inferior): Prepare new environment from in_env for Cygwin, too.
2011-10-072011-10-07 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-42/+95
PR python/13624 * python/py-value.c (valpy_call): Check that arguments are a tuple. (is_intlike): Remove call to CHECK_TYPEDEF. (valpy_nonzero): Catch GDB exceptions. (valpy_absolute): Ditto. (valpy_lazy_string): Ditto. (valpy_call): Ditto. (valpy_get_is_optimized_out): Ditto. (valpy_long): Ditto. (valpy_float): Ditto. (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions. (valpy_richcompare): Ditto.
2011-10-072011-10-07 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-0/+14
PR python/12930 PR python/12802 * gdb.texinfo (Breakpoints In Python): Clarify behavior in the stop method.
2011-10-07 * inferior.h (disable_randomization): Declare.Ulrich Weigand17-45/+436
* infrun.c (disable_randomization): New global variable. (show_disable_randomization): New function. (set_disable_randomization): Likewise. (_initialize_infrun): Install set/show disable-randomization commands. * linux-nat.c (disable_randomization): Remove. (show_disable_randomization): Likewise. (set_disable_randomization): Likewise. (_initialize_linux_nat): No longer install set/show disable-randomization commands here. (linux_nat_supports_disable_randomization): New function. (linux_nat_add_target): Install it. * remote.c (PACKET_QDisableRandomization): New enum value. (remote_protocol_packets): Support QDisableRandomization. (_initialize_remote): Likewise. (remote_supports_disable_randomization): New function. (init_remote_ops): Install it. (extended_remote_supports_disable_randomization): New function. (init_extended_remote_ops): Install it. (extended_remote_disable_randomization): New function. (extended_remote_create_inferior_1): Call it. * target.h (struct target_ops): Add to_supports_disable_randomization. (target_supports_disable_randomization): Add prototype. * target.c (target_supports_disable_randomization): New function. (find_default_supports_disable_randomization): Likewise. (init_dummy_target): Install it. doc/ * gdb.texinfo (Starting your Program): "set disable-randomization" is no longer Linux-specific. (Remote Configuration): Document "set remote disable-randomization-packet". (General Query Packets): Document "QDisableRandomization" packet and add it to "qSupported" list. gdbserver/ * configure.ac: Check support for personality routine. * configure: Regenerate. * config.in: Likewise. * linux-low.c: Include <sys/personality.h>. Define ADDR_NO_RANDOMIZE if necessary. (linux_create_inferior): Disable address space randomization when forking inferior, if requested. (linux_supports_disable_randomization): New function. (linux_target_ops): Install it. * server.h (disable_randomization): Declare. * server.c (disable_randomization): New global variable. (handle_general_set): Handle QDisableRandomization. (handle_query): Likewise for qSupported. (main): Support --disable-randomization and --no-disable-randomization command line arguments. * target.h (struct target_ops): Add supports_disable_randomization. (target_supports_disable_randomization): New macro.
2011-10-07Add missing files to previous commit (Allow Python notification of new ↵Kevin Pouget2-0/+90
object-file loadings.)
2011-10-07Fix ChangeLog messup (Allow Python notification of new object-file loadings.)Kevin Pouget3-14/+14
2011-10-07 Allow Python notification of new object-file loadings.Kevin Pouget13-5/+127
* Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c. (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o. Add build rule for this file. * python/py-event.h (emit_new_objfile_event): New prototype. (newobjfile): New Python event emitter. * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to Python event registry. * python/py-inferior.c: Include objfiles.h (python_new_objfile): New function. (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile observers. * python/py-newobjfileevent.c: New file. * python-internal.h (gdbpy_initialize_new_objfile_event): New prototype. * python/python.c (_initialize_python): Add gdbpy_initialize_new_objfile_event call. * NEWS: Add item for new Python event "gdb.newobjfile" 2011-10-06 Kevin Pouget <kevin.pouget@st.com> Allow Python notification of new object-file loadings. * gdb.texinfo (Events In Python): Document `gdb.NewObjFileEvent' event type. 2011-10-06 Kevin Pouget <kevin.pouget@st.com> Allow Python notification of new object-file loadings. * gdb.python/py-events.exp: Test newobjfile event. * gdb.python/py-events.py: Register newobjfile callback. * gdb.python/py-events.c: Add call to shared library * gdb.python/py-events-shlib.c: New file.
2011-10-07 * gdb.base/fixsection.exp: Do not include directories in filenameJoseph Myers2-1/+6
in expected message.
2011-10-07*** empty log message ***gdbadmin1-1/+1
2011-10-06*** empty log message ***gdbadmin1-1/+1
2011-10-05 Add tests for passing of environment variables to inferior.Pierre Muller3-0/+174
* gdb.base/testenv.c: New test source. * gdb.base/testenv.exp: New expect test.
2011-10-052011-10-05 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-2/+31
* ada-tasks.c (read_atcb): Make ravenscar_task_name static. Extract the ravenscar task name from the symbol for the atcb.
2011-10-05*** empty log message ***gdbadmin1-1/+1
2011-10-04* gdb.python/py-value.c (main): Break before return.Paul Koning2-1/+8
2011-10-04* python/py-type.c (typy_make_iter): Add forward declaration.Paul Koning2-32/+15
(typy_fields_items): Use the gdb.Type iterator.
2011-10-04* NEWS: Add entry for Python gdb.Type mapping methods.Paul Koning2-0/+9
2011-10-04Fix misplaced documentation entry (Paul Koning, 2011-09-28)Paul Koning2-2/+5
2011-10-042011-10-04 Kevin Pouget <kevin.pouget@st.com>Kevin Pouget10-10/+53
PR python/12691: Add the inferior to Python exited event * python/py-exitedevent.c (create_exited_event_object): Add inferior to exited_event. * python/py-event.h (emit_exited_event): Likewise * python/-inferior.c (python_inferior_exit): Likewise 2011-10-04 Kevin Pouget <kevin.pouget@st.com> PR python/12691: Add the inferior to Python exited event * gdb.python/py-events.exp: Test the inferior attribute of exited event with a fork. * gdb.python/py-events.py: Print inferior number on exit. * gdb.python/py-events.c: Fork the inferior. 2011-10-04 Kevin Pouget <kevin.pouget@st.com> PR python/12691: Add the inferior to Python exited event * gdb.texinfo (Events In Python): Describe exited inferior attribute.
2011-10-04*** empty log message ***gdbadmin1-1/+1
2011-10-03[doco] rephrase `presence of' with `support for'.Joel Brobecker2-6/+12
gdb/doc/ChangeLog: * gdb.texinfo (GDB/MI Miscellaneous Commands): Minor rephasing.
2011-10-03[Ada/doco] Document the new -ada-task-info GDB/MI command.Joel Brobecker2-1/+87
gdb/doc/ChangeLog: * gdb.texinfo (GDB/MI Ada Tasking Commands): New node. (GDB/MI Miscellaneous Commands): Add `ada-task-info' as possible feature returned by the `-list-features' command.
2011-10-03[Ada] Add field "thread-id" in -ada-task-info outputJoel Brobecker2-2/+36
This patch enhances the -ada-task-info command, adding a new field called "thread-id" in the command output. This field provides the ID of the task's corresponding thread (if that information could not be determined, the field is omitted). This field is useful in the context of GDB/MI users, because it allows a quick translation from Ada task to thread, and thus easy use of all the commands that take a --thread argument. gdb/ChangeLog: * ada-tasks.c (print_ada_task_info): Add "thread-id" field in output of -ada-task-info GDB/MI command.
2011-10-03[Ada] New GDB/MI command: -ada-tasks-infoJoel Brobecker6-1/+33
This patch introduces a new GDB/MI command: -ada-tasks-info, which is meant to be the MI equivalent of the CLI `info tasks' command. This new command returns an array, with each row corresponding to one task. For now, the columns of the array corresponds to the columns displayed in the CLI output. gdb/ChangeLog: * ada-lang.h (struct inferior): Declare. (print_ada_task_info): Add declaration. * ada-tasks.c (print_ada_task_info): Make non-static. * mi/mi-cmds.c (mi_cmds): Add "ada-task-info". * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration. * mi/mi-main.c: #include "ada-lang.h". (mi_cmd_list_features): Add "ada-task-info" to the list of supported features. (mi_cmd_ada_task_info): New function.
2011-10-03Crash sourcing Python script on WindowsJoel Brobecker2-2/+48
gdb/ChangeLog: * python/python.c (python_run_simple_file): New function. (source_python_script, source_python_script_for_objfile): Replace call to PyRun_SimpleFile by call to python_run_simple_file.
2011-10-03* gdb.base/jit.exp: Add testcase name to log messageEdjunior Barbosa Machado2-2/+6
2011-10-03* gdb.python/py-value.expPaul Koning2-0/+20
(python inval = gdb.parse_and_eval('*(int*)0')) (python argc_lazy = gdb.parse_and_eval('argc'), sanity check argc) (set argc=2, python print argc_lazy): New tests.
2011-10-03* python/py-value.c (valpy_get_address): Use Py_XINCREF.Paul Koning2-1/+14
(value_to_value_object): Fetch value if it was lazy.
2011-10-03*** empty log message ***gdbadmin1-1/+1
2011-10-02gdb/Jan Kratochvil2-20/+20
Code cleanup. * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr. Rearrange the code for it.
2011-10-02thread-specific breakpoints not saved properly by save-breakpointJoel Brobecker5-0/+115
Initially, I noticed that the save command was often missing new lines in the file that it generated. For instance, consider: % gdb save-bp (gdb) b break_me (gdb) b save-bp.c:27 (gdb) save breakpoints bps The contents of the bps file would be: % cat bps break break_mebreak save-bp.c:27 Looking further into the problem, I realized that the missing newlines are just a consequence of a missing call to print_recreate_thread. After having generated the breakpoint location in the break command, we cannot put a new line until we have looked at whether we need to add a 'thread NUM' argument. gdb/ChangeLog: * breakpoint.c (bkpt_print_recreate): Add call to print_recreate_thread. gdb/testsuite/ChangeLog: * gdb.base/save-bp.exp, gdb.base/save-bp.c: New files.
2011-10-02*** empty log message ***gdbadmin1-1/+1
2011-10-01gdb/testsuite/Jan Kratochvil2-1/+27
* gdb.python/py-value.exp (test_value_in_inferior): New variable can_read_0, test for it. (python print gdb.parse_and_eval('*(int*)0')): Rename to ... (parse_and_eval with memory error): ... here, make it untested if can_read_0.
2011-10-01*** empty log message ***gdbadmin1-1/+1
2011-09-30gdb.python/python.exp: fix up raceMarek Polacek2-2/+19
2011-09-30gdbserver: add support for FDPIC loadmapsMike Frysinger4-11/+50
The DSBT support is very close to the FDPIC code, so extend the existing loadmap support to work with FDPIC loadmaps too. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-09-30*** empty log message ***gdbadmin1-1/+1
2011-09-29 * lib/gdb.exp (is_amd64_regs_target, is_x86_like_target): AllowJoseph Myers2-5/+7
for 64-bit multilibs from i?86-* targets.
2011-09-29lib/gdb.exp: Fix a typoMarek Polacek2-1/+5
2011-09-29gdb.base/foll-fork.exp: fix up raceMarek Polacek2-2/+7
2011-09-29gdb/doc/Yao Qi2-2/+7
* gdb.texinfo (Files): Update options for `add-symbol-file'. Add one space after option `-s'. Remove @r{} markup.
2011-09-29gdb/Yao Qi2-1/+5
* symfile.c (add_symbol_file_command): Update message on usage.
2011-09-29*** empty log message ***gdbadmin1-1/+1
2011-09-28* gdb.python/py-type.c (enum E): New.Paul Koning3-1/+40
* gdb.python/py-type.exp (test_fields): Add tests for Python mapping access to fields. (test_enums): New test for field access on enums.
2011-09-28* python/py-type.c (make_fielditem, typy_field_names, typy_items)Paul Koning4-25/+425
(typy_length, typy_get, typy_has_key, typy_make_iter) (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter) (typy_iterator_iter, typy_iterator_iternext) (typy_iterator_dealloc): New functions to implement standard Python mapping methods on gdb.Type object. (gdb.TypeIterator): New Python type. * python/python-internal.h (gdbpy_iter_kind): New enum. * doc/gdb.texinfo (gdb.Type): Document field access by dictionary key syntax.