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