Commit Graph

34016 Commits

Author SHA1 Message Date
Michael Snyder 80f8a6eba5 2002-04-05 Michael Snyder <msnyder@redhat.com>
* breakpoint.c (clear_command): Rewrite middle section to
	combine two loops with identical control conditions.
	Add a cleanup to eliminate a memory leak.
2002-04-09 22:33:25 +00:00
Andrew Cagney 96cb11df6d * frame.c (read_relative_register_raw_bytes_for_frame): Do not
override FP_REGNUM with frame->fp.  Update copyright.
* parse.c (num_std_regs, std_regs): Delete.
(target_map_name_to_register): Do not search std_regs.  Update
function description.
* parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
declarations.  Update copyright.
Fix PR gdb/251.
2002-04-09 22:14:39 +00:00
Daniel Jacobowitz c3a3ccc760 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/Makefile.in: Add stamp-h target.
        * gdbserver/configure.in: Create stamp-h.
        * gdbserver/configure: Regenerated.
2002-04-09 21:25:29 +00:00
Daniel Jacobowitz ce3a066d93 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/inferiors.c: New file.
        * gdbserver/target.c: New file.
        * gdbserver/target.h: New file.
        * gdbserver/Makefile.in:  Add target.o and inferiors.o.  Update
        dependencies.
        * gdbserver/linux-low.c (inferior_pid): New static variable,
        moved from server.c.
        (linux_create_inferior): Renamed from create_inferior.
        Call add_inferior.  Return 0 on success instead of a PID.
        (linux_attach): Renamed from myattach.
        (linux_kill): Renamed from kill_inferior.  Call clear_inferiors ().
        (linux_thread_alive): Renamed from mythread_alive.
        (linux_wait): Renamed from mywait.  Call clear_inferiors () if the
        child dies.
        (linux_resume): Renamed from myresume.  Add missing ``return 0''.
        (regsets_store_inferior_registers): Correct error message.
        Add missing ``return 0''.
        (linux_fetch_registers): Renamed from fetch_inferior_registers.
        (linux_store_registers): Renamed from store_inferior_registers.
        (linux_read_memory): Renamed from read_inferior_memory.
        (linux_write_memory): Renamed from write_inferior_memory.
        (linux_target_ops): New structure.
        (initialize_low): Call set_target_ops ().
        * gdbserver/remote-utils.c (unhexify): New function.
        (hexify): New function.
        (input_interrupt): Send signals to ``signal_pid''.
        * gdbserver/server.c (inferior_pid): Remove.
        (start_inferior): Update create_inferior call.
        (attach_inferior): Call add_inferior.
        (handle_query): New function.
        (main): Call handle_query for `q' packets.
        * gdbserver/server.h: Include "target.h".  Remove obsolete prototypes.
        Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
2002-04-09 21:17:45 +00:00
Daniel Jacobowitz 0729219dab 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/Makefile.in: Add WARN_CFLAGS.  Update configury
        dependencies.
        * gdbserver/configure.in: Check for <string.h>
        * gdbserver/configure: Regenerate.
        * gdbserver/config.in: Regenerate.
        * gdbserver/gdbreplay.c: Include needed system headers.
        (remote_open): Remove strchr prototype.
        * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
        * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
        (supply_register_by_name): Likewise.
        (collect_register): Change buf argument to void *.
        (collect_register_by_name): Likewise.
        * gdbserver/regcache.h: Add missing prototypes.
        * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
        * gdbserver/server.c (handle_query): New function.
        (attached): New static variable, moved out of main.
        (main): Quiet longjmp clobber warnings.
        * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT.  Update prototypes.
        * gdbserver/utils.c (error): Remove NORETURN.
        (fatal): Likewise.
2002-04-09 21:11:35 +00:00
Daniel Jacobowitz 97658e92df 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
* symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
        after the last symbol in a block.
2002-04-09 20:51:33 +00:00
Daniel Jacobowitz 2d1676a068 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
* gdb.base/attach.exp: Correct target board test.
2002-04-09 20:48:45 +00:00
Nick Clifton b62a12ca88 Add WS_CAPTION dialog style if CAPTION is specified.
Add testcase.
2002-04-09 17:23:19 +00:00
Nick Clifton 420380ba3e Don't print empty dialog caption.
Add testcase.
2002-04-09 17:15:00 +00:00
Nick Clifton b24eb5ac22 Fix overlooked sublang shift bug.
Add testcase.
2002-04-09 17:06:14 +00:00
Nick Clifton f7d63484de Set default LANGUAGE to english/us. 2002-04-09 16:55:48 +00:00
Joern Rennecke 5bcd00a60a * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
symbol_used_in_reloc_p is true.
2002-04-09 16:48:03 +00:00
Nick Clifton 05793179d7 Compute checksum for PE images. 2002-04-09 16:43:26 +00:00
Nick Clifton 7e8d45b779 Use signature to identify DIALOGEX.
Add testcase.
2002-04-09 16:37:21 +00:00
Nick Clifton 91eafb409b Don't add default dialog style when explicit style specified.
Print style even if it is 0.
Add testcase.
2002-04-09 15:59:13 +00:00
Nick Clifton 4d0b1625bf "\a" escape (used for right justified key definitions in menus) is encodes as
binary 8.
2002-04-09 15:44:36 +00:00
Nick Clifton 4c30641a0f Fix parsing hex constants in strings. Add test for the fix. 2002-04-09 15:36:43 +00:00
Joern Rennecke 2ed5f585e4 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
endian hosts.
2002-04-09 15:26:59 +00:00
Nick Clifton c80b2f7704 Fix typo in BEDIT warning. 2002-04-09 15:23:38 +00:00
Nick Clifton df3baf66cb Apply patch from Bernd Herd to fix quoted class definitions inside dialogs. 2002-04-09 15:21:01 +00:00
Joern Rennecke 9c5382a023 Tue Apr 9 15:13:10 2002 J"orn Rennecke <joern.rennecke@superh.com>
* MAINTAINERS: Update my email address.
2002-04-09 15:15:26 +00:00
Pierre Muller 6044e3ebce 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
* p-exp.y (yylex): Handle also the fact that is_a_field_of_this
	is non zero as a found symbol.
2002-04-09 10:52:41 +00:00
Andrew Cagney 0406ec40ea * findvar.c: Include "builtin-regs.h".
(value_of_register): Call value_of_builtin_reg when applicable.
* parse.c: Include "builtin-regs.h" and "gdb_assert.h".
(target_map_name_to_register): Call
builtin_reg_map_name_to_regnum.
* Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
(COMMON_OBS): Add builtin-regs.o and std-regs.o.
(builtin_regs_h): Define.
(builtin-regs.o): New target.
(findvar.o): Add $(builtin_regs_h).
* builtin-regs.c, builtin-regs.h: New files.
* std-regs.c: New file.
Partial fix for PR gdb/251.
2002-04-09 03:06:14 +00:00
Kevin Buettner 56a6dfb9de * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
it's no longer required.
2002-04-09 02:26:10 +00:00
Andrew Cagney 3a808432dd * Makefile.in (gdbtk-wrapper.o): Add missing dependencies. 2002-04-09 01:52:57 +00:00
Kevin Buettner 7c40d5414c * rs6000-tdep.c (rs6000_software_single_step): Use
rs6000_breakpoint_from_pc() to fetch breakpoint instruction
	and size.  Use target_insert_breakpoint() and
	target_remove_breakpoint() to insert and remove breakpoints
	instead of explicit memory reads and writes.
2002-04-09 01:41:46 +00:00
Kevin Buettner cc9836a8aa * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
* rs6000-tdep.c (rs6000_push_arguments): Eliminate
	ELF_OBJECT_FORMAT ifdef.
2002-04-09 00:53:28 +00:00
Kevin Buettner 7495d1dc3f From Jimi X <jimix@watson.ibm.com>:
* rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
2002-04-09 00:10:09 +00:00
gdbadmin e8969f3538 *** empty log message *** 2002-04-09 00:00:33 +00:00
Alan Modra 3a36d7ae63 daily update 2002-04-09 00:00:04 +00:00
Kevin Buettner 4288e83618 From Jimi X <jimix@watson.ibm.com>:
* rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
	definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
2002-04-08 22:56:46 +00:00
Michael Chastain 3a63e3f9b9 2002-04-08 Michael Chastain <mec@shout.net>
* gdb.c++/method.exp: Require "const ... A * ..." for "ptype this"
	in a const method.  Add some xfail and fail cases for configurations
	that do not emit the "const ...".
2002-04-08 22:43:15 +00:00
Mark Kettenis a4e4e50196 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
s/asprintf/xasprintf/.
(fbsd_make_corefile_notes): s/strdup/xstrdup/.
2002-04-08 21:53:00 +00:00
Alan Modra 46fe4e66d4 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
(elf32_hppa_final_link): Split out sorting logic to..
	* elf-hppa.h (elf_hppa_sort_unwind): ..here.
	(elf_hppa_final_link): Call elf_hppa_sort_unwind.
2002-04-08 11:01:43 +00:00
Michael Chastain f18dabd22e 2002-04-07 Michael Chastain <mec@shout.net>
* gdb.c++/method.exp: Use gdb_test instead of send_gdb/gdb_expect.
	Accept "A * const" and "const A * const" as type of "this".
	Fix spelling of getFunky throughout.  Make messages uniform.
2002-04-08 07:25:37 +00:00
Alan Modra d08a14c385 * ldlang.c (lang_size_sections_1): Don't complain about
SEC_NEVER_LOAD sections having no memory region specified.
2002-04-08 01:01:43 +00:00
Elena Zannoni 27cdacdbd0 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
* mi-cmd-disas.c: Run through indent.
2002-04-08 00:43:22 +00:00
Elena Zannoni 8f0eea0e54 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
* mi-cmd-disas.c (dump_insns): New function.
        (do_mixed_source_and_assembly): New function.
        (do_assembly_only): New function.
        (do_disassembly): New function.
        (mi_cmd_disassemble): Rewrite using smaller, more modular
        functions.
2002-04-08 00:38:10 +00:00
Alan Modra 024531e2e5 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix. 2002-04-08 00:24:02 +00:00
Elena Zannoni 0fcddd82b6 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
Work around for PR gdb/285:
	* gdb.asm/asm-source.exp: Bail out if multilibs are detected.
2002-04-08 00:01:06 +00:00
gdbadmin bccbc969e1 *** empty log message *** 2002-04-08 00:00:32 +00:00
Alan Modra 04c61bf388 daily update 2002-04-08 00:00:06 +00:00
Elena Zannoni 16a8534aff 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
* gdb.asm/asm-source.exp: Build symbolic link to arch specific
        instructions file at run time instead of configure time.
        Sometimes we run the test in a directory that is not the one we
        configured in.
        * gdb.asm/configure.in: Delete creation of symlink.
        * gdb.asm/configure: Regenerate.
2002-04-07 23:57:23 +00:00
Elena Zannoni 7aa83cacfa 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
* remote-e7000.c (write_small, e7000_read_inferior_memory,
	e7000_read_inferior_memory_large, e7000_insert_breakpoint,
	e7000_remove_breakpoint): Use paddr_nz() to print addresses.
2002-04-07 23:32:40 +00:00
Andrew Cagney 006defbaa8 I believe Jeff Law denies responsability for this one:
* config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
* config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
* config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
Work-around for PR gdb/366.
2002-04-07 22:34:31 +00:00
Elena Zannoni cf1fcca124 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
* sh-tdep.c (sh_fp_frame_init_saved_regs,
	sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
	information.
2002-04-07 22:13:20 +00:00
Andrew Cagney 3b5b409c5c * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
pattern.
* configure: Re-generate.
2002-04-07 21:49:09 +00:00
Andrew Cagney ac7b6ceb87 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
is greater or equal to 4.3.3.
* configure: Regenerate.
Fix PR gdb/344.
2002-04-07 21:42:32 +00:00
Andrew Cagney 3f289e6fd4 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
maintainer.
2002-04-07 21:22:19 +00:00
Andrew Cagney bbf6e9e376 * Makefile.in (do-tar-bz2): Delete rule. Replace with ...
(do-tar, do-bz2): New rules.
(taz): Update.  Replace do-tar-bz2 with do-tar and do-bz2.
(gdb-tar): New rule.
(gdb-taz): Rewrite.  Use gdb-tar and do-bz2.
(insight_dejagnu.tar): New rule.
(insight.tar): New rule.
(gdb+dejagnu.tar): New rule.
(gdb.tar): New rule.
2002-04-07 20:53:57 +00:00