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