From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27384 invoked by alias); 22 Apr 2013 12:13:28 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 27363 invoked by uid 9514); 22 Apr 2013 12:13:28 -0000 Date: Mon, 22 Apr 2013 12:13:00 -0000 Message-ID: <20130422121328.27289.qmail@sourceware.org> From: pmuldoon@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] pmuldoon/python-backtrace: Merge remote-tracking branch 'gdb/master' into pmuldoon/python-backtrace X-Git-Refname: refs/heads/pmuldoon/python-backtrace X-Git-Reftype: branch X-Git-Oldrev: bc81493517989311a33355d00a68bbdfa95862b9 X-Git-Newrev: 54585436d6c183677e19a08ade1ccc884dd47337 X-SW-Source: 2013-q2/txt/msg00041.txt.bz2 List-Id: The branch, pmuldoon/python-backtrace has been updated via 54585436d6c183677e19a08ade1ccc884dd47337 (commit) via 8b336e6bdffba2095f20c39140ca1b4db9d5a9d1 (commit) via effff1b7fb47a783d5041d5bfa906e0598237f47 (commit) via 387dcc423f0b0837835ec7d1f1c5ed7728fa9574 (commit) via 051f357decdb4ebb99a374616ec2f231a231d188 (commit) via 40f0f68dc579c37f7b8acc50dbea5e4f6c013b1f (commit) via 9fbc529f6156b9f4b92bd339e2043eb5ef28cded (commit) via 064089ea8bff6088c25347790569670735fff568 (commit) via 9d98d54e5dd823ce1db8eaa5565786353bde08d2 (commit) via 5461f4b4302ed312ae837284661f63bcbb5f0150 (commit) via f857351bba8ed38f911fae105fb163ecbb891f38 (commit) via 105a5d1d91e1262b3f9c41cba005de5bb67d1d8b (commit) via df3f6541130aef717e500bc647efa1bde2ac65d3 (commit) via 19c227dcd47973ba3d4ab7b69967b94840df0e34 (commit) via f7eb9e8a850efb3f2c65d29cdacaf88ada15f8bd (commit) via 5e5c0ff1bb5f27ebd180c0696a104f2816d0c145 (commit) via 0d9856c8507b0b2e0a88fda3fc14404228218c74 (commit) via 86beac1070093ae3f91c9e1cd3009bed3e475fa6 (commit) via 295123e116bd75f28ca1a6c310471668960f2fc0 (commit) via bf63885a12b4ff83174a400335f6258536e0ff2a (commit) via 72ba79c167998175b9302b5b83cb472625f886b8 (commit) via 3b3be33462801c7945e328c6570f7e3d6a4acbac (commit) via c3f787aca95e3ecb7215b6b42be6f4620fc7c02c (commit) via 70685987aab47cea63a45e038097fde4fef548fd (commit) via 29fc1b0ae32e3110fac0313a6720aca198de02c9 (commit) via 1016d2d11a157ae44dd2f29620bbfd9d459ab7c8 (commit) via 3b0b4cc40ad6020112bc02ccd539fb0d9b0c6ede (commit) via 5e50ec2db34555434bdf0c61996647573945f047 (commit) via 34bcb4e371534d9a450ea11a578adff28704fa23 (commit) via ea029ce7c43cebe294b644bc316eeefcc774d992 (commit) via d6617aac65a3e5acc91ea0905a0bdd543a821f2d (commit) via a2429991882d4235f1eb017ddd0a9d8f1e8b5398 (commit) via 045f778a4c12658419d10ec5485bd0347935a39d (commit) via 1d3d38e1eacb431efb1d0a4a67e6eacf15c0f2b2 (commit) via 31bfb03710f59e01c2cd123bf01be2f991f29e22 (commit) via 4b42dc673381808a31f0f6cc7ed7eccd3c9043b8 (commit) via cea2b1f6f345e375adba8f2eb9861b004d33c1e8 (commit) via 5c6f64738585ff93d63f5782b9bb044eca637fa0 (commit) via 7b6538165a92ffa94a76d4c7677c8c0a5de527b9 (commit) via 49c16422a06186b20f0fc33380113b131c20c8f8 (commit) via 05920b10b4f7e7c44329c13644bbfa14c427ae92 (commit) via 1614db2f39d46d6ba389e88edfeed3eeef6e3e7e (commit) via f78a17cc8b54f718d16b6cfd63163a39a6df738b (commit) via 74d7e164d1e9d6ff1fd7c1acf675e3589098fa81 (commit) from bc81493517989311a33355d00a68bbdfa95862b9 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 54585436d6c183677e19a08ade1ccc884dd47337 Merge: bc81493 8b336e6 Author: Phil Muldoon Date: Mon Apr 22 13:13:18 2013 +0100 Merge remote-tracking branch 'gdb/master' into pmuldoon/python-backtrace commit 8b336e6bdffba2095f20c39140ca1b4db9d5a9d1 Author: qiyao Date: Mon Apr 22 09:34:27 2013 +0000 gdb/ * infrun.c: Fix typo in comment. commit effff1b7fb47a783d5041d5bfa906e0598237f47 Author: sergiodj Date: Mon Apr 22 09:32:21 2013 +0000 2013-04-22 Sergio Durigan Junior * gdb.arch/arm-bl-branch-dest.exp: Replace additional_flags by ldflags. commit 387dcc423f0b0837835ec7d1f1c5ed7728fa9574 Author: sergiodj Date: Mon Apr 22 09:20:32 2013 +0000 Andrew Haley found a bug on GDB running on ARM when using --enable-64-bit-bfd. Basically the issue happens when dealing with "bl" instructions: GDB does branch destination calculation and (wrongly) sign-extends the PC. Here is a piece of his original message explaining the problem: > next_pc = arm_get_next_pc (frame, get_frame_pc (frame)); > > /* The Linux kernel offers some user-mode helpers in a high page. We can > not read this page (as of 2.6.23), and even if we could then we couldn't > set breakpoints in it, and even if we could then the atomic operations > would fail when interrupted. They are all called as functions and return > to the address in LR, so step to there instead. */ > if (next_pc > 0xffff0000) > next_pc = get_frame_register_unsigned (frame, ARM_LR_REGNUM); > > arm_insert_single_step_breakpoint (gdbarch, aspace, next_pc); > > Unfortunately, branch destination addresses are SIGN EXTENDED to 64 > bits. So, > > (top-gdb) p/x next_pc > $14 = 0xffffffffb6df2864 > > Which triggers the next_pc = get_frame_register_unsigned(), and we > cannot step into any branches because the destination PC is wrong. Anyway, the fix is simple and Andrew himself provided it for us. It took a while for me to figure out how to trigger the bug (in order to write a testcase for it), but I finally made it. The attached patch fixes the problem (by casting to `unsigned long' instead of just `long'), and also includes a testcase to reproduce the issue. gdb/ChangeLog: 2013-04-22 Andrew Haley * arm-tdep.c (BranchDest): Cast result as "unsigned long", instead of "long". gdb/testsuite/ChangeLog: 2013-04-22 Sergio Durigan Junior * gdb.arch/arm-bl-branch-dest.c: New file. * gdb.arch/arm-bl-branch-dest.exp: Likewise. commit 051f357decdb4ebb99a374616ec2f231a231d188 Author: Alan Modra Date: Mon Apr 22 03:11:39 2013 +0000 bfd/ * elf64-ppc.c (ppc64_elf_check_relocs): Don't call create_linkage_sections here.. (ppc64_elf_init_stub_bfd): ..do so here. Return status. (create_linkage_sections): Move earlier in file. (ppc64_elf_setup_section_lists): Remove now useless htab->brlt test. * elf64-ppc.h (ppc64_elf_init_stub_bfd): Update proto. ld/ * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check return from ppc64_elf_init_stub_bfd. ld/testsuite/ * ld-powerpc/tlsexe.d: Adjust. * ld-powerpc/tlsexe.r: Adjust. * ld-powerpc/tlsexetoc.d: Adjust. * ld-powerpc/tlsexetoc.r: Adjust. * ld-powerpc/tlsso.d: Adjust. * ld-powerpc/tlsso.r: Adjust. * ld-powerpc/tlstocso.d: Adjust. * ld-powerpc/tlstocso.r: Adjust. commit 40f0f68dc579c37f7b8acc50dbea5e4f6c013b1f Author: gdbadmin Date: Mon Apr 22 00:00:32 2013 +0000 *** empty log message *** commit 9fbc529f6156b9f4b92bd339e2043eb5ef28cded Author: Alan Modra Date: Mon Apr 22 00:00:04 2013 +0000 daily update ----------------------------------------------------------------------- Summary of changes: bfd/ChangeLog | 9 + bfd/elf64-ppc.c | 172 +++++++------- bfd/elf64-ppc.h | 2 +- bfd/version.h | 2 +- gdb/ChangeLog | 320 +++++++++++++++++++++++++ gdb/aarch64-tdep.c | 6 +- gdb/ada-lang.c | 5 +- gdb/ada-tasks.c | 2 +- gdb/alpha-tdep.c | 6 +- gdb/alphanbsd-tdep.c | 8 +- gdb/arm-linux-tdep.c | 16 +- gdb/arm-tdep.c | 14 +- gdb/arm-tdep.h | 6 +- gdb/arm-wince-tdep.c | 4 +- gdb/armnbsd-tdep.c | 8 +- gdb/armobsd-tdep.c | 4 +- gdb/avr-tdep.c | 8 +- gdb/c-lang.c | 2 +- gdb/coff-pe-read.c | 7 +- gdb/common/agent.c | 3 +- gdb/configure | 2 +- gdb/configure.ac | 2 +- gdb/cp-valprint.c | 2 +- gdb/cris-tdep.c | 26 +- gdb/ctf.c | 19 +- gdb/doc/ChangeLog | 10 + gdb/doc/gdbint.texinfo | 13 +- gdb/dwarf2-frame.c | 6 +- gdb/dwarf2loc.c | 4 +- gdb/dwarf2read.c | 10 +- gdb/frv-tdep.c | 10 +- gdb/hppa-hpux-tdep.c | 16 +- gdb/hppa-tdep.c | 4 +- gdb/i386-cygwin-tdep.c | 6 +- gdb/i387-tdep.c | 2 +- gdb/ia64-tdep.c | 24 +- gdb/infrun.c | 2 +- gdb/linux-tdep.c | 8 +- gdb/m32c-tdep.c | 3 +- gdb/m68hc11-tdep.c | 14 +- gdb/mep-tdep.c | 2 +- gdb/mips-tdep.c | 6 +- gdb/mipsnbsd-tdep.c | 2 +- gdb/mn10300-tdep.c | 11 +- gdb/monitor.c | 14 +- gdb/moxie-tdep.c | 14 +- gdb/ppc-linux-tdep.c | 2 +- gdb/ppc-ravenscar-thread.c | 6 +- gdb/python/py-inferior.c | 2 +- gdb/python/py-prettyprint.c | 10 +- gdb/python/py-value.c | 3 +- gdb/ravenscar-thread.c | 2 +- gdb/record-full.c | 10 +- gdb/record.c | 2 +- gdb/remote-m32r-sdi.c | 2 +- gdb/remote-mips.c | 34 ++-- gdb/remote.c | 31 ++-- gdb/reverse.c | 4 +- gdb/s390-tdep.c | 8 +- gdb/score-tdep.c | 2 +- gdb/ser-base.c | 9 +- gdb/ser-base.h | 2 +- gdb/ser-go32.c | 21 +- gdb/ser-tcp.c | 5 +- gdb/serial.c | 16 +- gdb/serial.h | 6 +- gdb/sh-tdep.c | 44 ++-- gdb/sh64-tdep.c | 41 ++-- gdb/solib-darwin.c | 10 +- gdb/solib-dsbt.c | 2 +- gdb/solib-frv.c | 2 +- gdb/solib-irix.c | 12 +- gdb/solib-som.c | 2 +- gdb/solib-spu.c | 2 +- gdb/solib-svr4.c | 6 +- gdb/sparc-ravenscar-thread.c | 6 +- gdb/spu-multiarch.c | 2 +- gdb/spu-tdep.c | 18 +- gdb/testsuite/ChangeLog | 16 ++ gdb/testsuite/gdb.arch/arm-bl-branch-dest.c | 29 +++ gdb/testsuite/gdb.arch/arm-bl-branch-dest.exp | 37 +++ gdb/testsuite/gdb.arch/i386-float.S | 34 +++ gdb/testsuite/gdb.arch/i386-float.exp | 43 ++++ gdb/tic6x-tdep.c | 2 +- gdb/tic6x-tdep.h | 2 +- gdb/tracepoint.c | 19 +- gdb/version.in | 2 +- gdb/xcoffread.c | 2 +- gdb/xstormy16-tdep.c | 10 +- gdb/xtensa-tdep.c | 10 +- sim/ChangeLog | 4 + sim/ppc/ppc-instructions | 13 + 92 files changed, 954 insertions(+), 429 deletions(-) create mode 100644 gdb/testsuite/gdb.arch/arm-bl-branch-dest.c create mode 100644 gdb/testsuite/gdb.arch/arm-bl-branch-dest.exp create mode 100644 gdb/testsuite/gdb.arch/i386-float.S create mode 100644 gdb/testsuite/gdb.arch/i386-float.exp First 500 lines of diff: diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 22cf440..c8d5619 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,12 @@ +2013-04-22 Alan Modra + + * elf64-ppc.c (ppc64_elf_check_relocs): Don't call + create_linkage_sections here.. + (ppc64_elf_init_stub_bfd): ..do so here. Return status. + (create_linkage_sections): Move earlier in file. + (ppc64_elf_setup_section_lists): Remove now useless htab->brlt test. + * elf64-ppc.h (ppc64_elf_init_stub_bfd): Update proto. + 2013-04-19 Nick Clifton PR binutils/15356 diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index e14bfb0..cb33821 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -4061,9 +4061,86 @@ ppc64_elf_link_hash_table_free (struct bfd_link_hash_table *hash) _bfd_elf_link_hash_table_free (hash); } +/* Create sections for linker generated code. */ + +static bfd_boolean +create_linkage_sections (bfd *dynobj, struct bfd_link_info *info) +{ + struct ppc_link_hash_table *htab; + flagword flags; + + htab = ppc_hash_table (info); + + /* Create .sfpr for code to save and restore fp regs. */ + flags = (SEC_ALLOC | SEC_LOAD | SEC_CODE | SEC_READONLY + | SEC_HAS_CONTENTS | SEC_IN_MEMORY | SEC_LINKER_CREATED); + htab->sfpr = bfd_make_section_anyway_with_flags (dynobj, ".sfpr", + flags); + if (htab->sfpr == NULL + || ! bfd_set_section_alignment (dynobj, htab->sfpr, 2)) + return FALSE; + + /* Create .glink for lazy dynamic linking support. */ + htab->glink = bfd_make_section_anyway_with_flags (dynobj, ".glink", + flags); + if (htab->glink == NULL + || ! bfd_set_section_alignment (dynobj, htab->glink, 3)) + return FALSE; + + if (!info->no_ld_generated_unwind_info) + { + flags = (SEC_ALLOC | SEC_LOAD | SEC_READONLY | SEC_HAS_CONTENTS + | SEC_IN_MEMORY | SEC_LINKER_CREATED); + htab->glink_eh_frame = bfd_make_section_anyway_with_flags (dynobj, + ".eh_frame", + flags); + if (htab->glink_eh_frame == NULL + || !bfd_set_section_alignment (dynobj, htab->glink_eh_frame, 2)) + return FALSE; + } + + flags = SEC_ALLOC | SEC_LINKER_CREATED; + htab->iplt = bfd_make_section_anyway_with_flags (dynobj, ".iplt", flags); + if (htab->iplt == NULL + || ! bfd_set_section_alignment (dynobj, htab->iplt, 3)) + return FALSE; + + flags = (SEC_ALLOC | SEC_LOAD | SEC_READONLY + | SEC_HAS_CONTENTS | SEC_IN_MEMORY | SEC_LINKER_CREATED); + htab->reliplt = bfd_make_section_anyway_with_flags (dynobj, + ".rela.iplt", + flags); + if (htab->reliplt == NULL + || ! bfd_set_section_alignment (dynobj, htab->reliplt, 3)) + return FALSE; + + /* Create branch lookup table for plt_branch stubs. */ + flags = (SEC_ALLOC | SEC_LOAD + | SEC_HAS_CONTENTS | SEC_IN_MEMORY | SEC_LINKER_CREATED); + htab->brlt = bfd_make_section_anyway_with_flags (dynobj, ".branch_lt", + flags); + if (htab->brlt == NULL + || ! bfd_set_section_alignment (dynobj, htab->brlt, 3)) + return FALSE; + + if (!info->shared) + return TRUE; + + flags = (SEC_ALLOC | SEC_LOAD | SEC_READONLY + | SEC_HAS_CONTENTS | SEC_IN_MEMORY | SEC_LINKER_CREATED); + htab->relbrlt = bfd_make_section_anyway_with_flags (dynobj, + ".rela.branch_lt", + flags); + if (htab->relbrlt == NULL + || ! bfd_set_section_alignment (dynobj, htab->relbrlt, 3)) + return FALSE; + + return TRUE; +} + /* Satisfy the ELF linker by filling in some fields in our fake bfd. */ -void +bfd_boolean ppc64_elf_init_stub_bfd (bfd *abfd, struct bfd_link_info *info) { struct ppc_link_hash_table *htab; @@ -4075,9 +4152,14 @@ ppc64_elf_init_stub_bfd (bfd *abfd, struct bfd_link_info *info) the start of the output TOC section. */ htab = ppc_hash_table (info); if (htab == NULL) - return; + return FALSE; htab->stub_bfd = abfd; htab->elf.dynobj = abfd; + + if (info->relocatable) + return TRUE; + + return create_linkage_sections (htab->elf.dynobj, info); } /* Build a name for an entry in the stub hash table. */ @@ -4227,85 +4309,6 @@ ppc_add_stub (const char *stub_name, return stub_entry; } -/* Create sections for linker generated code. */ - -static bfd_boolean -create_linkage_sections (bfd *dynobj, struct bfd_link_info *info) -{ - struct ppc_link_hash_table *htab; - flagword flags; - - htab = ppc_hash_table (info); - if (htab == NULL) - return FALSE; - - /* Create .sfpr for code to save and restore fp regs. */ - flags = (SEC_ALLOC | SEC_LOAD | SEC_CODE | SEC_READONLY - | SEC_HAS_CONTENTS | SEC_IN_MEMORY | SEC_LINKER_CREATED); - htab->sfpr = bfd_make_section_anyway_with_flags (dynobj, ".sfpr", - flags); - if (htab->sfpr == NULL - || ! bfd_set_section_alignment (dynobj, htab->sfpr, 2)) - return FALSE; - - /* Create .glink for lazy dynamic linking support. */ - htab->glink = bfd_make_section_anyway_with_flags (dynobj, ".glink", - flags); - if (htab->glink == NULL - || ! bfd_set_section_alignment (dynobj, htab->glink, 3)) - return FALSE; - - if (!info->no_ld_generated_unwind_info) - { - flags = (SEC_ALLOC | SEC_LOAD | SEC_READONLY | SEC_HAS_CONTENTS - | SEC_IN_MEMORY | SEC_LINKER_CREATED); - htab->glink_eh_frame = bfd_make_section_anyway_with_flags (dynobj, - ".eh_frame", - flags); - if (htab->glink_eh_frame == NULL - || !bfd_set_section_alignment (dynobj, htab->glink_eh_frame, 2)) - return FALSE; - } - - flags = SEC_ALLOC | SEC_LINKER_CREATED; - htab->iplt = bfd_make_section_anyway_with_flags (dynobj, ".iplt", flags); - if (htab->iplt == NULL - || ! bfd_set_section_alignment (dynobj, htab->iplt, 3)) - return FALSE; - - flags = (SEC_ALLOC | SEC_LOAD | SEC_READONLY - | SEC_HAS_CONTENTS | SEC_IN_MEMORY | SEC_LINKER_CREATED); - htab->reliplt = bfd_make_section_anyway_with_flags (dynobj, - ".rela.iplt", - flags); - if (htab->reliplt == NULL - || ! bfd_set_section_alignment (dynobj, htab->reliplt, 3)) - return FALSE; - - /* Create branch lookup table for plt_branch stubs. */ - flags = (SEC_ALLOC | SEC_LOAD - | SEC_HAS_CONTENTS | SEC_IN_MEMORY | SEC_LINKER_CREATED); - htab->brlt = bfd_make_section_anyway_with_flags (dynobj, ".branch_lt", - flags); - if (htab->brlt == NULL - || ! bfd_set_section_alignment (dynobj, htab->brlt, 3)) - return FALSE; - - if (!info->shared) - return TRUE; - - flags = (SEC_ALLOC | SEC_LOAD | SEC_READONLY - | SEC_HAS_CONTENTS | SEC_IN_MEMORY | SEC_LINKER_CREATED); - htab->relbrlt = bfd_make_section_anyway_with_flags (dynobj, - ".rela.branch_lt", - flags); - if (htab->relbrlt == NULL - || ! bfd_set_section_alignment (dynobj, htab->relbrlt, 3)) - return FALSE; - - return TRUE; -} - /* Create .got and .rela.got sections in ABFD, and .got in dynobj if not already done. */ @@ -4983,10 +4986,6 @@ ppc64_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, ppc64_elf_section_data (sec)->sec_type = sec_opd; } - if (htab->sfpr == NULL - && !create_linkage_sections (htab->elf.dynobj, info)) - return FALSE; - rel_end = relocs + sec->reloc_count; for (rel = relocs; rel < rel_end; rel++) { @@ -10547,9 +10546,6 @@ ppc64_elf_setup_section_lists htab->add_stub_section = add_stub_section; htab->layout_sections_again = layout_sections_again; - if (htab->brlt == NULL) - return 0; - /* Find the top input section id. */ for (input_bfd = info->input_bfds, top_id = 3; input_bfd != NULL; diff --git a/bfd/elf64-ppc.h b/bfd/elf64-ppc.h index 2728b27..89495bc 100644 --- a/bfd/elf64-ppc.h +++ b/bfd/elf64-ppc.h @@ -19,7 +19,7 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ -void ppc64_elf_init_stub_bfd +bfd_boolean ppc64_elf_init_stub_bfd (bfd *, struct bfd_link_info *); bfd_boolean ppc64_elf_edit_opd (struct bfd_link_info *, bfd_boolean); diff --git a/bfd/version.h b/bfd/version.h index e5462d7..8d7d489 100644 --- a/bfd/version.h +++ b/bfd/version.h @@ -1,4 +1,4 @@ -#define BFD_VERSION_DATE 20130419 +#define BFD_VERSION_DATE 20130422 #define BFD_VERSION @bfd_version@ #define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ #define REPORT_BUGS_TO @report_bugs_to@ diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 85c3245..d6014ce 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,323 @@ +2013-04-22 Yao Qi + + * infrun.c: Fix typo in comment. + +2013-04-22 Andrew Haley + + * arm-tdep.c (BranchDest): Cast result as "unsigned long", + instead of "long". + +2013-04-20 Yao Qi + + * ctf.c (ctf_fetch_registers): Change the type of 'regs' from + 'char *' to 'gdb_byte *'. Cast the return value of + 'bt_ctf_get_char_array' to 'gdb_byte *'. + +2013-04-19 Pedro Alves + + * configure.ac (build_warnings): Replace -Wno-pointer-sign with + -Wpointer-sign. + * configure: Regenerate. + +2013-04-19 Pedro Alves + + * ser-tcp.c (net_read_prim): Cast second argument to recv to + 'void *'. + +2013-04-19 Pedro Alves + + * monitor.c (monitor_write_memory, monitor_write_memory_bytes): + Change type of 'myaddr' parameter to gdb_byte pointer. + (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer + to 'long long' pointer instead of to 'unsigned long long'. + (monitor_write_memory_block, monitor_read_memory_single) + (monitor_read_memory): Change type of 'myaddr' parameter to + gdb_byte pointer. + +2013-04-19 Pedro Alves + + * record.c (validate_history_size): Make parameter 'setting' + unsigned. + +2013-04-19 Pedro Alves + + * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts + to 'gdb_byte *'. + +2013-04-19 Pedro Alves + + * cp-valprint.c (cp_print_class_member): Change type of 'fieldno' + local to int. + +2013-04-19 Pedro Alves + + * ada-lang.c (print_it_exception): Add cast to gdb_byte *. + * ada-tasks.c (read_fat_string_value): Likewise. + +2013-04-19 Pedro Alves + + * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local + unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed + 'offset', and adjust. + +2013-04-19 Pedro Alves + + * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *. + (read_index_from_section): Add cast to 'char *'. + +2013-04-19 Pedro Alves + + * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'. + +2013-04-19 Pedro Alves + + * coff-pe-read.c (read_pe_exported_syms): Handle strings as char. + +2013-04-19 Pedro Alves + + * record-full.c (record_full_get_bookmark): Change local 'ret' + type to char * and add cast to gdb_byte *. + (record_full_goto_bookmark): Handle 'bookmark' argument as a + string. + * reverse.c (goto_bookmark_command): Add casts to gdb_byte *. + +2013-04-19 Pedro Alves + + * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte + * python/py-prettyprint.c (print_string_repr): Change type of + 'output' local to char *. Add cast to gdb_byte * in + LA_PRINT_STRING call. + (print_children): Change type of 'output' local to char *. + * python/py-value.c (valpy_string): Add cast to const char * in + PyUnicode_Decode call. + +2013-04-19 Pedro Alves + + * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr' + and change its type to 'const char *'. Adjust. + (mips_send_packet): Add cast to 'char *', and remove cast to + 'unsigned char *'. + (mips_receive_packet): Remove cast to 'unsigned char *'. + (mips_load_srec): Use bfd_byte. + (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned. + (pmon_checkset): Make 'value' parameter unsigned. + +2013-04-19 Pedro Alves + + * common/agent.c (agent_run_command): Add cast to gdb_byte *. + +2013-04-19 Pedro Alves + + * remote.c (remote_write_bytes_aux, compare_sections_command) + (remote_read_qxfer) + (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread) + (remote_hostio_readlink, remote_bfd_iovec_pread) + (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as + binary buffer, and char when buffer is used as string. + * tracepoint.c (encode_source_string, tfile_write_uploaded_tp) + (trace_save, tfile_open, traceframe_walk_blocks) + (tfile_fetch_registers): Likewise. + +2013-04-19 Pedro Alves + + * ser-base.c (ser_base_write): Change prototype -- take 'void *' + buffer and size_t size. Adjust. + * ser-base.h (ser_base_write): Adjust. + * ser-go32.c (cnts): Change type to size_t. + (dos_write): Change prototype -- take 'void *' + buffer and size_t size. Adjust. + (dos_info): Print elements of 'cnts' as unsigned long. + * serial.c (serial_write): Likewise. + * serial.h (serial_write): Adjust. + (struct serial_ops) : Change prototype -- take 'void *' + buffer and size_t size. Adjust. + +2013-04-19 Pedro Alves + + * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to + gdb_byte *. + * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise. + +2013-04-19 Pedro Alves + + * alpha-tdep.c (alpha_extract_return_value): Use + regcache_cooked_read_unsigned to read 'v0'. + +2013-04-19 Pedro Alves + + * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of + parameters 'at', 'as' and 'offset' to uint32_t. + +2013-04-19 Pedro Alves + + * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local + 'is64' to signed 'int'. + +2013-04-19 Pedro Alves + + * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2' + parameter to int *. + +2013-04-19 Pedro Alves + + * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local + 'insnbuf' buffer type to unsigned int[]. + +2013-04-19 Pedro Alves + + * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST. + +2013-04-19 Pedro Alves + + * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to + unsigned long *. + +2013-04-19 Pedro Alves + + * alpha-tdep.c (heuristic_fence_post): Change type to int. + (alpha_heuristic_proc_start): Adjust to check -1 instead of + UINT_MAX. + * mips-tdep.c (heuristic_fence_post): Change type to int. + (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX. + +2013-04-19 Pedro Alves + + * cris-tdep.c (usr_cmd_cris_version): Make unsigned. + (struct gdbarch_tdep) : Make unsigned. + (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals. + +2013-04-19 Pedro Alves + + * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use + it to get a string view of the byte buffer. + * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf' + type to gdb_byte *. Adjust. + * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full): + Change local to char *. + * solib-darwin.c (find_program_interpreter): Change return type to + char *. Adjust. + (darwin_solib_get_all_image_info_addr_at_init): Adjust. + * solib-dsbt.c (enable_break2): Change local 'buf' to char *. + * solib-frv.c (enable_break2): Change local 'buf' to char *. + * solib-spu.c (spu_current_sos): Add gdb_byte * cast. + * solib-svr4.c (find_program_interpreter): Change return type to + char *. Adjust. + (enable_break): Change local 'interp_name' to char *. + * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'. + * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'. + (spu_pseudo_register_write_spu): Use char for string buffer. + Adjust. + (info_spu_event_command, info_spu_signal_command): Add casts to + 'char *'. + +2013-04-19 Pedro Alves + + * aarch64-tdep.c (aarch64_default_breakpoint): Change type to + gdb_byte[]. + (aarch64_breakpoint_from_pc): Change return type to gdb_byte *. + * ada-lang.c (ada_value_assign): Use gdb_byte. + * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[]. + (alphanbsd_sigtramp_offset): Use gdb_byte. + * arm-linux-tdep.c (arm_linux_arm_le_breakpoint) + (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint) + (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint) + (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint) + (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[]. + * arm-tdep.c (arm_stub_unwind_sniffer) + (arm_displaced_init_closure): Use gdb_byte. + (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint) + (arm_default_thumb_le_breakpoint) + (arm_default_thumb_be_breakpoint): Change type to gdb_byte[]. + * arm-tdep.h (struct gdbarch_tdep) : Change type to gdb_byte *. + * arm-wince-tdep.c (arm_wince_le_breakpoint) + (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[]. + * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint) + (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint) + (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[]. + * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint) + (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[]. + * cris-tdep.c (push_stack_item, cris_push_dummy_call) hooks/post-receive -- Repository for Project Archer.