Commit Graph

31284 Commits

Author SHA1 Message Date
Jan Kratochvil 21a7b08989 gdb/testsuite/
Fix recent gdb_breakpoint regression.
	* gdb.java/jmisc.exp: gdb_breakpoint for $function - remove curly
	braces from the parameter.
	* gdb.java/jprint.exp: Likewise.
2012-10-15 19:11:56 +00:00
Doug Evans 2c47921e64 * lib/gdb.exp (runto): Fix call to gdb_breakpoint. 2012-10-15 17:35:54 +00:00
Joel Brobecker 89398707cd Remove trailing '#' in gdb.dwarf2/dw2-icc-opaque.S
gdb/testsuite/ChangeLog:

        * gdb.dwarf2/dw2-icc-opaque.S: Remove '#'.
2012-10-15 17:26:14 +00:00
Joel Brobecker c83393b9a8 Build with -DMS_WIN64 on amd64-windows if Python enabled...
... and building with GCC.

gdb/ChangeLog:

        * configure.ac: Build with -DMS_WIN64 if building with Python
        enabled using GCC on amd64-windows.
        * configure: Regenerate.
2012-10-15 17:17:54 +00:00
Tom Tromey 801e418523 PR python/14635:
* python/py-symtab.c (del_objfile_sal): Set 'symtab' field
	to Py_None.
testsuite
	* gdb.python/py-symtab.exp: Test sal and symtab destructors.
2012-10-15 15:23:47 +00:00
Tom Tromey 74f910c87c PR python/14634:
* python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
testsuite
	* gdb.python/py-symbol.exp: Test symbol destructor.
2012-10-15 15:20:27 +00:00
gdbadmin 864562f620 *** empty log message *** 2012-10-15 00:00:33 +00:00
Yao Qi 91567807f8 gdb/testsuite/
* gdb.mi/mi2-cli.exp: Move to mi-cli.exp.
	* gdb.mi/mi-cli.exp: New.

	* gdb.mi/mi2-basics.exp: Remove.
	* gdb.mi/mi2-break.exp: Remove.
	* gdb.mi/mi2-console.exp: Remove.
	* gdb.mi/mi2-disassemble.exp: Remove.
	* gdb.mi/mi2-eval.exp: Remove.
	* gdb.mi/mi2-file.exp: Remove.
	* gdb.mi/mi2-hack-cli.exp: Remove.
	* gdb.mi/mi2-pthreads.exp: Remove.
	* gdb.mi/mi2-read-memory.exp: Remove.
	* gdb.mi/mi2-regs.exp: Remove.
	* gdb.mi/mi2-return.exp: Remove.
	* gdb.mi/mi2-simplerun.exp: Remove.
	* gdb.mi/mi2-stack.exp: Remove.
	* gdb.mi/mi2-stepi.exp: Remove.
	* gdb.mi/mi2-syn-frame.exp: Remove.
	* gdb.mi/mi2-until.exp: Remove.
	* gdb.mi/mi2-watch.exp: Remove.
	* gdb.mi/mi2-var-block.exp: Remove.
	* gdb.mi/mi2-var-cmd.exp: Remove.
	* gdb.mi/mi2-var-display.exp: Remove.
2012-10-14 12:24:08 +00:00
gdbadmin 088aad051f *** empty log message *** 2012-10-14 00:00:03 +00:00
gdbadmin 5d973135d4 *** empty log message *** 2012-10-13 00:00:32 +00:00
Yao Qi 8733202903 gdb/testsuite/
* gdb.mi/mi-breakpoint-changed.exp (test_pending_resolved): Remove
	trail '.*' on matching patterns.
2012-10-12 00:02:23 +00:00
gdbadmin 299f893db6 *** empty log message *** 2012-10-12 00:00:33 +00:00
Andrew Burgess 2a7c8fd5b4 http://sourceware.org/ml/gdb-patches/2012-10/msg00032.html
gdb/ChangeLog

        * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
        reset thread numbering back to 1.
2012-10-11 21:25:18 +00:00
H.J. Lu 11fc905705 Use is_x86_like_target to check x86 targets
* gdb.arch/i386-bp_permanent.exp: Skip if not is_x86_like_target.
	* gdb.arch/i386-cfi-notcurrent.exp: Likewise.
	* gdb.arch/i386-disp-step.exp: Likewise.
	* gdb.arch/i386-gnu-cfi.exp: Likewise.
	* gdb.arch/i386-prologue.exp: Likewise.
	* gdb.arch/i386-size-overlap.exp: Likewise.
	* gdb.arch/i386-size.exp: Likewise.
	* gdb.arch/i386-unwind.exp: Likewise.
2012-10-11 17:42:58 +00:00
H.J. Lu 7d46bcdc05 Check byte/word registers on x86_64
* gdb.arch/i386-byte.exp: Remove is_ilp32_target check.
	* gdb.arch/i386-word.exp: Likewise.
2012-10-11 17:41:33 +00:00
H.J. Lu 31224d9db8 Check is_amd64_regs_target to to set nr_regs
* gdb.arch/i386-avx.exp: Check is_amd64_regs_target instead of
	is_ilp32_target to set nr_regs.
	* gdb.arch/i386-sse.exp: Likewise.
2012-10-11 17:40:30 +00:00
Doug Evans 7c09e5a0f7 PR breakpoints/14643.
* linespec.c (struct ls_parser): New member keyword_ok.
	(linespec_lexer_lex_string): Add comment.
	(linespec_lexer_lex_one): Ignore keywords if it's the wrong place
	for one.
	(parse_linespec): Set keyword_ok.

	testsuite/
	* gdb.linespec/ls-errs.exp: Change tests of "b if|task|thread".
	* gdb.linespec/thread.c: New file.
	* gdb.linespec/thread.exp: New file.
2012-10-11 16:12:05 +00:00
Doug Evans 5b7d00507b * lib/gdb.exp (gdb_breakpoint): Fix varargs scan.
Recognize "message" -> print pass and fail.  Add eof case.
	(runto): Recognize message, no-message.  Print pass/fail if requested,
	with same treatment as gdb_breakpoint.
	(runto_main): Pass no-message to runto.
	(gdb_internal_error_resync): Add log message.
	(gdb_file_cmd): Tweak internal error fail text for consistency.
2012-10-11 15:59:57 +00:00
Doug Evans 844226d69a * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
"0x" prefix on address in log message.
2012-10-11 02:21:50 +00:00
Doug Evans a1855c1db0 * dwarf2read.c (read_1_byte): Add const to buf parameter.
(read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
	(read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
	(lookup_dwo_file): Add const to dwo_name parameter.
	(lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2012-10-11 02:07:22 +00:00
gdbadmin 95883d846f *** empty log message *** 2012-10-11 00:00:32 +00:00
gdbadmin fd49b9b373 *** empty log message *** 2012-10-10 00:00:03 +00:00
gdbadmin 4d5f33b647 *** empty log message *** 2012-10-09 00:00:20 +00:00
gdbadmin c1d02113e8 *** empty log message *** 2012-10-08 00:00:33 +00:00
gdbadmin 126568efd0 *** empty log message *** 2012-10-07 00:00:32 +00:00
Jan Kratochvil 2e24f4aab7 gdb/
Fix crash during stepping on ppc32.
	* ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
	SYM.

gdb/testsuite/
	Fix crash during stepping on ppc32.
	* gdb.base/step-symless.c: New file.
	* gdb.base/step-symless.exp: New file.
2012-10-06 21:10:33 +00:00
gdbadmin 355fed6729 *** empty log message *** 2012-10-06 00:00:02 +00:00
gdbadmin 8ba8064654 *** empty log message *** 2012-10-05 00:00:02 +00:00
gdbadmin 95d958a2bf *** empty log message *** 2012-10-04 00:00:03 +00:00
Doug Evans aa14df2525 PR symtab/14601
* buildsym.c (buildsym_init): Reset using_directives to NULL.

	testsuite/
	* gdb.cp/using-crash.exp: New file.
	* gdb.cp/using-crash.cc: New file.
2012-10-03 17:05:00 +00:00
gdbadmin 159f5996f2 *** empty log message *** 2012-10-03 00:00:03 +00:00
Andrew Burgess 3d46829657 http://sourceware.org/ml/gdb-patches/2012-10/msg00027.html
gdb/ChangeLog

        * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
        output and use uint32_t not long to ensure 4 byte size.
2012-10-02 21:52:43 +00:00
Doug Evans 975531dbc9 * lib/gdb.exp (gdb_unload): Change wording of perror text to be
more consistent.
	(runto,gdb_debug_format): Ditto.
	(gdb_file_cmd): Watch for eof in nested gdb_expect.
	Clean up logging and error messages.
2012-10-02 17:17:45 +00:00
Joel Brobecker 8f0ee2eb7c gdb_bfd_unref failed assertion on AIX.
Trying to run any program on AIX triggers a failed assertion:

    (gdb) run
    Starting program: /[...]/simple_main
    /[...]/gdb_bfd.c:288: internal-error: gdb_bfd_unref: Assertion `gdata->refc >= 1' failed.
    A problem internal to GDB has been detected,
    further debugging may prove unreliable.
    Quit this debugging session? (y or n)

What happens is that we have a loop where we forgot to update
the value of "last", resulting in the loop unref'ing the same
BFD over and over again. We bomb the second time around, when
triggering an assertion on the ref counter.

gdb/ChangeLog:

        * rs6000-nat.c (add_vmap): Set "last" to "next" after having
        unref'ed it.
2012-10-02 15:05:42 +00:00
gdbadmin 547c8182c5 *** empty log message *** 2012-10-02 00:00:33 +00:00
Andrew Burgess b3dc46ff7c http://sourceware.org/ml/gdb-patches/2012-09/msg00568.html
gdb/ChangeLog

        * target.c (simple_search_memory): Include access length in
        warning message.

gdb/gdbserver/ChangeLog

        * server.c (handle_search_memory_1): Include access length in
        warning message.

gdb/testsuite/ChangeLog

        Test find command on unmapped memory.
        * gdb.base/find-unmapped.c: New file.
        * gdb.base/find-unmapped.exp: New file.
2012-10-01 12:02:13 +00:00
gdbadmin f7b660e280 *** empty log message *** 2012-10-01 00:00:02 +00:00
gdbadmin 09f503ee78 *** empty log message *** 2012-09-30 00:00:03 +00:00
Yao Qi 45814d4572 gdb/testsuite/
* gdb.trace/mi-tracepoint-changed.exp: New.
	* gdb.mi/mi-breakpoint-changed.exp: New.
	* gdb.mi/pending.c, gdb.mi/pendshr1.c: New
	* gdb.mi/pendshr2.c: New.
2012-09-29 00:03:56 +00:00
gdbadmin 2d8066705f *** empty log message *** 2012-09-29 00:00:05 +00:00
Edjunior Barbosa Machado f712f01fdf 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
Edjunior Machado  <emachado@linux.vnet.ibm.com>

	PR gdb/13989
	* solib.c (solib_find): Prevent GDB from loading native libraries when
	debugging a cross-target corefile.
2012-09-28 20:20:08 +00:00
Pedro Alves 39181896f1 2012-09-28 selven <pcthegreat@gmail.com>
Make definition match declaration.

	* regcache.c (regcache_register_status): Change return type to
	enum register_status.
2012-09-28 12:04:28 +00:00
Yao Qi 4c2786ba1e gdb/
* mi/mi-main.c (mi_cmd_data_write_memory): Call
	write_memory_with_notification instead of write_memory.
	(mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
	instead of target_write_memory.

gdb/testsuite/
	* gdb.mi/pr11022.exp: New.
	* gdb.mi/pr11022.c: New.  Copied from gdb.base/.
2012-09-28 00:39:18 +00:00
Yao Qi 1ae0c35e7e gdb/
* mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
	when the length of content is not an even number.
2012-09-28 00:25:24 +00:00
gdbadmin 8b1a6dc45d *** empty log message *** 2012-09-28 00:00:02 +00:00
Tom Tromey 7977e5d2a6 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
* cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
gdb/testsuite
	* gdb.cp/derivation.exp: Add regression test.
	* gdb.cp/derivation.cc (class V_base, class V_inter, class
	V_derived): New.
	(vderived): New global.
2012-09-27 16:04:23 +00:00
Joel Brobecker 807160da3c sol-thread.c: Remove commented-out code.
gdb/ChangeLog:

        * sol-thread.c (sol_thread_fetch_registers)
        (sol_thread_store_registers): Delete commented out code.
2012-09-27 12:53:57 +00:00
Joel Brobecker 43c75337b6 New unit sparc-sol-thread.c extracted from sol-thread.c
Moving some sparc-specific routines out of sol-thread.c into their
own (new) file.

gdb/ChangeLog:

        * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
        Move these functions to sparc-sol-thread.c.
        * sparc-sol-thread.c: New file.
        * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
        sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
        configurations.
        * configure: Regenerate.
2012-09-27 12:53:44 +00:00
Joel Brobecker d292a9723d sol-thread.c: Remove #if 0-ed code.
gdb/ChangeLog:

        * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
        Remove commented-out code.
2012-09-27 12:53:13 +00:00
Joel Brobecker 8c3da00317 sol-thread.c: conditionalize some sparc-specific libthread_db functions.
gdb/ChangeLog:

        * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
        Enable this code for sparc hosts only.
2012-09-27 12:52:53 +00:00