aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2012-10-11Check is_amd64_regs_target to to set nr_regsH.J. Lu3-6/+12
* 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 PR breakpoints/14643.Doug Evans6-3/+107
* 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 * lib/gdb.exp (gdb_breakpoint): Fix varargs scan.Doug Evans2-23/+105
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 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicateDoug Evans2-1/+4
"0x" prefix on address in log message.
2012-10-11 * dwarf2read.c (read_1_byte): Add const to buf parameter.Doug Evans2-17/+25
(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*** empty log message ***gdbadmin1-1/+1
2012-10-10*** empty log message ***gdbadmin1-1/+1
2012-10-09*** empty log message ***gdbadmin1-1/+1
2012-10-08*** empty log message ***gdbadmin1-1/+1
2012-10-07*** empty log message ***gdbadmin1-1/+1
2012-10-06gdb/Jan Kratochvil5-2/+94
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*** empty log message ***gdbadmin1-1/+1
2012-10-05*** empty log message ***gdbadmin1-1/+1
2012-10-04*** empty log message ***gdbadmin1-1/+1
2012-10-03 PR symtab/14601Doug Evans5-0/+87
* 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*** empty log message ***gdbadmin1-1/+1
2012-10-02http://sourceware.org/ml/gdb-patches/2012-10/msg00027.htmlAndrew Burgess2-18/+21
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 * lib/gdb.exp (gdb_unload): Change wording of perror text to beDoug Evans2-9/+22
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-02gdb_bfd_unref failed assertion on AIX.Joel Brobecker2-0/+6
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*** empty log message ***gdbadmin1-1/+1
2012-10-01http://sourceware.org/ml/gdb-patches/2012-09/msg00568.htmlAndrew Burgess7-7/+178
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*** empty log message ***gdbadmin1-1/+1
2012-09-30*** empty log message ***gdbadmin1-1/+1
2012-09-29gdb/testsuite/Yao Qi6-0/+570
* 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*** empty log message ***gdbadmin1-1/+1
2012-09-282012-09-28 Nathan Miller <nathanm2@us.ibm.com>Edjunior Barbosa Machado2-5/+7
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-282012-09-28 selven <pcthegreat@gmail.com>Pedro Alves2-1/+8
Make definition match declaration. * regcache.c (regcache_register_status): Change return type to enum register_status.
2012-09-28gdb/Yao Qi5-4/+113
* 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-28gdb/Yao Qi2-0/+9
* 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*** empty log message ***gdbadmin1-1/+1
2012-09-27 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357Tom Tromey5-2/+54
* 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-27sol-thread.c: Remove commented-out code.Joel Brobecker2-54/+5
gdb/ChangeLog: * sol-thread.c (sol_thread_fetch_registers) (sol_thread_store_registers): Delete commented out code.
2012-09-27New unit sparc-sol-thread.c extracted from sol-thread.cJoel Brobecker5-28/+67
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-27sol-thread.c: Remove #if 0-ed code.Joel Brobecker2-50/+5
gdb/ChangeLog: * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs): Remove commented-out code.
2012-09-27sol-thread.c: conditionalize some sparc-specific libthread_db functions.Joel Brobecker2-0/+9
gdb/ChangeLog: * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs): Enable this code for sparc hosts only.
2012-09-27Add procfs_find_LDT_entry declaration (procfs.h).Joel Brobecker3-1/+13
Add a declaration for procfs_find_LDT_entry in order to prevent a compiler warning about this function missing one. This also helps making sure that declaration and definition remain consistent. gdb/ChangeLog: * procfs.h (procfs_find_LDT_entry): Add declaration. * sol-thread.c (ps_lgetLDT): Delete local declaration of function procfs_find_LDT_entry.
2012-09-27Make procfs.c:proc_get_LDT_entry staticJoel Brobecker2-1/+5
This function is not used outside of procfs.c. gdb/ChangeLog: * procfs.c (proc_get_LDT_entry): Make static.
2012-09-27Fix declaration of proc_find_memory_regionsJoel Brobecker2-5/+5
This function is used as a target_ops callback. The function implemention was recently changed, but the declaration wasn't updated accordingly. This fixes a build failure on Solaris. gdb/ChangeLog: * procfs.c (proc_find_memory_regions): Fix declaration.
2012-09-27 * amd64-tdep.c (amd64_return_value): Revert previous changeSiddhesh Poyarekar10-34/+51
that used TYPE_LENGTH directly. * bfin-tdep.c (bfin_extract_return_value): Likewise. (bfin_store_return_value): Likewise. * cris-tdep.c (cris_store_return_value): Likewise. (cris_extract_return_value): Likewise. * h8300-tdep.c (h8300_extract_return_value): Likewise. * hppa-tdep.c (hppa64_return_value): Likewise. * lm32-tdep.c (lm32_store_return_value): Likewise. * microblaze-tdep.c (microblaze_store_return_value): Likewise. * spu-tdep.c (spu_value_from_register): Likewise. * vax-tdep.c (vax_return_value): Likewise.
2012-09-27 * gdbtypes.c (lookup_array_range_type): Expand parametersSiddhesh Poyarekar5-10/+23
LOW_BOUND and HIGH_BOUND to LONGEST. (lookup_string_range_type): Likewise. * gdbtypes.h (lookup_array_range_type): Likewise. (lookup_string_range_type): Likewise. * valops.c (value_cstring): Expand parameter LEN to ssize_t. Expand HIGHBOUND to ssize_t. (value_string): Likewise. * value.h (value_cstring): Expand parameter LEN to ssize_t. (value_string): Likewise.
2012-09-27*** empty log message ***gdbadmin1-1/+1
2012-09-26gdb/Yao Qi3-1/+11
PR breakpoints/13898 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration. * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops per breakpoint type.
2012-09-26 * procfs.c: Add gdb_bfd header.Pierre Muller6-0/+13
* rs6000-nat.c: Likewise. * solib-pa64.c: Likewise. * spu-linux-nat.c: Likewise. * windows-nat.c: Likewise.
2012-09-26 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.Tom Tromey2-2/+4
2012-09-26 * dwarf2read.c (mark_common_block_symbol_computed): New function.Tom Tromey5-4/+1076
(read_common_block): Handle child DIEs with DW_AT_data_member_location. (new_symbol_full): Add special case for common blocks. gdb/testsuite * gdb.dwarf2/dw2-common-block.S: New file. * gdb.dwarf2/dw2-common-block.exp: New file.
2012-09-262012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>Tom Tromey10-176/+328
Tom Tromey <tromey@redhat.com> * dwarf2read.c (read_common_block): Rewrite. (new_symbol_full): Handle DW_TAG_common_block. * f-lang.c (head_common_list, find_common_for_function): Remove. * f-lang.h (struct common_entry, struct saved_f77_common, SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY, COMMON_ENTRY_PTR, head_common_list, find_common_for_function, BLANK_COMMON_NAME_LOCAL): Remove. (struct common_block): New. * f-valprint.c (list_all_visible_commons): Remove. (info_common_command_for_block): New function. (info_common_command): Use it. * stack.c (iterate_over_block_locals): Special case for COMMON_BLOCK_DOMAIN. * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New constant. (struct general_symbol_info) <value.common_block>: New field. (SYMBOL_VALUE_COMMON_BLOCK): New define. gdb/testsuite 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com> * gdb.fortran/common-block.exp: New file. * gdb.fortran/common-block.f90: New file.
2012-09-262012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>Tom Tromey4-485/+21
Tom Tromey <tromey@redhat.com> * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node, allocate_saved_f77_common_node, allocate_common_entry_node, tail_common_list, current_common, saved_bf_list, saved_bf_list_end, current_head_bf_list, tmp_bf_ptr, add_common_block, add_common_entry, find_first_common_named, patch_common_entries, patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list, global_remote_debug, get_bf_for_fcn, saved_function_list, saved_function_list_end, clear_function_list, struct saved_fcn, struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR, SAVED_BF, SAVED_BF_PTR): Remove. * f-lang.h (tail_common_list, current_common, UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING, BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77, DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name, real_main_c_value): Remove. * f-valprint.c (there_is_a_visible_common_named): Remove.
2012-09-26http://sourceware.org/ml/gdb-patches/2012-09/msg00403.htmlAndrew Burgess5-1/+209
gdb/ChangeLog * breakpoint.c (update_global_location_list): Ignore previous duplicate status of a breakpoint when starting a new scan for duplicate breakpoints. gdb/testsuite/ChangeLog * gdb.base/duplicate-bp.c: New file. * gdb.base/duplicate-bp.exp: New file.
2012-09-26Adding PR number tp ChangeLogKarthik Bhat1-1/+1
2012-09-26Fix changelog format.Yao Qi1-1/+2