lp:gdb-linaro/7.3
- Get this branch:
- bzr branch lp:gdb-linaro/7.3
Branch merges
Branch information
Recent revisions
- 35281. By Ulrich Weigand
-
2012-01-20 Ulrich Weigand <email address hidden>
Fix LP #804411
Fix LP #804406
Backport from mainline:2012-01-20 Ulrich Weigand <email address hidden>
gdb/
* gdbarch.sh (find_memory_regions) : New callback.
* gdbarch.c, gdbarch.h: Regenerate.* gcore.c (gcore_
memory_ sections) : Try gdbarch find_memory_regions
callback before falling back to target method.* linux-nat.c (read_mapping, linux_nat_
find_memory_ regions) : Remove.
(linux_target_ install_ ops): No longer install it. * linux-tdep.c (linux_
find_memory_ regions) : New function.
(linux_init_abi): Install it.2012-01-20 Ulrich Weigand <email address hidden>
gdb/
* gdbarch.sh (make_corefile_notes): New architecture callback.
* gdbarch.c: Regenerate.
* gdbarch.h: Likewise.* gcore.c (write_gcore_file): Try gdbarch_
make_corefile_ notes
before target_make_corefile_ notes. If NULL is returned, the
target does not support core file generation.* linux-nat.c: Include "linux-tdep.h".
(find_signalled_ thread, find_stop_signal): Remove.
(linux_nat_do_ thread_ registers) : Likewise.
(struct linux_nat_corefile_ thread_ data): Likewise.
(linux_nat_corefile_ thread_ callback) : Likewise.
(iterate_over_spus) : Likewise.
(struct linux_spu_corefile_ data): Likewise.
(linux_spu_corefile_ callback) : Likewise.
(linux_spu_make_ corefile_ notes): Likewise.
(linux_nat_collect_ thread_ registers) : New function.
(linux_nat_make_ corefile_ notes): Replace contents by call to
linux_make_corefile_ notes passing linux_nat_ collect_ thread_ registers
as native-only callback.* linux-tdep.h: Include "bfd.h".
(struct regcache): Add forward declaration.
(linux_collect_ thread_ registers_ ftype): New typedef.
(linux_make_corefile_ notes): Add prototype.
* linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
"regset.h", and "elf-bfd.h".
(find_signalled_ thread, find_stop_signal): New functions.
(linux_spu_make_ corefile_ notes): Likewise.
(linux_collect_ thread_ registers) : Likewise.
(struct linux_corefile_thread_ data): New data structure.
(linux_corefile_ thread_ callback) : New funcion.
(linux_make_corefile_ notes): Likewise.
(linux_make_corefile_ notes_1) : Likewise.
(linux_init_abi): Install it.2012-01-20 Ulrich Weigand <email address hidden>
bfd/
* elf.c (elfcore_write_prpsinfo) : Provide unconditionally.
Return NULL if core file generation is unsupported.
(elfcore_write_prstatus) : Likewise.
* elf32-arm.c (elf32_arm_nabi_ write_core_ note): New function.
(elf_backend_write_core_ note): Define. 2012-01-20 Ulrich Weigand <email address hidden>
gdb/
* gdbarch.sh (info_proc): New callback.
* gdbarch.c, gdbarch.h: Regenerate.* infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
before falling back to the target info_proc callback.* linux-nat.c: Do not include "cli/cli-utils.h".
(linux_nat_info_ proc): Remove.
(linux_target_ install_ ops): No longer install it. * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
(read_mapping): New function.
(linux_info_proc): Likewise.
(linux_init_abi): Install it.2012-01-20 Ulrich Weigand <email address hidden>
gdb/
* defs.h (enum info_proc_what): Moved here from linux-nat.c
* infcmd.c: (info_proc_cmd_1): New function.
(info_proc_cmd): New function, moved here from equivalent routine
orignally in linux-nat.c.
(info_proc_cmd_ mappings) : Likewise.
(info_proc_cmd_ stat): Likewise.
(info_proc_cmd_ status) : Likewise.
(info_proc_cmd_ cwd): Likewise.
(info_proc_cmd_ cmdline) : Likewise.
(info_proc_cmd_ exe): Likewise.
(info_proc_cmd_ all): Likewise.
(_initialize_infcmd) : Install "info proc" command and subcommands. * target.h (struct target_ops): Add to_info_proc.
(target_info_proc) : Add prototype.
* target.c (target_info_proc): New function.* procfs.c (procfs_info_proc): Add prototype.
(info_proc_cmd): Rename into ...
(procfs_info_proc) : ... this. Update argument types as appropriate
for a to_info_proc implementation. Handle "what" argument.
(procfs_target): Install procfs_info_proc.
(_initialize_procfs) : No longer install "info proc" command. * linux-nat.c: (enum info_proc_what): Remove.
(linux_nat_info_ proc_cmd_ 1): Rename into ...
(linux_nat_info_ proc): ... this. Update argument types as appropriate
for a to_info_proc implementation.
(linux_nat_info_ proc_cmd) : Remove.
(linux_nat_info_ proc_cmd_ mappings) : Likewise.
(linux_nat_info_ proc_cmd_ stat): Likewise.
(linux_nat_info_ proc_cmd_ status) : Likewise.
(linux_nat_info_ proc_cmd_ cwd): Likewise.
(linux_nat_info_ proc_cmd_ cmdline) : Likewise.
(linux_nat_info_ proc_cmd_ exe): Likewise.
(linux_nat_info_ proc_cmd_ all): Likewise.
(linux_target_ install_ ops): Install linux_nat_ info_proc.
(_initialize_linux_nat) : No longer install "info proc" command
and subcommands.gdb/testsuite/
* gdb.base/info-proc. exp: Also run on remote targets. Main
"info proc" command is now always present; whether target supports
actual info proc operation is detected when attempting to issue
the command.2012-01-20 Ulrich Weigand <email address hidden>
gdb/
* configure.ac [AC_CHECK_FUNCS]: Check for readlink.
* config.in, configure: Regenerate.* target.h (struct target_ops): Add to_fileio_readlink.
(target_fileio_ readlink) : Add prototype.
* target.c (target_fileio_ readlink) : New function. * inf-child.c: Conditionally include <sys/param.h>.
(inf_child_fileio_ readlink) : New function.
(inf_child_target) : Install it. * remote.c (PACKET_
vFile_readlink) : New enum value.
(remote_hostio_ readlink) : New function.
(init_remote_ops): Install it.
(_initialize_remote) : Handle vFile:readlink packet type. gdb/doc/
* gdb.texinfo (Remote Configuration): Document
"set remote hostio-readlink- packet" command.
(General Query Packets): Document vFile:readlink packet.gdb/gdbserver/
* hostio.c (handle_readlink): New function.
(handle_vFile): Call it to handle "vFile:readlink" packets.2012-01-20 Pedro Alves <email address hidden>
Ulrich Weigand <email address hidden>gdb/
* configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
* config.in, configure: Regenerate.* target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
to_fileio_pread, to_fileio_close, to_fileio_unlink.
(target_fileio_ open): Add prototype.
(target_fileio_ pwrite) : Likewise.
(target_fileio_ pread): Likewise.
(target_fileio_ close): Likewise.
(target_fileio_ unlink) : Likewise.
(target_fileio_ read_alloc) : Likewise.
(target_fileio_ read_stralloc) : Likewise. * target.c: Include "gdb/fileio.h".
(target_read_stralloc) : Accept trailing, but not embedded NUL bytes.
(default_fileio_ target) : New function.
(target_fileio_ open): Likewise.
(target_fileio_ pwrite) : Likewise.
(target_fileio_ pread): Likewise.
(target_fileio_ close): Likewise.
(target_fileio_ unlink) : Likewise.
(target_fileio_ close_cleanup) : Likewise.
(target_fileio_ read_alloc_ 1): Likewise.
(target_fileio_ read_alloc) : Likewise.
(target_fileio_ read_stralloc) : Likewise. * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
<fcntl.h>, and <unistd.h>.
(inf_child_fileio_ open_flags_ to_host) : New function.
(inf_child_errno_to_ fileio_ error): Likewise.
(inf_child_fileio_ open): Likewise.
(inf_child_fileio_ pwrite) : Likewise.
(inf_child_fileio_ pread): Likewise.
(inf_child_fileio_ close): Likewise.
(inf_child_fileio_ unlink) : Likewise.
(inf_child_target) : Install to_fileio routines. * remote.c (init_remote_ops): Install to_fileio routines.
2012-01-20 Pedro Alves <email address hidden>
Ulrich Weigand <email address hidden>gdb/
* remote.c (remote_multi_process_ p): Only check for multi-process
protocol feature, do not check for extended protocol.
(remote_supports_ multi_process) : Check for extended protocol here.
(set_general_process) : Likewise.
(extended_remote_ kill): Likewise.
(remote_pid_to_ str): Likewise.
(remote_query_supported ): Always query multiprocess mode. gdb/gdbserver/
* server.c (handle_v_requests) : Only support vAttach and vRun to
start multiple processes when in extended protocol mode.2012-01-20 Pedro Alves <email address hidden>
Ulrich Weigand <email address hidden>gdb/
* 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.2011-11-03 Jan Kratochvil <email address hidden>
Eli Zaretskii <email address hidden>gdb/
* linux-nat.c (_initialize_linux_nat) : Improve help
for `info proc stat', `info proc status', `info proc cwd',
`info proc cmdline' and `info proc exe'.2011-11-01 Pedro Alves <email address hidden>
Jan Kratochvil <email address hidden>gdb/
* linux-nat.c (enum info_proc_what): New.
(linux_nat_info_ proc_cmd) : Rename to ...
(linux_nat_info_ proc_cmd_ 1): ... here. Remove variables argv and all.
New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
status_f and stat_f from WHAT. Throw error on extra parameters.
(linux_nat_info_ proc_cmd, linux_nat_ info_proc_ cmd_mappings)
(linux_nat_info_ proc_cmd_ stat, linux_nat_ info_proc_ cmd_status)
(linux_nat_info_ proc_cmd_ cwd, linux_nat_ info_proc_ cmd_cmdline)
(linux_nat_info_ proc_cmd_ exe, linux_nat_ info_proc_ cmd_all) : New.
(_initialize_linux_nat) : New variable info_proc_cmdlist. Install `info
proc mappings', `info proc stat`, `info proc status', `info proc cwd',
`info proc cmdline', `info proc exe' and `info proc all' as real
subcommands of `info proc'. - 35278. By Ulrich Weigand
-
2011-12-07 Ulrich Weigand <email address hidden>
Fix LP #892008
Backport from mainline:2011-12-07 Ulrich Weigand <email address hidden>
gdb/
* arm-tdep.h (arm_deal_with_atomic_ sequence) : Add prototype.
* arm-tdep.c (thumb_deal_with_ atomic_ sequence_ raw): New function.
(arm_deal_with_atomic_ sequence_ raw): Likewise.
(arm_deal_with_atomic_ sequence) : Likewise.
(arm_software_single_ step): Call it.
* arm-linux-tdep.c (arm_linux_software_ single_ step): Likewise. - 35277. By Ulrich Weigand
-
2011-12-07 Ulrich Weigand <email address hidden>
Update to GDB 7.3.1 release.
- 35274. By Ulrich Weigand
-
2011-10-11 Ulrich Weigand <email address hidden>
Fix LP #829595
Backport from mainline:2011-10-11 Ulrich Weigand <email address hidden>
gdb/testsuite/
* gdb.python/py-shared. exp: Relax filename check to handle remote:
sysroot.2011-10-11 Ulrich Weigand <email address hidden>
gdb/
* symfile.c (separate_debug_file_ exists) : Fix condition. 2011-10-11 Jan Kratochvil <email address hidden>
gdb/
Fix separate debuginfo warning with "remote:" access.
* objfiles.h (struct objfile): New fields crc32 and crc32_p.
* symfile.c (get_file_crc): New function with the code moved from ...
(separate_debug_file_ exists) : ... this function, specifically variables
buffer and count. New variable verified_as_different, set it. Remove
file_crc initialization. Verify also if both files are not the same
manually, if needed. - 35273. By Ulrich Weigand
-
2011-10-10 Ulrich Weigand <email address hidden>
Fix LP #871901
Backport from mainline:2011-10-10 Ulrich Weigand <email address hidden>
gdb/
PR gdb/13218
* arm-linux-nat.c (os_version, os_major, os_minor, os_release):
Remove unused variables.
(get_linux_version) : Remove function.
(_initialize_arm_linux_ nat): Do not call it. - 35272. By Ulrich Weigand
-
2011-10-07 Ulrich Weigand <email address hidden>
Fix LP #804408
Backport from mainline:2011-10-07 Ulrich Weigand <email address hidden>
gdb/
* inferior.h (disable_randomization) : Declare.
* infrun.c (disable_randomization) : New global variable.
(show_disable_ randomization) : New function.
(set_disable_randomization) : Likewise.
(_initialize_infrun) : Install set/show disable- randomization
commands.
* linux-nat.c (disable_randomization) : Remove.
(show_disable_ randomization) : Likewise.
(set_disable_randomization) : Likewise.
(_initialize_linux_nat) : No longer install set/show
disable-randomization commands here.
(linux_nat_supports_ disable_ randomization) : New function.
(linux_nat_add_ target) : Install it.
* remote.c (PACKET_QDisableRandomi zation) : New enum value.
(remote_protocol_ packets) : Support QDisableRandomi zation.
(_initialize_remote) : Likewise.
(remote_supports_ disable_ randomization) : New function.
(init_remote_ops): Install it.
(extended_remote_ supports_ disable_ randomization) : New function.
(init_extended_ remote_ ops): Install it.
(extended_remote_ disable_ randomization) : New function.
(extended_remote_ create_ inferior_ 1): Call it.
* target.h (struct target_ops): Add to_supports_disable_ randomization.
(target_supports_ disable_ randomization) : Add prototype.
* target.c (target_supports_ disable_ randomization) : New function.
(find_default_ supports_ disable_ randomization) : Likewise.
(init_dummy_target) : Install it. gdb/doc/
* gdb.texinfo (Starting your Program): "set disable-randomization"
is no longer Linux-specific.
(Remote Configuration): Document "set remote
disable-randomization- packet" .
(General Query Packets): Document "QDisableRandomization" packet
and add it to "qSupported" list.gdb/gdbserver/
* configure.ac: Check support for personality routine.
* configure: Regenerate.
* config.in: Likewise.
* linux-low.c: Include <sys/personality.h>.
Define ADDR_NO_RANDOMIZE if necessary.
(linux_create_ inferior) : Disable address space randomization when
forking inferior, if requested.
(linux_supports_ disable_ randomization) : New function.
(linux_target_ ops): Install it.
* server.h (disable_randomization) : Declare.
* server.c (disable_randomization) : New global variable.
(handle_general_ set): Handle QDisableRandomi zation.
(handle_query): Likewise for qSupported.
(main): Support --disable-randomization and --no-disable- randomization
command line arguments.
* target.h (struct target_ops): Add supports_disable_ randomization.
(target_supports_ disable_ randomization) : New macro.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:gdb-linaro/7.2