aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-09-17gdb/Yao Qi10-12/+103
* cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New. Update comment to add_setshow_integer_cmd. * cli/cli-setshow.c (do_set_command): Handle case 'var_zuinteger_unlimited'. (do_show_command): Likewise. * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd for command 'remotetimeout'. * command.h (enum var_types): New zuinteger_unlimited. Update comment to var_integer. * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd for command 'set listsize'. gdb/doc/ * gdb.texinfo (List): Describe the meaning of 0 and -1 in 'set listsize'. gdb/testsuite/ * gdb.base/list.exp (set_listsize): Don't set arg to "unlimited" when it is less than 0.
2012-09-17 * infrun.c (restore_infcall_suspend_state): Eliminate single-useSiddhesh Poyarekar2-2/+6
variable LEN.
2012-09-17gdb/Jan Kratochvil10-1/+910
PR 14119 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames. (frame_pop): Drop also TAILCALL_FRAME frames. * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames. gdb/testsuite/ PR 14119 * gdb.arch/amd64-tailcall-ret.S: New file. * gdb.arch/amd64-tailcall-ret.c: New file. * gdb.arch/amd64-tailcall-ret.exp: New file. * gdb.reverse/amd64-tailcall-reverse.S: New file. * gdb.reverse/amd64-tailcall-reverse.c: New file. * gdb.reverse/amd64-tailcall-reverse.exp: New file.
2012-09-17gdb/Jan Kratochvil8-16/+523
PR 14548 * infrun.c (handle_inferior_event): Do not reverse-continue back to the function start if we are already at function start. Both for reverse-next and for reverse-step into function without line number info. gdb/testsuite/ PR 14548 * gdb.reverse/singlejmp-reverse-nodebug.S: New file. * gdb.reverse/singlejmp-reverse-nodebug.c: New file. * gdb.reverse/singlejmp-reverse.S: New file. * gdb.reverse/singlejmp-reverse.c: New file. * gdb.reverse/singlejmp-reverse.exp: New file.
2012-09-17gdb/Jan Kratochvil6-29/+55
Code cleanup - rename 'inline' depth to 'artificial' depth. * breakpoint.c (set_momentary_breakpoint): Rename at a caller to frame_id_artificial_p, extend the comment. * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user. * frame.c (fprint_frame_id): Rename at a user, change debug output text to "artificial=". (skip_inlined_frames): Rename to ... (skip_artificial_frames): ... here. Extend the comment. (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller. (frame_id_inlined_p): Rename to ... (frame_id_artificial_p): ... here. Rename at a user. (frame_id_eq, frame_id_inner, frame_unwind_caller_pc) (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename at a user. * frame.h (struct frame_id): Rename inline_depth to artificial_depth. Extend the comment. (frame_id_inlined_p): Rename to ... (frame_id_artificial_p): ... here. * inline-frame.c (inline_frame_this_id): Rename at a user.
2012-09-17daily updateAlan Modra1-1/+1
2012-09-17*** empty log message ***gdbadmin1-1/+1
2012-09-16 * ld.texinfo (Expression Section): Correct description ofAlan Modra2-4/+14
conversions for a binary operation involving an absolute symbol and a number.
2012-09-16gdb/testsuite/Jan Kratochvil2-0/+9
Fix compatibility with old GCC (~4.1). * gdb.cp/converts.cc (my_enum_var): New variable.
2012-09-16*** empty log message ***gdbadmin1-1/+1
2012-09-16daily updateAlan Modra1-1/+1
2012-09-15Add support for tilegx in gold.Walter Lee14-7/+5126
* configure.ac (ENABLE_GOLD): support tilegx* * configure: rebuild elfcpp: * tilegx.h: New file. * elfcpp.h: add EM_TILEGX. gold: * tilegx.cc: New file. * Makefile.am (TARGETSOURCES): Add tilegx.cc (ALL_TARGETOBJS): Add tilegx.$(OBJEXT) * configure.tgt: Add entries for tilegx*. * configure.ac: Likewise. * Makefile.in: Rebuild. * configure: Likewise. * testsuite/icf_safe_test.sh (arch_specific_safe_fold): Handle tilegx.
2012-09-15 * configure: Regenerate.David Edelsohn2-2/+7
2012-09-15* configure: Regenerate.David Edelsohn2-2/+8
2012-09-15 * configure: Regenerate.David Edelsohn8-9/+29
2012-09-15daily updateAlan Modra1-1/+1
2012-09-15*** empty log message ***gdbadmin1-1/+1
2012-09-14 PR target/38607David Edelsohn4-1/+33
Merge upstream change. * libtool.m4 (_LT_COMPILER_PIC): Add -fPIC to GCC and GXX for AIX. * configure.ac: Add target-libquadmath to noconfigdirs for AIX. Add libgomp*.o to compare_exclusions for AIX. * configure: Regenerate.
2012-09-14http://sourceware.org/ml/gdb-patches/2012-09/msg00015.htmlAndrew Burgess4-5/+18
gdb/ChangeLog * c-typeprint.c (c_type_print_varspec_suffix): Display the size of vector variables using vector_size syntax rather than array syntax. gdb/testsuite/ChangeLog * gdb.xml/tdesc-regs.exp: Update expected output for new vector_size syntax of vector types.
2012-09-14 * valarith.c (value_concat): Replace unsafe ALLOCA withSiddhesh Poyarekar2-2/+15
XMALLOC/XFREE.
2012-09-142012-09-14 Pedro Alves <palves@redhat.com>Pedro Alves2-4/+17
* gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2012-09-14Fix moxie disassembly for new branch semanticsAnthony Green2-1/+6
2012-09-14Point contrib/cc-with-tweaks.sh to the build-local data-directory.Yit Phang Khoo2-4/+11
gdb/ * contrib/cc-with-tweaks.sh (GDB): Add -data-directory data-directory as appropriate.
2012-09-14 * printcmd.c (ui_printf): Eliminate single-use variableSiddhesh Poyarekar2-3/+7
PARAM_LEN.
2012-09-14gdb/Yao Qi2-3/+8
* valops.c (value_assign): Move observer_notify_target_changed below to replace reinit_frame_cache.
2012-09-14daily updateAlan Modra1-1/+1
2012-09-14*** empty log message ***gdbadmin1-1/+1
2012-09-13Bi-endian patches for moxieAnthony Green13-45/+172
2012-09-13Refactor Python "gdb" module into a proper Python package, by introducingYit Phang Khoo7-116/+205
a new "_gdb" module for code implemented in C, and using reload/__import__ instead of exec. gdb/ * python/lib/gdb/__init__.py: Import * from _gdb. (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr, prompt_hook, sys.argv): Moved from finish_python_initialization. (pretty_printers, PYTHONDIR): Moved from _initialize_python. (packages, auto_load_packages): New list and function replacing module_dict and auto-loading code, using __file__ instead of gdb.PYTHONDIR and reload/__import__ instead of exec. (GdbSetPythonDirectory): Replacing function of the same name from finish_python_initialization, using reload/__import__ instead of exec, as well as call auto_load_packages. * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check gdb_python_module and not gdb_module. * python/python-internal.h (gdb_python_module): Declare. * python/python.c (gdb_python_module): New global. (before_prompt_hook): Check gdb_python_module and not gdb_module. (_initialize_python): Rename gdb module to _gdb. Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py. (finish_python_initialization): Move Python code to lib/gdb/__init__.py; instead, set up sys.path and import gdb into __main__. gdb/testsuite/ * gdb.python/python.exp (Test stderr location): Update module location of GDB-specific sys.stderr. (Test stdout location): Ditto for sys.stdout.
2012-09-13gdb/doc/Jan Kratochvil2-6/+18
* gdbint.texinfo (Defining Other Architecture Features): Clarify *pcptr encoding for gdbarch_breakpoint_from_pc, bp_addr for gdbarch_push_dummy_call and bp_addr for gdbarch_push_dummy_code.
2012-09-132012-09-13 Pedro Alves <palves@redhat.com>Pedro Alves4-71/+246
* Makefile.in (COMMON_OBS): Add registry.o. * registry.c: New file. * registry.h (struct registry_container): Declare. (registry_data_callback): New typedef. (struct registry_data, struct registry_data_registration, struct registry_data_registry): New type. (register_data_with_cleanup, registry_alloc_data) (registry_callback_adaptor, registry_clear_data) (registry_container_free_data, registry_set_data, registry_data): Declare. (DEFINE_REGISTRY): Refactor structures and functions as shims over the new common structures and functions. (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged callback typedefs.
2012-09-13Really commit regenerated files.Richard Earnshaw2-0/+8
2012-09-13 * v850.igen (W,WWWW): Correct computation of register number.Nick Clifton2-14/+19
(JR32): Remove unnecessary comma. (cmovf.s): Register 0 is an invalid source register. (maddf.s): Remove bogus intermediary rounding. (nmaddf.s): Likewise. (trncf.sl): Remove bogus initial rounding. (trncf.dw): Likewise. (trncf.sl): Likewise. (trncf.sw): Likewise.
2012-09-13gdb/testsuite/Jan Kratochvil2-1/+4
* gdb.base/valgrind-infcall.exp: Remove comment about Ubuntu.
2012-09-13*** empty log message ***gdbadmin1-1/+1
2012-09-13daily updateAlan Modra1-1/+1
2012-09-12 * gdb.cp/converts.cc (main): Comment out the pointer to booleanKeith Seitz2-0/+13
conversion statement.
2012-09-122012-09-12 Doug Kwan <dougkwan@google.com>Doug Kwan2-6/+13
* elf64-ppc.c (ppc64_elf_relocate_section): Use pre-adjusted relocation for stub lookup.
2012-09-12 * target-reloc.h (scan_relocs): Call scan.local for relocsAlan Modra7-77/+208
against symbols in discarded sections. Pass is_discarded param. * arm.cc, * i386.cc, * sparc.cc, * x86_64.cc (Target_*::Scan::local): Add is_discarded param. * powerpc (Target_powerpc::Scan::local): Likewise. Use is_discarded to flag opd entry as discarded. Don't emit dyn relocs on such entries. (Target_powerpc::Scan::global): Similarly detect and handle such opd entries. (Powerpc_relobj): Replace opd_ent_shndx_ and opd_ent_off_ with opd_ent_. Update all uses. (Powerpc_relobj::get_opd_discard, set_opd_discard): New functions. (Target_powerpc::relocate_section): Zero out discarded opd entry relocs.
2012-09-12* emulparams/elf32rx.sh (OTHER_READONLY_SECTIONS): Add W_* sections.DJ Delorie2-1/+5
2012-09-12* gdb/remote.c (remote_insert_hw_breakpoint): Throw exception ifMike Wrighton3-14/+55
there is an error inserting hardware breakpoints and use the error message from the target. * gdb/breakpoint.c (insert_bp_location, insert_breakpoint_locations): Catch this exception and print the error message contained within. Do not print the default hardware error breakpoint message in this case.
2012-09-12 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case whereDoug Evans2-3/+11
cu == NULL.
2012-09-12 * gdb.base/help.exp: Remove testing of individual command help text,Doug Evans2-640/+68
too much of a maintenance burden. Instead, test the functionality of "help" itself.
2012-09-12 PR gold/14570Ian Lance Taylor4-61/+110
* output.cc: Rename Output_data_got template parameter from size to got_size for all functions. Compile all variants of Output_data_got. (Output_data_got::Got_entry::write): Correct use of size for symbol value. Use local_is_tls rather than casting to Sized_relobj_file. * object.h (class Object): Add local_is_tls and do_local_is_tls. (class Sized_relobj_file): Add do_local_is_tls. * incremental.h (class Sized_relobj_incr): Add do_local_is_tls.
2012-09-122012-09-11 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>Richard Earnshaw17-55/+250
bfd/ * bfd-in2.h: Regenerated. * elf64-aarch64.c (elf64_aarch64_howto_table): Add R_AARCH64_GOT_LD_PREL19 reloc to HOWTO. (elf64_aarch64_reloc_map): Add reloc entry. (aarch64_resolve_relocation): Likewise. (bfd_elf_aarch64_put_addend): Likewise. (aarch64_reloc_got_type): Likewise. (elf64_aarch64_final_link_relocate): Likewise. (lf64_aarch64_check_relocs): Likewise. (elf64_aarch64_check_relocs): New case for R_AARCH64_ADR_PREL_LO21 reloc. * libbfd.h: Regenerated. * reloc.c (R_AARCH64_GOT_LD_PREL19): New reloc. gas/ * config/tc-aarch64.c (reloc_table): Add reloc to table entry. (parse_address_main): Add support for #:<reloc_op>:<symbol>. (parse_operands): Check for unused reloc. (md_apply_fix): New case for reloc. (aarch64_force_relocation): Likewise. gas/testsuite * gas/aarch64/reloc-insn.d (BFD_RELOC_AARCH64_GOT_LD_PREL19): Add expected asm for new reloc test. * gas/aarch64/reloc-insn.s (BFD_RELOC_AARCH64_GOT_LD_PREL19): Add test for reloc. include/ * elf/aarch64.h (R_AARCH64_GOT_LD_PREL19): New reloc. ld/testsuite * ld-aarch64/aarch64-elf.exp: New reloc tests. * ld-aarch64/emit-relocs-309-low-bad.d: New file. Expected asm for test failure (lower bound overflow). * ld-aarch64/emit-relocs-309-low.d: New file. Expected asm for test success (lower bound). * ld-aarch64/emit-relocs-309-up-bad.d: New file. Expected asm for test failure (upper bound overflow). * ld-aarch64/emit-relocs-309-up.d: New file. Expected asm for test success (upper bound). * ld-aarch64/emit-relocs-309.s: New file. Asm for new reloc tests.
2012-09-12*** empty log message ***gdbadmin1-1/+1
2012-09-12daily updateAlan Modra1-1/+1
2012-09-11 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examineDoug Evans2-6/+17
.gdb_index symbol attributes if there are none.
2012-09-11 * gdb.cp/mb-inline.exp: Do "info break" after setting multi-locationDoug Evans2-0/+8
breakpoint.
2012-09-11Name of symbol missing when printing global variable's addressJoel Brobecker5-5/+32
The build_address_symbolic funnction filters out data symbols if their size is set to zero. But the problem is that the COFF symbol table (for instance) does not provide any size information, leaving the size to its default value of zero, thus always triggering the filter. This shows up when trying to print the address of a global variable when debugging a Windows executable, for instance. gdb/ChangeLog: * symtab.h (struct minimal_symbol) [has_size]: New field. (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue. (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros. * printcmd.c (build_address_symbolic): Only filter out zero-sized minimal symbols if the symbol's size is actually known. * minsyms.c (prim_record_minimal_symbol_full): Adjust setting of msymbol's size field. Add comment. * elfread.c (elf_symtab_read, elf_rel_plt_read): Use SET_MSYMBOL_SIZE to set the minimal symbol size.