Michael Snyder
13b3fd9b17
2011-02-27 Michael Snyder <msnyder@vmware.com>
...
* target.c (read_whatever_is_readable): Fix memory leak.
2011-03-08 18:58:54 +00:00
Michael Snyder
d3f323f3d2
2011-03-02 Michael Snyder <msnyder@vmware.com>
...
* i386-tdep.c (i386_process_record): Document fall through.
2011-03-08 18:49:16 +00:00
Jan Kratochvil
421d5c74b4
gdb/
...
Fix DWARF-3+ DW_AT_accessibility default assumption.
* dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
cu->header.version >= 3.
2011-03-08 17:54:44 +00:00
Pedro Alves
63154eca7b
gdb/
...
2011-03-08 Pedro Alves <pedro@codesourcery.com>
* remote.c (remote_check_symbols): Skip if the target has no
execution.
gdb/testsuite/
2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.server/ext-run.exp
(load new file without any gdbserver inferior): New test.
2011-03-08 12:46:52 +00:00
Joel Brobecker
f1a507a15e
minor reformatting for target.c:read_whatever_is_readable
...
gdb/ChangeLog:
* target.c (read_whatever_is_readable): Reformat comment,
with a minor typo fix. Minor reformatting of the code.
2011-03-08 04:53:36 +00:00
Yao Qi
36073a929d
2011-03-08 Yao Qi <yao@codesourcery.com>
...
* arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
(displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
Use cached result instead of calling displaced_in_arm_mode again.
(branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
(displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
(cleanup_copro_load_store, copy_copro_load_store): Likewise.
(cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
(cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
(copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
(copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
(cleanup_block_load_all, cleanup_block_store_pc): Likewise.
(cleanup_block_load_pc, copy_block_xfer): Likewise.
* arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
(arm_catch_kernel_helper_return): Likewise.
* gdb/arm-tdep.h : Update function declarations.
2011-03-08 01:04:35 +00:00
gdbadmin
72b9089ad6
*** empty log message ***
2011-03-08 00:00:03 +00:00
Alan Modra
7382000ffe
daily update
2011-03-07 23:00:05 +00:00
Ian Lance Taylor
b821d13c6d
PR gold/12525
...
* options.h (class General_options): Add -dy and -dn.
2011-03-07 22:51:39 +00:00
Tom Tromey
967d1f9b81
* Makefile.in (TAGS): Rewrite.
2011-03-07 22:02:45 +00:00
Jan Kratochvil
d68dcbb953
gdb/testsuite/
...
* gdb.trace/report.exp (12.1: trace report #1 ): New match for the
initial commands echo. New match for `Found trace'. Anchor all the
other matches. Anchor and match for `No trace frame found' the final
match.
2011-03-07 20:25:57 +00:00
Jan Kratochvil
e6edda56ff
gdb/gdbserver/
...
* remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
2011-03-07 20:15:12 +00:00
Michael Snyder
e0e40094f8
2011-03-04 Michael Snyder <msnyder@vmware.com>
...
* dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2011-03-07 20:06:12 +00:00
Michael Snyder
0b2381f5e1
2011-03-05 Michael Snyder <msnyder@vmware.com>
...
* ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2011-03-07 19:53:34 +00:00
Michael Snyder
0350914acf
2011-03-05 Michael Snyder <msnyder@vmware.com>
...
* mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2011-03-07 19:50:22 +00:00
Michael Snyder
69feea6fe7
2011-03-05 Michael Snyder <msnyder@vmware.com>
...
* elfread.c (elf_symtab_read): Stop memory leak.
2011-03-07 19:44:19 +00:00
Michael Snyder
e6040cbdcd
2011-03-06 Michael Snyder <msnyder@vmware.com>
...
* main.c (captured_main): Fix memory leak.
2011-03-07 18:34:31 +00:00
Andreas Schwab
052874e8a4
* ada-lang.c (compare_names): Call is_name_suffix with string1
...
instead of string2.
2011-03-07 18:29:13 +00:00
Tom Tromey
6bf58e63b7
* Makefile.in (TAGS): New target.
2011-03-07 17:03:51 +00:00
Tom Tromey
b11896a527
* xcoffread.c (xcoff_sym_fns): Update.
...
* symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
(enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
* symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
(symbol_file_add_with_addrs_or_offsets): Likewise.
(reread_symbols): Handle OBJF_PSYMTABS_READ.
* somread.c (som_sym_fns): Update.
* psymtab.h (require_partial_symbols): Declare.
* psymtab.c (require_partial_symbols): New function.
(ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
(ALL_OBJFILE_PSYMTABS): Undef.
(ALL_PSYMTABS): Move from psympriv.h.
(lookup_partial_symtab, find_pc_sect_psymtab)
(lookup_symbol_aux_psymtabs, relocate_psymtabs)
(find_last_source_symtab_from_partial)
(forget_cached_source_info_partial)
(print_psymtab_stats_for_objfile, read_symtabs_for_function)
(expand_partial_symbol_tables, read_psymtabs_with_filename)
(map_symbol_names_psymtab, map_symbol_filenames_psymtab)
(find_symbol_file_from_partial, map_matching_symbols_psymtab)
(expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
Use ALL_OBJFILE_PSYMTABS_REQUIRED.
* psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
* objfiles.h (OBJF_PSYMTABS_READ): New macro.
* objfiles.c (objfile_has_partial_symbols): Handle lazily-read
psymtabs.
* mipsread.c (ecoff_sym_fns): Update.
* machoread.c (macho_sym_fns): Update.
* elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
(read_psyms): New function.
(elf_sym_fns, elf_sym_fns_gdb_index): Update.
(elf_sym_fns_lazy_psyms): New global.
* dwarf2read.c (dwarf2_initialize_objfile): Don't call
dwarf2_build_psymtabs.
* dbxread.c (aout_sym_fns): Update.
* coffread.c (coff_sym_fns): Update.
2011-03-07 16:17:29 +00:00
Tom Tromey
fda326dd1d
gdb
...
* infrun.c (print_exited_reason): Include inferior id and pid in
message.
gdb/testsuite
* lib/opencl.exp (skip_opencl_tests): Update for exit message
change.
* lib/mi-support.exp (mi_gdb_test): Update for exit message
change.
* lib/gdb.exp (gdb_test_multiple): Update comment. Update for
exit message change.
(skip_altivec_tests): Update for exit message change.
(skip_vsx_tests): Likewise.
(gdb_continue_to_end): Likewise. Add 'command' argument.
* lib/cell.exp (skip_cell_tests): Update for exit message change.
* gdb.threads/tls.exp: Update for exit message change.
* gdb.threads/thread-unwindonsignal.exp: Use
gdb_continue_to_end.
* gdb.threads/step.exp (step_it): Update for exit message change.
(continue_all): Likewise.
* gdb.threads/print-threads.exp (test_all_threads): Update for
exit message change.
* gdb.threads/interrupted-hand-call.exp: Use
gdb_continue_to_end.
* gdb.threads/execl.exp: Use gdb_continue_to_end.
* gdb.python/py-prettyprint.exp (run_lang_tests): Use
gdb_continue_to_end.
* gdb.hp/gdb.objdbg/objdbg02.exp: Use gdb_continue_to_end.
* gdb.hp/gdb.objdbg/objdbg01.exp: Use gdb_continue_to_end.
* gdb.hp/gdb.defects/solib-d.exp: Update for exit message change.
* gdb.cp/method.exp: Update for exit message change.
* gdb.cp/mb-templates.exp: Update for exit message change.
* gdb.cp/mb-inline.exp: Use gdb_continue_to_end.
* gdb.cp/annota3.exp: Update for exit message change.
* gdb.cp/annota2.exp: Update for exit message change.
* gdb.cell/fork.exp: Use gdb_continue_to_end.
* gdb.base/term.exp: Update for exit message change.
* gdb.base/step-test.exp (test_i): Update for exit message change.
* gdb.base/sigstep.exp (advance): Update for exit message change.
(advancei): Likewise.
* gdb.base/siginfo.exp: Update for exit message change.
* gdb.base/shlib-call.exp: Use gdb_continue_to_end.
* gdb.base/reread.exp: Use gdb_continue_to_end.
* gdb.base/langs.exp: Use gdb_continue_to_end.
* gdb.base/interrupt.exp: Update for exit message change.
* gdb.base/gdb1555.exp: Update for exit message change.
* gdb.base/exe-lock.exp: Use gdb_continue_to_end.
* gdb.base/ending-run.exp: Update for exit message change.
* gdb.base/chng-syms.exp: Update for exit message change.
* gdb.base/checkpoint.exp: Update for exit message change.
* gdb.base/catch-syscall.exp (check_for_program_end): Use
gdb_continue_to_end.
(test_catch_syscall_with_wrong_args): Likewise.
* gdb.base/call-signal-resume.exp: Use gdb_continue_to_end.
* gdb.base/break-interp.exp (test_ld): Update for exit message
change.
* gdb.base/bang.exp: Update for exit message change.
* gdb.base/attach.exp (do_attach_tests): Use gdb_continue_to_end.
(do_call_attach_tests): Likewise.
* gdb.base/a2-run.exp: Update for exit message change.
* gdb.arch/ppc-dfp.exp: Update for exit message change.
* gdb.ada/tasks.exp: Use gdb_continue_to_end.
* gdb.ada/catch_ex.exp: Use gdb_continue_to_end.
2011-03-07 16:03:04 +00:00
Tom Tromey
aeaec16283
* target.h (struct target_ops) <to_has_execution>: Add ptid_t
...
parameter.
(target_has_execution_1): Update.
(target_has_execution_current): Declare.
(target_has_execution): Call target_has_execution_current.
(default_child_has_execution): Update.
* target.c (default_child_has_execution): Add 'the_ptid'
parameter.
(target_has_execution_1): Likewise.
(target_has_execution_current): New function.
(add_target): Update.
(init_dummy_target): Update.
* remote-m32r-sdi.c (m32r_has_execution): New function.
(init_m32r_ops): Use it.
* record.c (record_core_has_execution): Now static. Add
'the_ptid' parameter.
* inferior.c (have_live_inferiors): Don't save current thread.
Use target_has_execution_1.
2011-03-07 15:58:13 +00:00
Yao Qi
08e1408309
2011-03-07 Yao Qi <yao@codesourcery.com>
...
* Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2011-03-07 11:42:54 +00:00
Joel Brobecker
c05d19c5b6
Minor reformatting in elfread.c:elf_symtab_read
...
gdb/ChangeLog:
* elfread.c (elf_symtab_read): Minor reformatting.
2011-03-07 11:13:08 +00:00
Joel Brobecker
3e6ef9e42e
minor reformatting in objc-lang.c:selectors_info
...
gdb/ChangeLog:
* objc-lang.c (selectors_info): Minor reformatting.
2011-03-07 10:41:34 +00:00
Joel Brobecker
dbb8534f73
add FALLTHROUGH comment in ada-lang.c:compare_names
...
gdb/ChangeLog:
* ada-lang.c (compare_names): Add FALLTHROUGH comment.
2011-03-07 10:05:20 +00:00
Joel Brobecker
dd70cc9388
simplify ada-valprint.c:ada_val_print_array
...
Two things:
- Move the declaration of a couple of variables inside the block
where they are actually used;
- Remove some code that checks against NULL/zero, because the
condition should always be false. Add some gdb_asserts to
make sure we never fail those assumptions.
gdb/ChangeLog:
* ada-valprint.c (ada_val_print_array): Move the declaration of
"byte_order" and "elttype" inside the block where these variables
are actually used. Remove some special handling for the case
where "elttype" and "eltlen" are null. Replace by a comment
and a couple of assertion checks.
2011-03-07 08:57:09 +00:00
H.J. Lu
acc69ddaff
Revert the last change on gas/elf/bad-size.err.
...
2011-03-06 H.J. Lu <hongjiu.lu@intel.com>
* gas/elf/bad-size.err: Revert the last change.
2011-03-07 05:42:53 +00:00
gdbadmin
c9ba9a3fa7
*** empty log message ***
2011-03-07 00:00:03 +00:00
Alan Modra
44d77c0ea0
daily update
2011-03-06 23:00:05 +00:00
Michael Snyder
4281caadcf
2011-03-05 Michael Snyder <msnyder@vmware.com>
...
* compress.c (bfd_compress_section_contents): Check for out of mem.
2011-03-06 18:37:07 +00:00
Michael Snyder
176720017d
2011-03-06 Michael Snyder <msnyder@vmware.com>
...
* elf64-x86-64.c (elf_x86_64_relocate_section): Document
that case statement falls through intentionally.
2011-03-06 18:27:03 +00:00
Michael Snyder
d59a60e937
2011-03-06 Michael Snyder <msnyder@vmware.com>
...
* elf32-i386.c (elf_i386_relocate_section): Document fall through.
2011-03-06 18:22:36 +00:00
H.J. Lu
49002d7f0e
Mention symbol name in non-constant .size expression.
...
gas/
2011-03-05 H.J. Lu <hongjiu.lu@intel.com>
* config/obj-elf.c (elf_frob_symbol): Mention symbol name in
non-constant .size expression.
gas/testsuite/
2011-03-05 H.J. Lu <hongjiu.lu@intel.com>
* gas/elf/bad-size.err: Updated.
2011-03-06 14:05:25 +00:00
Joel Brobecker
e51411190f
gdbserver: configure + make clean fails (no 'common' subdir)
...
This problem was noticed during the nightly snapshot build,
but can be reduced to:
% /path/to/gdb/gdbserver/configure
% make clean
The "make clean" fails, because it tries to do a "make clean"
in the common/ subdirectory. But the problem is that this
common/ subdirectory is NOT created during the configure phase,
but rather during the build phase. The error is fatal because
we had put the common subdirectory in the list of REQUIRED_SUBDIRS.
This fixes the problem by removing it from the REQUIRED_SUBDIRS
list.
gdb/gdbserver/ChangeLog:
* Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
2011-03-06 07:40:52 +00:00
Michael Snyder
b27cf2b3df
2011-03-05 Michael Snyder <msnyder@vmware.com>
...
* source.c (add_path): Replace semicolon at end of block.
* dwarf2expr.c (execute_stack_op): Ditto.
2011-03-06 01:32:47 +00:00
Mike Frysinger
5387a0c698
gdb: blackfin: enable simulator support
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-03-06 00:22:38 +00:00
Mike Frysinger
ef016f835f
sim: bfin: new port
...
This can boot Das U-Boot and a Linux kernel. It also supports Linux
userspace FLAT and FDPIC (dynamic and static) ELFs.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-03-06 00:20:21 +00:00
gdbadmin
7dcf22fd41
*** empty log message ***
2011-03-06 00:00:03 +00:00
Alan Modra
4b162076e8
daily update
2011-03-05 23:00:06 +00:00
Michael Snyder
82ae485463
2011-03-05 Michael Snyder <msnyder@vmware.com>
...
* dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
* mdebugread.c (parse_symbol): Ditto.
* parse.c (parse_exp_in_context): Ditto.
* source.c (add_path): Ditto.
* utils.c (gnu_debuglink_crc32): Ditto.
* varobj.c (variable_language): Ditto.
2011-03-05 22:02:47 +00:00
Michael Snyder
e3aa49afd5
2011-03-05 Michael Snyder <msnyder@vmware.com>
...
* linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2011-03-05 21:21:32 +00:00
Jan Kratochvil
dd19bd7059
* gdb.base/help.exp (help thread find): Fix one forgotten quote.
2011-03-05 13:15:02 +00:00
Ralf Wildenhues
626a5a0cb2
Guard against M4 versions with a buggy strstr.
...
config/:
* override.m4: Error out if a buggy M4 was detected, to
avoid spurious diffs in generated files.
2011-03-05 07:33:13 +00:00
H.J. Lu
61ff971fde
Revert the last change.
2011-03-05 04:31:41 +00:00
Joel Brobecker
64794aa4b4
fix make clean doesn't run in gdbserver/common
...
011-03-05 Yao Qi <yao@codesourcery.com>
* Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
(subdir_do): New make target. Copied from gdb/Makefile.
(maintainer-clean, realclean, distclean, clean): Call corresponding
make targets in common/Makefile.
2011-03-05 03:45:26 +00:00
H.J. Lu
ac480657f1
Set x86_cie_data_alignment to -4 for x32.
...
gas/
2011-03-04 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (x86_cie_stack_alignment): New.
(md_begin): Set x86_cie_data_alignment if it isn't set. Set
x86_cie_stack_alignment.
(i386_target_format): Set x86_cie_data_alignment to -4 for x32.
(tc_x86_frame_initial_instructions): Use x86_cie_stack_alignment
instead of x86_cie_data_alignment on SP and RA.
gas/testsuite/
2011-03-04 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/ilp32/cfi/cfi-x86_64.d: Updated.
2011-03-05 02:16:36 +00:00
Michael Snyder
da3ecdc664
2011-03-04 Michael Snyder <msnyder@vmware.com>
...
* linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2011-03-05 01:12:05 +00:00
Michael Snyder
9cc8966527
2011-03-04 Michael Snyder <msnyder@vmware.com>
...
* symfile.c (simple_overlay_update): Check for null return value
from lookup_minimal_symbol.
2011-03-05 00:52:41 +00:00
Michael Snyder
cfdee94ab4
2011-03-04 Michael Snyder <msnyder@vmware.com>
...
* gdbserver/server.c (queue_stop_reply): Call xmalloc not malloc.
2011-03-05 00:21:10 +00:00