aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-03-25 * readelf.c (process_file_header): Don't report a corrupt stringAlan Modra2-1/+7
table index if it is zero.
2009-03-25 * symtab.h (needs_plt_entry): Check for unsatisfied reference fromCary Coutant2-2/+12
an executable. (needs_dynamic_reloc): Likewise.
2009-03-252009-03-24 Tom Tromey <tromey@redhat.com>Tom Tromey7-49/+54
Pedro Alves <pedro@codesourcery.com> * configure, config.in: Rebuild. * configure.ac: Check for libiconvlist. * charset.c: Check HAVE_LIBICONVLIST. * acinclude.m4 (AM_ICONV): Don't subst LIBICONV, LIBICONV_INCLUDE, LIBICONV_LIBDIR. Update CPPFLAGS and LIBS. * Makefile.in (LIBICONV, LIBICONV_INCLUDE, LIBICONV_LIBDIR): Remove. (INTERNAL_CFLAGS_BASE): Update. (INTERNAL_LDFLAGS): Update. (CLIBS): Update.
2009-03-25daily updateAlan Modra1-1/+1
2009-03-25*** empty log message ***gdbadmin1-1/+1
2009-03-24 * yyscript.y (file_cmd): Recognize EXTERN.Ian Lance Taylor4-1/+47
(extern_name_list, extern_name_list_body): New nonterminals. * script.cc (script_add_extern): Define. * script-c.h (script_add_extern): Declare.
2009-03-24 * object.cc (is_elf_object): Define.Ian Lance Taylor5-81/+95
* object.h (is_elf_object): Declare. * archive.cc (Archive::get_elf_object_for_member): Call is_elf_object. * readsymc.cc (Read_symbols::do_read_symbols): Likewise.
2009-03-242009-03-24 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-4/+11
* cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static. (bfd_i386_arch_intel_syntax): Likewise. (i8086_arch): Likewise. (bfd_x86_64_arch): Likewise.
2009-03-24 * output.cc (Output_file::map_anonymous): Define.Ian Lance Taylor3-7/+35
(Output_file::map): Use map_anonymous. If the regular mmap fails, try an anonymous one. Report the size if the mmap fails. * output.h (class Output_file): Declare map_anonymous.
2009-03-24 * target-select.cc (instantiate_target): Don't acquire the lock ifIan Lance Taylor3-4/+14
the instantiated_target_ field has already been set.
2009-03-24 * configure.ac: Initialize the variable $PREFER_CURSES.Jan Kratochvil3-2/+9
* configure: Regenerated.
2009-03-24 * configure.ac: Enable $PREFER_CURSES even with default $ENABLE_TUI.Jan Kratochvil3-2/+7
* configure: Regenerated.
2009-03-24 * ld-cris/tls-commx.s, ld-cris/tls-dso-dtpoffd2.d,Hans-Peter Nilsson6-0/+113
ld-cris/tls-dso-dtpoffd4.d, ld-cris/tls-dtpoffdx.s, ld-cris/tls-e-dtpoffd1.d: New tests.
2009-03-24 * elf32-cris.c (cris_elf_relocate_section): <caseHans-Peter Nilsson2-6/+31
R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local symbols for non-allocated sections. Don't check whether to generate R_CRIS_DTPMOD for non-allocated sections. (cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't handle relocation GC:ing if applied to non-allocated section. (cris_elf_check_relocs): Similar.
2009-03-24 ARI fix: "strerror" rule.Pierre Muller2-4/+10
* darwin-nat.c (darwin_ptrace): Use safe_strerror. (darwin_stop_inferior, darwin_attach, darwin_detach): Ditto.
2009-03-242009-03-23 Ian Lance Taylor <iant@google.com>Ian Lance Taylor11-39/+220
* gold-threads.h (class Initialize_lock): Define. * gold-threads.cc (class Initialize_lock_once): Define. (initialize_lock_control): New static variable. (initialize_lock_pointer): New static variable. (initialize_lock_once): New static function. (Initialize_lock::Initialize_lock): Define. (Initialize_lock::initialize): Define. * target-select.h: Include "gold-threads.h". (class Target_selector): Add lock_ and initialize_lock_ fields. Don't define instantiate_target, just declare it. * target-select.cc (Target_selector::Target_selector): Initialize new fields. (Target_selector::instantiate_target): Define. * descriptors.h: Include "gold-threads.h". (class Descriptors): Add initialize_lock_ field. * descriptors.cc (Descriptors::Descriptors): Initialize new field. (Descriptors::open): Use initialize_lock_ field * errors.h (class Errors): Add initialize_lock_ field. * errors.cc (Errors::Errors): Initialize new field. (Errors::initialize_lock): Use initialize_lock_ field. * powerpc.cc (class Target_selector_powerpc): Remove instantiated_target_ field. In do_recognize call instantiate_target rather than do_instantiate_target. In do_instantiate_target just allocate a new target. * sparc.cc (class Target_selector_sparc): Likewise.
2009-03-24 * ld-cris/tls-e-20.d, ld-cris/tls-e-20a.d, ld-cris/tls-e-21.d,Hans-Peter Nilsson15-16/+26
ld-cris/tls-e-80.d, ld-cris/tls-gd-3.d, ld-cris/tls-gd-3h.d, ld-cris/tls-global-74.d, ld-cris/tls-ldgde-14.d, ld-cris/tls-ldgde-15.d, ld-cris/tls-legd-16.d, ld-cris/tls-legd-17.d, ld-cris/tls-local-57.d, ld-cris/tls-local-58.d, ld-cris/tls-local-59.d: Adjust for BFD change in link-time known GOT contents for GD relocations.
2009-03-24 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>Hans-Peter Nilsson2-2/+7
<R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size when emitting a known TP offset in the GOT.
2009-03-24 * ada-exp.y (get_symbol_field_type): Make sure to resolve typedefsJoel Brobecker2-0/+6
before looking up the fields inside our struct type.
2009-03-24 * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs beforeJoel Brobecker2-1/+6
trying to resolve the type qualification.
2009-03-24 * ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sureJoel Brobecker2-1/+7
we try to apply the attribute on the real type, rather than its associated typedef.
2009-03-24 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdefJoel Brobecker2-1/+7
to make sure we try to get the modulus of the actual type, not the associated typedef.
2009-03-24 * ada-lang.c (ada_evaluate_subexp): [OP_ATR_FIRST, OP_ATR_LAST]Joel Brobecker2-1/+7
[OP_ATR_LENGTH]: When using the attribute on a type, make sure to get the real type, not the associated typedef.
2009-03-24Fix typo (sleep -> usleep).Joel Brobecker1-1/+1
2009-03-24 * ada-lang.c (ada_get_field_index): Add handling of the caseJoel Brobecker2-9/+17
when TYPE is a typedef of a struct.
2009-03-24 * gdb_usleep.h, gdb_usleep.c: New files.Joel Brobecker5-9/+88
* Makefile.in (SFILES): Add gdb_usleep.c. (HFILES_NO_SRCDIR): Add gdb_usleep.h. (COMMON_OBS): Add gdb_usleep.o. * ser-unix.c (hardwire_send_break): Replace call to gdb_select by call to gdb_usleep.
2009-03-24 * buildsym.c (end_symtab): If we ignore the subfiles, thenJoel Brobecker2-0/+31
unlink the associated symtabs if they were already allocated.
2009-03-24 Provide a way to force building of GDB with libcurses.Joel Brobecker3-27/+74
* configure.ac: Add --with-curses. * configure: Regenerated.
2009-03-242009-03-23 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-5/+19
PR gas/9966 * listing.c (listing_newline): Properly handle `\\"' and ';'. * read.c (is_end_of_line): Update comments for line separator. (read_begin): Set line separator in is_end_of_line to 2.
2009-03-242009-03-23 Ian Lance Taylor <iant@google.com>Ian Lance Taylor14-16/+259
* freebsd.h: New file. * i386.cc: Include "freebsd.h". (Target_i386): Derive from Target_freebsd rather than Sized_target. (Target_selector_i386): Derive from Target_selector_freebsd rather than Target_selector. * x86_64.cc: Include "freebsd.h". (Target_x86_64): Derive from Target_freebsd rather than Sized_target. (Target_selector_x86_64): Derive from Target_selector_freebsd rather than Target_selector. * target.h (class Target): Add adjust_elf_header and do_adjust_elf_header. * output.cc (Output_file_header:: do_sized_write): Call target adjust_elf_header routine. * configure.tgt: Set targ_osabi. * configure.ac: Define GOLD_DEFAULT_OSABI. * parameters.cc (Parameters::default_target): Pass GOLD_DEFAULT_OSABI to select_target. * target-select.h (class Target_selector): Make instantiate_target protected rather than private. * Makefile.am (HFILES): Add freebsd.h. * configure, Makefile.in, config.in: Rebuild.
2009-03-24daily updateAlan Modra1-1/+1
2009-03-24*** empty log message ***gdbadmin1-1/+1
2009-03-23merge from gccDJ Delorie3-6/+36
2009-03-23 * merge.cc (do_add_input_section): Correct pend value. ChangeIan Lance Taylor2-3/+11
message about last entry not being null terminated from error to warning.
2009-03-23 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_uninit>: Fix typo inTom Tromey2-1/+6
error message.
2009-03-232009-03-23 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-20/+19
* breakpoint.c (disable_breakpoints_in_unloaded_shlib): Use solib_contains_address_p instead of searching.
2009-03-23 * charset.c (ICONV_CONST) <PHONY_ICONV>: Define.Tom Tromey2-3/+14
(iconv): Make 'inbuf' argument const. (convert_between_encodings): Use ICONV_CONST. (wchar_iterate): Likewise.
2009-03-23 * elf64-ppc.c (synthetic_opd): Delete.Alan Modra2-6/+12
(compare_symbols): Look for .opd name rather than section match. (ppc64_elf_get_synthetic_symtab): Likewise.
2009-03-23 * server.c (handle_query) Whitespace and formatting.Pedro Alves2-10/+12
2009-03-23*** empty log message ***gdbadmin1-1/+1
2009-03-23daily updateAlan Modra1-1/+1
2009-03-22 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,Pedro Alves25-271/+285
linux-crisv32-low.c, linux-i386-low.c, linux-low.c, linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c, linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c, regcache.c, remote-utils.c, server.c, spu-low.c, target.h, thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c, Makefile.in, configure.ac: Fix whitespace throughout. * configure: Regenerate.
2009-03-22 * inferiors.c (find_inferior): Make it safe for the callbackPedro Alves2-1/+9
function to delete the currently iterated inferior.
2009-03-22 * Makefile.in (linuw_low_h): Move higher.Pedro Alves2-3/+8
(thread-db.o): Depend on $(linux_low_h).
2009-03-22* windows-nat.c (AdjustTokenPrivileges): Implement macro wraparound forChristopher Faylor2-37/+47
dynamically loaded function. (LookupPrivilegeValueA): Ditto. (OpenProcessToken): Ditto. (AdjustTokenPrivileges): Rename and define placeholder for address of dynamically loaded function. (LookupPrivilegeValueA): Ditto. (OpenProcessToken): Ditto. (set_process_privilege): Remove check for loaded functions. (bad_OpenProcessToken): Define. (_initialize_loadable): Load token functions from advapi here, setting OpenProcessToken function to a dummy static function which always return error if OS doesn't support this functionality.
2009-03-22* win32-nat.c (ctrl_c_handler): New function.Christopher Faylor2-21/+66
(win32_wait): Register ctrl_c_handler as Ctrl-C handler if the inferior is run in a separate console.
2009-03-22* windows-nat.c (DebugActiveProcessStop): Implement macro wraparound forChristopher Faylor2-108/+173
dynamically loaded function. (DebugBreakProcess): Ditto. (DebugSetProcessKillOnExit): Ditto. (EnumProcessModules): Ditto. (GetModuleFileNameExA): Ditto. (GetModuleInformation): Ditto. (DebugActiveProcessStop): Rename and define placeholder for address of dynamically loaded function. for dynamically loaded function. (DebugBreakProcess): Ditto. (DebugSetProcessKillOnExit): Ditto. (EnumProcessModules): Ditto. (GetModuleFileNameExA): Ditto. (GetModuleInformation): Ditto. (psapi_loaded): Delete. (get_module_name): Don't check psapi_loaded, just rely on the fact that dynamically loaded functions will return failure if they weren't previously found. (has_detach_ability): Delete. (windows_attach): Remove call to has_detach_ability (). Just rely on functions being callable. (bad_DebugActiveProcessStop): Define. (bad_DebugBreakProcess): Ditto. (bad_DebugSetProcessKillOnExit): Ditto. (bad_EnumProcessModules): Ditto. (bad_GetModuleFileNameExA): Ditto. (bad_GetModuleInformation): Ditto. (_initialize_loadable): Rename from _initialize_psapi. Initialize all dynamic storage here, setting nonexistent functions to dummy static functions which always return error.
2009-03-22 Fix a racy FAIL.Jan Kratochvil3-10/+20
* gdb.base/auxv.exp (fetch_auxv): Fix trailing newlines consumption. * gdb.base/callfuncs.exp (fetch_all_registers): Likewise.
2009-03-22gdb/Pedro Alves9-11/+83
* mi/mi-interp.c (mi_interpreter_init): Attach mi_about_to_proceed to the about_to_proceed observer notification. (mi_about_to_proceed): New. (mi_on_resume): Only output ^running and the prompt here if the target was proceeded. * breakpoint.c (breakpoint_proceeded): New static. (breakpoint_about_to_proceed): New. (_initialize_breakpoints): Attach breakpoint_about_to_proceed to the about_to_proceed observer notification. * inferior.h (breakpoint_proceeded): Delete declaration. * infrun.c (clear_proceed_status): Don't set breakpoint_proceeded. Notify the about_to_proceed observers. (struct inferior_status): Delete breakpoint_proceeded member. (save_inferior_status): Don't save it. (restore_inferior_status): Don't restore it. * mi-main.h (mi_proceeded): Declare. * mi/mi-main.c (mi_cmd_execute): Clear mi_proceeded before running a command. gdb/doc/ * observer.texi (about_to_proceed): New.
2009-03-22 * gdbthread.h (struct thread_info): Add in_infcall member.Pedro Alves8-22/+50
* infcall.c (run_inferior_call): Save, set and restore in_infcall. Remove reverences to suppress_resume_observer. Refresh `call_thread' after returning from `proceed'. * infcmd.c (suppress_resume_observer): Delete. * inferior.h (suppress_resume_observer): Delete declaration. * mi/mi-interp.c (mi_on_resume): Suppress output while calling an inferior function. * thread.c (set_running): Remove references to suppress_resume_observer. * infrun.c (struct inferior_status): Add in_infcall member. (save_inferior_status): Save it. (restore_inferior_status): Restore it.