OSDN Git Service
ndreys [Mon, 5 Dec 2011 04:10:47 +0000 (04:10 +0000)]
* breakpoint.c (init_breakpoint_sal): Remove nested definitions of
`i'(-Wshadow).
ndreys [Mon, 5 Dec 2011 03:58:23 +0000 (03:58 +0000)]
* bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
ndreys [Mon, 5 Dec 2011 03:48:28 +0000 (03:48 +0000)]
* amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
of `tdep'(-Wshadow).
gdbadmin [Mon, 5 Dec 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sun, 4 Dec 2011 23:00:05 +0000 (23:00 +0000)]
daily update
cgf [Sun, 4 Dec 2011 18:40:51 +0000 (18:40 +0000)]
correct name of function
cgf [Sun, 4 Dec 2011 18:32:00 +0000 (18:32 +0000)]
* sigproc.cc (cygWFMO): Don't assume that cancellable event is always
available.
* fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::waitforspace): Use cygWFMO
instead of WaitForMultipleObjects.
(fhandler_dev_dsp::Audio_in::waitfordata): Ditto.
* fhandler_fifo.cc (fhandler_fifo::wait): Ditto.
* fhandler_serial.cc (fhandler_serial::raw_read): Ditto.
(fhandler_serial::raw_write): Ditto.
* fhandler_tty.cc (fhandler_pty_slave::read): Ditto.
* select.cc (cygwin_select): Ditto for degenerate case.
cgf [Sun, 4 Dec 2011 18:15:36 +0000 (18:15 +0000)]
* sigproc.h (cygWFMO): Move inside "INSIDE_CYGWIN" #ifdef.
cgf [Sun, 4 Dec 2011 17:58:23 +0000 (17:58 +0000)]
* exceptions.cc (exception::handle): Drop abbreviation for "exception" since I
never remember what it stands for.
(sig_handle_tty_stop): Remove obsolete call to sig_handle_tty_stop.
(_cygtls::call_signal_handler): Rework to grab signal information from
_main_tls if none is set for _my_tls. Try harder to keep thread locked.
(reset_signal_arrived): Delete.
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Use new cygWFMO call
to wait for an event + standard cygwin stuff. Modify debug output to
acccomodate new function.
* fhandler_console.cc (fhandler_console::read): Replace WaitForMultipleObjects
with cygWFMO.
* fhandler_socket.cc (get_inet_addr): Add comment.
* gendef (_sigdelayed): Remove call to reset_signal_arrived.
* sigproc.cc (_cygtls::signal_exit): Don't close my_readsig here unless we're
in the signal thread.
(create_signal_arrived): Create signal_arrived as auto-reset so that only one
thread is woken when a signal arrives.
* sigproc.h (cygWFMO): New function.
(reset_signal_arrived): Delete declaration.
gdbadmin [Sun, 4 Dec 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
cgf [Sat, 3 Dec 2011 23:55:21 +0000 (23:55 +0000)]
* mmap.cc (mlock): Add standard syscall return value debugging output.
(munlock): Ditto.
(posix_madvise): Ditto.
* signal.cc: Remove obsolete sigcatchers stuff throughout.
(sigaction_worker): Add function name parameter and use it to show standard
syscall return value debugging output. Also add fault protection.
(sigaction): Accommodate extra argument to sigaction_worker.
(siginterrupt): Ditto.
* syscalls.cc (read): Remove obsolete sigcatchers stuff.
(readv): Ditto.
cgf [Sat, 3 Dec 2011 23:49:03 +0000 (23:49 +0000)]
fix incorrectly named file in old ChangeLog entry
corinna [Sat, 3 Dec 2011 23:03:13 +0000 (23:03 +0000)]
* mmap.cc (mlock): Drop requesting SE_LOCK_MEMORY_PRIVILEGE. Drop
outdated comment. Call NtLockVirtualMemory with LOCK_VM_IN_WSL flag.
(munlock): Drop requesting SE_LOCK_MEMORY_PRIVILEGE. Call
NtUnlockVirtualMemory with LOCK_VM_IN_WSL flag.
amodra [Sat, 3 Dec 2011 23:00:05 +0000 (23:00 +0000)]
daily update
cgf [Sat, 3 Dec 2011 21:43:25 +0000 (21:43 +0000)]
Throughout, remove extra space after function name from debugging output.
Throughout, change syscalls to report on return values using new %R format
option.
* smallprint.cc (__small_vsprintf): Add parsing for %R to report on return
values and possible errno from syscalls.
* errno.cc (errmap): Add PRIVILEGE_NOT_HELD.
* fhandler_tty.cc (fhandler_pty_master::setup): When creating a thread use
shorter name to reduce debuggging output.
* select.cc (start_thread_pipe): Ditto.
(start_thread_serial): Ditto.
(start_thread_socket): Ditto.
(start_thread_mailslot): Ditto.
* sigproc.cc (talktome): Ditto.
corinna [Sat, 3 Dec 2011 20:35:35 +0000 (20:35 +0000)]
* fhandler.cc (fhandler_base::open): Fix comment a bit more.
jkratoch [Sat, 3 Dec 2011 20:20:28 +0000 (20:20 +0000)]
gdb/testsuite/
* gdb.base/break-entry.exp: Move the target use_gdb_stub test before
starting GDB.
* gdb.base/default.exp: Replace target use_gdb_stub checks by global
$use_gdb_stub.
* gdb.base/display.exp: Likewise.
* gdb.base/ending-run.exp: Likewise.
* gdb.base/list.exp (test_listsize): Likewise.
* gdb.base/setshow.exp: Likewise.
* gdb.base/valgrind-db-attach.exp: Set global use_gdb_stub to 1.
* lib/gdb.exp (gdb_run_cmd, gdb_start_cmd): Replace target use_gdb_stub
check by global $use_gdb_stub.
(gdb_test_multiple): Forbid run, start or attach for !$use_gdb_stub.
(default_gdb_start): Set global use_gdb_stub from target use_gdb_stub.
(default_gdb_init): Unset global $use_gdb_stub.
(gdb_continue_to_end, rerun_to_main): Replace target use_gdb_stub check
by global $use_gdb_stub.
* lib/gdbserver-support.exp: Extend comments for set_board_info
gdb_protocol and gdb,socketport.
(gdbserver_start_extended): Set global gdbserver_protocol and
gdbserver_gdbport. Clear global use_gdb_stub.
* lib/mi-support.exp (default_mi_gdb_start): Set global use_gdb_stub
from target use_gdb_stub.
(mi_run_cmd): Replace target use_gdb_stub check by global $use_gdb_stub.
vapier [Sat, 3 Dec 2011 19:05:15 +0000 (19:05 +0000)]
sim: bfin: lookup target strings when tracing system calls
Parsing target addresses is hard if not generally useless, so use the new
cb_get_string function to lookup the associated strings as well. Now the
trace output is quickly useful instead of just marginally so.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
vapier [Sat, 3 Dec 2011 18:39:43 +0000 (18:39 +0000)]
sim: export cb_get_string for people to use
The common sim code provides a useful "get_string" function which reads
a C string out of the target's memory space. So rename and export it
for other people to use.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
jkratoch [Sat, 3 Dec 2011 18:32:28 +0000 (18:32 +0000)]
gdb/
Fix compilation --without-expat.
* solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
from ...
[HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
vapier [Sat, 3 Dec 2011 18:23:43 +0000 (18:23 +0000)]
sim: generate build dependencies on the fly
Lift the code that GDB is using to generate dependencies on the fly and
port it over to the sim. Now people shouldn't have to manually maintain
these in their Makefile's.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
devans [Sat, 3 Dec 2011 18:01:49 +0000 (18:01 +0000)]
* lib/gdb.exp (gdb_run_cmd, gdb_start_cmd, run_to_main): Add comments.
(gdb_step_for_stub): Add comments.
daney [Sat, 3 Dec 2011 17:13:01 +0000 (17:13 +0000)]
2011-12-03 David Daney <david.daney@cavium.com>
* ld-bootstrap/bootstrap.exp: Use consistent flags for final link
in ia64 and mips cases.
corinna [Sat, 3 Dec 2011 14:21:29 +0000 (14:21 +0000)]
* fhandler.cc (fhandler_base::open): Fix typos in comment.
rsandifo [Sat, 3 Dec 2011 10:29:53 +0000 (10:29 +0000)]
gas/testsuite/
* gas/mips/mips.exp (run_dump_test_arch): Add an opts parameter.
(run_dump_test_arches): Allow additional options to be passed.
(run_list_test_arch): Add opts to the name.
(run_list_test_arches): Allow the options to be elided.
(mips4-fp, mips5-fp): Run twice, one with -32 and once with -mabi=o64.
(mips64r2-ill, octeon-ill): Remove empty options string.
amodra [Sat, 3 Dec 2011 10:29:01 +0000 (10:29 +0000)]
PR ld/13468
* elflink.c (bfd_elf_final_link): Don't segfault when checking
for DT_TEXTREL and .dynamic does not exist.
amodra [Sat, 3 Dec 2011 00:55:48 +0000 (00:55 +0000)]
PR ld/13470
* elf32-ppc.c (ppc_elf_copy_indirect_symbol): Revert substantive
change in 2011-07-01 commit. Comment.
* elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
gdbadmin [Sat, 3 Dec 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
macro [Fri, 2 Dec 2011 23:58:00 +0000 (23:58 +0000)]
* lib/gdb.exp (gdb_expect): Pass all the exception conditions up
to the caller.
(gdb_test_multiple): Likewise.
amodra [Fri, 2 Dec 2011 23:00:05 +0000 (23:00 +0000)]
daily update
jkratoch [Fri, 2 Dec 2011 22:35:17 +0000 (22:35 +0000)]
gdb/testsuite/
Fix gdb.mi/mi-solib.exp without system debug info installed.
* lib/mi-support.exp (mi_expect_stop): Accept FILE also for `from'
expect attribute, return 0 for it. Update comments.
jkratoch [Fri, 2 Dec 2011 22:26:50 +0000 (22:26 +0000)]
gdb/
* Makefile.in (XMLFILES): Add library-list-svr4.dtd.
* features/library-list-svr4.dtd: New file.
* remote.c (PACKET_qXfer_libraries_svr4): New.
(remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
(remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
* solib-svr4.c (struct svr4_library_list): New.
[HAVE_LIBEXPAT]: Include xml-support.h.
[HAVE_LIBEXPAT] (svr4_library_list_start_library)
[HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
[HAVE_LIBEXPAT] (svr4_library_list_children)
[HAVE_LIBEXPAT] (svr4_library_list_attributes)
[HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
[HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
[!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
(svr4_read_so_list): Extend the corruption message by addresses.
(svr4_current_sos): New variable library_list, call
svr4_current_sos_via_xfer_libraries.
* target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
gdb/gdbserver/
* linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
(read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
New.
(struct linux_target_ops): Install linux_qxfer_libraries_svr4.
* linux-low.h (struct process_info_private): New member r_debug.
* server.c (handle_qxfer_libraries): Call
the_target->qxfer_libraries_svr4.
(handle_qxfer_libraries_svr4): New function.
(qxfer_packets): New entry "libraries-svr4".
(handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
* target.h (struct target_ops): New member qxfer_libraries_svr4.
* remote.c (remote_xfer_partial): Call add_packet_config_cmd for
PACKET_qXfer_libraries_svr4.
gdb/doc/
* gdb.texinfo (Requirements, Remote Protocol): Reference also `Library
List Format for SVR4 Targets'.
(General Query Packets): New item qXfer:libraries-svr4:read.
(Library List Format for SVR4 Targets): New node.
gdb/testsuite/
* gdb.base/solib-corrupted.exp: Suppress test on is_remote target.
(corrupted list): Adjust the expectation.
nickc [Fri, 2 Dec 2011 17:04:32 +0000 (17:04 +0000)]
* readelf.c (ia64_process_unwind): Turn into a void funtion.
(hppa_process_unwind): Likewise.
(arm_process_unwind): Likewise.
(process_unwind): Likewise.
(arm_get_section_word): Rename to get_unwind_section_word.
Add sym_name parameter to return the offset into the string table
of the symbol associated with the reloc applied to the word.
(decode_tic6x_unwind_regmask): Add NULL argument to invocation of
get_unwind_section_word.
(dump_arm_unwind): Likewise.
(decode_arm_unwind_bytecode): Prepend a comma when *not* the first
register in a list.
(decode_arm_unwind): If the returned function address is 0 and a
valid symname offset is provided use that to compute the name
associated with the entry.
Add extra checks of the compact model index entry.
jkratoch [Fri, 2 Dec 2011 17:01:17 +0000 (17:01 +0000)]
gdb/
PR threads/13448
* dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
For DW_OP_GNU_push_tls_address increment the value, new comment for it.
gdb/testsuite/
PR threads/13448
* gdb.dwarf2/dw2-var-zero-addr.S: New file.
* gdb.dwarf2/dw2-var-zero-addr.exp: New file.
* gdb.threads/tls-var-main.c: New file.
* gdb.threads/tls-var.c: New file.
* gdb.threads/tls-var.exp: New file.
corinna [Fri, 2 Dec 2011 16:15:25 +0000 (16:15 +0000)]
* Makefile.in (cygpath.exe): Add -luserenv to ALL_LDFLAGS.
* cygpath.cc: Throughout, use cygwin_conv_path WIN_W rather than WIN_A
conversion.
(get_long_path_name_w32impl): Remove.
(get_long_name): Drop pre-Windows 2000 accommodations. Just call
GetLongPathNameW here directly.
(get_special_folder): Convert first parameter to WCHAR buffer pointer.
Drop conversion of result from WCHAR * to char *.
(do_sysfolders): Accommodate change to get_special_folder and only
convert result to char * last. Drop pre-Windows 2000 accommodations
and just call GetProfilesDirectoryW directly. Replace call to
GetWindowsDirectoryW with call to GetSystemWindowsDirectoryW.
Just call GetShortPathNameW directly.
(do_pathconv): Simplify buffer handling.
corinna [Fri, 2 Dec 2011 16:06:08 +0000 (16:06 +0000)]
* path.cc (conv_path_list): Take cygwin_conv_path_t as third parameter.
Allow all types of CCP conversions. Accommodate throughout.
(cygwin_conv_path): Use current ANSI or OEM codepage for WIN_A
conversions, depending on current file API codepage setting.
(cygwin_conv_path_list): Allow all CCP conversion types.
* include/sys/cygwin.h (CCP_CONVTYPE_MASK): Add to cygwin_conv_path_t
enum for convenience.
jkratoch [Fri, 2 Dec 2011 12:43:29 +0000 (12:43 +0000)]
gdb/testsuite/
PR testsuite/12649
* gdb.trace/collection.exp (gdb_collect_return_test): Import gdb_prompt.
Protect gdb_test_multiple by final $gdb_prompt match.
* gdb.trace/tspeed.exp (gdb_fast_trace_speed_test): Likewise.
* gdb.trace/tstatus.exp (run_trace_experiment): Likewise.
(test_tracepoints): Likewise.
jkratoch [Fri, 2 Dec 2011 01:28:54 +0000 (01:28 +0000)]
gdb/
PR breakpoints/13346
* dwarf2read.c (process_psymtab_comp_unit): Set
PSYMTABS_ADDRMAP_SUPPORTED.
* psympriv.h (struct partial_symtab): Comment textlow and texthigh
validity. New field psymtabs_addrmap_supported.
* psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
psymtabs_addrmap_supported.
(find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
!PSYMTABS_ADDRMAP_SUPPORTED.
(dump_psymtab, maintenance_info_psymtabs): Print also
psymtabs_addrmap_supported.
gdb/testsuite/
PR breakpoints/13346
* gdb.dwarf2/dw2-objfile-overlap-inner.S: New file.
* gdb.dwarf2/dw2-objfile-overlap-outer.S: New file.
* gdb.dwarf2/dw2-objfile-overlap.exp: New file.
devans [Fri, 2 Dec 2011 00:27:48 +0000 (00:27 +0000)]
* python/py-type.c (type_object_methods): Fix "array" doc string.
gdbadmin [Fri, 2 Dec 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
brobecke [Thu, 1 Dec 2011 23:16:44 +0000 (23:16 +0000)]
Make sure all types in gdb.ada/homonym testcase are used...
Otherwise, the compiler does not generate any debug info for them.
This fixes 3 FAILs:
FAIL: gdb.ada/homonym.exp: ptype local_type_subtype at BREAK_1
FAIL: gdb.ada/homonym.exp: ptype int_type at BREAK_1
FAIL: gdb.ada/homonym.exp: ptype local_type_subtype at BREAK_2
gdb/testsuite/ChangeLog:
* gdb.ada/homonym/pck.ads, gdb.ada/homonym/pck.adb: New files.
* gdb.ada/homonym/homonym.adb: For use of all types defined
locally inside both Get_Value subprograms.
amodra [Thu, 1 Dec 2011 23:00:05 +0000 (23:00 +0000)]
daily update
jkratoch [Thu, 1 Dec 2011 22:06:45 +0000 (22:06 +0000)]
gdb/testsuite/
Fix racy FAILs.
* gdb.base/foll-exec.exp (zap_session): Use gdb_test_no_output instead
of send_gdb.
tromey [Thu, 1 Dec 2011 20:27:27 +0000 (20:27 +0000)]
* gdb.texinfo (Writing a Pretty-Printer): Use append method, not
add.
nickc [Thu, 1 Dec 2011 15:50:56 +0000 (15:50 +0000)]
* elf32-m68k.c (elf_m68k_check_relocs) <R_68K_8, R68K_16, R_68K_32>: For
non-SEC_ALLOC sections break before GOT and PLT accounting.
corinna [Thu, 1 Dec 2011 13:06:13 +0000 (13:06 +0000)]
* mkgroup.c: Drop support for NT4 domains.
* mkpasswd.c: Ditto.
(psx_dir): Remove.
(current_user): Drop support for -m option. Use $HOME as is since it's
a POSIX path anyway.
(enum_users): Drop support for -m option.
(usage): Mention -m option as ignored.
(main): Drop support for -m option. Mark ignored options as deprecated.
* utils.sgml (mkpasswd): Remove description of -m option.
nickc [Thu, 1 Dec 2011 11:38:32 +0000 (11:38 +0000)]
* emultempl/spuelf.em (spu_elf_relink): Use pex_one in place
of execvp.
aburgess [Thu, 1 Dec 2011 10:37:06 +0000 (10:37 +0000)]
sourceware.org/ml/gdb-patches/2011-11/msg00778.html
* source.c (print_source_lines_base): Fix missing braces on else clause
leading to additional output.
hp [Thu, 1 Dec 2011 02:51:11 +0000 (02:51 +0000)]
* elf32-cris.c (cris_elf_check_relocs) <plt accounting for
R_CRIS_8, R_CRIS_16, and R_CRIS_32>: Move early break for
non-SEC_ALLOC sections before GOT and PLT accounting.
ironhead [Thu, 1 Dec 2011 00:24:35 +0000 (00:24 +0000)]
2011-11-30 Ozkan Sezer <sezero@users.sourceforge.net>
* include/io.h (_wfindfirst, _wfindnext, _wfindfirst32, _wfindnext32,
_wfindfirsti64, _wfindnexti64, _wfindfirst32i64, _wfindfirst64i32,
_wfindnext32i64, _wfindnext64i32, _wfindnext64): Update to use intptr_t.
ironhead [Thu, 1 Dec 2011 00:13:52 +0000 (00:13 +0000)]
2011-11-30 Earnie Boyd <earnie@users.sourceforge.net>
* include/stdio.h (getc, putc, getchar, putchar, fopen64, ftello64): Add
function definitions to fix warnings when building GCC.
gdbadmin [Thu, 1 Dec 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
ironhead [Wed, 30 Nov 2011 23:49:46 +0000 (23:49 +0000)]
2011-11-30 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
* tlssup.c (__dyn_tls_init): Reapply patch from
3105314.
Thank you to Earnie for creating the patch file.
kevinb [Wed, 30 Nov 2011 23:14:30 +0000 (23:14 +0000)]
* thread-db.c (TID_MAY_BE_REUSED): Define.
(find_new_threads_callback): Detect thread id reuse.
amodra [Wed, 30 Nov 2011 23:00:07 +0000 (23:00 +0000)]
daily update
uweigand [Wed, 30 Nov 2011 16:06:46 +0000 (16:06 +0000)]
ChangeLog:
* s390-nat.c (SUBOFF): Remove.
(s390_native_supply, s390_native_collect): New functions.
(supply_gregset, supply_fpregset): Use s390_native_supply.
(fill_gregset, fill_fpregset): Use s390_native_collect.
* s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
(s390_unwind_pseudo_register): New function.
(s390_prologue_frame_unwind_cache): Unwind PSW address and mask
registers instead of PC and CC.
(s390_backchain_frame_unwind_cache): Likewise.
(s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
full GPR pseudos.
(s390_trad_frame_prev_register): New function.
(s390_frame_prev_register): Use it.
(s390_sigtramp_frame_prev_register): Likewise.
(s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
(s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
special callback to unwind any pseudo.
* features/s390-core32.xml: Add pswm/pswa to save/restore group.
* features/s390-core64.xml: Likewise.
* features/s390x-core64.xml: Likewise.
* features/s390-linux32.c: Regenerate.
* features/s390-linux64.c: Likewise.
* features/s390x-linux64.c: Likewise.
gdbserver/ChangeLog:
* linux-s390-low.c (s390_collect_ptrace_register): Fully convert
PSW address/mask between 8-byte and 16-byte formats.
(s390_supply_ptrace_register): Likewise.
(s390_get_pc, s390_set_pc): 4-byte PSW address always includes
basic addressing mode bit.
uweigand [Wed, 30 Nov 2011 08:26:46 +0000 (08:26 +0000)]
* s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
uweigand [Wed, 30 Nov 2011 08:26:03 +0000 (08:26 +0000)]
* s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
instruction. Add more diagnostic output.
uweigand [Wed, 30 Nov 2011 08:25:15 +0000 (08:25 +0000)]
* gdb.base/testenv.exp: Skip on remote targets. Unset global
environment variable after test completed.
uweigand [Wed, 30 Nov 2011 08:24:30 +0000 (08:24 +0000)]
* gdb.base/solib-nodir.exp: Skip if remote target.
* gdb.base/gdb.fortran.exp: Use shlib= flag when linking main
application. Call gdb_load_shlibs.
* gdb.mi/mi-solib.exp: Use mi_load_shlibs instead of gdb_load_shlibs.
gdbadmin [Wed, 30 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Tue, 29 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update
pinskia [Tue, 29 Nov 2011 20:28:53 +0000 (20:28 +0000)]
opcode/
2011-11-29 Andrew Pinski <apinski@cavium.com>
* mips-dis.c (mips_arch_choices): Add Octeon+.
* mips-opc.c (IOCT): Include Octeon+.
(IOCTP): New macro.
(mips_builtin_opcodes): Add "saa" and "saad".
bfd/
2011-11-29 Andrew Pinski <apinski@cavium.com>
* archures.c (bfd_mach_mips_octeonp): New macro.
* bfd-in2.h: Regenerate.
* bfd/cpu-mips.c (I_mipsocteonp): New enum value.
(arch_info_struct): Add bfd_mach_mips_octeonp.
* elfxx-mips.c (mips_set_isa_flags): Add bfd_mach_mips_octeonp.
(mips_mach_extensions): Add bfd_mach_mips_octeonp.
include/opcodes/
2011-11-29 Andrew Pinski <apinski@cavium.com>
* mips.h (INSN_CHIP_MASK): Update according to INSN_OCTEONP.
(INSN_OCTEONP): New macro.
(CPU_OCTEONP): New macro.
(OPCODE_IS_MEMBER): Add Octeon+.
(M_SAA_AB, M_SAAD_AB, M_SAA_OB, M_SAAD_OB): New enum values.
gas/
2011-11-29 Andrew Pinski <apinski@cavium.com>
* config/tc-mips.c (CPU_IS_OCTEON): New macro function.
(CPU_HAS_SEQ): Change to use CPU_IS_OCTEON.
(NO_ISA_COP): Likewise.
(macro) <ld_st>: Add support when off0 is true.
Add support for M_SAA_AB, M_SAA_OB, M_SAAD_OB and M_SAAD_AB.
(mips_cpu_info_table): Add octeon+.
* doc/c-mips.texi: Document octeon+ as an acceptable value for -march=.
gas/testsuite/
2011-11-29 Andrew Pinski <apinski@cavium.com>
* gas/mips/mips.exp: Add octeon+ for an architecture.
Run octeon-saa-saad test.
(run_dump_test_arch): For Octeon architectures, also try octeon@.
* gas/mips/octeon-pref.d: Remove -march=octeon from command line.
* gas/mips/octeon.d: Likewise.
* gas/mips/octeon-saa-saad.d: New file.
* gas/mips/octeon-saa-saad.s: New file
roland [Tue, 29 Nov 2011 18:07:40 +0000 (18:07 +0000)]
* ar.c (ranlib_usage): Describe -D.
(ranlib_main): Parse -D.
(ranlib_touch): Set BFD_DETERMINISTIC_OUTPUT under -D.
* doc/binutils.texi (ranlib): Describe -D, and also --help/-h/-H.
cgf [Tue, 29 Nov 2011 17:41:00 +0000 (17:41 +0000)]
* sigproc.cc (get_proc_lock): Remove extra NULL check. Return false on
failure.
cgf [Tue, 29 Nov 2011 17:26:56 +0000 (17:26 +0000)]
* sync.cc: Fix comment.
* dll_init.cc (dll_list::reserve_space): Use %p rather than %lx to show
reserved space.
brobecke [Tue, 29 Nov 2011 16:59:43 +0000 (16:59 +0000)]
New gdb.base/infoline.exp testcase.
gdb/testsuite/ChangeLog:
* gdb.base/infoline.c, gdb.base/infoline.exp: New files.
cgf [Tue, 29 Nov 2011 15:34:47 +0000 (15:34 +0000)]
* sigproc.cc (remove_proc): Don't terminate the currently executing thread.
macro [Tue, 29 Nov 2011 12:42:10 +0000 (12:42 +0000)]
PR ld/10144
* lib/ld-lib.exp (run_ld_link_tests): Handle sources from other
directories.
(run_ld_link_exec_tests): Likewise.
(run_cc_link_tests): Likewise.
* ld-elf/comm-data1.sd: New test.
* ld-elf/comm-data1.s: Source for the new test.
* ld-elf/comm-data2.sd: New test.
* ld-elf/comm-data2.rd: Likewise.
* ld-elf/comm-data2.xd: Likewise.
* ld-elf/comm-data2.s: Source for the new tests.
* ld-elf/comm-data.exp: New file.
* ld-mips-elf/comm-data.exp: Likewise.
ndreys [Tue, 29 Nov 2011 10:26:23 +0000 (10:26 +0000)]
* MAINTAINERS (Write After Approval): Add myself to the list.
sanjoyd [Tue, 29 Nov 2011 08:30:21 +0000 (08:30 +0000)]
gdb/
* jit.c (add_objfile_entry, jit_reader_try_read_symtab)
(jit_bfd_try_read_symtab): Fix comments.
dj [Tue, 29 Nov 2011 06:33:47 +0000 (06:33 +0000)]
[libgloss]
* configure.in: Add rl78.
* configure: Regenerate.
* rl78: New directory
[newlib]
* configure.host: Add rl78.
* libc/include/machine/ieeefp.h: Add rl78 support.
* libc/include/machine/setjmp.h: Add rl78 support.
* libc/machine/configure.in: Add rl78.
* libc/machine/rl78: New directory.
brobecke [Tue, 29 Nov 2011 06:25:05 +0000 (06:25 +0000)]
Record Mike Frysinger as a sim Global Maintainer.
sim/ChangeLog:
* maintainers (global maintainers): new section. add mike
frysinger.
cgf [Tue, 29 Nov 2011 05:38:12 +0000 (05:38 +0000)]
fix older description
dj [Tue, 29 Nov 2011 03:49:08 +0000 (03:49 +0000)]
[sim]
* configure.tgt: Add rl78 support.
* configure: Regenerate.
* rl78: New directory.
* MAINTAINERS: Add myself as RL78 maintainer.
[gdb]
* NEWS: Mention RL78 simulator.
brobecke [Tue, 29 Nov 2011 01:09:22 +0000 (01:09 +0000)]
Further fix the documentation in struct quick_symbol_functions
gdb/ChangeLog:
* symfile.h (struct quick_symbol_functions): Fix the documentation
of field map_matching_symbols, as symbols are sorted using
strcmp_iw_ordered, not strcmp_iw.
brobecke [Tue, 29 Nov 2011 01:01:01 +0000 (01:01 +0000)]
Update documentation in struct quick_symbol_functions
Paul sent me this documentiion update when I asked him a question
about compare_names in ada-lang.c.
gdb/ChangeLog:
* symfile.h (struct quick_symbol_functions): Update the
documentation for field map_matching_symbols.
brobecke [Tue, 29 Nov 2011 01:00:44 +0000 (01:00 +0000)]
wrong value returned by ada-lang.c:compare_names
The ada-lang.c:compare_names function returns the wrong value
when the first string starts with the same contents as the second
string, followed by '_' and then some characters that do not make
a symbol name suffix. For instance:
string1 = "generics__test_generics__instance__print"
string2 = "generics__test_generics"
In that case, compare_names (string1, string2) return -1, when
clearly, string1 is greater than string2.
A consequence of this problem is that GDB may fail to lookup
"generics.test_generics" from our partial symtabs, because
partial symbols are ordered by strcmp_iw_ordered:
(gdb) b generics.test_generics
Function "generics.test_generics" not defined.
Make breakpoint pending on future shared library load? (y or [n])
gdb/ChangeLog:
* ada-lang.c (compare_names): Fix wrong return value in case
string1 starts with the same contents as string2, followed
by an underscore that do not start a symbol name suffix.
gdb/testsuite/ChangeLog:
* gdb.ada/fullname_bp: New testcase.
gdbadmin [Tue, 29 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Mon, 28 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update
corinna [Mon, 28 Nov 2011 17:58:48 +0000 (17:58 +0000)]
* locale.cc (print_locale_with_codeset): Fetch Windows path as UNICODE
path and convert that to POSIX.
corinna [Mon, 28 Nov 2011 17:53:17 +0000 (17:53 +0000)]
* external.cc (fillout_pinfo): Store program name as POSIX path in
ep.progname_long.
corinna [Mon, 28 Nov 2011 17:49:56 +0000 (17:49 +0000)]
* ps.cc: Remove all Win 9x considerations. Use psapi functions
directly. Drop support for older Cygwin DLLs. Just use progname_long
as is since it's already a POSIX path now. Rename "tty" to "pty" as in
the Cygwin DLL. Call setlocale to make sure wcstombs does the right
thing according to the current locale.
* Makefile.in (ps.exe): Link against psapi.dll.
nickc [Mon, 28 Nov 2011 16:51:09 +0000 (16:51 +0000)]
PR binutils/13421
* readelf.c (arm_section_get_word): Add descriptive comments.
Initliase the rel_type field of the arm_sec structure.
(expand_prel31): Rename to arm_expand_prel31.
(dump_arm_unwind): Use new name.
Print the function name based on the function address entry.
corinna [Mon, 28 Nov 2011 16:00:03 +0000 (16:00 +0000)]
* pinfo.cc (pinfo::exit): Call TerminateProcess to avoid potential
busy loop in ntdll.dll when calling ExitProcess. Only call ExitProcess
as a fallback.
pmuldoon [Mon, 28 Nov 2011 15:49:40 +0000 (15:49 +0000)]
2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
PR python/13369
PR python/13374
* python/python.c (gdbpy_decode_line): Do not acquire GIL.
* python/py-inferior.c (inferior_to_inferior_object): Ditto.
* python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
exceptions.
* python/py-type.c (typy_strip_typedefs): Ditto.
(typy_legacy_template_argument): Ditto.
* python/py-inferior.c (inferior_to_inferior_object): Ditto.
* python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
gdbadmin [Mon, 28 Nov 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sun, 27 Nov 2011 23:00:06 +0000 (23:00 +0000)]
daily update
cgf [Sun, 27 Nov 2011 19:00:31 +0000 (19:00 +0000)]
* init.cc (dll_entry): Revert previous change since it caused inexplicable fork
problems.
brobecke [Sun, 27 Nov 2011 17:39:29 +0000 (17:39 +0000)]
remove use of sprintf_vma in remote_get_tracepoint_status
This function takes a VMA and was forcing us to perform a cast to
compile without warning on one platform. Except that the cast caused
a warning on sparc-solaris. This patch fixes the problem by using
phex_nz instead.
gdb/ChangeLog:
* remote.c (remote_get_tracepoint_status): Delete addrbuf
local variable. Avoid use of sprintf_vma.
sanjoyd [Sun, 27 Nov 2011 14:26:05 +0000 (14:26 +0000)]
gdb/
Fix regression in jit.exp.
* jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
(jit_register_code): Set the jit_objfile_data field to the correct
value.
gdbadmin [Sun, 27 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sat, 26 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update
keithmarshall [Sat, 26 Nov 2011 22:12:50 +0000 (22:12 +0000)]
Clean up DIRENT errno handling; make it more POSIX conformant.
cgf [Sat, 26 Nov 2011 19:20:13 +0000 (19:20 +0000)]
* init.cc (remove): Don't bother calling through thread removal cleanup if we
are exiting.
cgf [Sat, 26 Nov 2011 19:14:19 +0000 (19:14 +0000)]
* exceptions.cc (stackdump): Make global.
(signal_exit): Move to sigproc.cc.
* sigproc.cc (signal_exit): Move here. Declare stackdump extern. Set
my_sendsig to indicate that signals are no longer available.
(my_readsig): Make Static again.
(sig_send): Interpret ERROR_BROKEN_PIPE as ESRCH. Remove special-case EACCESS
errno setting, just setting errno generally, even for "its_me" case.
cgf [Sat, 26 Nov 2011 02:35:47 +0000 (02:35 +0000)]
* exceptions.cc (sigpacket::process): Move signal_exit processing into...
(_cygtls::signal_exit): ...here. Close my_readsig and comment on why.
* pinfo.cc (pinfo::exit): Move sigproc_terminate earlier. Set exiting flag in
lock_process.
* sigproc.cc (my_readsig): Make global.
* sync.cc (muto::exiting_thread): Delete.
(muto::acquire): Delete #if 0'ed code.
* sync.h (muto::exiting_thread): Delete.
(set_exiting_thread): Ditto.
(lock_process::lock_process): Don't worry about setting the exiting thread
since it had no meaning.
gdbadmin [Sat, 26 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
jkratoch [Fri, 25 Nov 2011 23:53:44 +0000 (23:53 +0000)]
gdb/testsuite/
Code cleanup.
* gdb.reverse/i386-sse-reverse.exp (continue to end of sse4_test):
Convert send_gdb and gdb_expect to gdb_test_multiple.
jkratoch [Fri, 25 Nov 2011 23:50:13 +0000 (23:50 +0000)]
gdb/testsuite/
PR testsuite/12649
* gdb.reverse/i386-sse-reverse.exp (continue to end of sse_test #2):
Wrap send_gdb into a new gdb_test.