aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-05-27Automatic date update in version.inGDB Administrator1-1/+1
2017-05-26Fix compilation errors with mingw.org's MinGW runtime 3.XEli Zaretskii3-1/+52
gdb/ChangeLog: 2017-05-26 Eli Zaretskii <eliz@gnu.org> * cli/cli-script.c (user_args::insert_args): Call gdb::to_string. * common/common-utils.h (REPLACE_TO_STRING) [__MINGW32__]: Define to 1 if std::to_string is not available. (gdb::to_string) [REPLACE_TO_STRING]: Provide a replacement implementation for std::string.
2017-05-26Automatic date update in version.inGDB Administrator1-1/+1
2017-05-25Automatic date update in version.inGDB Administrator1-1/+1
2017-05-24Automatic date update in version.inGDB Administrator1-1/+1
2017-05-23Automatic date update in version.inGDB Administrator1-1/+1
2017-05-22Automatic date update in version.inGDB Administrator1-1/+1
2017-05-21Automatic date update in version.inGDB Administrator1-1/+1
2017-05-20Automatic date update in version.inGDB Administrator1-1/+1
2017-05-19Fix tui compilation with Solaris libcurses: clear define (PR tui/21482)Rainer Orth2-0/+14
2017-05-19Fix tui compilation with Solaris libcurses: non-const last arg to mvwaddstr ↵Rainer Orth4-5/+15
(PR tui/21482)
2017-05-19Avoid MinGW compilation warning in readline/input.cEli Zaretskii2-0/+6
This change was already accepted upstream in Readline. readline/ChangeLog.gdb: 2017-05-19 Eli Zaretskii <eliz@gnu.org> * input.c [_WIN32]: Include <conio.h> to avoid compiler warning on MinGW. (cherry picked from commit 50e1d299ef1d21b0833c2fe1484d3cc374e6486f)
2017-05-19Avoid compiler warning in MinGW buildEli Zaretskii2-1/+6
gdb: 2017-05-13 Eli Zaretskii <eliz@gnu.org> * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a C++ compiler warning. (cherry picked from commit adf3dde510088ef8dc46d04df05baf36adb0ed1e)
2017-05-19Automatic date update in version.inGDB Administrator1-1/+1
2017-05-18Expect prompt after no FPU warningThomas Preud'homme2-5/+9
2017-05-18 Thomas Preud'homme <thomas.preudhomme@arm.com> gdb/testsuite/ * gdb.base/float.exp: Expect GDB prompt for targets without FPU.
2017-05-18Automatic date update in version.inGDB Administrator1-1/+1
2017-05-17Add alias command to cmd_list_elementYao Qi6-15/+48
When we add alias command, we call add_alias_cmd and pass the alias name and command name. This implicitly requires the command and its prefix commands are already added to cmdlist. This may not be true, for example, add_com_alias ("tty", "set inferior-tty", class_alias, 0); "inferior-tty" command is added to setlist, but setlist may not be added to cmdlist (It depends on the order of related _initialize_XXX functions called) so that we can't find "set inferior-tty" from cmdlist. This patch fixes this problem by passing cmd_list_element of "inferior-tty" to add_alias_cmd, so that cmd_list_element of "inferior-tty" doesn't have to be reachable from cmdlist at that moment. gdb: 2017-05-17 Yao Qi <yao.qi@linaro.org> * cli/cli-decode.c (add_alias_cmd): New function. * command.h (add_alias_cmd): Declare. * infcmd.c (_initialize_infcmd): Don't call add_com_alias, instead call add_alias_cmd. gdb/testsuite: 2017-05-17 Simon Marchi <simon.marchi@ericsson.com> * gdb.base/set-inferior-tty.exp (test_set_inferior_tty): Add argument command. (top-level): Invoke test_set_inferior_tty.
2017-05-16Avoid exponential behavior in rust_evaluate_subexpTom Tromey2-8/+13
The STRUCTOP_STRUCT case in rust_evaluate_subexp would evaluate its LHS, and then, if it did not need Rust-specific treatment, it would back up and re-evaluate the entire STRUCTOP_STRUCT part of the expression using evaluate_subexp_standard. This yields exponential behavior and causes some expressions to evaluate extremely slowly. The fix is to simply do the needed work inline. This is PR rust/21483. 2017-05-12 Tom Tromey <tom@tromey.com> PR rust/21483: * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't recurse, just call value_struct_elt directly.
2017-05-16Fix rust_dump_subexp_bodyTom Tromey2-2/+8
rust_dump_subexp_body was not correct in a couple of cases. While debugging the bug I was really interested in, this caused a crash. This patch fixes the problems. No test case because, IIRC there generally aren't tests for expression dumping. 2017-05-12 Tom Tromey <tom@tromey.com> * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS, OP_RUST_ARRAY>: Fix.
2017-05-16Replace "return" with "break"Tom Tromey2-1/+5
This replaces a "return" with a "break" in rust_print_subexp, for consistency. 2017-05-12 Tom Tromey <tom@tromey.com> * rust-lang.c (rust_print_subexp): Replace "return" with "break".
2017-05-17Automatic date update in version.inGDB Administrator1-1/+1
2017-05-16Automatic date update in version.inGDB Administrator1-1/+1
2017-05-15Fix gdb 8.0 procfs.c compilation on SolarisRainer Orth2-2/+7
Prompted by the creation of the gdb 8.0 branch, I tried to build it on x86_64-pc-solaris2.12, but failed: /vol/src/gnu/gdb/gdb-8.0-branch/local/gdb/procfs.c: In function `target_ops* procfs_target()': /vol/src/gnu/gdb/gdb-8.0-branch/local/gdb/procfs.c:186:27: error: invalid conversion from `void (*)(target_ops*, char*, char*, char**, int)' to `void (*)(target_ops*, const char*, const string&, char**, int) {aka void (*)(target_ops*, const char*, const std::__cxx11::basic_string<char>&, char**, int)}' [-fpermissive] t->to_create_inferior = procfs_create_inferior; ^~~~~~~~~~~~~~~~~~~~~~ /vol/src/gnu/gdb/gdb-8.0-branch/local/gdb/procfs.c: At global scope: /vol/src/gnu/gdb/gdb-8.0-branch/local/gdb/procfs.c:125:13: warning: `void procfs_create_inferior(target_ops*, char*, char*, char**, int)' declared `static' but never defined [-Wunused-function] static void procfs_create_inferior (struct target_ops *, char *, ^~~~~~~~~~~~~~~~~~~~~~ /vol/src/gnu/gdb/gdb-8.0-branch/local/gdb/procfs.c:4529:1: warning: `void procfs_create_inferior(target_ops*, const char*, const string&, char**, int)' defined but not used [-Wunused-function] procfs_create_inferior (struct target_ops *ops, const char *exec_file, ^~~~~~~~~~~~~~~~~~~~~~ This can easily be fixed by the following patch. * procfs.c (procfs_create_inferior): Change prototype to match definition.
2017-05-15Automatic date update in version.inGDB Administrator1-1/+1
2017-05-14Automatic date update in version.inGDB Administrator1-1/+1
2017-05-13Automatic date update in version.inGDB Administrator1-1/+1
2017-05-12Automatic date update in version.inGDB Administrator1-1/+1
2017-05-11Automatic date update in version.inGDB Administrator1-1/+1
2017-05-10Automatic date update in version.inGDB Administrator1-1/+1
2017-05-09Automatic date update in version.inGDB Administrator1-1/+1
2017-05-08Automatic date update in version.inGDB Administrator1-1/+1
2017-05-07Automatic date update in version.inGDB Administrator1-1/+1
2017-05-06Automatic date update in version.inGDB Administrator1-1/+1
2017-05-05Automatic date update in version.inGDB Administrator1-1/+1
2017-05-04Bump GDB version number to 7.99.91.DATE-git.Joel Brobecker3-2/+7
gdb/ChangeLog: * version.in: Set GDB version number to 7.99.91.DATE-git. * PROBLEMS: Likewise.
2017-05-04Document the GDB 7.99.91 release in gdb/ChangeLogJoel Brobecker1-0/+4
gdb/ChangeLog: GDB 7.99.91 released.
2017-05-04Set GDB version number to 7.99.91.Joel Brobecker3-2/+7
gdb/ChangeLog: * version.in: Set GDB version number to 7.99.91. * PROBLEMS: Likewise.
2017-05-04gdb/NEWS: rewrite "since GDB 7.12" into "in GDB 8.0"Joel Brobecker2-1/+6
gdb/ChangeLog: * NEWS: Rename the "Changes since GDB 7.12" section into "Changes in GDB 8.0".
2017-05-04Fix gdb.python/py-record-btrace-threads.exp with Python 3Pedro Alves2-2/+7
Fix several instances of: ... python print not f1calls File "<string>", line 1 print not f1calls ^ SyntaxError: Missing parentheses in call to 'print' Error while executing Python code. (gdb) FAIL: gdb.python/py-record-btrace-threads.exp: thread=1: checking thread 1: python print not f1calls ... gdb/testsuite/ChangeLog: 2017-05-04 Pedro Alves <palves@redhat.com> * gdb.python/py-record-btrace-threads.exp (check_insn_for_thread): Add parens to print call for Python 3.
2017-05-04Python: Introduce gdb.Instruction classTim Wiederhake9-19/+143
This adds a generic instruction class to Python and has gdb.RecordInstruction inherit from it.
2017-05-04Python: Move and rename gdb.BtraceFunctionTim Wiederhake9-221/+309
Remove gdb.BtraceFunctionCall and replace by gdb.FunctionSegment. Additionally, rename prev_segment and next_segment to prev and next.
2017-05-04Python: Move and rename gdb.BtraceInstructionTim Wiederhake7-166/+388
Remove gdb.BtraceInstruction and replace by gdb.RecordInstruction.
2017-05-04Python: Introduce gdb.RecordGap classTim Wiederhake8-62/+182
As discussed here: https://sourceware.org/ml/gdb-patches/2017-04/msg00157.html A gap is not an instruction and it should not pretend to be one. gdb.Record.instruction_history is now a list of gdb.RecordInstruction and gdb.RecordGap objects. This allows the user to deal with Gaps in the record in a more sane way.
2017-05-04Python: Remove ptid from gdb.Record interfaceTim Wiederhake6-19/+13
As discussed here: https://sourceware.org/ml/gdb-patches/2017-04/msg00166.html
2017-05-04Python: Use correct ptid in btrace recordingTim Wiederhake8-29/+224
The user would always get the instruction_history and function_call_history objects of the current thread, not the thread for which the gdb.Record object was created. The attached testcase fails without this patch and passes with the patch.
2017-05-04Python: Fix indentation in py-record-btrace.cTim Wiederhake2-30/+36
2017-05-04Automatic date update in version.inGDB Administrator1-1/+1
2017-05-03Make sure malloc is linked into gdb.cp/oranking.cc.Keith Seitz2-0/+22
On some platforms, e.g., arm-eabi-none, we need to make certain that malloc is linked into the program because the test suite uses function calls requiring malloc: (gdb) p foo101("abc") evaluation of this expression requires the program to have a function "malloc". gdb/testsuite/ChangeLog * gdb.cp/oranking.cc (dummy): New function to grab malloc. (main): Call it.
2017-05-03Automatic date update in version.inGDB Administrator1-1/+1
2017-05-02Automatic date update in version.inGDB Administrator1-1/+1