OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
12 years ago2012-01-20 Pedro Alves <palves@redhat.com>
uweigand [Fri, 20 Jan 2012 09:42:43 +0000 (09:42 +0000)]
2012-01-20  Pedro Alves  <palves@redhat.com>
    Ulrich Weigand  <ulrich.weigand@linaro.org>

* inferior.h (struct inferior): Add fake_pid_p.
* inferior.c (exit_inferior_1): Clear fake_pid_p.
* remote.c (remote_start_remote): Set fake_pid_p if we have to use
magic_null_ptid since the remote side doesn't provide a real PID.

12 years agoAdd typename on types used in template
hjl [Fri, 20 Jan 2012 00:43:56 +0000 (00:43 +0000)]
Add typename on types used in template

2012-01-22  H.J. Lu  <hongjiu.lu@intel.com>

* x86_64.cc (gc_process_relocs): Add typename on types used in
template.
(scan_relocs): Likewise.
(relocate_section): Likewise.
(apply_relocation): Likewise.

12 years ago*** empty log message ***
gdbadmin [Fri, 20 Jan 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Thu, 19 Jan 2012 23:00:07 +0000 (23:00 +0000)]
daily update

12 years ago * NEWS: Combine the two Python sections.
tromey [Thu, 19 Jan 2012 16:53:56 +0000 (16:53 +0000)]
* NEWS: Combine the two Python sections.

12 years agogdb/
jkratoch [Thu, 19 Jan 2012 16:36:37 +0000 (16:36 +0000)]
gdb/
* target.h (target_close): Update comment on the target's unpush state.

12 years ago2012-01-19 Pedro Alves <palves@redhat.com>
palves [Thu, 19 Jan 2012 16:32:51 +0000 (16:32 +0000)]
2012-01-19  Pedro Alves  <palves@redhat.com>

* linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
linux_nat_async directly instead of going through the target
vector.
* target.c (unpush_target): Close target after unpushing it, not
before.

12 years ago2012-01-19 Tristan Gingold <gingold@adacore.com>
gingold [Thu, 19 Jan 2012 13:58:15 +0000 (13:58 +0000)]
2012-01-19  Tristan Gingold  <gingold@adacore.com>

* dwarf.c (process_extended_line_op): Add a cast to silent a
warning.

12 years ago2012-01-19 Gary Benson <gbenson@redhat.com>
gary [Thu, 19 Jan 2012 12:51:04 +0000 (12:51 +0000)]
2012-01-19  Gary Benson  <gbenson@redhat.com>

* mdebugread.c (sort_blocks): Replace integer constants with ones
derived from FIRST_LOCAL_BLOCK.

12 years agogdb/testsuite/
jkratoch [Thu, 19 Jan 2012 12:44:01 +0000 (12:44 +0000)]
gdb/testsuite/
* .gdbinit: Remove.

12 years ago2012-01-19 Pedro Alves <palves@redhat.com>
palves [Thu, 19 Jan 2012 12:37:28 +0000 (12:37 +0000)]
2012-01-19  Pedro Alves  <palves@redhat.com>

* gdb.java/jprint.exp: Don't rely on inferior output, but instead
look at the funtions' returns.
* gdb.java/jprint.java (jvclass.addprint, jprint.print(int))
(jprint.print(int, int)): Change return type to int.  Adjust.

12 years ago2012-01-19 Tristan Gingold <gingold@adacore.com>
gingold [Thu, 19 Jan 2012 11:45:35 +0000 (11:45 +0000)]
2012-01-19  Tristan Gingold  <gingold@adacore.com>

* pef.c: Add a comment.
* xsym.c: Likewise.

12 years ago2012-01-19 Tristan Gingold <gingold@adacore.com>
gingold [Thu, 19 Jan 2012 11:34:44 +0000 (11:34 +0000)]
2012-01-19  Tristan Gingold  <gingold@adacore.com>

* dwarf.c (process_extended_line_op): Reindent define_file output.
Detect define_file opcode length mismatch.
(display_debug_lines_decoded): Add an entry in file_table for each
define_file opcode.
Ignore DW_LNE_set_discriminator and DW_LNE_HP_set_sequence.
Display extended opcode for unhandle opcode.

12 years ago*** empty log message ***
gdbadmin [Thu, 19 Jan 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Wed, 18 Jan 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
ppluzhnikov [Wed, 18 Jan 2012 18:58:42 +0000 (18:58 +0000)]
2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
    Jan Kratochvil  <jan.kratochvil@redhat.com>

PR gdb/9538
* symfile.c (find_separate_debug_file): New function.
(terminate_after_last_dir_separator): Likewise.
(find_separate_debug_file_by_debuglink): Also try realpath.
* configure.ac (AC_CHECK_FUNCS): Add lstat.
* configure: Regenerate.
* config.in: Regenerate.

testsuite/ChangeLog:

2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>

PR gdb/9538
* gdb.base/sepdebug.exp: New test.

12 years ago * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
devans [Wed, 18 Jan 2012 18:35:40 +0000 (18:35 +0000)]
* Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
(main.o): Remove rule.
* configure.ac (BINDIR): Define with AC_DEFINE_DIR.
(--with-sysroot): Rewrite.
* configure: Regenerate.
* config.in: Regenerate.

12 years ago2012-01-18 Pedro Alves <palves@redhat.com>
palves [Wed, 18 Jan 2012 17:00:16 +0000 (17:00 +0000)]
2012-01-18  Pedro Alves  <palves@redhat.com>

* gdb.ada/mi_task_info.exp (-ada-task-info with no argument):
Allow output before ^done.

12 years ago2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
sergiodj [Wed, 18 Jan 2012 12:47:31 +0000 (12:47 +0000)]
2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>

* parse.c (initialize_expout): New function.
(reallocate_expout): Likewise.
(parse_exp_in_context): Use `initialize_expout' and
`reallocate_expout' when appropriate.

12 years ago2012-01-18 Pedro Alves <palves@redhat.com>
palves [Wed, 18 Jan 2012 11:51:54 +0000 (11:51 +0000)]
2012-01-18  Pedro Alves  <palves@redhat.com>

* record.c (struct record_breakpoint, record_breakpoint_p)
(record_breakpoints): New.
(record_insert_breakpoint, record_remove_breakpoint): Manage
record breakpoints list.  Only remove breakpoints from the
inferior if they had been inserted there in the first place.

12 years ago*** empty log message ***
gdbadmin [Wed, 18 Jan 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Tue, 17 Jan 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago * linespec.c (decode_line_internal): Don't call symtabs_from_filename
devans [Tue, 17 Jan 2012 20:30:14 +0000 (20:30 +0000)]
* linespec.c (decode_line_internal): Don't call symtabs_from_filename
if we know we don't have a file name to look for.

12 years ago2012-01-17 Pedro Alves <palves@redhat.com>
palves [Tue, 17 Jan 2012 17:22:10 +0000 (17:22 +0000)]
2012-01-17  Pedro Alves  <palves@redhat.com>

* tracepoint.c (initialize_tracepoint): Use mmap instead of
memalign plus mprotect to allocate the scratch buffer.

12 years ago2012-01-17 Pedro Alves <palves@redhat.com>
palves [Tue, 17 Jan 2012 14:03:29 +0000 (14:03 +0000)]
2012-01-17  Pedro Alves  <palves@redhat.com>

* dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
the frame's stop reason is UNWIND_UNAVAILABLE.

12 years ago * arm/linux-crt0.c: Use ldr instead of adr to get address of
corinna [Tue, 17 Jan 2012 10:03:40 +0000 (10:03 +0000)]
* arm/linux-crt0.c: Use ldr instead of adr to get address of
_start_thumb.

12 years ago * write.c (fix_new_internal): Don't mark used parameter as unused.
amodra [Tue, 17 Jan 2012 00:20:29 +0000 (00:20 +0000)]
* write.c (fix_new_internal): Don't mark used parameter as unused.

12 years ago * config/default.exp: Provide tmpdir/ld/collect-ld.
amodra [Tue, 17 Jan 2012 00:16:53 +0000 (00:16 +0000)]
* config/default.exp: Provide tmpdir/ld/collect-ld.

12 years agoUpdate copyright message year.
amodra [Tue, 17 Jan 2012 00:07:01 +0000 (00:07 +0000)]
Update copyright message year.

12 years agogdb/
jkratoch [Tue, 17 Jan 2012 00:06:45 +0000 (00:06 +0000)]
gdb/
Fix compilation error.
* m2-exp.y (yyerror): Use ANSI C prototype.

12 years ago*** empty log message ***
gdbadmin [Tue, 17 Jan 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago PR binutils/10173
amodra [Mon, 16 Jan 2012 23:51:35 +0000 (23:51 +0000)]
PR binutils/10173
* cr16-dis.c (print_arg): Test symtab_size not num_symbols.

12 years ago* gas/testsuite/gas/m68k/pmove.s, gas/testsuite/gas/m68k/pmove.d: New test.
schwab [Mon, 16 Jan 2012 23:19:20 +0000 (23:19 +0000)]
* gas/testsuite/gas/m68k/pmove.s, gas/testsuite/gas/m68k/pmove.d: New test.
* gas/testsuite/gas/m68k/all.exp: Run it.

* opcodes/m68k-opc.c (m68k_opcodes): Fix entries for pmove with BADx/BACx
register and move them after pmove with PSR/PCSR register.

12 years agodaily update
amodra [Mon, 16 Jan 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago * elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leave
amodra [Mon, 16 Jan 2012 22:30:19 +0000 (22:30 +0000)]
* elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leave
trailing garbage in the note.
* elf64-ppc.c (ppc64_elf_write_core_note <NT_PRPSINFO>): Likewise.

12 years ago2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
sergiodj [Mon, 16 Jan 2012 21:03:36 +0000 (21:03 +0000)]
2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>

* f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
(growbuf_by_size): Likewise.
(yyerror): Likewise.
* m2-exp.y (make_qualname): Remove function (was #if 0'ed).
(modblock): Remove variable (was #if 0'ed).
(parse_number): Convert prototype from K&R to ANSI C.
(yyerror): Likewise.
* objc-exp.y (parse_number): Likewise.
(yyerror): Likewise.
(yylex): Remove #if 0'ed code.
* p-exp.y (uptok): Convert prototype from K&R to ANSI C.
(yyerror): Likewise.

12 years agogdb
tromey [Mon, 16 Jan 2012 20:40:47 +0000 (20:40 +0000)]
gdb
* NEWS: Add item.
* symtab.h (compare_filenames_for_search): Declare.
* symtab.c (compare_filenames_for_search): New function.
(iterate_over_some_symtabs): Use it.
* symfile.h (struct quick_symbol_functions)
<map_symtabs_matching_filename>: Change spec.
* psymtab.c (partial_map_symtabs_matching_filename): Use
compare_filenames_for_search.  Update for new spec.
* dwarf2read.c (dw2_map_symtabs_matching_filename): Use
compare_filenames_for_search.  Update for new spec.
* breakpoint.c (clear_command): Use compare_filenames_for_search.
gdb/doc
* gdb.texinfo (Specify Location): Document relative file name
handling.
gdb/testsuite
* gdb.linespec/linespec.exp: Change some tests to use $decimal.
Add tests for relative directory.

12 years agoCorrect misused 'rm -r' command in uninstall rules.
keithmarshall [Mon, 16 Jan 2012 20:37:23 +0000 (20:37 +0000)]
Correct misused 'rm -r' command in uninstall rules.

12 years agoGeneralise makefile references to subdirectories of lib.
keithmarshall [Mon, 16 Jan 2012 20:26:49 +0000 (20:26 +0000)]
Generalise makefile references to subdirectories of lib.

12 years agogdb
tromey [Mon, 16 Jan 2012 19:44:11 +0000 (19:44 +0000)]
gdb
PR python/13281:
* gdbtypes.h (TYPE_FLAG_ENUM): New macro.
(struct main_type) <flag_flag_enum>: New field.
* dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
* NEWS: Add entries.
* c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
enums.
* python/lib/gdb/printing.py (_EnumInstance): New class.
(FlagEnumerationPrinter): Likewise.
gdb/doc
* gdb.texinfo (gdb.printing): Document FlagEnumerationPrinter.
gdb/testsuite
* gdb.base/printcmds.c (enum flag_enum): New.
(three): New global.
* gdb.base/printcmds.exp (test_print_enums): Add test for flag
enum printing.
* gdb.python/py-pp-maint.py (build_pretty_printer): Instantiate
FlagEnumerationPrinter.
* gdb.python/py-pp-maint.exp: Add tests for FlagEnumerationPrinter.
* gdb.python/py-pp-maint.c (enum flag_enum): New.
(fval): New global.

12 years ago2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
sergiodj [Mon, 16 Jan 2012 17:44:32 +0000 (17:44 +0000)]
2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>

* breakpoint.c (create_sals_from_address_default): New function.
(create_breakpoints_sal_default): Likewise.
(decode_linespec_default): Likewise.
(is_marker_spec): Removed.
(strace_marker_p): New function.
(init_breakpoint_sal): Using `strace_marker_p' instead of
`is_marker_spec'.
(create_breakpoint): Call method `create_sals_from_address' from
breakpoint_ops, replacing code that created SALs conditionally
on the type of the breakpoint.  Call method `create_breakpoints_sal',
replacing code that created breakpoints conditionally on the type
wanted.
(base_breakpoint_create_sals_from_address): New function.
(base_breakpoint_create_breakpoints_sal): Likewise.
(base_breakpoint_decode_linespec): Likewise.
(base_breakpoint_ops): Add methods
`base_breakpoint_create_sals_from_address',
`base_breakpoint_create_breakpoints_sal' and
`base_breakpoint_decode_linespec'.
(bkpt_create_sals_from_address): New function.
(bkpt_create_breakpoints_sal): Likewise.
(bkpt_decode_linespec): Likewise.
(tracepoint_create_sals_from_address): Likewise.
(tracepoint_create_breakpoints_sal): Likewise.
(tracepoint_decode_linespec): Likewise.
(strace_marker_create_sals_from_address): Likewise.
(strace_marker_create_breakpoints_sal): Likewise.
(strace_marker_decode_linespec): Likewise.
(strace_marker_breakpoint_ops): New variable.
(addr_string_to_sals): Remove `marker_spec'.  Call method
`decode_linespec' from breakpoint_ops, replacing code that decoded
an address string into a SAL.  Use `strace_marker_p' instead of
`marker_spec'.
(strace_command): Decide whether we are dealing with a static
tracepoint with marker or not.  Use the appropriate breakpoint_ops.
(initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
* breakpoint.h (linespec_result, linespec_sals): New forward
declarations.
(breakpoint_ops) <create_sals_from_address>,
<create_breakpoints_sal>, <decode_linespec>: New methods.

12 years ago2012-01-16 Pedro Alves <palves@redhat.com>
palves [Mon, 16 Jan 2012 17:31:23 +0000 (17:31 +0000)]
2012-01-16  Pedro Alves  <palves@redhat.com>

* lib/gdb.exp (banned_procedures): New variable.
(banned_variables_traced): Rename to ...
(banned_traced): ... this.
(gdb_init): Also trace banned procedures.
(gdb_finish): Also untrace banned procedures.

12 years ago2012-01-16 Pedro Alves <palves@redhat.com>
palves [Mon, 16 Jan 2012 16:21:42 +0000 (16:21 +0000)]
2012-01-16  Pedro Alves  <palves@redhat.com>

Remove all calls to strace.

12 years ago * configure: Regenerate and re-add to repository.
corinna [Mon, 16 Jan 2012 08:44:37 +0000 (08:44 +0000)]
* configure: Regenerate and re-add to repository.
* .cvsignore: Fix accordingly.

12 years ago PR binutils/13593
amodra [Mon, 16 Jan 2012 08:43:20 +0000 (08:43 +0000)]
PR binutils/13593
* nm.c (OPTION_SIZE_SORT): Define.
(long_options): Don't set no_sort, sort_numerically or
sort_by_size directly.
(main): Instead set the flags here, making them mutually exclusive.

12 years ago PR ld/13491
amodra [Mon, 16 Jan 2012 08:30:18 +0000 (08:30 +0000)]
PR ld/13491
* coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test
h->root.type not h->type.
* coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise.

12 years ago PR ld/13491
amodra [Mon, 16 Jan 2012 08:30:09 +0000 (08:30 +0000)]
PR ld/13491
* coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test
h->root.type not h->type.
* coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise.

12 years ago*** empty log message ***
gdbadmin [Mon, 16 Jan 2012 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Sun, 15 Jan 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years agoAdd 'check' as GCS conforming alias for make's 'test' goal.
keithmarshall [Sun, 15 Jan 2012 21:30:46 +0000 (21:30 +0000)]
Add 'check' as GCS conforming alias for make's 'test' goal.

12 years agoMore makefile code refactoring; remove redundant INCLUDES references.
keithmarshall [Sun, 15 Jan 2012 20:56:25 +0000 (20:56 +0000)]
More makefile code refactoring; remove redundant INCLUDES references.

12 years agoAdd smart identification of auxiliary header file paths.
keithmarshall [Sun, 15 Jan 2012 19:11:08 +0000 (19:11 +0000)]
Add smart identification of auxiliary header file paths.

12 years agoMore makefile code refactoring; fix top_srcdir references.
keithmarshall [Sun, 15 Jan 2012 15:31:10 +0000 (15:31 +0000)]
More makefile code refactoring; fix top_srcdir references.

12 years agoUpdate and correct makefile rebuilding rules.
keithmarshall [Sun, 15 Jan 2012 15:10:08 +0000 (15:10 +0000)]
Update and correct makefile rebuilding rules.

12 years agoMore formatting adjustments.
keithmarshall [Sun, 15 Jan 2012 14:28:17 +0000 (14:28 +0000)]
More formatting adjustments.

12 years agoMiscellaneous formatting adjustments.
keithmarshall [Sun, 15 Jan 2012 14:20:35 +0000 (14:20 +0000)]
Miscellaneous formatting adjustments.

12 years agoImprove self-documentation of 'for' loop commands.
keithmarshall [Sun, 15 Jan 2012 12:39:00 +0000 (12:39 +0000)]
Improve self-documentation of 'for' loop commands.

12 years agoGeneralise 'all' rule to arbitrary prerequisite sub-directories.
keithmarshall [Sun, 15 Jan 2012 12:27:13 +0000 (12:27 +0000)]
Generalise 'all' rule to arbitrary prerequisite sub-directories.

12 years agoDerive package release index from configure time specification.
keithmarshall [Sun, 15 Jan 2012 12:20:06 +0000 (12:20 +0000)]
Derive package release index from configure time specification.

12 years ago PR ld/12758
amodra [Sun, 15 Jan 2012 01:57:14 +0000 (01:57 +0000)]
PR ld/12758
* ldlang.c (lang_process): Don't reopen all files, just those
newly added by plugin.

12 years ago*** empty log message ***
gdbadmin [Sun, 15 Jan 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Sat, 14 Jan 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years agoDiscontinue CVS tracking of generated 'configure' script.
keithmarshall [Sat, 14 Jan 2012 21:19:11 +0000 (21:19 +0000)]
Discontinue CVS tracking of generated 'configure' script.

12 years ago * NEWS: Update text for "maint set python print-stack".
devans [Sat, 14 Jan 2012 18:13:26 +0000 (18:13 +0000)]
* NEWS: Update text for "maint set python print-stack".
It is deprecated in gdb 7.4 and deleted in 7.5.

12 years agogdb/testsuite/
jkratoch [Sat, 14 Jan 2012 10:46:34 +0000 (10:46 +0000)]
gdb/testsuite/
* gdb.dwarf2/dw2-namespaceless-anonymous.S: New file.
* gdb.dwarf2/dw2-namespaceless-anonymous.exp: New file.

12 years ago*** empty log message ***
gdbadmin [Sat, 14 Jan 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Fri, 13 Jan 2012 23:00:11 +0000 (23:00 +0000)]
daily update

12 years agoAdd vmfunc
hjl [Fri, 13 Jan 2012 22:19:27 +0000 (22:19 +0000)]
Add vmfunc

gas/

2012-01-13  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (cpu_arch): Add ".vmfunc".

* doc/c-i386.texi: Document vmfunc.

gas/testsuite/

2012-01-13  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.exp: Run vmfunc and x86-64-vmfunc.

* gas/i386/vmfunc.d: New.
* gas/i386/vmfunc.s: Likewise.
* gas/i386/x86-64-vmfunc.d: Likewise.

opcodes/

2012-01-13  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (mod_table): Add vmfunc.

* i386-gen.c (cpu_flag_init): Add CPU_VMFUNC_FLAGS.
(cpu_flags): CpuVMFUNC.

* i386-opc.h (CpuVMFUNC): New.
(i386_cpu_flags): Add cpuvmfunc.

* i386-opc.tbl: Add vmfunc.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.

12 years ago2012-01-13 Pedro Alves <palves@redhat.com>
palves [Fri, 13 Jan 2012 20:06:40 +0000 (20:06 +0000)]
2012-01-13  Pedro Alves  <palves@redhat.com>

* server.c (attach_inferior): Clear `cont_thread'.

12 years ago2012-01-13 Pedro Alves <palves@redhat.com>
palves [Fri, 13 Jan 2012 20:02:36 +0000 (20:02 +0000)]
2012-01-13  Pedro Alves  <palves@redhat.com>

* server.c (main): Avoid infinite loop while detaching/killing
after a longjmp.

12 years ago2012-01-13 Paul Pluzhnikov <ppluzhnikov@google.com>
ppluzhnikov [Fri, 13 Jan 2012 18:39:31 +0000 (18:39 +0000)]
2012-01-13  Paul Pluzhnikov  <ppluzhnikov@google.com>

* gdb.base/attach-pie-misread.exp: Pass -pie only to the linker.
* gdb.base/pie-execl.exp: Likewise.

12 years agoreverse the order of relocs in mach-o gas output.
iains [Fri, 13 Jan 2012 15:19:06 +0000 (15:19 +0000)]
reverse the order of relocs in mach-o gas output.

gas:

* config/obj-macho.c (obj_mach_o_reorder_section_relocs): New.
* config/obj-macho.h (SET_SECTION_RELOCS): Define.
(obj_mach_o_reorder_section_relocs): Declare.

gas/testsuite:

* gas/all/redef2.d: Skip for Darwin.
* gas/all/redef3.d: Likewise.
* gas/all/weakref1.d: Likewise.
* gas/macros/irp.d: Likewise.
* gas/macros/repeat.d: Likewise.
* gas/macros/rept.d: Likewise.
* gas/macros/test2.d: Likewise.
* gas/macros/vararg.d: Likewise.
* gas/mach-o/macro-irp.d: New.
* gas/mach-o/macro-repeat.d: New.
* gas/mach-o/macro-rept.d: New.
* gas/mach-o/macro-test2.d: New.
* gas/mach-o/macro-vararg.d: New.
* gas/mach-o/redef2.d: New.
* gas/mach-o/redef3.d: New.

12 years agogdb/doc/
jkratoch [Fri, 13 Jan 2012 14:31:55 +0000 (14:31 +0000)]
gdb/doc/
* gdbint.texinfo (Coding Standards): Require braces for two lines of
code.

12 years agohandle absolute indirect syms in mach-o
iains [Fri, 13 Jan 2012 12:59:29 +0000 (12:59 +0000)]
handle absolute indirect syms in mach-o

bfd:

* mach-o.c (bfd_mach_o_build_dysymtab_command): Handle absolute
indirect symbols.
gas:

* config/obj-macho.c (obj_mach_o_set_indirect_symbols): Handle
absolute indirect symbols.

gas/testsuite:

* gas/mach-o/dysymtab-3.d: New.
* gas/mach-o/symbols-7.s: New.

12 years agoorder relocs after segments for mach-o
iains [Fri, 13 Jan 2012 12:08:22 +0000 (12:08 +0000)]
order relocs after segments for mach-o

bfd:

* mach-o.c (bfd_mach_o_write_relocs): Move compuation of relocs file
position from here... to (bfd_mach_o_build_seg_command): Here.

12 years agoset vma on mach-o sections.
iains [Fri, 13 Jan 2012 11:55:01 +0000 (11:55 +0000)]
set vma on mach-o sections.

gas:

* config/obj-macho.c (obj_mach_o_set_vma_data): New type.
(obj_mach_o_set_section_vma): New.
(obj_mach_o_post_relax_hook): New.
* config/obj-macho.h (md_post_relax_hook): Define.
(obj_mach_o_post_relax_hook): Declare.

gas/testsuite:

* gas/mach-o/dysymtab-2.d: Update to include the set VMA.
* gas/mach-o/symbols-1-64.d: Likewise.
* gas/mach-o/symbols-1.d: Likewise.
* gas/mach-o/symbols-6.d: Likewise.
* gas/mach-o/zerofill-1.d: Likewise.
* gas/mach-o/zerofill-2.d: Likewise.

12 years agoAvoid compiler warnings in gdb_curses.h on MinGW.
eliz [Fri, 13 Jan 2012 10:44:35 +0000 (10:44 +0000)]
Avoid compiler warnings in gdb_curses.h on MinGW.

See http://sourceware.org/ml/gdb-patches/2012-01/msg00298.html
for more details about the problem.

 gdb/gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
 including curses.h.

12 years agoDocument support of printf %m conversion flag.
yselkowitz [Fri, 13 Jan 2012 10:01:12 +0000 (10:01 +0000)]
Document support of printf %m conversion flag.

12 years ago * new-features.sgml (ov-new1.7.10): Document support for the %m
yselkowitz [Fri, 13 Jan 2012 09:59:52 +0000 (09:59 +0000)]
* new-features.sgml (ov-new1.7.10): Document support for the %m
conversion flag in printf functions.

12 years ago * include/cygwin/config.h (_GLIBC_EXTENSION): Define.
yselkowitz [Fri, 13 Jan 2012 09:15:22 +0000 (09:15 +0000)]
* include/cygwin/config.h (_GLIBC_EXTENSION): Define.

12 years ago * libc/stdio/sprintf.c: Document 'm' conversion specifier.
yselkowitz [Fri, 13 Jan 2012 09:13:56 +0000 (09:13 +0000)]
* libc/stdio/sprintf.c: Document 'm' conversion specifier.
* libc/stdio/swprintf.c: Ditto.
* libc/stdio/vfprintf.c (_VFPRINTF_R) [_GLIBC_EXTENSION]: Handle 'm'
conversion specifier.
* libc/stdio/vfwprintf.c (_VFWPRINTF_R) [_GLIBC_EXTENSION]: Ditto.

12 years ago*** empty log message ***
gdbadmin [Fri, 13 Jan 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agoDocument tgmath.h.
yselkowitz [Thu, 12 Jan 2012 23:43:21 +0000 (23:43 +0000)]
Document tgmath.h.

12 years ago * new-features.sgml (ov-new1.7.10): Document tgmath.h.
yselkowitz [Thu, 12 Jan 2012 23:42:11 +0000 (23:42 +0000)]
* new-features.sgml (ov-new1.7.10): Document tgmath.h.

12 years agogdb/
jkratoch [Thu, 12 Jan 2012 23:38:46 +0000 (23:38 +0000)]
gdb/
* configure: Regenerate.
* config.in: Regenerate.

12 years agodaily update
amodra [Thu, 12 Jan 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago PR mi/10586
kseitz [Thu, 12 Jan 2012 22:51:08 +0000 (22:51 +0000)]
PR mi/10586
* varobj.c (ANONYMOUS_STRUCT_NAME): Define.
(ANONYMOUS_UNION_NAME): Define.
(is_path_expr_parent): New function.
(get_path_expr_parent): New function.
(is_anonymous_child): New function.
(create_child_with_value): If the child is anonymous and without
a name, assign an object name to it.
(c_describe_child): Use get_path_expr_parent to determine
the parent expression.
If there field represents an anonymous struct or union and
has no name, set an appropriate display name and expression.
(cplus_describe_child): Likewise.

12 years ago PR mi/10586
kseitz [Thu, 12 Jan 2012 22:50:49 +0000 (22:50 +0000)]
PR mi/10586
* gdb.mi/var-cmd.c (struct anonymous): New structure.
(do_anonymous_type_tests): New function.
(main): Call do_anonymous_type_tests.
* gdb.mi/mi2-var-child.exp: Add anonymous type tests.
(verify_everything): New procedure.
* gdb.mi/mi-var-cp.cc (class A): New class.
(anonymous_structs_and_unions): New function.
(main): Call anonymous_structs_and_unions.
* gdb.mi/mi-var-cp.exp: Add anonymous type tests.
(verify_everything): New procedure.

12 years ago * lib/mi-support.exp: Expand comments about PATH_EXPR.
kseitz [Thu, 12 Jan 2012 22:28:33 +0000 (22:28 +0000)]
* lib/mi-support.exp: Expand comments about PATH_EXPR.
(varobj_tree::get_path_expr): Assume that all varobjs are
compound unless they are known simple types.
Adjust path expressions based on parent type, path parent type,
and tree language.
(varobj_tree::walk_tree): Add LANGUAGE parameter and save it into
the root varobj.
(mi_walk_varobj_tree): Add LANGUAGE parameter.

12 years ago2012-01-12 Pedro Alves <palves@redhat.com>
palves [Thu, 12 Jan 2012 15:39:28 +0000 (15:39 +0000)]
2012-01-12  Pedro Alves  <palves@redhat.com>

* i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
available when %ebp is found to be zero (outermost).

12 years agoadd indirect_symbol to mach-o port.
iains [Thu, 12 Jan 2012 14:03:05 +0000 (14:03 +0000)]
add indirect_symbol to mach-o port.

bfd:

* mach-o.c (bfd_mach_o_count_indirect_symbols): New.
(bfd_mach_o_build_dysymtab_command): Populate indirect symbol table.
* mach-o.h (bfd_mach_o_asymbol): Move declaration to start of the
file. (bfd_mach_o_section): Add indirect_syms field.

gas:

* config/obj-macho.c (obj_mach_o_set_symbol_qualifier): Switch off
lazy when the symbol is private_extern.
(obj_mach_o_indirect_sym): New type.
(obj_mach_o_indirect_symbol): New.
(mach_o_pseudo_table): Use obj_mach_o_indirect_symbol.
(obj_macho_frob_label): Adjust to avoid adding bsyms for locals.
(obj_macho_frob_label): Likewise.  Adjust external and comm
symbol tests.
(obj_mach_o_set_indirect_symbols): New.
(obj_mach_o_frob_file_after_relocs): New.
*config/obj-macho.h (obj_frob_file_after_relocs): Define.
(obj_mach_o_frob_file_after_relocs): Declare.

include/mach-o:

* loader.h (BFD_MACH_O_INDIRECT_SYM_LOCAL): New.
(BFD_MACH_O_INDIRECT_SYM_ABS): New

gas/testsuite:

* gas/mach-o/dysymtab-2.d: New.
* gas/mach-o/err-syms-4.s: New.
* gas/mach-o/err-syms-5.s: New.
* gas/mach-o/err-syms-6.s: New.
* gas/mach-o/symbols-6-64.d: New.
* gas/mach-o/symbols-6-64.s: New.
* gas/mach-o/symbols-6.d: New.
* gas/mach-o/symbols-6.s: New.

12 years ago * libc/include/tgmath.h: New header.
yselkowitz [Thu, 12 Jan 2012 11:19:31 +0000 (11:19 +0000)]
* libc/include/tgmath.h: New header.

12 years ago2012-01-12 Tristan Gingold <gingold@adacore.com>
gingold [Thu, 12 Jan 2012 08:53:34 +0000 (08:53 +0000)]
2012-01-12  Tristan Gingold  <gingold@adacore.com>

PR gas/13591
* config/obj-coff.h (sy_obj): Rename macro to avoid a name conflict.

12 years ago*** empty log message ***
gdbadmin [Thu, 12 Jan 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agoTrivial cleanup: kill trailing whitespace
ppluzhnikov [Thu, 12 Jan 2012 00:00:01 +0000 (00:00 +0000)]
Trivial cleanup: kill trailing whitespace

12 years agodaily update
amodra [Wed, 11 Jan 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago* spawn.cc (child_info_spawn::worker): Delete debugging.
cgf [Wed, 11 Jan 2012 22:38:52 +0000 (22:38 +0000)]
* spawn.cc (child_info_spawn::worker): Delete debugging.

12 years ago2012-01-11 Andreas Tobler <andreast@fgznet.ch>
andreast [Wed, 11 Jan 2012 21:51:25 +0000 (21:51 +0000)]
2012-01-11  Andreas Tobler  <andreast@fgznet.ch>

* common/gdb_assert.h (gdb_static_assert): Rename static_assert to
an internal gdb_static_assert.
* mi/mi-common.c: Rename static_assert to gdb_static_assert.

12 years agoUpdate copyright on all files checked in so far this year.
cgf [Wed, 11 Jan 2012 19:07:07 +0000 (19:07 +0000)]
Update copyright on all files checked in so far this year.
* fhandler.h: Use #pragma once rather than ifdef guards.
(fhandler_console::tc_getpgid): Return our pgid if we have never opened a
console.
* fork.cc: Rearrange includes to accommodate fhandler.h use of pinfo.h.
* sigproc.cc: Ditto.
* spawn.cc: Ditto.
(child_info_spawn::worker): Query myself->pgid rather than calling expensive
function.
* thread.h: Use #pragma once rather than ifdef guards.
* pinfo.h: Use #pragma once rather than ifdef guards.
(pinfo::remember): Don't define if sigproc.h has not been included.
(pinfo::reattach): Ditto.
* sigproc.h: Use #pragma once rather than ifdef guards.  Use different test to
see if pinfo.h has been included.

12 years ago PR gdb/9598:
tromey [Wed, 11 Jan 2012 18:30:19 +0000 (18:30 +0000)]
PR gdb/9598:
* breakpoint.c (_initialize_breakpoint): Fix help for "catch
catch" and "catch throw".