summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add missing empty line after var declarations in handle_unload_dllJoel Brobecker2013-05-202-0/+5
| | | | | | gdb/ChangeLog: * windows-nat.c (handle_unload_dll): Add missing empty line.
* * config/tc-ppc.c (md_apply_fix): Hoist code common to insnAlan Modra2013-05-202-181/+160
| | | | | | and data fixups performing shift/high adjust/sign extension on fieldval. Sink fx_pcrel handling and checks. Use fixP->fx_size when writing data fixups rather than recalculating size.
* [dwarf] Mark all functions as prototyped except C functions.Joel Brobecker2013-05-207-12/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes sure that the types of the arguments are taken into account when performing an inferior function call to a non-C (or C-like) function. In particular, this makes sure that the arguments are appropriatly converted to the correct type. For instance, on x86_64-linux, with the following Ada code: procedure Set_Float (F : Float) is begin Global_Float := F; end Set_Float; The following sequence shows that Float arguments are incorrectly passed (Ada's Float type is the equivalent of type "float" in C): (gdb) call set_float (2.0) (gdb) print global_float $1 = 0.0 Putting a breakpoint inside set_float to inspect the value of register xmm0 gives the first hint of the problem: (gdb) p $xmm0 $2 = (v4_float => (0 => 0.0, 2.0, 0.0, 0.0), v2_double => (0 => 2.0, 0.0), [...] It shows that the argument was passed as a double. The code responsible for doing appropriate type conversions for the arguments (value_arg_coerce) found that our function was not prototyped, and thus could not use typing information for the arguments. Instead, it defaulted to the value of "set coerce-float-to-double", which by default is true, to determine the argument type. This patch fixes the problem by setting the PROTOTYPE flag for all functions of any language except C and Objective C. gdb/ChangeLog: * dwarf2read.c (prototyped_function_p): New function. (read_subroutine_type): Use it. gdb/testsuite/ChangeLog: * gdb.ada/float_param: New testcase.
* De-indent example code in rs6000-aix-tdep.c (ARI fix)Joel Brobecker2013-05-202-44/+49
| | | | | | | | | | | | This patch de-indents the code provided as a comment explaining how the code declaring the ld_info32_desc and ld_info64_desc globals was generated. The intent is to avoid an ARI warning about a macro not starting at column zero of the line. gdb/ChangeLog: * rs6000-aix-tdep.c: De-indent some example code provided as a comment.
* daily updateAlan Modra2013-05-201-1/+1
|
* *** empty log message ***gdbadmin2013-05-201-1/+1
|
* * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Convert K&RMaciej W. Rozycki2013-05-192-3/+7
| | | | function definition.
* *** empty log message ***gdbadmin2013-05-191-1/+1
|
* daily updateAlan Modra2013-05-191-1/+1
|
* daily updateAlan Modra2013-05-181-1/+1
|
* *** empty log message ***gdbadmin2013-05-181-1/+1
|
* 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>Edjunior Barbosa Machado2013-05-172-8/+17
| | | | | | * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the region is ok for a hardware watchpoint using the new ptrace interface on Power servers.
* * NEWS: Mention new maintenance commands check-symtabs, andDoug Evans2013-05-178-27/+232
| | | | | | | | | | | | | | | | | | | | | | | expand-symtabs, and renamed check-psymtabs. * psymtab.c (maintenance_check_psymtabs): Renamed from maintenance_check_symtabs. Only process already-expanded symbol tables. (_initialize_psymtab): Update. * symmisc.c (maintenance_check_symtabs): New function. (maintenance_expand_name_matcher): New function (maintenance_expand_file_matcher): New function (maintenance_expand_symtabs): New function. (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs" commands. doc/ * gdb.texinfo (Maintenance Commands): Update doc for "maint check-psymtabs". Add doc for "maint check-symtabs", "maint expand-symtabs". testsuite/ * gdb.base/maint.exp: Update test for "maint check-psymtabs". Add tests for "maint check-symtabs", "maint expand-symtabs".
* * gdb.base/maint.exp: Remove testing of individual maint commandDoug Evans2013-05-172-63/+6
| | | | help output.
* * python/py-inferior.c (infpy_read_memory): Don't callTom Tromey2013-05-173-7/+8
| | | | | | PyErr_SetString if PyObject_New fails. * python/py-frame.c (frame_info_to_frame_object): Don't call PyErr_SetString if PyObject_New fails.
* Replace hardcoded -ldl with check for availabilityH.J. Lu2013-05-174-6/+232
| | | | | | | | 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com> * acinclude.m4: Add check for dlopen in libdl. * configure.ac: Ditto. * configure: Regenerate.
* * ia64-raw.tbl: Replace non-ASCII char.Alan Modra2013-05-174-10/+16
| | | | | * ia64-waw.tbl: Likewise. * ia64-asmtab.c: Regenerate.
* 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2013-05-172-15/+101
| | | | | | | | | | | | | | | * frame.c (frame_stash): Convert to htab. (frame_addr_hash): New function. (frame_addr_hash_eq): New function. (frame_stash_create): Convert function to create a hash table. (frame_stash_add): Convert function to add an entry to a hash table. (frame_stash_find): Convert function to search the hash table. (frame_stash_invalidate): Convert function to empty the hash table. (get_frame_id): Only add to stash if a frame_id is created. (_initialize_frame): Call frame_stash_create.
* Mark the following commit as tiny change:Thomas Schwinge2013-05-171-1/+1
| | | | | | | | | gdb/ 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> * configure.ac: Ensure MIG is available when building for GNU Hurd hosts. * configure: Regenerate.
* [gdbserver/lynx178]: Fix null_ptid -vs- minus_one_ptid confusion in commentJoel Brobecker2013-05-172-5/+10
| | | | | | | gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid confusion in comment.
* gdbserver/lynx178: spurious SIG61 signal when resuming inferior.Joel Brobecker2013-05-172-13/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On ppc-lynx178, resuming the execution of a program after hitting a breakpoint sometimes triggers a spurious SIG61 event: (gdb) cont Continuing. Program received signal SIG61, Real-time event 61. [Switching to Thread 39] 0x10002324 in a_test.task1 (<_task>=0x3ffff774) at a_test.adb:30 30 select -- Task 1 From this point on, continuing again lets the signal kill the program. Using "signal 0" or configuring GDB to discard the signal does not help either, as the program immediately reports the same signal again. What happens is the following: - GDB sends a single-step order to gdbserver: $vCont;s:31 This tells GDBserver to do a step using thread 0x31=49. GDBserver does the step, and thread 49 receives the SIGTRAP indicating that the step has finished. - GDB then sends a "continue", but this time does not specify which thread to continue: $vCont;c GDBserver uses an arbitrary thread's ptid to resume the program's execution (the current_inferior's ptid was chosen for that). See lynx-low.c:lynx_resume: if (ptid_equal (ptid, minus_one_ptid)) ptid = thread_to_gdb_id (current_inferior); So far on all LynxOS platforms, this has been good enough. But not so on LynxOS 178. If the ptid used to resume the execution is not the same as the thread that did the step, we get the weird signal. This patch fixes the problem by saving the ptid of the thread that last caused an event, received during a call to waitpid. The ptid is saved in per-process private data. gdb/gdbserver/ChangeLog: * lynx-low.c (struct process_info_private): New type. (lynx_add_process): New function. (lynx_create_inferior, lynx_attach): Replace calls to add_process by calls to lynx_add_process. (lynx_resume): If PTID is null, then try using current_process()->private->last_wait_event_ptid. Add comments. (lynx_clear_inferiors): Delete. The contents of that function has been inlined in lynx_mourn; (lynx_wait_1): Save the ptid in the process's private data. (lynx_mourn): Free the process' private data. Replace call to lynx_clear_inferiors by call to clear_inferiors.
* gdb/gdbserverYao Qi2013-05-172-1/+6
| | | | | * i386-low.c (i386_length_and_rw_bits): Move the comment to the right place.
* *** empty log message ***gdbadmin2013-05-171-1/+1
|
* daily updateAlan Modra2013-05-171-1/+1
|
* gdb/Thomas Schwinge2013-05-163-4/+24
| | | | | | | | 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> * configure.ac: Ensure MIG is available when building for GNU Hurd hosts. * configure: Regenerate.
* * doc/c-msp430.texi: Fix typo.Jan-Benedict Glaw2013-05-162-2/+6
| | | | also: * ChangeLog: Fix entry.
* bfd/Cary Coutant2013-05-162-2/+7
| | | | | * ecoff.c (ecoff_link_check_archive_element): Add initializers for external_ext_size and esize.
* bfd/Tristan Gingold2013-05-165-2/+18
| | | | | | | | | | | | | | 2013-05-16 Tristan Gingold <gingold@adacore.com> * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_16. * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise. gas/ 2013-05-16 Tristan Gingold <gingold@adacore.com> * config/tc-ppc.c (ppc_is_toc_sym): Symbols of class XMC_TC are also TOC symbols.
* 2013-05-16 Tristan Gingold <gingold@adacore.com>Tristan Gingold2013-05-162-1/+5
| | | | * gas/ppc/ppc.exp: Do not run simpshft on aix.
* * config/tc-msp430.c: Make -mmcu recognise more part numbers.Nick Clifton2013-05-166-293/+652
| | | | | | | Add -mcpu command to specify core type. * doc/c-msp430.c: Update documentation. * gas/msp430/opcodes.s: Use correct value for .arch pseudo. * gas/msp430/msp430x.d: Use correct value for -mcpu option.
* * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,Luis Machado2013-05-162-22/+45
| | | | | | | | | PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments. (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR guards. Update comments. (linux_target_op) <read_offsets>: Conditionally define to linux_read_offsets if the target is UCLIBC and if it defines PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
* gdb.ada/complete.exp: Fix FIXME.Pedro Alves2013-05-162-5/+7
| | | | | | | 2013-05-16 Pedro Alves <palves@redhat.com> * gdb.ada/complete.exp (test_gdb_no_completion): Fix typo in comment. Use gdb_test_no_output.
* [dwarf]: Add DW_LANG_UPC support in set_cu_language.Joel Brobecker2013-05-162-0/+5
| | | | | | gdb/ChangeLog: * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
* Missing do_cleanups in ada_make_symbol_completion_list.Joel Brobecker2013-05-164-1/+28
| | | | | | | | | | | | | | | | | | | | | This results in an internal-warning when trying the completion when in Ada mode: (gdb) b simple<TAB> /[...]/cleanups.c:265: internal-warning: restore_my_cleanups has found a stale cleanup A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) gdb/ChangeLog: * ada-lang.c (ada_make_symbol_completion_list): Make sure all cleanups are done before returning from this function. gdb/testsuite/ChangeLog: * gdb.ada/complete.exp: Add test verifying completion using the "tab" key.
* daily updateAlan Modra2013-05-161-1/+1
|
* *** empty log message ***gdbadmin2013-05-161-1/+1
|
* * gdb.base/filesym.exp: New completer test.Keith Seitz2013-05-152-0/+78
| | | | * gdb.base/filesym.c: New file.
* sim: arm: add support for MOVW and MOVT instructionsMike Frysinger2013-05-154-4/+71
| | | | | | | | | | | | | | | | | | From: Jayant R. Sonar <Jayant.Sonar@kpitcummins.com> This patch adds simulator support for handling the armv7 instructions 'movw (immediate)' and 'movt'. Compiler frequently use these instructions to load the 32bit addresses of global variables, string pointers etc. into the general registers. In absence of support of these instructions: 1. GDB run simulator fails to print even simple "hello world" string on console. 2. Loading of global variable addresses into the registers fail causing arithmetic operation failures. Patch has been regression tested for arm-none-eabi (-march=armv7-a).
* Remove my name from a couple tests.Pedro Alves2013-05-153-5/+6
| | | | | | | | | | Tested on x86_64 Fedora 17. gdb/testsuite/ 2013-05-15 Pedro Alves <palves@redhat.com> * gdb.base/fixsection.c: Remove attribution. * gdb.base/watch-read.exp: Ditto.
* binutils/Cary Coutant2013-05-153-5/+133
| | | | | | | | | | | * dwarf.c (SAFE_BYTE_GET64): Correct end-of-buffer check; don't increment PTR. (decode_location_expression): DW_OP_const2u should read 2 bytes. (display_debug_lines_decoded): Adjust formatting. * elfcomm.c (byte_get_little_endian): Add cases for 5-, 6-, and 7-byte reads. (byte_get_big_endian): Likewise. (byte_get_signed): Likewise.
* Remove forward enum declaration in utils.h.Joel Brobecker2013-05-152-1/+6
| | | | | | | | | | These forward declarations are a GNU extension, and they trigger a build warning when the compiler does not support it. gdb/ChangeLog: * utils.h: #include "exceptions.h". (enum errors): Remove partial declaration.
* ppc-aix core file relocation.Joel Brobecker2013-05-159-193/+435
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current code attempts to provide relocation support when debugging core files via the rs6000_xfer_partial method of the rs6000-nat target_ops vector. However, this target_ops vector does not get pushed on the target stack at all when debugging core files, thus bypassing completely that part of the code. This patch fixes the problem by extending corelow's core_xfer_partial into handling the TARGET_OBJECT_LIBRARIES_AIX object. gdb/ChangeLog: * gdbarch.sh (core_xfer_shared_libraries_aix): New method. * gdbarch.h, gdbarch.c: Regenerate. * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX handling. * rs6000-aix-tdep.h: New file. * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h. * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and "xml-utils.h". (struct field_info, struct ld_info_desc): New types. (ld_info32_desc, ld_info64_desc): New static constants. (struct ld_info): New type. (rs6000_aix_extract_ld_info): New function. (rs6000_aix_shared_library_to_xml): Likewise. (rs6000_aix_ld_info_to_xml): Likewise. (rs6000_aix_core_xfer_shared_libraries_aix): Likewise. (rs6000_aix_init_osabi): Add call to set_gdbarch_core_xfer_shared_libraries_aix. * rs6000-nat.c: Add "rs6000-aix-tdep.h" include. Remove "xml-utils.h" include. (LdInfo): Delete typedef. (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME): Delete macros. (rs6000_ptrace_ldinfo): Change return type to gdb_byte *. Adjust code accordingly. (rs6000_core_ldinfo): Delete, folded into rs6000_aix_core_xfer_shared_libraries_aix. (rs6000_xfer_shared_library): Delete. (rs6000_xfer_shared_libraries): Reimplement.
* The "record goto" command scans its arguments for "begin", "start", or "end".Markus Metzger2013-05-154-14/+72
| | | | | | Turn those into sub-commands. Document the "record goto" command.
* * elf64-aarch64.c (elf_backend_default_execstack): Define to 0.Andreas Schwab2013-05-152-0/+5
|
* gas/Saravanan Ekanathan2013-05-153-2/+7
| | | | | * i386-gen.c (cpu_flag_init): Add CpuFSGSBase in CPU_BDVER3_FLAGS. * i386-init.h: Regenerated.
* *** empty log message ***gdbadmin2013-05-151-1/+1
|
* daily updateAlan Modra2013-05-151-1/+1
|
* gdb/Jan Kratochvil2013-05-142-0/+9
| | | | | * linespec.c (convert_linespec_to_sals): New comment for SOURCE_FILENAME assignment.
* gdb/Jan Kratochvil2013-05-142-1/+9
| | | | | * cleanups.c (restore_my_cleanups): Replace gdb_assert by internal_warning.
* * eval.c (parse_and_eval_long): Make 'exp' const.Tom Tromey2013-05-143-2/+7
| | | | * value.h (parse_and_eval_long): Update.
OpenPOWER on IntegriCloud