]>
Commit | Line | Data |
---|---|---|
18ad82c1 PA |
1 | 2015-02-11 Pedro Alves <palves@redhat.com> |
2 | ||
3 | * xcoffread.c (within_function): Delete. | |
4 | ||
e36122e9 TT |
5 | 2015-02-11 Tom Tromey <tromey@redhat.com> |
6 | Pedro Alves <palves@redhat.com> | |
7 | ||
8 | * breakpoint.c (base_breakpoint_ops): Delete. | |
9 | * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern. | |
10 | * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern. | |
11 | * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern. | |
12 | * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern. | |
13 | * python/py-arch.c (arch_object_type): Make extern. | |
14 | * python/py-block.c (block_syms_iterator_object_type): Make extern. | |
15 | * python/py-bpevent.c (breakpoint_event_object_type): Make extern. | |
16 | * python/py-cmd.c (cmdpy_object_type): Make extern. | |
17 | * python/py-continueevent.c (continue_event_object_type) | |
18 | * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual' | |
19 | parameter. Update all callers. | |
20 | * python/py-evtregistry.c (eventregistry_object_type): Make extern. | |
21 | * python/py-exitedevent.c (exited_event_object_type): Make extern. | |
22 | * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern. | |
23 | * python/py-function.c (fnpy_object_type): Make extern. | |
24 | * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern. | |
25 | * python/py-infevents.c (call_pre_event_object_type) | |
26 | (inferior_call_post_event_object_type). | |
27 | (memory_changed_event_object_type): Make extern. | |
28 | * python/py-infthread.c (thread_object_type): Make extern. | |
29 | * python/py-lazy-string.c (lazy_string_object_type): Make extern. | |
30 | * python/py-linetable.c (linetable_entry_object_type) | |
31 | (linetable_object_type, ltpy_iterator_object_type): Make extern. | |
32 | * python/py-newobjfileevent.c (new_objfile_event_object_type) | |
33 | (clear_objfiles_event_object_type): Make extern. | |
34 | * python/py-objfile.c (objfile_object_type): Make extern. | |
35 | * python/py-param.c (parmpy_object_type): Make extern. | |
36 | * python/py-progspace.c (pspace_object_type): Make extern. | |
37 | * python/py-signalevent.c (signal_event_object_type): Make extern. | |
38 | * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern. | |
39 | * python/py-type.c (type_object_type, field_object_type) | |
40 | (type_iterator_object_type): Make extern. | |
41 | * python/python.c (python_extension_script_ops) | |
42 | (python_extension_ops): Make extern. | |
43 | * stap-probe.c (stap_probe_ops): Make extern. | |
44 | ||
0703599a PA |
45 | 2015-02-11 Pedro Alves <pedro@codesourcery.com> |
46 | ||
47 | * infrun.c (adjust_pc_after_break): Don't adjust the PC just | |
48 | because the event thread is not the current thread. | |
49 | ||
eaaf76ab DE |
50 | 2015-02-11 Doug Evans <xdje42@gmail.com> |
51 | ||
52 | * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't | |
53 | been initialized yet, return NULL. | |
54 | ||
e7d52ed3 DE |
55 | 2015-02-11 Doug Evans <dje@google.com> |
56 | ||
57 | * symfile.h (new_symfile_objfile): Delete. | |
58 | * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile. | |
59 | All callers updated. | |
60 | ||
fc6b1256 PP |
61 | 2015-02-11 Patrick Palka <patrick@parcs.ath.cx> |
62 | ||
63 | * tui/tui-io.c (tui_handle_resize_during_io): Call | |
64 | tui_update_gdb_sizes() after resizing the screen. | |
65 | * tui/tui.c (tui_enable): Resize the terminal before | |
66 | calling tui_update_gdb_sizes(). | |
67 | ||
d9080678 PP |
68 | 2015-02-11 Patrick Palka <patrick@parcs.ath.cx> |
69 | ||
70 | * tui/tui-io.c (tui_getc): Move cursor to the end of the command | |
71 | line before printing a newline. | |
72 | ||
9f615e3a MW |
73 | 2015-02-11 Mark Wielaard <mjw@redhat.com> |
74 | ||
75 | * utils.c (producer_is_gcc): Return true or false. | |
76 | ||
d9080678 | 77 | 2015-02-10 Mark Wielaard <mjw@redhat.com> |
b1ffba5a MW |
78 | |
79 | * utils.h (producer_is_gcc): Change return type to bool. Add major | |
80 | argument. | |
81 | * utils.c (producer_is_gcc): Likewise. | |
82 | (producer_is_gcc_ge_4): Adjust producer_is_gcc call. | |
83 | * dwarf2read.c (check_producer): Likewise. | |
84 | ||
b052c4fb PA |
85 | 2015-02-10 Pedro Alves <palves@redhat.com> |
86 | ||
87 | * infrun.c (displaced_step_fixup): Switch to the event thread | |
88 | before calling gdbarch_displaced_step_fixup. | |
89 | ||
3ac240d4 AT |
90 | 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com> |
91 | ||
92 | * MAINTAINERS (Write After Approval): Add Antoine Tremblay. | |
93 | ||
c1cc6152 SM |
94 | 2015-02-10 Simon Marchi <simon.marchi@ericsson.com> |
95 | ||
96 | * ada-varobj.c (ada_name_of_child): Constify parent. | |
97 | (ada_path_expr_of_child): Same. | |
98 | (ada_value_of_child): Same. | |
99 | (ada_type_of_child): Same. | |
100 | * c-varobj.c (c_is_path_expr_parent): Same. | |
101 | (c_describe_child): Same. | |
102 | (c_name_of_child): Same. | |
103 | (c_value_of_child): Same. | |
104 | (c_type_of_child): Same. | |
105 | (cplus_number_of_children): Same. | |
106 | (cplus_describe_child): Constify var. | |
107 | (cplus_name_of_child): Constify parent. | |
108 | (cplus_value_of_child): Same. | |
109 | (cplus_type_of_child): Same. | |
110 | * jv-varobj.c (java_name_of_child): Same. | |
111 | (java_value_of_child): Same. | |
112 | (java_type_of_child): Same. | |
113 | * varobj.c (value_of_child): Same. | |
114 | (varobj_default_is_path_expr_parent): Constify var, parent and return | |
115 | value. | |
116 | (varobj_get_path_expr): Constify var, modify path_expr through | |
117 | mutable_var. | |
118 | (install_new_value): Constify parent. | |
119 | (value_of_child): Constify parent. | |
120 | * varobj.h (struct varobj): Constify parent. | |
121 | (struct lang_varobj_ops): Constify name_of_child, value_of_child and | |
122 | type_of_child. | |
123 | (varobj_get_path_expr): Constify var. | |
124 | (varobj_get_path_expr_parent): Constify var and return value. | |
125 | ||
c1ee9414 LM |
126 | 2015-02-10 Luis Machado <lgustavo@codesourcery.com> |
127 | ||
128 | * arm-tdep.c (arm_prologue_unwind_stop_reason): New function. | |
129 | (arm_prologue_this_id): Move PC and SP limit checks to | |
130 | arm_prologue_unwind_stop_reason. | |
131 | (arm_prologue_unwind) <stop_reason> : Set to | |
132 | arm_prologue_unwind_stop_reason. | |
133 | ||
f7de9aab MW |
134 | 2015-02-09 Mark Wielaard <mjw@redhat.com> |
135 | ||
136 | * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and | |
137 | DW_LANG_Fortran08 as language_fortran. | |
138 | ||
0b24eb2d SDJ |
139 | 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com> |
140 | ||
141 | PR remote/17946 | |
142 | * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison | |
143 | of pointer against char. | |
144 | ||
a2c2acaf MW |
145 | 2015-02-09 Mark Wielaard <mjw@redhat.com> |
146 | ||
147 | * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'. | |
148 | (c_type_print_modifier): Likewise. | |
149 | * dwarf2read.c (read_tag_atomic_type): New function. | |
150 | (read_type_die_1): Handle DW_TAG_atomic_type. | |
151 | * gdbtypes.c (make_atomic_type): New function. | |
152 | (recursive_dump_type): Handle TYPE_ATOMIC. | |
153 | * gdbtypes.h (enum type_flag_values): Renumber. | |
154 | (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC. | |
155 | (TYPE_ATOMIC): New macro. | |
156 | (make_atomic_type): Declare. | |
157 | ||
31fd9caa MM |
158 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
159 | ||
160 | * btrace.c (ftrace_find_call): Skip gaps. | |
161 | (ftrace_new_function): Initialize level. | |
162 | (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return) | |
163 | (ftrace_new_switch): Update | |
164 | level computation. | |
165 | (ftrace_new_gap): New. | |
166 | (ftrace_update_function): Create new function after gap. | |
167 | (btrace_compute_ftrace_bts): Create gap on error. | |
168 | (btrace_stitch_bts): Update parameters. Clear trace if it | |
169 | becomes empty. | |
170 | (btrace_stitch_trace): Update parameters. Update callers. | |
171 | (btrace_clear): Reset the number of gaps. | |
172 | (btrace_insn_get): Return NULL if the iterator points to a gap. | |
173 | (btrace_insn_number): Return zero if the iterator points to a gap. | |
174 | (btrace_insn_end): Allow gaps at the end. | |
175 | (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps. | |
176 | (btrace_find_insn_by_number): Assert that the found iterator does | |
177 | not point to a gap. | |
178 | (btrace_call_next, btrace_call_prev): Assert that the last function | |
179 | is not a gap. | |
180 | * btrace.h (btrace_bts_error): New. | |
181 | (btrace_function): Update comment. | |
182 | (btrace_function) <insn, insn_offset, number>: Update comment. | |
183 | (btrace_function) <errcode>: New. | |
184 | (btrace_thread_info) <ngaps>: New. | |
185 | (btrace_thread_info) <replay>: Update comment. | |
186 | (btrace_insn_get): Update comment. | |
187 | * record-btrace.c (btrace_ui_out_decode_error): New. | |
188 | (record_btrace_info): Print number of gaps. | |
189 | (btrace_insn_history, btrace_call_history): Call | |
190 | btrace_ui_out_decode_error for gaps. | |
191 | (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps. | |
192 | ||
afb778a2 MM |
193 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
194 | ||
195 | * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New. | |
196 | * nat/linux-btrace.c: (btrace_this_cpu): New. | |
197 | (cpu_supports_bts): Call btrace_this_cpu. | |
198 | (intel_supports_bts): Add cpu parameter. | |
199 | ||
7d5c24b3 MM |
200 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
201 | ||
202 | * btrace.h (btrace_insn_class): New. | |
203 | (btrace_insn) <size, iclass>: New. | |
204 | * btrace.c (ftrace_find_call): Update parameters. Update users. | |
205 | Use instruction classification. | |
206 | (ftrace_new_return): Update parameters. Update users. | |
207 | (ftrace_update_function): Update parameters. Update users. Use | |
208 | instruction classification. | |
209 | (ftrace_update_insns): Update parameters. Update users. | |
210 | (ftrace_classify_insn): New. | |
211 | (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add | |
212 | TRY_CATCH around call to gdb_insn_length. | |
213 | ||
76235df1 MM |
214 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
215 | ||
216 | * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace): | |
217 | Update parameters. Update users. | |
218 | ||
d33501a5 MM |
219 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
220 | ||
221 | * btrace.c (parse_xml_btrace_conf_bts): Add size. | |
222 | (btrace_conf_bts_attributes): New. | |
223 | (btrace_conf_children): Add attributes. | |
224 | * common/btrace-common.h (btrace_config_bts): New. | |
225 | (btrace_config)<bts>: New. | |
226 | (btrace_config): Update comment. | |
227 | * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts): | |
228 | Use config. | |
229 | * features/btrace-conf.dtd: Increment version. Add size | |
230 | attribute to bts element. | |
231 | * record-btrace.c (set_record_btrace_bts_cmdlist, | |
232 | show_record_btrace_bts_cmdlist): New. | |
233 | (record_btrace_adjust_size, record_btrace_print_bts_conf, | |
234 | record_btrace_print_conf, cmd_set_record_btrace_bts, | |
235 | cmd_show_record_btrace_bts): New. | |
236 | (record_btrace_info): Call record_btrace_print_conf. | |
237 | (_initialize_record_btrace): Add commands. | |
238 | * remote.c: Add PACKET_Qbtrace_conf_bts_size enum. | |
239 | (remote_protocol_features): Add Qbtrace-conf:bts:size packet. | |
240 | (btrace_sync_conf): Synchronize bts size. | |
241 | (_initialize_remote): Add Qbtrace-conf:bts:size packet. | |
242 | * NEWS: Announce new commands and new packets. | |
243 | ||
f4abbc16 MM |
244 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
245 | ||
246 | * Makefile.in (XMLFILES): Add btrace-conf.dtd. | |
247 | * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters. | |
248 | (x86_linux_btrace_conf): New. | |
249 | (x86_linux_create_target): Initialize to_btrace_conf. | |
250 | * nat/linux-btrace.c (linux_enable_btrace): Update parameters. | |
251 | Check format. Split into this and ... | |
252 | (linux_enable_bts): ... this. | |
253 | (linux_btrace_conf): New. | |
254 | (perf_event_skip_record): Renamed into ... | |
255 | (perf_event_skip_bts_record): ... this. Updated users. | |
256 | (linux_disable_btrace): Split into this and ... | |
257 | (linux_disable_bts): ... this. | |
258 | (linux_read_btrace): Check format. | |
259 | * nat/linux-btrace.h (linux_enable_btrace): Update parameters. | |
260 | (linux_btrace_conf): New. | |
261 | (btrace_target_info)<ptid>: Moved. | |
262 | (btrace_target_info)<conf>: New. | |
263 | (btrace_target_info): Split into this and ... | |
264 | (btrace_tinfo_bts): ... this. Updated users. | |
265 | * btrace.c (btrace_enable): Update parameters. | |
266 | (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf) | |
267 | (btrace_conf_children, btrace_conf_attributes) | |
268 | (btrace_conf_elements): New. | |
269 | * btrace.h (btrace_enable): Update parameters. | |
270 | (btrace_conf, parse_xml_btrace_conf): New. | |
271 | * common/btrace-common.h (btrace_config): New. | |
272 | * feature/btrace-conf.dtd: New. | |
273 | * record-btrace.c (record_btrace_conf): New. | |
274 | (record_btrace_cmdlist): New. | |
275 | (record_btrace_enable_warn, record_btrace_open): Pass | |
276 | &record_btrace_conf. | |
277 | (record_btrace_info): Print recording format. | |
278 | (cmd_record_btrace_bts_start): New. | |
279 | (cmd_record_btrace_start): Call cmd_record_btrace_bts_start. | |
280 | (_initialize_record_btrace): Add "record btrace bts" subcommand. | |
281 | Add "record bts" alias command. | |
282 | * remote.c (remote_state)<btrace_config>: New. | |
283 | (remote_btrace_reset, PACKET_qXfer_btrace_conf): New. | |
284 | (remote_protocol_features): Add qXfer:btrace-conf:read. | |
285 | (remote_open_1): Call remote_btrace_reset. | |
286 | (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF. | |
287 | (btrace_target_info)<conf>: New. | |
288 | (btrace_sync_conf, btrace_read_config): New. | |
289 | (remote_enable_btrace): Update parameters. Call btrace_sync_conf and | |
290 | btrace_read_conf. | |
291 | (remote_btrace_conf): New. | |
292 | (init_remote_ops): Initialize to_btrace_conf. | |
293 | (_initialize_remote): Add qXfer:btrace-conf packet. | |
294 | * target.c (target_enable_btrace): Update parameters. | |
295 | (target_btrace_conf): New. | |
296 | * target.h (target_enable_btrace): Update parameters. | |
297 | (target_btrace_conf): New. | |
298 | (target_object)<TARGET_OBJECT_BTRACE_CONF>: New. | |
299 | (target_ops)<to_enable_btrace>: Update parameters and comment. | |
300 | (target_ops)<to_btrace_conf>: New. | |
301 | * target-delegates: Regenerate. | |
302 | * target-debug.h (target_debug_print_const_struct_btrace_config_p) | |
303 | (target_debug_print_const_struct_btrace_target_info_p): New. | |
304 | * NEWS: Announce new command and new packet. | |
305 | ||
aadf7753 MM |
306 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
307 | ||
308 | * nat/linux-btrace.h (perf_event_buffer): New. | |
309 | (btrace_target_info) <buffer, size, data_head>: Replace with ... | |
310 | <bts>: ... this. | |
311 | * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size) | |
312 | (perf_event_buffer_size, perf_event_buffer_begin) | |
313 | (perf_event_buffer_end, linux_btrace_has_changed): Removed. | |
314 | Updated users. | |
315 | (perf_event_new_data): New. | |
316 | ||
043c3577 MM |
317 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
318 | ||
319 | * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS. | |
320 | * record-btrace.c (record_btrace_open): Remove call to | |
321 | target_supports_btrace. | |
322 | * remote.c (remote_supports_btrace): Update parameters. | |
323 | * target.c (target_supports_btrace): Update parameters. | |
324 | * target.h (to_supports_btrace, target_supports_btrace): Update | |
325 | parameters. | |
326 | * target-delegates.c: Regenerate. | |
327 | * target-debug.h (target_debug_print_enum_btrace_format): New. | |
328 | * nat/linux-btrace.c | |
329 | (kernel_supports_btrace): Rename into ... | |
330 | (kernel_supports_bts): ... this. Update users. Update warning text. | |
331 | (intel_supports_btrace): Rename into ... | |
332 | (intel_supports_bts): ... this. Update users. | |
333 | (cpu_supports_btrace): Rename into ... | |
334 | (cpu_supports_bts): ... this. Update users. | |
335 | (linux_supports_btrace): Update parameters. Split into this and ... | |
336 | (linux_supports_bts): ... this. | |
337 | * nat/linux-btrace.h (linux_supports_btrace): Update parameters. | |
338 | ||
734b0e4b MM |
339 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
340 | ||
341 | * Makefile.in (SFILES): Add common/btrace-common.c. | |
342 | (COMMON_OBS): Add common/btrace-common.o. | |
343 | (btrace-common.o): Add build rules. | |
344 | * btrace.c (parse_xml_btrace): Update parameters. | |
345 | (parse_xml_btrace_block): Set format field. | |
346 | (btrace_add_pc, btrace_fetch): Use struct btrace_data. | |
347 | (do_btrace_data_cleanup, make_cleanup_btrace_data): New. | |
348 | (btrace_compute_ftrace): Split into this and... | |
349 | (btrace_compute_ftrace_bts): ...this. | |
350 | (btrace_stitch_trace): Split into this and... | |
351 | (btrace_stitch_bts): ...this. | |
352 | * btrace.h (parse_xml_btrace): Update parameters. | |
353 | (make_cleanup_btrace_data): New. | |
354 | * common/btrace-common.c: New. | |
355 | * common/btrace-common.h: Include common-defs.h. | |
356 | (btrace_block_s): Update comment. | |
357 | (btrace_format): New. | |
358 | (btrace_format_string): New. | |
359 | (btrace_data_bts): New. | |
360 | (btrace_data): New. | |
361 | (btrace_data_init, btrace_data_fini, btrace_data_empty): New. | |
362 | * remote.c (remote_read_btrace): Update parameters. | |
363 | * target.c (target_read_btrace): Update parameters. | |
364 | * target.h (target_read_btrace): Update parameters. | |
365 | (target_ops)<to_read_btrace>: Update parameters. | |
366 | * x86-linux-nat.c (x86_linux_read_btrace): Update parameters. | |
367 | * target-delegates.c: Regenerate. | |
368 | * target-debug (target_debug_print_struct_btrace_data_p): New. | |
369 | * nat/linux-btrace.c (linux_read_btrace): Split into this and... | |
370 | (linux_read_bts): ...this. | |
371 | * nat/linux-btrace.h (linux_read_btrace): Update parameters. | |
372 | ||
bd2e0e9e DE |
373 | 2015-02-06 Doug Evans <dje@google.com> |
374 | ||
375 | * remote-m32r-sdi.c: Include symfile.h. | |
376 | ||
f176c4b5 DE |
377 | 2015-02-06 Doug Evans <dje@google.com> |
378 | ||
379 | * symtab.h (clear_symtab_users, deduce_language_from_filename): Move | |
380 | * symfile.h (clear_symtab_users, deduce_language_from_filename): ... | |
381 | to here. | |
382 | ||
d6c146e9 PA |
383 | 2015-02-06 Pedro Alves <palves@redhat.com> |
384 | ||
385 | * linux-thread-db.c (find_new_threads_callback): Add debug output. | |
386 | ||
b9d61307 SM |
387 | 2015-02-06 Simon Marchi <simon.marchi@ericsson.com> |
388 | ||
389 | PR gdb/15678 | |
390 | * breakpoint.c (map_breakpoint_numbers): Check for empty args string. | |
391 | (enable_count_command): Check args for NULL value. | |
392 | ||
e9fbd043 DE |
393 | 2015-02-05 Doug Evans <xdje42@gmail.com> |
394 | ||
395 | * guile/scm-frame.c: Fix spelling errors in a comment. | |
396 | ||
881d5d5d JK |
397 | 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
398 | ||
399 | * python/python-internal.h (Py_hash_t): Define it for Python <3.2. | |
400 | * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the | |
401 | return type. | |
402 | ||
20ba1ce6 PA |
403 | 2015-02-04 Pedro Alves <palves@redhat.com> |
404 | ||
405 | * linux-nat.c (handle_extended_wait): Don't resume LWPs here. | |
406 | (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait | |
407 | returns true. | |
408 | (resume_stopped_resumed_lwps): Don't check whether the thread is | |
409 | marked as executing. | |
410 | (linux_nat_wait_1): Use resume_stopped_resumed_lwps. | |
411 | ||
f962539a AA |
412 | 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
413 | ||
414 | * regset.h (struct regset): Add flags field. | |
415 | (REGSET_VARIABLE_SIZE): New value for a regset's flags field. | |
416 | * corelow.c (get_core_register_section): Add warning if the size | |
417 | exceeds the requested size and the regset does not have the | |
418 | REGSET_VARIABLE_SIZE flag set. | |
419 | * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE | |
420 | flag. | |
421 | * armbsd-tdep.c (armbsd_gregset): Likewise. | |
422 | * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise. | |
423 | * hppaobsd-tdep.c (hppaobsd_gregset): Likewise. | |
424 | * m68kbsd-tdep.c (m68kbsd_gregset): Likewise. | |
425 | * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise. | |
426 | ||
dde9acd6 AA |
427 | 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
428 | ||
429 | * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections): | |
430 | For ".reg-xstate", explicitly specify the requested section size | |
431 | via X86_XSTATE_SIZE instead of just 0 on input and | |
432 | X86_XSTATE_MAX_SIZE on output. | |
433 | * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): | |
434 | Likewise. | |
435 | ||
1528345d AA |
436 | 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
437 | ||
438 | PR corefiles/17808: | |
439 | * gdbarch.sh (iterate_over_regset_sections_cb): Document this | |
440 | function type, particularly its SIZE parameter. | |
441 | * gdbarch.h: Regenerate. | |
442 | * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare | |
443 | actual against required size using ">=" instead of "==". | |
444 | (amd64_collect_fpregset): Likewise. | |
445 | * i386-tdep.c (i386_supply_gregset): Likewise. | |
446 | (i386_collect_gregset): Likewise. | |
447 | (i386_supply_fpregset): Likewise. | |
448 | (i386_collect_fpregset): Likewise. | |
449 | * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise. | |
450 | (mips_fill_gregset_wrapper): Likewise. | |
451 | (mips_supply_fpregset_wrapper): Likewise. | |
452 | (mips_fill_fpregset_wrapper): Likewise. | |
453 | (mips64_supply_gregset_wrapper): Likewise. | |
454 | (mips64_fill_gregset_wrapper): Likewise. | |
455 | (mips64_supply_fpregset_wrapper): Likewise. | |
456 | (mips64_fill_fpregset_wrapper): Likewise. | |
457 | * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise. | |
458 | (am33_supply_fpregset_method): Likewise. | |
459 | (am33_collect_gregset_method): Likewise. | |
460 | (am33_collect_fpregset_method): Likewise. | |
461 | ||
518be979 DE |
462 | 2015-02-04 Doug Evans <dje@google.com> |
463 | Pedro Alves <palves@redhat.com> | |
464 | Eli Zaretskii <eliz@gnu.org> | |
465 | ||
466 | PR tui/17810 | |
467 | * tui/tui-command.c (tui_refresh_cmd_win): New function. | |
468 | * tui/tui-command.c (tui_refresh_cmd_win): Declare. | |
469 | * tui/tui-file.c: #include tui/tui-command.h. | |
470 | (tui_file_fputs): Refresh command window if stream is not gdb_stdout. | |
471 | (tui_file_flush): Refresh command window if stream is gdb_stdout. | |
472 | * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush. | |
473 | ||
80bd5fab PA |
474 | 2015-02-04 Pedro Alves <palves@redhat.com> |
475 | ||
476 | Fix build breakage. | |
477 | * event-loop.c (gdb_do_one_event): Add default switch case. | |
478 | ||
a7606d80 JK |
479 | 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
480 | ||
481 | Filter out inferior gcc option -fpreprocessed. | |
482 | * compile/compile.c (filter_args): New function. | |
483 | (get_args): Use it. | |
484 | ||
70b66289 PA |
485 | 2015-02-03 Pedro Alves <palves@redhat.com> |
486 | ||
487 | * event-loop.c: Don't declare nor define a queue type for | |
488 | gdb_event_p. | |
489 | (event_queue): Delete. | |
490 | (create_event, create_file_event, gdb_event_xfree) | |
491 | (initialize_event_loop, process_event): Delete. | |
492 | (gdb_do_one_event): Return as soon as one event is handled. | |
493 | (handle_file_event): Change prototype. Used the passed in | |
494 | file_handler pointer and ready_mask instead of looping over all | |
495 | file handlers. | |
496 | (gdb_wait_for_event): Update the poll/select timeouts before | |
497 | blocking. Run event handlers directly instead of queueing events. | |
498 | Return as soon as one event is handled. | |
499 | (struct async_event_handler_data): Delete. | |
500 | (invoke_async_event_handler): Delete. | |
501 | (check_async_event_handlers): Change return type to int. Run | |
502 | event handlers directly instead of queueing events. Return as | |
503 | soon as one event is handled. | |
504 | (handle_timer_event): Delete. | |
505 | (update_wait_timeout): New function, factored out from | |
506 | poll_timers. | |
507 | (poll_timers): Reimplement. | |
508 | * event-loop.h (initialize_event_loop): Delete declaration. | |
509 | * top.c (gdb_init): Don't call initialize_event_loop. | |
510 | ||
b7d2e916 PA |
511 | 2015-02-03 Pedro Alves <palves@redhat.com> |
512 | ||
513 | * event-loop.c (clear_async_event_handler): New function. | |
514 | * event-loop.h (clear_async_event_handler): New declaration. | |
515 | * record-btrace.c (record_btrace_async): New function. | |
516 | (init_record_btrace_ops): Install record_btrace_async. | |
517 | * record-full.c (record_full_async): New function. | |
518 | (record_full_resume): Don't mark the async event source here. | |
519 | (init_record_full_ops): Install record_full_async. | |
520 | (record_full_core_resume): Don't mark the async event source here. | |
521 | (init_record_full_core_ops): Install record_full_async. | |
522 | * remote.c (remote_async): Mark and clear the async stop reply | |
523 | queue event-loop token as appropriate. | |
524 | ||
d9d41e78 PA |
525 | 2015-02-03 Pedro Alves <palves@redhat.com> |
526 | ||
527 | * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use | |
528 | target_is_async_p instead of target_can_async. | |
529 | (linux_nat_wait): Use target_is_async_p instead of | |
530 | target_can_async. Don't enable async here. | |
531 | * remote.c (interrupt_query, remote_wait, putpkt_binary): Use | |
532 | target_is_async_p instead of target_can_async. | |
533 | ||
aa3de267 SM |
534 | 2015-02-02 Simon Marchi <simon.marchi@ericsson.com> |
535 | ||
536 | * varobj.h (lang_varobj_ops): Mention which return values need | |
537 | to be freed. | |
538 | ||
2c811c0f JB |
539 | 2015-02-02 Joel Brobecker <brobecker@adacore.com> |
540 | ||
541 | * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker. | |
542 | ||
b1eedac9 JB |
543 | 2015-02-02 Joel Brobecker <brobecker@adacore.com> |
544 | ||
545 | PR gdb/17856: | |
546 | * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache | |
547 | results found in the cache. | |
548 | ||
66c168ae JB |
549 | 2015-02-02 Joel Brobecker <brobecker@adacore.com> |
550 | ||
551 | PR gdb/17854: | |
552 | * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache | |
553 | when allocating a new one. | |
554 | ||
4bdc02b2 TT |
555 | 2015-02-01 Tom Tromey <tom@tromey.com> |
556 | ||
557 | * MAINTAINERS: Remove myself. | |
558 | ||
ae6ae975 DE |
559 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
560 | ||
561 | * dwarf2read.c (process_structure_scope): Update setting of | |
562 | TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO. | |
563 | * gdbtypes.c (internal_type_vptr_fieldno): New function. | |
564 | (set_type_vptr_fieldno): New function. | |
565 | (internal_type_vptr_basetype): New function. | |
566 | (set_type_vptr_basetype): New function. | |
567 | (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO, | |
568 | TYPE_VPTR_BASETYPE. | |
569 | (allocate_cplus_struct_type): Initialize vptr_fieldno. | |
570 | (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ... | |
571 | (print_cplus_stuff): ... moved here. | |
572 | (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE. | |
573 | * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype | |
574 | moved to ... | |
575 | (struct cplus_struct_type): ... here. All uses updated. | |
576 | (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite. | |
577 | (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare. | |
578 | (internal_type_vptr_basetype, set_type_vptr_basetype): Declare. | |
579 | * stabsread.c (read_tilde_fields): Update setting of | |
580 | TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE. | |
581 | ||
09e2d7c7 DE |
582 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
583 | ||
584 | * cp-valprint.c (cp_find_class_member): Rename parameter domain_p | |
585 | to self_p. | |
586 | (cp_print_class_member): Rename local domain to self_type. | |
587 | * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local | |
588 | domain_type to self_type. | |
589 | (set_die_type) <need_gnat_info>: Handle | |
590 | TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD. | |
591 | * gdb-gdb.py (StructMainTypePrettyPrinter): Handle | |
592 | TYPE_SPECIFIC_SELF_TYPE. | |
593 | * gdbtypes.c (internal_type_self_type): New function. | |
594 | (set_type_self_type): New function. | |
595 | (smash_to_memberptr_type): Rename parameter domain to self_type. | |
596 | Update setting of TYPE_SELF_TYPE. | |
597 | (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE. | |
598 | (smash_to_method_type): Rename parameter domain to self_type. | |
599 | Update setting of TYPE_SELF_TYPE. | |
600 | (check_stub_method): Call smash_to_method_type. | |
601 | (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE. | |
602 | (copy_type_recursive): Ditto. | |
603 | * gdbtypes.h (enum type_specific_kind): New value | |
604 | TYPE_SPECIFIC_SELF_TYPE. | |
605 | (struct main_type) <type_specific>: New member self_type. | |
606 | (struct cplus_struct_type) <fn_field.type>: Update comment. | |
607 | (TYPE_SELF_TYPE): Rewrite. | |
608 | (internal_type_self_type, set_type_self_type): Declare. | |
609 | * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to | |
610 | self_type. | |
611 | (gnuv3_method_ptr_to_value): Rename local domain_type to self_type. | |
612 | * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with | |
613 | TYPE_TARGET_TYPE. | |
614 | * stabsread.c (read_member_functions): Mark methods with | |
615 | TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of | |
616 | TYPE_SELF_TYPE. | |
617 | ||
4bfb94b8 DE |
618 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
619 | ||
620 | * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE. | |
621 | All uses updated. | |
622 | ||
5f4ce105 DE |
623 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
624 | ||
625 | * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs | |
626 | or unions. Return zero if union. | |
627 | (gnuv3_get_vtable): Call check_typedef. Assert only passed structs. | |
628 | (gnuv3_rtti_type): Pass already-check_typedef'd value to | |
629 | gnuv3_get_vtable. | |
630 | (compute_vtable_size): Assert only passed structs. | |
631 | (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs. | |
632 | ||
f6b3afbf DE |
633 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
634 | ||
635 | * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD | |
636 | kinds. | |
637 | ||
cfb069a8 GB |
638 | 2015-01-31 Gary Benson <gbenson@redhat.com> |
639 | Doug Evans <dje@google.com> | |
640 | ||
641 | PR cli/9007 | |
642 | PR cli/11920 | |
643 | PR cli/15548 | |
644 | * cli/cli-cmds.c (complete_command): Notify user if max-completions | |
645 | reached. | |
646 | * common/common-exceptions.h (enum errors) | |
647 | <MAX_COMPLETIONS_REACHED_ERROR>: New value. | |
648 | * completer.h (get_max_completions_reached_message): New declaration. | |
649 | (max_completions): Likewise. | |
650 | (completion_tracker_t): New typedef. | |
651 | (new_completion_tracker): New declaration. | |
652 | (make_cleanup_free_completion_tracker): Likewise. | |
653 | (maybe_add_completion_enum): New enum. | |
654 | (maybe_add_completion): New declaration. | |
655 | (throw_max_completions_reached_error): Likewise. | |
656 | * completer.c (max_completions): New global variable. | |
657 | (new_completion_tracker): New function. | |
658 | (free_completion_tracker): Likewise. | |
659 | (make_cleanup_free_completion_tracker): Likewise. | |
660 | (maybe_add_completions): Likewise. | |
661 | (throw_max_completions_reached_error): Likewise. | |
662 | (complete_line): Remove duplicates and limit result to max_completions | |
663 | entries. | |
664 | (get_max_completions_reached_message): New function. | |
665 | (gdb_display_match_list): Handle max_completions. | |
666 | (_initialize_completer): New declaration and function. | |
667 | * symtab.c: Include completer.h. | |
668 | (completion_tracker): New static variable. | |
669 | (completion_list_add_name): Call maybe_add_completion. | |
670 | (default_make_symbol_completion_list_break_on_1): Renamed from | |
671 | default_make_symbol_completion_list_break_on. Maintain | |
672 | completion_tracker across calls to completion_list_add_name. | |
673 | (default_make_symbol_completion_list_break_on): New function. | |
674 | * top.c (init_main): Set rl_completion_display_matches_hook. | |
675 | * tui/tui-io.c: Include completer.h. | |
676 | (tui_old_rl_display_matches_hook): New static global. | |
677 | (tui_rl_display_match_list): Notify user if max-completions reached. | |
678 | (tui_setup_io): Save/restore rl_completion_display_matches_hook. | |
679 | * NEWS (New Options): Mention set/show max-completions. | |
680 | ||
e11c72c7 GB |
681 | 2015-01-31 Gary Benson <gbenson@redhat.com> |
682 | ||
683 | * symtab.c (struct add_name_data) <code>: New field. | |
684 | Updated comments. | |
685 | (add_symtab_completions): New function. | |
686 | (symtab_expansion_callback): Likewise. | |
687 | (default_make_symbol_completion_list_break_on): Set datum.code. | |
688 | Move minimal symbol scan before calling expand_symtabs_matching. | |
689 | Scan known primary symtabs for externs and statics before calling | |
690 | expand_symtabs_matching. Pass symtab_expansion_callback as | |
691 | expansion_notify argument to expand_symtabs_matching. Do not scan | |
692 | primary symtabs for externs and statics after calling | |
693 | expand_symtabs_matching. | |
694 | ||
276d885b GB |
695 | 2015-01-31 Gary Benson <gbenson@redhat.com> |
696 | ||
697 | * symfile.h (expand_symtabs_exp_notify_ftype): New typedef. | |
698 | (struct quick_symbol_functions) <expand_symtabs_matching>: | |
699 | New argument expansion_notify. All uses updated. | |
700 | (expand_symtabs_matching): New argument expansion_notify. | |
701 | All uses updated. | |
702 | * symfile-debug.c (debug_qf_expand_symtabs_matching): | |
703 | Also print expansion notify. | |
704 | * symtab.c (expand_symtabs_matching_via_partial): Call | |
705 | expansion_notify whenever a partial symbol table is expanded. | |
706 | * dwarf2read.c (dw2_expand_symtabs_matching): Call | |
707 | expansion_notify whenever a symbol table is instantiated. | |
708 | ||
82083d6d DE |
709 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
710 | ||
711 | * cli-out.c: #include completer.h, readline/readline.h. | |
712 | (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions. | |
713 | (cli_mld_flush, cld_mld_erase_entire_line): Ditto. | |
714 | (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto. | |
715 | * cli-out.h (cli_display_match_list): Declare. | |
716 | * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros. | |
717 | (ELLIPSIS_LEN): Ditto. | |
718 | (gdb_get_y_or_n, gdb_display_match_list_pager): New functions. | |
719 | (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto. | |
720 | (gdb_fnprint, gdb_print_filename): Ditto. | |
721 | (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto. | |
722 | (gdb_display_match_list): Ditto. | |
723 | * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs. | |
724 | (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto. | |
725 | (mld_beep_ftype, mld_read_key_ftype): Ditto. | |
726 | (match_list_displayer): New struct. | |
727 | (gdb_display_match_list): Declare. | |
728 | * top.c (init_main): Set rl_completion_display_matches_hook. | |
729 | * tui/tui-io.c: #include completer.h. | |
730 | (printable_part, PUTX, print_filename, get_y_or_n): Delete. | |
731 | (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions. | |
732 | (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto. | |
733 | (tui_mld_getc, tui_mld_read_key): Ditto. | |
734 | (tui_rl_display_match_list): Rewrite. | |
735 | (tui_handle_resize_during_io): New arg for_completion. All callers | |
736 | updated. | |
737 | ||
f57d2163 DE |
738 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
739 | ||
740 | Add symbol lookup cache. | |
741 | * NEWS: Document new options and commands. | |
742 | * symtab.c (symbol_cache_key): New static global. | |
743 | (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros. | |
744 | (SYMBOL_LOOKUP_FAILED): New macro. | |
745 | (symbol_cache_slot_state): New enum. | |
746 | (block_symbol_cache): New struct. | |
747 | (symbol_cache): New struct. | |
748 | (new_symbol_cache_size, symbol_cache_size): New static globals. | |
749 | (hash_symbol_entry, eq_symbol_entry): New functions. | |
750 | (symbol_cache_byte_size, resize_symbol_cache): New functions. | |
751 | (make_symbol_cache, free_symbol_cache): New functions. | |
752 | (get_symbol_cache, symbol_cache_cleanup): New function. | |
753 | (set_symbol_cache_size, set_symbol_cache_size_handler): New functions. | |
754 | (symbol_cache_lookup, symbol_cache_clear_slot): New function. | |
755 | (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions. | |
756 | (symbol_cache_flush, symbol_cache_dump): New functions. | |
757 | (maintenance_print_symbol_cache): New function. | |
758 | (maintenance_flush_symbol_cache): New function. | |
759 | (symbol_cache_stats): New function. | |
760 | (maintenance_print_symbol_cache_statistics): New function. | |
761 | (symtab_new_objfile_observer): New function. | |
762 | (symtab_free_objfile_observer): New function. | |
763 | (lookup_static_symbol, lookup_global_symbol): Use symbol cache. | |
764 | (_initialize_symtab): Init symbol_cache_key. New parameter | |
765 | maint symbol-cache-size. New maint commands print symbol-cache, | |
766 | print symbol-cache-statistics, flush-symbol-cache. | |
767 | Install new_objfile, free_objfile observers. | |
768 | ||
e700d1b2 JB |
769 | 2015-01-31 Joel Brobecker <brobecker@adacore.com> |
770 | ||
771 | PR symtab/17855 | |
772 | * symfile.c (clear_symtab_users): Move call to breakpoint_re_set | |
773 | to end. | |
774 | ||
9f050062 DE |
775 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
776 | ||
777 | * NEWS: Mention inlined scripts in .debug_gdb_scripts section. | |
778 | * auto-load.c: #include ctype.h. | |
779 | (struct auto_load_pspace_info): Replace member loaded_scripts with | |
780 | new members loaded_script_files, loaded_script_texts. | |
781 | (auto_load_pspace_data_cleanup): Update. | |
782 | (init_loaded_scripts_info): Update. | |
783 | (get_auto_load_pspace_data_for_loading): Update. | |
784 | (maybe_add_script_file): Renamed from maybe_add_script. All callers | |
785 | updated. | |
786 | (maybe_add_script_text): New function. | |
787 | (clear_section_scripts): Update. | |
788 | (source_script_file, execute_script_contents): New functions. | |
789 | (source_section_scripts): Add support for | |
790 | SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT. | |
791 | (print_scripts): New function. | |
792 | (auto_load_info_scripts): Also print inlined scripts. | |
793 | (maybe_print_unsupported_script_warning): Renamed from | |
794 | unsupported_script_warning_print. All callers updated. | |
795 | (maybe_print_script_not_found_warning): Renamed from | |
796 | script_not_found_warning_print. All callers updated. | |
797 | * extension-priv.h (struct extension_language_script_ops): New member | |
798 | objfile_script_executor. | |
799 | * extension.c (ext_lang_objfile_script_executor): New function. | |
800 | * extension.h (objfile_script_executor_func): New typedef. | |
801 | (ext_lang_objfile_script_executor): Declare. | |
802 | * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare. | |
803 | * guile/guile.c (guile_extension_script_ops): Update. | |
804 | * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function. | |
805 | * python/python.c (python_extension_script_ops): Update. | |
806 | (gdbpy_execute_objfile_script): New function. | |
807 | ||
312809f8 EZ |
808 | 2015-01-31 Eli Zaretskii <eliz@gnu.org> |
809 | ||
810 | * tui/tui-io.c (tui_expand_tabs): New function. | |
811 | (tui_puts, tui_redisplay_readline): Expand TABs into the | |
812 | appropriate number of spaces. | |
813 | * tui/tui-regs.c: Include tui-io.h. | |
814 | (tui_register_format): Call tui_expand_tabs to expand TABs into | |
815 | the appropriate number of spaces. | |
816 | * tui/tui-io.h: Add prototype for tui_expand_tabs. | |
817 | ||
b6577aab DE |
818 | 2015-01-30 Doug Evans <dje@google.com> |
819 | ||
820 | * NEWS: "info source" command now display producer string if present. | |
821 | * source.c (source_info): Print producer string if present. | |
822 | ||
6da58d3e SM |
823 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
824 | ||
825 | * varobj.c (varobj_delete): Fix comment. | |
826 | ||
837ce252 SM |
827 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
828 | ||
829 | * varobj.c (create_child): Modify comment. | |
830 | ||
b09e2c59 SM |
831 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
832 | ||
833 | * ada-varobj.c (ada_number_of_children): Constify struct varobj * | |
834 | parameter. | |
835 | (ada_name_of_variable): Same. | |
836 | (ada_path_expr_of_child): Same. | |
837 | (ada_value_of_variable): Same. | |
838 | (ada_value_is_changeable_p): Same. | |
839 | (ada_value_has_mutated): Same. | |
840 | * c-varobj.c (varobj_is_anonymous_child): Same. | |
841 | (c_is_path_expr_parent): Same. | |
842 | (c_number_of_children): Same. | |
843 | (c_name_of_variable): Same. | |
844 | (c_path_expr_of_child): Same. | |
845 | (get_type): Same. | |
846 | (c_value_of_variable): Same. | |
847 | (cplus_number_of_children): Same. | |
848 | (cplus_name_of_variable): Same. | |
849 | (cplus_path_expr_of_child): Same. | |
850 | (cplus_value_of_variable): Same. | |
851 | * jv-varobj.c (java_number_of_children): Same. | |
852 | (java_name_of_variable): Same. | |
853 | (java_path_expr_of_child): Same. | |
854 | (java_value_of_variable): Same. | |
855 | * varobj.c (number_of_children): Same. | |
856 | (name_of_variable): Same. | |
857 | (is_root_p): Same. | |
858 | (varobj_ensure_python_env): Same. | |
859 | (varobj_get_objname): Same. | |
860 | (varobj_get_expression): Same. | |
861 | (varobj_get_display_format): Same. | |
862 | (varobj_get_display_hint): Same. | |
863 | (varobj_has_more): Same. | |
864 | (varobj_get_thread_id): Same. | |
865 | (varobj_get_frozen): Same. | |
866 | (dynamic_varobj_has_child_method): Same. | |
867 | (varobj_get_gdb_type): Same. | |
868 | (is_path_expr_parent): Same. | |
869 | (varobj_default_is_path_expr_parent): Same. | |
870 | (varobj_get_language): Same. | |
871 | (varobj_get_attributes): Same. | |
872 | (varobj_is_dynamic_p): Same. | |
873 | (varobj_get_child_range): Same. | |
874 | (varobj_value_has_mutated): Same. | |
875 | (varobj_get_value_type): Same. | |
876 | (number_of_children): Same. | |
877 | (name_of_variable): Same. | |
878 | (check_scope): Same. | |
879 | (varobj_editable_p): Same. | |
880 | (varobj_value_is_changeable_p): Same. | |
881 | (varobj_floating_p): Same. | |
882 | (varobj_default_value_is_changeable_p): Same. | |
883 | ||
2568868e SM |
884 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
885 | ||
886 | * varobj.c (varobj_get_path_expr): Set var->path_expr. | |
887 | * c-varobj.c (c_path_expr_of_child): Set local var instead of | |
888 | child->path_expr. | |
889 | (cplus_path_expr_of_child): Same. | |
890 | ||
ca83fa81 SM |
891 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
892 | ||
893 | * mi-cmd-var.c (print_varobj): Free varobj_get_expression | |
894 | result. | |
895 | (mi_cmd_var_info_expression): Same. | |
896 | * varobj.c (varobj_get_expression): Mention in the comment that | |
897 | the result must by freed by the caller. | |
898 | ||
afa269ae SM |
899 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
900 | ||
901 | * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of | |
902 | varobj_get_type. | |
903 | (varobj_update_one): Same. | |
904 | * varobj.c (update_type_if_necessary): Free curr_type_str and | |
905 | new_type_str. | |
906 | (varobj_get_type): Specify in comment that the result needs to be | |
907 | freed by the caller. | |
908 | ||
cd366ee8 DE |
909 | 2015-01-29 Doug Evans <dje@google.com> |
910 | ||
911 | PR symtab/17890 | |
912 | * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4. | |
913 | ||
38360086 MW |
914 | 2015-01-25 Mark Wielaard <mjw@redhat.com> |
915 | ||
916 | * dwarf2read.c (checkproducer): Call producer_is_gcc. | |
917 | * utils.c (producer_is_gcc_ge_4): Likewise. | |
918 | (producer_is_gcc): New function. | |
919 | * utils.h (producer_is_gcc): New declaration. | |
920 | ||
df25ebbd JB |
921 | 2015-01-29 Joel Brobecker <brobecker@adacore.com> |
922 | ||
923 | * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum | |
924 | kind. | |
925 | * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr" | |
926 | parameter by "addr_stack" parameter. | |
927 | (resolve_dynamic_range): Replace "addr" parameter by | |
928 | "stack_addr" parameter. Update function documentation. | |
929 | Update code accordingly. | |
930 | (resolve_dynamic_array, resolve_dynamic_union) | |
931 | (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise. | |
932 | (resolve_dynamic_type): Update code, following the changes made | |
933 | to resolve_dynamic_type_internal's interface. | |
934 | * dwarf2loc.h (struct property_addr_info): New. | |
935 | (dwarf2_evaluate_property): Replace "address" parameter | |
936 | by "addr_stack" parameter. Adjust function documentation. | |
937 | (struct dwarf2_offset_baton): New. | |
938 | (struct dwarf2_property_baton): Update documentation of | |
939 | field "referenced_type" to be more general. New field | |
940 | "offset_info" in union data field. | |
941 | * dwarf2loc.c (dwarf2_evaluate_property): Replace "address" | |
942 | parameter by "addr_stack" parameter. Adjust code accordingly. | |
943 | Add support for PROP_ADDR_OFFSET properties. | |
944 | * dwarf2read.c (attr_to_dynamic_prop): Add support for | |
945 | DW_AT_data_member_location attributes as well. Use case | |
946 | statements instead of if/else condition. | |
947 | ||
4a0ca9ec JB |
948 | 2015-01-29 Joel Brobecker <brobecker@adacore.com> |
949 | ||
950 | * ada-varobj.c (ada_varobj_get_array_number_of_children): | |
951 | Return zero if PARENT_VALUE is NULL and parent_type's | |
952 | range type is dynamic. | |
953 | ||
ddb87a81 JB |
954 | 2015-01-29 Joel Brobecker <brobecker@adacore.com> |
955 | ||
956 | * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return | |
957 | nonzero if the type's subtype is dynamic. | |
958 | (resolve_dynamic_range): Also resolve the range's subtype. | |
959 | ||
3d7ad9b4 | 960 | 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch) |
7a270e0c | 961 | |
3d7ad9b4 | 962 | Pushed by Joel Brobecker <brobecker@adacore.com>. |
7a270e0c AK |
963 | * symfile.c (unmap_overlay_command): Initialize sec to NULL. |
964 | ||
3a8b707a DE |
965 | 2015-01-27 Doug Evans <dje@google.com> |
966 | ||
967 | * NEWS: Mention gdb.Objfile.username. | |
968 | * python/py-objfile.c (objfpy_get_username): New function. | |
969 | (objfile_getset): Add "username". | |
970 | ||
d35b90fb MW |
971 | 2015-01-24 Mark Wielaard <mjw@redhat.com> |
972 | ||
973 | * stack.c (return_command): Markup warning message with _. | |
974 | ||
734ae125 DE |
975 | 2015-01-24 Doug Evans <xdje42@gmail.com> |
976 | ||
977 | * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete. | |
978 | ||
527f3840 JK |
979 | 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
980 | ||
981 | Fix 100x slowdown regression on DWZ files. | |
982 | * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash. | |
983 | (struct line_header): Add offset and offset_in_dwz. | |
984 | (dwarf_decode_lines): Add parameter decode_mapping to the declaration. | |
985 | (free_line_header_voidp): New declaration. | |
986 | (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New | |
987 | functions. | |
988 | (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller. | |
989 | (handle_DW_AT_stmt_list): Use line_header_hash. | |
990 | (free_line_header_voidp): New function. | |
991 | (dwarf_decode_line_header): Initialize offset and offset_in_dwz. | |
992 | (dwarf_decode_lines): New parameter decode_mapping, use it. | |
993 | (dwarf2_free_objfile): Free line_header_hash. | |
994 | ||
f7e5394d SM |
995 | 2015-01-23 Simon Marchi <simon.marchi@ericsson.com> |
996 | ||
997 | PR gdb/17416 | |
998 | * valops.c (value_rtti_indirect_type): Catch exception thrown by | |
999 | value_ind. | |
1000 | ||
743649fd MW |
1001 | 2015-01-15 Mark Wielaard <mjw@redhat.com> |
1002 | ||
1003 | * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from | |
1004 | DW_AT_noreturn. | |
1005 | * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make | |
1006 | calling_convention an 8 bit bit field. | |
1007 | (TYPE_NO_RETURN): New macro. | |
1008 | * infcmd.c (finish_command): Query if function does not return | |
1009 | normally. | |
1010 | * stack.c (return_command): Likewise. | |
1011 | ||
198297aa PA |
1012 | 2015-01-23 Pedro Alves <palves@redhat.com> |
1013 | ||
1014 | * linux-nat.c (linux_is_async_p): New macro. | |
1015 | (linux_nat_is_async_p): | |
1016 | (linux_nat_terminal_inferior): Check whether the target can async | |
1017 | instead of whether it is already async. | |
1018 | (linux_nat_terminal_ours): Don't check whether the target is | |
1019 | async. | |
1020 | (linux_async_pipe): Use linux_is_async_p. | |
1021 | ||
253828f1 JK |
1022 | 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
1023 | ||
1024 | * NEWS (Changes since GDB 7.9): Add 'thread apply all' option | |
1025 | '-ascending'. | |
1026 | * thread.c (tp_array_compar_ascending, tp_array_compar): New. | |
1027 | (thread_apply_all_command): Parse CMD for tp_array_compar_ascending. | |
1028 | Sort tp_array using tp_array_compar. | |
1029 | (_initialize_thread): Extend thread_apply_all_command help. | |
1030 | ||
f0e8c4c5 JK |
1031 | 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
1032 | ||
1033 | * corelow.c (core_open): Call also thread_command. | |
1034 | * gdbthread.h (thread_command): New prototype moved from ... | |
1035 | * thread.c (thread_command): ... here. | |
1036 | (thread_command): Make it global. | |
1037 | ||
03b79603 PA |
1038 | 2015-01-22 Pedro Alves <palves@redhat.com> |
1039 | ||
1040 | * configure.ac [*mingw32*]: Check $curses_found instead of | |
1041 | $prefer_curses. | |
1042 | * configure: Regenerate. | |
1043 | * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and | |
1044 | HAVE_NCURSES_NCURSES_H checks. | |
1045 | ||
6b8a872f EZ |
1046 | 2015-01-22 Eli Zaretskii <eliz@gnu.org> |
1047 | ||
bbbbffbb | 1048 | * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm' |
6b8a872f EZ |
1049 | fails with the 1st arg NULL, try again with "unknown". Don't test |
1050 | the "cup" capability: it isn't supported by the Windows port of | |
1051 | ncurses, but the Windows console driver is still capable of | |
1052 | supporting TUI. | |
1053 | ||
4b62a76e JK |
1054 | 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
1055 | ||
1056 | * compile/compile.c (_initialize_compile): Use -fPIE for compile_args. | |
1057 | ||
82a864f9 EZ |
1058 | 2015-01-22 Eli Zaretskii <eliz@gnu.org> |
1059 | ||
1060 | * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h. | |
1061 | (ALLDEPFILES): Remove irix5-nat.c. These two are part of the | |
1062 | reason that "make TAGS" is broken. | |
1063 | ||
b35018fd CG |
1064 | 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com> |
1065 | ||
1066 | * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues | |
1067 | and check additional store instructions. | |
1068 | ||
ffbc4646 WW |
1069 | 2015-01-21 Wei-cheng Wang <cole945@gmail.com> |
1070 | ||
1071 | * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang". | |
1072 | ||
ddeca1df WW |
1073 | 2015-01-21 Wei-cheng Wang <cole945@gmail.com> |
1074 | ||
1075 | * ppc-linux-tdep.c (ppc_skip_trampoline_code, | |
1076 | ppc_canonicalize_syscall, ppc_linux_syscall_record, | |
1077 | ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments. | |
1078 | * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise. | |
1079 | * rs6000-tdep.c (rs6000_epilogue_frame_cache, | |
1080 | rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register, | |
1081 | rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4, | |
1082 | ppc_process_record_op19, ppc_process_record_op31, | |
1083 | ppc_process_record_op59, ppc_process_record_op60, | |
1084 | ppc_process_record_op63): Likewise. | |
1085 | ||
049bb5de JB |
1086 | 2015-01-20 Joel Brobecker <brobecker@adacore.com> |
1087 | ||
1088 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string) | |
1089 | (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of | |
1090 | strerror. | |
1091 | ||
42b87c63 | 1092 | 2015-01-20 Wei-cheng Wang <cole945@gmail.com> |
810c1026 WW |
1093 | |
1094 | * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19, | |
1095 | ppc_process_record_op31, ppc_process_record_op59, | |
1096 | ppc_process_record_op60, ppc_process_record_op63, | |
1097 | ppc_process_record): Fix -Wformat warning. | |
1098 | * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60): | |
1099 | Remove unused variables. | |
1100 | ||
569340fc CG |
1101 | 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com> |
1102 | ||
1103 | * MAINTAINERS (Write After Approval): Add "Chen Gang". | |
1104 | ||
63413d85 EZ |
1105 | 2015-01-19 Eli Zaretskii <eliz@gnu.org> |
1106 | ||
1107 | * configure.ac [*mingw32*]: Only add windows-termcap.o to | |
1108 | CONFIG_OBS if not building with a curses library. | |
1109 | * configure: Regenerate. | |
1110 | ||
1111 | * windows-termcap.c: Include defs.h. Make the whole body empty if | |
1112 | either one of HAVE_CURSES_H or HAVE_NCURSES_H or | |
1113 | HAVE_NCURSES_NCURSES_H is defined. | |
1114 | ||
16d8013c JB |
1115 | 2015-01-19 Joel Brobecker <brobecker@adacore.com> |
1116 | ||
1117 | * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator | |
1118 | from end of line to start of next line. | |
1119 | ||
cf90fd9a WW |
1120 | 2015-01-17 Wei-cheng Wang <cole945@gmail.com> |
1121 | ||
1122 | * ppc-linux-tdep.c (ppc_skip_trampoline_code): | |
1123 | Scan PLT stub backward for reverse debugging. | |
1124 | * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise. | |
1125 | ||
b4cdae6f WW |
1126 | 2015-01-17 Wei-cheng Wang <cole945@gmail.com> |
1127 | Ulrich Weigand <uweigand@de.ibm.com> | |
1128 | ||
1129 | * configure.tgt (powerpc*-*-linux): Add linux-record.o to | |
1130 | gdb_target_obs. | |
1131 | (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall | |
1132 | record. | |
1133 | (ppc_canonicalize_syscall, ppc_linux_syscall_record, | |
1134 | ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions. | |
1135 | (ppc_linux_init_abi): Set process_record, process_record_signal. | |
1136 | * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and | |
1137 | ppc_linux_record_tdep to gdbarch_tdep. | |
1138 | (ppc_process_record): New declaration. | |
1139 | * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4, | |
1140 | ppc_process_record_op19, ppc_process_record_op31, | |
1141 | ppc_process_record_op59, ppc_process_record_op60, | |
1142 | ppc_process_record_op63, ppc_process_record): New functions. | |
1143 | ||
2608dbf8 WW |
1144 | 2015-01-17 Wei-cheng Wang <cole945@gmail.com> |
1145 | ||
1146 | * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to | |
1147 | rs6000_in_function_epilogue_frame_p and add an argument | |
1148 | for frame_info. | |
1149 | (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id, | |
1150 | rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer): | |
1151 | New functions. | |
1152 | (rs6000_epilogue_frame_unwind): New. | |
1153 | (rs6000_gdbarch_init): Append epilogue unwinder. | |
1154 | ||
4c347be6 SDJ |
1155 | 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com> |
1156 | ||
1157 | * nat/linux-personality.c: Replace "#ifndef | |
1158 | HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if | |
1159 | !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5 | |
1160 | systems. | |
1161 | ||
9f2850ba EZ |
1162 | 2015-01-16 Eli Zaretskii <eliz@gnu.org> |
1163 | ||
6cdb25f4 EZ |
1164 | * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New |
1165 | functions. | |
1166 | (_initialize_tui_win) <border-kind, border-mode>: | |
1167 | <active-border-mode>: Use tui_set_var_cmd as the "set" function. | |
c54da50d EZ |
1168 | (tui_set_tab_width_command): Fix the commentary. |
1169 | ||
6cdb25f4 EZ |
1170 | * tui/tui-win.h: Add prototype for tui_rehighlight_all. |
1171 | ||
bf555842 EZ |
1172 | * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command): |
1173 | Doc fix. | |
cb86fcc1 EZ |
1174 | (tui_set_tab_width_command): Delete and recreate the source and |
1175 | the disassembly windows, to show the effect of the changed tab | |
1176 | size immediately. | |
bf555842 | 1177 | |
9f2850ba EZ |
1178 | * tui/tui-data.h (LINE_PREFIX): Make shorter |
1179 | (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for | |
1180 | "Thread NNNNN.XXXX" thread ID notation on Windows. | |
1181 | ||
95761b2d JK |
1182 | 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
1183 | ||
1184 | Fix gcc-5 compilation. | |
1185 | * hppa-tdep.c (inst_saves_gr): Fix parentheses typo. | |
1186 | ||
8cc73a39 SDJ |
1187 | 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com> |
1188 | ||
1189 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h. | |
1190 | (linux-personality.o): New rule. | |
1191 | * common/common-defs.h: Include <stdint.h>. | |
1192 | * config/aarch64/linux.mh (NATDEPFILES): Include | |
1193 | linux-personality.o. | |
1194 | * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise. | |
1195 | * config/arm/linux.mh (NATDEPFILES): Likewise. | |
1196 | * config/i386/linux64.mh (NATDEPFILES): Likewise. | |
1197 | * config/i386/linux.mh (NATDEPFILES): Likewise. | |
1198 | * config/ia64/linux.mh (NATDEPFILES): Likewise. | |
1199 | * config/m32r/linux.mh (NATDEPFILES): Likewise. | |
1200 | * config/m68k/linux.mh (NATDEPFILES): Likewise. | |
1201 | * config/mips/linux.mh (NATDEPFILES): Likewise. | |
1202 | * config/pa/linux.mh (NATDEPFILES): Likewise. | |
1203 | * config/powerpc/linux.mh (NATDEPFILES): Likewise. | |
1204 | * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise. | |
1205 | * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise. | |
1206 | * config/s390/linux.mh (NATDEPFILES): Likewise. | |
1207 | * config/sparc/linux64.mh (NATDEPFILES): Likewise. | |
1208 | * config/sparc/linux.mh (NATDEPFILES): Likewise. | |
1209 | * config/tilegx/linux.mh (NATDEPFILES): Likewise. | |
1210 | * config/xtensa/linux.mh (NATDEPFILES): Likewise. | |
1211 | * defs.h: Remove #include <stdint.h> (moved to | |
1212 | common/common-defs.h). | |
1213 | * linux-nat.c: Include nat/linux-personality.h. Remove #include | |
1214 | <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to | |
1215 | nat/linux-personality.c). | |
1216 | (linux_nat_create_inferior): Remove code to disable address space | |
1217 | randomization (moved to nat/linux-personality.c). Create cleanup | |
1218 | to disable address space randomization. | |
1219 | * nat/linux-personality.c: New file. | |
1220 | * nat/linux-personality.h: Likewise. | |
1221 | ||
fb23d554 SDJ |
1222 | 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com> |
1223 | ||
1224 | * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and | |
1225 | common/posix-strerror.c. | |
1226 | (posix-strerror.o): New rule. | |
1227 | (mingw-strerror.o): Likewise. | |
1228 | * common/common-utils.h (safe_strerror): Move prototype to here, | |
1229 | from utils.h. | |
1230 | * common/common.host: New file. | |
1231 | * common/mingw-strerror.c: Likewise. | |
1232 | * common/posix-strerror.c: Likewise. | |
1233 | * configure: Regenerated. | |
1234 | * configure.ac: Source common/common.host. Add variable | |
1235 | common_host_obs to gdb_host_obs. | |
1236 | * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and | |
1237 | gdb/common/posix-strerror.c when warning about the use of | |
1238 | strerror. | |
1239 | * mingw-hdep.c (safe_strerror): Remove definition; move it to | |
1240 | common/mingw-strerror.c. | |
1241 | * posix-hdep.c (safe_strerror): Remove definition; move it to | |
1242 | common/posix-hdep.c. | |
1243 | * utils.h (safe_strerror): Remove prototype; move to | |
1244 | common/common-utils.h. | |
1245 | ||
3af8af43 JB |
1246 | 2015-01-15 Joel Brobecker <brobecker@adacore.com> |
1247 | ||
1248 | GDB 7.8.2 released. | |
1249 | ||
bafffb51 JB |
1250 | 2015-01-15 Joel Brobecker <brobecker@adacore.com> |
1251 | ||
1252 | * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel | |
1253 | ___XA type if the array has already been fixed. | |
1254 | ||
cdf43629 YQ |
1255 | 2015-01-14 Yao Qi <yao@codesourcery.com> |
1256 | ||
1257 | * Makefile.in (ppc-linux.o): New rule. | |
1258 | * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o. | |
1259 | * configure.ac: AC_CHECK_FUNCS(getauxval). | |
1260 | * config.in: Re-generated. | |
1261 | * configure: Re-generated. | |
1262 | * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p): | |
1263 | Declare. | |
1264 | * nat/ppc-linux.c: New file. | |
1265 | * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]: | |
1266 | Call ppc64_64bit_inferior_p. | |
1267 | ||
514c5338 YQ |
1268 | 2015-01-14 Yao Qi <yao@codesourcery.com> |
1269 | ||
1270 | * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to | |
1271 | nat/ppc-linux.h. | |
1272 | (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise. | |
1273 | (PPC_FEATURE_HAS_DFP): Likewise. | |
1274 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise. | |
1275 | (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise. | |
1276 | (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise. | |
1277 | Include "nat/ppc-linux.h". | |
1278 | * nat/ppc-linux.h: New file. | |
1279 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h. | |
1280 | ||
5589af0e PA |
1281 | 2015-01-14 Pedro Alves <palves@redhat.com> |
1282 | ||
1283 | PR gdb/17525 | |
1284 | * breakpoint.c: Include "interps.h". | |
1285 | (bpstat_do_actions_1): Also check whether the interpreter is | |
1286 | async. | |
1287 | ||
6c400b59 PA |
1288 | 2015-01-14 Pedro Alves <palves@redhat.com> |
1289 | ||
1290 | PR cli/17828 | |
1291 | * infrun.c (reinstall_readline_callback_handler_cleanup): Don't | |
1292 | reinstall if the interpreter is sync. | |
1293 | ||
e02c96a7 DE |
1294 | 2015-01-13 Doug Evans <dje@google.com> |
1295 | ||
1296 | * objfiles.c (objfile_filename): New function. | |
1297 | * objfiles.h (objfile_filename): Declare it. | |
1298 | (objfile_name): Add function comment. | |
1299 | * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the | |
1300 | bfd file name (which may be realpath'd), and the original name. | |
1301 | ||
3b2f13ff JB |
1302 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
1303 | ||
1304 | * NEWS: Create a new section for the next release branch. | |
1305 | Rename the section of the current branch, now that it has | |
1306 | been cut. | |
1307 | ||
b4cfe7f8 JB |
1308 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
1309 | ||
1310 | GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37): | |
1311 | * version.in: Bump version to 7.9.50.DATE-cvs. | |
1312 | ||
92fc2e69 JB |
1313 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
1314 | ||
1315 | * nat/linux-procfs.c (linux_proc_attach_tgid_threads): | |
1316 | Remove trailing new-line in argument of call to warning. | |
1317 | ||
f71f0b0d JB |
1318 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
1319 | ||
1320 | * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing | |
1321 | new-line in argument of call to "warning". | |
1322 | ||
04dccad0 JB |
1323 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
1324 | ||
1325 | * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found | |
1326 | in static block, then try searching for primitive types. | |
1327 | ||
08b13bdd PP |
1328 | 2015-01-12 Patrick Palka <patrick@parcs.ath.cx> |
1329 | ||
1330 | * top.h (gdb_add_history): Declare. | |
1331 | * top.c (command_count): New variable. | |
1332 | (gdb_add_history): New function. | |
1333 | (gdb_safe_append_history): New static function. | |
1334 | (quit_force): Call it. | |
1335 | (command_line_input): Use gdb_add_history instead of | |
1336 | add_history. | |
1337 | * event-top.c (command_line_handler): Likewise. | |
1338 | ||
4ac15b59 JC |
1339 | 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch) |
1340 | ||
1341 | PR gdb/17046 | |
1342 | * darwin-nat.c: Replace <machine/setjmp.h> #include by | |
1343 | <setjmp.h> #include. | |
1344 | ||
005e54bb DE |
1345 | 2015-01-11 Doug Evans <xdje42@gmail.com> |
1346 | ||
1347 | * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME. | |
1348 | ||
439250fb DE |
1349 | 2015-01-11 Doug Evans <xdje42@gmail.com> |
1350 | ||
1351 | PR gdb/15830 | |
1352 | * NEWS: The "maint demangle" command is renamed as "demangle". | |
1353 | * demangle.c: #include cli/cli-utils.h, language.h. | |
1354 | (demangle_command): New function. | |
1355 | (_initialize_demangle): Add new command "demangle". | |
1356 | * maint.c (maintenance_demangle): Stub out. | |
1357 | (_initialize_maint_cmds): Update help text for "maint demangle", | |
1358 | and mark as deprecated. | |
1359 | ||
ebf3aa72 MK |
1360 | 2015-01-11 Mark Kettenis <kettenis@gnu.org> |
1361 | ||
1362 | * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that | |
1363 | inferior_thread is a function. | |
1364 | ||
6bf045cd PP |
1365 | 2015-01-09 Patrick Palka <patrick@parcs.ath.cx> |
1366 | ||
1367 | * Makefile.in (.y.c): Don't munge yacc's #line | |
1368 | directives. | |
1369 | ||
588dcc3e PP |
1370 | 2015-01-09 Patrick Palka <patrick@parcs.ath.cx> |
1371 | ||
1372 | * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper | |
1373 | to prompt for input. | |
1374 | * tui/tui-hooks.c (tui_query_hook): Remove. | |
1375 | (tui_install_hooks): Don't set deprecated_query_hook. | |
1376 | * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in | |
1377 | height calculation. Always update the command window's cur_line. | |
1378 | ||
9c02b525 PA |
1379 | 2015-01-09 Pedro Alves <palves@redhat.com> |
1380 | ||
1381 | * breakpoint.c (hardware_breakpoint_inserted_here_p): New | |
1382 | function. | |
1383 | * breakpoint.h (hardware_breakpoint_inserted_here_p): New | |
1384 | declaration. | |
1385 | * linux-nat.c (linux_nat_status_is_event): Move higher up in file. | |
1386 | (linux_resume_one_lwp): Store the thread's PC. Adjust to clear | |
1387 | stop_reason. | |
1388 | (check_stopped_by_watchpoint): New function. | |
1389 | (save_sigtrap): Reimplement. | |
1390 | (linux_nat_stopped_by_watchpoint): Adjust. | |
1391 | (linux_nat_lp_status_is_event): Delete. | |
1392 | (stop_wait_callback): Only call save_sigtrap after storing the | |
1393 | pending status. | |
1394 | (status_callback): If the thread had been stopped for a breakpoint | |
1395 | that has since been removed, discard the event and resume the LWP. | |
1396 | (count_events_callback, select_event_lwp_callback): Use | |
1397 | lwp_status_pending_p instead of linux_nat_lp_status_is_event. | |
1398 | (cancel_breakpoint): Rename to ... | |
1399 | (check_stopped_by_breakpoint): ... this. Record whether the LWP | |
1400 | stopped for a software breakpoint or hardware breakpoint. | |
1401 | (select_event_lwp): Only give preference to the stepping LWP in | |
1402 | all-stop mode. Adjust comments. | |
1403 | (stop_and_resume_callback): Remove references to new_pending_p. | |
1404 | (linux_nat_filter_event): Likewise. Leave exit events of the | |
1405 | leader thread pending here. Handle signal short circuiting here. | |
1406 | Only call save_sigtrap after storing the pending waitstatus. | |
1407 | (linux_nat_wait_1): Remove 'retry' label. Remove references to | |
1408 | new_pending. Don't handle leaving events the caller is not | |
1409 | interested in pending here, nor handle signal short-circuiting | |
1410 | here. Also give equal priority to all LWPs that have had events | |
1411 | in non-stop mode. If reporting a software breakpoint event, | |
1412 | unadjust the LWP's PC. | |
1413 | * linux-nat.h (enum lwp_stop_reason): New. | |
1414 | (struct lwp_info) <stop_pc>: New field. | |
1415 | (struct lwp_info) <stopped_by_watchpoint>: Delete field. | |
1416 | (struct lwp_info) <stop_reason>: New field. | |
1417 | * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust. | |
1418 | ||
8af756ef PA |
1419 | 2015-01-09 Pedro Alves <palves@redhat.com> |
1420 | ||
1421 | * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>: | |
1422 | Set the LWP's 'resumed' flag. | |
1423 | ||
8a99810d PA |
1424 | 2015-01-09 Pedro Alves <palves@redhat.com> |
1425 | ||
1426 | * linux-nat.c (linux_resume_one_lwp): New function. | |
1427 | (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp. | |
1428 | (linux_nat_resume): Use lwp_status_pending_p and | |
1429 | linux_resume_one_lwp. | |
1430 | (linux_handle_syscall_trap): Use linux_resume_one_lwp. | |
1431 | (linux_handle_extended_wait): Use linux_resume_one_lwp. | |
1432 | (status_callback, running_callback): Use lwp_status_pending_p. | |
1433 | (lwp_status_pending_p): New function. | |
1434 | (stop_and_resume_callback): Use lwp_status_pending_p. | |
1435 | (linux_nat_filter_event): Use linux_resume_one_lwp. | |
1436 | (linux_nat_wait_1): Always use status_callback to look for an LWP | |
1437 | with a pending status. Use linux_resume_one_lwp. | |
1438 | (resume_stopped_resumed_lwps): Use lwp_status_pending_p and | |
1439 | linux_resume_one_lwp. | |
1440 | ||
f7ce857f PA |
1441 | 2015-01-09 Pedro Alves <palves@redhat.com> |
1442 | ||
1443 | * breakpoint.c (bp_location_inserted_here_p): New function, | |
1444 | factored out from ... | |
1445 | (breakpoint_inserted_here_p): ... here. Use | |
1446 | ALL_BP_LOCATIONS_AT_ADDR. | |
1447 | (software_breakpoint_inserted_here_p): Use | |
1448 | bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR. | |
1449 | ||
c1a747c1 PA |
1450 | 2014-01-09 Pedro Alves <palves@redhat.com> |
1451 | ||
1452 | Skip enabling event reporting if the kernel supports | |
1453 | PTRACE_EVENT_CLONE. | |
1454 | * linux-thread-db.c: Include "nat/linux-ptrace.h". | |
1455 | (thread_db_use_events): New function. | |
1456 | (try_thread_db_load_1): Check thread_db_use_events before enabling | |
1457 | event reporting. | |
1458 | (update_thread_state): New function. | |
1459 | (attach_thread): Use it. Check thread_db_use_events before | |
1460 | enabling event reporting. | |
1461 | (thread_db_detach): Check thread_db_use_events before disabling | |
1462 | event reporting. | |
1463 | (find_new_threads_callback): Check thread_db_use_events before | |
1464 | enabling event reporting. Update the thread's state if not using | |
1465 | libthread_db events. | |
1466 | ||
a33e3959 PA |
1467 | 2015-01-09 Pedro Alves <palves@redhat.com> |
1468 | ||
1469 | * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're | |
1470 | about to wait for is > 0. | |
1471 | * linux-thread-db.c (find_new_threads_callback): Ignore thread if | |
1472 | the kernel thread ID is -1. | |
1473 | ||
8784d563 PA |
1474 | 2015-01-09 Pedro Alves <palves@redhat.com> |
1475 | ||
1476 | * linux-nat.c (attach_proc_task_lwp_callback): New function. | |
1477 | (linux_nat_attach): Use linux_proc_attach_tgid_threads. | |
1478 | (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's | |
1479 | ptrace option flags. | |
1480 | * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New | |
1481 | field. | |
1482 | * nat/linux-procfs.c: Include <dirent.h>. | |
1483 | (linux_proc_get_int): New parameter "warn". Handle it. | |
1484 | (linux_proc_get_tgid): Adjust. | |
1485 | (linux_proc_get_tracerpid): Rename to ... | |
1486 | (linux_proc_get_tracerpid_nowarn): ... this. | |
1487 | (linux_proc_pid_get_state): New function, factored out from | |
1488 | (linux_proc_pid_has_state): ... this. Add new parameter "warn" | |
1489 | and handle it. | |
1490 | (linux_proc_pid_is_gone): New function. | |
1491 | (linux_proc_pid_is_stopped): Adjust. | |
1492 | (linux_proc_pid_is_zombie_maybe_warn) | |
1493 | (linux_proc_pid_is_zombie_nowarn): New functions. | |
1494 | (linux_proc_pid_is_zombie): Use | |
1495 | linux_proc_pid_is_zombie_maybe_warn. | |
1496 | (linux_proc_attach_tgid_threads): New function. | |
1497 | * nat/linux-procfs.h (linux_proc_get_tgid): Update comment. | |
1498 | (linux_proc_get_tracerpid): Rename to ... | |
1499 | (linux_proc_get_tracerpid_nowarn): ... this, and update comment. | |
1500 | (linux_proc_pid_is_gone): New declaration. | |
1501 | (linux_proc_pid_is_zombie): Update comment. | |
1502 | (linux_proc_pid_is_zombie_nowarn): New declaration. | |
1503 | (linux_proc_attach_lwp_func): New typedef. | |
1504 | (linux_proc_attach_tgid_threads): New declaration. | |
1505 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to | |
1506 | use nowarn functions. | |
1507 | (linux_ptrace_attach_fail_reason_string): Move here from | |
1508 | gdbserver/linux-low.c and rename. | |
1509 | (ptrace_supports_feature): If the current ptrace options are not | |
1510 | known yet, check them now, instead of asserting. | |
1511 | * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string): | |
1512 | Declare. | |
1513 | ||
883ed13e PA |
1514 | 2015-01-09 Pedro Alves <palves@redhat.com> |
1515 | ||
1516 | * linux-thread-db.c (thread_db_find_new_threads_silently) | |
1517 | (try_thread_db_load_1, try_thread_db_load, thread_db_load_search) | |
1518 | (find_new_threads_once): Print debug output on gdb_stdlog. | |
1519 | ||
1710aab8 CG |
1520 | 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com> |
1521 | Pedro Alves <palves@redhat.com> | |
1522 | ||
1523 | * compile/compile.c: Include "gdb_wait.h". | |
1524 | (do_rmdir): Check return value, and free 'zap'. | |
1525 | ||
b597c318 YQ |
1526 | 2015-01-08 Pedro Alves <palves@redhat.com> |
1527 | Yao Qi <yao@codesourcery.com> | |
1528 | ||
1529 | * dwarf2loc.c (indirect_pieced_value): Don't call | |
1530 | gdb_sign_extend. Call extract_signed_integer instead. | |
1531 | * utils.c (gdb_sign_extend): Remove. | |
1532 | * utils.h (gdb_sign_extend): Remove declaration. | |
1533 | ||
025ac414 PM |
1534 | 2015-01-07 Pierre Muller <muller@sourceware.org> |
1535 | ||
1536 | PR symtab/17811 | |
1537 | * stabsread.c (define_symbol): Set language for C++ special symbols. | |
1538 | ||
fa5af12a PP |
1539 | 2015-01-07 Patrick Palka <patrick@parcs.ath.cx> |
1540 | ||
1541 | * inflow.c (initial_gdb_ttystate): Tweak comment. | |
1542 | ||
ea42d6f8 JB |
1543 | 2015-01-07 Joel Brobecker <brobecker@adacore.com> |
1544 | ||
1545 | * inflow.c (set_initial_gdb_ttystate): Add empty line after | |
1546 | comment documenting function. | |
1547 | ||
6a06d660 PP |
1548 | 2015-01-07 Patrick Palka <patrick@parcs.ath.cx> |
1549 | ||
1550 | * terminal.h (set_initial_gdb_ttystate): Declare. | |
1551 | * inflow.c (initial_gdb_ttystate): New static variable. | |
1552 | (set_initial_gdb_ttystate): New setter. | |
1553 | (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate | |
1554 | instead of our current terminal state. | |
1555 | * top.c (gdb_init): Call set_initial_gdb_ttystate. | |
1556 | ||
e810d75b JB |
1557 | 2015-01-07 Joel Brobecker <brobecker@adacore.com> |
1558 | ||
1559 | * guile/scm-type.c (tyscm_array_1): Add comment. | |
1560 | * python/py-type.c (typy_array_1): Add comment. | |
1561 | ||
fce10a84 JB |
1562 | 2015-01-06 Joel Brobecker <brobecker@adacore.com> |
1563 | ||
1564 | * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range | |
1565 | error if N2 is equal to N1 - 1. | |
1566 | ||
8503d6e1 JB |
1567 | 2015-01-06 Joel Brobecker <brobecker@adacore.com> |
1568 | ||
1569 | * python/py-type.c (typy_array_1): Do not raise negative-length | |
1570 | exception if N2 is equal to N1 - 1. | |
1571 | ||
4d29c0a8 DE |
1572 | 2015-01-03 Doug Evans <xdje42@gmail.com> |
1573 | ||
1574 | * c-exp.y: Whitespace cleanup. | |
1575 | (classify_inner_name): Remove extra ;. | |
1576 | ||
eaa6a9a4 MR |
1577 | 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com> |
1578 | ||
1579 | * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack | |
1580 | offset signed. | |
1581 | ||
02fe9972 DE |
1582 | 2015-01-02 Doug Evans <dje@google.com> |
1583 | ||
1584 | * dwarf2read.c (setup_type_unit_groups): Remove outdated comment. | |
1585 | ||
e2ada9cb DE |
1586 | 2015-01-02 Doug Evans <dje@google.com> |
1587 | ||
1588 | * symtab.h (struct symbol): Fix typo in comment. | |
1589 | ||
32d0add0 JB |
1590 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
1591 | ||
1592 | Update year range in copyright notice of all files. | |
1593 | ||
76f2b779 JB |
1594 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
1595 | ||
1596 | * top.c (print_gdb_version): Update copyright year to 2015. | |
1597 | ||
077309e2 | 1598 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
6bf6fd09 | 1599 | |
077309e2 | 1600 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014. |
6bf6fd09 | 1601 | |
077309e2 | 1602 | For older changes see ChangeLog-2014. |
c906108c SS |
1603 | \f |
1604 | Local Variables: | |
1605 | mode: change-log | |
1606 | left-margin: 8 | |
1607 | fill-column: 74 | |
1608 | version-control: never | |
57da7796 | 1609 | coding: utf-8 |
c906108c | 1610 | End: |