binutils-gdb.git
13 years agoUse .got.plt for IFUNC symbols if there are no GOT relocations.
H.J. Lu [Mon, 12 Sep 2011 18:17:36 +0000 (18:17 +0000)]
Use .got.plt for IFUNC symbols if there are no GOT relocations.

bfd/

2011-09-12  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13178
* elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Use .got.plt
if there are no GOT relocations.

ld/testsuite/

2011-09-12  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13178
* ld-ifunc/ifunc-13-i386.d: Updated.
* ld-ifunc/ifunc-13-x86-64.d: Likewise.
* ld-ifunc/ifunc-3a-x86.d: Likewise.
* ld-x86-64/pr13082-5a.d: Likewise.

* ld-ifunc/ifunc-15-i386.d: New.
* ld-ifunc/ifunc-15-i386.s: Likewise.
* ld-ifunc/ifunc-15-x86-64.d: Likewise.
* ld-ifunc/ifunc-15-x86-64.s: Likewise.

13 years ago * gdb.dwarf2/clztest.exp: Fix initialization of tests array.
Doug Evans [Mon, 12 Sep 2011 18:07:22 +0000 (18:07 +0000)]
* gdb.dwarf2/clztest.exp: Fix initialization of tests array.
* gdb.dwarf2/typeddwarf.exp: Ditto.

13 years ago * object.cc (Sized_relobj_file::do_layout): Remove assertion which
Ian Lance Taylor [Mon, 12 Sep 2011 17:34:26 +0000 (17:34 +0000)]
* object.cc (Sized_relobj_file::do_layout): Remove assertion which
triggered if object has no symbols.

13 years ago*** empty log message ***
gdbadmin [Mon, 12 Sep 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Mon, 12 Sep 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years agogdb/
Jan Kratochvil [Sun, 11 Sep 2011 09:54:18 +0000 (09:54 +0000)]
gdb/
Code cleanup.
* mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
values.

13 years agodaily update
Alan Modra [Sun, 11 Sep 2011 00:00:06 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Sun, 11 Sep 2011 00:00:05 +0000 (00:00 +0000)]
*** empty log message ***

13 years agoAdd PR markers
Andreas Schwab [Sat, 10 Sep 2011 08:13:45 +0000 (08:13 +0000)]
Add PR markers

13 years ago * output.cc (Output_fill_debug_info::do_write): Use Swap_unaligned.
David S. Miller [Sat, 10 Sep 2011 05:15:43 +0000 (05:15 +0000)]
* output.cc (Output_fill_debug_info::do_write): Use Swap_unaligned.
(Output_fill_debug_line::do_write): Likewise.

13 years agodaily update
Alan Modra [Sat, 10 Sep 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Sat, 10 Sep 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agogdb/
Jan Kratochvil [Fri, 9 Sep 2011 19:41:14 +0000 (19:41 +0000)]
gdb/
Code cleanup.
* amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
(amd64_skip_xmm_prologue): ... this new function.  Describe its
parameters.  No longer use amd64_prologue_line_bug.
* defs.h (producer_is_gcc_ge_4): New declaration.
* dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
(process_full_comp_unit): Update its caller.  Remove
amd64_prologue_line_bug initialization.
* symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
* utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.

13 years agoFixup last entry.
Pedro Alves [Fri, 9 Sep 2011 19:29:51 +0000 (19:29 +0000)]
Fixup last entry.

2011-09-09  Pedro Alves  <pedro@codesourcery.com>

* linux-nat.h (enum resume_kind): New.
(struct lwp_info) <last_resume_kind>: New field.
* linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
resume_stop on the new lwp.
(add_lwp): Set last_resume_kind as resume_continue by default.
(lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
(resume_lwp): New, factored out from resume_callback.  Also check
for pending status in lp->waitstatus.
(resume_callback): Reimplement.
(resume_clear_callback): Set last_resume_kind as resume_stop.
(resume_set_callback): Set last_resume_kind as resume_continue.
(linux_nat_resume, linux_handle_extended_wait): Set
last_resume_kind.
(running_callback): Also check lp->waitstatus for pending events.
(select_singlestep_lwp_callback): Check that lp->last_resume_kind
is resume_step.
(stop_and_resume_callback): Don't re-resume if the core wanted the
lwp stopped.  Use resume_lwp instead of resume_callback.  Avoid
using an invalidated pointer.
(linux_nat_filter_event): Don't discard SIGSTOPs as delayed
SIGSTOPs if the core wanted the LWP to stop.
(linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
wanted the lwp to stop.  If the core wanted the lwp to stop, and
the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
of TARGET_SIGNAL_STOP.
(linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
here.  Instead, signal the lwp, and set the last_resume_kind to
resume_stop.

13 years ago2011-09-09 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Fri, 9 Sep 2011 19:27:50 +0000 (19:27 +0000)]
2011-09-09  Pedro Alves  <pedro@codesourcery.com>

* linux-nat.h (enum resume_kind): New.
(struct lwp_info) <last_resume_kind>: New field.
(linux_child_follow_fork): Set last_resume_kind to resume_stop on
the new lwp.
(add_lwp): Set last_resume_kind as resume_continue by default.
(lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
(resume_lwp): New, factored out from resume_callback.  Also check
for pending status in lp->waitstatus.
(resume_callback): Reimplement.
(resume_clear_callback): Set last_resume_kind as resume_stop.
(resume_set_callback): Set last_resume_kind as resume_continue.
(linux_nat_resume, linux_handle_extended_wait): Set
last_resume_kind.
(running_callback): Also check lp->waitstatus for pending events.
(select_singlestep_lwp_callback): Check that lp->last_resume_kind
is resume_step.
(stop_and_resume_callback): Don't re-resume if the core wanted the
lwp stopped.  Use resume_lwp instead of resume_callback.  Avoid
using an invalidated pointer.
(linux_nat_filter_event): Don't discard SIGSTOPs as delayed
SIGSTOPs if the core wanted the LWP to stop.
(linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
wanted the lwp to stop.  If the core wanted the lwp to stop, and
the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
of TARGET_SIGNAL_STOP.
(linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
here.  Instead, signal the lwp, and set the last_resume_kind to
resume_stop.

13 years ago2011-09-09 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Fri, 9 Sep 2011 19:20:24 +0000 (19:20 +0000)]
2011-09-09  Pedro Alves  <pedro@codesourcery.com>

* linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
-1 (error), if the lwp exits right after attaching.

13 years ago2011-09-09 Kai Tietz <ktietz@redhat.com>
Kai Tietz [Fri, 9 Sep 2011 16:28:12 +0000 (16:28 +0000)]
2011-09-09  Kai Tietz  <ktietz@redhat.com>

        * peicode.h (pe_ILF_build_a_bfd): Don't remove leading underscore
        for targets without symbol_leading_char.

13 years agodaily update
Alan Modra [Fri, 9 Sep 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Fri, 9 Sep 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago * linux-x86-low.c (i386_emit_prologue): Save %ebx.
Stan Shebs [Thu, 8 Sep 2011 22:38:29 +0000 (22:38 +0000)]
* linux-x86-low.c (i386_emit_prologue): Save %ebx.
(i386_emit_epilogue): Restore %ebx.

13 years ago * py-cmd.c: Some minor formatting fixes.
Doug Evans [Thu, 8 Sep 2011 19:51:27 +0000 (19:51 +0000)]
* py-cmd.c: Some minor formatting fixes.
(gdbpy_parse_command_name): Rename text arg to name, make const.
All callers updated.
* python-internal.h (gdbpy_parse_command_name): Update.

13 years agoopcodes/
David S. Miller [Thu, 8 Sep 2011 19:03:17 +0000 (19:03 +0000)]
opcodes/

* sparc-opc.c (sparc_opcodes): Add entry for 'save simm13,regrs1,regrd'
This has been reported as being accepted by the Sun assmebler.

gas/testsuite/

* gas/sparc/save-args.[sd]: New test.
* gas/sparc/sparc.exp: Run new test.

13 years agoopcodes/
David S. Miller [Thu, 8 Sep 2011 19:01:11 +0000 (19:01 +0000)]
opcodes/

The changes below bring 'mov' and 'ticc' instructions into line
with the V8 SPARC Architecture Manual.
* sparc-opc.c (sparc_opcodes): Add entry for 'ticc imm + regrs1'.
* sparc-opc.c (sparc_opcodes): Add alias entries for
'mov regrs2,%asrX'; 'mov regrs2,%y'; 'mov regrs2,%prs';
'mov regrs2,%wim' and 'mov regrs2,%tbr'.
* sparc-opc.c (sparc_opcodes): Move/Change entries for
'mov imm,%asrX'; 'mov imm,%y'; 'mov imm,%prs'; 'mov imm,%wim'
and 'mov imm,%tbr'.
* sparc-opc.c (sparc_opcodes): Add wr alias entries to match above
mov aliases.

gas/testsuite/

* gas/sparc/ticc-imm-reg.[sd]: New test.
* gas/sparc/v8-movwr-imm.[sd]: New test.
* gas/sparc/sparc.exp: Run new tests.

13 years agogdb/testsuite/
Jan Kratochvil [Thu, 8 Sep 2011 17:40:54 +0000 (17:40 +0000)]
gdb/testsuite/
Fix compatibility with x32 arch.
* testsuite/gdb.dwarf2/typeddwarf.exp: Check also is_lp64_target.
* testsuite/gdb.trace/backtrace.exp: Use is_amd64_regs_target and
is_x86_like_target.
* testsuite/gdb.trace/collection.exp: Likewise.
* testsuite/gdb.trace/report.exp: Likewise.
* testsuite/gdb.trace/unavailable.exp: Likewise.
* testsuite/gdb.trace/while-dyn.exp: Likewise.
* testsuite/lib/gdb.exp (is_amd64_regs_target): New function.
(is_x86_like_target): Check also is_amd64_regs_target.

13 years ago * cli/cli-decode.c (add_cmd): Add comment.
Doug Evans [Thu, 8 Sep 2011 17:20:43 +0000 (17:20 +0000)]
* cli/cli-decode.c (add_cmd): Add comment.

13 years agogas/
David S. Miller [Thu, 8 Sep 2011 16:56:10 +0000 (16:56 +0000)]
gas/

* config/tc-sparc.c (sparc_ip): Handle 'i' + r<0..31>
in addition to 'i' + [goli]<0..7>.

gas/testsuite/

* gas/sparc/imm-plus-rreg.[sd]: New test.
* gas/sparc/sparc.exp: Run new test.

13 years agoopcodes/
David S. Miller [Thu, 8 Sep 2011 16:40:47 +0000 (16:40 +0000)]
opcodes/

* sparc-opc.c (pdistn): Destination is integer not float register.

gas/testsuite/

* gas/sparc/hpcvis3.s: Correct pdistn test.
* gas/sparc/hpcvis3.d: Likewise.

13 years ago * po/ja.po: Updated Japanese translation.
Nick Clifton [Thu, 8 Sep 2011 16:09:57 +0000 (16:09 +0000)]
* po/ja.po: Updated Japanese translation.

13 years ago * cgen.c (gas_cgen_pcrel_r_type): New function.
Nick Clifton [Thu, 8 Sep 2011 16:07:11 +0000 (16:07 +0000)]
* cgen.c (gas_cgen_pcrel_r_type): New function.
(gas_cgen_tc_gen_reloc): Check for GAS_CGEN_PCREL_R_TYPE.
* cgen.h (gas_cgen_pcrel_r_type): Declare.

13 years ago * bfdwin.c (bfd_get_file_window): Fix memory leak.
Nick Clifton [Thu, 8 Sep 2011 16:06:11 +0000 (16:06 +0000)]
* bfdwin.c (bfd_get_file_window): Fix memory leak.

13 years agogdb/
Jan Kratochvil [Thu, 8 Sep 2011 15:38:16 +0000 (15:38 +0000)]
gdb/
PR breakpoints/12435
* amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
next_sal, buf, offset and xmmreg.  Advance PC if it sees the PR.
* dwarf2read.c (process_full_comp_unit): Initialize
amd64_prologue_line_bug.
* symtab.h (struct symtab): New field amd64_prologue_line_bug.

gdb/testsuite/
PR breakpoints/12435
* gdb.arch/amd64-prologue-xmm.c: New file.
* gdb.arch/amd64-prologue-xmm.exp: New file.
* gdb.arch/amd64-prologue-xmm.s: New file.

13 years agogdb/
Jan Kratochvil [Thu, 8 Sep 2011 15:27:46 +0000 (15:27 +0000)]
gdb/
Fix TUI screen corruption.
* utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
batch_flag.

13 years agogdb/
Jan Kratochvil [Thu, 8 Sep 2011 15:26:08 +0000 (15:26 +0000)]
gdb/
* findvar.c (read_var_value): Never return NULL, throw an error
instead.  Update the function comment.  State symbol name in the error
messages.
* python/py-frame.c (frapy_read_var): Remove handling of NULL from
read_var_value.
* stack.c (print_frame_args): Likewise.
* valops.c (value_of_variable): Likewise.

13 years agogdb/
Jan Kratochvil [Thu, 8 Sep 2011 15:24:25 +0000 (15:24 +0000)]
gdb/
* stack.c (print_frame_args): New variable except.  Wrap
read_var_value and common_val_print into TRY_CATCH.

gdb/testsuite/
* gdb.dwarf2/dw2-param-error-main.c: New file.
* gdb.dwarf2/dw2-param-error.S: New file.
* gdb.dwarf2/dw2-param-error.exp: New file.

13 years ago2011-09-08 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Thu, 8 Sep 2011 14:56:34 +0000 (14:56 +0000)]
2011-09-08  Pedro Alves  <pedro@codesourcery.com>

* gdb.base/annota1.exp, gdb.base/annota3.exp: Extract the
inferior's pid and look for a core dump named core.$pid.  Use
`remote_file' commands on the host instead of hand coding shell
commands on the build.
* gdb.base/valgrind-db-attach.exp: Kill the program before
finishing the test.

13 years agogdb/
Jan Kratochvil [Thu, 8 Sep 2011 14:54:20 +0000 (14:54 +0000)]
gdb/
* eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
caller to value_of_this.
* p-exp.y: Update the value_of_this caller to value_of_this_silent.
Twice.
* valops.c (value_of_this): Remove parameter complain and variable ret.
Update function comment.  Never return NULL by this code.
(value_of_this_silent): New function.
* value.h (value_of_this): Remove parameter complain.
(value_of_this_silent): New declaration.

13 years agogas/
Richard Sandiford [Thu, 8 Sep 2011 12:18:28 +0000 (12:18 +0000)]
gas/
PR gas/13167
* dwarf2dbg.c (dwarf2_flush_pending_lines): Use symbol_temp_new_now.

gas/testsuite/
PR gas/13167
* gas/ia64/pr13167.d, gas/ia64/pr13167.s: New test.
* gas/ia64/ia64.exp: Run it.

13 years ago*** empty log message ***
gdbadmin [Thu, 8 Sep 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Thu, 8 Sep 2011 00:00:06 +0000 (00:00 +0000)]
daily update

13 years ago* gas/testsuite/gas/m68k/all.exp: Run "mode5" test also with -mcpu=5200.
Andreas Schwab [Wed, 7 Sep 2011 20:56:09 +0000 (20:56 +0000)]
* gas/testsuite/gas/m68k/all.exp: Run "mode5" test also with -mcpu=5200.
* gas/testsuite/gas/m68k/mode5.s: Add moveml testcases.
* gas/testsuite/gas/m68k/mode5.d: Update.

* opcodes/m68k-opc.c: Use "y" in moveml pattern for mcfisa_a.

13 years ago gdb/
Yao Qi [Wed, 7 Sep 2011 14:24:48 +0000 (14:24 +0000)]
gdb/
* gdbthread.h (struct thread_info): Remove fields
`stepping_through_solib_after_catch' and
`stepping_through_solib_catchpoints'.
* infrun.c (init_thread_stepping_state): Update.
(process_event_stop_test, currently_stepping): Update.
(currently_stepping_or_nexting_callback): Update.

13 years ago PR ld/13131
Alan Modra [Wed, 7 Sep 2011 13:56:09 +0000 (13:56 +0000)]
PR ld/13131
* bfd/elf64-ppc.c (adjust_toc_syms): Ensure ppc64_elf_howto_table
is initialized.

13 years ago gdb/
Yao Qi [Wed, 7 Sep 2011 13:36:47 +0000 (13:36 +0000)]
gdb/
* gdbthread.h (struct thread_info): Comment on field
`step_after_step_resume_breakpoint'.

13 years ago2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
Pedro Alves [Wed, 7 Sep 2011 10:34:15 +0000 (10:34 +0000)]
2011-09-07  Abhijit Halder  <abhijit.k.halder@gmail.com>

* remote.c (remote_console_output): Reindent.

13 years ago2011-09-06 Luis Machado <lgustavo@codesourcery.com>
Luis Machado [Wed, 7 Sep 2011 02:33:58 +0000 (02:33 +0000)]
2011-09-06  Luis Machado  <lgustavo@codesourcery.com>

* frame.c (has_stack_frames): Check for currently selected
traceframe.

13 years agodaily update
Alan Modra [Wed, 7 Sep 2011 00:00:06 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Wed, 7 Sep 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago2011-09-06 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Tue, 6 Sep 2011 14:49:00 +0000 (14:49 +0000)]
2011-09-06  Pedro Alves  <pedro@codesourcery.com>

* event-top.h (MAXPROMPTS, struct prompts): Delete.
(set_async_annotation_level, set_async_prompt, pop_prompt)
(push_prompt, new_async_prompt): Delete declarations.
* top.h (get_prompt, set_prompt): Change prototype.
(get_prefix, set_prefix, get_suffix, set_suffix): Delete
declarations.
* top.c (command_loop):
(top_prompt): New global.
(get_prefix, set_prefix, get_suffix, ): Delete.
(get_prompt, set_prompt): Rewrite.
(show_new_async_prompt): Rename to ...
(show_prompt): ... this.
(init_main): Adjust.  Don't handle --annotate=2 here.
* event-top.c (new_async_prompt): Delete.
(the_prompts): Delete.
(more_to_come): Make static.
(display_gdb_prompt): Use top_level_prompt() to compute the top
level prompt, and don't notify the before_prompt observers
directly here.  Always trick readline into not trying to display
the prompt if sync_execution and displaying the primary prompt.
If displaying a local/secondary prompt, always show it, even if
sync_execution is set.
(change_annotation_level): Delete.
(top_level_prompt): New, based on change_annotation_level.
(push_prompt, pop_prompt): Delete.
(async_disable_stdin): No longer pushes prompt.
(command_line_handler): No longer pushes or pops prompt.  If more
input is expected, call display_gdb_prompt with an explicit empty
prompt.
(async_stop_sig): Adjust.
(set_async_annotation_level, set_async_prompt): Delete.
* python/python.c (before_prompt_hook): Adjust.

13 years ago PR ld/13131
Alan Modra [Tue, 6 Sep 2011 07:41:24 +0000 (07:41 +0000)]
PR ld/13131
* elf64-ppc.c (adjust_toc_syms): Delete redundant code.
(ppc64_elf_edit_toc): Fix style nit.  Report some details
on linker failure due to reference in debug or non-alloc
sections to optimized away toc entry, and don't abort.

13 years ago*** empty log message ***
gdbadmin [Tue, 6 Sep 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Tue, 6 Sep 2011 00:00:04 +0000 (00:00 +0000)]
daily update

13 years agogas/
Richard Sandiford [Mon, 5 Sep 2011 19:19:01 +0000 (19:19 +0000)]
gas/
PR gas/13024
* dwarf2dbg.c (pending_lines, pending_lines_tail): New variables.
(dwarf2_gen_line_info_1): Delete.
(dwarf2_push_line, dwarf2_flush_pending_lines): New functions.
(dwarf2_gen_line_info, dwarf2_emit_label): Use them.
(dwarf2_consume_line_info): Call dwarf2_flush_pending_lines.
(dwarf2_directive_loc): Push previous .locs instead of generating
them immediately.

gas/testsuite/
* gas/mips/loc-swap-2.s, gas/mips/loc-swap-2.d,
gas/mips/micromips@loc-swap-2.d,
gas/mips/mips16@loc-swap-2.d: New test.
* gas/mips/mips.exp: Run it.

13 years ago2011-09-05 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Mon, 5 Sep 2011 15:46:34 +0000 (15:46 +0000)]
2011-09-05  Pedro Alves  <pedro@codesourcery.com>

PR cli/13110

* infrun.c (fetch_inferior_event): Check if there's a selected
thread before checking if the selected thread is executing.

13 years ago2011-09-05 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Mon, 5 Sep 2011 14:53:13 +0000 (14:53 +0000)]
2011-09-05  Pedro Alves  <pedro@codesourcery.com>

* inf-loop.c (execute_command): Don't check if the current thread
if running before synchronously waiting for command completion.
* infrun.c (fetch_inferior_event): Handle "set exec-done-display"
here.
(normal_stop): Call async_enable_stdin here.
* inf-loop.c (inferior_event_handler): Don't call
async_enable_stdin, nor handle "set exec-done-display" here.

13 years agodaily update
Alan Modra [Mon, 5 Sep 2011 00:00:06 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Mon, 5 Sep 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years agoGDB 7.3.1 released.
gdbadmin [Sun, 4 Sep 2011 19:10:40 +0000 (19:10 +0000)]
GDB 7.3.1 released.

13 years agoNEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
Joel Brobecker [Sun, 4 Sep 2011 17:48:51 +0000 (17:48 +0000)]
NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.

gdb/ChangeLog:

        * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.

13 years agoNEWS: Add entry for OpenBSD/NetBSD build failure
Joel Brobecker [Sun, 4 Sep 2011 17:41:40 +0000 (17:41 +0000)]
NEWS: Add entry for OpenBSD/NetBSD build failure

gdb/ChangeLog:

        * NEWS: Add entry for OpenBSD/NetBSD build failure

13 years agoGDB Manual edition number and ISBN updates
Joel Brobecker [Sun, 4 Sep 2011 17:08:56 +0000 (17:08 +0000)]
GDB Manual edition number and ISBN updates

This is in preparation for a re-print by the FSF of the GDB manual.

gdb/doc/ChangeLog:

        * gdb.texinfo: Set EDITION to "Tenth" and change ISBN.

13 years ago*** empty log message ***
gdbadmin [Sun, 4 Sep 2011 00:01:03 +0000 (00:01 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Sun, 4 Sep 2011 00:00:06 +0000 (00:00 +0000)]
daily update

13 years agodaily update
Alan Modra [Sat, 3 Sep 2011 00:00:07 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Sat, 3 Sep 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years agogdb/
Jan Kratochvil [Fri, 2 Sep 2011 21:40:30 +0000 (21:40 +0000)]
gdb/
* config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.

13 years agoPR gdb/10720
matt rice [Fri, 2 Sep 2011 21:16:54 +0000 (21:16 +0000)]
PR gdb/10720
* event-top.c (cli_command_loop): Replace readline setup with
direct call to display_gdb_prompt.
(display_gdb_prompt): Do not call observer mechanism during
synchronous execution.

testsuite:
* lib/prompt.exp: New file for testing the first prompt.
* gdb.python/py-prompt.exp: Ditto.
* gdb.python/py-prompt.c: Ditto (copy of ext-attach.c).

13 years ago2011-09-02 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Fri, 2 Sep 2011 21:03:06 +0000 (21:03 +0000)]
2011-09-02  Pedro Alves  <pedro@codesourcery.com>

* linux-nat.c (in_pid_list_p): New.
(linux_record_stopped_pid): Delete.
(lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
already attached to the LWP.  Return an indication if so.
(linux_nat_filter_event): Adjust.
* linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
returning an indication to ignore this thread.

13 years ago2011-09-02 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Fri, 2 Sep 2011 19:21:02 +0000 (19:21 +0000)]
2011-09-02  Pedro Alves  <pedro@codesourcery.com>

gdb/testsuite/
* gdb.threads/gcore-thread.exp: Set the global core_supported to
0, before testing gcore.

13 years ago2011-09-02 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Fri, 2 Sep 2011 16:56:30 +0000 (16:56 +0000)]
2011-09-02  Pedro Alves  <pedro@codesourcery.com>

* top.c: Include interps.h.
(execute_command): If the target can async, but the interpreter is
in sync mode, synchronously wait for the command to finish before
returning.
(execute_command_to_string): Force the interpreter to sync mode.
* infrun.c: Include interps.h.
(fetch_inferior_event): Don't restore the prompt yet if the
interpreter is in sync mode.
* interps.c (interpreter_async): New global.
* interps.h (interpreter_async): Declare.
* inf-loop.c: Include interps.h.
(inferior_event_handler): Don't print the language change or run
breakpoint commands yet if the interpreter in is sync mode.
* main.c (captured_command_loop): Flip the interpreter to async
mode.
* cli/cli-script.c: Include interps.h.
(execute_user_command, while_command, if_command): Force the
interpreter to sync mode.
* python/python.c: Include interps.h.
(python_command, execute_gdb_command): Force the interpreter to
sync mode.

13 years ago2011-09-02 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Fri, 2 Sep 2011 12:18:27 +0000 (12:18 +0000)]
2011-09-02  Pedro Alves  <pedro@codesourcery.com>

gdb/
* value.c (show_convenience): Catch errors thrown while printing
each internal variable.
* infrun.c (validate_siginfo_access): New function.
(siginfo_value_read, siginfo_value_write): Call it.

13 years ago*** empty log message ***
gdbadmin [Fri, 2 Sep 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Fri, 2 Sep 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago2011-09-01 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Thu, 1 Sep 2011 14:10:40 +0000 (14:10 +0000)]
2011-09-01  Christophe Lyon  <christophe.lyon@st.com>

        bfd/
* elf32-arm.c (elf32_arm_output_arch_local_syms): Skip excluded
sections.

        ld/testsuite/
* ld-arm/arm-elf.exp: Add new rodata-merge-map test.
* ld-arm/rodata-merge-map.ld: New file.
* ld-arm/rodata-merge-map.sym: Likewise.
* ld-arm/rodata-merge-map1.s Likewise.
* ld-arm/rodata-merge-map2.s: Likewise.
* ld-arm/rodata-merge-map3.s: Likewise.

13 years agogdb/testsuite/
Jan Kratochvil [Thu, 1 Sep 2011 07:19:40 +0000 (07:19 +0000)]
gdb/testsuite/
* dw2-ifort-parameter-debug.S: Update copyright year.
* dw2-ifort-parameter.c: Update copyright year.
* dw2-ifort-parameter.exp: Update copyright year.

* dw2-ifort-parameter-debug.S: New file.
* dw2-ifort-parameter.c: New file.
* dw2-ifort-parameter.exp: New file.

13 years agogdb/
Jan Kratochvil [Thu, 1 Sep 2011 07:17:46 +0000 (07:17 +0000)]
gdb/
Revert:
2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
* dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
attribute.

gdb/testsuite/
* dw2-ifort-parameter-debug.S: New file.
* dw2-ifort-parameter.c: New file.
* dw2-ifort-parameter.exp: New file.

13 years ago * server.c (step_thread): Remove definition.
Jie Zhang [Thu, 1 Sep 2011 03:14:10 +0000 (03:14 +0000)]
* server.c (step_thread): Remove definition.
(process_serial_event): Don't handle Hs.
* server.h (step_thread): Remove declaration.
* target.c (set_desired_inferior): Remove use of step_thread.

13 years agodaily update
Alan Modra [Thu, 1 Sep 2011 00:00:04 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Thu, 1 Sep 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Wed, 31 Aug 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Wed, 31 Aug 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago gdb/
Yao Qi [Tue, 30 Aug 2011 02:48:05 +0000 (02:48 +0000)]
gdb/
* solib-dsbt.c (bfd_lookup_symbol): Removed.
(cmp_name): New.
(enable_break2): Update caller.
* solib-frv.c (bfd_lookup_symbol): Removed.
(cmp_name): New.
(enable_break2): Update caller.
* solib-pa64.c (bfd_lookup_symbol): Removed.
(cmp_name): New.
* solib-svr4.c (bfd_lookup_symbol): Removed.
(cmp_name_and_sec_flags): New.
(enable_break): Update caller.
* solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
(gdb_bfd_lookup_symbol_from_dyn_symtab): New.
(gdb_bfd_lookup_symbol): New.
* solib.h: Functions declarations.

13 years ago gdb/
Yao Qi [Tue, 30 Aug 2011 02:09:05 +0000 (02:09 +0000)]
gdb/
* Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
and solib-dsbt.o.

13 years ago*** empty log message ***
gdbadmin [Tue, 30 Aug 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Tue, 30 Aug 2011 00:00:06 +0000 (00:00 +0000)]
daily update

13 years ago * output.cc: (Output_fill_debug_info::do_minimum_hole_size): Add
Cary Coutant [Mon, 29 Aug 2011 18:22:30 +0000 (18:22 +0000)]
* output.cc: (Output_fill_debug_info::do_minimum_hole_size): Add
casts to match formatting specs.
(Output_fill_debug_line::do_minimum_hole_size): Likewise.

13 years agogdb/
Jan Kratochvil [Mon, 29 Aug 2011 16:55:16 +0000 (16:55 +0000)]
gdb/
Fix TUI stepi on code without symbols.
* tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
current PC instead.

13 years ago*** empty log message ***
gdbadmin [Mon, 29 Aug 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agogdb/
Jan Kratochvil [Sun, 28 Aug 2011 20:43:43 +0000 (20:43 +0000)]
gdb/
Code cleanup.
* mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
and the static keyword.
* mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
Make prefix an array.
* mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
* mi/mi-main.c (get_register): Remove stb initialization and the static
keyword.

13 years agogdb/
Jan Kratochvil [Sun, 28 Aug 2011 20:39:29 +0000 (20:39 +0000)]
gdb/
Code cleanup - make mi_opt const.
* mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
opts const.
* mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
* mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
(mi_cmd_env_dir): Likewise.
* mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
(mi_cmd_target_file_put): Likewise.
* mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
* mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
* mi/mi-getopt.c (mi_getopt): Make opts and opt const.
(mi_valid_noargs): Make opts const.
* mi/mi-getopt.h (mi_getopt): Make opts and opt const.
* mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
(mi_cmd_data_read_memory): Likewise.
(mi_cmd_data_read_memory_bytes): Likewise.
(mi_cmd_data_write_memory): Likewise.

13 years agodaily update
Alan Modra [Sun, 28 Aug 2011 00:00:06 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Sun, 28 Aug 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago* solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
matt rice [Sat, 27 Aug 2011 10:28:31 +0000 (10:28 +0000)]
* solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
bcache_xmalloc,  replace bcache_xmalloc with call to
psymbol_bcache_init for psymbol_cache.
* symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.

13 years ago * layout.cc (Free_list::allocate): Provide guarantee of minimum
Cary Coutant [Sat, 27 Aug 2011 01:28:18 +0000 (01:28 +0000)]
* layout.cc (Free_list::allocate): Provide guarantee of minimum
remaining hole size when allocating.
(Layout::make_output_section): Set fill methods for debug sections.
* layout.h (Free_list::Free_list_node): Move from private to
public.
(Free_list::set_min_hole_size): New function.
(Free_list::begin, Free_list::end): New functions.
(Free_list::min_hole_): New data member.
* output.cc: Include dwarf.h.
(Output_fill_debug_info::do_minimum_hole_size): New function.
(Output_fill_debug_info::do_write): New function.
(Output_fill_debug_line::do_minimum_hole_size): New function.
(Output_fill_debug_line::do_write): New function.
(Output_section::Output_section): Initialize new data member.
(Output_section::set_final_data_size): Ensure patch space is larger
than minimum hole size.
(Output_section::do_write): Fill holes in debug sections.
* output.h (Output_fill): New class.
(Output_fill_debug_info): New class.
(Output_fill_debug_line): New class.
(Output_section::set_free_space_fill): New function.
(Output_section::free_space_fill_): New data member.
* testsuite/Makefile.am (incremental_test_3): Add
--incremental-patch option.
(incremental_test_4): Likewise.
(incremental_test_5): Likewise.
(incremental_test_6): Likewise.
(incremental_copy_test): Likewise.
(incremental_common_test_1): Likewise.
* testsuite/Makefile.in: Regenerate.

13 years agodaily update
Alan Modra [Sat, 27 Aug 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Sat, 27 Aug 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years agogdb/
Jan Kratochvil [Fri, 26 Aug 2011 21:47:21 +0000 (21:47 +0000)]
gdb/
* inf-loop.c (inferior_event_handler): Add exception_print in
INF_EXEC_COMPLETE.

13 years agogdb/
Jan Kratochvil [Fri, 26 Aug 2011 21:45:24 +0000 (21:45 +0000)]
gdb/
* breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
make_bpstat_clear_actions_cleanup and discard_cleanups for it.
* defs.h (make_bpstat_clear_actions_cleanup): New declaration.
* exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
* inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
* infrun.c (fetch_inferior_event): Call
make_bpstat_clear_actions_cleanup.
* top.c (execute_command): New variable cleanup_if_error, call
make_bpstat_clear_actions_cleanup and discard_cleanups for it.
* utils.c (do_bpstat_clear_actions_cleanup)
(make_bpstat_clear_actions_cleanup): New functions.

gdb/testsuite/
* gdb.base/commands.exp (error_clears_commands_left): New function.
(): Call it.

13 years agogdb/testsuite/
Jan Kratochvil [Fri, 26 Aug 2011 21:11:08 +0000 (21:11 +0000)]
gdb/testsuite/
* gdb.mi/mi-inheritance-syntax-error.cc (A): Make `a' public.
(C): Initialize `a'.
* gdb.mi/mi-inheritance-syntax-error.exp
(-data-evaluate-expression $path):  Expect `a' as 5.

13 years ago2011-08-26 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Fri, 26 Aug 2011 19:55:00 +0000 (19:55 +0000)]
2011-08-26  Pedro Alves  <pedro@codesourcery.com>

* linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
either the parent or the child forks.  Rename a couple locals.

13 years ago2011-08-26 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Fri, 26 Aug 2011 19:26:40 +0000 (19:26 +0000)]
2011-08-26  Pedro Alves  <pedro@codesourcery.com>

gdb/
* linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
library call.  Avoid reading the `status' local if all waitpid
calls failed.