Commit | Line | Data |
---|---|---|
d5551862 SS |
1 | 2010-01-06 Stan Shebs <stan@codesourcery.com> |
2 | ||
3 | Support disconnected tracing. | |
4 | * infcmd.c (detach_command): Ask whether to stop tracing. | |
5 | * cli/cli-cmds.c (quit_command): Ditto. | |
6 | * breakpoint.h (struct breakpoint): New field number_on_target. | |
7 | * breakpoint.c (create_tracepoint_from_upload): New function. | |
8 | (get_tracepoint_by_number_on_target): New function. | |
9 | * remote.c (struct remote): New field disconnected_tracing. | |
10 | (remote_disconnected_tracing_feature): New function. | |
11 | (remote_protocol_features): Add DisconnectedTracing. | |
12 | (struct uploaded_tp): New struct. | |
13 | (uploaded_tps): New global. | |
14 | (get_uploaded_tp): New function. | |
15 | (find_matching_tracepoint): New function. | |
16 | (remote_get_tracing_state): New function. | |
17 | (remote_start_remote): Call it. | |
18 | * tracepoint.c (disconnected_tracing): New global. | |
19 | (trace_start_command): Initialize number_on_target. | |
20 | (stop_tracing): New function, split out from... | |
21 | (trace_stop_command): Call stop_tracing. | |
22 | (get_trace_status): New function, split out from... | |
23 | (trace_status_command): Call get_trace_status, add info on | |
24 | disconnection behavior. | |
25 | (disconnect_or_stop_tracing): New function. | |
26 | (finish_tfind_command): Translate from number on target. | |
27 | (trace_find_tracepoint_command): Translate to number on target. | |
28 | (send_disconnected_tracing_value): New function. | |
29 | (set_disconnected_tracing): New function. | |
30 | (_initialize_tracepoint): Add disconnected-tracing variable. | |
31 | * NEWS: Mention disconnected tracing. | |
32 | ||
15d123c9 TG |
33 | 2010-01-06 Tristan Gingold <gingold@adacore.com> |
34 | ||
35 | * symtab.c (lookup_global_symbol_from_objfile): Rename objfile | |
36 | parameter to main_objfile. Iterate on all separate debug objfiles. | |
37 | * symfile.h (symbol_file_add_separate) | |
38 | (find_separate_debug_file_by_debuglink): Remove parameter names. | |
39 | * symfile.c (symbol_file_add_separate): Use add_separate_objfile. | |
40 | (reread_symbols): Use free_objfile_separate_debug. | |
41 | * objfiles.h (struct objfile): Add separate_debug_objfile_link. | |
42 | Adjust comment. | |
43 | (objfile_separate_debug_iterate, add_separate_debug_objfile) | |
44 | (free_objfile_separate_debug): New prototypes. | |
45 | * objfiles.c (objfile_separate_debug_iterate): New function. | |
46 | (add_separate_debug_objfile, free_objfile_separate_debug): New | |
47 | functions. | |
48 | (free_objfile): Use free_objfile_separate_debug. Adjust for | |
49 | multiple separate debug objfile. | |
50 | (objfile_has_symbols): Adjust comment. Iterate on all separate | |
51 | debug objfiles. | |
52 | * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate | |
53 | debug objfile. | |
54 | (lookup_minimal_symbol_text): Ditto. | |
55 | (lookup_minimal_symbol_by_pc_name): Ditto. | |
56 | (lookup_minimal_symbol_solib_trampoline): Ditto. | |
57 | (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate | |
58 | debug objfiles. | |
59 | ||
7a697b8d SS |
60 | 2010-01-05 Stan Shebs <stan@codesourcery.com> |
61 | ||
62 | Add fast tracepoints. | |
63 | * arch-utils.h (default_fast_tracepoint_valid_at): Declare. | |
64 | * arch-utils.c (default_fast_tracepoint_valid_at): New function. | |
65 | * breakpoint.h (enum bptype): Add bp_fast_tracepoint. | |
66 | * breakpoint.c (tracepoint_type): New function. | |
67 | (ALL_TRACEPOINTS): Use it. | |
68 | (should_be_inserted): Ditto. | |
69 | (bpstat_check_location): Ditto. | |
70 | (print_one_breakpoint_location): Ditto. | |
71 | (user_settable_breakpoint): Ditto. | |
72 | (set_breakpoint_location_function): Ditto. | |
73 | (disable_breakpoints_in_shlibs): Ditto. | |
74 | (delete_trace_command): Ditto. | |
75 | (print_it_typical): Add bp_fast_tracepoint case. | |
76 | (bpstat_what): Ditto. | |
77 | (print_one_breakpoint_location): Ditto. | |
78 | (allocate_bp_location): Ditto. | |
79 | (mention): Ditto. | |
80 | (breakpoint_re_set_one): Ditto. | |
81 | (disable_command): Ditto. | |
82 | (enable_command): Ditto. | |
83 | (check_fast_tracepoint_sals): New function. | |
84 | (break_command_really): Call it. | |
85 | (ftrace_command): New function. | |
86 | (_initialize_breakpoint): Add ftrace command. | |
87 | * gdbarch.sh (fast_tracepoint_valid_at): New. | |
88 | * gdbarch.h, gdbarch.c: Regenerate. | |
89 | * i386-tdep.c (i386_fast_tracepoint_valid_at): New function. | |
90 | (i386_gdbarch_init): Use it. | |
91 | * remote.c (struct remote_state): New field fast_tracepoints. | |
92 | (PACKET_FastTracepoints): New packet config type. | |
93 | (remote_fast_tracepoint_feature): New function. | |
94 | (remote_protocol_features): Add FastTracepoints. | |
95 | (remote_supports_fast_tracepoints): New function. | |
96 | (_initialize_remote): Add FastTracepoints. | |
97 | * tracepoint.c (download_tracepoint): Add fast tracepoint option. | |
98 | * NEWS: Mention fast tracepoints. | |
99 | ||
737a160e JB |
100 | 2010-01-06 Joel Brobecker <brobecker@adacore.com> |
101 | ||
102 | * gdb-gdb.py: New file. | |
103 | ||
ce6cca6d MS |
104 | 2010-01-05 Michael Snyder <msnyder@vmware.com> |
105 | ||
106 | * infrun.c (handle_inferior_event): Fix typo in comment. | |
107 | ||
0d15807d JK |
108 | 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
109 | ||
110 | * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional. | |
111 | ||
7803799a UW |
112 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
113 | ||
114 | * features/Makefile (WHICH): Add s390-linux32, s390-linux64, | |
115 | and s390x-linux64. | |
116 | (s390-linux32-expedite): Define. | |
117 | (s390-linux64-expedite): Define. | |
118 | (s390x-linux64-expedite): Define. | |
119 | * features/s390-acr.xml: New file. | |
120 | * features/s390-fpr.xml: New file. | |
121 | * features/s390-core32.xml: New file. | |
122 | * features/s390-core64.xml: New file. | |
123 | * features/s390x-core64.xml: New file. | |
124 | * features/s390-linux32.xml: New file. | |
125 | * features/s390-linux64.xml: New file. | |
126 | * features/s390x-linux64.xml: New file. | |
127 | * features/s390-linux32.c: New generated file. | |
128 | * features/s390-linux64.c: New generated file. | |
129 | * features/s390x-linux64.c: New generated file. | |
130 | ||
131 | * regformats/s390-linux32.dat: New generated file. | |
132 | * regformats/s390-linux64.dat: New generated file. | |
133 | * regformats/s390x-linux64.dat: New generated file. | |
134 | * regformats/reg-s390.dat: Remove. | |
135 | * regformats/reg-s390x.dat: Remove. | |
136 | ||
137 | * s390-nat.c: Include "auxv.h" and <elf.h>. | |
138 | (HWCAP_S390_HIGH_GPRS): Define if undefined. | |
139 | (s390_target_wordsize): New function. | |
140 | (s390_auxv_parse): Likewise. | |
141 | (s390_get_hwcap): Likewise. | |
142 | (s390_read_description): Likewise. | |
143 | (_initialize_s390_nat): Install s390_auxv_parse and | |
144 | s390_read_description. | |
145 | ||
146 | * s390-tdep.c: Include "features/s390-linux32.c", | |
147 | "features/s390-linux64.c", and "features/s390x-linux64.c". | |
148 | (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum. | |
149 | (s390_register_call_saved): New function. | |
150 | (s390_register_name): Remove. | |
151 | (s390_register_type): Remove. | |
152 | (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums. | |
153 | (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs. | |
154 | (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI. | |
155 | (s390_pseudo_register_name): New function. | |
156 | (s390_pseudo_register_type): New function. | |
157 | (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases. | |
158 | Handle full GPR pesudos and varying pseudo register numbers. | |
159 | (s390_pseudo_register_write): Likewise | |
160 | (s390x_pseudo_register_read): Remove. | |
161 | (s390x_pseudo_register_write): Likewise. | |
162 | (s390_register_group): Remove. | |
163 | (s390_pseudo_register_group): New function. | |
164 | (s390_regmap_gregset): Add GPR upper halves. | |
165 | (s390x_regmap_gregset): Likewise. | |
166 | (s390_regmap_fpregset): Likewise. | |
167 | (s390_regmap_upper): New global variable. | |
168 | (s390_upper_regset): New global variable. | |
169 | (s390_upper_regset_sections): New global variable. | |
170 | (s390_regset_from_core_section): Handle GPR upper halves. | |
171 | (s390_core_read_description): New function. | |
172 | (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered | |
173 | register information. Handle varying pseudo register numbers. | |
174 | (s390_backchain_frame_unwind_cache): Likewise. | |
175 | (s390_frame_prev_register): Unwind full GPRs to show lower halves. | |
176 | (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers. | |
177 | (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as | |
178 | PC and CC pseudos. Unwind upper halves and full GPRs as appropriate. | |
179 | Handle varying pseudo register numbers. | |
180 | (s390_unwind_pc): Handle varying pseudo register numbers. | |
181 | (s390_dwarf2_prev_register): New function. | |
182 | (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered | |
183 | register information. Handle varying pseudo register numbers. | |
184 | Install s390_dwarf2_prev_register to unwind full GPRs. | |
185 | (s390_gdbarch_init): Handle target descriptions. Assign varying | |
186 | pseudo register numbers. Install s390_adjust_frame_regnum. | |
187 | (_initialize_s390_tdep): Initialize target descriptions. | |
188 | ||
189 | * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define. | |
190 | (S390_NUM_REGS): Redefine to include upper half registers. | |
191 | (S390_PC_REGNUM, S390_CC_REGNUM): Remove. | |
192 | (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise. | |
193 | (tdesc_s390_linux32): Add declaration. | |
194 | (tdesc_s390_linux64): Likewise. | |
195 | (tdesc_s390x_linux64): Likewise. | |
196 | ||
1b1818e4 UW |
197 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
198 | ||
199 | * regset.h (struct core_regset_section): Add HUMAN_NAME. | |
200 | * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME. | |
201 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. | |
202 | (ppc_linux_vmx_regset_sections): Likewise. | |
203 | (ppc_linux_fp_regset_sections): Likewise. | |
204 | ||
205 | * corelow.c (get_core_register_section): Constify arguments. | |
206 | (get_core_registers): Use gdbarch_core_regset_sections instead | |
207 | of hard-coded platform-specific register section names. | |
208 | ||
dcbf108f UW |
209 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
210 | ||
211 | * dwarf2loc.c (read_pieced_value): If a piece occupies part of | |
b3f41522 | 212 | a register, assume the least-significant part is used. |
dcbf108f UW |
213 | (write_pieced_value): Likewise. |
214 | ||
704e9165 UW |
215 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
216 | ||
217 | * printcmd.c: Include "arch-utils.h". | |
218 | (do_one_display): Re-parse expression if current architecture changed. | |
219 | ||
c54eabfa JK |
220 | 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
221 | Joel Brobecker <brobecker@adacore.com> | |
222 | ||
223 | * gdbtypes.c (check_typedef): New comment on type length. | |
224 | * value.c (allocate_value_lazy): Remove the unused atype variable. New | |
225 | comment on type length. | |
226 | (value_primitive_field): Keep the original TYPE value, new comment. | |
227 | ||
50cb2941 JK |
228 | 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
229 | ||
230 | * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as | |
231 | p_start. Change != comparisons to > and < comparisons. | |
232 | ||
be66db07 JK |
233 | 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
234 | ||
235 | * cli/cli-script.c (process_next_line): Check P2 overrun. | |
236 | ||
abd775ce JB |
237 | 2009-01-01 Joel Brobecker <brobecker@adacore.com> |
238 | ||
239 | Update the copyright hearder to add year 2010 for most GDB files. | |
240 | ||
6479260d JB |
241 | 2009-01-01 Joel Brobecker <brobecker@adacore.com> |
242 | ||
243 | Fix build failure in inf-ptrace.c. | |
244 | * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo. | |
245 | ||
4a70f654 JB |
246 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
247 | ||
248 | * top.c (print_gdb_version): Update copyright year. | |
249 | ||
b9ee2233 JB |
250 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
251 | ||
252 | Fix break *FUN'address thread NUM. | |
253 | * ada-lex.l (task): Expand rule to also match the thread keyword. | |
254 | ||
70575d34 JB |
255 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
256 | ||
257 | Fix break *FUN'address task NUM. | |
258 | * ada-lex.l (task): New rule. | |
259 | * ada-lang.c (valid_task_id): Make sure the Ada task list has | |
260 | been built before using it. | |
261 | ||
e1e4d4a4 | 262 | For older changes see ChangeLog-2009. |
c906108c SS |
263 | \f |
264 | Local Variables: | |
265 | mode: change-log | |
266 | left-margin: 8 | |
267 | fill-column: 74 | |
268 | version-control: never | |
57da7796 | 269 | coding: utf-8 |
c906108c | 270 | End: |