aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2012-08-09*** empty log message ***gdbadmin1-1/+1
2012-08-08 * utils.c (prompt_for_continue_wait_time): New static global.Doug Evans2-0/+47
(make_command_stats_cleanup): Initialize it. (report_command_stats): Subtract time waiting for user. (prompt_for_continue): Track time waiting for user. (defaulted_query): Track time waiting for user.
2012-08-08 * eval.c (evaluate_subexp_standard): Fix thinko in handlingDoug Evans8-11/+137
UNOP_MEMVAL_TYPE. * expprint.c (print_subexp_standard, case OP_TYPE): New. (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos. (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto. (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto. (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto. (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment elt. (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto. (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto. (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto. (dump_prefix_expression): Handle OP_TYPE. testsuite/ * gdb.base/debug-expr.c: New file. * gdb.base/debug-expr.exp: New file. * gdb.base/exprs.exp: Test {type} casts. * gdb.cp/debug-expr.exp: New file.
2012-08-08 * breakpoint.c (parse_breakpoint_sals): Remove unused variableKeith Seitz2-2/+5
addr_start.
2012-08-08 * gdb_string.h: Moved to ...Doug Evans10-57/+112
* common/gdb_string.h: ... here. * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of gdb_string.h and gdb_assert.h. gdbserver/ * configure.ac: Add check for strstr. * config.in: Regenerate. * configure: Regenerate. * linux-thread-db.c: #include "gdb_vecs.h". (try_thread_db_load_from_pdir_1): New arg "subdir". All callers updated. (try_thread_db_load_from_pdir): New arg "subdir". All callers updated. (thread_db_load_search): Use a vector to iterate over path elements. Handle text appearing after "$pdir". gdbserver/ * Makefile.in (SFILES): Add gdb_vecs.c. (OBS): Add gdb_vecs.o. (gdb_vecs_h, host_defs_h): New variables. (thread-db.o): Add $(gdb_vecs_h) dependency. (gdb_vecs.o): New rule. * thread-db.c: #include "gdb_vecs.h". (thread_db_load_search): Use a vector to iterate over path elements. Handle text appearing after "$pdir".
2012-08-08gdb/Yao Qi2-24/+7
* tic6x-tdep.c (tic6x_register_to_value): Remove. (tic6x_value_to_register): Likewise. (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value and set_gdbarch_value_to_register.
2012-08-08*** empty log message ***gdbadmin1-1/+1
2012-08-07gdb/testsuite/Jan Kratochvil2-2/+14
* gdb.base/valgrind-infcall.exp (continue #$continue_count): Use global variable loop, not a 'break'. Add loop count limit to 100. Add new fail case for terminated vgdb.
2012-08-07gdb/doc/Jan Kratochvil2-5/+11
* gdbint.texinfo (Debugging GDB): In section 'Debugging @value{GDBN} with itself' change .gdbinit for gdb-gdb.gdb. Mention also gdb-gdb.py.
2012-08-07gdb/Jan Kratochvil11-12/+219
PR 11804 * defs.h (find_memory_region_ftype): New comment. New arg modified. * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value. * gcore.c (gcore_create_callback): New function comment. Add modified parameter. Only write modified regions. Set SEC_READONLY exactly according to MODIFIED. (objfile_find_memory_regions): Ignore separate debug info files. Ass the passed modified value to FUNC. * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value. * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file first. New variables modified and has_anonymous. Parse the lines of smaps file. Add the passed MODIFIED value to FUNC. * procfs.c (find_memory_regions_callback): Add the passed modified value. gdb/testsuite/ PR 11804 * gdb.base/gcore-relro.exp: New file. * gdb.base/gcore-relro-main.c: New file. * gdb.base/gcore-relro-lib.c: New file.
2012-08-07gdb/testsuite/Jan Kratochvil2-1/+27
Do not false FAIL with old GCCs. * gdb.base/watchpoint.exp (self-delete local watch) <$no_hw>: XFAIL for GCC < 4.5 in $no_hw mode.
2012-08-07gdb/testsuite/Jan Kratochvil2-1/+5
* gdb.base/default.exp (cd): Accept new directory with no arguments.
2012-08-07gdb/doc:Yao Qi2-2/+8
Revert the folloing patch: 2012-08-06 Yao Qi <yao@codesourcery.com> * gdb.texinfo (Remote Configuration): Add kindex for 'set remote hardware-watchpoint-limit' and 'set remote hardware-breakpoint-limit'.
2012-08-07*** empty log message ***gdbadmin1-1/+1
2012-08-06gdb/testsuite/Jan Kratochvil2-0/+12
* gdb.base/list.exp (test_only_end): New function. Call it.
2012-08-06 * dwarf2-frame.c (clear_pointer_cleanup): New function.Tom Tromey3-2/+24
(dwarf2_frame_cache): Use it. * frame-unwind.h (frame_sniffer_ftype): Document prologue cache initialization constraint.
2012-08-06 PR python/14386:Tom Tromey6-3/+40
* varobj.c (update_dynamic_varobj_children): Don't call PyIter_Check. gdb/testsuite * gdb.python/py-mi.exp: Add test for printer whose children are a list. * gdb.python/py-prettyprint.c (struct children_as_list): New. (main): New variable children_as_list. * gdb.python/py-prettyprint.py (class pp_children_as_list): New. (register_pretty_printers): Register new printer.
2012-08-06 PR cli/14392:Tom Tromey2-1/+6
* cli/cli-cmds.c (list_command): Filter 'sals_end'.
2012-08-06gdb/Jan Kratochvil5-3/+17
2012-08-06 Nathaniel Flath <flat0103@gmail.com> * NEWS: New entry for 'cd' default parameters. * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment. gdb/doc/ 2012-08-06 Nathaniel Flath <flat0103@gmail.com> * gdb.texinfo (Working Directory): Added information about new default argument for 'cd' command.
2012-08-06gdb/doc/Yao Qi2-0/+8
* gdb.texinfo (Remote Configuration): Add kindex for 'set remote hardware-watchpoint-limit' and 'set remote hardware-breakpoint-limit'.
2012-08-06gdb/doc/Yao Qi2-2/+10
Fix PR14371. * gdb.texinfo (GDB/MI Async Records): Fix the doc for '=breakpoint-deleted'.
2012-08-06*** empty log message ***gdbadmin1-1/+1
2012-08-05*** empty log message ***gdbadmin1-1/+1
2012-08-04*** empty log message ***gdbadmin1-1/+1
2012-08-03 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups beforeTom Tromey2-0/+6
return.
2012-08-032012-08-03 Edjunior Machado <emachado@linux.vnet.ibm.com>Edjunior Barbosa Machado2-1/+10
* gdb.base/valgrind-infcall.exp: Expect leading `.' on ppc64's symbols. Abort if vgdb remote connection is closed.
2012-08-03*** empty log message ***gdbadmin1-1/+1
2012-08-02 * gdb.base/info-fun.exp: Fix failures on m68k, ppc64, s390x.Doug Evans2-1/+13
2012-08-022012-08-02 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior2-1/+6
* gdb.base/pc-fp.exp: Adjust testcase to match different outputs from s390x, PowerPC 64 and m68k-linux.
2012-08-02 * gdb.base/annota1.exp: Accept no frames-invalid notificationUlrich Weigand5-3/+22
when starting up the program. * gdb.python/py-value.exp (test_value_numeric_ops): Pointers may show a symbolic value as well. * gdb.server/server-exec-info.exp: Skip test when skipping gdbserver test and/or when skipping shared library tests. * gdb.threads/linux-dp.exp: Unset "seen" when done with it to avoid name conflicts with other tests.
2012-08-02 * gdb.dwarf2/dw2-icc-opaque.S: Remove .align directives.Ulrich Weigand3-10/+19
Fix wrong output on big-endian systems. * gdb.dwarf2/dw2-icc-opaque.exp: Expect @mode32 attribute on 4-byte pointer types on 64-bit s390x.
2012-08-02 * gdb.base/watchpoint.c (func2): Initialize local_a. AddUlrich Weigand3-14/+26
marker comment at the beginning (after intialization). * gdb.base/watchpoint.exp (test_complex_watchpoint): Set func2 breakpoint on marker comment instead of function begin. (test_wide_location_1): Do not expect HW watchpoints on 32-bit PowerPC. (test_wide_location_2): Do not expect HW watchpoints on 32-bit or 64-bit PowerPC. (do_tests): Consistently set can-use-hw-watchpoints to 0 if gdb,no_hardware_watchpoints flag is set. (initialize): Remove now redundant can-use-hw-watchpoints change.
2012-08-02ChangeLog:Ulrich Weigand4-12/+44
* inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back to attempting lseek/write. (inf_child_fileio_pread): Likewise for pread. gdbserver/ChangeLog: * hostio.c (handle_pread): If pread fails, fall back to attempting lseek/read. (handle_pwrite): Likewise for pwrite.
2012-08-02gdb/Yao Qi34-174/+255
* dwarf2loc.c (entry_values_debug): Add 'unsigned'. (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * dwarf2loc.h: Update the declaration of 'entry_values_debug'. * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'. (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'. (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * frame.c (frame_debug): Add 'unsigned'. (_intialize_frame): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * frame.h: Update the declaration of 'frame_debug'. * gdbtypes.c (overload_debug): Add 'unsigned'. (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * inferior.h: Update declaration of 'debug_infrun'. * infrun.c (debug_infrun): Add 'unsigned'. (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * jit.c (jit_debug): Add 'unsigned'. (_initialize_jit): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * linux-nat.c (debug_linux_nat): Add 'unsigned'. (_initialize_linux_nat): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * linux-thread-db.c (libthread_db_debug): Add 'unsigned'. (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * machoread.c (mach_o_debug_level): Add 'unsigned'. (_initialize_machoread): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'. * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'. (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd intead of add_setshow_zinteger_cmd. * mips-tdep.c (mips_debug): Add 'unsigned'. (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * monitor.c (monitor_debug): Add 'unsigned'. (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * observer.c (observer_debug): Add 'unsigned'. (_initialize_observer): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * parse.c (expressiondebug): Add 'unsigned'. (_initialize_parse): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * record.c (record_debug): Add 'unsigned'. (_initialize_record): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * record.h: Update the declaration of 'record_debug'. * stap-probe.c (stap_expression_debug): Add 'unsigned'. (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * serial.c (global_serial_debug_p): Add 'unsigned'. (_initialize_serial): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'. (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * solib-frv.c (solib_frv_debug): Add 'unsigned'. (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * target.c (targetdebug): Add 'unsigned'. (initialize_targets): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * valops.c (overload_debug): Add 'unsigned'. * varobj.c (varobjdebug): Add 'unsigned'. (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'. (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * arch-utils.h: Remove the declaration of 'gdbarch_debug'. * gdbarch.sh (gdbarch_debug): Add 'unsigned'. (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * gdbarch.c, gdbarch.h: Re-generated.
2012-08-02gdb/Yao Qi5-46/+13
* nto-tdep.c: Don't include cli/cli-decode.h and cli/cli-cmds.h. (_initialize_nto_tdep): Remove. * nto-tdep.h (struct nto_target_ops) <internal_debugging>: Remove field. Remove macro nto_internal_debugging. gdb/doc/ * gdb.texinfo (Native): Remove node Neutrino.
2012-08-02gdb/testsuite:Yao Qi2-0/+60
* boards/local-remote-host.exp: New.
2012-08-02*** empty log message ***gdbadmin1-1/+1
2012-08-01 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.Richard Henderson2-2/+7
(mep-*-*) [gdb_target_obs]: Likewise.
2012-08-01 * gdb.base/catch-load.exp: Fix argument to gdb_load_shlibs.Ulrich Weigand5-2/+17
* gdb.base/ctxobj.exp: Call gdb_load_shlibs. * gdb.base/print-file-var.exp: Likewise. * gdb.server/solib-list.exp: Skip on remote targets.
2012-08-01gdbserver/ChangeLog:Ulrich Weigand4-15/+58
* linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish between unsupported TYPE and unimplementable ADDR/LEN combination. (arm_insert_point): Act on new return value. testsuite/ChangeLog: * gdb.base/watchpoint.exp (test_wide_location_1): Expect software watchpoints on ARM. When expecting software watchpoints, tolerate (remote) targets that report unsupported hardware watchpoint only at continue time. (test_wide_location_2): Likewise.
2012-08-01gdb/testsuite/Jan Kratochvil2-1/+6
* gdb.base/valgrind-infcall.exp: Relax the UNSUPPORTED check for more valgrind versions.
2012-08-01*** empty log message ***gdbadmin1-1/+1
2012-07-31* ppc-linux-tdep.c (ppc_linux_init_abi): RegisterAndreas Schwab2-37/+44
linux_get_siginfo_type.
2012-07-312012-07-31 Pedro Alves <palves@redhat.com>Pedro Alves2-5/+9
* server.c (process_point_options): Only skip tokens if we find one that is unrecognized. Don't treat 'X' specially while skipping unrecognized tokens.
2012-07-31gdb/testsuite/Jan Kratochvil2-1/+8
* gdb.base/valgrind-db-attach.exp: Do not run in remote mode.
2012-07-31gdb/Jan Kratochvil5-7/+203
* infcall.c (call_function_by_hand): Move BP_ADDR comment to AT_ENTRY_POINT. (call_function_by_hand) <ON_STACK>: Call write_memory with gdbarch_breakpoint_from_pc, if possible. (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved here. gdb/testsuite/ * gdb.base/valgrind-infcall.c: New file. * gdb.base/valgrind-infcall.exp: New file.
2012-07-31gdb/Yao Qi2-6/+10
* tracepoint.c: Add 'static' for some variables.
2012-07-31gdb/Yao Qi4-1/+12
* go32-nat.c: Declare _initialize_go32_nat. * ser-go32.c: Declare _initialize_ser_dos. * top.c (do_chdir_cleanup): Add 'static'.
2012-07-31*** empty log message ***gdbadmin1-1/+1
2012-07-30 * linespec.c (linespec_lex_number): A number followedKeith Seitz3-2/+10
by quotes is a valid number, too. * gdb.linespec/ls-errs.exp: Check some quote-enclosed linespecs.