aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2012-09-11*** empty log message ***gdbadmin1-1/+1
2012-09-10crash printing optimized out variant typeJoel Brobecker5-0/+69
Assuming the following declarations: type Discriminants_Record (A : Integer; B : Boolean) is record C : Float; end record; Z : Discriminants_Record := (A => 1, B => False, C => 2.0); If variable Z is not used, and the compiler optimizes it out, GDB would crash as follow: (gdb) print Z /[...]/gdb/valops.c:1121: internal-error: Unexpected lazy value type. This is because the ada-lang module forgot to set the optimized_out flag in the value returned by ada_evaluate_subexp during the value's "fixing" process. Later on, when trying to print the resulting value, GDB finds that the value is still lazily allocated, and thus tries to fetch it. But this is not allowed for not_lval values, hence the internal error. gdb/ChangeLog: * ada-lang.c (coerce_unspec_val_to_type): Make sure that the optimized_out flag is preserved. gdb/testsuite/ChangeLog: * gdb.ada/optim_drec: New testcase.
2012-09-10Fix function prologue analyzer for moxie.Anthony Green2-6/+11
2012-09-10 * boards/fission.exp: Explicitly mark "board" as not remote.Doug Evans2-0/+9
2012-09-10 PR gdb/13483Keith Seitz6-7/+73
* gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ... (BOOL_CONVERSION_BADNESS): ... this. * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise. (rank_one_type): Allow all boolean conversions permitted by the standard. * gdb.cp/converts.cc (A::A): Add ctor. (A::member_): Add member. (enum my_enum): New enumeration. (main): Add calls to foo1_7 with various permitted arguments. * gdb.cp/converts.exp: Add tests for boolean conversions permitted by the standard.
2012-09-10*** empty log message ***gdbadmin1-1/+1
2012-09-09*** empty log message ***gdbadmin1-1/+1
2012-09-082012-09-08 Khoo Yit Phang <khooyp@cs.umd.edu>Yit Phang Khoo5-4/+18
Replace -nw option with $INTERNAL_GDBFLAGS in "xgdb" tests to avoid spurious results due to ~/.gdbinit. * gdb.gdb/complaint.exp (setup_test): Replace -nw option with $INTERNAL_GDBFLAGS in run command. * gdb.gdb/observer.exp (setup_test): Ditto. * gdb.gdb/selftest.exp (test_with_self): Ditto. * gdb.gdb/xfullpath.exp (setup_test): Ditto.
2012-09-08*** empty log message ***gdbadmin1-1/+1
2012-09-07*** empty log message ***gdbadmin1-1/+1
2012-09-06 * boards/fission.exp: New file.Doug Evans2-0/+32
2012-09-06 * python/py-newobjfileevent.c (create_new_objfile_event_object):Tom Tromey2-3/+8
Don't decref py_objfile.
2012-09-06(test_subscript_regression): Remove no longer necessary globals,Doug Evans1-4/+0
from previous patch.
2012-09-06 * gdb.python/py-value.exp: Use clean_restart.Doug Evans2-8/+6
2012-09-06*** empty log message ***gdbadmin1-1/+1
2012-09-05 * gdb.base/info-macros.c: Fix whitespace.Doug Evans2-5/+7
2012-09-05*** empty log message ***gdbadmin1-1/+1
2012-09-04 * linux-crisv32-low.c: Fix compile errors.Hans-Peter Nilsson2-12/+15
2012-09-04gdb/gdbserver/Yao Qi2-8/+7
* tracepoint.c (cmd_qtsv): Adjust debug message. Don't check CUR_TPOINT.
2012-09-04*** empty log message ***gdbadmin1-1/+1
2012-09-03*** empty log message ***gdbadmin1-1/+1
2012-09-022012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>Yit Phang Khoo3-85/+158
Do not enable -lmcheck by default when Python is enabled with threading support. * configure.ac: (python_has_threads) New variable, by testing if WITH_THREAD is defined in Python.h. Move --enable-lmcheck after --with-python. Do not enable -lmcheck by default if python_has_threads=yes. Warn if --enable-lmcheck and python_has_threads=yes. * configure: Regenerate.
2012-09-02*** empty log message ***gdbadmin1-1/+1
2012-09-012012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>Yit Phang Khoo1-0/+4
* MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2012-09-01*** empty log message ***gdbadmin1-1/+1
2012-08-31gdb/Yao Qi4-115/+145
* mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1. Update some commands. * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field. * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification' to 1.
2012-08-31gdb/Yao Qi2-1/+5
* mi/mi-cmds.c (mi_cmds): Add 'static'.
2012-08-31*** empty log message ***gdbadmin1-1/+1
2012-08-30Add "Khoo Yit Phang" to gdb/MAINTAINERS.Yit Phang Khoo1-0/+1
2012-08-30*** empty log message ***gdbadmin1-1/+1
2012-08-29 * main.c (print_gdb_help): Remove reference toDoug Evans2-4/+5
--use-deprecated-index-sections.
2012-08-29*** empty log message ***gdbadmin1-1/+1
2012-08-28gdb/gdbserver/Yao Qi5-38/+23
* ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF. * server.h: Include 'libiberty.h' and 'ansidecl.h'. (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove. Remove declarations of xmalloc, xreallloc, xstrdup and freeargv. * Makefile.in (libiberty_h): New. (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'. (linux-bfin-low.o): Append dependency 'libiberty.h'.
2012-08-28gdb/Yao Qi6-33/+55
* cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'. (init_cmds): Call add_setshow_uinteger_cmd for command 'max-user-call-depth'. * cli/cli-script.c (execute_user_command): Add 'unsigned' to the declaration of 'max_user_call_depth'. * frame.c (backtrace_limit): Add 'unsigned'. (_initialize_frame): Call add_setshow_uinteger_cmd for command 'limit'. * remote.c (remoteaddresssize): Add 'unsigned'. (remote_address_masked): Change local var 'address_size' to 'unsigned'. (_initialize_remote): Call add_setshow_uinteger_cmd for 'remoteaddresssize'. * top.c (history_size): Add 'unsigned'. (show_commands): Change local variables to 'unsigned'. (set_history_size_command): Don't check history_size is negative. Adjust the condition to call unstifle_history and set history_size to UNIT_MAX.
2012-08-282012-08-28 Pedro Alves <palves@redhat.com>Pedro Alves4-76/+110
PR gdb/14428 gdb/ * infcmd.c (default_print_one_register_info): New, factored out from default_print_registers_info. (default_print_registers_info): Use it. Mark value unavailable if necessary. (registers_info): Print user registers with default_print_one_register_info. gdb/testsuite/ * gdb.base/pc-fp.exp: Adjust expected output of 'info registers pc fp'.
2012-08-28*** empty log message ***gdbadmin1-1/+1
2012-08-27Check if TUI_SRC_WIN is not NULL before referencing itH.J. Lu2-1/+8
PR tui/14486 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN is not NULL before referencing it.
2012-08-27gdb/Jan Kratochvil5-2/+105
* breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New variable pc. Call find_pc_line instead of find_pc_overlay, restore original PC for it. gdb/testsuite/ * gdb.base/break-caller-line.c: New file. * gdb.base/break-caller-line.exp: New file.
2012-08-27gdb/Jan Kratochvil4-9/+64
* auto-load.c (auto_load_objfile_script): Rename to ... (auto_load_objfile_script_1): ... here, change variable realname to parameter realname, document it, add return value, add variable retval. (auto_load_objfile_script): New function. gdb/doc/ * gdb.texinfo (objfile-gdb.py file): New paragraph for .exe stripping.
2012-08-27gdb/Jan Kratochvil2-1/+9
* cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not followed by a whitespace.
2012-08-27ChangeLog fix:Jan Kratochvil1-0/+1
PR gdb/14494. * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here. Move the SEC_HAS_CONTENTS check here - for any NAMES use. (dwarf2_locate_sections) <eh_frame>: Move the variable and check from here.
2012-08-27gdb/Jan Kratochvil2-8/+14
* dwarf2read.c (dwarf2_locate_sections): Move variable aflag here. Move the SEC_HAS_CONTENTS check here - for any NAMES use. (dwarf2_locate_sections) <eh_frame>: Move the variable and check from here.
2012-08-27gdb/testsuite/Jan Kratochvil4-0/+119
* gdb.ada/rdv_wait.exp (set debug-file-directory): New command. * gdb.arch/i386-cfi-notcurrent.S: New file. * gdb.arch/i386-cfi-notcurrent.exp: New file.
2012-08-272012-08-27 Wei-cheng Wang <cole945@gmail.com>Pedro Alves4-1/+106
* memattr.c (create_mem_region): Fix memory region overlapping checking. 2012-08-27 Wei-cheng Wang <cole945@gmail.com> Yao Qi <yao@codesourcery.com> Pedro Alves <palves@redhat.com> * gdb.base/memattr.exp (delete_memory, region_pass, region_fail): New procedures. (top level): Add overlap checking tests.
2012-08-27*** empty log message ***gdbadmin1-1/+1
2012-08-26*** empty log message ***gdbadmin1-1/+1
2012-08-25*** empty log message ***gdbadmin1-1/+1
2012-08-24 * lib/gdb.exp (skip_unwinder_tests): Don't leave 'ok' set ifTom Tromey2-3/+7
gdb_test_multiple fails for other reasons.
2012-08-24Move misplaced entries from gdb/ChangeLog to gdb/doc/ChangeLog.Yit Phang Khoo2-3/+12
2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu> Document how to return from "python-interactive" to GDB. * gdb.texinfo (Python Commands): Update documentation. 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu> Add a new "python-interactive" command that starts a standard Python interactive prompt with "pi" as alias, and add "py" as an alias to "python". * gdb.texinfo (Python Commands): Document the new commands.
2012-08-24 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe allocaSiddhesh Poyarekar5-7/+31
with xmalloc/cleanup. * mt-tdep.c (mt_push_dummy_call): Likewise. * tilegx-tdep.c (tilegx_push_dummy_call): Likewise. * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.