Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(560)

Side by Side Diff: gdb/gdbcore.h

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/gdbarch.sh ('k') | gdb/gdbinit.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Machine independent variables that describe the core file under GDB. 1 /* Machine independent variables that describe the core file under GDB.
2 2
3 Copyright (C) 1986-1987, 1989-2001, 2004, 2007-2012 Free Software 3 Copyright (C) 1986-1987, 1989-2001, 2004, 2007-2012 Free Software
4 Foundation, Inc. 4 Foundation, Inc.
5 5
6 This file is part of GDB. 6 This file is part of GDB.
7 7
8 This program is free software; you can redistribute it and/or modify 8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by 9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or 10 the Free Software Foundation; either version 3 of the License, or
(...skipping 27 matching lines...) Expand all
38 /* Nonzero if there is a core file. */ 38 /* Nonzero if there is a core file. */
39 39
40 extern int have_core_file_p (void); 40 extern int have_core_file_p (void);
41 41
42 /* Report a memory error with error(). */ 42 /* Report a memory error with error(). */
43 43
44 extern void memory_error (int status, CORE_ADDR memaddr); 44 extern void memory_error (int status, CORE_ADDR memaddr);
45 45
46 /* Like target_read_memory, but report an error if can't read. */ 46 /* Like target_read_memory, but report an error if can't read. */
47 47
48 extern void read_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len); 48 extern void read_memory (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len);
49 49
50 /* Like target_read_stack, but report an error if can't read. */ 50 /* Like target_read_stack, but report an error if can't read. */
51 51
52 extern void read_stack (CORE_ADDR memaddr, gdb_byte *myaddr, int len); 52 extern void read_stack (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len);
53 53
54 /* Read an integer from debugged memory, given address and number of 54 /* Read an integer from debugged memory, given address and number of
55 bytes. */ 55 bytes. */
56 56
57 extern LONGEST read_memory_integer (CORE_ADDR memaddr, 57 extern LONGEST read_memory_integer (CORE_ADDR memaddr,
58 int len, enum bfd_endian byte_order); 58 int len, enum bfd_endian byte_order);
59 extern int safe_read_memory_integer (CORE_ADDR memaddr, int len, 59 extern int safe_read_memory_integer (CORE_ADDR memaddr, int len,
60 enum bfd_endian byte_order, 60 enum bfd_endian byte_order,
61 LONGEST *return_value); 61 LONGEST *return_value);
62 62
(...skipping 13 matching lines...) Expand all
76 /* Read the pointer of type TYPE at ADDR, and return the address it 76 /* Read the pointer of type TYPE at ADDR, and return the address it
77 represents. */ 77 represents. */
78 78
79 CORE_ADDR read_memory_typed_address (CORE_ADDR addr, struct type *type); 79 CORE_ADDR read_memory_typed_address (CORE_ADDR addr, struct type *type);
80 80
81 /* This takes a char *, not void *. This is probably right, because 81 /* This takes a char *, not void *. This is probably right, because
82 passing in an int * or whatever is wrong with respect to 82 passing in an int * or whatever is wrong with respect to
83 byteswapping, alignment, different sizes for host vs. target types, 83 byteswapping, alignment, different sizes for host vs. target types,
84 etc. */ 84 etc. */
85 85
86 extern void write_memory (CORE_ADDR memaddr, const gdb_byte *myaddr, int len); 86 extern void write_memory (CORE_ADDR memaddr, const gdb_byte *myaddr,
87 » » » ssize_t len);
88
89 /* Same as write_memory, but notify 'memory_changed' observers. */
90
91 extern void write_memory_with_notification (CORE_ADDR memaddr,
92 » » » » » const bfd_byte *myaddr,
93 » » » » » ssize_t len);
87 94
88 /* Store VALUE at ADDR in the inferior as a LEN-byte unsigned integer. */ 95 /* Store VALUE at ADDR in the inferior as a LEN-byte unsigned integer. */
89 extern void write_memory_unsigned_integer (CORE_ADDR addr, int len, 96 extern void write_memory_unsigned_integer (CORE_ADDR addr, int len,
90 enum bfd_endian byte_order, 97 enum bfd_endian byte_order,
91 ULONGEST value); 98 ULONGEST value);
92 99
93 /* Store VALUE at ADDR in the inferior as a LEN-byte unsigned integer. */ 100 /* Store VALUE at ADDR in the inferior as a LEN-byte unsigned integer. */
94 extern void write_memory_signed_integer (CORE_ADDR addr, int len, 101 extern void write_memory_signed_integer (CORE_ADDR addr, int len,
95 enum bfd_endian byte_order, 102 enum bfd_endian byte_order,
96 LONGEST value); 103 LONGEST value);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 203
197 /* NOTE: cagney/2004-04-05: Replaced by "regset.h" and 204 /* NOTE: cagney/2004-04-05: Replaced by "regset.h" and
198 regset_from_core_section(). */ 205 regset_from_core_section(). */
199 extern void deprecated_add_core_fns (struct core_fns *cf); 206 extern void deprecated_add_core_fns (struct core_fns *cf);
200 extern int default_core_sniffer (struct core_fns *cf, bfd * abfd); 207 extern int default_core_sniffer (struct core_fns *cf, bfd * abfd);
201 extern int default_check_format (bfd * abfd); 208 extern int default_check_format (bfd * abfd);
202 209
203 struct target_section *deprecated_core_resize_section_table (int num_added); 210 struct target_section *deprecated_core_resize_section_table (int num_added);
204 211
205 #endif /* !defined (GDBCORE_H) */ 212 #endif /* !defined (GDBCORE_H) */
OLDNEW
« no previous file with comments | « gdb/gdbarch.sh ('k') | gdb/gdbinit.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698