New field la_varobj_ops in struct language_defn
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-10-25 Yao Qi <yao@codesourcery.com>
2
3 * language.h (struct lang_varobj_ops): Declare.
4 (struct language_defn) <la_varobj_ops>: New field.
5 * ada-lang.c: Include "varobj.h"
6 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
7 ada_varobj_ops.
8 * c-lang.c: Include "varobj.h"
9 (c_language_defn): Initialize field 'la_varobj_ops' with
10 c_varobj_ops.
11 (cplus_language_defn): Initialize field 'la_varobj_ops' with
12 cplus_varobj_ops.
13 (asm_language_defn): Initialize field 'la_varobj_ops' with
14 default_varobj_ops.
15 (minimal_language_defn): Likewise.
16 * d-lang.c (d_language_defn): Likewise.
17 * f-lang.c (f_language_defn): Likewise.
18 * go-lang.c (go_language_defn): Likewise.
19 * m2-lang.c (m2_language_defn): Likewise.
20 * objc-lang.c (objc_language_defn): Likewise.
21 * opencl-lang.c (opencl_language_defn): Likewise.
22 * p-lang.c (pascal_language_defn): Likewise.
23 * language.c (unknown_language_defn): Likewise.
24 (auto_language_defn): Likewise.
25 (local_language_defn): Likewise.
26 * jv-lang.c (java_language_defn): Initialize field
27 'la_varobj_ops' with java_varobj_ops.
28 * varobj.c (varobj_create): Update.
29 * varobj.h (default_varobj_ops): Define macro.
30
31 2013-10-25 Pedro Alves <palves@redhat.com>
32
33 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
34 static field value.
35 (cp_print_static_field): If the value is entirely optimized out,
36 print <optimized out> here.
37 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
38 static field value.
39 * p-valprint.c (pascal_object_print_static_field): If the value is
40 entirely optimized out, print <optimized out> here.
41 * valops.c (do_search_struct_field)
42 (value_struct_elt_for_reference): No longer handle a NULL static
43 field value.
44 * value.c (value_static_field): Return an optimized out value
45 instead of NULL.
46
47 2013-10-25 Yao Qi <yao@codesourcery.com>
48
49 * remote.c (remote_traceframe_info): Return early if
50 traceframe is not selected.
51
52 2013-10-25 Yao Qi <yao@codesourcery.com>
53
54 * tracepoint.c (traceframe_fun): Remove.
55 (traceframe_sal): Remove.
56 (set_traceframe_context): Add local variables.
57
58 2013-10-25 Joel Brobecker <brobecker@adacore.com>
59
60 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
61 and parameter name.
62
63 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
64
65 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
66 failure from register information collection.
67
68 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
69
70 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
71 member.
72 (linux_corefile_thread_callback): Update accordingly.
73 (linux_make_corefile_notes): Likewise.
74
75 2013-10-24 Pedro Alves <palves@redhat.com>
76
77 * NEWS (New options): Mention set/show startup-with-shell.
78 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
79 instead of 3.
80 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
81 startup-with-shell'.
82 (show_startup_with_shell): New function.
83 (_initialize_fork_child): Register the set/show startup-with-shell
84 commands.
85 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
86 * inf-ttrace.c (inf_ttrace_him): Remove comment.
87 * procfs.c (procfs_init_inferior): Remove comment.
88 * infcmd.c (startup_with_shell): New global.
89 * inferior.h (startup_with_shell): Declare global.
90 (STARTUP_WITH_SHELL): Delete.
91 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
92
93 2013-10-23 Pedro Alves <palves@redhat.com>
94
95 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
96 * common/signals.c: Include "gdb_assert.h".
97 (signals): New field 'symbol'.
98 (SET): Use the 'symbol' parameter.
99 (gdb_signal_to_symbol_string): New function.
100 * infrun.c (handle_inferior_event) <random signal>: In debug
101 output, print the random signal enum as string in addition to its
102 number.
103 * target/waitstatus.c (target_waitstatus_to_string): Print the
104 signal's enum value as string instead of the (POSIX) signal name.
105
106 2013-10-23 Gary Benson <gbenson@redhat.com>
107
108 PR 16013
109 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
110 from 32 to 18. Adjusted fscanf format string accordingly.
111 (Avoids leaving cmd unterminated.)
112 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
113 trun, retn or extra. (Avoids leaving extra unterminated.) Check
114 that local_address and remote_address will not overflow.
115 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
116 leaving dependencies unterminated. Parse size as "%u" to match
117 definition.
118
119 2013-10-22 Pedro Alves <palves@redhat.com>
120
121 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
122 set ecs->random signal.
123
124 2013-10-22 Pedro Alves <palves@redhat.com>
125
126 * infrun.c (keep_going): Update comments.
127
128 2013-10-22 Pedro Alves <palves@redhat.com>
129
130 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
131 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
132
133 2013-10-22 Pedro Alves <palves@redhat.com>
134
135 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
136 GDB_EXC_BAD_ACCESS.
137 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
138 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
139 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
140 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
141 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
142 (GDB_SIGNAL_LAST): Change description string.
143 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
144 Adjust to signal renaming.
145 * darwin-nat.c (darwin_decode_message): Likewise.
146
147 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
148
149 * MAINTAINERS (Write After Approval): Add myself to the list.
150
151 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
152
153 * breakpoint.c (update_watchpoint): If hardware watchpoints are
154 forced off, downgrade them to software watchpoints if possible,
155 and error out if not possible.
156 (watch_command_1): Move watchpoint type selection closer to
157 watchpoint creation, and extend the comments.
158
159 2013-10-18 Pedro Alves <palves@redhat.com>
160
161 PR gdb/16062
162 * infrun.c (handle_inferior_event): Keep going if we got a random
163 signal we should not stop for, instead of falling through to the
164 step tests.
165
166 2013-10-18 Yao Qi <yao@codesourcery.com>
167
168 * c-varobj.c (cplus_number_of_children): Fix indentation.
169
170 2013-10-17 Tom Tromey <tromey@redhat.com>
171
172 PR gdb/15995:
173 * printcmd.c (printcmd): Call gdb_flush.
174
175 2013-10-17 Tom Tromey <tromey@redhat.com>
176
177 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
178 (elf_locate_sections): Update.
179
180 2013-10-17 Yao Qi <yao@codesourcery.com>
181
182 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
183 * ada-varobj.c: Remove the include of ada-varobj.h.
184 (ada_varobj_get_number_of_children): Declare.
185 (ada_varobj_get_name_of_child): Make it static.
186 (ada_varobj_get_path_expr_of_child): Likewise.
187 (ada_varobj_get_value_of_child): Likewise.
188 (ada_varobj_get_type_of_child): Likewise.
189 (ada_varobj_get_value_of_array_variable): Likewise.
190 * ada-varobj.h: Remove.
191
192 2013-10-17 Yao Qi <yao@codesourcery.com>
193
194 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
195 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
196 * ada-varobj.c: Include "varobj.h".
197 (ada_number_of_children): New. Moved from varobj.c.
198 (ada_name_of_variable, ada_name_of_child): Likewise.
199 (ada_path_expr_of_child, ada_value_of_child): Likewise.
200 (ada_type_of_child, ada_value_of_variable): Likewise.
201 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
202 (ada_varobj_ops): New.
203 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
204 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
205 * gdbtypes.h (get_target_type): Declare.
206 * varobj.c: Remove the inclusion of "ada-varobj.h" and
207 "ada-lang.h".
208 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
209 (ANONYMOUS_UNION_NAME): Likewise.
210 (get_type, get_value_type, get_target_type): Remove declarations.
211 (value_get_print_value, varobj_value_get_print_value): Likewise.
212 (c_number_of_children, c_name_of_variable): Likewise.
213 (c_name_of_child, c_path_expr_of_child): Likewise.
214 (c_value_of_child, c_type_of_child): Likewise.
215 (c_value_of_variable, cplus_number_of_children): Likewise.
216 (cplus_class_num_children, cplus_name_of_variable): Likewise.
217 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
218 (cplus_value_of_child, cplus_type_of_child): Likewise.
219 (cplus_value_of_variable, java_number_of_children): Likewise.
220 (java_name_of_variable, java_name_of_child): Likewise.
221 (java_path_expr_of_child, java_value_of_child): Likewise.
222 (java_type_of_child, java_value_of_variable): Likewise.
223 (ada_number_of_children, ada_name_of_variable): Likewise.
224 (ada_name_of_child, ada_path_expr_of_child): Likewise.
225 (ada_value_of_child, ada_type_of_child): Likewise.
226 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
227 (ada_value_has_mutated): Likewise.
228 (struct language_specific): Move it to varobj.h.
229 (CPLUS_FAKE_CHILD): Move it to varobj.h.
230 (restrict_range): Rename it varobj_restrict_range. Make it extern.
231 Callers update.
232 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
233 Make it extern.
234 (is_anonymous_child): Move it to c-varobj.c and rename to
235 varobj_is_anonymous_child. Caller update.
236 (get_type): Move it to c-varobj.c.
237 (get_value_type): Rename it varobj_get_value_type. Make it
238 extern.
239 (get_target_type): Move it gdbtypes.c.
240 (varobj_formatted_print_options): New function.
241 (value_get_print_value): Rename it to
242 varobj_value_get_print_value and make it extern.
243 (varobj_value_is_changeable_p): Make it extern.
244 (adjust_value_for_child_access): Move it to c-varobj.c.
245 (default_value_is_changeable_p): Rename it to
246 varobj_default_value_is_changeable_p. Make it extern.
247 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
248 (c_name_of_child, c_path_expr_of_child): Likewise.
249 (c_value_of_child, c_type_of_child): Likewise.
250 (c_value_of_variable, cplus_number_of_children): Likewise.
251 (cplus_class_num_children, cplus_name_of_variable): Likewise.
252 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
253 (cplus_value_of_child, cplus_type_of_child): Likewise.
254 (cplus_value_of_variable): Likewise.
255 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
256 (java_name_of_child, java_path_expr_of_child): Likewise.
257 (java_value_of_child, java_type_of_child): Likewise.
258 (java_value_of_variable): Likewise.
259 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
260 (ada_name_of_child, ada_path_expr_of_child): Likewise.
261 (ada_value_of_child, ada_type_of_child): Likewise.
262 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
263 (ada_value_has_mutated): Likewise.
264 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
265 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
266 (c_varobj_ops, cplus_varobj_ops): Declare.
267 (java_varobj_ops, ada_varobj_ops): Declare.
268 (varobj_default_value_is_changeable_p): Declare.
269 (varobj_value_is_changeable_p): Declare.
270 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
271 (varobj_get_path_expr_parent): Declare.
272 (varobj_value_get_print_value): Declare.
273 (varobj_formatted_print_options): Declare.
274 (varobj_restrict_range): Declare.
275
276 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
277
278 * target/waitstatus.h (target_waitkind): Remove spurious
279 character from the comments.
280
281 2013-10-17 Joel Brobecker <brobecker@adacore.com>
282
283 * gdbarch.sh (get_longjmp_target): Add method documentation.
284 * gdbarch.h: Regenerate.
285
286 2013-10-16 Tom Tromey <tromey@redhat.com>
287
288 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
289 label.
290
291 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
292
293 * gcore.in: Call GDB using the full path to the gcore script.
294 Error out if the GDB binary is not found.
295
296 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
297
298 PR gdb/16014
299 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
300 sizeof.
301
302 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
303
304 PR gdb/16042
305 * target.c (target_disable_btrace): Fix invalid return value for
306 void function.
307 (target_teardown_btrace): Likewise.
308
309 2013-10-14 Yao Qi <yao@codesourcery.com>
310
311 * varobj.c (struct varobj): Move most of the fields to
312 varobj.h.
313 (struct varobj_dynamic): New struct.
314 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
315 (varobj_has_more): Likewise.
316 (dynamic_varobj_has_child_method): Likewise.
317 (update_dynamic_varobj_children): Likewise.
318 (varobj_get_num_children): Likewise.
319 (varobj_list_children, varobj_pretty_printed_p): Likewise.
320 (install_new_value_visualizer): Likewise.
321 (install_new_value_visualizer, install_new_value): Likewise.
322 (varobj_update, new_variable, free_variable): Likewise.
323 (my_value_of_variable, value_get_print_value): Likewise.
324 (install_visualizer): Change the type of parameter 'var' to
325 'struct varobjd_dynamic *'. Callers update.
326 * varobj.h (struct varobj): Moved from varobj.c.
327 (struct varobj) <dynamic>: New field.
328
329 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
330
331 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
332 as the preferred name of r30.
333 * nios2-linux-tdep.c (reg_offsets): Likewise.
334 * features/nios2-cpu.xml: Likewise.
335 * features/nios2-linux.c: Regenerated.
336 * features/nios2.c: Regenerated.
337 * regformats/nios2-linux.dat: Regenerated.
338
339 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
340
341 Canonicalize directories for EXEC_FILENAME.
342 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
343 exec_filename.
344 * utils.c (gdb_realpath_keepfile): New function.
345 * utils.h (gdb_realpath_keepfile): New declaration.
346
347 2013-10-11 Doug Evans <dje@google.com>
348
349 * Makefile.in (GDBFLAGS): New variable.
350 (run): New rule.
351
352 2013-10-11 Joel Brobecker <brobecker@adacore.com>
353
354 * NEWS: Add entry documenting the new "-catch-assert" and
355 "-catch-exception" GDB/MI commands.
356
357 2013-10-11 Joel Brobecker <brobecker@adacore.com>
358
359 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
360 "enabled".
361 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
362 "enabled". Set B->ENABLE_STATE accordingly.
363 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
364 ada-lang.c.
365 (create_ada_exception_catchpoint): Add declaration.
366 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
367 (create_ada_exception_catchpoint): Make non-static. Add new
368 parameter "disabled". Use it in call to
369 init_ada_exception_breakpoint.
370 (catch_ada_exception_command): Add parameter "enabled" in call
371 to create_ada_exception_catchpoint.
372 (catch_assert_command): Likewise.
373
374 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
375 Add declarations.
376 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
377 "catch-exception" commands.
378 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
379 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
380
381 2013-10-11 Joel Brobecker <brobecker@adacore.com>
382
383 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
384 "enum exception_catchpoint_kind". Replace the "ex_" prefix
385 of all its enumerates with "ada_". Update the rest of this
386 file throughout.
387
388 2013-10-11 Joel Brobecker <brobecker@adacore.com>
389
390 * ada-lang.c (ada_decode_exception_location): Delete.
391 (create_ada_exception_catchpoint): Remove arguments "sal",
392 "addr_string" and "ops". Add argument "ex_kind" instead.
393 Adjust implementation accordingly, calling ada_exception_sal
394 to get the entities it no longer gets passed as arguments.
395 Document the function's arguments.
396 (catch_ada_exception_command): Use catch_ada_exception_command_split
397 instead of ada_decode_exception_location, and update call to
398 create_ada_exception_catchpoint.
399 (catch_ada_assert_command_split): Renames
400 ada_decode_assert_location. Remove parameters "addr_string" and
401 "ops", and now returns void. Adjust implementation accordingly.
402 Update the function documentation.
403 (catch_assert_command): Use catch_ada_assert_command_split
404 instead of ada_decode_assert_location. Update call to
405 create_ada_exception_catchpoint.
406
407 2013-10-11 Joel Brobecker <brobecker@adacore.com>
408
409 * utils.h (perror_warning_with_name): Add declaration.
410 * utils.c (perror_warning_with_name): New function.
411 * cli/cli-cmds.c (source_script_with_search): Add call to
412 perror_warning_with_name if from_tty is nul.
413
414 2013-10-11 Joel Brobecker <brobecker@adacore.com>
415
416 * utils.c (perror_string): New function, extracted out of
417 throw_perror_with_name.
418 (throw_perror_with_name): Rework to use perror_string.
419
420 2013-10-11 Yao Qi <yao@codesourcery.com>
421
422 * remote.c (discard_pending_stop_replies_in_queue): Update
423 declaration.
424 (struct stop_reply) <rs>: New field.
425 (remove_stop_reply_of_remote_state): New function.
426 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
427 Callers update. Pass remove_stop_reply_of_remote_state to
428 QUEUE_iterate.
429 (remote_parse_stop_reply): Initialize field 'rs'.
430
431 2013-10-10 Will Newton <will.newton@linaro.org>
432
433 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
434 linux_init_abi.
435
436 2013-10-10 Joel Brobecker <brobecker@adacore.com>
437
438 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
439 serial_baud_show_cmd.
440 (_initialize_cli_cmds): Delete the code creating the
441 "set/show remotebaud" commands.
442 * serial.c (baud_rate): Move here from top.c.
443 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
444 (_initialize_serial): Create "set/show serial baud" commands.
445 Add "set/show remotebaud" command aliases.
446 * top.c (baud_rate): Moved to serial.c.
447 * NEWS: Document the new "set/show serial baud" commands,
448 replacing "set/show remotebaud".
449
450 2013-10-09 Pedro Alves <palves@redhat.com>
451
452 * breakpoint.c (insert_bp_location): Use memory_error_message to
453 build the memory error string.
454 * c-lang.c: Include "gdbcore.h".
455 (c_get_string): Use memory_error to throw error.
456 (target_xfer_memory_error): Delete.
457 (memory_error_message): New, factored out from
458 target_xfer_memory_error.
459 (memory_error): Change parameter type to target_xfer_error.
460 Rewrite.
461 (read_memory): Use memory_error instead of
462 target_xfer_memory_error.
463 * gdbcore.h: Include "target.h".
464 (memory_error): Change parameter type to target_xfer_error.
465 (memory_error_message): Declare function.
466 * target.c (target_read_memory, target_read_stack)
467 (target_write_memory, target_write_raw_memory): Return
468 TARGET_XFER_E_IO on error. Adjust comments.
469 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
470 instead of EIO.
471 * target.h (target_read, target_insert_breakpoint)
472 (target_remove_breakpoint): Adjust comments.
473 * valprint.c (partial_memory_read): Rename parameter, and adjust
474 comment.
475 (val_print_string): Use memory_error_message to build the memory
476 error string.
477
478 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
479
480 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
481 result variable. Rename variable fopen_e_ever_failed to
482 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
483
484 2013-10-09 Pedro Alves <palves@redhat.com>
485
486 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
487 (monitor_write_memory_longlongs, monitor_write_memory_block):
488 Constify 'myaddr' parameter.
489 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
490 helper.
491 (monitor_xfer_partial): New function.
492 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
493 hook. Install a to_xfer_partial hook.
494
495 2013-10-09 Tom Tromey <tromey@redhat.com>
496
497 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
498 bfd_get_alt_debug_link_info.
499
500 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
501
502 New flag OBJF_NOT_FILENAME.
503 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
504 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
505 allocate_objfile.
506 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
507 symbol_file_add_from_bfd.
508 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
509 allocate_objfile.
510 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
511 NULL.
512 * objfiles.h (OBJF_NOT_FILENAME): New.
513
514 2013-10-08 Tom Tromey <tromey@redhat.com>
515
516 * Makefile.in (SFILES): Add build-id.c.
517 (HFILES_NO_SRCDIR): Add build-id.h.
518 * build-id.c: New file, largely from elfread.c. Modified
519 most functions.
520 * build-id.h: New file.
521 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
522 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
523 Search for dwz file using build-id.
524 * elfread.c (build_id_bfd_get, build_id_verify)
525 (build_id_to_debug_filename, find_separate_debug_file): Remove.
526
527 2013-10-08 Joel Brobecker <brobecker@adacore.com>
528
529 * ada-lang.c (compare_names_with_case): Renamed from
530 compare_names, adding a new parameter "casing" and its handling.
531 New function documentation.
532 (compare_names): New function, implemented using
533 compare_names_with_case.
534
535 2013-10-08 Joel Brobecker <brobecker@adacore.com>
536
537 * ada-lang.c (ada_exception_sal): Remove advance declaration.
538
539 2013-10-07 Tom Tromey <tromey@redhat.com>
540
541 * objfiles.c (free_objfile_per_bfd_storage): Delete the
542 demangled_names_hash.
543 (free_objfile): Don't delete the demangled_names_hash.
544 * objfiles.h (struct objfile_per_bfd_storage)
545 <demangled_names_hash>: New field.
546 (struct objfile) <demangled_names_hash>: Move to
547 objfile_per_bfd_storage.
548 * symfile.c (reread_symbols): Don't delete the
549 demangled_names_hash.
550 * symtab.c (create_demangled_names_hash): Update.
551 (symbol_set_names): Update.
552
553 2013-10-07 Tom Tromey <tromey@redhat.com>
554
555 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
556 needs_relocations>: New fields.
557 (gdb_bfd_requires_relocations): New function.
558 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
559 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
560 the BFD needs relocations applied.
561
562 2013-10-07 Pedro Alves <palves@redhat.com>
563
564 PR breakpoints/11568
565 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
566 the thread list" instead of "gone".
567
568 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
569
570 * NEWS: Mention new convenience variable $_exitsignal.
571 * corelow.c (core_open): Reset exit convenience variables. Set
572 $_exitsignal to the uncaught signal which generated the corefile.
573 * infrun.c (handle_inferior_event): Reset exit convenience
574 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
575 (clear_exit_convenience_vars): New function.
576 * inferior.h (clear_exit_convenience_vars): New prototype.
577
578 2013-10-06 Yao Qi <yao@codesourcery.com>
579
580 * varobj.h: Add comments to enum varobj_languages.
581
582 2013-10-04 Doug Evans <dje@google.com>
583
584 Add support for DWP file format version 2.
585 * NEWS: Mention support for DWP file format version 2.
586 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
587 union of asection, containing_section. New fields virtual_offset
588 and is_virtual. Change type of readin filed from int to char.
589 (dwo_sections, dwo_file): Tweak comments.
590 (dwp_v2_section_ids): New enum.
591 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
592 str_offsets, types.
593 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
594 All uses updated.
595 (virtual_v2_dwo_sections): New struct.
596 (dwp_hash_table): New fields version, nr_columns. Change type of
597 section_pool field to a union.
598 (dwp_file): New field version.
599 (dwarf2_has_info): Check for virtual sections.
600 (get_containing_section): New function.
601 (get_section_bfd_owner, get_section_bfd_section): Call it.
602 (dwarf2_locate_sections): Update.
603 (dwarf2_section_empty_p): Update.
604 (dwarf2_read_section): Handle virtual sections.
605 (locate_dwz_sections): Update.
606 (create_dwp_hash_table): Document and handle V2 format.
607 (locate_v1_virtual_dwo_sections): Renamed from
608 locate_virtual_dwo_sections and update. All callers updated.
609 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
610 Delete arg htab. Rename arg section_index to unit_index.
611 All callers updated.
612 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
613 All uses updated.
614 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
615 (lookup_dwo_unit_in_dwp): Add V2 support.
616 (dwarf2_locate_dwo_sections): Update.
617 (dwarf2_locate_common_dwp_sections): Renamed from
618 dwarf2_locate_dwp_sections and update. All callers updated.
619 (dwarf2_locate_v2_dwp_sections): New function.
620 (open_and_init_dwp_file): Add V2 support.
621 (read_str_index): New locals str_section, str_offsets_section.
622
623 2013-10-04 Pedro Alves <palves@redhat.com>
624
625 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
626 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
627 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
628 describing comments with references to ptid.h.
629 * common/ptid.h: Remove intro description of constructors,
630 accessors and predicates.
631 (struct ptid): Reformat.
632 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
633 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
634 describing comments.
635
636 2013-10-04 Joel Brobecker <brobecker@adacore.com>
637
638 * aix-thread.c (sync_threadlists): Add missing ')' in call
639 to ptid_build.
640
641 2013-10-04 Joel Brobecker <brobecker@adacore.com>
642
643 * procfs.c (procfs_init_inferior): Fix typo causing the build
644 to fail.
645
646 2013-10-04 Joel Brobecker <brobecker@adacore.com>
647
648 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
649
650 2013-10-04 Joel Brobecker <brobecker@adacore.com>
651
652 * mi/mi-main.c (run_one_inferior): Add function description.
653 Make ARG a pointer to an integer whose value determines whether
654 we should "run" or "start" the program.
655 (mi_cmd_exec_run): Add handling of the "--start" option.
656 Reject all other command-line options.
657 * NEWS: Add entry for "-exec-run"'s new "--start" option.
658
659 2013-10-04 Yao Qi <yao@codesourcery.com>
660
661 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
662 (struct notif_client) <pending_event>: Moved
663 to struct remote_notif_state.
664 <id>: New field.
665 (struct remote_notif_state) <pending_event>: New field.
666 (notif_event_xfree): Declare.
667 * remote-notif.c (handle_notification): Adjust.
668 (notif_event_xfree): New function.
669 (do_notif_event_xfree): Call notif_event_xfree.
670 (remote_notif_state_xfree): Call notif_event_xfree to free
671 each element in field pending_event.
672 * remote.c (discard_pending_stop_replies): Remove declaration.
673 (discard_pending_stop_replies_in_queue): Declare.
674 (remote_close): Call discard_pending_stop_replies_in_queue
675 instead of discard_pending_stop_replies.
676 (remote_start_remote): Adjust.
677 (stop_reply_xfree): Call notif_event_xfree.
678 (notif_client_stop): Adjust initialization.
679 (remote_notif_remove_all): Rename it to ...
680 (remove_stop_reply_for_inferior): ... this. Update comments.
681 Don't check INF is NULL.
682 (discard_pending_stop_replies): Return early if notif_state is
683 NULL. Adjust. Don't check INF is NULL.
684 (remote_notif_get_pending_events): Adjust.
685 (discard_pending_stop_replies_in_queue): New function.
686 (remote_wait_ns): Likewise.
687
688 2013-10-04 Yao Qi <yao@codesourcery.com>
689
690 * remote-notif.c (DECLARE_QUEUE_P): Remove.
691 (notif_queue): Remove.
692 (remote_notif_process): Add one parameter 'notif_queue'.
693 Update comments. Callers update.
694 (remote_async_get_pending_events_token): Remove.
695 (remote_notif_register_async_event_handler): Remove.
696 (remote_notif_unregister_async_event_handler): Remove.
697 (handle_notification): Add parameter 'notif_queue'. Update
698 comments. Callers update.
699 (notif_xfree): Remove.
700 (remote_notif_state_allocate): New function.
701 (remote_notif_state_xfree): New function.
702 (_initialize_notif): Remove code to allocate queue.
703 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
704 (struct remote_notif_state): New.
705 (handle_notification): Update declaration.
706 (remote_notif_process): Likewise.
707 (remote_notif_register_async_event_handler): Remove.
708 (remote_notif_unregister_async_event_handler): Remove.
709 (remote_notif_state_allocate): Declare.
710 (remote_notif_state_xfree): Declare.
711 * remote.c (struct remote_state) <notif_state>: New field.
712 (remote_close): Don't call
713 remote_notif_unregister_async_event_handler. Call
714 remote_notif_state_xfree.
715 (remote_open_1): Don't call
716 remote_notif_register_async_event_handler. Call
717 remote_notif_state_allocate.
718
719 2013-10-04 Yao Qi <yao@codesourcery.com>
720
721 * varobj.c (create_child_with_value): Remove 'const' from the
722 type of parameter 'name'.
723 (varobj_add_child): Likewise.
724 (install_dynamic_child): Remove 'const' from the type of
725 parameter 'name'.
726 (varobj_add_child): Likewise.
727 (create_child_with_value): Likewise. Update comments. Don't
728 duplicate 'name'.
729 (update_dynamic_varobj_children): Duplicate 'name'
730 and pass it to install_dynamic_child.
731
732 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
733
734 * python/py-value.c (convert_value_from_python): Move PyInt_Check
735 conversion logic to occur after PyLong_Check. Comment on order
736 change significance.
737 * python/py-arch.c (archpy_disassemble): Comment on order of
738 conversion for integers and longs.
739
740 2013-10-03 Pedro Alves <palves@redhat.com>
741
742 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
743 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
744 functions. Always test for PTRACE_O_TRACESYSGOOD even if
745 PTRACE_O_TRACEFORK is not supported.
746 (linux_test_for_tracesysgood): New function.
747 (linux_test_for_tracefork): New function, factored out from
748 linux_check_ptrace_features, and also don't kill child_pid here.
749
750 2013-10-03 Tristan Gingold <gingold@adacore.com>
751
752 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
753 Remove verbose error reporting. Use detected state to
754 thread_set_state call.
755 (i386_darwin_dr_get): Fix return type. Remove verbose error
756 report.
757 Remove trailing spaces.
758
759 2013-10-02 Pedro Alves <palves@redhat.com>
760
761 * cp-valprint.c (cp_print_value_fields): Adjust calls to
762 val_print_optimized_out.
763 * jv-valprint.c (java_print_value_fields): Likewise.
764 * p-valprint.c (pascal_object_print_value_fields): Likewise.
765 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
766 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
767 new optimized out value.
768 * findvar.c (address_from_register): Likewise.
769 * frame.c (put_frame_register): Tweak error string to say the
770 register was not saved, rather than optimized out.
771 * infcmd.c (default_print_one_register_info): Adjust call to
772 val_print_optimized_out. Use value_of_register instead of
773 get_frame_register_value.
774 * mi/mi-main.c (output_register): Use value_of_register instead of
775 get_frame_register_value.
776 * valprint.c (valprint_check_validity): Likewise.
777 (val_print_optimized_out): New value parameter. If the value is
778 lval_register, print <not saved> instead.
779 (value_check_printable, val_print_scalar_formatted): Adjust calls
780 to val_print_optimized_out.
781 * valprint.h (val_print_optimized_out): New value parameter.
782 * value.c (struct value) <optimized_out>: Extend comment.
783 (error_value_optimized_out): New function.
784 (require_not_optimized_out): Use it. Use a different string for
785 lval_register values.
786 * value.h (error_value_optimized_out): New declaration.
787 * NEWS: Mention <not saved>.
788
789 2013-10-02 Joel Brobecker <brobecker@adacore.com>
790
791 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
792 strcmp to compare two symtab filenames.
793
794 2013-10-02 Joel Brobecker <brobecker@adacore.com>
795
796 * symtab.c (search_symbols_equal): Delete.
797 (sort_search_symbols_remove_dups): Replace call to
798 search_symbols_equal by call to compare_search_syms,
799 adjusting as necessary.
800
801 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
802
803 PR python/15579
804
805 * python/python.c: Document gdb.execute command in Python help.
806
807 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
808
809 * python/py-frame.c (frame_info_to_frame_object): Use
810 gdbpy_convert_exception. Clean up Python object on failure.
811
812 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
813
814 * python/lib/gdb/command/frame_filters.py
815 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
816 (ShowFrameFilterPriority.invoke): Ditto.
817
818 2013-10-01 Keith Seitz <keiths@redhat.com>
819
820 * linespec.c (struct ls_parser): Make 'saved_arg' const.
821 (parse_linespec): Make 'argptr' const.
822 Remove temporary cast of 'argptr' to const char **.
823 (decode_line_full): Pass const pointer to parse_linespec.
824 (decode_line_1): Likewise.
825 (decode_objc): Make local variable 'new_argptr' const.
826 (find_function_symbols): Remove temporary cast to char *
827 to find_imps.
828 * objc-lang.c (find_imps): Make argument 'method' const.
829 Return const.
830 * objc-lang.h (find_imps): Likewise.
831
832 2013-10-01 Keith Seitz <keiths@redhat.com>
833
834 * completer.c (skip_quoted_chars): Make all arguments const.
835 Return const.
836 (skip_quoted): Likewise.
837 * completer.h (skip_quoted_chars): Likewise.
838 (skip_quoted): Likewise.
839 * defs.h (skip_quoted): Remove duplicate declaration.
840 * jv-exp.y: Include completer.h.
841 (yylex): Remove unneccessary cast to char * fro skip_quoted.
842 * p-exp.y: Include completer.h.
843
844 2013-10-01 Keith Seitz <keiths@redhat.com>
845
846 * c-exp.y (parse_number): Make first argument const.
847 Make a copy of the input to manipulate.
848 (c_parse_escape): Make first argument const.
849 Make local variable 'tokptr' const.
850 (parse_string_or_char): Make first two arguments const.
851 (macro_original_text): Make const.
852 (lex_one_token): Make local variable 'tokstart' const.
853 Likewise for local variables named 'p'.
854 Cast away const for struct stoken (temporary).
855 * c-lang.h (c_parse_escpae): Make first argument const.
856 * cli/cli-cmds.c (echo_command): Make local variable 'p'
857 const.
858 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
859 var_string case.
860 * f-exp.y (parse_number): Make first argument const.
861 (match_string_literal): Make local variable 'tokstart'
862 const.
863 (yylex): Make local variable 'p' const.
864 Cast away const for struct stoken (temporary).
865 * go-exp.y (parse_number): Make first argument const.
866 (parse_string_or_char): Likewise.
867 Make local variable 'tokstart' const.
868 (lex_one_token): Likewise for numerous locals called 'p'.
869 Cast away const for struct stoken (temporary).
870 * jv-exp.y (parse_number): Make first argument const.
871 Make local variables 'tokstart' and 'tokptr' const.
872 Cast away const for call to skip_quoted (temporary).
873 (yylex): Make local variable 'p' const.
874 Cast away const for struct stoken (temporary).
875 * m2-exp.y (parse_number): Make local variable 'p' const.
876 (yylex): Likewise for 'tokstart'.
877 Cast away const for struct stoken (temporary).
878 Make local variable 'p' const.
879 * macroexp.c (get_character_constant): Pass a const string
880 to c_parse_escape.
881 (get_string_literal): Likewise.
882 (macro_expand_next): Make first argument const.
883 Cast away const for init_shared_buffer.
884 * macroexp.h (macro_expand_next): Make first argument const.
885 * p-exp.y (yylex): Make a local copy of 'lexptr'.
886 Pass a const string to c_parse_escape.
887 Make local variables 'p' and 'namestart' const.
888 * parse.c (lexptr): Make const.
889 (prev_lexptr): Likewise.
890 (find_template_name_end): Return const.
891 Make argument const, too.
892 (parse_exp_in_context): Make first argument const.
893 Remove the entire const_hack.
894 (parse_exp_in_context_1): Make first argument const.
895 * parser-defs.h (find_template_name_end): Return const.
896 Make argument const, too.
897 (lexptr): Make const.
898 (prev_lexptr): Likewise.
899 * utils.c (parse_escape): Make second argument const.
900 * utils.h (parse_escape): Likewise.
901
902 2013-10-01 Keith Seitz <keiths@redhat.com>
903
904 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
905 is now const.
906 (block_lookup): Make 'raw_name' and 'name' const.
907 * ada-lex.l (processString): Update for struct stoken.ptr.
908 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
909 (operator_stoken): Likewise.
910 (lex_one_token): Remove temporary cast to char * for
911 'yylval.sval.ptr'.
912 * f-exp.y (yylex): Likewise.
913 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
914 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
915 * go-exp.y (lex_one_token): Remove temporary cast to char * for
916 'yylval.sval.ptr'.
917 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
918 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
919 * linespec.c (struct ls_parser): Make 'stream' const.
920 (find_parameter_list_end): Make argument 'input' and local
921 variable 'p' const.
922 (linespec_lexer_lex_string): Make local variables 'start' and
923 'p' const.
924 Use skip_spaces_const instead of skip_spaces.
925 (linespec_lexer_peek_token): Make local variable 'saved_stream'
926 const.
927 (parse_linespec): Temporarily cast 'argptr' to const for
928 'parser->lexer.stream'.
929 * m2-exp.y (yylex): Remove temporary cast to char * for
930 'yylval.sval.ptr'.
931 * objc-lang.c (add_msglist): Make local variable 'p' const.
932 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
933 (exp : STRING): Make 'sp' const.
934 (parse_number): Make argument 'p' const.
935 * parser-defs.h (struct stoken): Make 'ptr' const.
936
937 2013-10-01 Doug Evans <dje@google.com>
938
939 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
940
941 2013-10-01 Yao Qi <yao@codesourcery.com>
942
943 * varobj.c (c_value_of_root): Remove declaration.
944 (cplus_value_of_root, java_value_of_root): Likewise.
945 (ada_value_of_root): Likewise.
946 (struct language_specific) <value_of_root>: Remove.
947 (languages): Update initialization.
948 (check_scope): Move earlier.
949 (c_value_of_root): Move earlier and rename to ...
950 (value_of_root_1): ... this.
951 (value_of_root): Caller update.
952 (cplus_value_of_root, java_value_of_root): Remove.
953 (ada_value_of_root): Remove.
954
955 2013-10-01 Yao Qi <yao@codesourcery.com>
956
957 * varobj.c (varobj_format_string): Remove "unknown".
958 (languages): Remove the first element.
959 * varobj.h (enum varobj_languages): Remove vlang_c.
960
961 2013-10-01 Yao Qi <yao@codesourcery.com>
962
963 * varobj.c (struct language_specific) <language>: Remove.
964 (languages): Update the initialization.
965
966 2013-10-01 Yao Qi <yao@codesourcery.com>
967
968 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
969 "solib-target.h". Include "windows-tdep.h".
970 (arm_wince_init_abi): Call windows_init_abi. Remove call to
971 set_solib_ops and set_gdbarch_has_dos_based_file_system.
972 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
973 windows-tdep.o to gdb_target_obs.
974
975 2013-10-01 Yao Qi <yao@codesourcery.com>
976
977 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
978 "solib-target.h".
979 (amd64_windows_init_abi): Don't call set_solib_ops and
980 set_gdbarch_iterate_over_objfiles_in_search_order. Call
981 windows_init_abi instead.
982 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
983 "solib-target.h".
984 (i386_cygwin_init_abi): Don't call set_solib_ops,
985 set_gdbarch_has_dos_based_file_system and
986 set_gdbarch_iterate_over_objfiles_in_search_order. Call
987 windows_init_abi instead.
988 * windows-tdep.c: Include "solib.h" and "solib-target.h".
989 (windows_init_abi): New function.
990 (windows_iterate_over_objfiles_in_search_order): Make it
991 static.
992 * windows-tdep.h (windows_init_abi): Declare.
993 (windows_iterate_over_objfiles_in_search_order): Remove
994 declaration.
995
996 2013-10-01 Jerome Guitton <guitton@adacore.com>
997
998 Checked in by Joel Brobecker <brobecker@adacore.com>
999 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1000 incomplete dictionnary instead of None in case of missing
1001 environment variables.
1002 (elinos_init): in case of an incomplete environment, best
1003 effort to load system libraries instead of abort.
1004
1005 2013-10-01 Joel Brobecker <brobecker@adacore.com>
1006
1007 * ada-lang.c (ada_has_this_exception_support): Ignore
1008 mst_solib_trampoline minimal symbols.
1009
1010 2013-09-30 Tristan Gingold <gingold@adacore.com>
1011
1012 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1013 hardware watchpoint.
1014 (i386_darwin_dr_set): Support 32 and 64 bit states.
1015 (i386_darwin_dr_get): Likewise.
1016 (i386_darwin_dr_set_control): Make static.
1017 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1018 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1019
1020 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
1021
1022 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1023 Replace TIDGET with ptid_get_lwp.
1024 Replace GET_LWP with ptid_get_lwp.
1025 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1026 Replace BUILD_THREAD with ptid_build.
1027 Replace BUILD_LWP with ptid_build.
1028 Replace PIDGET with ptid_get_pid.
1029 Replace TIDGET with ptid_get_lwp.
1030 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1031 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1032 Replace TIDGET with ptid_get_lwp.
1033 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1034 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1035 Replace TIDGET with ptid_get_lwp.
1036 Replace GET_LWP with ptid_get_lwp.
1037 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1038 * auxv.c: Likewise.
1039 * breakpoint.c: Likewise.
1040 * common/ptid.c (ptid_is_pid): Condense check for
1041 null_ptid and minus_one_ptid.
1042 (ptid_lwp_p): New function.
1043 (ptid_tid_p): New function.
1044 * common/ptid.h: Update comments for accessors.
1045 (ptid_lwp_p): New prototype.
1046 (ptid_tid_p): New prototype.
1047 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1048 * gcore.c: Replace PIDGET with ptid_get_pid.
1049 * gdbthread.h: Likewise.
1050 * gnu-nat.c: Likewise.
1051 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1052 Replace TIDGET with ptid_get_lwp.
1053 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1054 * hppanbsd-nat.c: Likewise.
1055 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1056 Replace TIDGET with ptid_get_lwp.
1057 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1058 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1059 * infcmd.c: Likewise.
1060 * inferior.h: Likewise.
1061 * inflow.c: Likewise.
1062 * infrun.c: Likewise.
1063 * linux-fork.c: Likewise.
1064 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1065 Replace GET_PID with ptid_get_pid.
1066 Replace is_lwp with ptid_lwp_p.
1067 Replace GET_LWP with ptid_get_lwp.
1068 Replace BUILD_LWP with ptid_build.
1069
1070 2013-09-28 Mike Frysinger <vapier@gentoo.org>
1071
1072 * common/linux-btrace.c: Move sys/syscall.h out of the
1073 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1074 Also check for SYS_perf_event_open before attempting to buid.
1075
1076 2013-09-27 Doug Evans <dje@google.com>
1077
1078 * dwarf2read.c (dwarf2_section_info): Add comment.
1079 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1080 All uses updated.
1081 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1082 (dwarf2_read_section): Delete unused local "header". Add section
1083 name to error message.
1084 (create_dwo_in_dwp): Tweak comment.
1085 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1086
1087 * dwarf2read.c (die_reader_specs): Tweak comment.
1088 (get_section_bfd_owner, get_section_bfd_section): New functions.
1089 (get_section_name, get_section_file_name): New functions.
1090 (get_section_id, get_section_flags): New functions.
1091 (*): Use new functions to access section fields.
1092
1093 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1094 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1095 arg "htab". All callers updated.
1096 (create_debug_types_hash_table): Remove redundant copy of
1097 abbrev_section.
1098 (create_dwo_in_dwp): Tweak comments.
1099 (read_str_index): Tweak comment. Record dwarf form name in static
1100 local.
1101
1102 2013-09-27 Pedro Alves <palves@redhat.com>
1103
1104 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1105 (remote_filename_p): Add comment.
1106 * remote.c (remote_filename_p): Adjust to use
1107 REMOTE_SYSROOT_PREFIX.
1108 * solib.c (solib_find): When deciding whether we need to add a
1109 directory separator, check whether the sysroot is "remote:"
1110 instead of checking whether the patch has a drive spec. Add
1111 comments.
1112
1113 2013-09-27 Pedro Alves <palves@redhat.com>
1114
1115 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1116 Delete fields.
1117 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1118 directly.
1119
1120 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1121
1122 Fix set debug frame output.
1123 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1124 SENTINEL_FRAME entry lower to match enum frame_type order.
1125
1126 2013-09-26 Pierre Muller <muller@sourceware.org>
1127
1128 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1129 AMD64_R15_REGNUM when a register index is expected.
1130 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1131 Substitute in array.
1132 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1133 (amd64_push_arguments): Substitute in integer_regnum array.
1134
1135 2013-09-25 Doug Evans <dje@google.com>
1136
1137 * objfiles.c (allocate_objfile): Move comment to better place.
1138
1139 New option "set debug symfile on".
1140 * NEWS: Mention "set debug symfile".
1141 * Makefile.in (SFILES): Add symfile-debug.c.
1142 (COMMON_OBS): Add symfile-debug.o.
1143 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1144 objfile's symbol functions.
1145 * objfiles.h (objfile_set_sym_fns): Declare.
1146 * symfile-debug.c: New file.
1147 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1148 objfile's symbol functions.
1149 (reread_symbols): Ditto.
1150
1151 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1152 All uses updated.
1153 (add_symtab_fns): Update prototype.
1154 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1155 (registered_sym_fns): ... this.
1156 (symtab_fns): Update.
1157 (add_symtab_fns): New arg "flavour". All callers updated.
1158 (find_sym_fns): Rewrite to use new sym_fns registry.
1159
1160 * symfile.h (struct sym_fns): Add "objfile" argument to
1161 sym_read_linetable. All uses updated.
1162
1163 * symtab.c (domain_name, search_domain_name): New functions.
1164 * symtab.h (domain_name, search_domain_name): Declare.
1165
1166 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1167 map_matching_symbols so objfile is first. All uses updated.
1168 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1169 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1170
1171 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1172
1173 PR shlibs/8882
1174 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1175 link map entries.
1176
1177 2013-09-24 Doug Evans <dje@google.com>
1178
1179 * objfiles.c (free_objfile): Move comment.
1180
1181 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1182
1183 * ada-exp.y (string_to_operator): Delete.
1184 (dummy_string_to_ada_operator): Delete.
1185
1186 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1187
1188 Revert:
1189 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1190 amd64-tdep.c.
1191 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1192 call_dummy_integer_regs, and classify.
1193 * amd64-tdep.h (amd64_classify): Add declaration.
1194 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1195 (amd64_reg_class): Delete, moved to i386-tdep.h.
1196 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1197 Replace call to amd64_classify by call to tdep->classify.
1198 (amd64_push_arguments): Get the list of registers to use for
1199 passing integer parameters from the gdbarch tdep structure,
1200 rather than using a hardcoded one. Replace calls to amd64_classify
1201 by calls to tdep->classify.
1202 (amd64_push_dummy_call): Get the register number used for
1203 the "hidden" argument from tdep->call_dummy_integer_regs.
1204 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1205 and tdep->call_dummy_integer_regs. Set tdep->classify.
1206
1207 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1208
1209 Revert:
1210 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1211 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1212 where tdep->memory_args_by_pointer is non-zero.
1213
1214 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1215
1216 Revert:
1217 * i386-tdep.h (struct gdbarch_tdep): Add new field
1218 integer_param_regs_saved_in_caller_frame.
1219 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1220 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1221
1222 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1223
1224 * amd64-windows-tdep.c: #include "value.h"
1225 (amd64_windows_classify): Delete.
1226 (amd64_windows_passed_by_integer_register)
1227 (amd64_windows_passed_by_xmm_register)
1228 (amd64_windows_passed_by_pointer)
1229 (amd64_windows_adjust_args_passed_by_pointer)
1230 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1231 (amd64_windows_push_dummy_call): New functions.
1232 (amd64_windows_init_abi): Remove setting of
1233 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1234 tdep->classify, tdep->memory_args_by_pointer and
1235 tdep->integer_param_regs_saved_in_caller_frame.
1236 Add call to set_gdbarch_push_dummy_call.
1237
1238 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1239
1240 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1241 objfile->original_name.
1242
1243 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1244
1245 Pass down original filename for objfile.
1246 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1247 * elfread.c (elf_symfile_read): Likewise.
1248 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1249 longer set ORIGINAL_NAME.
1250 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1251 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1252 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1253 symbol_file_add_from_bfd call.
1254 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1255 (macho_check_dsym): Add parameter filenamep. Change function comment.
1256 Set *filenamep.
1257 (macho_symfile_read): New variable dsym_filename. Update
1258 macho_check_dsym call. Use it for symbol_file_add_separate.
1259 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1260 it. Use it for objfile->original_name.
1261 (objfile_name): Return OBFD's filename, if available.
1262 * objfiles.h (allocate_objfile): Add new parameter name.
1263 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1264 * symfile-mem.c (symbol_file_add_from_memory): Update
1265 symbol_file_add_from_bfd call.
1266 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1267 comment for it.
1268 (symbol_file_add_with_addrs): New parameter name, add function comment
1269 for it. Remove variable name. Update allocate_objfile call.
1270 (symbol_file_add_separate): New parameter name, add function comment
1271 for it. Update symbol_file_add_with_addrs call.
1272 (symbol_file_add_from_bfd): New parameter name. Update
1273 symbol_file_add_with_addrs call.
1274 (symbol_file_add): Update symbol_file_add_from_bfd call.
1275 (reread_symbols): New variable original_name. Save
1276 objfile->original_name by it.
1277 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1278 second parameter.
1279
1280 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1281
1282 Code cleanup: Add objfile_name accessor function.
1283 * ada-lang.c (is_known_support_routine): Use objfile_name.
1284 * auto-load.c (source_gdb_script_for_objfile)
1285 (auto_load_objfile_script): Likewise.
1286 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1287 * dbxread.c (dbx_symfile_read): Likewise.
1288 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1289 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1290 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1291 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1292 (lookup_dwp_signatured_type, lookup_dwo_unit)
1293 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1294 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1295 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1296 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1297 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1298 (read_subrange_type, load_partial_dies, read_partial_die)
1299 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1300 (die_containing_type, build_error_marker_type, lookup_die_type)
1301 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1302 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1303 (get_DW_AT_signature_type, write_psymtabs_to_index)
1304 (save_gdb_index_command): Likewise.
1305 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1306 Likewise.
1307 * expprint.c (dump_subexp_body_standard): Likewise.
1308 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1309 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1310 original_name.
1311 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1312 obj_name, use objfile_name for it, use the variable.
1313 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1314 Use objfile_name.
1315 * machoread.c (macho_symtab_read, macho_check_dsym)
1316 (macho_symfile_relocate): Likewise.
1317 * maint.c (maintenance_translate_address): Likewise.
1318 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1319 * minsyms.c (install_minimal_symbols): Likewise.
1320 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1321 original_name.
1322 (filter_overlapping_sections): Use objfile_name.
1323 (objfile_name): New function.
1324 * objfiles.h (struct objfile): Rename field name to original_name.
1325 (objfile_name): New prototype.
1326 * printcmd.c (sym_info, address_info): Use objfile_name.
1327 * probe.c (parse_probes, collect_probes, compare_probes)
1328 (info_probes_for_ops): Likewise.
1329 * progspace.c (clone_program_space): Likewise.
1330 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1331 (maintenance_info_psymtabs): Likewise.
1332 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1333 (source_section_scripts): Likewise.
1334 * python/py-objfile.c (objfpy_get_filename): Likewise.
1335 * python/py-progspace.c (pspy_get_filename): Likewise.
1336 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1337 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1338 * solib.c (solib_read_symbols): Likewise.
1339 * stabsread.c (scan_file_globals): Likewise.
1340 * stap-probe.c (handle_stap_probe): Likewise.
1341 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1342 (find_separate_debug_file_by_debuglink): Likewise.
1343 (reread_symbols): Likewise. Use the objfile field name renamed to
1344 original_name.
1345 (allocate_symtab): Use objfile_name.
1346 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1347 (dump_objfile, dump_msymbols, dump_symtab_1)
1348 (maintenance_print_msymbols, maintenance_print_objfiles)
1349 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1350 * target.c (target_translate_tls_address, target_info): Likewise.
1351 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1352 objfile_name.
1353
1354 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1355
1356 Code cleanup.
1357 * probe.c (parse_probes): Rename variable objfile_name to
1358 objfile_namestr.
1359
1360 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1361
1362 Remove solib-sunos.c.
1363 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1364 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1365 * objfiles.c (rt_common_objfile): Remove.
1366 (free_objfile): Remove rt_common_objfile comparison.
1367 * objfiles.h (rt_common_objfile): Remove.
1368 * solib-sunos.c: Remove.
1369 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1370
1371 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1372
1373 Remove a.out NetBSD and OpenBSD hosts.
1374 * NEWS (Removed native configurations): New.
1375 * config/arm/nbsdaout.mh: Remove.
1376 * config/i386/nbsdaout.mh: Remove.
1377 * config/i386/obsdaout.mh: Remove.
1378 * config/m68k/nbsdaout.mh: Remove.
1379 * config/sparc/nbsdaout.mh: Remove.
1380 * config/vax/nbsdaout.mh: Remove.
1381 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1382 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1383 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1384 error.
1385 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1386 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1387 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1388
1389 2013-09-23 Tom Tromey <tromey@redhat.com>
1390
1391 * linespec.c (struct minsym_and_objfile): Remove.
1392 (minsym_and_objfile_d): Remove.
1393 (struct linespec, struct collect_info, linespec_parse_basic)
1394 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1395 (compare_msymbols, find_method, find_function_symbols)
1396 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1397 (add_minsym, search_minsyms_for_name): Update.
1398
1399 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1400
1401 * regcache.c: Add include of valprint.h.
1402 (dump_endian_bytes): Delete.
1403 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1404
1405 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1406
1407 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1408
1409 2013-09-19 Pedro Alves <palves@redhat.com>
1410
1411 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1412 breakpoints.
1413
1414 2013-09-19 Pedro Alves <palves@redhat.com>
1415 Thomas Schwinge <thomas@codesourcery.com>
1416 Yue Lu <hacklu.newborn@gmail.com>
1417
1418 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1419 Take a gdb_byte pointer instead of a char pointer.
1420
1421 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1422 gnu_xfer_partial helper.
1423 (gnu_xfer_partial): New function.
1424 (gnu_target): Don't install a deprecated_xfer_memory hook.
1425 Install a to_xfer_partial hook.
1426
1427 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1428
1429 Constification.
1430 * main.c (captured_main): Replace catch_command_errors by
1431 catch_command_errors_const. Twice.
1432 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1433 (symbol_file_add): Make name parameter const.
1434 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1435 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1436 variable name. Change their usage accordingly.
1437 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1438 const.
1439 (symbol_file_add_main): Make args parameter const.
1440
1441 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1442 Ulrich Weigand <uweigand@de.ibm.com>
1443
1444 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1445 of c_value member.
1446 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1447
1448 2013-09-18 Pedro Alves <palves@redhat.com>
1449 Yue Lu <hacklu.newborn@gmail.com>
1450
1451 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1452 (gnu_create_inferior)
1453 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1454 (set_sig_thread_cmd): Use the lwpid field of ptids to
1455 store/extract thread ids instead of the tid field.
1456 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1457
1458 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1459
1460 * infcmd.c (default_print_one_register_info): Add detection of
1461 optimized out values.
1462 (default_print_registers_info): Switch to using
1463 get_frame_register_value.
1464
1465 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1466
1467 * infrun.c (handle_inferior_event): Check if we know the
1468 function start address before setting a resume breakpoint.
1469
1470 2013-09-18 Pedro Alves <palves@redhat.com>
1471
1472 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1473 minus_one_ptid instead of looking at the ptid's tid field and
1474 comparing that to -1.
1475
1476 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1477
1478 * main.h (get_gdb_program_name): Remove extra whitespace.
1479
1480 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1481
1482 * main.h (get_gdb_program_name): Add declaration.
1483 * main.c (get_gdb_program_name): Add definition.
1484
1485 2013-09-17 Doug Evans <dje@google.com>
1486
1487 * dwarf2read.c: Move definitions of complaint functions to after
1488 forward declarations of local functions.
1489
1490 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1491 Pedro Alves <palves@redhat.com>
1492
1493 PR gdb/11568
1494 * breakpoint.c (remove_threaded_breakpoints): New function.
1495 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1496 as thread_exit observer.
1497
1498 2013-09-17 Pedro Alves <palves@redhat.com>
1499
1500 PR gdb/15911
1501 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1502 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1503 * corelow.c (core_open):
1504 * frame.h (print_stack_frame, print_frame_info): New
1505 'set_current_sal' parameter.
1506 * infcmd.c (finish_command, kill_command): Adjust call to
1507 print_stack_frame.
1508 * inferior.c (inferior_command): Likewise.
1509 * infrun.c (normal_stop): Likewise.
1510 * linux-fork.c (linux_fork_context): Likewise.
1511 * record-full.c (record_full_goto_entry, record_full_restore):
1512 Likewise.
1513 * remote-mips.c (common_open): Likewise.
1514 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1515 Use it.
1516 (print_frame_info): New 'set_current_sal' parameter. Set the last
1517 displayed sal depending on the new paremeter instead of looking at
1518 print_what.
1519 (backtrace_command_1, select_and_print_frame, frame_command)
1520 (current_frame_command, up_command, down_command): Adjust call to
1521 print_stack_frame.
1522 * thread.c (print_thread_info, restore_selected_frame)
1523 (do_captured_thread_select): Adjust call to print_stack_frame.
1524 * tracepoint.c (tfind_1): Likewise.
1525 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1526 (mi_cmd_stack_info_frame): Likewise.
1527 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1528 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1529
1530 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1531
1532 * value.c (isvoid_internal_fn): Replace "parameter" with
1533 "argument".
1534
1535 2013-09-16 Stan Shebs <stan@codesourcery.com>
1536
1537 * README: Update references to writing code for GDB.
1538 * configure.ac (build_warnings): Remove obsolete comment.
1539 * configure: Regenerate.
1540 * gdbarch.sh: Remove references to gdbint.texinfo.
1541 * gdbarch.h: Regenerate.
1542 * gdbtypes.c (objfile_type): Remove comments referencing internals
1543 manual and D10V.
1544
1545 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1546
1547 * NEWS: Mention new convenience function $_isvoid.
1548 * value.c (isvoid_internal_fn): New function.
1549 (_initialize_values): Add new convenience function $_isvoid.
1550
1551 2013-09-16 Pierre Muller <muller@sourceware.org>
1552
1553 * arm-linux-tdep.c: Add "elf/common.h" header.
1554 Remove AT_HWCAP macro definintion as it is provided in
1555 added include file.
1556 * s390-tdep.c: Remove system header <elf.h>
1557 Add "elf/common.h" header for AT_HWCAP definition.
1558 (s390_core_read_description): Use correct CORE_ADDR
1559 for hwcap local variable used as third parameter
1560 of function target_auxv_search.
1561
1562 2013-09-14 Pierre Muller <muller@sourceware.org>
1563 Tom Tromey <tromey@redhat.com>
1564 Pedro Alves <palves@redhat.com>
1565
1566 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1567 mode if operating system doesn't know O_CLOEXEC.
1568
1569 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1570
1571 Code cleanup.
1572 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1573 inner block.
1574
1575 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1576
1577 * NEWS: Mention TDB support.
1578 * features/s390-tdb.xml: New file.
1579 * features/s390-te-linux64.xml: New file.
1580 * features/s390x-te-linux64.xml: New file.
1581 * features/Makefile (WHICH): Add new tdescs above.
1582 (s390-te-linux64-expedite): Set.
1583 (s390x-te-linux64-expedite): Set.
1584 * features/s390-te-linux64.c: New file (generated).
1585 * features/s390x-te-linux64.c: New file (generated).
1586 * regformats/s390-te-linux64.dat: New file (generated).
1587 * regformats/s390x-te-linux64.dat: New file (generated).
1588 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1589 (HWCAP_S390_TE): Likewise.
1590 (S390_TDB_DWORD0_REGNUM): Likewise.
1591 (S390_TDB_DWORD0_REGNUM): Likewise.
1592 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1593 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1594 (S390_TDB_ATIA_REGNUM): Likewise.
1595 (S390_TDB_R0_REGNUM): Likewise.
1596 (S390_TDB_R1_REGNUM): Likewise.
1597 (S390_TDB_R2_REGNUM): Likewise.
1598 (S390_TDB_R3_REGNUM): Likewise.
1599 (S390_TDB_R4_REGNUM): Likewise.
1600 (S390_TDB_R5_REGNUM): Likewise.
1601 (S390_TDB_R6_REGNUM): Likewise.
1602 (S390_TDB_R7_REGNUM): Likewise.
1603 (S390_TDB_R8_REGNUM): Likewise.
1604 (S390_TDB_R9_REGNUM): Likewise.
1605 (S390_TDB_R10_REGNUM): Likewise.
1606 (S390_TDB_R11_REGNUM): Likewise.
1607 (S390_TDB_R12_REGNUM): Likewise.
1608 (S390_TDB_R13_REGNUM): Likewise.
1609 (S390_TDB_R14_REGNUM): Likewise.
1610 (S390_TDB_R15_REGNUM): Likewise.
1611 (S390_NUM_REGS): Increase.
1612 (S390_IS_TDBREGSET_REGNUM): New macro.
1613 (s390_regmap_tdb): Declare.
1614 (s390_sizeof_tdbregset): Define.
1615 (tdesc_s390_te_linux64): Declare.
1616 (tdesc_s390x_te_linux64): Likewise.
1617 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1618 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1619 (s390_regmap_tdb): New regmap.
1620 (s390_supply_tdb_regset): New function.
1621 (s390_tdb_regset): New regset.
1622 (s390_linux64v2_regset_sections): Add TDB regset to list.
1623 (s390x_linux64v2_regset_sections): Likewise.
1624 (s390_regset_from_core_section): Recognize TDB core note section.
1625 (s390_core_read_description): If HWCAP indicates TE support,
1626 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1627 (s390_gdbarch_init): Handle TDB regset.
1628 (_initialize_s390_tdep): Initialize new tdescs.
1629 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1630 (have_regset_tdb): New variable.
1631 (s390_native_supply): Support register invalidation.
1632 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1633 (check_regset): Treat ENODATA as "regset exists".
1634 (s390_linux_fetch_inferior_registers): Add TDB.
1635 (s390_read_description): Check for TDB existence and select
1636 appropriate tdesc.
1637 * gdbserver/Makefile.in (clean): Add removal of new makefile
1638 targets.
1639 (s390-te-linux64.c): New makefile target.
1640 (s390x-te-linux64.c): Likewise.
1641 * gdbserver/configure.srv (srv_regobj): Append new objects
1642 s390-te-linux64.o and s390x-te-linux64.o.
1643 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1644 s390x-te-linux64.xml, and s390-tdb.xml.
1645 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1646 declaration.
1647 (tdesc_s390_te_linux64): Likewise.
1648 (init_registers_s390x_te_linux64): Likewise.
1649 (tdesc_s390x_te_linux64): Likewise.
1650 (s390_check_regset): Treat ENODATA as "regset exists".
1651 (s390_arch_setup): Add TDB regset support.
1652 (initialize_low_arch): Initialize registers for new tdescs.
1653
1654 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1655
1656 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1657 (S390_IS_FPREGSET_REGNUM): New macro.
1658 * s390-tdep.c (s390_dwarf_regmap): Make const.
1659 (regnum_is_gpr_full): New function for replacing repeated code.
1660 (s390_pseudo_register_name): Use it.
1661 (s390_pseudo_register_type): Likewise.
1662 (s390_pseudo_register_read): Likewise.
1663 (s390_pseudo_register_write): Likewise.
1664 (s390_unwind_pseudo_register): Likewise.
1665 (s390_regmap_gregset): New format for regmap.
1666 (s390x_regmap_gregset): Likewise.
1667 (s390_regmap_fpregset): Likewise.
1668 (s390_regmap_upper): Likewise.
1669 (s390_regmap_last_break): Likewise.
1670 (s390_regmap_system_call): Likewise.
1671 (s390_supply_regset): Adjust to new regmap format.
1672 (s390_collect_regset): Likewise.
1673 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1674 (s390_native_collect): Likewise.
1675 (supply_gregset): Likewise.
1676 (fill_gregset): Likewise.
1677 (supply_fpregset): Likewise.
1678 (fill_fpregset): Likewise.
1679 (fetch_regset): Likewise.
1680 (store_regset): Likewise.
1681 (s390_linux_fetch_inferior_registers): Likewise.
1682 (s390_linux_fetch_inferior_registers): Likewise.
1683
1684 2013-09-12 Andrew Pinski <apinski@cavium.com>
1685
1686 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1687
1688 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1689
1690 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1691
1692 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
1693
1694 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1695
1696 2013-09-06 Pedro Alves <palves@redhat.com>
1697
1698 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1699 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1700 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1701 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1702 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1703 gdb_stdlog.
1704
1705 2013-09-06 Pedro Alves <palves@redhat.com>
1706
1707 * remote-sim.c (dump_mem): Constify buf parameter.
1708 gdbsim_xfer_inferior_memory): Rename to ...
1709 (gdbsim_xfer_memory): ... this. Adjust interface as
1710 target_xfer_partial helper.
1711 (gdbsim_xfer_partial): New function.
1712 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1713 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1714
1715 2013-09-06 Pedro Alves <palves@redhat.com>
1716
1717 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1718 host_address_to_string, and send debug output to gdb_stdlog.
1719
1720 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1721
1722 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1723 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1724 gdb_target_obs for cris target.
1725 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1726 (cris_gdbarch_init): Move calls to
1727 set_gdbarch_fetch_tls_load_module_address and
1728 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1729 Add call to gdbarch_init_osabi.
1730 * cris-linux-tdep.c: New file.
1731 * cris-tdep.h: New file.
1732
1733 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1734
1735 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1736 to deprecated_init_ui_hook.
1737
1738 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1739
1740 * cli/cli-interp.c (_initialize_cli_interp): Add a
1741 command_loop_proc to interp_procs.
1742 * event-top.c (cli_command_loop): Change signature to match
1743 interp_command_loop_ftype.
1744 * event-top.h (cli_command_loop): Same.
1745 * interps.c (interp_new): Require every interpreter to have a
1746 command_loop_proc.
1747 (current_interp_command_loop): Just call the command_loop_proc on
1748 the current interpreter.
1749 * tui/tui-interp.c (_initialize_tui_interp): Add a
1750 command_loop_proc to interp_procs.
1751
1752 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1753
1754 * cris-tdep.c (cris_gdbarch_init): Add call to
1755 get_gdbarch_fetch_tls_load_module_address.
1756
1757 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1758
1759 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1760 (cris_elf_gregset_t): Rename from elf_gregset_t.
1761 (crisv32_elf_gregset_t): Adjust.
1762 (cris_supply_gregset, fetch_core_registers): Adjust.
1763
1764 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1765
1766 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1767
1768 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
1769
1770 * defs.h (deprecated_command_loop_hook): Remove, including
1771 references in comments.
1772 * interps.c (current_interp_command_loop): No longer use
1773 deprecated_command_loop_hook.
1774 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1775 setup.
1776 * top.c (deprecated_command_loop_hook): Remove.
1777
1778 2013-09-05 Pedro Alves <palves@redhat.com>
1779
1780 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1781 local is now int instead of ULONGEST. Print it with %d
1782 instead of paddress.
1783
1784 2013-09-05 Tristan Gingold <gingold@adacore.com>
1785
1786 * MAINTAINERS: Remove avr maintainership.
1787
1788 2013-09-05 Pedro Alves <palves@redhat.com>
1789
1790 * findvar.c (value_of_register): Rework in terms of
1791 value_of_register_lazy.
1792
1793 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1794
1795 * symfile.c (add_symbol_file_command): Remove trailing
1796 whitespaces and blank line after comment.
1797
1798 2013-09-05 Pedro Alves <palves@redhat.com>
1799
1800 * tui/tui-regs.c (tui_register_format): Don't look at the
1801 register's name here. Return string representing register
1802 value instead of storing it in the data element.
1803 (tui_get_register): Compare register string representations
1804 instead of register value states and contents.
1805
1806 2013-09-05 Pedro Alves <palves@redhat.com>
1807
1808 PR tui/15933
1809 * tui/tui-regs.c (tui_show_registers): Show registers of the
1810 selected frame, not the current frame.
1811
1812 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
1813
1814 * MAINTAINERS (Write After Approval): Add myself to the list.
1815
1816 2013-09-04 Doug Evans <dje@google.com>
1817
1818 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1819 (queue_and_load_dwo_tu): New function.
1820 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1821 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1822 Make dependent_cu optional.
1823 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1824 and an older .gdb_index is in use, queue and load all its TUs too.
1825
1826 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1827
1828 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1829 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1830 variable search_flags.
1831 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1832 (OPF_RETURN_REALPATH): ... here.
1833 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1834 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1835 call. Twice.
1836 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1837 openp call.
1838 * solib.c (solib_find): Likewise. Four times.
1839 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1840 in the function comment and for the realpath_fptr variable.
1841 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1842 (find_and_open_source): Likewise. Twice.
1843 * symfile.c (symfile_bfd_open): Likewise, also twice.
1844
1845 2013-09-04 Doug Evans <dje@google.com>
1846
1847 * progspace.c (save_current_space_and_thread): Remove unnecessary
1848 call to save_current_inferior.
1849
1850 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
1851
1852 * sh64-tdep.c (sh64_do_register): Return after printing message
1853 about unavailable register contents.
1854
1855 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1856 Pedro Alves <palves@redhat.com>
1857
1858 * symfile.c (add_symbol_file_command): Error out on unknown
1859 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1860 options and collapse into single conditional branch.
1861
1862 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
1863
1864 * inf-child.c (inf_child_follow_fork): New parameter
1865 detach_fork.
1866 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1867 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1868 * inferior.h (detach_fork): Remove.
1869 * infrun.c (detach_fork): Adjust comment and make it
1870 static.
1871 (follow_fork): Pass detach_fork parameter to
1872 target_follow_fork.
1873 * linux-nat.c (linux_child_follow_fork): New parameter
1874 detach_fork.
1875 * target.c (target_follow_fork): New parameter detach_fork.
1876 Pass detach_fork as parameter and print its value.
1877 * target.h (struct target_ops) <to_follow_fork>: New int
1878 parameter.
1879 (target_follow_fork): New parameter detach_fork.
1880
1881 2013-09-03 Joel Brobecker <brobecker@adacore.com>
1882
1883 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1884 Replace sec->bfd by sec->the_bfd_section->owner.
1885
1886 2013-09-03 Yao Qi <yao@codesourcery.com>
1887
1888 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1889 from linux_has_shared_address_space.
1890 (linux_has_shared_address_space): Call linux_is_uclinux.
1891 * linux-tdep.h (linux_is_uclinux): Declare.
1892 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1893 linux_is_uclinux.
1894
1895 2013-09-03 Yao Qi <yao@codesourcery.com>
1896
1897 * config/djgpp/fnchange.lst: Remove entry of
1898 i386-interix-nat.c and i386-interix-tdep.c.
1899 * configure.ac: Remove '*-*-interix*'.
1900 * configure: Re-generated.
1901 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1902 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1903 obsolete comments.
1904 * osabi.c (gdb_osabi_names): Remove "Interix".
1905
1906 2013-09-03 Yao Qi <yao@codesourcery.com>
1907
1908 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1909
1910 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1911
1912 * record.h (record_print_flag) <record_print_src_line,
1913 record_print_insn_range>: Rename into ...
1914 (record_print_flag) <record_print_src_line,
1915 record_print_insn_range>: ... this. Update all users.
1916
1917 2013-09-02 Pierre Muller <muller@sourceware.org>
1918
1919 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1920 error code.
1921
1922 2013-09-02 Pierre Muller <muller@sourceware.org>
1923
1924 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1925 by use of plongest function.
1926
1927 2013-09-02 Tristan Gingold <gingold@adacore.com>
1928
1929 * NEWS: Add entry mentioning support for native Windows x64
1930 SEH data.
1931
1932 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1933 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1934 (struct amd64_windows_frame_cache): New struct.
1935 (amd64_windows_w2gdb_regnum): New global.
1936 (pc_in_range, amd64_windows_frame_decode_epilogue)
1937 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1938 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1939 (amd64_windows_frame_this_id): New functions.
1940 (amd64_windows_frame_unwind): New static global.
1941 (amd64_windows_skip_prologue): New function.
1942 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1943 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1944 with amd64_windows_skip_prologue.
1945
1946 2013-08-30 Joel Brobecker <brobecker@adacore.com>
1947
1948 GDB 7.6.1 released.
1949
1950 2013-08-30 Pedro Alves <palves@redhat.com>
1951
1952 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1953 SRC_AND_LOC.
1954
1955 2013-08-30 Pedro Alves <palves@redhat.com>
1956
1957 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1958 warning text.
1959
1960 2013-08-30 Pedro Alves <palves@redhat.com>
1961
1962 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1963 Adjust arguments to print_stack_frame.
1964
1965 2013-08-30 Pedro Alves <palves@redhat.com>
1966
1967 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1968
1969 2013-08-30 Pedro Alves <palves@redhat.com>
1970
1971 * frame.h (show_and_print_stack_frame): Delete declaration.
1972
1973 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1974
1975 PR python/15461
1976
1977 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1978 (archpy_name): Check for valid architecture.
1979 (archpy_disassemble): Ditto.
1980
1981 2013-08-29 Joel Brobecker <brobecker@adacore.com>
1982
1983 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1984 instead of "long long" in call to ptrace64.
1985
1986 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
1987
1988 * mi/mi-interp.c (mi_command_loop): Change signature to match
1989 interp_command_loop_ftype.
1990 (mi1_command_loop): Remove.
1991 (mi2_command_loop): Remove.
1992 (mi3_command_loop): Remove.
1993 (mi_interpreter_resume): Remove setting of
1994 deprecated_command_loop_hook.
1995 (_initialize_mi_interp): Set mi_command_loop as the command loop
1996 callback.
1997
1998 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1999
2000 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2001 value_type.
2002
2003 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2004
2005 * value.c (allocate_value_contents): Make static.
2006 * value.h (allocate_value_contents): Remove prototype.
2007
2008 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2009
2010 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2011 of assembling value via allocate_value_lazy and attribute setter.
2012 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2013 assembling value via allocate_value_lazy and attribute setter.
2014 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2015 assembling value via allocate_value_lazy and attribute setter.
2016
2017 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2018
2019 * value.c (value_from_contents_and_address): Replace allocate_value and
2020 memcpy with value_from_contents.
2021
2022 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2023
2024 * python/py-framefilter.c (py_print_frame): Remove usage of
2025 PyString_AsString. Use python_string_to_host_string instead.
2026 Refactor function to work with a string as a new allocation
2027 instead of a pointer.
2028 (py_print_frame): Ditto.
2029 * python/lib/gdb/frames.py (return_list): Cain iterators together
2030 instead of adding them as a list.
2031 (_sort_list): Call return_list, and remove duplicate code.
2032 (execute_frame_filters): Convert iterator to a list with list().
2033 * python/lib/gdb/command/frame_filters.py
2034 (SetFrameFilterPriority._set_filter_priority): Convert priority
2035 attribute to an integer.
2036 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2037 wrapper function __next__.
2038 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2039 define as "str".
2040
2041 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2042
2043 PR python/15752
2044 * python/py-framefilter.c (apply_frame_filter): Check
2045 gdb_python_initialized. Exit if the Python frame-filter code
2046 cannot be initialized.
2047
2048 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2049
2050 PR cli/15842
2051 * top.c (print_gdb_version): Remove erroneous newline after help
2052 text.
2053
2054 2013-08-29 Yao Qi <yao@codesourcery.com>
2055
2056 * varobj.c (install_dynamic_child): Remove trailing space.
2057 Add one blank line after variable declaration.
2058
2059 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2060
2061 PR gdb/15415
2062 * corefile.c (get_exec_file): Use exec_filename.
2063 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2064 * exec.c (exec_close): Free EXEC_FILENAME.
2065 (exec_file_attach): New variable canonical_pathname. Use
2066 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2067 EXEC_FILENAME.
2068 * exec.h (exec_filename): New.
2069 * inferior.c (print_inferior, inferior_command): Use
2070 PSPACE_EXEC_FILENAME.
2071 * mi/mi-main.c (print_one_inferior): Likewise.
2072 * progspace.c (clone_program_space, print_program_space): Likewise.
2073 * progspace.h (struct program_space): New field pspace_exec_filename.
2074 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2075 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2076
2077 2013-08-28 Will Newton <will.newton@linaro.org>
2078
2079 * common/linux-ptrace.c: Include stdint.h unconditionally.
2080
2081 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2082
2083 Code cleanup.
2084 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2085
2086 2013-08-28 Yao Qi <yao@codesourcery.com>
2087 Pedro Alves <palves@redhat.com>
2088
2089 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2090 instead of stdio_fileopen.
2091 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2092 .Call stderr_fileopen instead of stdio_fileopen.
2093 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2094 [__MINGW32__] (stderr_file_fputs): New function.
2095 (stderr_fileopen): New function.
2096 * ui-file.h (stderr_fileopen): Declare.
2097
2098 2013-08-27 Doug Evans <dje@google.com>
2099
2100 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2101 (struct dwarf2_per_cu_data): Ditto.
2102 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2103 (process_imported_unit_die): Ditto.
2104 (follow_die_sig_1): Simplify assert.
2105
2106 2013-08-27 Pedro Alves <palves@redhat.com>
2107
2108 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2109 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2110 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2111 windows_xfer_memory directly.
2112 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2113
2114 2013-08-27 Pedro Alves <palves@redhat.com>
2115
2116 * darwin-nat.c (darwin_xfer_memory): Delete.
2117 (_initialize_darwin_inferior): Don't install a
2118 deprecated_xfer_memory method.
2119
2120 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2121 Yao Qi <yao@codesourcery.com>
2122
2123 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2124 (parse_no_frames_option): Remove.
2125 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2126 (mi_cmd_stack_list_args): Adjust.
2127 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2128 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2129 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2130 Caller update.
2131 (list_args_or_locals): New parameter 'skip_unavailable'.
2132 Handle it.
2133 * valprint.c (scalar_type_p): Rename to ...
2134 (val_print_scalar_type_p): ... this. Make extern.
2135 (val_print, value_check_printable): Adjust.
2136 * valprint.h (val_print_scalar_type_p): Declare.
2137 * value.c (value_entirely_unavailable): New function.
2138 * value.h (value_entirely_unavailable): Declare.
2139
2140 * NEWS: Mention the new option "--skip-unavailable" to MI
2141 commands '-stack-list-locals', '-stack-list-arguments' and
2142 '-stack-list-variables'.
2143
2144 2013-08-27 Yao Qi <yao@codesourcery.com>
2145
2146 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2147 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2148 options.
2149 * mi/mi-getopt.c (mi_getopt): Remove.
2150 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2151 'error_on_unknown'.
2152 (mi_getopt): Call mi_getopt_1.
2153 (mi_getopt_silent): New.
2154 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2155
2156 2013-08-26 Doug Evans <dje@google.com>
2157
2158 PR symtab/15885
2159 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2160 .gdb_index is in use.
2161 * symfile.c (reread_symbols): Reset objfile->sf.
2162
2163 * NEWS: Document "mt print objfiles" now takes optional regexp.
2164 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2165 regexp of objfiles to print.
2166 (_initialize_symmisc): Update doc string for "mt print objfiles".
2167
2168 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2169 missing debug info checks.
2170
2171 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2172 Ulrich Weigand <uweigand@de.ibm.com>
2173
2174 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2175 line tables generated by XLC compiled binaries.
2176
2177 2013-08-23 Doug Evans <dje@google.com>
2178
2179 * symmisc.c (dump_symtab): Delete prototype.
2180 (dump_msymbols, dump_objfile): Ditto.
2181 (maintenance_info_symtabs): Mark as dont_repeat.
2182 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2183
2184 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2185 debugging printf to better location.
2186
2187 2013-08-23 Pedro Alves <palves@redhat.com>
2188
2189 * target.c (target_read_live_memory): Change type of 'ret' local
2190 to LONGEST.
2191
2192 2013-08-23 Pedro Alves <palves@redhat.com>
2193
2194 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2195 (remote_read_bytes): Change return type to LONGEST, and adjust to
2196 return a target_xfer_error on error.
2197 (remote_xfer_memory): Delete.
2198 (remote_flash_write): Change type of 'ret' local to LONGEST.
2199 (remote_xfer_partial, remote_xfer_partial): Adjust.
2200 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2201
2202 2013-08-23 Pierre Muller <muller@sourceware.org>
2203
2204 ARI fix: Push # directives to start of line.
2205 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2206
2207 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2208
2209 PR gdb/15501
2210 * breakpoint.c (enable_command, disable_command): Iterate over
2211 all specified breakpoint locations.
2212
2213 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2214
2215 * common/linux-ptrace.c (linux_fork_to_function): Push #
2216 directives to the start of the line.
2217 (linux_check_ptrace_features): Fix warning message to use
2218 the "_" markup.
2219
2220 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2221
2222 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2223 nat/linux-waitpid.h.
2224 (linux-waitpid.o): New object file rule.
2225 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2226 (current_ptrace_options): Moved from linux-nat.c.
2227 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2228 parameters.
2229 (linux_fork_to_function): New function.
2230 (linux_grandchild_function): Likewise.
2231 (linux_child_function): Likewise.
2232 (linux_check_ptrace_features): New function, heavily
2233 based on linux-nat.c:linux_test_for_tracefork.
2234 (linux_enable_event_reporting): New function.
2235 (ptrace_supports_feature): Likewise.
2236 (linux_supports_tracefork): Likewise.
2237 (linux_supports_traceclone): Likewise.
2238 (linux_supports_tracevforkdone): Likewise.
2239 (linux_supports_tracesysgood): Likewise.
2240 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2241 gdbserver/linux-low.c.
2242 (linux_enable_event_reporting): New declaration.
2243 (linux_supports_tracefork): Likewise.
2244 (linux_supports_traceclone): Likewise.
2245 (linux_supports_tracevforkdone): Likewise.
2246 (linux_supports_tracesysgood): Likewise.
2247 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2248 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2249 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2250 * config/arm/linux.mh (NATDEPFILES): Likewise.
2251 * config/i386/linux.mh (NATDEPFILES): Likewise.
2252 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2253 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2254 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2255 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2256 * config/mips/linux.mh (NATDEPFILES): Likewise.
2257 * config/pa/linux.mh (NATDEPFILES): Likewise..
2258 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2259 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2260 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2261 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2262 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2263 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2264 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2265 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2266 ptrace's 4th argument's types.
2267 Check the type of PTRACE_TYPE_ARG4.
2268 * configure: Regenerate.
2269 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2270 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2271 (linux_supports_tracefork_flag): Remove.
2272 (linux_supports_tracesysgood_flag): Likewise.
2273 (linux_supports_tracevforkdone_flag): Likewise.
2274 (current_ptrace_options): Moved to
2275 common/linux-ptrace.c.
2276 (linux_tracefork_child): Remove.
2277 (my_waitpid): Remove.
2278 (linux_test_for_tracefork): Renamed to
2279 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2280 (linux_test_for_tracesysgood): Remove.
2281 (linux_supports_tracesysgood): Remove.
2282 (linux_supports_tracefork): Remove.
2283 (linux_supports_tracevforkdone): Remove.
2284 (linux_enable_tracesysgood): Remove.
2285 (linux_enable_event_reporting): Remove.
2286 (linux_init_ptrace): New function.
2287 (linux_child_post_attach): Call linux_init_ptrace.
2288 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2289 (linux_child_follow_fork): Call linux_supports_tracefork
2290 and linux_supports_tracevforkdone.
2291 (linux_child_insert_fork_catchpoint): Call
2292 linux_supports_tracefork.
2293 (linux_child_insert_vfork_catchpoint): Likewise.
2294 (linux_child_set_syscall_catchpoint): Call
2295 linux_supports_tracesysgood.
2296 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2297 * nat/linux-nat.h: New file.
2298 * nat/linux-waitpid.c: New file.
2299 * nat/linux-waitpid.h: New file.
2300
2301 2013-08-22 Samuel Bronson <naesten@gmail.com>
2302
2303 ARM Linux support for `catch syscall'.
2304 * syscalls/arm-linux.py: New file.
2305 * syscalls/arm-linux.xml: Likewise.
2306 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2307 (arm_linux_init_abi): Register the new function and syscall xml file.
2308 * data-directory/Makefile.in: Install the new syscall xml file.
2309 * NEWS: Brag about this.
2310
2311 2013-08-22 Pedro Alves <palves@redhat.com>
2312
2313 PR gdb/15871
2314 * corefile.c (target_xfer_memory_error): New function.
2315 (memory_error): Defer EIO to target_memory_error.
2316 (read_memory): Use target_xfer_partial, and handle finer-grained
2317 target xfer errors.
2318 * target.c (target_xfer_error_to_string): New function.
2319 (memory_xfer_partial_1): If memory is known to be
2320 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2321 (target_xfer_partial): Make extern.
2322 * target.h (enum target_xfer_error): New enum.
2323 (target_xfer_error_to_string): Declare function.
2324 (target_xfer_partial): Declare function.
2325 (struct target_ops) <xfer_partial>: Adjust describing comment.
2326
2327 2013-08-22 Alan Modra <amodra@gmail.com>
2328
2329 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2330 * configure.tgt: Likewise as targets.
2331
2332 2013-08-20 Doug Evans <dje@google.com>
2333
2334 * buildsym.c (subfile_stack): Move here from buildsym.h.
2335 (pending_macros): Ditto.
2336 (get_macro_table): New function.
2337 (buildsym_init): Initialize subfile_stack.
2338 * coffread.c (type_vector,type_vector_length): Moved here from
2339 buildsym.h.
2340 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2341 (coff_symtab_read): Use it.
2342 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2343 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2344 with call to get_macro_table.
2345 * stabsread.c (type_vector,type_vector_length): Moved here from
2346 buildsym.h.
2347 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2348 * buildsym.h (get_macro_table): Declare.
2349
2350 2013-08-20 Tom Tromey <tromey@redhat.com>
2351
2352 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2353 Update.
2354 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2355
2356 2013-08-20 Doug Evans <dje@google.com>
2357
2358 * blockframe.c: Remove #include "psymtab.h".
2359 * cp-support.c: Ditto.
2360 * source.c: Ditto.
2361 * stack.c: Ditto.
2362
2363 2013-08-20 Tom Tromey <tromey@redhat.com>
2364
2365 PR python/15816:
2366 * exceptions.h (return_mask): Now an enum.
2367 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2368 enum constants.
2369
2370 2013-08-20 Tom Tromey <tromey@redhat.com>
2371
2372 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2373 get_objfile_arch.
2374 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2375 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2376 * jit.c (jit_object_close_impl): Update.
2377 * jv-lang.c (get_dynamics_objfile): Update.
2378 * linespec.c (add_minsym): Use get_dynamics_objfile.
2379 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2380 (allocate_objfile): Don't initialize 'gdbarch' field.
2381 (get_objfile_arch): Update.
2382 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2383 moved from...
2384 (struct objfile) <gdbarch>: ... here. Remove.
2385 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2386 get_objfile_arch.
2387 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2388
2389 2013-08-20 Alan Modra <amodra@gmail.com>
2390
2391 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2392 for IBM long double nan and inf.
2393 (floatformat_is_negative, floatformat_classify,
2394 floatformat_mantissa): Similarly.
2395 (floatformat_ieee_single, floatformat_ieee_double,
2396 floatformat_ieee_quad, floatformat_arm_ext,
2397 floatformat_ia64_spill): Delete unused vars.
2398 (_initialize_doublest): Delete unused function.
2399 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2400 little-endian variants of floatformat_ibm_long_double.
2401
2402 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2403
2404 * Makefile.in (SFILES): Remove common/target-common.c and
2405 add target/waitstatus.c.
2406 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2407 target/resume.h, target/wait.h and target/waitstatus.h.
2408 (COMMON_OBS): Remove target-common.o and add
2409 waitstatus.o.
2410 (target-common.o): Remove.
2411 (waitstatus.o): New target object file.
2412 * common/target-common.c: Move contents to
2413 target/waitstatus.c and remove.
2414 * common/target-common.h: Move contents to other files and
2415 remove.
2416 (enum resume_kind: Move to target/resume.h.
2417 (TARGET_WNOHANG): Move to target/wait.h.
2418 (enum target_waitkind): Move to target/waitstatus.h.
2419 (struct target_waitstatus): Likewise.
2420 * target.h: Do not include target-common.h and
2421 include target/resume.h, target/wait.h and
2422 target/waitstatus.h.
2423 * target/resume.h: New file.
2424 * target/wait.h: New file.
2425 * target/waitstatus.h: New file.
2426 * target/waitstatus.c: New file.
2427
2428 2013-08-19 Pedro Alves <palves@redhat.com>
2429
2430 * linux-nat.c (linux_test_for_tracefork)
2431 (linux_test_for_tracesysgood, linux_child_follow_fork)
2432 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2433 (linux_nat_wait_1): Extend comment.
2434 (linux_async_pipe): Add comment.
2435
2436 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2437
2438 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2439 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2440 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2441 Update to account for fact that PC is now a pseudo-register.
2442 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2443 cases for RL78_PC_REGNUM.
2444
2445 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2446
2447 PR cli/15841
2448 * top.c (quit_force): Skip writing history file
2449 if input is not from terminal.
2450
2451 2013-08-14 Tom Tromey <tromey@redhat.com>
2452
2453 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2454 resultthreadlist>: New fields.
2455 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2456 (remote_get_threadlist, remote_threadlist_iterator): Use
2457 new fields. Remove static variables.
2458
2459 2013-08-14 Tom Tromey <tromey@redhat.com>
2460
2461 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2462 remote_watch_data_address>: New fields.
2463 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2464 (process_stop_reply, remote_wait_as)
2465 (remote_check_watch_resources, remote_stopped_data_address): Update.
2466
2467 2013-08-14 Tom Tromey <tromey@redhat.com>
2468
2469 * remote.c (struct remote_state) <async_client_callback,
2470 async_client_context>: New fields.
2471 (async_client_callback, async_client_context): Remove.
2472 (remote_async_serial_handler, remote_async): Update.
2473
2474 2013-08-14 Tom Tromey <tromey@redhat.com>
2475
2476 * remote.c (sizeof_pkt): Remove.
2477 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2478
2479 2013-08-14 Tom Tromey <tromey@redhat.com>
2480
2481 * remote.c (struct remote_state) <use_threadinfo_query,
2482 use_threadextra_query>: New fields.
2483 (remote_threads_info, remote_threads_extra_info)
2484 (remote_open_1): Update.
2485
2486 2013-08-14 Tom Tromey <tromey@redhat.com>
2487
2488 * remote.c (struct remote_state) <finished_object,
2489 finished_annex, finished_offset>: New fields.
2490 (remote_read_qxfer): Use remote_state fields; remove static
2491 variables.
2492
2493 2013-08-14 Tom Tromey <tromey@redhat.com>
2494
2495 * remote.c (struct remote_state) <last_sent_step>:
2496 New field.
2497 (last_sent_step): Remove.
2498 (remote_resume, remote_wait_as): Update.
2499
2500 2013-08-14 Tom Tromey <tromey@redhat.com>
2501
2502 * remote.c (struct remote_state) <last_sent_signal>:
2503 New field.
2504 (last_sent_signal): Remove.
2505 (new_remote_state, remote_resume, remote_wait_as): Update.
2506
2507 2013-08-14 Tom Tromey <tromey@redhat.com>
2508
2509 * remote.c (struct remote_state) <last_program_signals_packet>:
2510 New field.
2511 (last_program_signals_packet): Remove.
2512 (remote_program_signals, remote_open_1): Update.
2513
2514 2013-08-14 Tom Tromey <tromey@redhat.com>
2515
2516 * remote.c (struct remote_state) <last_pass_packet>:
2517 New field.
2518 (last_pass_packet): Remove.
2519 (remote_pass_signals, remote_open_1): Update.
2520
2521 2013-08-14 Tom Tromey <tromey@redhat.com>
2522
2523 * remote.c (struct remote_state) <remote_traceframe_number>:
2524 New field.
2525 (remote_traceframe_number): Remove.
2526 (new_remote_state, remote_open_1, set_remote_traceframe)
2527 (remote_trace_find): Update.
2528
2529 2013-08-14 Tom Tromey <tromey@redhat.com>
2530
2531 * remote.c (struct remote_state) <general_thread, continue_thread>:
2532 New fields.
2533 (general_thread, continue_thread): Remove.
2534 (record_currthread, set_thread, set_general_process)
2535 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2536 (extended_remote_mourn_1): Update.
2537
2538 2013-08-14 Tom Tromey <tromey@redhat.com>
2539
2540 * remote.c (struct remote_state) <remote_desc>: New field.
2541 (remote_desc): Remove.
2542 (remote_threads_info, remote_threads_extra_info, remote_close)
2543 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2544 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2545 (remote_hostio_send_command, remote_file_put, remote_file_get)
2546 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2547 (remote_async, remote_new_objfile, set_range_stepping): Update.
2548
2549 2013-08-14 Tom Tromey <tromey@redhat.com>
2550
2551 * remote.c (remote_state): Now a pointer.
2552 (get_remote_state_raw): Update.
2553 (new_remote_state): New function.
2554 (_initialize_remote): Use new_remote_state.
2555
2556 2013-08-14 Tom Tromey <tromey@redhat.com>
2557
2558 * remote.c (remote_protocol_features): Now const.
2559
2560 2013-08-14 Tom Tromey <tromey@redhat.com>
2561
2562 * remote.c (crc32_table, crc32): Remove.
2563 (remote_verify_memory): Use xcrc32.
2564
2565 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2566
2567 * value.h (create_internalvar_type_lazy): Adjust prototype
2568 declaration.
2569
2570 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
2571
2572 * common/format.c (parse_format_string): Don't allow '#' flag for
2573 pointer arguments in format string.
2574
2575 2013-08-13 Pierre Muller <muller@sourceware.org>
2576
2577 * utils.c (init_page_info): Only call tgetnum function
2578 if rl_get_screen_size did not return useful values.
2579
2580 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2581
2582 PR breakpoints/15117
2583 * linespec.c (linespec_parse_basic): Check for convenience
2584 variable or history value while parsing.
2585
2586 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2587
2588 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2589 AVR.
2590 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2591 different signals between the generic Linux kernel implementation
2592 and AVR's.
2593 (avr_linux_gdb_signal_from_target): Delete.
2594 (avr_linux_gdb_signal_to_target): Delete.
2595 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2596
2597 2013-08-09 Doug Evans <dje@google.com>
2598
2599 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2600 entries.
2601
2602 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2603
2604 * linux-tdep.c: Define enum with generic signal numbers.
2605 (linux_gdb_signal_from_target): New function.
2606 (linux_gdb_signal_to_target): Likewise.
2607 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2608 methods to the functions above.
2609 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2610 (linux_gdb_signal_to_target): Likewise.
2611 * alpha-linux-tdep.c: Define new enum with signals different
2612 from generic Linux kernel.
2613 (alpha_linux_gdb_signal_from_target): New function.
2614 (alpha_linux_gdb_signal_to_target): Likewise.
2615 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2616 with the functions mentioned above.
2617 * avr-tdep.c: Define enum with differences between Linux kernel
2618 and AVR signals.
2619 (avr_linux_gdb_signal_from_target): New function.
2620 (avr_linux_gdb_signal_to_target): Likewise.
2621 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2622 the functions mentioned above.
2623 * sparc-linux-tdep.c: Define enum with differences between SPARC
2624 and generic Linux kernel signal numbers.
2625 (sparc32_linux_gdb_signal_from_target): New function.
2626 (sparc32_linux_gdb_signal_to_target): Likewise.
2627 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2628 to the functions defined above.
2629 * xtensa-linux-tdep.c: Define enum with differences between
2630 Xtensa and Linux kernel generic signals.
2631 (xtensa_linux_gdb_signal_from_target): New function.
2632 (xtensa_linux_gdb_signal_to_target): Likewise.
2633 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2634 to the functions defined above.
2635 * mips-linux-tdep.c: Define enum with differences between
2636 signals in MIPS and Linux kernel generic ones.
2637 (mips_gdb_signal_to_target): New function.
2638 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2639 only different signals from the Linux kernel generic.
2640 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2641 the functions defined above.
2642 * mips-linux-tdep.h (enum mips_signals): Remove.
2643
2644 2013-08-09 Pedro Alves <palves@redhat.com>
2645
2646 * avr-tdep.c (XMALLOC): Delete macro.
2647 * cli/cli-dump.c (XMALLOC): Delete macro.
2648
2649 2013-08-09 Pedro Alves <palves@redhat.com>
2650
2651 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2652 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2653 (fopen_with_cleanup, add_dump_command): Make static.
2654 * cli/cli-dump.h: Delete file.
2655 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2656 cli/cli-dump.h.
2657
2658 2013-08-09 Pedro Alves <palves@redhat.com>
2659
2660 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2661 error message.
2662
2663 2013-08-09 Pedro Alves <palves@redhat.com>
2664
2665 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2666 error message.
2667
2668 2013-08-09 Pedro Alves <palves@redhat.com>
2669
2670 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2671 (gcore_command): Use tilde_expand here, and when showing the
2672 filename to the user, show the expanded version.
2673
2674 2013-08-09 Yao Qi <yao@codesourcery.com>
2675
2676 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2677 'entryval' is set.
2678
2679 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2680
2681 * gcore.c (create_gcore_bfd): Use tilde_expand.
2682
2683 2013-08-08 Yao Qi <yao@codesourcery.com>
2684
2685 * frame.h (read_frame_local): Declare.
2686 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2687 read_frame_local.
2688 * stack.c (read_frame_local): New.
2689
2690 2013-08-08 Yao Qi <yao@codesourcery.com>
2691
2692 * mi/mi-cmd-stack.c: Update comments to function
2693 list_args_or_locals.
2694
2695 2013-08-07 Tom Tromey <tromey@redhat.com>
2696
2697 PR symtab/15028:
2698 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2699 (process_psymtab_comp_unit_reader): Use it.
2700 (process_psymtab_comp_unit): Update. Add "pretend_language"
2701 argument.
2702 (dwarf2_build_psymtabs_hard): Update.
2703 (scan_partial_symbols): Pass CU's language to
2704 process_psymtab_comp_unit.
2705
2706 2013-08-07 Tom Tromey <tromey@redhat.com>
2707
2708 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2709 (dwarf2_gdb_index_functions): Update.
2710 * psymtab.c (find_symbol_file_from_partial): Remove.
2711 (psym_functions): Update.
2712 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2713 Remove.
2714
2715 2013-08-07 Tom Tromey <tromey@redhat.com>
2716
2717 * symfile.c (set_initial_language): Look up "main" symbol
2718 and use its language.
2719 * symtab.c (find_main_filename): Remove.
2720 * symtab.h (find_main_filename): Remove.
2721
2722 2013-08-07 Tom Tromey <tromey@redhat.com>
2723
2724 * dwarf2read.c (recursively_compute_inclusions): Add
2725 "immediate_parent" argument. Set symtab's "user" field
2726 if not set.
2727 (compute_symtab_includes): Update.
2728
2729 2013-08-07 Tom Tromey <tromey@redhat.com>
2730
2731 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2732 when adding label symbols.
2733
2734 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2735 Ulrich Weigand <uweigand@de.ibm.com>
2736
2737 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2738 * configure.host (powerpc64-*-aix*): Likewise.
2739
2740 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2741 Ulrich Weigand <uweigand@de.ibm.com>
2742
2743 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2744 is defined.
2745 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2746 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2747 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2748 * configure.ac: Check for ptrace64.
2749 * configure, config.in: Regenerate.
2750
2751 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2752 Ulrich Weigand <uweigand@de.ibm.com>
2753
2754 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2755 Call ptrace64 instead of ptrace if defined.
2756 Add macro addr_ptr to take care of ptrace address argument.
2757 (pdc_read_regs): Likewise.
2758 (pdc_write_regs): Likewise.
2759 (aix_thread_resume): Likewise.
2760 (fetch_regs_kernel_thread): Likewise.
2761 (store_regs_kernel_thread): Likewise.
2762
2763 2013-08-07 Anton Blanchard <anton@samba.org>
2764
2765 * MAINTAINERS: Add myself to Write After Approval.
2766
2767 2013-08-05 Tom Tromey <tromey@redhat.com>
2768
2769 * aix-thread.c (_initialize_aix_thread): Use
2770 complete_target_initialization.
2771 * bsd-uthread.c (_initialize_bsd_uthread): Use
2772 complete_target_initialization.
2773 * dec-thread.c (_initialize_dec_thread): Use
2774 complete_target_initialization.
2775 * ravenscar-thread.c (_initialize_ravenscar): Use
2776 complete_target_initialization.
2777 * sol-thread.c (_initialize_sol_thread): Use
2778 complete_target_initialization.
2779 * spu-multiarch.c (_initialize_spu_multiarch): Use
2780 complete_target_initialization.
2781
2782 2013-08-05 Tom Tromey <tromey@redhat.com>
2783
2784 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2785 * ada-lang.c (ada_lookup_simple_minsym): Return
2786 bound_minimal_symbol.
2787 * ada-lang.h (ada_lookup_simple_minsym): Update.
2788 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2789 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2790 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2791 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2792 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2793 * minsyms.c (msymbol_objfile): Remove.
2794 (lookup_minimal_symbol_internal): New function, from
2795 lookup_minimal_symbol.
2796 (lookup_minimal_symbol): Rewrite using
2797 lookup_minimal_symbol_internal.
2798 (lookup_bound_minimal_symbol): New function.
2799 * minsyms.h (msymbol_objfile): Remove.
2800 (lookup_bound_minimal_symbol): Declare.
2801 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2802 * parse.c (write_exp_msymbol): Change parameter to a
2803 bound_minimal_symbol.
2804 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2805 * parser-defs.h (write_exp_msymbol): Update.
2806 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2807 * symfile.c (simple_read_overlay_table): Use
2808 lookup_bound_minimal_symbol.
2809 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2810 (search_symbols): Likewise.
2811 (print_msymbol_info): Take a bound_minimal_symbol argument.
2812 (symtab_symbol_info, rbreak_command): Update.
2813 * symtab.h (struct symbol_search) <msymbol>: Change type
2814 to bound_minimal_symbol.
2815 * valops.c (find_function_in_inferior): Use
2816 lookup_bound_minimal_symbol.
2817 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2818
2819 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2820
2821 Code cleanup.
2822 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2823 to ...
2824 (async_cleanup_sigint_signal_handler): ... this.
2825 (initialize_sigint_signal_handler): Remove declaration.
2826 (handle_remote_sigint): Rename the declaration to ...
2827 (async_handle_remote_sigint): ... this.
2828 (handle_remote_sigint_twice): Rename the declaration to ...
2829 (async_handle_remote_sigint_twice): ... this.
2830 (async_remote_interrupt, async_remote_interrupt_twice)
2831 (remote_interrupt): Remove the declarations.
2832 (remote_interrupt_twice): Rename the declaration ...
2833 (sync_remote_interrupt_twice): ... this.
2834 (sigint_remote_twice_token): Rename the variable to ...
2835 (async_sigint_remote_twice_token): ... this.
2836 (sigint_remote_token): Rename the variable to ...
2837 (async_sigint_remote_token): ... this.
2838 (initialize_sigint_signal_handler): Rename the function to ...
2839 (async_initialize_sigint_signal_handler): ... this. Update the name
2840 inside.
2841 (handle_remote_sigint): Rename the function to ...
2842 (async_handle_remote_sigint): ... this. Update the names inside.
2843 (handle_remote_sigint_twice): Rename the function to ...
2844 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2845 (cleanup_sigint_signal_handler): Rename the function to ...
2846 (async_cleanup_sigint_signal_handler): ... this.
2847 (remote_interrupt): Rename the function to ...
2848 (sync_remote_interrupt): this. Update the names inside.
2849 (remote_interrupt_twice): Rename the function to ...
2850 (sync_remote_interrupt_twice): this. Update the names inside.
2851 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2852 (_initialize_remote): Update the names inside.
2853
2854 2013-08-02 Tom Tromey <tromey@redhat.com>
2855
2856 PR symtab/15719:
2857 * breakpoint.c (update_watchpoint, watchpoint_check)
2858 (watch_command_1): Update.
2859 * eval.c (fetch_subexp_value): Add "preserve_errors"
2860 parameter.
2861 * ppc-linux-nat.c (check_condition): Update.
2862 * value.h (fetch_subexp_value): Update.
2863
2864 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
2865
2866 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2867 add_file_handler.
2868
2869 2013-08-01 Doug Evans <dje@google.com>
2870
2871 PR symtab/15691
2872 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2873 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2874 Add assert of sig_entry->dwo_unit == NULL.
2875 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2876 had already been read.
2877 (read_signatured_type): Set per_cu.tu_read.
2878
2879 PR symtab/15695
2880 * valops.c (value_struct_elt): Add missing call to check_typedef.
2881 (value_find_oload_method_list): Ditto.
2882
2883 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2884 effectively, struct symbol_search **.
2885 (make_cleanup_free_search_symbols): Change arg to struct
2886 symbol_search **. All callers updated.
2887 (compare_search_syms): Compare symtab file name and block as well.
2888 (search_symbols_equal): New function.
2889 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2890 New args new_head, new_tail. Result is now void. Remove dups after
2891 sorting the symbols.
2892 (search_symbols): Sort all found symbols once, after all have been
2893 found, and remove duplicates. Simplify cleanup tracking of result.
2894 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2895
2896 Further workarounds for binutils/15021.
2897 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2898 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2899 Watch for duplicate symtabs coming from type units.
2900 (compute_symtab_includes): Update call to
2901 recursively_compute_inclusions. Build vector of included symtabs
2902 instead of per_cus.
2903 * symtab.h (symtab_ptr): New typedef.
2904 (DEF_VEC_P (symtab_ptr)): New VEC type.
2905 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2906 instead.
2907
2908 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
2909
2910 * cli/cli-script.c (script_from_file): Remove use of
2911 error_pre_print.
2912 * main.c (captured_main): Remove use of error_pre_print and
2913 quit_pre_print.
2914 * utils.c (error_pre_print, quit_pre_print): Remove.
2915 * utils.h (error_pre_print, quit_pre_print): Likewise.
2916
2917 2013-08-01 Yao Qi <yao@codesourcery.com>
2918
2919 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2920 with mi_getopt.
2921 (mi_cmd_stack_list_variables): Likewise.
2922
2923 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2924
2925 * exceptions.c (deprecated_throw_reason): Remove.
2926 * exceptions.h (deprecated_throw_reason): Remove.
2927
2928 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2929
2930 * remote-mips.c (mips_error): Replace use of
2931 deprecated_throw_reason with throw_verror. Use the error message
2932 passed to mips_error as the error message for throw_verror.
2933
2934 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2935
2936 * monitor.c (monitor_interrupt_query): Replace use of
2937 deprecated_throw_reason with quit.
2938 * nto-procfs.c (interrupt_query): Likewise.
2939 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2940 * remote-mips.c (mips_kill): Likewise.
2941 * remote.c (interrupt_query): Likewise.
2942
2943 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2944
2945 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2946 with call to fatal.
2947
2948 2013-07-31 Pedro Alves <pedro@codesourcery.com>
2949 Yao Qi <yao@codesourcery.com>
2950
2951 * tracepoint.c (trace_dump_command): Select the current frame.
2952
2953 2013-07-30 Doug Evans <dje@google.com>
2954
2955 * dwarf2read.c (process_queue): Add type signature to debug output.
2956
2957 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
2958
2959 * value.c (value_fetch_lazy): Mark optimized out values as such
2960 rather than raising an error.
2961
2962 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
2963
2964 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2965 before checking which bits of the parent, not the child, value are
2966 valid.
2967
2968 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2969
2970 PR gdb/15715
2971 * top.c: Include "filenames.h".
2972 (set_history_filename): New function.
2973 (init_main): Install it as set hook of the "set history filename"
2974 command.
2975
2976 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2977
2978 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2979 attribute parameter.
2980 (dwarf2_const_value_data): Constify struct attribute parameter.
2981 (dwarf2_const_value): Constify struct attribute parameter.
2982 (dwarf2_const_value_attr): Constify struct attribute parameter.
2983 (lookup_die_type): Constify struct attribute parameter.
2984 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2985 (follow_die_ref_or_sig): Constify struct attribute parameter.
2986 (follow_die_ref): Constify struct attribute parameter.
2987 (follow_die_sig): Constify struct attribute parameter.
2988 (get_DW_AT_signature_type): Constify struct attribute parameter.
2989 (get_type_unit_group): Constify struct attribute parameter.
2990 (fill_in_loclist_baton): Constify struct attribute parameter.
2991 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2992 (type_unit_group): Constify struct attribute parameter.
2993
2994 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2995
2996 * dwarf2read.c (attr_form_is_block): Make argument const.
2997 (attr_form_is_section_offset): Make argument const.
2998 (attr_form_is_constant): Make argument const.
2999 (attr_form_is_ref): Make argument const.
3000
3001 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3002
3003 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3004 All uses updated.
3005 (attr_form_is_ref): Moved below attr_form_is_constant.
3006
3007 2013-07-29 Doug Evans <dje@google.com>
3008
3009 * main.c (captured_command_loop): Tweak comment.
3010
3011 * target.c (target_async_permitted_1): Fix comment.
3012
3013 * symtab.c (iterate_over_some_symtabs): Add comment.
3014
3015 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3016
3017 2013-07-27 Yao Qi <yao@codesourcery.com>
3018
3019 * NEWS: Mention that GDBserver now supports hardware
3020 watchpoints on the MIPS GNU/Linux target.
3021
3022 2013-07-27 Yao Qi <yao@codesourcery.com>
3023
3024 * Makefile.in (HFILES_NO_SRCDIR): Add
3025 common/mips-linux-watch.h.
3026 (mips-linux-watch.o): New rule.
3027 * common/mips-linux-watch.c: New.
3028 * common/mips-linux-watch.h: New.
3029 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3030 * mips-linux-nat.c: Include mips-linux-watch.h.
3031 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3032 to common/mips-linux-watch.h.
3033 (MAX_DEBUG_REGISTER): Likewise.
3034 (enum pt_watch_style): Likewise.
3035 (struct mips32_watch_regs): Likewise.
3036 (struct mips64_watch_regs): Likewise.
3037 (struct pt_watch_regs): Likewise.
3038 (struct mips_watchpoint): Likewise.
3039 (mips_linux_watch_get_irw_mask): Move to
3040 common/mips-linux-watch.c.
3041 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3042 (mips_linux_watch_get_watchlo): Likewise.
3043 (mips_linux_watch_set_watchlo): Likewise.
3044 (mips_linux_watch_get_watchhi): Likewise.
3045 (mips_linux_watch_set_watchhi): Likewise.
3046 (mips_linux_read_watch_registers): Likewise.
3047 (mips_linux_watch_type_to_irw): Likewise.
3048 (mips_linux_stopped_data_address, fill_mask): Likewise.
3049 (mips_linux_watch_try_one_watch): Likewise.
3050 (mips_linux_watch_populate_regs): Likewise.
3051
3052 2013-07-27 Yao Qi <yao@codesourcery.com>
3053
3054 * mips-linux-nat.c (get_irw_mask): Rename to ...
3055 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3056 'set' to 'n'. Update function comment. All callers changed.
3057 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3058 function comment. All callers changed.
3059 (get_num_valid): Rename to ...
3060 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3061 'set' to 'n'. Update function comment. All callers changed.
3062 (get_watchlo): Rename to ...
3063 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3064 'set' to 'n'. Update function comment. All callers changed.
3065 (set_watchlo): Rename to ...
3066 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3067 'set' to 'n'. Update function comment. All callers changed.
3068 (get_watchhi): Rename to ...
3069 (mips_linux_watch_get_watchhi): ... this. Update function
3070 comment. All callers changed.
3071 (set_watchhi): Rename to ...
3072 (mips_linux_watch_set_watchhi): ... this. Update function
3073 comment. All callers changed.
3074 (mips_linux_read_watch_registers): Update function comment.
3075 Add new parameters 'lwpid', 'watch_readback', and
3076 'watch_readback_valid'. Update.
3077 (type_to_irw): Rename to ...
3078 (mips_linux_watch_type_to_irw): ... this. Update function
3079 comment. All callers changed.
3080 (fill_mask): Update function comment.
3081 (try_one_watch): Rename to ...
3082 (mips_linux_watch_try_one_watch): ... this. Change the type
3083 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3084 (populate_regs_from_watches): Rename to ...
3085 (mips_linux_watch_populate_regs): ... this. Add parameter
3086 'current_watches'. All callers changed.
3087
3088 2013-07-27 Yao Qi <yao@codesourcery.com>
3089
3090 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3091 the code.
3092 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3093 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3094 (struct pt_watch_regs): Likewise.
3095 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3096 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3097 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3098 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3099 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3100
3101 2013-07-27 Yao Qi <yao@codesourcery.com>
3102
3103 * breakpoint.h: Include break-common.h.
3104 (enum target_hw_bp_type): Move to ...
3105 * common/break-common.h: ... here. New.
3106
3107 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3108
3109 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3110 process group regardless of having tty on stdin.
3111
3112 2013-07-25 Doug Evans <dje@google.com>
3113
3114 * linux-fork.h (detach_fork): Delete.
3115
3116 2013-07-25 Tom Tromey <tromey@redhat.com>
3117
3118 PR remote/15256, PR remote/15266:
3119 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3120 * monitor.c (monitor_detach): Use unpush_target.
3121 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3122 * remote-mips.c (mips_detach): Use unpush_target. Don't
3123 call mips_close.
3124 * remote-sim.c (gdbsim_detach): Use unpush_target.
3125 * target.c (pop_target): Remove.
3126 (pop_all_targets_above): Don't call target_close.
3127 (target_close): Assert that the target is unpushed.
3128 * target.h (pop_target): Don't declare.
3129 * tracepoint.c (tfile_open): Use unpush_target.
3130
3131 2013-07-25 Tom Tromey <tromey@redhat.com>
3132
3133 * linux-thread-db.c (init_thread_db_ops): Call
3134 complete_target_initialization.
3135 (_initialize_thread_db): Don't call add_target.
3136 * target.c (complete_target_initialization): New function.
3137 (add_target_with_completer): Call it.
3138 * target.h (complete_target_initialization): Declare.
3139
3140 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3141
3142 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3143 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3144 (HPPANBSD_SIZEOF_GREGS): New define.
3145 (hppaobsd_supply_gregset): Handle additional registers.
3146 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3147 we provide more registers now.
3148 (hppabsd_supply_gregset): Supply additional registers.
3149 (hppabsd_collect_gregset): Collect additional registers.
3150
3151 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3152
3153 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3154 (hppabsd_dwarf2_frame_init_reg): New function.
3155 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3156
3157 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3158
3159 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3160 'z' format code. Remove error for optimized out values, standard
3161 code will handle these fine.
3162
3163 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3164
3165 * NEWS: Mention new 'z' formatter.
3166 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3167 (_initialize_printcmd): Mention 'z' formatter in help text of the
3168 'x' command.
3169
3170 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3171
3172 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3173 formatting.
3174
3175 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3176
3177 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3178 interface can evaluate arguments. Fallback to the old mode if it
3179 cannot.
3180 (create_exception_master_breakpoint): Likewise.
3181 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3182 (struct sym_probe_fns elf_probe_fns): Export function above to the
3183 probe interface.
3184 * probe.c (can_evaluate_probe_arguments): New function.
3185 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3186 function pointer.
3187 (can_evaluate_probe_arguments): New function prototype.
3188 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3189 probe interface can evaluate arguments. Fallback to the old mode
3190 if it cannot.
3191 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3192 interface can evaluate arguments. Warning the user if it cannot.
3193 (stap_can_evaluate_probe_arguments): New function.
3194 (struct probe_ops stap_probe_ops): Export function above to the
3195 probe interface.
3196 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3197 New function pointer.
3198
3199 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3200
3201 * Makefile.in (SFILES): Add common/target-common.c.
3202 Add common/target-common.h to headers.
3203 (COMMON_OBS): Add target-common.o.
3204 (target-common.o): New target.
3205 * linux-nat.h (resume_kind): Move to common/target-common.h.
3206 * target.c (target_waitstatus_to_string): Move to
3207 common/target-common.c.
3208 * target.h: Include target-common.h.
3209 (target_waitkind): Move to common/target-common.h.
3210 (target_waitstatus): Likewise.
3211 (TARGET_WNOHANG): Likewise.
3212 * common/target-common.c: New file.
3213 * common/target-common.h: New file.
3214
3215 2013-07-24 Doug Evans <dje@google.com>
3216
3217 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3218 a warning.
3219
3220 2013-07-23 Yao Qi <yao@codesourcery.com>
3221
3222 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3223 parameter 'gdbarch'.
3224 (i386_stack_tramp_frame_sniffer): Caller update.
3225 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3226 parameter 'gdbarch' and 'target'.
3227 (i386_linux_core_read_description): Caller update.
3228 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3229 Likewise.
3230 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3231 declaration.
3232
3233 2013-07-23 Tom Tromey <tromey@redhat.com>
3234
3235 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3236 2013-07-22.
3237
3238 2013-07-22 Doug Evans <dje@google.com>
3239
3240 * exec.h (remove_target_sections): Delete arg abfd.
3241 * exec.c (exec_close): Update call to remove_target_sections.
3242 (remove_target_sections): Delete arg abfd.
3243 * solib.c (update_solib_list): Ditto.
3244 (reload_shared_libraries_1): Ditto.
3245 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3246 * target.h (struct target_section): Rename key to owner.
3247 All uses updated.
3248
3249 2013-07-22 Tom Tromey <tromey@redhat.com>
3250
3251 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3252
3253 2013-07-22 Tom Tromey <tromey@redhat.com>
3254
3255 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3256 Simplify cleanup handling.
3257
3258 2013-07-22 Tom Tromey <tromey@redhat.com>
3259
3260 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3261 on all return paths.
3262
3263 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3264
3265 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3266 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3267 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3268
3269 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3270
3271 * top.c (print_gdb_version): Add help, apropos description and
3272 url to online documentation.
3273
3274 2013-07-19 Hui Zhu <hui@codesourcery.com>
3275
3276 PR gdb/15692
3277 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3278
3279 2013-07-19 Yao Qi <yao@codesourcery.com>
3280
3281 * target.c (update_current_target): Change the default action
3282 of 'to_traceframe_info' from tcomplain to return_zero.
3283 * target.h (struct target_ops) <to_traceframe_info>: Add more
3284 comments.
3285 * valops.c (read_value_memory): Call
3286 traceframe_available_memory unconditionally.
3287
3288 2013-07-18 Yao Qi <yao@codesourcery.com>
3289
3290 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3291 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3292 symbol without prefix. If found, set its type to
3293 'mst_solib_trampoline'.
3294
3295 2013-07-17 Doug Evans <dje@google.com>
3296
3297 * NEWS: Mention "set print raw frame-arguments".
3298 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3299 * stack.c (print_raw_frame_arguments): New static global.
3300 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3301 (_initialize_stack): New command "set/show print raw frame-arguments".
3302 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3303 (set_print_raw, show_print_raw): New functions.
3304 (_initialize_valprint): New prefix command "set/show print raw".
3305 * valprint.h (value_print_options): Improve comments.
3306
3307 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3308 of all *list variables.
3309
3310 * gdbcmd.h (togglelist): Delete.
3311 * cli/cli-cmds.c (togglelist): Delete.
3312 (init_cmd_lists): Update.
3313 * cli/cli-cmds.h (togglelist): Delete.
3314
3315 2013-07-17 Tom Tromey <tromey@redhat.com>
3316
3317 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3318 dwarf2_per_objfile.
3319
3320 2013-07-16 Doug Evans <dje@google.com>
3321
3322 * nto-tdep.c (nto_relocate_section_addresses): Update,
3323 target_section.bfd deleted.
3324 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3325 * s390-tdep.c (s390_load): Ditto.
3326 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3327
3328 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3329
3330 * common/format.c (parse_format_string): Add checks for NULL
3331 character before calling strchr.
3332
3333 2013-07-16 Doug Evans <dje@google.com>
3334
3335 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3336 temp_pathname argument.
3337 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3338 when opening the file fails.
3339
3340 * target.h (struct target_section): Delete member bfd.
3341 All users updated to use the_bfd_section->owner instead.
3342 * exec.c (add_to_section_table): Assert bfd is expected value.
3343 Remove initialization of target_section.bfd.
3344 (remove_target_sections): Update.
3345 (section_table_available_memory): Update.
3346 (section_table_xfer_memory_partial): Update.
3347 (print_section_info): Update.
3348 (exec_set_section_address): Update.
3349 * record-full.c (record_full_core_xfer_partial): Update.
3350 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3351 * solib-target.c (solib_target_relocate_section_addresses): Update.
3352 * symfile.c (build_section_addr_info_from_section_table): Update.
3353 * target.c (memory_xfer_live_readonly_partial): Update.
3354 (memory_xfer_partial_1): Update.
3355
3356 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3357
3358 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3359 now available for embedded (BookE) and server (BookS) processors,
3360 correct mentions of 'booke' and adjust comments accordingly in order to
3361 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3362 (have_ptrace_booke_interface): Rename function and variable
3363 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3364 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3365 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3366 'hwdebug_point_cmp'. Update all uses.
3367 (booke_find_thread_points_by_tid): Rename function
3368 'booke_find_thread_points_by_tid' to
3369 'hwdebug_find_thread_points_by_tid'. Update all uses.
3370 (booke_insert_point): Rename function 'booke_insert_point' to
3371 'hwdebug_insert_point'. Update all uses.
3372 (booke_remove_point): Rename function 'booke_remove_point' to
3373 'hwdebug_remove_point'. Update all uses.
3374
3375 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3376
3377 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3378 numbers with enum values.
3379
3380 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3381
3382 PR threads/13217
3383 * thread.c (thread_apply_all_command): Check for valid threads
3384 and thread count.
3385 (thread_array_cleanup): New struct.
3386 (set_thread_refcount): New function.
3387
3388 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3389
3390 * infcmd.c (default_print_one_register_info): Reuse function
3391 print_hex_chars.
3392
3393 2013-07-10 Tom Tromey <tromey@redhat.com>
3394
3395 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3396 (ada-exp.o): New target.
3397
3398 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3399
3400 * mt-tdep.c (mt_registers_info): Call
3401 get_no_prettyformat_print_options instead of
3402 get_raw_print_options (regression by last patch from Doug
3403 Evans).
3404
3405 2013-07-09 Pedro Alves <palves@redhat.com>
3406
3407 Checked in by Joel Brobecker <brobecker@adacore.com>.
3408 * ada-lang.c (coerce_unspec_val_to_type): Use
3409 value_optimized_out_const.
3410 * value.c (value_optimized_out_const): New function.
3411 * value.h (value_optimized_out_const): New declaration.
3412
3413 2013-07-09 Doug Evans <dje@google.com>
3414
3415 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3416 Enum values rename as well. All uses updated.
3417 * valprint.h (value_print_options): Rename member pretty to
3418 pretty format. Rename member prettyprint_arrays to
3419 prettyformat_arrays. Rename member prettyprint_structs to
3420 prettyformat_structs. All uses updated.
3421 (get_no_prettyformat_print_options): Renamed from
3422 get_raw_print_options.
3423 * valprint.c (get_no_prettyformat_print_options): Renamed from
3424 get_raw_print_options. All callers updated.
3425 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3426 All callers updated.
3427 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3428 All callers updated.
3429 (_initialize_valprint): Improve help text for "set print pretty" and
3430 "set print arrays".
3431
3432 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3433
3434 * value.c (value_bits_valid): Revert previous change, and change
3435 by Pedro on 2013-07-04, due to regressions in
3436 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3437
3438 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3439 Pedro Alves <palves@redhat.com>
3440
3441 * value.c (value_bits_valid): If the value is not lval_computed
3442 or has no check validity handler then the answer is the
3443 optimized_out flag, otherwise defer to the handler.
3444
3445 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3446
3447 * top.c (print_gdb_configuration): Explain in output of
3448 --configuration what does "relocatable" mean.
3449
3450 * main.c (print_gdb_help): Regroup options in the --help text.
3451 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3452 the relevant discussions.
3453
3454 2013-07-06 Yao Qi <yao@codesourcery.com>
3455
3456 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3457 Remove parameter 'lsal'.
3458 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3459 to inner block. Caller update.
3460 (base_breakpoint_create_breakpoints_sal): Update.
3461 (bkpt_create_breakpoints_sal): Likewise.
3462 (tracepoint_create_breakpoints_sal): Likewise.
3463 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3464 element 0 of vector 'canonical->sals'.
3465
3466 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3467
3468 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3469 register number instead of the pseudo register one.
3470 (rs6000_dwarf2_reg_to_regnum): Likewise.
3471
3472 2013-07-04 Pedro Alves <palves@redhat.com>
3473
3474 * findvar.c (value_of_register): Use allocate_optimized_out_value
3475 if the register has been optimized out, instead of
3476 set_value_optimized_out.
3477 * frame-unwind.c (frame_unwind_got_optimized): Use
3478 allocate_optimized_out_value.
3479
3480 2013-07-04 Pedro Alves <palves@redhat.com>
3481
3482 * value.c (value_bits_valid): If the value is not lval_computed,
3483 or doesn't have a check_validity hook, assume the value is entirely
3484 valid.
3485
3486 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3487
3488 * stack.c (read_frame_arg): No longer fetch lazy values.
3489 * value.c (value_optimized_out): If the value is not already
3490 marked optimized out, and is lazy then fetch it.
3491 (value_primitive_field): Move optimized out check to later in the
3492 function, after we have loaded any lazy values.
3493 (value_fetch_lazy): Use optimized out flag directly rather than
3494 calling optimized_out method.
3495
3496 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3497
3498 * valops.c: Don't include "user-regs.h".
3499 (value_fetch_lazy): Moved to value.c.
3500 * value.c: Include "user-regs.h".
3501 (value_fetch_lazy): Moved from valops.c.
3502
3503 2013-07-04 Yao Qi <yao@codesourcery.com>
3504
3505 Revert:
3506 2013-06-27 Yao Qi <yao@codesourcery.com>
3507
3508 * common/create-version.sh: Update comments. Handle the case
3509 that TARGET_ALIAS is empty.
3510
3511 2013-07-03 Pedro Alves <palves@redhat.com>
3512
3513 * Makefile.in (config.status): Depend on development.sh.
3514 (aclocal_m4_deps): Add libmcheck.m4.
3515 * acinclude.m4: Include libmcheck.m4.
3516 * configure.ac: Source development.sh instead of setting
3517 'development' here. --enable-libmcheck/--disable-libmcheck code
3518 factored out to GDB_AC_LIBMCHECK. Run it.
3519 * development.sh: New file.
3520 * libmcheck.m4: New file.
3521 * configure: Regenerate.
3522
3523 2013-07-02 Tom Tromey <tromey@redhat.com>
3524
3525 * contrib/ari/update-web-ari.sh: Update for version.in change.
3526
3527 2013-07-02 Tom Tromey <tromey@redhat.com>
3528
3529 * common/ptid.h: Comment fixes.
3530
3531 2013-07-01 Tom Tromey <tromey@redhat.com>
3532
3533 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3534 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3535 (dwarf2_read_index, create_all_comp_units): Update.
3536
3537 2013-07-01 Tom Tromey <tromey@redhat.com>
3538
3539 * configure.ac (build_warnings): Add -Wold-style-definition.
3540 * configure: Rebuild.
3541 * machoread.c (_initialize_machoread): Use "(void)".
3542 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3543 use "(void)".
3544
3545 2013-07-01 Tom Tromey <tromey@redhat.com>
3546
3547 * configure.ac (build_warnings): Add -Wold-style-declaration.
3548 * configure: Rebuild.
3549 * dsrec.c (make_srec): Use "static const", not "const static".
3550 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3551 not "const static".
3552 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3553 Use "static const", not "const static".
3554 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3555 not "const static".
3556 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3557 not "const static".
3558 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3559 not "const static".
3560 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3561 not "const static".
3562 (v850_dbtrap_breakpoint_from_pc): Likewise.
3563 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3564 not "const static".
3565
3566 2013-07-01 Tom Tromey <tromey@redhat.com>
3567
3568 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3569 * configure: Rebuild.
3570
3571 2013-07-01 Pedro Alves <palves@redhat.com>
3572
3573 * defs.h: Include "pathmax.h".
3574 * utils.c: Don't include sys/param.h.
3575 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3576 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3577 instead of MAXPATHLEN.
3578 * solib-sunos.c: Don't include sys/param.h.
3579 * xcoffread.c: Don't include sys/param.h.
3580 * bsd-kvm.c: Don't include sys/param.h.
3581 * darwin-nat.c: Don't include sys/param.h.
3582 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3583 * darwin-nat-info.c: Don't include sys/param.h.
3584 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3585 MAXPATHLEN.
3586 * i386obsd-nat.c: Don't include sys/param.h.
3587 * inf-child.c: Don't include sys/param.h.
3588 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3589 * linux-fork.c: Don't include sys/param.h.
3590 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3591 * linux-nat.c: Don't include sys/param.h.
3592 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3593 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3594 * m68klinux-nat.c: Don't include sys/param.h.
3595 * nbsd-nat.c: Don't include sys/param.h.
3596 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3597 * ppc-linux-nat.c: Don't include sys/param.h.
3598 * rs6000-nat.c: Don't include sys/param.h.
3599 * spu-linux-nat.c. Don't include sys/param.h.
3600 * windows-nat.c: Don't include sys/param.h.
3601 * xtensa-linux-nat.c: Don't include sys/param.h.
3602 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3603
3604 2013-07-01 Pedro Alves <palves@redhat.com>
3605
3606 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3607 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3608 * gnulib/aclocal.m4: Regenerate.
3609 * gnulib/config.in: Regenerate.
3610 * gnulib/configure: Regenerate.
3611 * gnulib/import/pathmax.h: New file.
3612 * gnulib/import/Makefile.am: Regenerate.
3613 * gnulib/import/Makefile.in: Regenerate.
3614 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3615 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3616 * gnulib/import/m4/pathmax.m4: New file.
3617
3618 2013-07-01 Pedro Alves <palves@redhat.com>
3619
3620 * configure.ac (GDBINIT): Define, depending on host.
3621 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3622 * top.c (PATH_MAX): Delete fallback definition.
3623 (GDBINIT_FILENAME): Delete.
3624 (gdbinit): Reimplement as const char array set to the GDBINIT
3625 string constant.
3626 * top.h (gdbinit): Make const.
3627 * configure, config.in: Regenerate.
3628
3629 2013-07-01 Pedro Alves <palves@redhat.com>
3630
3631 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3632 * cli/cli-cmds.h (source_script): Likewise.
3633 * exceptions.c (catch_command_errors_const): New function.
3634 * exceptions.h (catch_command_errors_const): Declare.
3635 * main.c (get_init_files): Make parameters const, and adjust.
3636 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3637 'local_gdbinit' locals const. Adjust to use
3638 catch_command_errors_const.
3639 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3640 'local_gdbinit' locals const.
3641
3642 2013-07-01 Pedro Alves <palves@redhat.com>
3643
3644 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3645 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3646 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3647 <unistd.h>.
3648
3649 2013-07-01 Pedro Alves <palves@redhat.com>
3650
3651 Import the "unistd" gnulib module.
3652 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3653 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3654 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3655 import/m4/unistd_h.m4.
3656 * gnulib/aclocal.m4: Renenerate.
3657 * gnulib/config.in: Renenerate.
3658 * gnulib/configure: Renenerate.
3659 * gnulib/import/Makefile.am: Renenerate.
3660 * gnulib/import/Makefile.in: Renenerate.
3661 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3662 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3663 * gnulib/import/m4/off_t.m4: New file.
3664 * gnulib/import/m4/ssize_t.m4: New file.
3665 * gnulib/import/m4/sys_types_h.m4: New file.
3666 * gnulib/import/m4/unistd_h.m4: New file.
3667 * gnulib/import/sys_types.in.h: New file.
3668 * gnulib/import/unistd.c: New file.
3669 * gnulib/import/unistd.in.h: New file.
3670
3671 2013-07-01 Pedro Alves <palves@redhat.com>
3672
3673 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3674 defined instead of checking HAVE_UNISTD_H.
3675
3676 2013-07-01 Pedro Alves <palves@redhat.com>
3677
3678 Reimport gnulib from scratch.
3679 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3680 import/m4/onceonly.m4.
3681 * gnulib/aclocal.m4: Renegerate.
3682 * gnulib/config.in: Renegerate.
3683 * gnulib/configure: Renegerate.
3684 * gnulib/import/Makefile.in: Renegerate.
3685 * gnulib/import/extra/update-copyright: Renegerate.
3686 * gnulib/import/m4/onceonly.m4: Delete.
3687
3688 2013-07-01 Pedro Alves <palves@redhat.com>
3689
3690 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3691
3692 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3693
3694 Code cleanup.
3695 * remote.c (async_remote_interrupt_twice): Make it static.
3696 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3697
3698 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3699
3700 * ia64-linux-tdep.c: Include <ctype.h>.
3701 (ia64_linux_stap_is_single_operand): New function.
3702 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3703
3704 2013-06-28 Tom Tromey <tromey@redhat.com>
3705
3706 * Makefile.in (version.c): Use version.in, not
3707 common/version.in.
3708 * common/create-version.sh: Likewise.
3709 * common/version.in: Move...
3710 * version.in: ...here.
3711
3712 2013-06-28 Pedro Alves <palves@redhat.com>
3713
3714 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3715 here.
3716 * utils.h (pagination_enabled): Declare.
3717
3718 2013-06-28 Pedro Alves <palves@redhat.com>
3719
3720 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3721 Move higher up in file.
3722
3723 2013-06-28 Tom Tromey <tromey@redhat.com>
3724
3725 * tracepoint.c (deprecated_readline_begin_hook)
3726 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3727 declare.
3728
3729 2013-06-28 Pedro Alves <palves@redhat.com>
3730
3731 PR tui/14880
3732 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3733 checking if they're available.
3734 * value.c (value_available_contents_eq): Change comment.
3735 * value.h (value_available_contents_eq): Expand comment.
3736
3737 2013-06-27 Tom Tromey <tromey@redhat.com>
3738
3739 * target.c (find_run_target): Remove.
3740 * target.h (find_run_target): Remove.
3741
3742 2013-06-27 Tom Tromey <tromey@redhat.com>
3743
3744 * corelow.c (core_gdbarch): Now static.
3745
3746 2013-06-27 Tom Tromey <tromey@redhat.com>
3747
3748 * target.c (target_struct_index): Remove.
3749
3750 2013-06-27 Pedro Alves <palves@redhat.com>
3751
3752 * infrun.c: Remove comment describing the 'stepping over runtime
3753 loader dynamic symbol resolution code' mechanism; moved to
3754 gdbint.texinfo.
3755
3756 2013-06-27 Pedro Alves <palves@redhat.com>
3757
3758 * exceptions.c (catch_command_errors): Remove spurious space.
3759 * exceptions.h (catch_command_errors): Second parameter is "arg",
3760 not "command".
3761
3762 2013-06-27 Yao Qi <yao@codesourcery.com>
3763
3764 * common/create-version.sh: Update comments. Handle the case
3765 that TARGET_ALIAS is empty.
3766
3767 2013-06-26 Pedro Alves <palves@redhat.com>
3768
3769 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3770 comment.
3771
3772 2013-06-26 Pedro Alves <palves@redhat.com>
3773
3774 * infrun.c: Update comments on stepping over runtime loader
3775 dynamic symbol resolution code.
3776
3777 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3778
3779 * ax-gdb.h (union exp_element): Forward declare.
3780 * parser-defs.h: Include expression.h.
3781
3782 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3783
3784 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3785
3786 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3787
3788 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3789
3790 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3791
3792 Fix trace-status to output proper start-time and stop-time.
3793 * tracepoint.c (trace_status_command): Fix type of printf arg to
3794 prevent improper type conversion.
3795 (trace_status_mi): Likewise.
3796
3797 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3798
3799 * mips-tdep.c (mips_next_pc): Fix a typo.
3800
3801 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3802
3803 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3804
3805 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3806 Yao Qi <yao@codesourcery.com>
3807
3808 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3809 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3810 * mi/mi-main.c (print_variable_or_computed): New function.
3811 (mi_cmd_trace_frame_collected): New function.
3812 * tracepoint.c (find_trace_state_variable_by_number): New.
3813 (struct traceframe_info): Move to tracepoint.h
3814 (struct collection_list): Likewise.
3815 (do_collect_symbol): Include locals and arguments in the
3816 collected variables list.
3817 (clear_collection_list): Clear wholly collected variables list
3818 and computed variables list.
3819 (append_exp): New function.
3820 (encode_actions_1): Include variables in the wholly
3821 collected variables list. Include memory ranges and
3822 full-fledged expressions in the computed expressions list.
3823 (encode_actions): Move some code to ...
3824 Return the cleanup chain.
3825 (encode_actions_rsp): ... here. New function.
3826 (get_traceframe_location, get_traceframe_info): Remove static.
3827 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3828 (struct collection_list): Moved from tracepoint.c. Add two
3829 new fields 'wholly_collected' and 'computed'.
3830 (find_trace_state_variable_by_number): Declare.
3831 (encode_actions): Adjust declaration.
3832 (encode_actions_rsp): Declare.
3833 (get_traceframe_info, get_traceframe_location): Declare.
3834
3835 * NEWS: Mention new MI command -trace-frame-collected.
3836
3837 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3838 Yao Qi <yao@codesourcery.com>
3839
3840 * ctf.c (ctf_traceframe_info): Push trace state variables
3841 present in the trace data into the traceframe info object.
3842 * breakpoint.c (DEF_VEC_I): Remove.
3843 * common/filestuff.c (DEF_VEC_I): Likewise.
3844 * dwarf2loc.c (DEF_VEC_I): Likewise.
3845 * mi/mi-main.c (DEF_VEC_I): Likewise.
3846 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3847 * features/traceframe-info.dtd: Add tvar element and its
3848 attributes.
3849 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3850 (build_traceframe_info): Push trace state variables present in
3851 the trace data into the traceframe info object.
3852 (traceframe_info_start_tvar): New function.
3853 (tvar_attributes): New.
3854 (traceframe_info_children): Add "tvar" element.
3855 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3856
3857 * NEWS: Mention the change in GDB and GDBserver.
3858
3859 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3860 Yao Qi <yao@codesourcery.com>
3861
3862 * tracepoint.c (trace_dump_command): Move code to ...
3863 (get_traceframe_location): ... here. New.
3864
3865 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3866 Yao Qi <yao@codesourcery.com>
3867
3868 * tracepoint.c (trace_dump_command): GDB emits an error
3869 instead of a warning when a traceframe is not selected.
3870
3871 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3872 Yao Qi <yao@codesourcery.com>
3873
3874 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3875 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3876 in collection_list.
3877 (do_clear_collection_list, init_collection_list): New.
3878 (encode_actions): Add local variables 'tracepoint_list' and
3879 'stepping_list'. Call init_collection_list and make cleanup
3880 which calls do_clear_collection_list. Don't call
3881 clear_collection_list.
3882 (_initialize_tracepoint): Delete references to
3883 'tracepoint_list' and 'stepping_list'.
3884
3885 2013-06-25 Tom Tromey <tromey@redhat.com>
3886
3887 * common/create-version.sh (date): Use "$", not "$$" in sed
3888 expression.
3889
3890 2013-06-25 Kevin Buettner <kevinb@redhat.com>
3891
3892 * NEWS (New targets): Add entry for TI MSP430.
3893
3894 2013-06-25 Yao Qi <yao@codesourcery.com>
3895
3896 * remote.c (remote_start_remote): Move code to upload tsv
3897 earlier.
3898
3899 2013-06-25 Yao Qi <yao@codesourcery.com>
3900 Hui Zhu <hui@codesourcery.com>
3901 Pedro Alves <palves@redhat.com>
3902
3903 PR breakpoints/15075
3904 PR breakpoints/15434
3905 * breakpoint.c (bpstat_stop_status): Call
3906 b->ops->after_condition_true.
3907 (update_dprintf_command_list): Don't append "continue" command
3908 to the command list of dprintf breakpoint.
3909 (base_breakpoint_after_condition_true): New function.
3910 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3911 (dprintf_after_condition_true): New function.
3912 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3913 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3914
3915 2013-06-24 Kevin Buettner <kevinb@redhat.com>
3916
3917 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3918 (ALLDEPFILES): Add msp430-tdep.c.
3919 * configure.tgt (msp430*-*-elf): New target.
3920 * msp430-tdep.c: New file.
3921
3922 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3923
3924 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3925 microMIPS synthetic symbols.
3926
3927 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3928
3929 * objfiles.h (pc_in_section): New prototype.
3930 (in_plt_section): Remove name argument, replace prototype with
3931 static inline function.
3932 * mips-tdep.h: Include "objfiles.h".
3933 (in_mips_stubs_section): New function.
3934 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3935 in_solib_call_trampoline member.
3936 (hppa_in_solib_call_trampoline): Remove name argument.
3937 * objfiles.c (pc_in_section): New function.
3938 (in_plt_section): Remove function.
3939 * mips-linux-tdep.c: Include "objfiles.h".
3940 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3941 name argument. Return 1 rather than the low 16-bit halfword of
3942 any instruction examined.
3943 (mips_linux_in_dynsym_resolve_code): Update
3944 mips_linux_in_dynsym_stub call accordingly.
3945 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3946 rather than an equivalent hand-coded sequence.
3947 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3948 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3949 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3950 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3951 in_opd_section.
3952 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3953 on call to tdep->in_solib_call_trampoline.
3954 (hppa_in_solib_call_trampoline): Remove name argument, update
3955 according to in_plt_section change.
3956 (hppa_skip_trampoline_code): Update according to in_plt_section
3957 change.
3958 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3959 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3960 Likewise.
3961 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3962 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3963 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3964 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3965 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3966 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3967 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3968 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3969 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3970 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3971 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3972 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3973 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3974
3975 2013-06-24 Joel Brobecker <brobecker@adacore.com>
3976
3977 * common/create-version.sh: Fix expansion of $host_alias
3978 and $target_alias in generation of HOST_NAME and TARGET_NAME
3979 (resp.).
3980
3981 2013-06-24 Tom Tromey <tromey@redhat.com>
3982
3983 * common/create-version.sh: New file.
3984 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3985 create-version.sh.
3986 (HFILES_NO_SRCDIR): Use common/version.h.
3987 * version.in: Move to ...
3988 * common/version.in: ... here. Replace date with "DATE".
3989 * version.h: Move to ...
3990 * common/version.h: ... here.
3991
3992 2013-06-21 Joel Brobecker <brobecker@adacore.com>
3993
3994 * gdb/gnulib/Makefile.in: Update date in copyright header.
3995 * gdb/gnulib/configure.ac: Ditto.
3996 * gdb/gnulib/update-gnulib.sh: Ditto.
3997
3998 2013-06-21 Joel Brobecker <brobecker@adacore.com>
3999
4000 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4001 "gdb/gnulib/import".
4002
4003 2013-06-21 Will Newton <will.newton@linaro.org>
4004
4005 * doublest.c (ldfrexp): Remove function.
4006 (convert_doublest_to_floatformat): Call frexpl instead of
4007 ldfrexp.
4008
4009 2013-06-21 Will Newton <will.newton@linaro.org>
4010
4011 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4012 * gnulib/aclocal.m4: Regenerate.
4013 * gnulib/config.in: Regenerate.
4014 * gnulib/configure: Regenerate.
4015 * gnulib/import/Makefile.am: Update.
4016 * gnulib/import/Makefile.in: Update.
4017 * gnulib/import/m4/gnulib-cache.m4: Update.
4018 * gnulib/import/m4/gnulib-comp.m4: Update.
4019 * gnulib/import/float+.h: Import.
4020 * gnulib/import/float.c: Import.
4021 * gnulib/import/float.in.h: Import.
4022 * gnulib/import/fpucw.h: Import.
4023 * gnulib/import/frexp.c: Import.
4024 * gnulib/import/frexpl.c: Import.
4025 * gnulib/import/isnan.c: Import.
4026 * gnulib/import/isnand-nolibm.h: Import.
4027 * gnulib/import/isnand.c: Import.
4028 * gnulib/import/isnanl-nolibm.h: Import.
4029 * gnulib/import/isnanl.c: Import.
4030 * gnulib/import/itold.c: Import.
4031 * gnulib/import/m4/exponentd.m4: Import.
4032 * gnulib/import/m4/exponentl.m4: Import.
4033 * gnulib/import/m4/float_h.m4: Import.
4034 * gnulib/import/m4/fpieee.m4: Import.
4035 * gnulib/import/m4/frexp.m4: Import.
4036 * gnulib/import/m4/frexpl.m4: Import.
4037 * gnulib/import/m4/isnand.m4: Import.
4038 * gnulib/import/m4/isnanl.m4: Import.
4039 * gnulib/import/m4/math_h.m4: Import.
4040 * gnulib/import/math.c: Import.
4041 * gnulib/import/math.in.h: Import.
4042
4043 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4044
4045 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4046 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4047 signature_INTEL_edx comparisons.
4048
4049 2013-06-20 Doug Evans <dje@google.com>
4050
4051 symtab/15652
4052 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4053 All callers updated.
4054 (open_dwp_file): If we can't find the dwp file, search the basename
4055 in debug-file-directory.
4056
4057 * dwarf2read.c (struct dwp_file): Fix comment.
4058 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4059
4060 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4061 better.
4062
4063 2013-06-20 Yao Qi <yao@codesourcery.com>
4064
4065 * breakpoint.c (create_breakpoint): Fix code indentation.
4066
4067 2013-06-20 Yao Qi <yao@codesourcery.com>
4068
4069 * breakpoint.c (create_breakpoints_sal_default): Remove
4070 parameter 'lsal'. Update declaration.
4071 (bkpt_create_breakpoints_sal): Caller update.
4072 (tracepoint_create_breakpoints_sal): Likewise.
4073
4074 2013-06-20 Pedro Alves <pedro@codesourcery.com>
4075 Yao Qi <yao@codesourcery.com>
4076
4077 * NEWS: Mention the new option '--skip-unavailable' of command
4078 -data-list-register-values.
4079 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4080 --skip-unavailable option. Adjust to use output_register.
4081 (output_register): Add new 'skip_unavailable' parameter.
4082 Handle it.
4083
4084 2013-06-19 Mike Frysinger <vapier@gentoo.org>
4085
4086 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4087 common/i386-gcc-cpuid.h.
4088 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4089 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4090 Copy the latest version from upstream gcc.
4091 * common/linux-btrace.c: Include i386-cpuid.h.
4092 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4093 call to i386_cpuid.
4094 (cpu_supports_btrace): Likewise.
4095 * go32-nat.c: Include i386-cpuid.h.
4096 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4097
4098 2013-06-19 Doug Evans <dje@google.com>
4099
4100 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4101 (get_section_index): Ditto.
4102
4103 2013-06-19 Tom Tromey <tromey@redhat.com>
4104
4105 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4106 "dprintf" help.
4107
4108 2013-06-18 Doug Evans <dje@google.com>
4109
4110 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4111 before using it.
4112 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4113 Move test of cu_index closer to use. Print complaint if cu_index
4114 is bad.
4115
4116 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4117
4118 * machoread.c (oso_vector): Delete this global.
4119 (macho_register_oso): Add new parameter "oso_vector_ptr".
4120 Use it instead of the "oso_vector" global.
4121 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4122 (macho_symfile_read): Use a local oso_vector, to be free'ed
4123 at the end of this function, in place of the old "oso_vector"
4124 global. Update various function calls accordingly. Use one
4125 single cleanup chain for the entire function.
4126
4127 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4128
4129 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4130 DWARF2_PER_OBJFILE by uses of DATA instead.
4131
4132 2013-06-18 Tom Tromey <tromey@redhat.com>
4133
4134 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4135 argument.
4136 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4137 Special case signals other than GDB_SIGNAL_TRAP.
4138 (explains_signal_watchpoint): New function.
4139 (base_breakpoint_explains_signal): Add 'sig' argument.
4140 (initialize_breakpoint_ops): Set 'explains_signal' method for
4141 watchpoints.
4142 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4143 signal argument.
4144 (bpstat_explains_signal): Likewise.
4145 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4146
4147 2013-06-18 Tom Tromey <tromey@redhat.com>
4148
4149 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4150
4151 2013-06-18 Tom Tromey <tromey@redhat.com>
4152
4153 * python/python.c (finish_python_initialization): Decref
4154 'pythondir' on failure path as well.
4155
4156 2013-06-18 Tom Tromey <tromey@redhat.com>
4157
4158 PR symtab/15391:
4159 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4160 after taking bits_to_skip into account. Sign extend byte_offset.
4161 * utils.h (gdb_sign_extend): Declare.
4162 * utils.c (gdb_sign_extend): New function.
4163
4164 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4165
4166 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4167
4168 2013-06-17 Pierre Muller <muller@sourceware.org>
4169
4170 * corelow.c (core_open): Print GDB signal name instead of target
4171 signal number.
4172
4173 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4174
4175 * .gitignore: Add /gcore.
4176
4177 2013-06-13 Doug Evans <dje@google.com>
4178
4179 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4180 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4181
4182 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4183
4184 * stack.c (backtrace_command_1): Fix indentation.
4185
4186 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4187
4188 * window-nat.c (thread_rec): Add missing empty line after
4189 local variable declaration.
4190
4191 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4192
4193 * windows-nat.c (thread_rec): Revert format used to print
4194 error code returned by SuspendThread from %d back to %u.
4195
4196 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4197
4198 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4199 ID in debug trace.
4200 (get_windows_debug_event): Likewise, for all debug traces.
4201
4202 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4203
4204 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4205 warning message.
4206
4207 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4208 Yao Qi <yao@codesourcery.com>
4209
4210 * mi/mi-main.c (get_register): Remove declaration.
4211 (output_register): Declare.
4212 (mi_cmd_data_list_register_values): Remove local variable
4213 'tuple_cleanup'. Move some code into output_register.
4214 (get_register): Renamed to ...
4215 (output_register): ... this. Output the register's
4216 "number" ui_out tuple here.
4217
4218 2013-06-07 Pedro Alves <palves@redhat.com>
4219
4220 * darwin-nat.c: Fix formating in copyright header.
4221 * darwin-nat.h: Likewise.
4222 * gnu-nat.c: Likewise.
4223 * machoread.c: Likewise.
4224
4225 2013-06-07 Pedro Alves <palves@redhat.com>
4226
4227 PR server/14823
4228 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4229 static. Output a global target description pointer.
4230 (init_registers_${name}): Adjust to initialize a
4231 target description structure.
4232
4233 2013-06-07 Will Newton <will.newton@linaro.org>
4234
4235 * printcmd.c (build_address_symbolic): Call
4236 gdbarch_addr_bits_remove for text minimal symbols.
4237
4238 2013-06-07 Will Newton <will.newton@linaro.org>
4239
4240 * MAINTAINERS: Add myself to Write After Approval.
4241
4242 2013-06-07 Yao Qi <yao@codesourcery.com>
4243
4244 * tracepoint.c (start_tracing): Move code to ...
4245 (trace_reset_local_state): ... here. New.
4246 (disconnect_tracing): Don't call set_current_traceframe,
4247 set_tracepoint_num, and set_traceframe_context. Call
4248 trace_reset_local_state instead.
4249 (tfile_close): Call trace_reset_local_state.
4250 * ctf.c (ctf_close): Likewise.
4251 * remote.c (remote_close): Likewise.
4252 * tracepoint.h (trace_reset_local_state): Declare.
4253
4254 2013-06-06 Doug Evans <dje@google.com>
4255
4256 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4257 and fix header docs.
4258
4259 2013-06-05 Doug Evans <dje@google.com>
4260 Keith Seitz <keiths@redhat.com>
4261
4262 PR 15519
4263 * cp-namespace.c (find_symbol_in_baseclass): Call
4264 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4265 Check result of call to lookup_symbol_static.
4266 Call lookup_static_symbol_aux unconditionally.
4267 Call check_typedef on base types before accessing them.
4268 (cp_lookup_nested_symbol): Fix comment.
4269
4270 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4271
4272 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4273 minimal symbols pointing to function descriptors.
4274
4275 2013-06-05 Tom Tromey <tromey@redhat.com>
4276
4277 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4278
4279 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4280 Pedro Alves <palves@redhat.com>
4281
4282 * remote.c (remote_wait_as): Restore signal handler before returning
4283 when GDB gets a notification.
4284
4285 2013-06-04 Gary Benson <gbenson@redhat.com>
4286
4287 PR 2328
4288 * breakpoint.h (handle_solib_event): Moved function declaration
4289 to solib.h.
4290 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4291 (bpstat_stop_status): Pass new argument to handle_solib_event.
4292 * solib.h (update_solib_breakpoints): New function declaration.
4293 (handle_solib_event): Moved function declaration from
4294 breakpoint.h.
4295 * solib.c (update_solib_breakpoints): New function.
4296 (handle_solib_event): Moved function from breakpoint.c.
4297 Updated to call solib_ops->handle_event if not NULL.
4298 * solist.h (target_so_ops): New fields "update_breakpoints" and
4299 "handle_event".
4300 * infrun.c (set_stop_on_solib_events): New function.
4301 (_initialize_infrun): Use the above for "set
4302 stop-on-solib-events".
4303 (handle_inferior_event): Pass new argument to handle_solib_event.
4304 * solib-svr4.c (probe.h): New include.
4305 (svr4_free_library_list): New forward declaration.
4306 (probe_action): New enum.
4307 (probe_info): New struct.
4308 (probe_info): New static variable.
4309 (NUM_PROBES): New definition.
4310 (svr4_info): New fields "using_xfer", "probes_table" and
4311 "solib_list".
4312 (free_probes_table): New function.
4313 (free_solib_list): New function.
4314 (svr4_pspace_data_cleanup): Free probes table and solib list.
4315 (svr4_copy_library_list): New function.
4316 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4317 (svr4_read_so_list): New parameter "prev_lm".
4318 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4319 (svr4_current_sos): New function.
4320 (probe_and_action): New struct.
4321 (hash_probe_and_action): New function.
4322 (equal_probe_and_action): Likewise.
4323 (register_solib_event_probe): Likewise.
4324 (solib_event_probe_at): Likewise.
4325 (solib_event_probe_action): Likewise.
4326 (solist_update_full): Likewise.
4327 (solist_update_incremental): Likewise.
4328 (disable_probes_interface_cleanup): Likewise.
4329 (svr4_handle_solib_event): Likewise.
4330 (svr4_update_solib_event_breakpoint): Likewise.
4331 (svr4_update_solib_event_breakpoints): Likewise.
4332 (svr4_create_solib_event_breakpoints): Likewise.
4333 (enable_break): Free probes table before creating breakpoints.
4334 Use svr4_create_solib_event_breakpoints to create breakpoints.
4335 (svr4_solib_create_inferior_hook): Free the solib list.
4336 (_initialize_svr4_solib): Initialise
4337 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4338
4339 2013-06-04 Gary Benson <gbenson@redhat.com>
4340
4341 * target.h (target_ops): New field
4342 "to_augmented_libraries_svr4_read".
4343 (target_augmented_libraries_svr4_read): New macro.
4344 * target.c (update_current_target): Handle
4345 to_augmented_libraries_svr4_read.
4346 * remote.c (remote_state): New field
4347 "augmented_libraries_svr4_read".
4348 (remote_augmented_libraries_svr4_read_feature): New function.
4349 (remote_protocol_features): Add entry for
4350 "augmented-libraries-svr4-read".
4351 (remote_augmented_libraries_svr4_read): New function.
4352 (init_remote_ops): Initialize
4353 remote_ops.to_augmented_libraries_svr4_read.
4354
4355 2013-06-04 Gary Benson <gbenson@redhat.com>
4356
4357 * NEWS: Update.
4358
4359 2013-06-04 Gary Benson <gbenson@redhat.com>
4360
4361 * objfiles.h (inhibit_section_map_updates): New function
4362 declaration.
4363 (resume_section_map_updates): Likewise.
4364 (resume_section_map_updates_cleanup): Likewise.
4365 * objfiles.c (objfile_pspace_info): Removed field
4366 "objfiles_changed_p". New fields "new_objfiles_available",
4367 "section_map_dirty" and "inhibit_updates".
4368 (allocate_objfile): Set new_objfiles_available.
4369 (free_objfile): Set section_map_dirty.
4370 (objfile_relocate1): Likewise.
4371 (in_plt_section): Likewise.
4372 (find_pc_section): Update the conditions under which the
4373 section map will be updated.
4374 (inhibit_section_map_updates): New function.
4375 (resume_section_map_updates): Likewise.
4376 (resume_section_map_updates_cleanup): Likewise.
4377
4378 2013-06-04 Gary Benson <gbenson@redhat.com>
4379
4380 * probe.h (get_probe_argument_count): New declaration.
4381 (evaluate_probe_argument): Likewise.
4382 * probe.c (get_probe_argument_count): New function.
4383 (evaluate_probe_argument): Likewise.
4384 (probe_safe_evaluate_at_pc): Use the above new functions.
4385
4386 2013-06-04 Alan Modra <amodra@gmail.com>
4387
4388 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4389 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4390 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4391 target mem reads on optional insns.
4392 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4393 ppc_insns_match_pattern calls.
4394 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4395 Add match for power7 thread safety insns, and new order of
4396 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4397 invocation in comment, and update rest of comment.
4398 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4399 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4400 (ppc64_standard_linkage2_target): Update insn offsets.
4401 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4402 stubs first. Update calls.
4403
4404 2013-06-04 Yao Qi <yao@codesourcery.com>
4405
4406 * solib.c (solib_find): Don't need dir separator if path has
4407 drive spec.
4408
4409 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4410
4411 Revert (indirectly causes a SIGSEGV):
4412 * machoread.c (macho_symfile_read): Assign first cleanup to
4413 'back_to'.
4414
4415 2013-06-03 Yao Qi <yao@codesourcery.com>
4416
4417 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4418 mi-parse.c. Make them static.
4419 (mi_all_values): Likewise.
4420 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4421 mi_parse_print_values. Make it external.
4422 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4423 Remove the declarations.
4424 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4425 * mi/mi-parse.h (mi_parse_print_values): Declare.
4426 * mi/mi-cmd-stack.c: Include mi-parse.h.
4427 (parse_print_values): Remove
4428 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4429 of parse_print_values.
4430 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4431
4432 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4433 Yao Qi <yao@codesourcery.com>
4434
4435 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4436 (encode_actions): Move code to ...
4437 (all_tracepoint_actions_and_cleanup): ... here. New.
4438 (trace_dump_command): Likewise.
4439
4440 2013-05-30 Tom Tromey <tromey@redhat.com>
4441
4442 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4443
4444 2013-05-30 Tom Tromey <tromey@redhat.com>
4445
4446 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4447 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4448 'old_chain' argument. Add 'parser_result' argument.
4449 (gdb_xml_create_parser_and_cleanup): Remove old version.
4450 (gdb_xml_parse_quick): Update.
4451 (xml_process_xincludes): Update.
4452 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4453 declare.
4454
4455 2013-05-30 Tom Tromey <tromey@redhat.com>
4456
4457 * probe.c (collect_probes): Check arguments for NULL before
4458 calling compile_rx_or_error.
4459 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4460 Remove NULL return.
4461
4462 2013-05-30 Tom Tromey <tromey@redhat.com>
4463
4464 * infrun.c (adjust_pc_after_break): Introduce an outer null
4465 cleanup.
4466
4467 2013-05-30 Tom Tromey <tromey@redhat.com>
4468
4469 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4470
4471 2013-05-30 Tom Tromey <tromey@redhat.com>
4472
4473 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4474 for 'old_chain'. Do not check 'head' before processing
4475 cleanups.
4476
4477 2013-05-30 Tom Tromey <tromey@redhat.com>
4478
4479 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4480 "cleanup_tuple".
4481
4482 2013-05-30 Tom Tromey <tromey@redhat.com>
4483
4484 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4485 inner scope. Unconditionally call do_cleanups.
4486
4487 2013-05-30 Tom Tromey <tromey@redhat.com>
4488
4489 * source.c (find_and_open_source): Call do_cleanups.
4490
4491 2013-05-30 Tom Tromey <tromey@redhat.com>
4492
4493 * linux-thread-db.c (thread_db_load_search): Unconditionally
4494 call do_cleanups.
4495
4496 2013-05-30 Tom Tromey <tromey@redhat.com>
4497
4498 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4499 for 'cleanup'; instead use a later one.
4500
4501 2013-05-30 Tom Tromey <tromey@redhat.com>
4502
4503 * python/py-breakpoint.c (bppy_get_commands): Use
4504 explicit, unconditional return.
4505 * python/py-frame.c (frapy_read_var): Likewise.
4506 * python/python.c (gdbpy_decode_line): Likewise.
4507
4508 2013-05-30 Tom Tromey <tromey@redhat.com>
4509
4510 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4511 do_cleanups on all return paths.
4512
4513 2013-05-30 Tom Tromey <tromey@redhat.com>
4514
4515 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4516
4517 2013-05-30 Tom Tromey <tromey@redhat.com>
4518
4519 * stabsread.c (read_struct_type): Call do_cleanups along
4520 all return paths.
4521
4522 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4523
4524 * mips-linux-tdep.c: Adjust formatting throughout.
4525
4526 2013-05-30 Tom Tromey <tromey@redhat.com>
4527
4528 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4529 along all return paths.
4530
4531 2013-05-30 Tom Tromey <tromey@redhat.com>
4532
4533 * symfile.c (find_separate_debug_file): Call do_cleanups
4534 along all return paths.
4535
4536 2013-05-30 Tom Tromey <tromey@redhat.com>
4537
4538 * symtab.c (search_symbols): Introduce a null cleanup for
4539 'retval_chain'.
4540
4541 2013-05-30 Tom Tromey <tromey@redhat.com>
4542
4543 * python/py-value.c (valpy_binop): Call do_cleanups before
4544 exiting loop.
4545
4546 2013-05-30 Tom Tromey <tromey@redhat.com>
4547
4548 * python/py-prettyprint.c (print_children): Remove extra
4549 do_cleanups call.
4550
4551 2013-05-30 Tom Tromey <tromey@redhat.com>
4552
4553 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4554 all return paths.
4555
4556 2013-05-30 Tom Tromey <tromey@redhat.com>
4557
4558 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4559 along all return paths.
4560
4561 2013-05-30 Tom Tromey <tromey@redhat.com>
4562
4563 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4564 call do_cleanups.
4565
4566 2013-05-30 Tom Tromey <tromey@redhat.com>
4567
4568 * varobj.c (c_value_of_root): Call do_cleanups along all
4569 return paths.
4570
4571 2013-05-30 Tom Tromey <tromey@redhat.com>
4572
4573 * tracepoint.c (trace_dump_command): Unconditionally call
4574 do_cleanups.
4575
4576 2013-05-30 Tom Tromey <tromey@redhat.com>
4577
4578 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4579 do_cleanups earlier.
4580
4581 2013-05-30 Tom Tromey <tromey@redhat.com>
4582
4583 * machoread.c (macho_symfile_read): Assign first cleanup to
4584 'back_to'.
4585
4586 2013-05-30 Tom Tromey <tromey@redhat.com>
4587
4588 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4589
4590 2013-05-30 Tom Tromey <tromey@redhat.com>
4591
4592 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4593
4594 2013-05-30 Tom Tromey <tromey@redhat.com>
4595
4596 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4597 call discard_cleanups.
4598 (inf_ptrace_attach): Likewise.
4599
4600 2013-05-30 Tom Tromey <tromey@redhat.com>
4601
4602 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4603 return paths.
4604 (mips_initialize): Likewise.
4605 (common_open): Call do_cleanups.
4606
4607 2013-05-30 Tom Tromey <tromey@redhat.com>
4608
4609 * utils.c (internal_vproblem): Call do_cleanups.
4610
4611 2013-05-30 Tom Tromey <tromey@redhat.com>
4612
4613 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4614
4615 2013-05-30 Tom Tromey <tromey@redhat.com>
4616
4617 * cli/cli-script.c (setup_user_args): Don't return after error.
4618
4619 2013-05-30 Tom Tromey <tromey@redhat.com>
4620
4621 * somread.c (som_symtab_read): Call do_cleanups.
4622
4623 2013-05-30 Tom Tromey <tromey@redhat.com>
4624
4625 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4626
4627 2013-05-30 Tom Tromey <tromey@redhat.com>
4628
4629 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4630 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4631 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4632 * source.c (show_substitute_path_command): Call do_cleanups.
4633 (unset_substitute_path_command, set_substitute_path_command):
4634 Likewise.
4635 * symfile.c (load_command): Call do_cleanups.
4636
4637 2013-05-30 Tom Tromey <tromey@redhat.com>
4638
4639 * contrib/cleanup_check.py: New file.
4640 * contrib/gcc-with-excheck: Add option parsing.
4641
4642 2013-05-30 Joel Brobecker <brobecker@adacore.com>
4643
4644 * windows-nat.c (windows_delete_thread): Add missing space
4645 in cast expression.
4646
4647 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4648
4649 * inferior.c (top level): Include tilde.h.
4650 (add_inferior_command): Call tilde_expand on the value of 'exec'
4651 argument.
4652
4653 2013-05-30 Pedro Alves <pedro@codesourcery.com>
4654 Yao Qi <yao@codesourcery.com>
4655
4656 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4657 Caller update.
4658 (encode_actions): Likewise.
4659 * remote.c (remote_download_tracepoint): Caller update.
4660 * tracepoint.h (encode_actions): Update declaration.
4661
4662 2013-05-30 Pedro Alves <palves@redhat.com>
4663
4664 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4665 pointer.
4666
4667 2013-05-30 Yao Qi <yao@codesourcery.com>
4668
4669 * remote.c (remote_check_symbols): Remove unused parameter
4670 'objfile'.
4671 Declaration update.
4672 (remote_start_remote, remote_new_objfile): Caller update.
4673
4674 2013-05-30 Yao Qi <yao@codesourcery.com>
4675
4676 * mi/mi-cmds.c (mi_cmds): Define MI command
4677 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4678 DEF_MI_CMD_CLI.
4679
4680 2013-05-29 Pedro Alves <palves@redhat.com>
4681
4682 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4683 (remote_insert_watchpoint, remote_remove_watchpoint)
4684 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4685 (remote_verify_memory, compare_sections_command)
4686 (remote_search_memory): Set the general process/thread on the
4687 remote side.
4688
4689 2013-05-29 Pedro Alves <palves@redhat.com>
4690
4691 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4692 (_initialize_aarch64_tdep): Don't call
4693 initialize_tdesc_aarch64_without_fpu.
4694 * features/Makefile (WHICH): Remove reference to
4695 aarch64-without-fpu.
4696 * features/aarch64-without-fpu.c: Delete file.
4697 * regformats/aarch64-without-fpu.dat: Delete file.
4698
4699 2013-05-28 Yao Qi <yao@codesourcery.com>
4700
4701 * tracepoint.c (stringify_collection_list): Remove parameter
4702 'string'.
4703 (encode_actions): Caller update. Remove local variables.
4704
4705 2013-05-24 Yao Qi <yao@codesourcery.com>
4706
4707 * tracepoint.c (TFILE_PID): Remove.
4708 (tfile_open): Don't add thread and inferior.
4709 (tfile_close): Don't set 'inferior_ptid'. Don't call
4710 exit_inferior_silent.
4711 (tfile_thread_alive): Remove.
4712 (init_tfile_ops): Don't set field 'to_thread_alive' of
4713 tfile_ops.
4714
4715 2013-05-23 Doug Evans <dje@google.com>
4716
4717 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4718
4719 2013-05-23 Pedro Alves <palves@redhat.com>
4720
4721 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4722 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4723 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4724 Only define if HAVE_SOCKETS is defined.
4725 * configure.ac: Check for sys/socket.h.
4726 * config.in, configure: Regenerate.
4727
4728 2013-05-23 Pedro Alves <palves@redhat.com>
4729
4730 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4731 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4732 printing uint32_t variables.
4733
4734 2013-05-23 Pedro Alves <palves@redhat.com>
4735
4736 * NEWS: Mention GDBserver range stepping support.
4737
4738 2013-05-23 Yao Qi <yao@codesourcery.com>
4739 Pedro Alves <palves@redhat.com>
4740
4741 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4742 field.
4743 * infcmd.c (step_once, until_next_command): Enable range stepping.
4744 * infrun.c (displaced_step_prepare): Disable range stepping.
4745 (resume): Disable range stepping if stepping over a breakpoint or
4746 we have software watchpoints. If range stepping is enabled,
4747 assert the thread is in the stepping range.
4748 (clear_proceed_status_thread): Clear may_range_step.
4749 (handle_inferior_event): Disable range stepping as soon as we know
4750 the thread that hit the event. Re-enable it whenever we're going
4751 to step with a step range.
4752 * remote.c (struct vCont_action_support) <r>: New field.
4753 (use_range_stepping): New global.
4754 (remote_vcont_probe): Handle 'r' action.
4755 (append_resumption): Append an 'r' action if the thread may range
4756 step.
4757 (show_range_stepping): New function.
4758 (set_range_stepping): New function.
4759 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4760 'set range-stepping' and 'show range-stepping' commands.
4761 * NEWS: Mention range stepping, the new vCont;r action, and the
4762 new "set/show range-stepping" commands.
4763
4764 2013-05-23 Yao Qi <yao@codesourcery.com>
4765 Pedro Alves <palves@redhat.com>
4766
4767 * remote.c (struct vCont_action_support): New struct.
4768 (struct remote_state) <support_vCont_t>: Remove field.
4769 <vCont_actions_support>: New field.
4770 (remote_vcont_probe, remote_stop_ns): Update.
4771
4772 2013-05-23 Yao Qi <yao@codesourcery.com>
4773 Pedro Alves <palves@redhat.com>
4774
4775 * gdbthread.h (pc_in_thread_step_range): New declaration.
4776 * thread.c (pc_in_thread_step_range): New function.
4777 * infrun.c (handle_inferior_event): Use it.
4778
4779 2013-05-23 Joel Brobecker <brobecker@adacore.com>
4780
4781 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4782 of sprintf.
4783
4784 2013-05-22 Keith Seitz <keiths@redhat.com>
4785
4786 * ada-lang.c (is_known_support_routine): Add explicit free of
4787 'func_name' from find_frame_funname.
4788 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4789 for func_name from find_frame_funname.
4790 * python/py-frame.c (frapy_name): Add explicit free of
4791 'name' from find_frame_funname.
4792 * stack.c (find_frame_funname): Add comment explaining that
4793 funcp must be freed by the caller.
4794 Return copy of symbol names instead of pointers.
4795 (print_frame): Add a cleanup for 'funname' from
4796 find_frame_funname.
4797 * stack.h (find_frame_funname): Remove "const" from
4798 'funname' parameter.
4799
4800 2013-05-22 Tom Tromey <tromey@redhat.com>
4801
4802 PR c++/15401:
4803 * c-valprint.c (c_value_print): Use value_addr for
4804 references. Convert back to reference type with value_ref.
4805
4806 2013-05-22 Eli Zaretskii <eliz@gnu.org>
4807
4808 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4809 unloaded DLL, it will be done by handle_solib_event. See
4810 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4811 details.
4812
4813 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4814
4815 * ui-out.c: Create typedef ui_out_level_p and define vector
4816 operations for that type.
4817 (struct ui_out): Use a vector instead of an array.
4818 (current_level): Return level from a vector.
4819 (push_level): Create a level in a vector.
4820 (pop_level): Delete a level in a vector.
4821 (ui_out_new): Create initial level zero level, and store in a
4822 vector.
4823 (ui_out_destroy): Add vector cleanup.
4824
4825 2013-05-22 Pedro Alves <palves@redhat.com>
4826
4827 * python/python-internal.h (gdb_Py_DECREF): Tag with
4828 "ARI: editCase function".
4829
4830 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4831
4832 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4833
4834 2013-05-21 Pedro Alves <palves@redhat.com>
4835
4836 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4837 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4838 * python/py-utils.c (py_decref): Don't check for NULL before
4839 calling Py_DECREF.
4840
4841 2013-05-21 Pedro Alves <palves@redhat.com>
4842
4843 * python/py-utils.c (py_decref): Remove extra braces.
4844 (gdb_pymodule_addobject): Remove extra braces.
4845 * python-internal.h (gdb_Py_DECREF): New static inline function.
4846 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4847
4848 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4849
4850 * breakpoints.c (detach_breakpoints): Do not
4851 detach breakpoints locations with loc_type bp_loc_other.
4852
4853 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4854
4855 Workaround Python 2.6.
4856 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4857 a block.
4858
4859 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4860
4861 Code cleanup: constification.
4862 * solib.c (solib_ops): Make return type and ops variable type const.
4863 (set_solib_ops): Make the new_ops parameter and ops variable const.
4864 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4865 (solib_add, solib_keep_data_in_core, clear_solib)
4866 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4867 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4868 const.
4869 * solib.h (set_solib_ops): Make the new_ops parameter const.
4870
4871 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4872
4873 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4874 variable.
4875 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4876 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4877 (SYSTEM_GDBINIT_FILES): New variables.
4878 (all): Add stamp-system-gdbinit.
4879 (stamp-system-gdbinit): New rule.
4880 (clean-system-gdbinit, install-system-gdbinit)
4881 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4882 (install-only): Add dependency on install-system-gdbinit.
4883 (uninstall): Add dependency on uninstall-system-gdbinit.
4884 (clean): Add dependency on clean-system-gdbinit.
4885 * system-gdbinit/elinos.py: New file.
4886 * system-gdbinit/wrs-linux.py: New file.
4887
4888 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4889
4890 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4891
4892 2013-05-21 Hui Zhu <hui@codesourcery.com>
4893
4894 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4895 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4896 * mi/mi-cmd-break.c (ctype.h): New include.
4897 (gdb_obstack.h): New include.
4898 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4899 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4900 (mi_cmd_dprintf_insert): New.
4901 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4902 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4903
4904 2013-05-20 Tom Tromey <tromey@redhat.com>
4905
4906 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4907
4908 2013-05-20 Tom Tromey <tromey@redhat.com>
4909
4910 * python/py-value.c (valpy_get_dynamic_type): Simplify
4911 dynamic_type assignment. Use Py_XINCREF.
4912
4913 2013-05-20 Tom Tromey <tromey@redhat.com>
4914
4915 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4916
4917 2013-05-20 Tom Tromey <tromey@redhat.com>
4918
4919 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4920 (gdbpy_selected_frame): Move object-construction code
4921 out of TRY_CATCH.
4922
4923 2013-05-20 Tom Tromey <tromey@redhat.com>
4924
4925 * python/py-arch.c (gdbpy_initialize_arch): Use
4926 gdb_pymodule_addobject.
4927 * python/py-block.c (gdbpy_initialize_blocks): Use
4928 gdb_pymodule_addobject.
4929 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4930 gdb_pymodule_addobject.
4931 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4932 gdb_pymodule_addobject.
4933 * python/py-event.c (gdbpy_initialize_event_generic): Use
4934 gdb_pymodule_addobject.
4935 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4936 gdb_pymodule_addobject.
4937 * python/py-evts.c (add_new_registry): Use
4938 gdb_pymodule_addobject.
4939 (gdbpy_initialize_py_events): Likewise.
4940 * python/py-finishbreakpoint.c
4941 (gdbpy_initialize_finishbreakpoints): Use
4942 gdb_pymodule_addobject.
4943 * python/py-frame.c (gdbpy_initialize_frames): Use
4944 gdb_pymodule_addobject.
4945 * python/py-function.c (gdbpy_initialize_functions): Use
4946 gdb_pymodule_addobject.
4947 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4948 gdb_pymodule_addobject.
4949 * python/py-infthread.c (gdbpy_initialize_thread): Use
4950 gdb_pymodule_addobject.
4951 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4952 gdb_pymodule_addobject.
4953 * python/py-param.c (gdbpy_initialize_parameters): Use
4954 gdb_pymodule_addobject.
4955 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4956 gdb_pymodule_addobject.
4957 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4958 gdb_pymodule_addobject.
4959 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4960 gdb_pymodule_addobject.
4961 * python/py-type.c (gdbpy_initialize_types): Use
4962 gdb_pymodule_addobject.
4963 * python/py-utils.c (gdb_pymodule_addobject): New function.
4964 * python/py-value.c (gdbpy_initialize_values): Use
4965 gdb_pymodule_addobject.
4966 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4967 * python/python.c (_initialize_python): Use
4968 gdb_pymodule_addobject.
4969
4970 2013-05-20 Tom Tromey <tromey@redhat.com>
4971
4972 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4973 * python/py-param.c (get_set_value, get_show_value): Use
4974 explicit decrefs.
4975 * python/python.c (start_type_printers, apply_type_printers):
4976 Use explicit decrefs.
4977
4978 2013-05-20 Tom Tromey <tromey@redhat.com>
4979
4980 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4981 incref the module.
4982
4983 2013-05-20 Tom Tromey <tromey@redhat.com>
4984
4985 * python/python.c (gdbpy_run_events): Decref the result
4986 of PyObject_CallObject.
4987
4988 2013-05-20 Tom Tromey <tromey@redhat.com>
4989
4990 * python/py-symtab.c (set_sal): Use
4991 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4992 (symtab_and_line_to_sal_object): Update.
4993
4994 2013-05-20 Tom Tromey <tromey@redhat.com>
4995
4996 * python/py-param.c (compute_enum_values): Decref 'item'.
4997
4998 2013-05-20 Tom Tromey <tromey@redhat.com>
4999
5000 * mi/mi-main.c: Include python-internal.h.
5001 (mi_cmd_list_features): Check gdb_python_initialized.
5002 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5003 (python_inferior_exit, python_new_objfile, add_thread_object)
5004 (delete_thread_object, py_free_inferior): Check
5005 gdb_python_initialized.
5006 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5007 gdb_python_initialized.
5008 * python/py-type.c (save_objfile_types): Check
5009 gdb_python_initialized.
5010 * python/python-internal.h (gdb_python_initialized): Declare.
5011 * python/python.c (ensure_python_env): Throw exception if
5012 Python not initialized.
5013 (before_prompt_hook, source_python_script_for_objfile)
5014 (start_type_printers, apply_type_printers,
5015 free_type_printers): Check gdb_python_initialized.
5016 * varobj.c (varobj_get_display_hint)
5017 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5018 (install_new_value_visualizer, varobj_set_visualizer)
5019 (value_get_print_value): Check gdb_python_initialized.
5020
5021 2013-05-20 Tom Tromey <tromey@redhat.com>
5022
5023 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5024 Check errors.
5025 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5026 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5027 Check errors.
5028 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5029 Check errors.
5030 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5031 Check errors.
5032 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5033 Check errors.
5034 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5035 init function to return 'int'.
5036 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5037 Return 'int'. Check errors.
5038 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5039 Check errors.
5040 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5041 Return 'int'. Check errors.
5042 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5043 Check errors.
5044 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5045 Check errors.
5046 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5047 Check errors.
5048 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5049 Check errors.
5050 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5051 Check errors.
5052 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5053 Check errors.
5054 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5055 Check errors.
5056 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5057 Check errors.
5058 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5059 Check errors.
5060 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5061 Check errors.
5062 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5063 Check errors.
5064 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5065 Check errors.
5066 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5067 Check errors.
5068 * python/python-internal.h (gdbpy_initialize_auto_load,
5069 gdbpy_initialize_values, gdbpy_initialize_frames,
5070 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5071 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5072 gdbpy_initialize_blocks, gdbpy_initialize_types,
5073 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5074 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5075 gdbpy_initialize_finishbreakpoints,
5076 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5077 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5078 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5079 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5080 gdbpy_initialize_signal_event,
5081 gdbpy_initialize_breakpoint_event,
5082 gdbpy_initialize_continue_event,
5083 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5084 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5085 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5086 * python/python.c (gdb_python_initialized): New global.
5087 (gdbpy_initialize_events): Return 'int'. Check errors.
5088 (_initialize_python): Check errors. Set
5089 gdb_python_initialized.
5090
5091 2013-05-20 Tom Tromey <tromey@redhat.com>
5092
5093 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5094 Decref the reslut of PyObject_CallMethod.
5095
5096 2013-05-20 Tom Tromey <tromey@redhat.com>
5097
5098 * python/py-event.c (gdbpy_initialize_event_generic): Return
5099 early if PyType_Ready fails.
5100
5101 2013-05-20 Tom Tromey <tromey@redhat.com>
5102
5103 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5104 as 'default' in the switch.
5105
5106 2013-05-20 Tom Tromey <tromey@redhat.com>
5107
5108 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5109 get_addr_from_python calls out of TRY_CATCH.
5110 (infpy_write_memory, infpy_search_memory): Likewise.
5111 * python/py-utils.c (get_addr_from_python): Return negative
5112 value on error. Use TRY_CATCH.
5113 * python/python-internal.h (get_addr_from_python): Use
5114 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5115
5116 2013-05-20 Tom Tromey <tromey@redhat.com>
5117
5118 * python/py-event.c (evpy_emit_event): Decref the
5119 result of PyObject_CallFunctionObjArgs.
5120
5121 2013-05-20 Tom Tromey <tromey@redhat.com>
5122
5123 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5124 Correctly decref.
5125
5126 2013-05-20 Tom Tromey <tromey@redhat.com>
5127
5128 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5129
5130 2013-05-20 Tom Tromey <tromey@redhat.com>
5131
5132 * python/py-event.h (gdbpy_initialize_event_generic): Use
5133 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5134 * python/py-evts.c (add_new_registry): Use
5135 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5136 * python/python-internal.h
5137 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5138
5139 2013-05-20 Tom Tromey <tromey@redhat.com>
5140
5141 * python/py-arch.c (archpy_disassemble): Update.
5142 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5143 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5144 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5145 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5146 macro.
5147 (GDB_PY_HANDLE_EXCEPTION): Update.
5148 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5149
5150 2013-05-20 Tom Tromey <tromey@redhat.com>
5151
5152 * python/python-internal.h (events_object_type): Remove.
5153
5154 2013-05-20 Tom Tromey <tromey@redhat.com>
5155
5156 * python/py-event.h (evpy_emit_event): Use
5157 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5158 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5159 New macro.
5160
5161 2013-05-20 Tom Tromey <tromey@redhat.com>
5162
5163 * py-evtregistry.c (create_event_object): Decref
5164 eventregistry_object if PyList_New fails.
5165
5166 2013-05-20 Tom Tromey <tromey@redhat.com>
5167
5168 * py-cmd.c (gdbpy_string_to_argv): Check result of
5169 PyList_New.
5170
5171 2013-05-20 Tom Tromey <tromey@redhat.com>
5172
5173 * python/python.c (before_prompt_hook): Add cleanup to
5174 decref 'hook'.
5175
5176 2013-05-20 Tom Tromey <tromey@redhat.com>
5177
5178 * python/py-function.c (fnpy_init): Decref result of
5179 PyObject_GetAttrString.
5180
5181 2013-05-20 Tom Tromey <tromey@redhat.com>
5182
5183 * python/py-threadevent.c (get_event_thread): Use
5184 CPYCHECKER_RETURNS_BORROWED_REF.
5185 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5186 New define.
5187 (pspace_to_pspace_object, objfile_to_objfile_object)
5188 (find_thread_object): Use it.
5189
5190 2013-05-20 Tom Tromey <tromey@redhat.com>
5191
5192 * python/py-arch.c (arch_object_type): Use
5193 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5194 * python/py-block.c (block_syms_iterator_object_type):
5195 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5196 * python/py-bpevent.c (breakpoint_event_object_type):
5197 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5198 * python/py-cmd.c (cmdpy_object_type): Use
5199 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5200 * python/py-continueevent.c (continue_event_object_type):
5201 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5202 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5203 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5204 * python/py-events.h (thread_event_object_type):
5205 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5206 * python/py-evtregistry.c (eventregistry_object_type): Use
5207 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5208 * python/py-exitedevent.c (exited_event_object_type):
5209 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5210 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5211 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5212 * python/py-function.c (fnpy_object_type): Use
5213 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5214 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5215 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5216 * python/py-infthread.c (thread_object_type): Use
5217 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5218 * python/py-lazy-string.c (lazy_string_object_type):
5219 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5220 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5221 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5222 * python/py-objfile.c (objfile_object_type): Use
5223 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5224 * python/py-param.c (parmpy_object_type):
5225 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5226 * python/py-progspace.c (pspace_object_type):
5227 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5228 * python/py-signalevent.c (signal_event_object_type):
5229 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5230 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5231 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5232 * python/py-type.c (type_object_type, field_object_type)
5233 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5234 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5235 define.
5236 (value_object_type, block_object_type, symbol_object_type)
5237 (event_object_type, stop_event_object_type, breakpoint_object_type)
5238 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5239
5240 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5241
5242 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5243 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5244
5245 2013-05-20 Doug Evans <dje@google.com>
5246
5247 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5248 For Fission.
5249 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5250 reading_dwo_directly.
5251 (struct signatured_type): New member dwo_unit.
5252 (struct die_reader_specs): New member comp_dir.
5253 (create_signatured_type_table_from_index): Use malloc for
5254 all_type_units instead of objfile's obstack.
5255 (create_all_type_units): Ditto.
5256 (fill_in_sig_entry_from_dwo_entry): New function.
5257 (add_type_unit): New function.
5258 (lookup_dwo_signatured_type): New function.
5259 (lookup_dwp_signatured_type): New function.
5260 (lookup_signatured_type): New arg cu. All callers updated.
5261 (init_cu_die_reader): Initialize comp_dir.
5262 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5263 Change assert of matching type signatures to call error on mismatch.
5264 (lookup_dwo_unit): Add assert.
5265 (init_tu_and_read_dwo_dies): New function.
5266 (init_cutu_and_read_dies): Call it.
5267 (build_type_unit_groups): Handle case of no type unit groups created.
5268 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5269 (lookup_dwo_cutu): Tweak complaint.
5270 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5271 (dwarf2_per_objfile_free): Free all_type_units.
5272
5273 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5274
5275 * windows-nat.c (handle_unload_dll): Add missing empty line.
5276
5277 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5278
5279 * dwarf2read.c (prototyped_function_p): New function.
5280 (read_subroutine_type): Use it.
5281
5282 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5283
5284 * rs6000-aix-tdep.c: De-indent some example code provided
5285 as a comment.
5286
5287 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5288
5289 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5290 region is ok for a hardware watchpoint using the new ptrace interface
5291 on Power servers.
5292
5293 2013-05-17 Doug Evans <dje@google.com>
5294
5295 * NEWS: Mention new maintenance commands check-symtabs, and
5296 expand-symtabs, and renamed check-psymtabs.
5297 * psymtab.c (maintenance_check_psymtabs): Renamed from
5298 maintenance_check_symtabs. Only process already-expanded symbol
5299 tables.
5300 (_initialize_psymtab): Update.
5301 * symmisc.c (maintenance_check_symtabs): New function.
5302 (maintenance_expand_name_matcher): New function
5303 (maintenance_expand_file_matcher): New function
5304 (maintenance_expand_symtabs): New function.
5305 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5306 commands.
5307
5308 2013-05-17 Tom Tromey <tromey@redhat.com>
5309
5310 * python/py-inferior.c (infpy_read_memory): Don't call
5311 PyErr_SetString if PyObject_New fails.
5312 * python/py-frame.c (frame_info_to_frame_object): Don't call
5313 PyErr_SetString if PyObject_New fails.
5314
5315 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5316
5317 * acinclude.m4: Add check for dlopen in libdl.
5318 * configure.ac: Ditto.
5319 * configure: Regenerate.
5320
5321 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5322
5323 * frame.c (frame_stash): Convert to htab.
5324 (frame_addr_hash): New function.
5325 (frame_addr_hash_eq): New function.
5326 (frame_stash_create): Convert function to create
5327 a hash table.
5328 (frame_stash_add): Convert function to add an entry to a hash
5329 table.
5330 (frame_stash_find): Convert function to search the hash table.
5331 (frame_stash_invalidate): Convert function to empty the hash
5332 table.
5333 (get_frame_id): Only add to stash if a frame_id is created.
5334 (_initialize_frame): Call frame_stash_create.
5335
5336 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5337
5338 * configure.ac: Ensure MIG is available when building for GNU Hurd
5339 hosts.
5340 * configure: Regenerate.
5341
5342 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5343
5344 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5345
5346 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5347
5348 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5349 all cleanups are done before returning from this function.
5350
5351 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5352
5353 * utils.h: #include "exceptions.h".
5354 (enum errors): Remove partial declaration.
5355
5356 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5357
5358 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5359 * gdbarch.h, gdbarch.c: Regenerate.
5360 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5361 handling.
5362
5363 * rs6000-aix-tdep.h: New file.
5364 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5365 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5366 "xml-utils.h".
5367 (struct field_info, struct ld_info_desc): New types.
5368 (ld_info32_desc, ld_info64_desc): New static constants.
5369 (struct ld_info): New type.
5370 (rs6000_aix_extract_ld_info): New function.
5371 (rs6000_aix_shared_library_to_xml): Likewise.
5372 (rs6000_aix_ld_info_to_xml): Likewise.
5373 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5374 (rs6000_aix_init_osabi): Add call to
5375 set_gdbarch_core_xfer_shared_libraries_aix.
5376 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5377 Remove "xml-utils.h" include.
5378 (LdInfo): Delete typedef.
5379 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5380 Delete macros.
5381 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5382 Adjust code accordingly.
5383 (rs6000_core_ldinfo): Delete, folded into
5384 rs6000_aix_core_xfer_shared_libraries_aix.
5385 (rs6000_xfer_shared_library): Delete.
5386 (rs6000_xfer_shared_libraries): Reimplement.
5387
5388 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5389
5390 * record.c (record_goto_cmdlist): New.
5391 (cmd_record_goto): Split into this ...
5392 (cmd_record_goto_begin): ... this
5393 (cmd_record_goto_end): ... and this.
5394 (_initialize_record): Change "record goto" to prefix command.
5395 Add commands for "record goto begin" and "record goto end".
5396 Add an alias for "record goto start" to "record goto begin".
5397
5398 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5399
5400 * linespec.c (convert_linespec_to_sals): New comment for
5401 SOURCE_FILENAME assignment.
5402
5403 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5404
5405 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5406 internal_warning.
5407
5408 2013-05-14 Tom Tromey <tromey@redhat.com>
5409
5410 * eval.c (parse_and_eval_long): Make 'exp' const.
5411 * value.h (parse_and_eval_long): Update.
5412
5413 2013-05-14 Tom Tromey <tromey@redhat.com>
5414
5415 * ui-file.c (gdb_fopen): Make arguments const.
5416 * ui-file.h (gdb_fopen): Make arguments const.
5417
5418 2013-05-14 Tom Tromey <tromey@redhat.com>
5419
5420 * remote.c (remote_set_trace_notes): Make arguments const.
5421 * target.c (update_current_target): Update cast.
5422 * target.h (to_set_trace_notes): Make arguments const.
5423
5424 2013-05-14 Tom Tromey <tromey@redhat.com>
5425
5426 * go32-nat.c (go32_terminal_info): Make 'args' const.
5427 * inferior.h (child_terminal_info): Update.
5428 * inflow.c (child_terminal_info): Make 'args' const.
5429 * target.c (default_terminal_info): Make 'args' const.
5430 (debug_to_terminal_save_ours): Likewise.
5431 * target.h (struct target_ops) <to_terminal_info>: Make argument
5432 const.
5433
5434 2013-05-13 Tom Tromey <tromey@redhat.com>
5435
5436 * gcore.c (create_gcore_bfd): Make 'filename' const.
5437 * gcore.h (create_gcore_bfd): Make 'filename' const.
5438 * record-full.c (record_full_save): Make 'recfilename' const.
5439 * target.c (target_save_record): Make 'filename' const.
5440 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5441 const.
5442 (target_save_record): Likewise.
5443
5444 2013-05-13 Tom Tromey <tromey@redhat.com>
5445
5446 PR gdb/15338:
5447 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5448 ranges section has been read.
5449
5450 2013-05-13 Tom Tromey <tromey@redhat.com>
5451
5452 PR exp/15364:
5453 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5454 STRUCTOP_PTR>: Return a not_lval value for
5455 EVAL_AVOID_SIDE_EFFECTS.
5456 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5457 for EVAL_AVOID_SIDE_EFFECTS.
5458
5459 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5460
5461 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5462 floating point registers to register type before storing
5463 value.
5464 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5465 Likewise.
5466
5467 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5468 Tom Tromey <tromey@redhat.com>
5469
5470 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5471 New functions.
5472 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5473 Declare.
5474 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5475 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5476 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5477 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5478
5479 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5480 Tom Tromey <tromey@redhat.com>
5481
5482 PR build/15414:
5483 * configure: Rebuild.
5484 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5485 with -Wno-format.
5486
5487 2013-05-10 Pedro Alves <palves@redhat.com>
5488
5489 * remote.c (_initialize_remote): Fix spelling of
5490 qXfer:traceframe-info:read packet in packet config command.
5491
5492 2013-05-10 David Taylor <dtaylor@emc.com>
5493
5494 PR remote/15455
5495
5496 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5497 "QTro" at start of packet.
5498
5499 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5500
5501 * solib-aix.c (solib_aix_relocate_section_addresses):
5502 For the .bss section action, apply the same offset as
5503 the .data section.
5504
5505 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5506
5507 * solib-aix.c (solib_aix_relocate_section_addresses):
5508 Remove FIXME comment.
5509
5510 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5511
5512 PR tdep/15420:
5513 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5514 New functions, directly copied from sparc-sol-thread.c.
5515 * sparc-sol-thread.c: Delete.
5516 * configure.ac: Remove code handling sparc-solaris-thread.c.
5517 * configure: Regenerate.
5518
5519 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5520
5521 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5522 filter logic.
5523 (backtrace_command): Add "no-filters" option parsing.
5524 (_initialize_stack): Alter help to reflect "no-filters" option.
5525 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5526 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5527 (py-frame.o): Add target
5528 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5529 filter files.
5530 * python/python.h: Add new frame filter constants, and flag enum.
5531 (apply_frame_filter): Add definition.
5532 * python/python.c (apply_frame_filter): New non-Python
5533 enabled function.
5534 * python/py-utils.c (py_xdecref): New function.
5535 (make_cleanup_py_xdecref): Ditto.
5536 * python/py-objfile.c: Declare frame_filters dictionary.
5537 (objfpy_dealloc): Add frame_filters dealloc.
5538 (objfpy_new): Initialize frame_filters attribute.
5539 (objfile_to_objfile_object): Ditto.
5540 (objfpy_get_frame_filters): New function.
5541 (objfpy_set_frame_filters): New function.
5542 * python/py-progspace.c: Declare frame_filters dictionary.
5543 (pspy_dealloc): Add frame_filters dealloc.
5544 (pspy_new): Initialize frame_filters attribute.
5545 (pspacee_to_pspace_object): Ditto.
5546 (pspy_get_frame_filters): New function.
5547 (pspy_set_frame_filters): New function.
5548 * python/py-framefilter.c: New file.
5549 * python/lib/gdb/command/frame_filters.py: New file.
5550 * python/lib/gdb/frames.py: New file.
5551 * python/lib/gdb/__init__.py: Initialize global frame_filters
5552 dictionary
5553 * python/lib/gdb/FrameDecorator.py: New file.
5554 * python/lib/gdb/FrameIterator.py: New file.
5555 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5556 * mi/mi-cmds.h: Declare.
5557 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5558 --no-frame-filter logic, and Python frame filter logic.
5559 (stack_enable_frame_filters): New function.
5560 (parse_no_frame_option): Ditto.
5561 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5562 filter logic.
5563 (mi_cmd_stack_list_locals): Ditto.
5564 (mi_cmd_stack_list_args): Ditto.
5565 (mi_cmd_stack_list_variables): Ditto.
5566 * NEWS: Add frame filter note.
5567
5568 2013-05-09 Doug Evans <dje@google.com>
5569
5570 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5571 All callers updated.
5572 (syms_from_objfile): Ditto. Make static.
5573 (symbol_file_add_with_addrs): Renamed from
5574 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5575 num_offsets. All callers updated.
5576 * symfile.h (syms_from_objfile): Delete.
5577
5578 * symfile.c (decrement_reading_symtab): Add assert.
5579 (increment_reading_symtab): Ditto.
5580
5581 2013-05-09 Joel Brobecker <brobecker@adacore.com>
5582
5583 * source.c (forward_search_command): Replace call to getc
5584 by call to fgetc.
5585 (reverse_search_command): Likewise.
5586
5587 2013-05-08 Doug Evans <dje@google.com>
5588
5589 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5590 matching test.
5591
5592 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5593
5594 * sol-thread.c (info_cb): Factorize the code a little.
5595
5596 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5597
5598 * sol-thread.c (info_cb): Rework the output of the "maintenance
5599 info sol-threads" command a bit.
5600
5601 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5602
5603 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5604 Replace ti.ti_startfunc by ti.ti_pc.
5605
5606 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5607
5608 * solib-aix.c (solib_aix_free_library_list): New function
5609 for the case where HAVE_LIBEXPAT is not defined.
5610
5611 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5612
5613 PR breakpoints/15413:
5614 * breakpoint.c (condition_completer): Simplify the code to
5615 disconsider multiple locations of breakpoints when completing the
5616 "condition" command.
5617
5618 2013-05-07 Pierre Muller <muller@sourceware.org>
5619
5620 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5621 instead of <sys/wait.h>.
5622
5623 2013-05-07 Pierre Muller <muller@sourceware.org>
5624
5625 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5626 trailing new line from warning message.
5627
5628 2013-05-07 Pierre Muller <muller@sourceware.org>
5629
5630 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5631 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5632
5633 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5634
5635 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5636 error message (ARI fix).
5637
5638 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5639
5640 * features/library-list-aix.dtd: Replace library-list by
5641 library-list-aix.
5642 * rs6000-nat.c: Replace library-list by library-list-aix
5643 throughout.
5644 * solib-aix.c: Likewise.
5645
5646 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5647
5648 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5649 Renames TARGET_OBJECT_AIX_LIBRARIES.
5650 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5651 TARGET_OBJECT_LIBRARIES_AIX throughout.
5652 * solib-aix.c: Likwise.
5653
5654 2013-05-07 Yao Qi <yao@codesourcery.com>
5655
5656 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5657 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5658
5659 2013-05-07 Yao Qi <yao@codesourcery.com>
5660
5661 * solib-dsbt.c (enable_break): Declare.
5662 (dsbt_current_sos): Remove call to enable_break2.
5663 (enable_break2): Rename to enable_break. Set solib breakpoint
5664 on '_dl_debug_state'.
5665 (enable_break): Remove.
5666
5667 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
5668
5669 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5670 debug state prior to replicating existing hardware watchpoints or
5671 breakpoints.
5672
5673 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5674
5675 * gcore.c (gcore_create_callback): Ignore sections with
5676 separate_debug_objfile_backlink != NULL.
5677
5678 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5679 Andrew Jenner <andrew@codesourcery.com>
5680 Chung-Lin Tang <cltang@codesourcery.com>
5681 Julian Brown <julian@codesourcery.com>
5682
5683 Based on the nios2-elf port from Altera Corporation.
5684
5685 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5686 nios2-linux-tdep.o.
5687 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5688 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5689 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5690 * nios2-tdep.h: New.
5691 * nios2-tdep.c: New.
5692 * nios2-linux-tdep.c: New.
5693 * features/Makefile (WHICH): Add nios2-linux.
5694 (nios2-linux-expedite): Set.
5695 * features/nios2-cpu.xml: New.
5696 * features/nios2.xml: New.
5697 * features/nios2-linux.xml: New.
5698 * features/nios2.c: New (autogenerated).
5699 * features/nios2-linux.c: New (autogenerated).
5700 * regformats/nios2-linux.dat: New (autogenerated).
5701 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5702 and commands.
5703
5704 2013-05-06 Doug Evans <dje@google.com>
5705
5706 * symfile.c: Whitespace cleanup.
5707
5708 * solist.h (struct target_so_ops): New member clear_so.
5709 * solib-svr4.c (svr4_clear_so): New function.
5710 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5711 * solib.c (clear_so): Renamed from free_so_symbols.
5712 All callers updated. Call target clear_so if it exists.
5713
5714 2013-05-06 Tom Tromey <tromey@redhat.com>
5715
5716 * ada-lang.c (ada_value_primitive_packed_val): Don't
5717 call value_incref.
5718 * value.c (set_value_parent): Incref the new parent and decref
5719 the old parent.
5720 (value_copy, value_primitive_field): Use set_value_parent.
5721
5722 2013-05-06 Tom Tromey <tromey@redhat.com>
5723
5724 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5725 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5726 if needed.
5727 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5728 * dwarf2read.c (write_constant_as_bytes)
5729 (dwarf2_fetch_constant_bytes): New functions.
5730
5731 2013-05-06 Tom Tromey <tromey@redhat.com>
5732
5733 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5734 parameters.
5735 (dwarf2_const_value_attr): Update.
5736
5737 2013-05-06 Tom Tromey <tromey@redhat.com>
5738
5739 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5740 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5741 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5742 Remove declaration.
5743
5744 2013-05-06 Tom Tromey <tromey@redhat.com>
5745
5746 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5747 objfile's obstack.
5748
5749 2013-05-06 Doug Evans <dje@google.com>
5750
5751 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5752 * stabsread.h (process_one_symbol): Update declaration.
5753 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5754 * elfread.c (elf_symfile_relocate_probe): Ditto.
5755 * psymtab.c (relocate_psymtabs): Ditto.
5756 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5757 (objfile_relocate): Ditto.
5758 * objfiles.h (objfile_relocate): Update declaration.
5759 * symfile.c (relative_addr_info_to_section_offsets): Constify
5760 addrs parameter.
5761 (default_symfile_offsets): Ditto.
5762 (syms_from_objfile_1): Constify offsets parameter.
5763 (syms_from_objfile): Ditto.
5764 (symbol_file_add_with_addrs_or_offsets): Ditto.
5765 (symfile_map_offsets_to_segments): Constify data parameter.
5766 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5767 delta parameters of member relocate.
5768 (struct sym_probe_fns): Constify new_offsets,
5769 delta parameters of member sym_relocate_probe.
5770 (struct sym_fns): Constify section_addr_info parameter of member
5771 sym_offsets.
5772 (relative_addr_info_to_section_offsets): Update declaration.
5773 (default_symfile_offsets): Ditto.
5774 (syms_from_objfile): Ditto.
5775 (symfile_map_offsets_to_segments): Ditto.
5776
5777 * symfile.c (syms_from_objfile_1): Use correct section count when
5778 objfile->sf == NULL.
5779
5780 2013-05-06 Mike Frysinger <vapier@gentoo.org>
5781
5782 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5783
5784 2013-05-06 Doug Evans <dje@google.com>
5785
5786 * psympriv.h (struct partial_symtab): Augment comment for member
5787 section_offsets.
5788
5789 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5790
5791 Reimplement shared library support on ppc-aix...
5792 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5793 * features/library-list-aix.dtd: New file.
5794 * solib-aix.h, solib-aix.c: New file.
5795 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5796 (rs6000_find_toc_address_hook): Delete.
5797 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5798 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5799 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5800 "xml-utils.h".
5801 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5802 (vmap_symtab, fixup_breakpoints): Delete.
5803 (rs6000_xfer_shared_libraries): New function.
5804 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5805 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5806 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5807 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5808 (rs6000_xfer_shared_library): New function.
5809 (find_toc_address): Delete.
5810 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5811 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5812 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5813 before creating minimal symbol. Adjust function description
5814 accordingly.
5815 (scan_xcoff_symtab): Replace call to
5816 prim_record_minimal_symbol_and_info by call to
5817 record_minimal_symbol.
5818 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5819 around default_symfile_offsets.
5820 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5821 powerpc-aix targets.
5822 * config/rs6000/nm-rs6000.h: Delete.
5823 * config/powerpc/aix.mh (NAT_FILE): Delete.
5824 (NATDEPFILES): Remove xcoffsolib.o.
5825 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5826 (ALL_TARGET_OBS): Add solib-aix.o.
5827 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5828 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5829 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5830 * xcoffsolib.h, xcoffsolib.c: Delete.
5831
5832 * solib.c (reload_shared_libraries): Remove reference to
5833 SOLIB_CREATE_INFERIOR_HOOK.
5834 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5835 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5836 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5837 comment.
5838 * corelow.c (deprecated_core_resize_section_table): Delete.
5839 * exec.c: Remove include of xcoffsolib.h".
5840 (map_vmap, vmap): Delete.
5841 (exec_close_1): Remove references to vmap.
5842 (exec_file_attach): Remove vmap handling code, and reference
5843 to DEPRECATED_IBM6000_TARGET.
5844 (bfdsec_to_vmap): Delete.
5845 (exec_files_info): Remove block of code handling VMAP.
5846 * infcmd.c (post_create_inferior): Remove reference to
5847 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5848 * infrun.c (follow_exec): Remove reference to
5849 SOLIB_CREATE_INFERIOR_HOOK.
5850 * stack.c (print_frame): Remove reference to PC_SOLIB.
5851 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5852 (dsbt_relocate_main_executable): Likewise.
5853 * solib-frv.c (frv_current_sos): Likewise.
5854
5855 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5856
5857 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5858 to target_write_memory and target_read_memory.
5859
5860 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5861
5862 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5863 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5864
5865 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5866
5867 * darwin-nat.c: Replace all "%x" instances in format strings
5868 into "0x%x" throughout.
5869
5870 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5871
5872 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5873 gdb_assert by call to MACH_CHECK_ERROR.
5874 (darwin_attach_pid): Raise an error rather than a failed
5875 assertion when various system calls failed. Report a warning
5876 instead of raising a failed assertion when PREV_NOT is not NULL
5877 after call to mach_port_request_notification.
5878 (darwin_ptrace_me): Raise an error rather than a failed
5879 assertion when read returns nonzero.
5880
5881 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5882
5883 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5884
5885 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5886
5887 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5888
5889 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5890
5891 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5892 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5893 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5894 a stale cleanup. Fix double free of NAME.
5895
5896 2013-05-04 Eli Zaretskii <eliz@gnu.org>
5897
5898 * windows-nat.c (windows_delete_thread): Accept an additional
5899 argument, the thread's exit code, and announce thread death when
5900 print_thread_events is non-zero and we are deleting a thread that
5901 is not the main thread.
5902 (get_windows_debug_event): Pass thread exit code to
5903 windows_delete_thread.
5904
5905 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5906
5907 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5908 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5909 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5910 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5911 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5912 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5913 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5914 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5915 (gdbarch_tdep): New struct.
5916 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5917 E_NUM_REGS.
5918 (v850e3v5_register_name): New function.
5919 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5920 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5921 code handling the struct return conventions for the RH850 ABI.
5922 Update all callers.
5923 (v850_eight_byte_align_p): New function.
5924 (v850_push_call_dummy): Push structs by value, not by reference
5925 for the RH850 ABI. Add support for eight byte alignment.
5926 (v850_dbtrap_breakpoint_from_pc): New function.
5927 (v850_gdbarch_init): Add ABI detection code. Register
5928 v850e3v5_register_name for the v850e3v5 architecture. Set the
5929 number of registers for v850e3v5. Register
5930 v850_dbtrap_breakpoint_from_pc as appropriate.
5931 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5932
5933 2013-05-03 Doug Evans <dje@google.com>
5934
5935 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5936 of bfd_count_sections.
5937 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5938 * symfile.c (default_symfile_offsets): Ditto.
5939 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5940 one entry, not bfd_count_sections entries.
5941
5942 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5943
5944 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5945 `save' and `restore' register groups. Don't include SPL
5946 or SPH in these groups.
5947 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5948 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5949 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5950 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5951 dwarf2_append_unwinders().
5952
5953 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5954
5955 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5956 ignore SIGINT and SIGTRAP in case these internal signals are
5957 caught explicitely.
5958
5959 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5960
5961 * darwin-nat.c (darwin_read_write_inferior): Change types
5962 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5963 of copy_count to "mach_msg_type_number_t".
5964 (darwin_read_dyld_info): Change type of parameter
5965 rdaddr to "gdb_byte *".
5966
5967 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5968
5969 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5970 of &info->load_map from "char *" to "gdb_byte *".
5971
5972 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5973
5974 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5975 from "char *" to "gdb_byte *".
5976 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5977
5978 2013-04-30 Doug Evans <dje@google.com>
5979
5980 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5981 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5982 DWO stub. If DWO isn't found, just use stub.
5983 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5984
5985 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5986 calling init_cutu_and_read_dies.
5987
5988 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5989
5990 * target-descriptions.c (maint_print_c_tdesc_cmd):
5991 Add case to parse structures as register types and
5992 bitfields.
5993
5994 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
5995
5996 * MAINTAINERS (Write After Approval): Add myself to the list.
5997
5998 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5999
6000 * sol-thread.c (rw_common): Change type of parameter "buf"
6001 to "gdb_byte *".
6002 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6003 rw_common to "gdb_byte *" instead of "char *".
6004
6005 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6006
6007 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6008 of local variable msym to const struct bound_minimal_symbol.
6009 Adjust use accordingly.
6010 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6011
6012 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6013
6014 * i386gnu-nat.c (CREG_OFFSET): New macro.
6015 (creg_offset): New array.
6016 (CREG_ADDR): Use creg_offset instead of reg_offset.
6017
6018 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6019
6020 * mep-tdep.c (mep_write_pc): Delete.
6021 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6022 Add call to set_gdbarch_pc_regnum.
6023
6024 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6025
6026 * common/filestuff.c: Replace #include <dirent.h> by
6027 #include "gdb_dirent.h".
6028
6029 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6030
6031 * common/filestuff.c: Replace #include <sys/stat.h> by
6032 #include "gdb_stat.h".
6033
6034 2013-04-29 Pierre Muller <muller@sourceware.org>
6035
6036 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6037 editCase function rule.
6038 (get_DW_AT_signature_type): Likewise.
6039
6040 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6041
6042 * m32r-tdep.c (m32r_write_pc): Delete.
6043 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6044 Add call to set_gdbarch_pc_regnum.
6045
6046 2013-04-29 Pierre Muller <muller@sourceware.org>
6047
6048 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6049
6050 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6051
6052 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6053
6054 2013-04-28 Yao Qi <yao@codesourcery.com>
6055
6056 * solib-dsbt.c (fetch_loadmap): Re-indent.
6057 (displacement_from_map, enable_break2): Likewise.
6058 (dsbt_relocate_section_addresses): Likewise.
6059
6060 2013-04-26 Joel Brobecker <brobecker@adacore.com>
6061
6062 GDB 7.6 released.
6063
6064 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6065
6066 PR corefiles/14983:
6067 * dwarf2read.c (process_full_comp_unit): Always create a static
6068 block.
6069
6070 2013-04-25 Hui Zhu <hui@codesourcery.com>
6071
6072 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6073 to loc->cmd_bytecode.
6074
6075 2013-04-24 Doug Evans <dje@google.com>
6076
6077 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6078
6079 2013-04-22 Keith Seitz <keiths@redhat.com>
6080
6081 * tracepoint.c (trace_save): Call the writer's start method.
6082
6083 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6084
6085 PR gdb/10462
6086 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6087 before argument.
6088
6089 2013-04-23 Tom Tromey <tromey@redhat.com>
6090
6091 * common/filestuff.c: Check USE_WIN32API before including
6092 sys/socket.h.
6093 (HAVE_F_GETFD): New define.
6094 (mark_cloexec): Check HAVE_F_GETFD.
6095 (gdb_open_cloexec): Change 'mode' to unsigned long.
6096 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6097 (gdb_pipe_cloexec): Check HAVE_PIPE.
6098 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6099 long.
6100
6101 2013-04-23 Hui Zhu <hui@codesourcery.com>
6102
6103 PR gdb/15293
6104 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6105
6106 2013-04-23 Hui Zhu <hui@codesourcery.com>
6107
6108 PR gdb/15165
6109 * breakpoint.c (dprintf_print_recreate): New.
6110 (save_breakpoints): Let it not save dprintf commands.
6111 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6112
6113 2013-04-22 Tom Tromey <tromey@redhat.com>
6114
6115 PR gdb/7912:
6116 * Makefile.in (SFILES): Add filestuff.c
6117 (COMMON_OBS): Add filestuff.o.
6118 (filestuff.o): New target.
6119 * auto-load.c (auto_load_objfile_script_1): Use
6120 gdb_fopen_cloexec.
6121 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6122 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6123 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6124 * common/agent.c (gdb_connect_sync_socket): Use
6125 gdb_socket_cloexec.
6126 * common/filestuff.c: New file.
6127 * common/filestuff.h: New file.
6128 * common/linux-osdata.c (linux_common_core_of_thread)
6129 (command_from_pid, commandline_from_pid, print_source_lines)
6130 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6131 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6132 gdb_fopen_cloexec.
6133 * common/linux-procfs.c (linux_proc_get_int)
6134 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6135 * config.in, configure: Rebuild.
6136 * configure.ac: Don't check for sys/socket.h. Check for
6137 fdwalk, pipe2.
6138 * corelow.c (core_open): Use gdb_open_cloexec.
6139 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6140 * fork-child.c (fork_inferior): Call close_most_fds.
6141 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6142 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6143 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6144 Use gdb_fopen_cloexec.
6145 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6146 gdb_open_cloexec.
6147 (linux_async_pipe): Use gdb_pipe_cloexec.
6148 * remote-fileio.c (remote_fileio_func_open): Use
6149 gdb_open_cloexec.
6150 * remote.c (remote_file_put, remote_file_get): Use
6151 gdb_fopen_cloexec.
6152 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6153 close_most_fds.
6154 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6155 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6156 * solib.c (solib_find): Use gdb_open_cloexec.
6157 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6158 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6159 (tfile_open): Use gdb_open_cloexec.
6160 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6161 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6162 * xml-support.c (xml_fetch_content_from_file): Use
6163 gdb_fopen_cloexec.
6164 * main.c (captured_main): Call notice_open_fds.
6165
6166 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6167
6168 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6169 'char *' to 'gdb_byte *'.
6170 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6171 'gdb_byte'.
6172
6173 2013-04-22 Yao Qi <yao@codesourcery.com>
6174
6175 * infrun.c: Fix typo in comment.
6176
6177 2013-04-22 Andrew Haley <aph@redhat.com>
6178
6179 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6180 instead of "long".
6181
6182 2013-04-20 Yao Qi <yao@codesourcery.com>
6183
6184 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6185 'char *' to 'gdb_byte *'. Cast the return value of
6186 'bt_ctf_get_char_array' to 'gdb_byte *'.
6187
6188 2013-04-19 Pedro Alves <palves@redhat.com>
6189
6190 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6191 -Wpointer-sign.
6192 * configure: Regenerate.
6193
6194 2013-04-19 Pedro Alves <palves@redhat.com>
6195
6196 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6197 'void *'.
6198
6199 2013-04-19 Pedro Alves <palves@redhat.com>
6200
6201 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6202 Change type of 'myaddr' parameter to gdb_byte pointer.
6203 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6204 to 'long long' pointer instead of to 'unsigned long long'.
6205 (monitor_write_memory_block, monitor_read_memory_single)
6206 (monitor_read_memory): Change type of 'myaddr' parameter to
6207 gdb_byte pointer.
6208
6209 2013-04-19 Pedro Alves <palves@redhat.com>
6210
6211 * record.c (validate_history_size): Make parameter 'setting'
6212 unsigned.
6213
6214 2013-04-19 Pedro Alves <palves@redhat.com>
6215
6216 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6217 to 'gdb_byte *'.
6218
6219 2013-04-19 Pedro Alves <palves@redhat.com>
6220
6221 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6222 local to int.
6223
6224 2013-04-19 Pedro Alves <palves@redhat.com>
6225
6226 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6227 * ada-tasks.c (read_fat_string_value): Likewise.
6228
6229 2013-04-19 Pedro Alves <palves@redhat.com>
6230
6231 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6232 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6233 'offset', and adjust.
6234
6235 2013-04-19 Pedro Alves <palves@redhat.com>
6236
6237 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6238 (read_index_from_section): Add cast to 'char *'.
6239
6240 2013-04-19 Pedro Alves <palves@redhat.com>
6241
6242 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6243
6244 2013-04-19 Pedro Alves <palves@redhat.com>
6245
6246 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6247
6248 2013-04-19 Pedro Alves <palves@redhat.com>
6249
6250 * record-full.c (record_full_get_bookmark): Change local 'ret'
6251 type to char * and add cast to gdb_byte *.
6252 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6253 string.
6254 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6255
6256 2013-04-19 Pedro Alves <palves@redhat.com>
6257
6258 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6259 * python/py-prettyprint.c (print_string_repr): Change type of
6260 'output' local to char *. Add cast to gdb_byte * in
6261 LA_PRINT_STRING call.
6262 (print_children): Change type of 'output' local to char *.
6263 * python/py-value.c (valpy_string): Add cast to const char * in
6264 PyUnicode_Decode call.
6265
6266 2013-04-19 Pedro Alves <palves@redhat.com>
6267
6268 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6269 and change its type to 'const char *'. Adjust.
6270 (mips_send_packet): Add cast to 'char *', and remove cast to
6271 'unsigned char *'.
6272 (mips_receive_packet): Remove cast to 'unsigned char *'.
6273 (mips_load_srec): Use bfd_byte.
6274 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6275 (pmon_checkset): Make 'value' parameter unsigned.
6276
6277 2013-04-19 Pedro Alves <palves@redhat.com>
6278
6279 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6280
6281 2013-04-19 Pedro Alves <palves@redhat.com>
6282
6283 * remote.c (remote_write_bytes_aux, compare_sections_command)
6284 (remote_read_qxfer)
6285 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6286 (remote_hostio_readlink, remote_bfd_iovec_pread)
6287 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6288 binary buffer, and char when buffer is used as string.
6289 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6290 (trace_save, tfile_open, traceframe_walk_blocks)
6291 (tfile_fetch_registers): Likewise.
6292
6293 2013-04-19 Pedro Alves <palves@redhat.com>
6294
6295 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6296 buffer and size_t size. Adjust.
6297 * ser-base.h (ser_base_write): Adjust.
6298 * ser-go32.c (cnts): Change type to size_t.
6299 (dos_write): Change prototype -- take 'void *'
6300 buffer and size_t size. Adjust.
6301 (dos_info): Print elements of 'cnts' as unsigned long.
6302 * serial.c (serial_write): Likewise.
6303 * serial.h (serial_write): Adjust.
6304 (struct serial_ops) <write>: Change prototype -- take 'void *'
6305 buffer and size_t size. Adjust.
6306
6307 2013-04-19 Pedro Alves <palves@redhat.com>
6308
6309 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6310 gdb_byte *.
6311 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6312
6313 2013-04-19 Pedro Alves <palves@redhat.com>
6314
6315 * alpha-tdep.c (alpha_extract_return_value): Use
6316 regcache_cooked_read_unsigned to read 'v0'.
6317
6318 2013-04-19 Pedro Alves <palves@redhat.com>
6319
6320 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6321 parameters 'at', 'as' and 'offset' to uint32_t.
6322
6323 2013-04-19 Pedro Alves <palves@redhat.com>
6324
6325 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6326 'is64' to signed 'int'.
6327
6328 2013-04-19 Pedro Alves <palves@redhat.com>
6329
6330 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6331 parameter to int *.
6332
6333 2013-04-19 Pedro Alves <palves@redhat.com>
6334
6335 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6336 'insnbuf' buffer type to unsigned int[].
6337
6338 2013-04-19 Pedro Alves <palves@redhat.com>
6339
6340 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6341
6342 2013-04-19 Pedro Alves <palves@redhat.com>
6343
6344 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6345 unsigned long *.
6346
6347 2013-04-19 Pedro Alves <palves@redhat.com>
6348
6349 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6350 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6351 UINT_MAX.
6352 * mips-tdep.c (heuristic_fence_post): Change type to int.
6353 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6354
6355 2013-04-19 Pedro Alves <palves@redhat.com>
6356
6357 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6358 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6359 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6360
6361 2013-04-19 Pedro Alves <palves@redhat.com>
6362
6363 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6364 it to get a string view of the byte buffer.
6365 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6366 type to gdb_byte *. Adjust.
6367 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6368 Change local to char *.
6369 * solib-darwin.c (find_program_interpreter): Change return type to
6370 char *. Adjust.
6371 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6372 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6373 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6374 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6375 * solib-svr4.c (find_program_interpreter): Change return type to
6376 char *. Adjust.
6377 (enable_break): Change local 'interp_name' to char *.
6378 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6379 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6380 (spu_pseudo_register_write_spu): Use char for string buffer.
6381 Adjust.
6382 (info_spu_event_command, info_spu_signal_command): Add casts to
6383 'char *'.
6384
6385 2013-04-19 Pedro Alves <palves@redhat.com>
6386
6387 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6388 gdb_byte[].
6389 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6390 * ada-lang.c (ada_value_assign): Use gdb_byte.
6391 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6392 (alphanbsd_sigtramp_offset): Use gdb_byte.
6393 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6394 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6395 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6396 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6397 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6398 * arm-tdep.c (arm_stub_unwind_sniffer)
6399 (arm_displaced_init_closure): Use gdb_byte.
6400 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6401 (arm_default_thumb_le_breakpoint)
6402 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6403 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6404 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6405 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6406 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6407 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6408 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6409 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6410 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6411 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6412 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6413 (cris_store_return_value, cris_extract_return_value): Use
6414 gdb_byte.
6415 (constraint): Change type of parameter to char * from signed
6416 char*. Use gdb_byte.
6417 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6418 of local buffer to gdb_byte *.
6419 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6420 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6421 (add_address_entry): Change type of local buffer to gdb_byte[].
6422 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6423 (frv_push_dummy_call): Use gdb_byte.
6424 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6425 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6426 (hppa_hpux_supply_save_state): Use gdb_byte.
6427 * hppa-tdep.c (hppa32_push_dummy_call)
6428 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6429 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6430 (slotN_contents, replace_slotN_contents): Change type of parameter
6431 to gdb_byte *.
6432 (fetch_instruction, ia64_pseudo_register_write)
6433 (ia64_register_to_value, ia64_value_to_register)
6434 (ia64_extract_return_value, ia64_store_return_value)
6435 (ia64_push_dummy_call): Use gdb_byte.
6436 * m32c-tdep.c (m32c_return_value): Remove cast.
6437 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6438 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6439 gdb_byte.
6440 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6441 * mn10300-tdep.c (mn10300_store_return_value)
6442 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6443 gdb_byte.
6444 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6445 (moxie_process_record): Remove casts.
6446 * ppc-ravenscar-thread.c (supply_register_at_address)
6447 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6448 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6449 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6450 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6451 * remote.c (compare_sections_command): Use gdb_byte.
6452 * score-tdep.c (score7_free_memblock): Change type of parameter to
6453 gdb_byte *.
6454 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6455 gdb_byte *. Use gdb_byte.
6456 (sh_push_dummy_call_fpu): Use gdb_byte.
6457 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6458 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6459 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6460 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6461 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6462 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6463 (sh64_store_return_value, sh64_register_convert_to_virtual):
6464 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6465 (sh64_pseudo_register_write): Use gdb_byte.
6466 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6467 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6468 buffer.
6469 (irix_current_sos): Use gdb_byte.
6470 * solib-som.c (som_current_sos): Use gdb_byte.
6471 * sparc-ravenscar-thread.c (supply_register_at_address)
6472 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6473 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6474 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6475 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6476 'gdb_byte *'.
6477 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6478 'gdb_byte *'.
6479 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6480 * xstormy16-tdep.c (xstormy16_extract_return_value)
6481 (xstormy16_store_return_value): Change parameter type to
6482 'gdb_byte *'. Adjust.
6483 (xstormy16_push_dummy_call): Use gdb_byte.
6484 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6485 (call0_analyze_prologue, execute_code): Use gdb_byte.
6486
6487 2013-04-19 Vladimir Kargov <kargov@gmail.com>
6488 Pedro Alves <palves@redhat.com>
6489
6490 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6491 value contents.
6492
6493 2013-04-17 Doug Evans <dje@google.com>
6494
6495 * dwarf2read.c (struct signatured_type): New member type.
6496 (struct attribute): Replace member signatured_type with signature.
6497 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6498 (read_call_site_scope): Call follow_die_ref instead of
6499 follow_die_ref_or_sig.
6500 (read_structure_type): Rewrite handling of signatured types.
6501 (read_enumeration_type): Ditto.
6502 (read_attribute_value): Update.
6503 (build_error_marker_type): New function.
6504 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6505 Don't call error for bad types, just build an error marker type.
6506 (dump_die_shallow): Update.
6507 (follow_die_sig_1): Renamed from follow_die_sig.
6508 Don't call error for bad types, instead return NULL.
6509 (follow_die_sig): New function.
6510 (get_signatured_type, get_DW_AT_signature_type): New functions.
6511
6512 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6513
6514 * aarch64-tdep.c (aarch64_write_pc): Removed.
6515 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6516 function.
6517
6518 2013-04-17 Yao Qi <yao@codesourcery.com>
6519
6520 * top.c (print_gdb_configuration): Print configure-time
6521 parameter on using libbabeltrace or not.
6522
6523 2013-04-16 Pedro Alves <palves@redhat.com>
6524
6525 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6526
6527 2013-04-16 Pedro Alves <palves@redhat.com>
6528
6529 * common/glibc_thread_db.h: Update from upstream glibc
6530 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6531
6532 2013-04-16 Pedro Alves <palves@redhat.com>
6533
6534 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6535 * common/glibc_thread_db.h: ... this new file ...
6536 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6537
6538 2013-04-16 Will Newton <will.newton@gmail.com>
6539 Pedro Alves <palves@redhat.com>
6540
6541 PR build/11881
6542
6543 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6544 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6545 HAVE_THREAD_DB_H.
6546
6547 2013-04-16 Pedro Alves <palves@redhat.com>
6548 Eli Zaretskii <eliz@gnu.org>
6549
6550 * NEWS: Mention "set foo unlimited".
6551
6552 2013-04-15 Doug Evans <dje@google.com>
6553
6554 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6555 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6556 (create_dwo_cu_reader): Renamed from
6557 create_dwo_debug_info_hash_table_reader.
6558 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6559 Remove support for multiple CUs in a DWO file.
6560 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6561
6562 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6563 instead of phex.
6564 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6565 (create_dwo_in_dwp): Ditto.
6566
6567 2013-04-15 Tom Tromey <tromey@redhat.com>
6568
6569 * NEWS: Move recent entries into "since 7.6" section.
6570
6571 2013-04-15 Tom Tromey <tromey@redhat.com>
6572
6573 PR c++/13588:
6574 * NEWS: Update.
6575 * break-catch-throw.c (struct exception_catchpoint)
6576 <exception_rx, pattern>: New fields.
6577 (fetch_probe_arguments, dtor_exception_catchpoint)
6578 (check_status_exception_catchpoint)
6579 (print_one_detail_exception_catchpoint): New functions.
6580 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6581 Compile regular expression if needed.
6582 (extract_exception_regexp): New function.
6583 (catch_exception_command_1): Use extract_exception_regexp.
6584 (compute_exception): Use fetch_probe_arguments.
6585 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6586 and check_status fields.
6587 * cp-abi.c (cplus_typename_from_type_info): New function.
6588 * cp-abi.h (cplus_typename_from_type_info): Declare.
6589 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6590 * gdb_regex.h (compile_rx_or_error): Declare.
6591 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6592 comment.
6593 (init_gnuv3_ops): Set get_type_from_type_info field.
6594 * probe.c (compile_rx_or_error): Move...
6595 * utils.c (compile_rx_or_error): ... here.
6596
6597 2013-04-15 Tom Tromey <tromey@redhat.com>
6598
6599 PR c++/15176:
6600 * NEWS: Update.
6601 * break-catch-throw.c (compute_exception): New function.
6602 (exception_funcs): New global.
6603 (_initialize_break_catch_throw): Create $_exception.
6604 * cp-abi.c (cplus_type_from_type_info): New function.
6605 * cp-abi.h (cplus_type_from_type_info): Declare.
6606 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6607 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6608 (gnuv3_get_type_from_type_info): New functions.
6609 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6610
6611 2013-04-15 Tom Tromey <tromey@redhat.com>
6612
6613 * break-catch-throw.c (struct exception_names): New.
6614 (exception_functions): Change type.
6615 (re_set_exception_catchpoint): Look for SDT probes.
6616
6617 2013-04-15 Tom Tromey <tromey@redhat.com>
6618
6619 PR c++/10119:
6620 * break-catch-throw.c (exception_functions): New global.
6621 (gnu_v3_exception_catchpoint_ops): Move earlier.
6622 (struct exception_catchpoint): New.
6623 (classify_exception_breakpoint): Rewrite.
6624 (re_set_exception_catchpoint): New function.
6625 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6626 Allocate a struct exception_catchpoint.
6627 (catch_exception_command_1): Update.
6628 (initialize_throw_catchpoint_ops): Set 're_set' method.
6629
6630 2013-04-15 Tom Tromey <tromey@redhat.com>
6631
6632 * Makefile.in (SFILES): Add break-catch-throw.c
6633 (COMMON_OBS): Add break-catch-throw.o.
6634 * break-catch-throw.c: New file.
6635 * breakpoint.c: Move exception-catching code to new file.
6636 (ep_parse_optional_if_clause): No longer static.
6637 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6638
6639 2013-04-15 Tom Tromey <tromey@redhat.com>
6640
6641 PR c++/9065:
6642 * NEWS: Update.
6643 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6644 * c-exp.y (TYPEID): New token.
6645 (exp): Add new TYPEID productions.
6646 (ident_tokens): Add "typeid".
6647 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6648 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6649 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6650 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6651 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6652 case.
6653 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6654 (build_std_type_info_type, gnuv3_get_typeid_type)
6655 (gnuv3_get_typeid): New functions.
6656 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6657 new fields on ABI object.
6658 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6659 * std-operator.def (OP_TYPEID): New.
6660
6661 2013-04-15 Tom Tromey <tromey@redhat.com>
6662
6663 * elfread.c (elf_symtab_read): Install versioned symbol under
6664 unversioned name as well.
6665
6666 2013-04-15 Tom Tromey <tromey@redhat.com>
6667
6668 PR c++/11990:
6669 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6670 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6671 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6672 (gdb_demangle): New function.
6673 * cp-support.h (gdb_demangle): Declare.
6674 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6675 (dwarf2_name): Use gdb_demangle.
6676 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6677 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6678 suffixes from name.
6679 (gnuv3_print_method_ptr): Use gdb_demangle.
6680 * jv-lang.c (java_demangle): Use gdb_demangle.
6681 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6682 * language.c (unk_lang_demangle): Use gdb_demangle.
6683 * symtab.c (symbol_find_demangled_name)
6684 (demangle_for_lookup): Use gdb_demangle.
6685
6686 2013-04-15 Tom Tromey <tromey@redhat.com>
6687
6688 PR c++/12824:
6689 * NEWS: Update.
6690 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6691 New constant.
6692 (classify_exception_breakpoint): New function.
6693 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6694 (print_mention_exception_catchpoint)
6695 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6696 (catch_exception_command_1): Handle "rethrow" catchpoint.
6697 (catch_rethrow_command): New function.
6698 (_initialize_breakpoint): Add "catch rethrow" command.
6699
6700 2013-04-15 Pierre Muller <muller@sourceware.org>
6701
6702 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6703 set_gdbarch_write_pc as deprecated anymore.
6704
6705 2013-04-15 Joel Brobecker <brobecker@adacore.com>
6706
6707 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6708 declarations.
6709
6710 2013-04-13 Yao Qi <yao@codesourcery.com>
6711
6712 * ctf.c (_initialize_ctf): Include "completer.h".
6713 Call add_target_with_completer instead of add_target.
6714
6715 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6716
6717 Fix GDB regression related to PR binutils/14813.
6718 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6719 * minidebug.c (lzma_close): Add return value comment.
6720 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6721 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6722 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6723
6724 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6725
6726 * config.in: Regenerate.
6727
6728 2013-04-12 Tom Tromey <tromey@redhat.com>
6729
6730 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6731 const.
6732 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6733 (struct die_reader_specs) <buffer>: Likewise.
6734 (die_reader_func_ftype): Make 'info_ptr' const.
6735 (struct line_header) <include_dirs, statement_program_start,
6736 statement_program_end>: Now const.
6737 (struct file_entry) <name>: Likewise.
6738 (struct partial_die_info) <sibling>: Likewise.
6739 (struct dwarf_block) <data>: Likewise.
6740 (dwarf2_read_section): Remove cast.
6741 (dwarf2_get_section_info): Make 'bufp' const.
6742 (read_index_from_section): Constify.
6743 (dw2_get_file_names_reader): Make 'info_ptr' const.
6744 (dw2_get_primary_filename_reader): Likewise.
6745 (read_comp_unit_head): Make 'info_ptr' and return type const.
6746 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6747 Likewise.
6748 (read_abbrev_offset): Constify.
6749 (dwarf2_create_include_psymtab): Make 'name' const.
6750 (create_debug_types_hash_table): Update.
6751 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6752 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6753 Constify.
6754 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6755 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6756 (read_comp_units_from_section): Constify.
6757 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6758 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6759 const.
6760 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6761 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6762 (create_dwp_hash_table, dwarf2_ranges_read)
6763 (dwarf2_record_block_ranges): Constify.
6764 (read_die_and_children, read_die_and_siblings_1)
6765 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6766 const.
6767 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6768 (abbrev_table_read_table): Constify.
6769 (load_partial_dies): Make 'info_ptr' const.
6770 (read_partial_die, read_attribute_value, read_attribute): Make
6771 'info_ptr' and return type const.
6772 (read_address, read_initial_length)
6773 (read_checked_initial_length_and_offset, read_offset)
6774 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6775 const.
6776 (read_direct_string): Make 'buf' and return type const.
6777 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6778 (read_indirect_string): Make return type const.
6779 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6780 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6781 'info_ptr' const.
6782 (read_str_index): Make return type const.
6783 (add_include_dir): Make 'include_dir' const.
6784 (add_file_name): Make 'name' const.
6785 (dwarf_decode_line_header): Constify.
6786 (psymtab_include_file_name): Make return type const.
6787 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6788 (dwarf2_start_subfile): Make 'filename' const.
6789 (dwarf2_const_value_attr): Make 'bytes' const.
6790 (read_signatured_type_reader): Make 'info_ptr' const.
6791 (decode_locdesc): Constify.
6792 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6793 const.
6794 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6795 'mac_end', and return type const.
6796 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6797 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6798 type const.
6799 (per_cu_header_read_in): Constify.
6800 * symfile.h (dwarf2_get_section_info): Update.
6801
6802 2013-04-12 Tom Tromey <tromey@redhat.com>
6803
6804 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6805
6806 2013-04-12 Eli Zaretskii <eliz@gnu.org>
6807
6808 * NEWS: Mention "show configuration", --configuration.
6809 * top.c (print_gdb_configuration): New function, displays the
6810 details about GDB configure-time parameters.
6811 (print_gdb_version): Mention "show configuration".
6812 * cli/cli-cmds.c (show_configuration): New function.
6813 (_initialize_cli_cmds): Add the "show configuration" command.
6814 * main.c (captured_main) <print_configuration>: New static var.
6815 <long_options>: Use it.
6816 If --configuration was given, call print_gdb_configuration.
6817
6818 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6819 Pedro Alves <palves@redhat.com>
6820
6821 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6822 (generated_files): Add gcore.
6823 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6824 HAVE_NATIVE_GCORE_HOST.
6825 (gcore): New.
6826 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6827 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6828 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6829 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6830 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6831 Add HAVE_NATIVE_GCORE_HOST.
6832 * configure: Regenerate.
6833 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6834 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6835 AC_CONFIG_FILES for gcore.
6836 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6837 gdb_have_gcore.
6838 * gdb_gcore.sh: Rename to ...
6839 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6840 and GCORE_TRANSFORM_NAME substitutions.
6841
6842 Fix parsing tabs in ${gdb_target_obs}.
6843 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6844
6845 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6846
6847 * remote.c (unpush_and_perror): Add output message final dot.
6848
6849 2013-04-11 Yao Qi <yao@codesourcery.com>
6850
6851 * tracepoint.c (tfile_interp_line): Fit parameters line and
6852 utpp in one line.
6853
6854 2013-04-10 Joel Brobecker <brobecker@adacore.com>
6855
6856 * solib.c (solib_map_sections): Remove code overwriting
6857 SO->SO_NAME with the bfd's filename.
6858
6859 2013-04-10 Pedro Alves <palves@redhat.com>
6860
6861 * cli/cli-decode.c (integer_unlimited_completer): New function.
6862 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6863 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6864 completer.
6865 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6866 (is_unlimited_literal): New function.
6867 (do_set_command): Handle literal "unlimited" arguments.
6868 * frame.c (_initialize_frame) <set backtrace limit>: Document
6869 "unlimited".
6870 * printcmd.c (_initialize_printcmd) <set print
6871 max-symbolic-offset>: Add help text.
6872 * record-full.c (_initialize_record_full) <set record full
6873 insn-number-max>: Likewise.
6874 * record.c (_initialize_record) <set record
6875 instruction-history-size, set record function-call-history-size>:
6876 Add help text.
6877 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6878 help text.
6879 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6880 Likewise.
6881 * source.c (_initialize_source) <set listsize>: Add help text.
6882 * utils.c (initialize_utils) <set height, set width>: Likewise.
6883 <set pagination>: Mention "set height unlimited".
6884 * valprint.c (_initialize_valprint) <set print elements, set print
6885 repeats>: Document "unlimited".
6886
6887 2013-04-10 Pedro Alves <palves@redhat.com>
6888
6889 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6890 instead of disconnect_tracing.
6891 * infcmd.c (detach_command, disconnect_command): Call
6892 query_if_trace_running. Adjust.
6893 * top.c: Include "tracepoint.h".
6894 (quit_target): Delete. Contents moved ...
6895 (quit_force): ... here. Wrap each stage of teardown in
6896 TRY_CATCH. Call disconnect_tracing before detaching.
6897
6898 2013-04-10 Hui Zhu <hui@codesourcery.com>
6899 Yao Qi <yao@codesourcery.com>
6900
6901 * configure.ac: Check libbabeltrace is installed.
6902 * config.in: Regenerate.
6903 * configure: Regenerate.
6904 * Makefile.in (LIBBABELTRACE): New.
6905 (CLIBS): Add LIBBABELTRACE.
6906 * ctf.c: Include "exec.h".
6907 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6908 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6909 (ctf_save_metadata_header): Define new type aliases in
6910 metadata.
6911 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6912 in metadata. Start a new faked packet for trace status.
6913 (ctf_write_status): Write trace status to CTF.
6914 (ctf_write_uploaded_tsv): Write TSV to CTF.
6915 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6916 (ctf_write_definition_end): End the faked packet.
6917
6918 (ctx, ctf_iter, trace_dirname): New.
6919 (start_pos): New variable.
6920 (ctf_destroy, ctf_open_dir, ctf_open): New.
6921 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6922 macros.
6923 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6924 (ctf_fetch_registers, ctf_xfer_partial): New.
6925 (ctf_get_trace_state_variable_value): New.
6926 (ctf_get_tpnum_from_frame_event): New.
6927 (ctf_get_traceframe_address): New.
6928 (ctf_trace_find, ctf_has_stack): New.
6929 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6930 (ctf_get_trace_status, ctf_read_status): New.
6931 (_initialize_ctf): New.
6932 * tracepoint.c (get_tracepoint_number): New
6933 (get_uploaded_tsv): Remove 'static'.
6934 (struct traceframe_info, trace_regblock_size): Move it to ...
6935 * tracepoint.h: ... here.
6936 (get_tracepoint_number): Declare it.
6937 (get_uploaded_tsv): Declare it.
6938
6939 * NEWS: Mention new configure option.
6940
6941 2013-04-10 Pedro Alves <palves@redhat.com>
6942 Hui Zhu <hui@codesourcery.com>
6943
6944 * breakpoint.c (dprintf_re_set): New.
6945 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6946 to dprintf_re_set.
6947
6948 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6949
6950 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6951 Remove solib-svr4.o from the list.
6952
6953 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6954
6955 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6956 Use gdb_assert_not_reached instead of invalid boolean expression.
6957
6958 2013-04-09 Pedro Alves <palves@redhat.com>
6959
6960 * remote.c (unpush_and_perror): New function.
6961 (readchar, remote_serial_write): Use it.
6962
6963 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6964
6965 * NEWS: Mention new btrace RSP packets.
6966
6967 2013-04-08 Tom Tromey <tromey@redhat.com>
6968
6969 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6970 long.
6971
6972 2013-04-08 Tom Tromey <tromey@redhat.com>
6973
6974 * maint.c (print_bfd_section_info): Print the section index.
6975 * symmisc.c (dump_msymbols): Print the section index.
6976
6977 2013-04-08 Tom Tromey <tromey@redhat.com>
6978
6979 PR symtab/8424:
6980 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6981 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6982 * breakpoint.c (resolve_sal_pc): Update.
6983 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6984 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6985 (minsym_lookup_iterator_cb): Use it.
6986 (default_read_var_value): Update.
6987 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6988 Update.
6989 * infcmd.c (jump_command): Update.
6990 * linespec.c (minsym_found): Update.
6991 * maint.c (maintenance_translate_address): Update.
6992 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6993 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6994 * parse.c (write_exp_msymbol): Update.
6995 * printcmd.c (address_info): Update.
6996 * psymtab.c (find_pc_sect_psymbol): Update.
6997 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6998 SYMBOL_OBJ_SECTION.
6999 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7000 Don't initialize SYMBOL_OBJ_SECTION.
7001 * spu-tdep.c (spu_catch_start): Update.
7002 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7003 * symmisc.c (dump_msymbols, print_symbol): Update.
7004 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7005 how fallback section is computed.
7006 (fixup_symbol_section): Update.
7007 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7008 Update.
7009 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7010 Initialize SYMBOL_SECTION.
7011 * symtab.h (struct general_symbol_info) <section>: Update comment.
7012 <obj_section>: Remove.
7013 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7014 (SYMBOL_OBJFILE): New macro.
7015
7016 2013-04-08 Tom Tromey <tromey@redhat.com>
7017
7018 * coffread.c (record_minimal_symbol): Update.
7019 * dbxread.c (record_minimal_symbol): Update.
7020 * elfread.c (record_minimal_symbol): Update.
7021 * machoread.c (macho_symtab_add_minsym): Update.
7022 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7023 Update.
7024 * minsyms.c (prim_record_minimal_symbol): Update.
7025 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7026 argument.
7027 (prim_record_minimal_symbol_and_info): Likewise.
7028 * minsyms.h (prim_record_minimal_symbol_full)
7029 (prim_record_minimal_symbol_and_info): Update.
7030 * symtab.c (allocate_symbol, initialize_symbol)
7031 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7032 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7033 Update.
7034
7035 2013-04-08 Tom Tromey <tromey@redhat.com>
7036
7037 PR symtab/8423:
7038 * solib-som.c (som_solib_section_offsets): Use BFD section
7039 indices. Set offsets for all sections.
7040 * somread.c (som_symtab_read): Compute BFD section for
7041 symbol. Use prim_record_minimal_symbol_and_info.
7042 (som_symfile_read): Fix comment.
7043 (struct find_section_offset_arg): New.
7044 (find_section_offset, set_section_index): New functions.
7045 (som_symfile_offsets): Use set_section_index to compute
7046 section indices.
7047
7048 2013-04-08 Tom Tromey <tromey@redhat.com>
7049
7050 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7051 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7052 gdb_bfd_section_index.
7053 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7054 New functions.
7055 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7056 Declare.
7057 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7058 Update.
7059 * objfiles.c (add_to_objfile_sections_full): New function.
7060 (add_to_objfile_sections): Use it.
7061 (build_section_table): Rewrite.
7062 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7063 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7064 (struct objfile) <sections>: Update comment.
7065 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7066 is NULL.
7067 (ALL_OBJSECTIONS): Use it.
7068 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7069 * solib-frv.c (frv_relocate_main_executable): Update.
7070 * solib-target.c (solib_target_relocate_section_addresses):
7071 Use gdb_bfd_section_index.
7072 * symfile.c (build_section_addr_info_from_section_table):
7073 Use gdb_bfd_section_index.
7074 (build_section_addr_info_from_bfd, place_section): Likewise.
7075 * symtab.c (fixup_section): Update.
7076 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7077
7078 2013-04-08 Tom Tromey <tromey@redhat.com>
7079
7080 * minsyms.h (struct bound_minimal_symbol): New.
7081 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7082 Remove objfile argument.
7083 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7084 Return bound_minimal_symbol.
7085 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7086 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7087 Return bound_minimal_symbol.
7088 (in_gnu_ifunc_stub): Update.
7089 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7090 Remove 'objfile_p' argument.
7091 (lookup_solib_trampoline_symbol_by_pc): Update.
7092 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7093 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7094 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7095 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7096 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7097 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7098 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7099 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7100 stack.c, symtab.c, tui/tui-disasm.c: Update.
7101
7102 2013-04-08 Tom Tromey <tromey@redhat.com>
7103
7104 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7105 Use symbol's obstack, not an objfile.
7106 * coffread.c (process_coff_symbol): Update.
7107 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7108 * jv-lang.c (add_class_symbol): Update.
7109 * mdebugread.c (new_symbol): Update.
7110 * minsyms.c (prim_record_minimal_symbol_full)
7111 (terminate_minimal_symbol_table): Update.
7112 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7113 * stabsread.c (define_symbol, read_enum_type): Update.
7114 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7115 Handle Ada specially.
7116 (symbol_set_language): Add 'obstack' argument.
7117 (symbol_set_names): Update.
7118 (symbol_natural_name, symbol_demangled_name): Always use
7119 ada_decode_symbol.
7120 * symtab.h (struct general_symbol_info)
7121 <language_specific::obstack>: New field.
7122 <ada_mangled>: New field.
7123 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7124 (symbol_set_language): Update.
7125
7126 2013-04-08 Tom Tromey <tromey@redhat.com>
7127
7128 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7129 Take an obstack, not an objfile.
7130 (symbol_set_names): Update.
7131 * symtab.h (symbol_set_demangled_name): Update.
7132
7133 2013-04-08 Tom Tromey <tromey@redhat.com>
7134
7135 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7136 allocate_symbol.
7137 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7138 (read_func_scope): Call allocate_template_symbol.
7139 (new_symbol_full): Call allocate_symbol.
7140 * jit.c (finalize_symtab): Call allocate_symbol.
7141 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7142 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7143 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7144 (common_block_end): Call allocate_symbol.
7145 * symtab.c (allocate_symbol, initialize_symbol)
7146 (allocate_template_symbol): New functions.
7147 * symtab.c (allocate_symbol, initialize_symbol)
7148 (allocate_template_symbol): Declare.
7149 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7150
7151 2013-04-08 Pedro Alves <palves@redhat.com>
7152 Keith Seitz <keiths@redhat.com>
7153
7154 * breakpoint.c (create_breakpoint): Rename
7155 "parse_condition_and_thread" parameter to "parse_arg". Update
7156 describing comment. If !PARSE_ARG, then error out if ARG is not
7157 the empty string after extracting the location.
7158 * breakpoint.h (create_breakpoint): Rename
7159 "parse_condition_and_thread" parameter to "parse_arg".
7160
7161 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7162
7163 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7164
7165 2013-04-07 Yao Qi <yao@codesourcery.com>
7166
7167 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7168 and 'addr2' to CORE_ADDR.
7169 * target.c (update_current_target): Update.
7170 * target.h (struct target_ops) <to_trace_find>: Change parameter
7171 type to CORE_ADDR.
7172 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7173 'addr2' to CORE_ADDR.
7174 (tfile_trace_find): Likewise.
7175 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7176 Change local variable 'addr' to type CORE_ADDR.
7177 * tracepoint.h (tfind_1): Update declaration.
7178
7179 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7180
7181 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7182 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7183 Include main.h.
7184
7185 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7186 here...
7187 * main.h (windows_get_absolute_argv0): ...to here.
7188
7189 2013-04-05 Doug Evans <dje@google.com>
7190
7191 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7192 (read_cutu_die_from_dwo): Add comments.
7193 (read_structure_type): Update comment.
7194 (read_enumeration_type, read_namespace_type): Update comment.
7195 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7196
7197 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7198
7199 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7200 * Makefile.in (gdb.z): Remove.
7201 (install-only): Remove $(man1dir) and gdb.1 installation.
7202 * gdb.1: Remove.
7203
7204 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7205
7206 Fix compatibility with Linux kernel 3.8.3.
7207 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7208 to more inner block. Remove parsing of NUMBER from outer block.
7209 Parse NUMBER only if KEYWORD has been identified.
7210
7211 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7212
7213 Fix variable name shadowing.
7214 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7215 filename to mapsfilename and update its uses.
7216
7217 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7218
7219 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7220 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7221 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7222 details of the problem.
7223
7224 2013-04-04 Pedro Alves <palves@redhat.com>
7225 Hui Zhu <hui@codesourcery.com>
7226
7227 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7228 tracepoint, reset its STEP_COUNT and call validate_actionline.
7229
7230 2013-04-03 Doug Evans <dje@google.com>
7231
7232 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7233 read_die_and_siblings.
7234 (read_die_and_siblings): New function.
7235 (read_cutu_die_from_dwo): Dump die if requested.
7236 (read_die_and_children): Call read_full_die_1 and
7237 read_die_and_siblings_1.
7238 (read_full_die): Dump die if requested.
7239
7240 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7241
7242 * dwarf2read.c (struct dwo_file): New member comp_dir.
7243 Rename member name to dwo_name. All uses updated.
7244 (hash_dwo_file): Include comp_dir in computation.
7245 (eq_dwo_file): Ditto.
7246 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7247 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7248
7249 * psymtab.c (read_psymtabs_with_fullname): Don't call
7250 psymtab_to_fullname if the basenames are different.
7251
7252 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7253
7254 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7255 New entry about "fullname" presence.
7256
7257 2013-04-03 Pedro Alves <palves@redhat.com>
7258
7259 * NEWS: Mention x86_64/Cygwin as new native configuration.
7260
7261 2013-04-02 Doug Evans <dje@google.com>
7262
7263 * dwarf2read.c (read_structure_type): Fix typo in comment.
7264
7265 2013-04-02 Pedro Alves <palves@redhat.com>
7266
7267 * NEWS: Mention "set/show debug aarch64", "set/show debug
7268 coff-pe-read" and "set/show debug mach-o".
7269
7270 2013-04-02 Pedro Alves <palves@redhat.com>
7271
7272 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7273
7274 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7275
7276 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7277 gdb_string.h is now in common/.
7278
7279 2013-04-02 Pedro Alves <palves@redhat.com>
7280
7281 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7282 under "New options".
7283
7284 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7285
7286 Revert this patch:
7287 PR gdb/15275
7288 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7289
7290 2013-04-02 Pedro Alves <palves@redhat.com>
7291
7292 PR gdb/15275
7293
7294 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7295 (remote_serial_write): New function.
7296 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7297
7298 2013-04-01 Jiong Wang <jiwang@tilera.com>
7299
7300 * NEWS: Mention TILE-Gx in "New native configurations" and
7301 "New targets" sections.
7302
7303 2013-04-01 Doug Evans <dje@google.com>
7304
7305 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7306 (process_enumeration_scope): Simplify.
7307
7308 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7309 type_unit_group ...
7310 (struct signatured_type): ... to here.
7311 (sig_type_ptr): New typedef.
7312 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7313 out of union 't'. All uses updated.
7314 (dw2_get_file_names_reader): Assert not called for a type unit.
7315 (dw2_get_file_names): Assert not called for a type unit or type
7316 unit group.
7317 (build_type_psymtabs_reader): Assert called for a type unit.
7318 (build_type_psymtab_dependencies): Assert called for a type unit group.
7319
7320 * dwarf2read.c (free_dwo_file): Add comment.
7321 (dwarf2_per_objfile_free): Unref dwp bfd.
7322
7323 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7324
7325 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7326 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7327 (read_pe_exported_syms): Remove unused 'exportix'.
7328 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7329 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7330 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7331
7332 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7333
7334 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7335 (print_it_watchpoint): Remove unused 'bl'.
7336 (say_where): Remove unused 'uiout'.
7337 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7338 (bkpt_breakpoint_hit): Remove unused 'b'.
7339 (internal_bkpt_print_it): Remove unused 'uiout'.
7340 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7341
7342 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7343
7344 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7345 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7346
7347 2013-03-29 Doug Evans <dje@google.com>
7348
7349 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7350 Delete arg is_dwp. All callers updated.
7351 (open_dwp_file): New function.
7352 (open_and_init_dwp_file): Call it.
7353 (get_dwp_file): New function.
7354 (lookup_dwo_cutu): Call it.
7355
7356 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7357 unnecessary, cleanup.
7358
7359 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7360
7361 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7362 (lookup_dwo_unit): New function.
7363 (init_cutu_and_read_dies): Move DWO handling to new functions.
7364
7365 * dwarf2read.c (struct signatured_type): Tweak comment.
7366 (struct dwo_unit): Tweak comment.
7367 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7368 (create_dwo_debug_info_hash_table): Tweak comment.
7369 (dwarf2_per_cu_offset_and_type): Tweak comment.
7370
7371 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7372 missing .debug_types section.
7373
7374 2013-03-29 Yao Qi <yao@codesourcery.com>
7375
7376 * corelow.c: Include "completer.h".
7377 (_initialize_corelow): Call add_target_with_completer with
7378 argument 'filename_completer'.
7379 * tracepoint.c: Likewise.
7380 * exec.c (_initialize_exec): Likewise.
7381 * target.c (add_target): Rename to ...
7382 (add_target_with_completer): ... this. Call set_cmd_completer
7383 if parameter completer is not NULL.
7384 (add_target): New.
7385 * target.h: Include "command.h".
7386 (add_target_with_completer): Declare it.
7387
7388 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7389
7390 * coffread.c (is_import_fixup_symbol): New function.
7391 (record_minimal_symbol): Use is_import_fixup_symbol to
7392 detect import fixup symbols, and discard them.
7393
7394 2013-03-28 Doug Evans <dje@google.com>
7395
7396 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7397 types hash table until we know we need it.
7398
7399 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7400 index numbers.
7401
7402 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7403 All callers updated.
7404 (dw2_print_stats): Print #read CUs too.
7405 (dump_die_shallow): Print signatured types better.
7406
7407 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7408 info_or_types_section to section. All uses updated.
7409 (struct dwo_unit): Ditto.
7410
7411 2013-03-28 Pedro Alves <palves@redhat.com>
7412
7413 * NEWS (New options): New section.
7414 (New options): Mention set/show remote trace-status-packet.
7415 * remote.c (PACKET_qTStatus): New enumeration value.
7416 (remote_get_trace_status): Skip sending qTStatus if the packet is
7417 disabled. Use packet_ok.
7418 (_initialize_remote): Register a configuration command for
7419 qTStatus packet.
7420
7421 2013-03-28 Doug Evans <dje@google.com>
7422
7423 * symfile.c (find_separate_debug_file): Add comment.
7424 (terminate_after_last_dir_separator): Tweak comment.
7425
7426 * dwarf2read.c (create_partial_symtab): Add forward decl.
7427 (create_partial_symtab): Move to be closer to other psymtab functions.
7428 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7429
7430 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7431 (compute_symtab_includes): Remove unnecessary forward declaration.
7432 (die_needs_namespace): Add comment marking group of functions for
7433 dwarf2 name computation.
7434
7435 * typeprint.c (_initialize_typeprint): Improve type help text.
7436
7437 * python/python.c (finish_python_initialization): Provide suggestion
7438 for how to tell gdb to find its python files.
7439
7440 2013-03-28 Pedro Alves <palves@redhat.com>
7441
7442 PR gdb/15294
7443
7444 * source.c (_initialize_source): Change back "set listsize" to an
7445 integer command.
7446
7447 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7448
7449 PR gdb/15275
7450 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7451
7452 2013-03-27 Pedro Alves <palves@redhat.com>
7453
7454 * top.c (history_size): Rename to ...
7455 (history_size_setshow_var): ... this. Add comment.
7456 (show_commands): Use readline's 'history_length' instead of
7457 computing the history length by calling history_get in a loop.
7458 (set_history_size_command): Error out for sizes over INT_MAX.
7459 Restore previous history size on invalid size.
7460 (init_history): If HISTSIZE is negative, leave the history size as
7461 zero. Add comments.
7462 (init_main): Adjust.
7463
7464 2013-03-27 Pedro Alves <palves@redhat.com>
7465
7466 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7467 coff_pe_read" command to "set debug coff-pe-read".
7468
7469 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7470
7471 * record.c (command_size_to_target_size): Fix size comparison.
7472 Change parameter type from pointer to integer to integer.
7473 Update all users.
7474
7475 2013-03-27 Pierre Muller <muller@sourceware.org>
7476
7477 * windows-nat.c (handle_output_debug_string): Avoid typecast
7478 from integer of different size warning.
7479
7480 2013-03-26 Joel Brobecker <brobecker@adacore.com>
7481
7482 * windows-nat.c (handle_output_debug_string): Add empty line
7483 after local block variable definition.
7484
7485 2013-03-26 Pedro Alves <palves@redhat.com>
7486
7487 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7488 (net_open): Make 'polls' local unsigned.
7489
7490 2013-03-26 Pedro Alves <palves@redhat.com>
7491
7492 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7493 a zuinteger command instead of uinteger.
7494
7495 2013-03-26 Pedro Alves <palves@redhat.com>
7496
7497 * record-full.c (record_full_insn_num): Make it unsigned.
7498 (record_full_check_insn_num, record_full_message)
7499 (record_full_registers_change, record_full_xfer_partial): Remove
7500 record_full_insn_max_num check (it's always != 0).
7501 (record_full_info, record_full_restore): Use %u as format string.
7502 (): Use %u as format string.
7503 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7504 check (it's always != 0).
7505
7506 2013-03-26 Pedro Alves <palves@redhat.com>
7507
7508 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7509 and "set dcache size" commands zuinteger instead of uinteger.
7510
7511 2013-03-26 Pedro Alves <palves@redhat.com>
7512
7513 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7514 command zuinteger instead of uinteger.
7515
7516 2013-03-26 Pedro Alves <palves@redhat.com>
7517
7518 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7519 zuinteger instead of uinteger.
7520
7521 2013-03-26 Pedro Alves <palves@redhat.com>
7522
7523 * record.c (record_insn_history_size_setshow_var)
7524 (record_call_history_size_setshow_var): New globals.
7525 (command_size_to_target_size): New function.
7526 (cmd_record_insn_history, cmd_record_call_history): Use
7527 command_size_to_target_size instead of cast.
7528 (validate_history_size, set_record_insn_history_size)
7529 (set_record_call_history_size): New functions.
7530 (_initialize_record): Install set_record_insn_history_size and
7531 set_record_call_history_size as "set" hooks of "set record
7532 instruction-history-size" and "set record
7533 function-call-history-size".
7534
7535 2013-03-26 Pedro Alves <palves@redhat.com>
7536
7537 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7538 use with history_max_entries use. Remove FIXME note.
7539
7540 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7541
7542 * record-btrace.c (record_btrace_close): Call
7543 record_btrace_auto_disable.
7544
7545 2013-03-25 Joel Brobecker <brobecker@adacore.com>
7546
7547 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7548
7549 2013-03-25 Doug Evans <dje@google.com>
7550
7551 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7552
7553 2013-03-25 Tom Tromey <tromey@redhat.com>
7554
7555 PR symtab/11462:
7556 * c-exp.y (exp): Add new productions for destructors after '.' and
7557 '->'.
7558 (write_destructor_name): New function.
7559
7560 2013-03-25 Tom Tromey <tromey@redhat.com>
7561
7562 PR c++/9197:
7563 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7564 value_struct_elt, not lookup_struct_elt_type.
7565 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7566 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7567 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7568
7569 2013-03-25 Yao Qi <yao@codesourcery.com>
7570
7571 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7572 instead of '_mkdir'.
7573
7574 2013-03-23 Eli Zaretskii <eliz@gnu.org>
7575
7576 * windows-nat.c (windows_get_absolute_argv0): New function.
7577 * windows-nat.h: Add its prototype.
7578
7579 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7580 Use IS_DIR_SEPARATOR instead of looking for a character inside
7581 SLASH_STRING. Include filenames.h.
7582 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7583 relocate_gdb_directory works when passed gdb_program_name.
7584 Include windows-nat.h.
7585
7586 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7587
7588 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7589 * remote.c (trace_error): Remove the special handling of '2'.
7590 (readchar) <SERIAL_EOF>
7591 (readchar) <SERIAL_ERROR>
7592 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7593 (remote_get_trace_status): Call throw_exception if EX is
7594 TARGET_CLOSE_ERROR.
7595 * utils.c (perror_with_name): Rename to ...
7596 (throw_perror_with_name): ... here. New parameter errcode, describe it
7597 in the function comment.
7598 (perror_with_name): New function wrapper.
7599 * utils.h (enum errors): New stub declaration.
7600 (throw_perror_with_name): New declaration.
7601
7602 2013-03-22 Pedro Alves <palves@redhat.com>
7603 Yao Qi <yao@codesourcery.com>
7604 Mark Kettenis <kettenis@gnu.org>
7605
7606 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7607 Don't let the user set the value to UINT_MAX directly.
7608 <var_integer>: Don't let the user set the value to INT_MAX
7609 directly.
7610
7611 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7612
7613 * remote.c (remote_unpush_target): New function.
7614 (remote_open_1): Remove two pop_target calls, update one comment, add
7615 comment to target_preopen call. Replace pop_target call by
7616 remote_unpush_target call.
7617 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7618 pop_target calls by remote_unpush_target calls.
7619
7620 2013-03-22 Pedro Alves <palves@redhat.com>
7621
7622 * linux-nat.c (linux_child_follow_fork): Don't call
7623 linux_enable_event_reporting.
7624 (linux_handle_extended_wait): Don't call
7625 linux_enable_event_reporting.
7626
7627 2013-03-22 Pedro Alves <palves@redhat.com>
7628
7629 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7630 use it to rewrite the trampoline buffers with type gdb_byte[], and
7631 undefine the macro. Remove char* cast.
7632
7633 2013-03-21 Doug Evans <dje@google.com>
7634
7635 New commands "mt set per-command {space,time,symtab} {on,off}".
7636 * NEWS: Add entry.
7637 * event-top.c: #include "maint.h".
7638 * main.c: #include "maint.h".
7639 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7640 timeval-utils.h, maint.h, cli/cli-setshow.h.
7641 (per_command_time, per_command_space): New static globals.
7642 (per_command_symtab): New static global.
7643 (per_command_setlist, per_command_showlist): New static globals.
7644 (struct cmd_stats): Move here from utils.c.
7645 (set_per_command_time): Renamed from set_display_time in utils.c
7646 and moved here. All callers updated.
7647 (set_per_command_space): Renamed from set_display_space in utils.c
7648 and moved here. All callers updated.
7649 (count_symtabs_and_blocks): New function.
7650 (report_command_stats): Moved here from utils.c. Add support for
7651 printing symtab stats. Only print data if enabled before command
7652 executed.
7653 (make_command_stats_cleanup): Ditto.
7654 (sert_per_command_cmd, show_per_command_cmd): New functions.
7655 (_initialize_maint_cmds): Add new commands
7656 mt set per-command {space,time,symtab} {on,off}.
7657 * maint.h: New file.
7658 * top.c: #include "maint.h".
7659 * utils.c (reset_prompt_for_continue_wait_time): New function.
7660 (get_prompt_for_continue_wait_time): New function.
7661 * utils.h (reset_prompt_for_continue_wait_time): Declare
7662 (get_prompt_for_continue_wait_time): Declare.
7663 (make_command_stats_cleanup): Moved to maint.h.
7664 (set_display_time, set_display_space): Moved to maint.h and renamed
7665 to set_per_command_time, set_per_command_space.
7666 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7667 parse_binary_operation and made non-static. Don't call error,
7668 just return an error marker. All callers updated.
7669 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7670
7671 2013-03-21 Tom Tromey <tromey@redhat.com>
7672
7673 * symfile.c (alloc_section_addr_info): Update header. Don't set
7674 'num_sections' field.
7675 (build_section_addr_info_from_section_table): Set 'num_sections'.
7676 (build_section_addr_info_from_bfd): Likewise.
7677 (build_section_addr_info_from_objfile): Remove dead loop
7678 condition.
7679 (free_section_addr_info): Unconditionally call xfree.
7680 (relative_addr_info_to_section_offsets, addrs_section_sort)
7681 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7682 condition.
7683 (syms_from_objfile_1): Remove dead 'if' condition. Check
7684 'num_sections'.
7685 (add_symbol_file_command): Set 'num_sections'.
7686 * symfile-mem.c (symbol_file_add_from_memory): Set
7687 'num_sections'.
7688 * somread.c (som_symfile_offsets): Remove dead loop condition.
7689 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7690 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7691
7692 2013-03-21 Tom Tromey <tromey@redhat.com>
7693
7694 * tracepoint.h (decode_agent_options): Add 'trace_string'
7695 argument.
7696 * tracepoint.c (decode_agent_options): Add 'trace_string'
7697 argument.
7698 (validate_actionline): Update.
7699 (collect_symbol): Add 'trace_string' argument.
7700 (struct add_local_symbols_data) <trace_string>: New field.
7701 (do_collect_symbol): Update.
7702 (add_local_symbols): Add 'trace_string' argument.
7703 (encode_actions_1): Update.
7704 (trace_dump_actions): Update.
7705 * dwarf2loc.c (access_memory): Update.
7706 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7707 * ax-general.c (new_agent_expr): Update.
7708 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7709 (gen_trace_for_return_address): Add argument.
7710 (trace_kludge, trace_string_kludge): Remove.
7711 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7712 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7713 (gen_trace_for_var): Add 'trace_string' argument.
7714 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7715 (gen_printf, agent_eval_command_one): Update.
7716
7717 2013-03-21 Tom Tromey <tromey@redhat.com>
7718
7719 PR exp/15109:
7720 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7721 Handle FILENAME token.
7722
7723 2013-03-21 Tom Tromey <tromey@redhat.com>
7724
7725 * c-exp.y (YYPRINT): Define.
7726 (c_print_token): New function.
7727
7728 2013-03-21 Tom Tromey <tromey@redhat.com>
7729
7730 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7731
7732 2013-03-21 Yao Qi <yao@codesourcery.com>
7733
7734 * ctf.c: Include "gdb_stat.h".
7735 [USE_WIN32API]: New macro 'mkdir'.
7736 (ctf_start): Use permission bits macros if they are defined.
7737
7738 2013-03-20 Keith Seitz <keiths@redhat.com>
7739
7740 * breakpoint.h (struct breakpoint): Add comment to
7741 extra_string indicating that this member is mallod'd.
7742 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7743
7744 2013-03-20 Pedro Alves <palves@redhat.com>
7745
7746 PR gdb/15289
7747
7748 * cli/cli-setshow.c (do_set_command)
7749 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7750 the result of parsing the command argument. Throw error if the
7751 value is greater than UINT_MAX. Print the invalid value with
7752 plongest.
7753 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7754 result of parsing the command argument. Throw error if the value
7755 is greater than INT_MAX, not greater or equal. Also throw error
7756 if the value is less than INT_MIN. Print the invalid value with
7757 plongest.
7758 <var_zuinteger_unlimited>: Throw error if the value is greater
7759 than INT_MAX, not greater or equal.
7760 (do_show_command) <var_integer, var_zinteger,
7761 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7762
7763 2013-03-20 Tom Tromey <tromey@redhat.com>
7764
7765 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7766 if possible.
7767 * dwarf2read.c (read_func_scope): Remove old FIXME.
7768 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7769 not LOC_COMPUTED.
7770 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7771 Unconditionally call via computed ops, if possible.
7772 * printcmd.c (address_info): Unconditionally call via computed ops,
7773 if possible.
7774 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7775 if possible.
7776 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7777 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7778 if possible.
7779
7780 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7781 Tom Tromey <tromey@redhat.com>
7782
7783 PR symtab/8421:
7784 * coffread.c (coff_register_index): New global.
7785 (process_coff_symbol, coff_read_enum_type): Set
7786 SYMBOL_ACLASS_INDEX.
7787 (_initialize_coffread): Initialize new global.
7788 * dwarf2loc.c (locexpr_find_frame_base_location)
7789 (dwarf2_block_frame_base_locexpr_funcs)
7790 (loclist_find_frame_base_location)
7791 (dwarf2_block_frame_base_loclist_funcs): New.
7792 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7793 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7794 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7795 (dwarf2_block_frame_base_loclist_funcs): New.
7796 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7797 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7798 globals.
7799 (read_func_scope): Update.
7800 (fixup_go_packaging, mark_common_block_symbol_computed)
7801 (var_decode_location, new_symbol_full, dwarf2_const_value):
7802 Set SYMBOL_ACLASS_INDEX.
7803 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7804 (_initialize_dwarf2_read): Initialize new globals.
7805 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7806 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7807 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7808 globals.
7809 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7810 (_initialize_mdebugread): Initialize new globals.
7811 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7812 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7813 (stab_register_index, stab_regparm_index): New globals.
7814 (define_symbol, read_enum_type, common_block_end): Set
7815 SYMBOL_ACLASS_INDEX.
7816 (_initialize_stabsread): Initialize new globals.
7817 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7818 globals.
7819 (MAX_SYMBOL_IMPLS): New define.
7820 (register_symbol_computed_impl, register_symbol_block_impl)
7821 (register_symbol_register_impl)
7822 (initialize_ordinary_address_classes): New functions.
7823 (_initialize_symtab): Call initialize_ordinary_address_classes.
7824 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7825 (struct symbol_impl): New.
7826 (SYMBOL_ACLASS_BITS): New define.
7827 (struct symbol) <aclass, ops>: Remove fields.
7828 <aclass_index>: New field.
7829 (symbol_impls): Declare.
7830 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7831 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7832 (register_symbol_computed_impl, register_symbol_block_impl)
7833 (register_symbol_register_impl): Declare.
7834 (struct symbol_computed_ops): Add location_has_loclist.
7835 (struct symbol_block_ops): New.
7836 (SYMBOL_BLOCK_OPS): New.
7837 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7838
7839 2013-03-20 Tom Tromey <tromey@redhat.com>
7840
7841 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7842 (print_partial_symbols, recursively_search_psymtabs): Use
7843 PSYMBOL_CLASS.
7844
7845 2013-03-20 Pierre Muller <muller@sourceware.org>
7846
7847 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7848 addtion, subtraction, multiplication and division binary operator.
7849
7850 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7851
7852 Code cleanup.
7853 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7854 * bsd-kvm.c (bsd_kvm_close): Likewise.
7855 * bsd-uthread.c (bsd_uthread_close): Likewise.
7856 * corelow.c (core_close): Likewise.
7857 (core_close_cleanup): Remove parameter quitting from a caller.
7858 * event-top.c (async_disconnect): Likewise.
7859 * exec.c (exec_close_1): Remove parameter quitting.
7860 * go32-nat.c (go32_close): Likewise.
7861 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7862 parameter quitting from a caller.
7863 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7864 variable.
7865 (mips_linux_close): Remove parameter quitting. Remove parameter
7866 quitting from a caller.
7867 * monitor.c (monitor_close): Remove parameter quitting.
7868 * monitor.h (monitor_close): Likewise.
7869 * record-btrace.c (record_btrace_close): Likewise.
7870 * record-full.c (record_full_close): Likewise.
7871 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7872 it also from fprintf_unfiltered.
7873 * remote-mips.c (mips_close): Remove parameter quitting.
7874 (mips_detach): Remove parameter quitting from a caller.
7875 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7876 (gdbsim_close): Remove duplicate function comment. Remove parameter
7877 quitting and remove it also from printf_filtered.
7878 * remote.c (remote_close): Remove parameter quitting.
7879 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7880 * target.c (update_current_target): Remove parameter int from to_close
7881 de_fault.
7882 (push_target, unpush_target, pop_target): Remove parameter quitting from
7883 a caller.
7884 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7885 Remove parameter quitting from a caller.
7886 (target_preopen): Remove parameter quitting from a caller.
7887 (target_close): Remove parameter quitting. Remove parameter quitting
7888 from a caller two times. Remove parameter quitting also from
7889 fprintf_unfiltered.
7890 * target.h (struct target_ops): Remove parameter quitting and as int
7891 from fields to_xclose and to_close.
7892 (extern struct target_ops current_target):
7893 (target_close, pop_all_targets): Remove parameter quitting. Update the
7894 comment.
7895 (pop_all_targets_above): Remove parameter quitting.
7896 * top.c (quit_target): Remove parameter quitting from a caller.
7897 * tracepoint.c (tfile_close): Remove parameter quitting.
7898 * windows-nat.c (windows_close): Remove parameter quitting.
7899
7900 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
7901
7902 * windows-nat.c (handle_output_debug_string): Replace call
7903 to string_to_core_addr with call to strtoull.
7904
7905 2013-03-20 Yao Qi <yao@codesourcery.com>
7906
7907 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7908 and write it to CTF metadata.
7909
7910 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
7911
7912 * windows-nat.c (handle_output_debug_string): Change type of n to
7913 SIZE_T to avoid crash on 64 bit systems.
7914
7915 2013-03-17 Eli Zaretskii <eliz@gnu.org>
7916
7917 * python/python-internal.h (HAVE_SNPRINTF)
7918 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7919 about redefinition of snprintf by pyerrors.h.
7920
7921 2013-03-15 Steve Ellcey <sellcey@mips.com>
7922
7923 * remote-sim.c (sim_command_completer): Make char arguments const.
7924
7925 2013-03-15 Tom Tromey <tromey@redhat.com>
7926
7927 PR c++/15116:
7928 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7929
7930 2013-03-14 Tom Tromey <tromey@redhat.com>
7931
7932 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7933 New fields.
7934 (get_file_crc): Move from symfile.c.
7935 (gdb_bfd_crc): New function.
7936 * gdb_bfd.h (gdb_bfd_crc): Declare.
7937 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7938 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7939 (separate_debug_file_exists): Use gdb_bfd_crc.
7940
7941 2013-03-14 Tom Tromey <tromey@redhat.com>
7942
7943 * symfile.c (get_debug_link_info): Remove.
7944 (find_separate_debug_file_by_debuglink): Use
7945 bfd_get_debug_link_info.
7946
7947 2013-03-14 Tom Tromey <tromey@redhat.com>
7948
7949 * symtab.c (error_in_psymtab_expansion): New function.
7950 (lookup_symbol_aux_quick)
7951 (basic_lookup_transparent_type_quick): Remove "last resort"
7952 code. Use error_in_psymtab_expansion.
7953
7954 2013-03-14 Doug Evans <dje@google.com>
7955 Jan Kratochvil <jan.kratochvil@redhat.com>
7956
7957 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7958 any successful compare_filenames_for_search or FILENAME_CMP.
7959 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7960 * symtab.c (iterate_over_some_symtabs): Likewise.
7961
7962 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7963
7964 * source.c (print_source_lines_base): Make a local copy of
7965 symtab_to_fullname.
7966
7967 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
7968 Jan Kratochvil <jan.kratochvil@redhat.com>
7969
7970 * source.c (print_source_lines_base): Suppress "file" for TUI.
7971
7972 2013-03-14 Keith Seitz <keiths@redhat.com>
7973 Alan Matsuoka <alanm@redhat.com>
7974
7975 PR c++/15203
7976 PR c++/15210
7977 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7978 TYPE_CODE_METHOD.
7979 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7980 symbols.
7981
7982 2013-03-14 Yao Qi <yao@codesourcery.com>
7983
7984 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7985 status to tfile if trace is stopped by command 'tstop'.
7986
7987 2013-03-14 Yao Qi <yao@codesourcery.com>
7988
7989 * tracepoint.c (tfile_write_status): Write trace notes and user
7990 name into tfile if they are not NULL.
7991
7992 2013-03-14 Hui Zhu <hui@codesourcery.com>
7993 Yao Qi <yao@codesourcery.com>
7994
7995 * Makefile.in (REMOTE_OBS): Add ctf.o.
7996 (SFILES): Add ctf.c.
7997 (HFILES_NO_SRCDIR): Add ctf.h.
7998 * ctf.c, ctf.h: New files.
7999 * tracepoint.c: Include 'ctf.h'.
8000 (collect_pseudocommand): Remove static.
8001 (trace_save_command): Parse option "-ctf".
8002 Produce different trace file writers per option.
8003 Adjust output message.
8004 (trace_save_tfile, trace_save_ctf): New.
8005 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8006 * mi/mi-main.c: Include 'ctf.h'.
8007 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8008 trace_save_tfile or trace_save_ctf.
8009 * NEWS: Mention these changes.
8010
8011 2013-03-14 Yao Qi <yao@codesourcery.com>
8012
8013 * tracepoint.c (trace_file_writer_xfree): New.
8014 (struct tfile_writer_data): New.
8015 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8016 (tfile_write_header, tfile_write_regblock_type): New.
8017 (tfile_write_status, tfile_write_uploaded_tsv): New.
8018 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8019 (tfile_write_raw_data, (tfile_end): New.
8020 (tfile_write_ops): New global variable.
8021 (TRACE_WRITE_R_BLOCK): New macro.
8022 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8023 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8024 (TRACE_WRITE_V_BLOCK): New macro.
8025 (trace_save): Add extra one parameter WRITER. Make it static.
8026 Use WRITER to writer trace.
8027 (tfile_trace_file_writer_new): New.
8028 (trace_save_command): Caller update.
8029 (trace_save_tfile): Write trace data in TFILE format.
8030 * tracepoint.h (struct trace_frame_write_ops): New.
8031 (struct trace_file_write_ops): New.
8032 (struct trace_file_writer): New.
8033 (trace_save): Remove its declaration.
8034 (trace_save_tfile): Declare it.
8035 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8036 instead of trace_save.
8037
8038 2013-03-13 Pedro Alves <palves@redhat.com>
8039
8040 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8041
8042 2013-03-13 Pedro Alves <palves@redhat.com>
8043
8044 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8045 commented out code.
8046 * demangle.c (current_demangling_style_string): Make it const.
8047 (set_demangling_command): Assert the demangling style is known.
8048 Remove all handling of unknown styles. Set
8049 'current_demangling_style_string' to an element of the
8050 demangling_style_names array.
8051 (set_demangling_style): Delete.
8052 (_initialize_demangler): Set current_demangling_style_string to the
8053 element of the demangling_style_names array that corresponds to
8054 the default demangling style. Remove FIXME note. Don't call
8055 set_demangling_style.
8056 * gdb-demangle.h (set_demangling_style): Remove declaration.
8057
8058 2013-03-13 Pedro Alves <palves@redhat.com>
8059
8060 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8061 fields const.
8062 (ada_make_symbol_completion_list): Make "text0" parameter const.
8063 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8064 * breakpoint.c (condition_completer): Make "text" and "word"
8065 parameters const. Adjust.
8066 (check_tracepoint_command): Adjust to validate_actionline
8067 prototype change.
8068 (catch_syscall_completer): Make "text" and "word" parameters
8069 const.
8070 * cli/cli-cmds.c (show_user): Make "comname" local const.
8071 (valid_command_p): Make "command" parameter const.
8072 (alias_command): Make "alias_prefix" and "command_prefix" locals
8073 const.
8074 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8075 (add_alias_cmd): Make "name" and "oldname" parameters const.
8076 Adjust. No longer make copy of OLDNAME.
8077 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8078 (add_setshow_cmd_full, add_setshow_enum_cmd)
8079 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8080 (add_setshow_filename_cmd, add_setshow_string_cmd)
8081 (add_setshow_string_noescape_cmd)
8082 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8083 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8084 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8085 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8086 Make "name" parameter const.
8087 (help_cmd): Rename "command" parameter to "arg". New const local
8088 "command".
8089 (find_cmd): Make "command" parameter const.
8090 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8091 deprecated_cmd_warning prototype change.
8092 (undef_cmd_error): Make "cmdtype" parameter const.
8093 (lookup_cmd): Make "line" parameter const.
8094 (deprecated_cmd_warning): Change type of "text" parameter to
8095 pointer to const char, from pointer to pointer to char. Adjust.
8096 (lookup_cmd_composition): Make "text" parameter const.
8097 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8098 parameters const.
8099 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8100 const.
8101 * cli/cli-script.c (validate_comname): Make "tem" local const.
8102 (define_command): New const local "tem_c". Use it in calls to
8103 lookup_cmd.
8104 (document_command): Make "tem" and "comfull" locals const.
8105 (show_user_1): Make "prefix" and "name" parameters const.
8106 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8107 const.
8108 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8109 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8110 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8111 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8112 (complete_on_enum, add_setshow_enum_cmd)
8113 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8114 (add_setshow_filename_cmd, add_setshow_string_cmd)
8115 (add_setshow_string_noescape_cmd)
8116 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8117 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8118 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8119 Change prototypes, constifying strings.
8120 * completer.c (noop_completer, filename_completer): Make "text"
8121 and "prefix" parameters const.
8122 (location_completer, expression_completer)
8123 (complete_line_internal): Make "text" and "prefix" parameters
8124 const and adjust.
8125 (command_completer, signal_completer): Make "text" and "prefix"
8126 parameters const.
8127 * completer.h (noop_completer, filename_completer)
8128 (expression_completer, location_completer, command_completer)
8129 (signal_completer): Change prototypes.
8130 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8131 parameters const.
8132 * cp-abi.c (cp_abi_completer): Likewise.
8133 * expression.h (parse_expression_for_completion): Change
8134 prototype.
8135 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8136 parameters const.
8137 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8138 * infrun.c (handle_completer): Make "text" and "word" parameters
8139 const.
8140 * interps.c (interpreter_completer): Make "text" and "word"
8141 parameters const.
8142 * language.h (struct language_defn)
8143 <la_make_symbol_completion_list>: Make "text" and "word"
8144 parameters const.
8145 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8146 (parse_exp_in_context): Rename to ...
8147 (parse_exp_in_context_1): ... this.
8148 (parse_exp_in_context): Reimplement, with const hack from
8149 parse_exp_1.
8150 (parse_expression_for_completion): Make "string" parameter const.
8151 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8152 to pointer to const char. Adjust.
8153 (print_command_1): Make "exp" parameter const.
8154 (output_command): Rename to ...
8155 (output_command_const): ... this. Make "exp" parameter const.
8156 (output_command): Reimplement.
8157 (x_command): Adjust.
8158 (display_command): Rename "exp" parameter to "arg". New "exp"
8159 local, const version of "arg".
8160 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8161 "cmd_name" local const.
8162 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8163 call.
8164 (cmdpy_completer): Make "text" and "word" parameters const.
8165 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8166 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8167 const.
8168 * remote.c (_initialize_remote): Make "cmd_name" local const.
8169 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8170 parameters const. Adjust.
8171 (completion_list_add_fields): Make "sym_text", "text" and "word"
8172 parameters const.
8173 (struct add_name_data) <sym_text, text, word>: Make fields const.
8174 (default_make_symbol_completion_list_break_on): Make "text" and
8175 "word" parameters const. Adjust locals.
8176 (default_make_symbol_completion_list)
8177 (make_symbol_completion_list, make_symbol_completion_type)
8178 (make_symbol_completion_list_fn): Make "text" and "word"
8179 parameters const.
8180 (make_file_symbol_completion_list): Make "text", "word" and
8181 "srcfile" parameters const. Adjust locals.
8182 (add_filename_to_list): Make "text" and "word" parameters const.
8183 (struct add_partial_filename_data) <text, word>: Make fields
8184 const.
8185 (make_source_files_completion_list): Make "text" and "word"
8186 parameters const.
8187 * symtab.h (default_make_symbol_completion_list_break_on)
8188 (default_make_symbol_completion_list, make_symbol_completion_list)
8189 (make_symbol_completion_type enum type_code)
8190 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8191 (make_source_files_completion_list): Change prototype.
8192 * top.c (execute_command): Adjust to pass pointer to pointer to
8193 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8194 change.
8195 (set_verbose): Make "cmdname" local const.
8196 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8197 and adjust.
8198 (validate_actionline): Make "line" parameter a pointer to const
8199 char, and adjust.
8200 (encode_actions_1): Make "action_exp" local const, and adjust.
8201 (encode_actions): Adjust.
8202 (replace_comma): Delete.
8203 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8204 const, and adjust. Don't frob the action string while splitting
8205 it at commas. Instead, make a copy of each split substring in
8206 turn.
8207 (trace_dump_command): Adjust to validate_actionline prototype
8208 change.
8209 * tracepoint.h (decode_agent_options, decode_agent_options)
8210 (encode_actions, validate_actionline): Change prototypes.
8211 * valprint.h (output_command): Delete declaration.
8212 (output_command_const): Declare.
8213 * value.c (function_destroyer): Cast const away in xfree call.
8214
8215 2013-03-13 Pedro Alves <palves@redhat.com>
8216
8217 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8218 rather than casting 'const char * const *' to 'const char **'.
8219 * ada-lex.l (processInt): Make "trailer" local const. Remove
8220 'const char **' cast.
8221 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8222 locals, and use those as strtol output pointer, instead than doing
8223 invalid casts to from 'const char **' to 'char **'.
8224 (_initialize_demangle): Remove cast.
8225 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8226 locals, and use those as strtol output pointer, instead than doing
8227 invalid casts to from 'const char **' to 'char **'.
8228 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8229 casts.
8230 * stap-probe.c (stap_parse_register_operand)
8231 (stap_parse_single_operand): Likewise.
8232
8233 2013-03-13 Yao Qi <yao@codesourcery.com>
8234
8235 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8236 the last matched 'V' blcok in trace frame.
8237
8238 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8239
8240 * NEWS: Create a new section for the next release branch.
8241 Rename the section of the current branch, now that it has
8242 been cut.
8243
8244 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8245
8246 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8247 * version.in: Bump version to 7.6.50.20130312-cvs.
8248
8249 2013-03-12 Keith Seitz <keiths@redhat.com>
8250
8251 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8252 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8253 Remove temporary copy of input string.
8254 (mi_execute_command_wrapper): Make "cmd" const.
8255 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8256 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8257 Use const strings.
8258 (mi_parse): Make "cmd" const.
8259 Use const strings.
8260 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8261
8262 2013-03-12 Keith Seitz <keiths@redhat.com>
8263
8264 * ada-lang.c (ada_read_renaming_var_value): Pass const
8265 pointer to expression string to parse_exp_1.
8266 (create_excep_cond_exprs): Likewise.
8267 * ax-gdb.c (agent_eval_command_one): Likewise.
8268 (maint_agent_printf_command): Likewise.
8269 Constify much of the string handling/parsing.
8270 * breakpoint.c (set_breakpoint_condition): Pass const
8271 pointer to expression string to parse_exp_1.
8272 (update_watchpoint): Likewise.
8273 (parse_cmd_to_aexpr): Constify string handling.
8274 Pass const pointer to parse_exp_1.
8275 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8276 (find_condition_and_thread): Likewise.
8277 Make TOK const.
8278 (watch_command_1): Make "arg" const.
8279 Constify string handling.
8280 Copy the expression string instead of changing the input
8281 string.
8282 (update_breakpoint_location): Pass const pointer to
8283 parse_exp_1.
8284 * eval.c (parse_and_eval_address): Make "exp" const.
8285 (parse_to_comma_and_eval): Make "expp" const.
8286 (parse_and_eval): Make "exp" const.
8287 * expression.h (parse_expression): Make argument const.
8288 (parse_exp_1): Make first argument const.
8289 * findcmd.c (parse_find_args): Treat "args" as const.
8290 * linespec.c (parse_linespec): Pass const pointer to
8291 linespec_expression_to_pc.
8292 (linespec_expression_to_pc): Make "exp_ptr" const.
8293 * parse.c (parse_exp_1): Make "stringptr" const.
8294 Make a copy of the expression to pass to parse_exp_in_context until
8295 this whole interface can be constified.
8296 (parse_expression): Make "string" const.
8297 * printcmd.c (ui_printf): Treat "arg" as const.
8298 Handle const strings.
8299 * tracepoint.c (validate_actionline): Pass const pointer to
8300 all calls to parse_exp_1.
8301 (encode_actions_1): Likewise.
8302 * value.h (parse_to_comma_and_eval): Make argument const.
8303 (parse_and_eval_address): Likewise.
8304 (parse_and_eval): Likewise.
8305 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8306 (varobj_set_value): Likewise.
8307 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8308 constify string handling.
8309 Pass const pointers to parse_and_eval_address and
8310 parse_to_comman_and_eval.
8311 * cli/cli-utils.c (skip_to_space): Rename to ...
8312 (skip_to_space_const): ... this. Handle const strings.
8313 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8314 skip_to_space_const.
8315 (skip_to_space_const): Declare.
8316 * common/format.c (parse_format_string): Make "arg" const.
8317 Handle const strings.
8318 * common/format.h (parse_format_string): Make "arg" const.
8319 * gdbserver/ax.c (ax_printf): Make "format" const.
8320 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8321 of the expression string.
8322
8323 2013-03-12 Hui Zhu <hui@codesourcery.com>
8324
8325 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8326
8327 2013-03-12 Yao Qi <yao@codesourcery.com>
8328 Hui Zhu <hui@codesourcery.com>
8329
8330 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8331 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8332 DW_OP_deref_size.
8333
8334 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8335
8336 * ada-lex.l (rules): Only recognize 'thread' as a
8337 delimiter when followed by numerals, as for c-exp.y.
8338 Use new rewind_to_char function to rewind the input for
8339 expression-delimiting tokens.
8340 (rewind_to_char): New function.
8341
8342 2013-03-11 Pedro Alves <palves@redhat.com>
8343 Jan Kratochvil <jan.kratochvil@redhat.com>
8344
8345 * configure: Regenerate.
8346 * configure.ac (check dynamic export flag): Link python test with
8347 $PYTHON_LIBS.
8348
8349 2013-03-11 Doug Evans <dje@google.com>
8350 Keith Seitz <keiths@redhat.com>
8351
8352 * linespec.c (find_linespec_symbols): Call find_function_symbols
8353 first, and then call lookup_prefix_sym/find_method.
8354
8355 2013-03-11 Pedro Alves <palves@redhat.com>
8356
8357 * charset.c (convert_between_encodings): Don't cast between
8358 different pointer to pointer types. Instead, make the 'inp' local
8359 be of the type iconv expects.
8360 (wchar_iterate): Don't cast between different pointer to pointer
8361 types. Instead, use new pointer local of the type iconv expects.
8362 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8363 Add new local of type char pointer, and use it to get a
8364 char/string view of the byte buffer, instead of casting between
8365 pointer to pointer types.
8366
8367 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8368
8369 * remote.c (remote_set_trace_buffer_size): Move != operator
8370 to the start of next line to fix an ARI warning.
8371
8372 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8373
8374 * NEWS: Add record changes.
8375
8376 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8377
8378 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8379 the instruction history disassembly.
8380 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8381 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8382
8383 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8384
8385 * Makefile.in (SFILES): Add record-btrace.c
8386 (COMMON_OBS): Add record-btrace.o
8387 * record-btrace.c: New.
8388 * objfiles.c: Include btrace.h.
8389 (free_objfile): call btrace_free_objfile.
8390
8391 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8392
8393 * target.c (target_call_history, target_call_history_from,
8394 target_call_history_range): New.
8395 * target.h (target_ops) <to_call_history, to_call_history_from,
8396 to_call_history_range>: New fields.
8397 (target_call_history, target_call_history_from,
8398 target_call_history_range): New declaration.
8399 * record.c (get_call_history_modifiers, cmd_record_call_history,
8400 record_call_history_size): New.
8401 (_initialize_record): Add the "record function-call-history" command.
8402 Add "set/show record function-call-history-size" commands.
8403 * record.h (record_print_flag): New.
8404
8405 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8406
8407 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8408 to_insn_history_range>: New fields.
8409 (target_insn_history): New.
8410 (target_insn_history_from): New.
8411 (target_insn_history_range): New.
8412 * target.c (target_insn_history): New.
8413 (target_insn_history_from): New.
8414 (target_insn_history_range): New.
8415 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8416 (record_insn_history_size): New.
8417 (get_insn_number): New.
8418 (get_context_size): New.
8419 (no_chunk): New.
8420 (get_insn_history_modifiers): New.
8421 (cmd_record_insn_history): New.
8422 (_initialize_record): Add "set/show record instruction-history-size"
8423 command. Add "record instruction-history" command.
8424
8425 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8426
8427 * record.h (record_disconnect): New.
8428 (record_detach): New.
8429 (record_mourn_inferior): New.
8430 (record_kill): New.
8431 * record-full.c (record_disconnect, record_detach,
8432 record_mourn_inferior, record_kill): Move to...
8433 * record.c: ...here.
8434 (DEBUG): New.
8435 (record_stop): New.
8436 (record_unpush): New.
8437 (cmd_record_stop): Call record_stop. Replace unpush_target
8438 call with record_unpush call.
8439 (record_disconnect, record_detach): Assert that the target
8440 is of record stratum. Call record_unpush, record_stop, and
8441 DEBUG.
8442 (record_mourn_inferior, record_kill): Assert that the target
8443 is of record stratum. Call record_unpush and DEBUG.
8444
8445 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8446
8447 * record-full.h, record-full.c (record_memory_query): Rename
8448 to ...
8449 (record_full_memory_query): ...this. Update all users.
8450 (record_arch_list_add_reg): Rename to ...
8451 (record_full_arch_list_add_reg): ...this. Update all users.
8452 (record_arch_list_add_mem): Rename to ...
8453 (record_full_arch_list_add_mem): ...this. Update all users.
8454 (record_arch_list_add_end): Rename to ...
8455 (record_full_arch_list_add_end): ...this. Update all users.
8456 (record_gdb_operation_disable_set): Rename to ...
8457 (record_full_gdb_operation_disable_set): ...this.
8458 Update all users.
8459
8460 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8461
8462 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8463 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8464 (RECORD_IS_REPLAY): Renamed to ...
8465 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8466 (RECORD_FILE_MAGIC): Renamed to ...
8467 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8468 (record_mem_entry): Renamed to ...
8469 (record_full_mem_entry): ... this. Updated all users.
8470 (record_reg_entry): Renamed to ...
8471 (record_full_reg_entry): ... this. Updated all users.
8472 (record_end_entry): Renamed to ...
8473 (record_full_end_entry): ... this. Updated all users.
8474 (record_type) <record_end, record_reg, record_mem>: Renamed
8475 to ...
8476 (record_full_type) <record_full_end, record_full_reg,
8477 record_full_mem>: ... this. Updated all users.
8478 (record_entry): Renamed to ...
8479 (record_full_entry): ... this. Updated all users.
8480 (record_core_buf_entry): Renamed to ...
8481 (record_full_core_buf_entry): ... this. Updated all users.
8482 (record_core_regbuf): Renamed to ...
8483 (record_full_core_regbuf): ... this. Updated all users.
8484 (record_core_start): Renamed to ...
8485 (record_full_core_start): ... this. Updated all users.
8486 (record_core_end): Renamed to ...
8487 (record_full_core_end): ... this. Updated all users.
8488 (record_core_buf_list): Renamed to ...
8489 (record_full_core_buf_list): ... this. Updated all users.
8490 (record_first): Renamed to ...
8491 (record_full_first): ... this. Updated all users.
8492 (record_list): Renamed to ...
8493 (record_full_list): ... this. Updated all users.
8494 (record_arch_list_head): Renamed to ...
8495 (record_full_arch_list_head): ... this. Updated all users.
8496 (record_arch_list_tail): Renamed to ...
8497 (record_full_arch_list_tail): ... this. Updated all users.
8498 (record_stop_at_limit): Renamed to ...
8499 (record_full_stop_at_limit): ... this. Updated all users.
8500 (record_insn_max_num): Renamed to ...
8501 (record_full_insn_max_num): ... this. Updated all users.
8502 (record_insn_num): Renamed to ...
8503 (record_full_insn_num): ... this. Updated all users.
8504 (record_insn_count): Renamed to ...
8505 (record_full_insn_count): ... this. Updated all users.
8506 (record_ops): Renamed to ...
8507 (record_full_ops): ... this. Updated all users.
8508 (record_core_ops): Renamed to ...
8509 (record_full_core_ops): ... this. Updated all users.
8510 (set_record_cmdlist): Renamed to ...
8511 (set_record_full_cmdlist): ... this. Updated all users.
8512 (show_record_cmdlist): Renamed to ...
8513 (show_record_full_cmdlist): ... this. Updated all users.
8514 (record_cmdlist): Renamed to ...
8515 (record_full_cmdlist): ... this. Updated all users.
8516 (record_beneath_to_resume_ops): Renamed to ...
8517 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8518 (record_beneath_to_resume): Renamed to ...
8519 (record_full_beneath_to_resume): ... this. Updated all users.
8520 (record_beneath_to_wait_ops): Renamed to ...
8521 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8522 (record_beneath_to_wait): Renamed to ...
8523 (record_full_beneath_to_wait): ... this. Updated all users.
8524 (record_beneath_to_store_registers_ops): Renamed to ...
8525 (record_full_beneath_to_store_registers_ops): ... this.
8526 Updated all users.
8527 (record_beneath_to_store_registers): Renamed to ...
8528 (record_full_beneath_to_store_registers): ... this.
8529 Updated all users.
8530 (record_beneath_to_xfer_partial_ops): Renamed to ...
8531 (record_full_beneath_to_xfer_partial_ops): ... this.
8532 Updated all users.
8533 (record_beneath_to_xfer_partial): Renamed to ...
8534 (record_full_beneath_to_xfer_partial): ... this.
8535 Updated all users.
8536 (record_beneath_to_insert_breakpoint): Renamed to ...
8537 (record_full_beneath_to_insert_breakpoint): ... this.
8538 Updated all users.
8539 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8540 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8541 Updated all users.
8542 (record_beneath_to_stopped_data_address): Renamed to ...
8543 (record_full_beneath_to_stopped_data_address): ... this.
8544 Updated all users.
8545 (record_beneath_to_async): Renamed to ...
8546 (record_full_beneath_to_async): ... this. Updated all users.
8547 (record_goto_insn): Renamed to ...
8548 (record_full_goto_insn): ... this. Updated all users.
8549 (record_save): Renamed to ...
8550 (record_full_save): ... this. Updated all users.
8551 (record_reg_alloc): Renamed to ...
8552 (record_full_reg_alloc): ... this. Updated all users.
8553 (record_reg_release): Renamed to ...
8554 (record_full_reg_release): ... this. Updated all users.
8555 (record_mem_alloc): Renamed to ...
8556 (record_full_mem_alloc): ... this. Updated all users.
8557 (record_mem_release): Renamed to ...
8558 (record_full_mem_release): ... this. Updated all users.
8559 (record_end_alloc): Renamed to ...
8560 (record_full_end_alloc): ... this. Updated all users.
8561 (record_end_release): Renamed to ...
8562 (record_full_end_release): ... this. Updated all users.
8563 (record_entry_release): Renamed to ...
8564 (record_full_entry_release): ... this. Updated all users.
8565 (record_list_release): Renamed to ...
8566 (record_full_list_release): ... this. Updated all users.
8567 (record_list_release_following): Renamed to ...
8568 (record_full_list_release_following): ... this.
8569 Updated all users.
8570 (record_list_release_first): Renamed to ...
8571 (record_full_list_release_first): ... this. Updated all users.
8572 (record_arch_list_add): Renamed to ...
8573 (record_full_arch_list_add): ... this. Updated all users.
8574 (record_get_loc): Renamed to ...
8575 (record_full_get_loc): ... this. Updated all users.
8576 (record_check_insn_num): Renamed to ...
8577 (record_full_check_insn_num): ... this. Updated all users.
8578 (record_arch_list_cleanups): Renamed to ...
8579 (record_full_arch_list_cleanups): ... this. Updated all users.
8580 (record_message): Renamed to ...
8581 (record_full_message): ... this. Updated all users.
8582 (record_message_wrapper): Renamed to ...
8583 (record_full_message_wrapper): ... this. Updated all users.
8584 (record_message_wrapper_safe): Renamed to ...
8585 (record_full_message_wrapper_safe): ... this. Updated all users.
8586 (record_gdb_operation_disable): Renamed to ...
8587 (record_full_gdb_operation_disable): ... this. Updated all users.
8588 (record_hw_watchpoint): Renamed to ...
8589 (record_full_hw_watchpoint): ... this. Updated all users.
8590 (record_exec_insn): Renamed to ...
8591 (record_full_exec_insn): ... this. Updated all users.
8592 (record_restore): Renamed to ...
8593 (record_full_restore): ... this. Updated all users.
8594 (record_async_inferior_event_token): Renamed to ...
8595 (record_full_async_inferior_event_token): ... this.
8596 Updated all users.
8597 (record_async_inferior_event_handler): Renamed to ...
8598 (record_full_async_inferior_event_handler): ... this.
8599 Updated all users.
8600 (record_core_open_1): Renamed to ...
8601 (record_full_core_open_1): ... this. Updated all users.
8602 (record_open_1): Renamed to ...
8603 (record_full_open_1): ... this. Updated all users.
8604 (record_open): Renamed to ...
8605 (record_full_open): ... this. Updated all users.
8606 (record_close): Renamed to ...
8607 (record_full_close): ... this. Updated all users.
8608 (record_resume_step): Renamed to ...
8609 (record_full_resume_step): ... this. Updated all users.
8610 (record_resumed): Renamed to ...
8611 (record_full_resumed): ... this. Updated all users.
8612 (record_execution_dir): Renamed to ...
8613 (record_full_execution_dir): ... this. Updated all users.
8614 (record_resume): Renamed to ...
8615 (record_full_resume): ... this. Updated all users.
8616 (record_get_sig): Renamed to ...
8617 (record_full_get_sig): ... this. Updated all users.
8618 (record_sig_handler): Renamed to ...
8619 (record_full_sig_handler): ... this. Updated all users.
8620 (record_wait_cleanups): Renamed to ...
8621 (record_full_wait_cleanups): ... this. Updated all users.
8622 (record_wait_1): Renamed to ...
8623 (record_full_wait_1): ... this. Updated all users.
8624 (record_wait): Renamed to ...
8625 (record_full_wait): ... this. Updated all users.
8626 (record_stopped_by_watchpoint): Renamed to ...
8627 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8628 (record_disconnect): Renamed to ...
8629 (record_full_disconnect): ... this. Updated all users.
8630 (record_detach): Renamed to ...
8631 (record_full_detach): ... this. Updated all users.
8632 (record_mourn_inferior): Renamed to ...
8633 (record_full_mourn_inferior): ... this. Updated all users.
8634 (record_kill): Renamed to ...
8635 (record_full_kill): ... this. Updated all users.
8636 (record_stopped_data_address): Renamed to ...
8637 (record_full_stopped_data_address): ... this. Updated all users.
8638 (record_registers_change): Renamed to ...
8639 (record_full_registers_change): ... this. Updated all users.
8640 (record_store_registers): Renamed to ...
8641 (record_full_store_registers): ... this. Updated all users.
8642 (record_xfer_partial): Renamed to ...
8643 (record_full_xfer_partial): ... this. Updated all users.
8644 (record_breakpoint): Renamed to ...
8645 (record_full_breakpoint): ... this. Updated all users.
8646 (record_breakpoint_p): Renamed to ...
8647 (record_full_breakpoint_p): ... this. Updated all users.
8648 (record_breakpoints): Renamed to ...
8649 (record_full_breakpoints): ... this. Updated all users.
8650 (record_sync_record_breakpoints): Renamed to ...
8651 (record_full_sync_record_breakpoints): ... this.
8652 Updated all users.
8653 (record_init_record_breakpoints): Renamed to ...
8654 (record_full_init_record_breakpoints): ... this.
8655 Updated all users.
8656 (record_insert_breakpoint): Renamed to ...
8657 (record_full_insert_breakpoint): ... this. Updated all users.
8658 (record_remove_breakpoint): Renamed to ...
8659 (record_full_remove_breakpoint): ... this. Updated all users.
8660 (record_can_execute_reverse): Renamed to ...
8661 (record_full_can_execute_reverse): ... this. Updated all users.
8662 (record_get_bookmark): Renamed to ...
8663 (record_full_get_bookmark): ... this. Updated all users.
8664 (record_goto_bookmark): Renamed to ...
8665 (record_full_goto_bookmark): ... this. Updated all users.
8666 (record_async): Renamed to ...
8667 (record_full_async): ... this. Updated all users.
8668 (record_can_async_p): Renamed to ...
8669 (record_full_can_async_p): ... this. Updated all users.
8670 (record_is_async_p): Renamed to ...
8671 (record_full_is_async_p): ... this. Updated all users.
8672 (record_execution_direction): Renamed to ...
8673 (record_full_execution_direction): ... this. Updated all users.
8674 (record_info): Renamed to ...
8675 (record_full_info): ... this. Updated all users.
8676 (record_delete): Renamed to ...
8677 (record_full_delete): ... this. Updated all users.
8678 (record_is_replaying): Renamed to ...
8679 (record_full_is_replaying): ... this. Updated all users.
8680 (record_goto_entry): Renamed to ...
8681 (record_full_goto_entry): ... this. Updated all users.
8682 (record_goto_begin): Renamed to ...
8683 (record_full_goto_begin): ... this. Updated all users.
8684 (record_goto_end): Renamed to ...
8685 (record_full_goto_end): ... this. Updated all users.
8686 (record_goto): Renamed to ...
8687 (record_full_goto): ... this. Updated all users.
8688 (init_record_ops): Renamed to ...
8689 (init_record_full_ops): ... this. Updated all users.
8690 (record_core_resume): Renamed to ...
8691 (record_full_core_resume): ... this. Updated all users.
8692 (record_core_kill): Renamed to ...
8693 (record_full_core_kill): ... this. Updated all users.
8694 (record_core_fetch_registers): Renamed to ...
8695 (record_full_core_fetch_registers): ... this. Updated all users.
8696 (record_core_prepare_to_store): Renamed to ...
8697 (record_full_core_prepare_to_store): ... this. Updated all users.
8698 (record_core_store_registers): Renamed to ...
8699 (record_full_core_store_registers): ... this. Updated all users.
8700 (record_core_xfer_partial): Renamed to ...
8701 (record_full_core_xfer_partial): ... this. Updated all users.
8702 (record_core_insert_breakpoint): Renamed to ...
8703 (record_full_core_insert_breakpoint): ... this. Updated all users.
8704 (record_core_remove_breakpoint): Renamed to ...
8705 (record_full_core_remove_breakpoint): ... this. Updated all users.
8706 (record_core_has_execution): Renamed to ...
8707 (record_full_core_has_execution): ... this. Updated all users.
8708 (init_record_core_ops): Renamed to ...
8709 (init_record_full_core_ops): ... this. Updated all users.
8710 (cmd_record_restore): Renamed to ...
8711 (cmd_record_full_restore): ... this. Updated all users.
8712 (record_save_cleanups): Renamed to ...
8713 (record_full_save_cleanups): ... this. Updated all users.
8714 (cmd_record_start): Renamed to ...
8715 (cmd_record_full_start): ... this. Updated all users.
8716 (set_record_insn_max_num): Renamed to ...
8717 (set_record_full_insn_max_num): ... this. Updated all users.
8718 (set_record_command): Renamed to ...
8719 (set_record_full_command): ... this. Updated all users.
8720 (show_record_command): Renamed to ...
8721 (show_record_full_command): ... this. Updated all users.
8722 (_initialize_record): Renamed to ...
8723 (_initialize_record_full): ... this. Updated all users.
8724
8725 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8726
8727 * record.h: Split into this and ...
8728 * record-full.h: ... this.
8729 * record.c: Split into this and ...
8730 * record-full.c: ... this.
8731 * target.h (target_ops): Add new fields to_info_record,
8732 to_save_record, to_delete_record, to_record_is_replaying,
8733 to_goto_record_begin, to_goto_record_end, to_goto_record.
8734 (target_info_record): New.
8735 (target_save_record): New.
8736 (target_supports_delete_record): New.
8737 (target_delete_record): New.
8738 (target_record_is_replaying): New.
8739 (target_goto_record_begin): New.
8740 (target_goto_record_end): New.
8741 (target_goto_record): New.
8742 * target.c (target_info_record): New.
8743 (target_save_record): New.
8744 (target_supports_delete_record): New.
8745 (target_delete_record): New.
8746 (target_record_is_replaying): New.
8747 (target_goto_record_begin): New.
8748 (target_goto_record_end): New.
8749 (target_goto_record): New.
8750 * record.h: Declare struct cmd_list_element.
8751 (record_cmdlist): New declaration.
8752 (set_record_cmdlist): New declaration.
8753 (show_record_cmdlist): New declaration.
8754 (info_record_cmdlist): New declaration.
8755 (cmd_record_goto): New declaration.
8756 * record.c: Remove unnecessary includes.
8757 Include inferior.h.
8758 (cmd_record_goto): Remove declaration.
8759 (record_cmdlist): Now extern. Initialize.
8760 (set_record_cmdlist): Now extern. Initialize.
8761 (show_record_cmdlist): Now extern. Initialize.
8762 (info_record_cmdlist): Now extern. Initialize.
8763 (find_record_target): New.
8764 (require_record_target): New.
8765 (cmd_record_start): Update.
8766 (cmd_record_delete): Remove target-specific code.
8767 Call target_delete_record.
8768 (cmd_record_stop): Unpush any record target.
8769 (set_record_insn_max_num): Move to record-full.c
8770 (set_record_command): Add comment.
8771 (show_record_command): Add comment.
8772 (info_record_command): Update comment.
8773 Remove target-specific code.
8774 Call the record target's to_info_record.
8775 (cmd_record_start): New.
8776 (cmd_record_goto): Now extern.
8777 Remove target-specific code.
8778 Call target_goto_begin, target_goto_end, or target_goto.
8779 (_initialize_record): Move record target ops initialization to
8780 record-full.c.
8781 Change "record" command help text.
8782 Move "record restore", "record set", and "record show" commands to
8783 record-full.c.
8784 * Makefile.in (SFILES): Add record-full.c.
8785 (HFILES_NO_SRCDIR): Add record-full.h.
8786 (COMMON_OBS): Add record-full.o.
8787 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8788 * arm-tdep.c: Include record-full.h.
8789 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8790 * i386-tdep.c: Include record-full.h.
8791 * infrun.c: Include record-full.h.
8792 * linux-record.c: Include record-full.h.
8793 * moxie-tdep.c: Include record-full.h.
8794 * record-full.c: Include record-full.h.
8795 Change module comment.
8796 (set_record_full_cmdlist): New.
8797 (show_record_full_cmdlist): New.
8798 (record_full_cmdlist): New.
8799 (record_goto_insn): New declaration.
8800 (record_save): New declaration.
8801 (record_check_insn_num): Change query string.
8802 (record_info): New.
8803 (record_delete): New.
8804 (record_is_replaying): New.
8805 (record_goto_entry): New.
8806 (record_goto_begin): New.
8807 (record_goto_end): New.
8808 (record_goto): New.
8809 (init_record_ops): Update.
8810 (init_record_core_ops): Update.
8811 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8812 (cmd_record_start): New.
8813 (set_record_insn_max_num): Moved from record.c
8814 (set_record_full_command): New.
8815 (show_record_full_command): New.
8816 (_initialize_record_full): New.
8817
8818 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8819
8820 * target.h (add_deprecated_target_alias): New.
8821 * target.c (add_deprecated_target_alias): New.
8822
8823 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8824
8825 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8826 and signal.h.
8827 (linux_supports_btrace): Add kernel and
8828 cpuid check.
8829 (kernel_supports_btrace): New function.
8830 (cpu_supports_btrace): New function.
8831 (intel_supports_btrace): New function.
8832
8833 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8834
8835 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8836 * remote.c: Include btrace.h.
8837 (struct btrace_target_info): New struct.
8838 (remote_supports_btrace): New function.
8839 (send_Qbtrace): New function.
8840 (remote_enable_btrace): New function.
8841 (remote_disable_btrace): New function.
8842 (remote_teardown_btrace): New function.
8843 (remote_read_btrace): New function.
8844 (init_remote_ops): Add btrace ops.
8845 (enum <unnamed>): Add btrace packets.
8846 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8847 (_initialize_remote): Add packet configuration for branch tracing.
8848
8849 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8850
8851 * features/btrace.dtd: New file.
8852 * Makefile.in (XMLFILES): Add btrace.dtd.
8853 * btrace.h (parse_xml_btrace): New declaration.
8854 * btrace.c: Include xml-support.h.
8855 (parse_xml_btrace): New function.
8856 (parse_xml_btrace_block): New function.
8857 (block_attributes): New struct.
8858 (btrace_attributes): New struct.
8859 (btrace_children): New struct.
8860 (btrace_elements): New struct.
8861
8862 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8863
8864 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8865 (amd64_linux_enable_btrace): New.
8866 (amd64_linux_disable_btrace): New.
8867 (amd64_linux_teardown_btrace): New.
8868 (_initialize_amd64_linux_nat): Initialize btrace ops.
8869 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8870 (i386_linux_enable_btrace): New.
8871 (i386_linux_disable_btrace): New.
8872 (i386_linux_teardown_btrace): New.
8873 (_initialize_i386_linux_nat): Initialize btrace ops.
8874 * config/i386/linux.mh: Add linux-btrace.o.
8875 * config/i386/linux64.mh: Add linux-btrace.o.
8876
8877 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8878
8879 * common/linux_btrace.h: New file.
8880 * common/linux_btrace.c: New file.
8881 * Makefile.in (SFILES): Add btrace.c.
8882 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8883 (COMMON_OBS): Add btrace.o.
8884 (linux-btrace.o): New rule.
8885
8886 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8887
8888 * target.h: Include btrace.h.
8889 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8890 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8891 * target.c (target_supports_btrace): New function.
8892 (target_enable_btrace): New function.
8893 (target_disable_btrace): New function.
8894 (target_teardown_btrace): New function.
8895 (target_read_btrace): New function.
8896 * btrace.h: New file.
8897 * btrace.c: New file.
8898 * Makefile.in: Add btrace.c.
8899 * gdbthread.h: Include btrace.h.
8900 (struct thread_info): Add btrace field.
8901 * thread.c: Include btrace.h.
8902 (clear_thread_inferior_resources): Call target_teardown_btrace.
8903 * common/btrace-common.h: New file.
8904
8905 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8906
8907 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8908 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8909 kill_status to outer block.
8910
8911 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8912
8913 Fix entry-values if the callee called a noreturn function.
8914 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8915 get_frame_address_in_block. Add new comment.
8916
8917 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8918
8919 Fix entry-values in C++ across CUs.
8920 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8921 lookup_minimal_symbol. Add a comment.
8922 * dwarf2read.c
8923 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8924 DW_AT_linkage_name.
8925
8926 2013-03-08 Yao Qi <yao@codesourcery.com>
8927
8928 * tracepoint.c (_initialize_tracepoint): Indent the code.
8929
8930 2013-03-08 Pedro Alves <palves@redhat.com>
8931
8932 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8933 (parse_find_args, find_command): Change type of pattern buffer
8934 locals to 'gdb_byte *'.
8935
8936 2013-03-08 Stan Shebs <stan@codesourcery.com>
8937 Hafiz Abid Qadeer <abidh@codesourcery.com>
8938
8939 * NEWS: Mention set and show trace-buffer-size commands.
8940 Mention new packet.
8941 * target.h (struct target_ops): New method
8942 to_set_trace_buffer_size.
8943 (target_set_trace_buffer_size): New macro.
8944 * target.c (update_current_target): Set up new method.
8945 * tracepoint.c (trace_buffer_size): New global.
8946 (start_tracing): Send it to the target.
8947 (set_trace_buffer_size): New function.
8948 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8949 * remote.c (remote_set_trace_buffer_size): New function.
8950 (_initialize_remote): Use it.
8951 (QTBuffer:size) New remote command.
8952 (PACKET_QTBuffer_size): New enum.
8953 (remote_protocol_features): Add an entry for
8954 PACKET_QTBuffer_size.
8955
8956 2013-03-08 Tom Tromey <tromey@redhat.com>
8957
8958 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8959 variable.
8960
8961 2013-03-07 Pedro Alves <palves@redhat.com>
8962
8963 * target.c (target_read_stralloc, target_fileio_read_alloc):
8964 *Cast pointer to 'gdb_byte *' in target call.
8965
8966 2013-03-07 Pedro Alves <palves@redhat.com>
8967
8968 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8969 call.
8970
8971 2013-03-07 Keith Seitz <keiths@redhat.com>
8972
8973 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8974 (trace_pass_command): Likewise.
8975 * cli/cli-cmds.c: Include cli/cli-utils.h.
8976 (source_command): Use skip-spaces.
8977 (disassemble_command): Likewise.
8978 * findcmd.c: Include cli/cli-utils.h.
8979 (parse_find_args): Use skip_spaces.
8980 * go32-nat.c: Include cli/cli-utils.h.
8981 (go32_sldt): Use skip_spaces.
8982 (go32_sgdt): Likewise.
8983 (go32_sidt): Likewise.
8984 (go32_pde): Likewise.
8985 (go32_pte): Likewise.
8986 (go32_pte_for_address): Likewise.
8987 * infcmd.c: Include cli/cli-utils.h.
8988 (registers_info): Use skip_spaces.
8989 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8990 (linux_info_proc): Likewise.
8991 * linux-thread-db.c: Include cli/cli-utils.h.
8992 (info_auto_load_libthread_db): Use skip_spaces_const.
8993 * m32r-rom.c: Include cli/cli-utils.h.
8994 (m32r_upload_command): Use skip_spaces.
8995 * maint.c: Include cli/cli-utils.h.
8996 (maintenance_translate_address): Use skip_spaces.
8997 * mi/mi-parse.c: Include cli/cli-utils.h.
8998 (mi_parse_argv): Use skip_spaces.
8999 (mi_parse): Likewise.
9000 * minsyms.c: Include cli/cli-utils.h.
9001 (msymbol_hash_iw): Use skip_spaces_const.
9002 * objc-lang.c: Include cli/cli-utils.h.
9003 (parse_selector): Use skip_spaces.
9004 (parse_method): Likewise.
9005 * python/python.c: Include cli/cli-utils.h.
9006 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9007 (python_command)[HAVE_PYTHON]: Likewise.
9008 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9009 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9010 (m32r_load): Use skip_spaces.
9011 * serial.c: Include cli/cli-utils.h.
9012 (serial_open): Use skip_spaces_const.
9013 * stack.c: Include cli/cli-utils.h.
9014 (parse_frame_specification_1): Use skip_spaces_const.
9015 * symfile.c: Include cli/cli-utils.h.
9016 (set_ext_lang_command): Use skip_spaces.
9017 * symtab.c: Include cli/cli-utils.h.
9018 (rbreak_command): Use skip_spaces.
9019 * thread.c (thread_name_command): Use skip_spaces.
9020 * tracepoint.c (validate_actionline): Use skip_spaces.
9021 (encode_actions_1): Likewise.
9022 (trace_find_range_command): Likewise.
9023 (trace_find_outside_command): Likewise.
9024 (trace_dump_actions): Likewise.
9025
9026 2013-03-07 Pedro Alves <palves@redhat.com>
9027
9028 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9029 * expprint.c (print_subexp_standard): Likewise.
9030 * utils.c (host_char_to_target): Likewise.
9031 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9032 * varobj.c (value_get_print_value): Change type of local to char*.
9033 Cast it gdb_byte * in call to language printer.
9034
9035 2013-03-07 Pedro Alves <palves@redhat.com>
9036
9037 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9038 gdb_byte *'.
9039 (make_wchar_iterator): Remove cast to char*.
9040 (wchar_iterate): Change type of local.
9041
9042 2013-03-07 Pedro Alves <palves@redhat.com>
9043
9044 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9045 for 'regcache->register_status'.
9046
9047 2013-03-07 Pedro Alves <palves@redhat.com>
9048
9049 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9050 int.
9051
9052 2013-03-07 Pedro Alves <palves@redhat.com>
9053
9054 * stap-probe.c (handle_stap_probe): Add cast to char*.
9055
9056 2013-03-07 Pedro Alves <palves@redhat.com>
9057
9058 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9059 RECORD_MSGRCV>: Pass a signed variable to
9060 regcache_raw_read_signed, instead of an unsigned one.
9061
9062 2013-03-07 Pedro Alves <palves@redhat.com>
9063
9064 * remote-notif.c (notif_debug): Change type to int.
9065 * remote-notif.h (notif_debug): Likewise.
9066
9067 2013-03-07 Pedro Alves <palves@redhat.com>
9068
9069 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9070
9071 2013-03-07 Pedro Alves <palves@redhat.com>
9072
9073 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9074 * remote.h (hex2bin, bin2hex): ... here.
9075 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9076
9077 2013-03-07 Eli Zaretskii <eliz@gnu.org>
9078
9079 * utils.c (initialize_utils): Improve doc strings of "set/show
9080 width", "set/show height", and "set/show pagination".
9081
9082 2013-03-06 Keith Seitz <keiths@redhat.com>
9083
9084 * ax-gdb.c (gen_printf): Make FORMAT const.
9085 * ax-gdb.h (gen_printf): Likewise.
9086 * ax-general.c (ax_string): Make STR const.
9087 * ax.h (ax_string): Likewise.
9088
9089 2013-03-06 Doug Evans <dje@google.com>
9090
9091 * elfread.c (elf_symfile_read): Move debugging printf to more
9092 logical location.
9093
9094 2013-03-06 Pedro Alves <palves@redhat.com>
9095
9096 * python/py-utils.c (target_string_to_unicode): Delete function.
9097 * python/python-internal.h (target_string_to_unicode): Delete
9098 declaration.
9099
9100 2013-03-06 Pierre Muller <muller@sourceware.org>
9101
9102 * linespec.c (get_current_search_block): ARI fix, use (void)
9103 for empty parameter list.
9104
9105 2013-03-05 Doug Evans <dje@google.com>
9106
9107 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9108 of old ada_lookup_symbol_list. In !full_search case, don't
9109 search superblocks.
9110 (ada_lookup_symbol_list): Delete arg full_search, all callers
9111 updated. Call ada_lookup_symbol_list_worker.
9112 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9113 * ada-lang.h (ada_lookup_symbol_list): Update.
9114 * language.h (language_defn): Update comment for
9115 la_iterate_over_symbols.
9116 * linespec.c (iterate_over_file_blocks): New function.
9117 (iterate_over_all_matching_symtabs): Call it.
9118 (lookup_prefix_sym): Ditto.
9119 (get_current_search_block): New function.
9120 (get_search_block): Delete.
9121 (find_label_symbols): Call get_current_search_block.
9122 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9123 * symtab.c (iterate_over_symbols): Don't search superblocks.
9124
9125 2013-03-05 Yao Qi <yao@codesourcery.com>
9126
9127 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9128 parameter VAR's type from "unsigned int" to "int".
9129 * command.h (var_zuinteger_unlimited): Update its comments.
9130 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9131
9132 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9133
9134 * NEWS: Mention new target x86_64-*-cygwin*.
9135
9136 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9137
9138 * configure.host: Add x86_64-*-cygwin* as host.
9139 * configure.tgt: Add x86_64-*-cygwin* as target.
9140 * config/i386/cygwin64.mh: New file.
9141
9142 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9143
9144 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9145
9146 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9147
9148 * linespec.c (struct linespec_canonical_name): New.
9149 (struct linespec_state): Change canonical_names type to it.
9150 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9151 xrealloc element size. Initialize the different CANONICAL fields.
9152 (canonical_to_fullform): New.
9153 (filter_results): Use it. Add variables canonical, fullform and
9154 cleanup.
9155 (struct decode_line_2_item, decode_line_2_compare_items): New.
9156 (decode_line_2): Remove variables iter and item_names, add variables
9157 items and items_count. Modify the code for these new variables.
9158
9159 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9160
9161 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9162 calling do_cleanup.
9163
9164 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9165
9166 * tracepoint.c (build_traceframe_info): Add code for byte order.
9167
9168 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9169
9170 * v850-tdep.c: (v850e2_register_name): Revise system register
9171 names to match current V850E2M architecture specifications.
9172 Update register number enum comments too.
9173
9174 2013-03-01 Jiong Wang <jiwang@tilera.com>
9175 Pedro Alves <palves@redhat.com>
9176
9177 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9178 to END_ADDR.
9179 (tilegx_skip_prologue): Limit prologue analysis to section end.
9180
9181 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9182
9183 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9184 use it.
9185
9186 2013-03-01 Pedro Alves <palves@redhat.com>
9187
9188 Use gdb_byte for bytes from the program being debugged.
9189
9190 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9191 Change type of local 'buf' to gdb_byte.
9192 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9193 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9194 * cris-tdep.c (cris_sigcontext_addr)
9195 (cris_sigtramp_frame_unwind_cache): Likewise.
9196 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9197 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9198 Likewise.
9199 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9200 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9201 (hppa32_hpux_search_dummy_call_sequence)
9202 (hppa_hpux_supply_save_state): Likewise.
9203 * hppa-linux-tdep.c (insns_match_pattern)
9204 (hppa_linux_find_global_pointer): Likewise.
9205 * hppa-tdep.c (hppa_in_function_epilogue_p)
9206 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9207 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9208 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9209 (i386fbsd_collect_uthread): Likewise.
9210 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9211 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9212 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9213 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9214 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9215 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9216 (ia64_libunwind_frame_prev_register)
9217 (ia64_libunwind_sigtramp_frame_this_id)
9218 (ia64_find_global_pointer_from_dynamic_section)
9219 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9220 (ia64_unwind_pc): Likewise.
9221 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9222 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9223 (m68hc11_extract_return_value): Likewise.
9224 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9225 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9226 (mep_get_insn, mep_push_dummy_call): Likewise.
9227 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9228 (mips_linux_in_dynsym_stub): Likewise.
9229 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9230 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9231 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9232 to gdb_byte.
9233 * remote-mips.c (mips_set_register): Likewise.
9234 * remote-sim.c (gdbsim_fetch_register): Likewise.
9235 * score-tdep.c (score7_fetch_inst): Change type of parameter
9236 'memblock' and local 'buf' to gdb_byte.
9237 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9238 Change type of local 'buf' to gdb_byte. Adjust.
9239 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9240 to gdb_byte**.
9241 (score7_analyze_prologue): Change type of 'memblock' and
9242 'memblock_ptr' locals to gdb_byte*.
9243 * sh64-tdep.c (sh64_extract_return_value)
9244 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9245 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9246 * solib-pa64.c (pa64_solib_create_inferior_hook)
9247 (pa64_open_symbol_file_object): Remove local 'buf'.
9248 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9249 (som_open_symbol_file_object): Likewise.
9250 * solib-spu.c (spu_current_sos): Likewise.
9251 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9252 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9253 (spu_store_registers): Likewise.
9254 * target.c (debug_print_register): Likewise.
9255 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9256 * xstormy16-tdep.c (xstormy16_store_return_value)
9257 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9258 (xstormy16_find_jmp_table_entry): Likewise.
9259
9260 2013-03-01 Jiong Wang <jiwang@tilera.com>
9261
9262 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9263 (tilegx_gdbarch_init): Install it.
9264
9265 2013-02-28 Tom Tromey <tromey@redhat.com>
9266
9267 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9268 PyLong_Check.
9269
9270 2013-02-28 Doug Evans <dje@google.com>
9271
9272 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9273 * python/python.c (gdbpy_find_pc_line): Ditto.
9274
9275 2013-02-28 Tom Tromey <tromey@redhat.com>
9276
9277 * contrib/excheck.py: New file.
9278 * contrib/exsummary.py: New file.
9279 * contrib/gcc-with-excheck: New file.
9280
9281 2013-02-28 Tom Tromey <tromey@redhat.com>
9282
9283 * python/python.c (gdbpy_print_stack): Call begin_line and
9284 fprintf_filtered inside TRY_CATCH.
9285
9286 2013-02-28 Tom Tromey <tromey@redhat.com>
9287
9288 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9289 inside TRY_CATCH.
9290
9291 2013-02-28 Tom Tromey <tromey@redhat.com>
9292
9293 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9294 frame_object_to_frame_info inside TRY_CATCH.
9295
9296 2013-02-28 Tom Tromey <tromey@redhat.com>
9297
9298 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9299 TRY_CATCH.
9300
9301 2013-02-28 Tom Tromey <tromey@redhat.com>
9302
9303 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9304
9305 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9306
9307 * windows-nat.c: Throughout, fix format strings and casts of
9308 printf-like functions to avoid type related warnings on all
9309 platforms.
9310 (handle_output_debug_string): Fetch context information address
9311 from debug string using string_to_core_addr.
9312
9313 2013-02-27 Jiong Wang <jiwang@tilera.com>
9314
9315 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9316 * regformats/reg-tilegx32.dat: New.
9317
9318 2013-02-27 Jiong Wang <jiwang@tilera.com>
9319
9320 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9321
9322 2013-02-27 Jiong Wang <jiwang@tilera.com>
9323
9324 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9325
9326 2013-02-27 Yao Qi <yao@codesourcery.com>
9327 Pedro Alves <palves@redhat.com>
9328
9329 * tracepoint.c (tfile_trace_find): For tfind
9330 pc/tp/range/outside, look for the next trace frame instead of
9331 always starting from frame 0.
9332
9333 2013-02-26 Anthony Green <green@moxielogic.com>
9334
9335 * configure.tgt: Add support for moxie-*-rtems* target.
9336
9337 2013-02-25 Pedro Alves <palves@redhat.com>
9338
9339 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9340 warning text.
9341
9342 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9343
9344 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9345 if $fp is used as the virtual frame pointer.
9346
9347 2013-02-23 Alan Modra <amodra@gmail.com>
9348
9349 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9350 symbol size.
9351 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9352 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9353 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9354 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9355
9356 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9357
9358 Code cleanup.
9359 * elfread.c (build_id_bfd_get): Make the return type const.
9360 (build_id_verify): Make the check parameter const.
9361 (build_id_to_debug_filename): Make the build_id parameter and variable
9362 data const.
9363 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9364
9365 2013-02-21 Alan Modra <amodra@gmail.com>
9366
9367 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9368
9369 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9370
9371 Add a new method 'disassemble' to gdb.Architecture class.
9372 * python/py-arch.c (archpy_disassmble): Implementation of the
9373 new method gdb.Architecture.disassemble.
9374 (arch_object_methods): Add entry for the new method.
9375
9376 2013-02-20 Jiong Wang <jiwang@tilera.com>
9377
9378 * MAINTAINERS (Write After Approval): Add myself to the list.
9379
9380 2013-02-19 Pedro Alves <palves@redhat.com>
9381
9382 Garbage collect 'struct monitor_ops'::load_routine.
9383
9384 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9385 * monitor.c (monitor_load): No longer call
9386 current_monitor->load_routine.
9387 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9388 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9389 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9390
9391 2013-02-19 Pedro Alves <palves@redhat.com>
9392
9393 PR gdb/15161
9394
9395 Harmonize with generic_load.
9396
9397 * monitor.c: Include "readline/readline.h".
9398 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9399 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9400 long/strtol for the 'load_offset' local. Error out if no argument
9401 is given or if too many arguments are given. Tilde expand the
9402 passed in file name.
9403
9404 2013-02-19 Kai Tietz <ktietz@redhat.com>
9405
9406 PR gdb/15161
9407 * symfile.c (load_section_data): Change type of load_offset
9408 to CORE_ADDR.
9409 (generic_load): User strtoulst instead of strtoul for conversion
9410 of load_offset.
9411
9412 2013-02-19 Jiong Wang <jiwang@tilera.com>
9413
9414 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9415 for return address, "lr" register, saved on stack.
9416 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9417 after we invoke tilegx_analyze_prologue.
9418
9419 2013-02-19 Jiong Wang <jiwang@tilera.com>
9420
9421 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9422
9423 2013-02-19 Jiong Wang <jiwang@tilera.com>
9424
9425 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9426
9427 2013-02-19 Jiong Wang <jiwang@tilera.com>
9428
9429 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9430 (tilegx_write_pc): New function.
9431 (tilegx_cannot_reference_register): Return zero if REGNO
9432 is TILEGX_FAULTNUM_REGNUM.
9433 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9434 (tilegx_register_name): Add handling of "faultnum" register.
9435 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9436 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9437 handling of TILEGX_FAULTNUM_REGNUM.
9438 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9439
9440 2013-02-19 Jiong Wang <jiwang@tilera.com>
9441
9442 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9443 should be aligned to 64bit.
9444
9445 2013-02-19 Kai Tietz <ktietz@redhat.com>
9446
9447 * windows-nat.c (windows_xfer_memory): Fix debug-output
9448 for LLP64.
9449
9450 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9451
9452 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9453 Don't check DSP register number if HAVE_DSP is not set.
9454
9455 2013-02-19 Alan Modra <amodra@gmail.com>
9456
9457 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9458 throughout file instead.
9459 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9460 Don't xmalloc return value.
9461 (build_id_verify): Similarly. Don't xfree.
9462 (build_id_to_debug_filename): Update.
9463 (find_separate_debug_file_by_buildid): Update, don't xfree.
9464
9465 2013-02-18 Tom Tromey <tromey@redhat.com>
9466
9467 PR gdb/15102:
9468 * dwarf2read.c (read_subrange_type): Use result of
9469 'check_typedef'.
9470
9471 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9472
9473 * frame.c: Remove one extra white space after #include
9474 directive.
9475
9476 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9477
9478 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9479
9480 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9481
9482 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9483 and dir commands into an if block.
9484
9485 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9486
9487 * python/py-breakpoint (struct pybp_code): Use int instead of
9488 enum type_code.
9489
9490 2013-02-15 Pedro Alves <pedro@codesourcery.com>
9491 Hafiz Abid Qadeer <abidh@codesourcery.com>
9492
9493 * NEWS: Mention new field "trace-file".
9494 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9495 (tfile_open): Record the trace file's filename in the trace
9496 status.
9497 (tfile_files_info): Mention the name of the trace file.
9498 Check the "filename" field explicitely.
9499 (trace_status_command): Explicitely check "filename" field.
9500 (trace_find_command): Ditto.
9501 (trace_find_pc_command): Ditto.
9502 (trace_find_tracepoint_command): Ditto.
9503 (trace_find_line_command): Ditto.
9504 (trace_find_range_command): Ditto.
9505 (trace_find_outside_command): Ditto.
9506 * tracepoint.h (struct trace_status) <from_file>: Rename it
9507 to "filename" and make it hold the trace file's filename
9508 instead of a boolean.
9509 * remote.c (remote_get_trace_status): Initialize "filename"
9510 field with NULL instead of 0.
9511
9512 2013-02-15 Yao Qi <yao@codesourcery.com>
9513
9514 * remote.c: Fix a typo.
9515
9516 2013-02-14 Pierre Muller <muller@sourceware.org>
9517
9518 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9519
9520 2013-02-14 Pedro Alves <palves@redhat.com>
9521
9522 * utils.c (savestring): Don't #undef it. Move function to
9523 common/common-utils.c.
9524 * common/common-utils.c: Include gdb_string.h.
9525 (savestring): Move here from utils.c.
9526 * common/common-utils.h (savestring): Declare.
9527
9528 2013-02-14 Pedro Alves <palves@redhat.com>
9529
9530 * utils.c (savestring): Rename parameter 'size' to 'len'.
9531
9532 2013-02-14 Pedro Alves <palves@redhat.com>
9533 Yufeng Zhang <yufeng.zhang@arm.com>
9534
9535 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9536 (aarch64_inferior_data, struct aarch64_inferior_data):
9537 Delete.
9538 (struct aarch64_process_info): New.
9539 (aarch64_process_list): New global.
9540 (aarch64_find_process_pid, aarch64_add_process)
9541 (aarch64_process_info_get): New functions.
9542 (aarch64_inferior_data_get): Delete.
9543 (aarch64_process_info_get): New function.
9544 (aarch64_forget_process): New function.
9545 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9546 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9547 aarch64_get_debug_reg_state.
9548 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9549 instead of linux_nat_iterate_watchpoint_lwps.
9550 (aarch64_linux_new_fork): New function.
9551 (aarch64_linux_child_post_startup_inferior): Use
9552 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9553 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9554 (aarch64_linux_remove_hw_breakpoint)
9555 (aarch64_handle_aligned_watchpoint)
9556 (aarch64_handle_unaligned_watchpoint)
9557 (aarch64_linux_insert_watchpoint)
9558 (aarch64_linux_remove_watchpoint)
9559 (aarch64_linux_stopped_data_address): Adjust to pass the current
9560 process id to aarch64_debug_reg_state.
9561 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9562 linux_nat_new_fork hook, and aarch64_forget_process as
9563 linux_nat_forget_process hook; remove the call to
9564 register_inferior_data_with_cleanup.
9565
9566 2013-02-14 Pedro Alves <palves@redhat.com>
9567
9568 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9569 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9570 lval_memory.
9571
9572 2013-02-14 Pedro Alves <pedro@codesourcery.com>
9573 Hafiz Abid Qadeer <abidh@codesourcery.com>
9574
9575 * tracepoint.h (validate_trace_state_variable_name): Declare.
9576 * tracepoint.c (validate_trace_state_variable_name): New.
9577 (trace_variable_command): Parse the trace state variable's name
9578 without using parse_expression. Do several validations.
9579 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9580 trace state variable's name with parse_expression. Validate it.
9581
9582 2013-02-14 Yao Qi <yao@codesourcery.com>
9583
9584 * infcmd.c (breakpoint_proceeded): Remove it.
9585
9586 2013-02-14 Yao Qi <yao@codesourcery.com>
9587
9588 * tracepoint.c (end_actions_pseudocommand): Make it static.
9589 (while_stepping_pseudocommand): Likewise.
9590 * tracepoint.h (end_actions_pseudocommand): Remove the
9591 declaration.
9592 (while_stepping_pseudocommand): Likewise.
9593
9594 2013-02-14 Yao Qi <yao@codesourcery.com>
9595
9596 * cli/cli-decode.c (help_cmd): Remove the declaration of
9597 "cmdlist".
9598 (help_all): Likewise.
9599
9600 2013-02-13 Pedro Alves <palves@redhat.com>
9601
9602 * amd64-linux-nat.c (update_debug_registers_callback):
9603 Update comment.
9604 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9605 iterate_over_lwps.
9606 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9607 i386_debug_reg_state.
9608 (amd64_linux_new_fork): New function.
9609 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9610 linux_nat_new_fork hook, and i386_forget_process as
9611 linux_nat_forget_process hook.
9612 * i386-linux-nat.c (update_debug_registers_callback):
9613 Update comment.
9614 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9615 iterate_over_lwps.
9616 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9617 i386_debug_reg_state.
9618 (i386_linux_new_fork): New function.
9619 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9620 linux_nat_new_fork hook, and i386_forget_process as
9621 linux_nat_forget_process hook.
9622 * i386-nat.c (i386_init_dregs): Delete.
9623 (i386_inferior_data, struct i386_inferior_data):
9624 Delete.
9625 (struct i386_process_info): New.
9626 (i386_process_list): New global.
9627 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9628 New functions.
9629 (i386_inferior_data_get): Delete.
9630 (i386_process_info_get): New function.
9631 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9632 (i386_forget_process): New function.
9633 (i386_cleanup_dregs): Rewrite.
9634 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9635 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9636 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9637 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9638 to i386_debug_reg_state.
9639 (i386_use_watchpoints): Don't register inferior data.
9640 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9641 adjust comment.
9642 (i386_forget_process): Declare.
9643 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9644 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9645 New static globals.
9646 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9647 (add_initial_lwp): New, factored out from ...
9648 (add_lwp): ... this. Don't check the number of lwps before
9649 calling linux_nat_new_thread.
9650 (linux_nat_iterate_watchpoint_lwps): Delete.
9651 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9652 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9653 forks and vforks.
9654 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9655 initial lwp.
9656 (linux_nat_kill, linux_nat_mourn_inferior): Call
9657 linux_nat_forget_process.
9658 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9659 (linux_nat_forget_process): New functions.
9660 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9661 type.
9662 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9663 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9664 types.
9665 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9666 (linux_nat_forget_process): New declarations.
9667
9668 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9669 (amd64fbsd_mourn_inferior): New function.
9670 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9671 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9672
9673 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9674
9675 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9676 Adding _().
9677
9678 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9679
9680 * aarch64-linux-nat.c (debug_reg_change_callback)
9681 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9682 %s and phex().
9683
9684 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9685
9686 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9687 with LONGEST.
9688
9689 2013-02-13 Pedro Alves <palves@redhat.com>
9690 Hafiz Abid Qadeer <abidh@codesourcery.com>
9691
9692 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9693
9694 2013-02-12 Tom Tromey <tromey@redhat.com>
9695
9696 PR symtab/11464:
9697 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9698 NAME return.
9699 (classify_inner_name): Remove 'first_name' argument, add
9700 'context'. Remove unused variable.
9701 (yylex): Explicitly maintain the context type. Exit loop earlier
9702 if NAME result is seen.
9703
9704 2013-02-12 Pedro Alves <palves@redhat.com>
9705
9706 * amd64-darwin-tdep.c: Add (C) after Copyright.
9707 * cli/cli-cmds.h: Ditto.
9708 * cli/cli-decode.c: Ditto.
9709 * cli/cli-decode.h: Ditto.
9710 * cli/cli-dump.c: Ditto.
9711 * cli/cli-dump.h: Ditto.
9712 * cli/cli-interp.c: Ditto.
9713 * cli/cli-logging.c: Ditto.
9714 * cli/cli-script.c: Ditto.
9715 * cli/cli-script.h: Ditto.
9716 * cli/cli-setshow.c: Ditto.
9717 * cli/cli-setshow.h: Ditto.
9718 * cli/cli-utils.c: Ditto.
9719 * cli/cli-utils.h: Ditto.
9720 * config/alpha/nm-osf3.h: Ditto.
9721 * config/djgpp/djconfig.sh: Ditto.
9722 * config/i386/nm-fbsd.h: Ditto.
9723 * config/i386/nm-i386gnu.h: Ditto.
9724 * config/nm-linux.h: Ditto.
9725 * config/nm-nto.h: Ditto.
9726 * config/rs6000/nm-rs6000.h: Ditto.
9727 * config/sparc/nm-sol2.h: Ditto.
9728 * darwin-nat-info.c: Ditto.
9729 * dfp.c: Ditto.
9730 * dfp.h: Ditto.
9731 * gdb-demangle.h: Ditto.
9732 * i386-darwin-nat.c: Ditto.
9733 * i386-darwin-tdep.c: Ditto.
9734 * linux-fork.h: Ditto.
9735 * m32c-tdep.c: Ditto.
9736 * microblaze-linux-tdep.c: Ditto.
9737 * microblaze-rom.c: Ditto.
9738 * microblaze-tdep.c: Ditto.
9739 * microblaze-tdep.h: Ditto.
9740 * mips-linux-tdep.h: Ditto.
9741 * ppc-ravenscar-thread.c: Ditto.
9742 * ppc-ravenscar-thread.h: Ditto.
9743 * prologue-value.c: Ditto.
9744 * prologue-value.h: Ditto.
9745 * ravenscar-thread.c: Ditto.
9746 * ravenscar-thread.h: Ditto.
9747 * sparc-ravenscar-thread.c: Ditto.
9748 * sparc-ravenscar-thread.h: Ditto.
9749 * tilegx-linux-tdep.c: Ditto.
9750 * unwind_stop_reasons.def: Ditto.
9751 * windows-nat.h: Ditto.
9752 * xtensa-linux-tdep.c: Ditto.
9753 * xtensa-xtregs.c: Ditto.
9754 * regformats/regdat.sh: Ditto.
9755 * regformats/regdef.h: Ditto.
9756
9757 2013-02-12 Pedro Alves <palves@redhat.com>
9758
9759 * break-catch-sig.c: Update copyright years.
9760
9761 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9762
9763 Add support for a destructor for ui_out data and use it to
9764 provide a ui_out destructor.
9765 * ui-out.h: Declare the new ui_out destructor.
9766 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9767 * ui-out.c (default_data_destroy): Add a default data destructor
9768 which does nothing.
9769 (default_ui_out_impl): Set the new data_destroy field to
9770 default_data_destroy
9771 (uo_data_destroy): Local function which invokes the data
9772 destructor if present.
9773 (clear_table): Local function which clears the table data of a
9774 ui_out object.
9775 (ui_out_destroy): Public function which frees a ui_out object.
9776 (ui_out_table_end): Use the new clear_table function.
9777 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9778 NULL.
9779 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9780 to NULL.
9781
9782 2013-02-11 Doug Evans <dje@google.com>
9783
9784 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9785 (printf_decfloat): New function. Broken out from ui_printf.
9786 Remove unnecessary code to shift the entire format string down.
9787 (printf_pointer): New function.
9788 (ui_printf): Code to print C strings, wide C strings, decfloats,
9789 and pointers moved to separate functions.
9790
9791 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9792
9793 * valops.c (value_assign): Handling bitfield offset in
9794 `lval_internalvar_component' case.
9795
9796 2013-02-08 Doug Evans <dje@google.com>
9797
9798 * common/format.c (parse_format_string): Fix whitespace.
9799
9800 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9801
9802 * stack.c (return_command): Work around uninitialized variable
9803 warning.
9804
9805 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9806
9807 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9808 number of the registers from 36 to 34.
9809
9810 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9811
9812 * NEWS: Mention new AArch64 native and target support.
9813
9814 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9815
9816 * MAINTAINERS (Write After Approval): Add myself.
9817
9818 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9819 Marcus Shawcroft <marcus.shawcroft@arm.com>
9820 Nigel Stephens <nigel.stephens@arm.com>
9821 Yufeng Zhang <yufeng.zhang@arm.com>
9822
9823 * aarch64-linux-nat.c: New file.
9824 * config/aarch64/linux.mh: New file.
9825 * configure.host: Add AArch64.
9826 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9827
9828 2013-02-07 Doug Evans <dje@google.com>
9829
9830 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9831 disassemble command.
9832
9833 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9834
9835 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9836 set_gdbarch_fetch_tls_load_module_address.
9837
9838 2013-02-06 David S. Miller <davem@davemloft.net>
9839
9840 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9841 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9842 * value.c (struct_return_convention): New function.
9843 (using_struct_return): Implement in terms of struct_return_convention.
9844 * value.h (struct_return_convention): Declare.
9845 * stack.c (return_command): Allow successful overriding of the return
9846 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9847
9848 2013-02-06 Tom Tromey <tromey@redhat.com>
9849
9850 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9851 outside of TRY_CATCH.
9852
9853 2013-02-06 Yao Qi <yao@codesourcery.com>
9854
9855 * mi/mi-interp.c: Include "tracepoint.h".
9856 (mi_tsv_modified): Declare.
9857 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9858 (mi_interpreter_init): Call observer_attach_tsv_modified.
9859 (mi_tsv_modified): New.
9860 (mi_tsv_created, mi_tsv_deleted): Update.
9861 * tracepoint.c (trace_variable_command): Call
9862 observer_notify_tsv_modified if the initial value of tsv is
9863 changed.
9864 (delete_trace_state_variable): Call
9865 observer_notify_tsv_deleted earlier.
9866 (trace_variable_command): Caller update.
9867 (create_tsv_from_upload): Likewise.
9868 * observer.sh: Declare "struct trace_state_variable".
9869
9870 * NEWS: Mention the new MI notification "=tsv-modified".
9871
9872 2013-02-05 Doug Evans <dje@google.com>
9873
9874 * completer.c (location_completer): Fix typo in comment.
9875
9876 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9877
9878 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9879 ADDRESS sorted.
9880
9881 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9882
9883 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9884 Refactor if statement to avoid trailing || operator.
9885
9886 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
9887
9888 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9889
9890 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
9891
9892 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9893 * configure.host: Add powerpc*-*-freebsd* target.
9894 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9895 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9896 * config/powerpc/fbsd.mh: New file.
9897
9898 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9899 Denys Vlasenko <dvlasenk@redhat.com>
9900 Pedro Alves <palves@redhat.com>
9901
9902 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9903 (struct elf_internal_linux_prpsinfo): Forward declare.
9904 * gdbarch.h, gdbarch.c: Regenerate.
9905 * linux-tdep.c: Include `cli/cli-utils.h'.
9906 (linux_fill_prpsinfo): New function.
9907 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9908 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9909 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9910 depending on gdbarch pointer bitness.
9911 * ppc-linux-tdep.c: Include elf-bfd.h.
9912 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9913 on 32-bit.
9914
9915 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9916 Marcus Shawcroft <marcus.shawcroft@arm.com>
9917 Nigel Stephens <nigel.stephens@arm.com>
9918 Yufeng Zhang <yufeng.zhang@arm.com>
9919
9920 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9921
9922 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9923 Marcus Shawcroft <marcus.shawcroft@arm.com>
9924 Nigel Stephens <nigel.stephens@arm.com>
9925 Yufeng Zhang <yufeng.zhang@arm.com>
9926
9927 * aarch64-newlib-tdep.c: New file.
9928 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9929 aarch64*-*-elf.
9930 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9931 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9932 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9933 * osabi.c (gdb_osabi_names): Add "Newlib".
9934
9935 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9936 Marcus Shawcroft <marcus.shawcroft@arm.com>
9937 Nigel Stephens <nigel.stephens@arm.com>
9938 Yufeng Zhang <yufeng.zhang@arm.com>
9939
9940 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9941 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9942 * aarch64-linux-tdep.c: New file.
9943 * aarch64-linux-tdep.h: New file.
9944 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9945 * configure.tgt: Add aarch64-none-linux-gnu.
9946
9947 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9948 Marcus Shawcroft <marcus.shawcroft@arm.com>
9949 Nigel Stephens <nigel.stephens@arm.com>
9950 Yufeng Zhang <yufeng.zhang@arm.com>
9951
9952 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9953 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9954 (ALLDEPFILES): Add aarch64-tdep.c.
9955 * aarch64-tdep.c: New file.
9956 * aarch64-tdep.h: New file.
9957 * configure.tgt: Add AArch64.
9958 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9959 (aarch64-expedite): New definition.
9960 * features/aarch64-core.xml: New file.
9961 * features/aarch64-fpu.xml: New file.
9962 * features/aarch64-without-fpu.c: New file (generated).
9963 * features/aarch64-without-fpu.xml: New file.
9964 * features/aarch64.c: New file (generated).
9965 * features/aarch64.xml: New file.
9966 * regformats/aarch64-without-fpu.dat: New file (generated).
9967 * regformats/aarch64.dat: New file (generated).
9968
9969 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9970
9971 * contrib/expect-read1.c: New file.
9972 * contrib/expect-read1.sh: New file.
9973
9974 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9975
9976 * dwarf2read.c (file_file_name): New function with code from
9977 file_full_name.
9978 (file_full_name): Move most of the code to file_file_name.
9979 (macro_start_file): Rename variable full_name to file_name and use
9980 file_file_name for it. Add comp_dir parameter to new_macro_table.
9981 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9982 macro_source_file->filename access by macro_source_fullname call.
9983 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9984 caller.
9985 * macrotab.c (struct macro_table): New field comp_dir.
9986 (macro_include): New variables link_fullname and source_fullname.
9987 Replace any macro_source_file->filename access by macro_source_fullname
9988 call.
9989 (macro_lookup_inclusion): Remove the partial filenames checking code.
9990 (check_for_redefinition): New variables source_fullname and
9991 found_key_fullname. Replace any macro_source_file->filename access by
9992 macro_source_fullname call.
9993 (macro_undef): New variables source_fullname and key_fullname. Replace
9994 any macro_source_file->filename access by macro_source_fullname call.
9995 (macro_lookup_definition): New variables retval and source_fullname.
9996 Replace any macro_source_file->filename access by macro_source_fullname
9997 call.
9998 (foreach_macro): New variable key_fullname. Replace any
9999 macro_source_file->filename access by macro_source_fullname call.
10000 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10001 macro_source_file->filename access by macro_source_fullname call.
10002 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10003 (macro_source_fullname): New function.
10004 * macrotab.h (struct macro_source_file): Extent the filename field
10005 comment.
10006 (new_macro_table): New parameter comp_dir, add a comment for it.
10007 (macro_source_fullname): new declaration.
10008
10009 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10010
10011 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10012 this_real_name to outer block. Use it also for
10013 compare_filenames_for_search.
10014 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10015 with dw2_get_real_path for file_matcher, considering also
10016 BASENAMES_MAY_DIFFER.
10017 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10018
10019 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10020
10021 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10022 to the file_matcher parameter. Pass 0 to it.
10023 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10024 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10025 NULL psymtab_to_fullname result.
10026 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10027 an expected filename instead.
10028 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10029 file_matcher parameter. Call also psymtab_to_fullname, after newly
10030 considering BASENAMES_MAY_DIFFER.
10031 * source.c (rewrite_source_path): Remove static.
10032 * source.h (rewrite_source_path): New declaration.
10033 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10034 the expand_symtabs_matching field. Comment it.
10035 * symtab.c (file_matches): New function comment. Add parameter
10036 basenames, implement it.
10037 (search_symbols_file_matches): Add basenames parameter. Update the
10038 file_matches caller.
10039 (search_symbols): Match FILES also against symtab_to_fullname.
10040 Optimize it for BASENAMES_MAY_DIFFER.
10041
10042 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10043
10044 * source.c (print_source_lines_base): Print for TUI also "fullname".
10045 * tui/tui-data.c (init_content_element): Change tui_locator_element
10046 field to full_name.
10047 * tui/tui-data.h (struct tui_locator_element): Likewise.
10048 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10049 tui_update_locator_filename calls to tui_update_locator_fullname.
10050 Replace symtab->filename refererence by symtab_to_fullname call.
10051 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10052 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10053 field to full_name. Replace symtab->filename refererence by
10054 symtab_to_fullname call.
10055 (tui_show_symtab_source): Rename parameter to fullname. Change
10056 tui_locator_element field to full_name.
10057 * tui/tui-stack.c: Include source.h.
10058 (tui_set_locator_filename): Rename the declaration to ...
10059 (tui_set_locator_fullname): ... here. Rename its parameter to
10060 fullname, updates its comment.
10061 (tui_set_locator_info): Rename its parameter to fullname.
10062 (tui_set_locator_filename): Rename the definition to ...
10063 (tui_set_locator_fullname): ... here. Rename its parameter to
10064 fullname, updates its comment. Change tui_locator_element field to
10065 full_name.
10066 (tui_set_locator_info): Rename its parameter to fullname.
10067 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10068 (tui_update_locator_filename): Rename to ...
10069 (tui_update_locator_fullname): ... here. Rename callee to
10070 tui_set_locator_fullname.
10071 (tui_show_frame_info): Replace symtab->filename refererence by
10072 symtab_to_fullname call.
10073 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10074 (tui_update_locator_fullname): ... here.
10075 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10076 tui_update_locator_fullname. Replace symtab->filename refererence by
10077 symtab_to_fullname call.
10078 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10079 Rename the callee to tui_update_locator_fullname.
10080 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10081
10082 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10083
10084 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10085 by symtab_to_filename_for_display calls.
10086 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10087 (clear_command): New variable sal_fullname, initialize it. Replace
10088 compare_filenames_for_search by filename_cmp with sal_fullname.
10089 (say_where, update_static_tracepoint): Replace symtab->filename
10090 refererences by symtab_to_filename_for_display calls.
10091 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10092 Likewise.
10093 * dwarf2read.c: Include source.h.
10094 (fixup_go_packaging): Replace symtab->filename refererences by
10095 symtab_to_filename_for_display calls.
10096 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10097 Replace symtab->filename refererences by symtab_to_filename_for_display
10098 calls.
10099 (create_sals_line_offset, convert_linespec_to_sals): New variable
10100 fullname, initialize it, replace symtab->filename reference by the
10101 variable.
10102 * linux-fork.c: Include source.h.
10103 (info_checkpoints_command): Replace symtab->filename refererences by
10104 symtab_to_filename_for_display calls.
10105 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10106 by symtab_to_filename_for_display calls.
10107 * mdebugread.c: Include source.h.
10108 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10109 symtab_to_filename_for_display calls.
10110 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10111 (mi_cmd_file_list_exec_source_files): Likewise.
10112 * printcmd.c: Include source.h.
10113 (build_address_symbolic): Replace symtab->filename refererences by
10114 symtab_to_filename_for_display calls.
10115 * psymtab.c (partial_map_symtabs_matching_filename)
10116 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10117 with psymtab_to_fullname.
10118 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10119 by symtab_to_filename_for_display calls.
10120 (stpy_get_filename): New variable filename, initialize it, use instead
10121 of symtab->filename refererences.
10122 (salpy_str): Make variable filename const char *. Replace
10123 symtab->filename refererences by symtab_to_filename_for_display calls.
10124 * skip.c: Include source.h and filenames.h.
10125 (skip_file_command): Remove const from the symtab variable. Replace
10126 symtab->filename refererences by symtab_to_fullname call.
10127 (function_name_is_marked_for_skip): New variables searched_for_fullname
10128 and fullname. Use them to search also with symtab's fullname.
10129 * source.c (find_source_lines): Replace symtab->filename refererences
10130 by symtab_to_filename_for_display calls.
10131 (print_source_lines_base): New variable filename, use it instead of
10132 symtab->filename. Replace symtab->filename refererences by
10133 symtab_to_filename_for_display calls.
10134 (line_info, forward_search_command): Replace symtab->filename
10135 refererences by symtab_to_filename_for_display calls.
10136 (reverse_search_command): Replace symtab->filename refererences by
10137 symtab_to_filename_for_display calls. New variable filename for it.
10138 * stack.c (frame_info): Likewise.
10139 * symmisc.c: Include source.h.
10140 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10141 (maintenance_info_symtabs): Replace symtab->filename refererences by
10142 symtab_to_filename_for_display calls.
10143 * symtab.c (iterate_over_some_symtabs): Call
10144 compare_filenames_for_search also with symtab_to_fullname.
10145 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10146 symtab->filename refererences by symtab_to_filename_for_display calls.
10147 (find_line_symtab): Replace symtab->filename refererences by
10148 symtab_to_filename_for_display calls.
10149 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10150 (print_symbol_info): Make the last parameter const char *. New
10151 variable s_filename. Use it in the function.
10152 (symtab_symbol_info): Make the last_filename variable const char *.
10153 Replace symtab->filename refererences by symtab_to_filename_for_display
10154 calls.
10155 (rbreak_command): New variable fullname. Use it. Replace
10156 symtab->filename refererence by symtab_to_filename_for_display call.
10157 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10158 (print_one_static_tracepoint_marker): Replace symtab->filename
10159 refererences by symtab_to_filename_for_display calls.
10160 * tui/tui-source.c (tui_set_source_content): New variables filename and
10161 s_filename. Replace symtab->filename refererences by this variable.
10162 Replace other symtab->filename refererences by
10163 symtab_to_filename_for_display calls.
10164
10165 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10166 Jan Kratochvil <jan.kratochvil@redhat.com>
10167
10168 Add a new variable that controls a way in which filenames are
10169 displayed.
10170 * NEWS (set filename-display): New entry.
10171 * source.c (filename_display_basename, filename_display_relative)
10172 (filename_display_absolute, filename_display_kind_names)
10173 (filename_display_string, show_filename_display_string)
10174 (symtab_to_filename_for_display): New.
10175 (_initialize_source): Added initialization of 'filename-display'
10176 variable.
10177 * source.h (symtab_to_filename_for_display): Added declaration.
10178 * stack.c (print_frame): Added new variable and calling of a new
10179 function and condition with this variable. Changed third argument of
10180 calling of a function.
10181
10182 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10183
10184 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10185 Rename field reference filename to fullname.
10186 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10187 fullname. New comment for it.
10188 * tui/tui-source.c (tui_set_source_content): Rename field reference
10189 filename to fullname. Initialize field by symtab_to_fullname now.
10190 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10191 reference filename to fullname. Use symtab_to_fullname during
10192 comparison.
10193
10194 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10195
10196 Code cleanup.
10197 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10198 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10199 filename to fullname. Rename variable this_name to this_fullname.
10200 Lowercase FILENAME_CMP call.
10201 (dw2_find_symbol_file): New comment for the returned string.
10202 (dwarf2_gdb_index_functions): Rename the function to
10203 dw2_expand_symtabs_with_fullname.
10204 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10205 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10206 fullname.
10207 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10208 * symfile.h (struct quick_symbol_functions): Rename field
10209 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10210 parameter filename to fullname. Document returned string meaning for
10211 find_symbol_file.
10212 * symtab.c (find_line_symtab): Rename the called function to
10213 expand_symtabs_with_fullname.
10214
10215 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10216
10217 Code cleanup.
10218 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10219 call of filename_cmp with compare_filenames_for_search.
10220 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10221 is_abs, unify the call of FILENAME_CMP with
10222 compare_filenames_for_search. New gdb_asserts for real_path and name.
10223 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10224 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10225 * symfile.h (struct quick_symbol_functions): Extend the comment for
10226 map_symtabs_matching_filename.
10227 * symtab.c (compare_filenames_for_search): Remove the function comment
10228 relative path requirement. Handle absolute filenames, with a comment.
10229 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10230 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10231 real_path and name. Unify the call of compare_filenames_for_search
10232 with FILENAME_CMP.
10233 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10234
10235 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10236
10237 Code cleanup.
10238 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10239 source_file references by symtab field references. Remove variables
10240 sal and fullname.
10241 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10242 (clear_command, say_where): Replace bp_location field source_file
10243 references by symtab field references.
10244 (bp_location_dtor): Remove the source_file reference.
10245 (update_static_tracepoint): Replace bp_location field source_file
10246 references by symtab field references.
10247 (breakpoint_free_objfile): New function.
10248 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10249 Replace the field source_file by field symtab, extend its comment.
10250 (breakpoint_free_objfile): New declaration.
10251 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10252 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10253 field source_file references by symtab field references.
10254
10255 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10256
10257 Replace xfullpath calls by gdb_realpath calls.
10258 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10259 function comment.
10260 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10261 Remove it from the iterate_over_some_symtabs call.
10262 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10263 Remove it from the dw2_map_expand_apply calls, remove a block handling
10264 it.
10265 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10266 Remove it from the iterate_over_some_symtabs call.
10267 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10268 Remove it from the partial_map_expand_apply calls, remove a block
10269 handling it. Drop gdb_realpath call and cleanups from the real_path
10270 handling.
10271 * source.c (openp): Drop the comment part about xfullpath. Replace
10272 xfullpath calls by gdb_realpath calls.
10273 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10274 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10275 from method map_symtabs_matching_filename and its comment.
10276 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10277 gdb_realpath call.
10278 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10279 remove it also from the function comment, remove a block handling it.
10280 Drop gdb_realpath call and cleanups from the real_path handling.
10281 (iterate_over_symtabs): Drop variable full_path and its use.
10282 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10283 * utils.c (xfullpath): Remove.
10284 * utils.h (xfullpath): Remove.
10285
10286 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10287
10288 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10289 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10290 (ALLDEPFILES): Add ppc64-tdep.c.
10291 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10292 ppc64-tdep.o to gdb_target_obs.
10293 * ppc64-tdep.h: New file.
10294 * ppc64-tdep.c: New file.
10295 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10296 ppc-linux-tdep.c to here.
10297 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10298 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10299 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10300 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10301 from ppc-linux-tdep.c to here.
10302 (ppc64_convert_from_func_ptr_addr): Rename from
10303 ppc64_linux_convert_from_func_ptr_addr to
10304 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10305 here.
10306 * rs6000-tdep.c:
10307 (read_insn): Move from ppc-linux-tdep.c to here.
10308 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10309 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10310 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10311 Removed above functions.
10312 (ppc_linux_init_abi): Adjust.
10313
10314 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10315
10316 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10317
10318 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10319
10320 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10321
10322 2013-02-01 Pedro Alves <palves@redhat.com>
10323
10324 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10325 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10326
10327 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10328
10329 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10330 files with no separate debug info.
10331 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10332 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10333 only for files with no separate debug info.
10334
10335 2013-01-31 Tom Tromey <tromey@redhat.com>
10336
10337 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10338 change type.
10339 (struct jit_program_space_data): Rename from jit_inferior_data.
10340 Update comments.
10341 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10342 Change return type. Attach data to program space.
10343 (jit_program_space_data_cleanup): Rename from
10344 jit_inferior_data_cleanup; change argument type.
10345 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10346 change type.
10347 (jit_register_code): Update.
10348 (jit_update_inferior_cache): Remove.
10349 (jit_breakpoint_deleted): Get jit data from the location's program
10350 space.
10351 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10352 'ps_data', change type.
10353 (jit_inferior_init, jit_breakpoint_re_set_internal)
10354 (jit_event_handler): Update.
10355 (free_objfile_data): Get data from objfile's program space.
10356 (_initialize_jit): Update.
10357
10358 2013-01-31 Tom Tromey <tromey@redhat.com>
10359
10360 PR gdb/13987:
10361 * jit.c (struct jit_inferior_data) <cached_code_address,
10362 jit_breakpoint>: New fields.
10363 (jit_breakpoint_re_set_internal): Fix logging. Only create
10364 breakpoint if cached address has changed.
10365 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10366 functions.
10367 (_initialize_jit): Register breakpoint deleted observer.
10368
10369 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10370
10371 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10372 (save_infcall_suspend_state): Ifdef out unused inf.
10373 (restore_infcall_suspend_state): Ifdef out unused inf.
10374 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10375 (jit_frame_sniffer): Remove unused inf_data.
10376
10377 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10378
10379 * c-exp.y (classify_inner_name): Remove unused type.
10380 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10381 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10382 need_escape.
10383 (c_get_string): Remove unused kind.
10384 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10385
10386 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10387
10388 * charset.c (intermediate_encoding): Remove unused i.
10389 * completer.c (signal_completer): Remove unused i.
10390 * continuations.c (discard_my_continuations_1): Remove unused
10391 continuation_ptr.
10392 * corelow.c (core_close): Remove unuseD name.
10393 (get_core_siginfo): Remove unused pid.
10394 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10395 i, cps.
10396 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10397 (loclist_describe_location): Remove unused first.
10398 * event-top.c (command_line_handler): Remove unused got_eof.
10399 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10400 (resize_section_table): Remove unused old_value.
10401 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10402 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10403 * i386-tdep.c (i386_process_record): Remove unused rex.
10404 * infcmd.c (get_return_value): Remove unused uiout.
10405 * jv-lang.c (type_from_class): Remove unused is_array.
10406 * jv-valprint.c (java_val_print): Remove unused i.
10407 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10408 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10409 * m2-typeprint.c (m2_print_type): Remove unused code.
10410 * macroexp.c (get_character_constant): Remove unused body_start.
10411 (macro_stringify): Remove unused result.
10412 * objc-lang.c (find_methods): Remove unused gdbarch.
10413 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10414 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10415 * stack.c (print_frame_args): Remove unused summary.
10416 * thread.c (thread_apply_command): Remove unused p.
10417 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10418 * valops.c (search_struct_method): Remove unused skip.
10419 * valprint.c (generic_val_print): Remove unused byte_order.
10420 * varobj.c (varobj_update): Remove unused changed.
10421 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10422 (alias_command): Remove unused c.
10423 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10424 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10425 format.
10426 (mi_cmd_data_write_memory): Remove unused word_format.
10427 (mi_cmd_data_write_memory_bytes): Remove unused r.
10428 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10429 p_start, p_end.
10430 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10431 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10432 line_width.
10433
10434 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10435
10436 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10437 * symtab.c (iterate_over_symtabs): Remove unused s.
10438 (find_pc_sect_symtab): Remove unused pspAce.
10439 (find_pc_sect_line): Remove unused alt_symtab.
10440 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10441 (completion_list_add_name): Remove unused newsize.
10442
10443 2013-01-31 Tom Tromey <tromey@redhat.com>
10444
10445 PR c++/14998:
10446 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10447 TYPE_CODE_FUNC.
10448
10449 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10450
10451 * target.c (target_read_string): Remove unused origlen.
10452
10453 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10454
10455 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10456 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10457 * ax-general.c (ax_print): Remove unused is_float.
10458 * blockframe.c (block_innermost_frame): Remove unused start, end.
10459 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10460
10461 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10462
10463 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10464 (svr4_read_so_list): Remove unused lmo.
10465 * solib-target.c (solib_target_relocate_section_addresses): Remove
10466 unused flags.
10467
10468 2013-01-30 Tom Tromey <tromey@redhat.com>
10469
10470 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10471
10472 2013-01-30 Tom Tromey <tromey@redhat.com>
10473
10474 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10475 * utils.c (gnu_debuglink_crc32): Remove.
10476 * utils.h (gnu_debuglink_crc32): Don't declare.
10477
10478 2013-01-30 Tom Tromey <tromey@redhat.com>
10479
10480 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10481 (read_structure_type, read_enumeration_type): Remove cast.
10482
10483 2013-01-30 Tom Tromey <tromey@redhat.com>
10484
10485 * dwarf2read.c (read_namespace_type): Remove cast.
10486 (read_typedef): Likewise.
10487
10488 2013-01-29 Tom Tromey <tromey@redhat.com>
10489
10490 * dwarf2read.c (free_dwo_file): Remove assert.
10491
10492 2013-01-29 Tom Tromey <tromey@redhat.com>
10493
10494 * value.c (deprecated_set_value_modifiable): Remove.
10495 * value.h (deprecated_set_value_modifiable): Remove.
10496
10497 2013-01-28 Doug Evans <dje@google.com>
10498
10499 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10500 to addresses from dwo files.
10501
10502 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10503
10504 * valops.c (find_overload_match): Remove unused argument 'lax'.
10505 * value.h: Remove unused argument 'lax' from the declaration of
10506 find_overload_match.
10507 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10508 to find_overload_match.
10509 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10510 argument to find_overload_match.
10511
10512 2013-01-25 Tom Tromey <tromey@redhat.com>
10513
10514 * dwarf2read.c (processing_has_namespace_info): Remove.
10515 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10516 (process_die, read_func_scope, dwarf2_start_symtab)
10517 (new_symbol_full): Update.
10518
10519 2013-01-25 Tom Tromey <tromey@redhat.com>
10520
10521 * cp-namespace.c (cp_set_block_scope): Remove.
10522 * cp-support.h (cp_set_block_scope): Remove.
10523 * dbxread.c: Include block.h.
10524 (cp_set_block_scope): New function.
10525 (process_one_symbol): Update.
10526 * dwarf2read.c (read_func_scope): Use block_set_scope.
10527
10528 2013-01-25 Pedro Alves <palves@redhat.com>
10529
10530 * remote.c (add_current_inferior_and_thread): Tweak comment.
10531
10532 2013-01-25 Tom Tromey <tromey@redhat.com>
10533
10534 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10535 (cp_add_using_directive): Add 'copy_names' argument.
10536 * cp-support.h (cp_add_using_directive): Update.
10537 (struct using_direct) <import_src, import_dest, alias,
10538 declaration>: Now const.
10539 * dwarf2read.c (read_import_statement): Use obconcat.
10540 Don't copy names passed to cp_add_using_directive.
10541
10542 2013-01-25 Tom Tromey <tromey@redhat.com>
10543
10544 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10545
10546 2013-01-25 Pedro Alves <palves@redhat.com>
10547
10548 * remote.c (stop_reply_extract_thread): New.
10549 (add_current_inferior_and_thread): New parameter 'wait_status'.
10550 Handle it.
10551 (remote_start_remote): Pass wait status to
10552 add_current_inferior_and_thread.
10553 (extended_remote_run): Update comment.
10554 (extended_remote_create_inferior_1): Pass wait status to
10555 add_current_inferior_and_thread.
10556
10557 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
10558 Ulrich Weigand <uweigand@de.ibm.com>
10559
10560 * valarith.c (value_vector_widen): New function for replicating a
10561 scalar into a vector.
10562 (value_binop): Use value_vector_widen to widen scalar to vector
10563 rather than casting, this better matches gcc C behaviour.
10564 * valops.c (value_casst): Update logic for casting between vector
10565 types, and for casting from scalar to vector, try to match gcc C
10566 behaviour.
10567 * value.h (value_vector_widen): Declare.
10568 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10569 function, handle special case for casting scalar to vector.
10570 (opencl_relop): Use opencl_value_cast.
10571 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10572 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10573 in order to use opencl_value_cast.
10574
10575 2013-01-25 Yao Qi <yao@codesourcery.com>
10576
10577 * event-loop.c: Include "queue.h".
10578 (gdb_event_p): New typedef.
10579 (DECLARE_QUEUE_P): Use.
10580 (DEFINE_QUEUE_P): Use.
10581 (async_queue_event): Remove.
10582 (gdb_event_xfree): New.
10583 (initialize_event_loop): New.
10584 (process_event): Use QUEUE macros.
10585 (event_queue): Remove.
10586 (gdb_wait_for_event): Caller update.
10587 (check_async_event_handlers): Likewise.
10588 (poll_timers): Likewise.
10589 * event-loop.h (initialize_event_loop): Declare.
10590 * event-loop.c (gdb_event_xfree): New.
10591 * top.c (gdb_init): Call initialize_event_loop.
10592
10593 2013-01-25 Yao Qi <yao@codesourcery.com>
10594
10595 * event-loop.c (async_queue_event): Remove one parameter
10596 'position'. Remove code handling 'position' == TAIL.
10597 (gdb_wait_for_event): Caller update.
10598 (check_async_event_handlers): Caller update.
10599 (poll_timers): Caller update.
10600 * event-loop.h (enum queue_position): Remove.
10601
10602 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10603
10604 * MAINTAINERS: Update my email.
10605
10606 2013-01-25 Yao Qi <yao@codesourcery.com>
10607
10608 * main.c (print_gdb_help): Remove "--epoch" from the help
10609 message.
10610
10611 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10612
10613 * symtab.c (skip_prologue_using_sal): Consider a file
10614 change the same as an increased line number
10615
10616 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10617
10618 * MAINTAINERS (Write After Approval): Add myself to the list.
10619
10620 2013-01-24 Tom Tromey <tromey@redhat.com>
10621
10622 * ada-lang.h (ada_decode_symbol): Make return type const.
10623 * ada-lang.c (ada_decode_symbol): Likewise.
10624
10625 2013-01-23 Doug Evans <dje@google.com>
10626
10627 * linespec.c (find_linespec_symbols): Make static.
10628
10629 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10630
10631 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10632 type on float conversion for complex type.
10633
10634 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10635
10636 Add a new class gdb.Architecture which exposes GDB's
10637 internal representation of architecture via GDB Python API.
10638 * Makefile.in: Add entries corresponding to the new file
10639 python/py-arch.c.
10640 * NEWS (Python Scripting): Add entries for the new class
10641 gdb.Architecture and the new method gdb.Frame.architecture.
10642 * python/py-arch.c: Implement gdb.Architecture class.
10643 * python/py-frame.c (frapy_arch): Implement the method
10644 gdb.Frame.architecture().
10645 (frame_object_methods): Add 'architecture' to the method table.
10646 * python/python-internal.h: Add declarations of new utility
10647 functions.
10648 * python/python.c (_initialize_python): Initialize
10649 gdb.Architecture class.
10650
10651 2013-01-23 Doug Evans <dje@google.com>
10652
10653 Work around binutils/15021.
10654 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10655 type_unit_group out of union s. All uses updated.
10656 (read_index_from_section): Watch for index version 8.
10657 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10658 an imported symtab.
10659 (write_psymtabs_to_index): Increment version number to 8.
10660
10661 2013-01-22 Pedro Alves <palves@redhat.com>
10662
10663 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10664 user-visible.
10665
10666 2013-01-22 Pedro Alves <palves@redhat.com>
10667
10668 * annotate.c (annotate_breakpoints_changed): Rename to ...
10669 (annotate_breakpoints_invalid): ... this. Make static.
10670 (breakpoint_changed): Adjust.
10671 (_initialize_annotate): Always install the observers. Install a
10672 "breakpoint_created" observer.
10673 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10674 * breakpoint.c (set_breakpoint_condition)
10675 (breakpoint_set_commands, do_map_commands_command)
10676 (init_raw_breakpoint, clear_command, set_ignore_count)
10677 (enable_breakpoint_disp): No longer call
10678 annotate_breakpoints_changed.
10679
10680 2013-01-22 Pedro Alves <palves@redhat.com>
10681
10682 * annotate.c: Include "inferior.h".
10683 (frames_invalid_emitted)
10684 (breakpoints_invalid_emitted): New globals.
10685 (async_background_execution_p): New function.
10686 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10687 emitting the annotation if it has already been emitted.
10688 (annotate_display_prompt): New function.
10689 * annotate.h (annotate_display_prompt): New declaration.
10690 * event-top.c: Include annotate.h.
10691 (display_gdb_prompt): Call annotate_display_prompt.
10692
10693 2013-01-22 Pedro Alves <palves@redhat.com>
10694
10695 * annotate.c (ignore_count_changed): Delete.
10696 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10697 (annotate_ignore_count_change): Delete.
10698 (annotate_stopped): Don't emit a delayed breakpoints-changed
10699 annotation.
10700 * annotate.h (annotate_ignore_count_change): Delete.
10701 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10702 annotate_ignore_count_change.
10703
10704 2013-01-22 Tom Tromey <tromey@redhat.com>
10705
10706 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10707 require_rvalue for a register location.
10708
10709 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10710
10711 * breakpoint.c (print_one_breakpoint_location): Add MI
10712 field 'thread-groups' when printing a breakpoint.
10713 (output_thread_groups): New function.
10714
10715 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10716
10717 * python/lib/gdb/commands/explore.py
10718 (CompoundExplorer.explore_expr): Correct the name of a method
10719 being invoked.
10720 (ExploreTypeCommand.invoke): Add a missing 'return'.
10721
10722 2013-01-21 Tom Tromey <tromey@redhat.com>
10723
10724 * gdb_obstack.h (obconcat): Move declaration here, from...
10725 * symfile.h (obconcat): ... here.
10726 * gdb_obstack.c: New file.
10727 (obconcat): Move from...
10728 * symfile.c (obconcat): ... here.
10729 * Makefile.in (SFILES): Add gdb_obstack.c.
10730 (COMMON_OBS): Add gdb_obstack.o.
10731
10732 2013-01-21 Tom Tromey <tromey@redhat.com>
10733
10734 * symfile.h (obsavestring): Don't declare.
10735 * symfile.c (obsavestring): Remove.
10736 * ada-exp.y: Use obstack_copy0, not obsavestring.
10737 * ada-lang.c: Use obstack_copy0, not obsavestring.
10738 * coffread.c: Use obstack_copy0, not obsavestring.
10739 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10740 * dbxread.c: Use obstack_copy0, not obsavestring.
10741 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10742 * jit.c: Use obstack_copy0, not obsavestring.
10743 * mdebugread.c: Use obstack_copy0, not obsavestring.
10744 * psymtab.c: Use obstack_copy0, not obsavestring.
10745 * stabsread.c: Use obstack_copy0, not obsavestring.
10746 * xcoffread.c: Use obstack_copy0, not obsavestring.
10747
10748 2013-01-21 Tom Tromey <tromey@redhat.com>
10749
10750 * dwarf2read.c (fixup_go_packaging): Save package name
10751 on objfile obstack.
10752 * gdbtypes.c (init_type): Don't copy name.
10753
10754 2013-01-21 Tom Tromey <tromey@redhat.com>
10755
10756 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10757 const.
10758 (struct attribute) <u.str>: Now const.
10759 (struct fnfieldlist) <name>: Now const.
10760 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10761 (partial_die_parent_scope): Make return type const.
10762 (partial_die_full_name, add_partial_symbol): Update.
10763 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10764 'name' const.
10765 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10766 (read_file_scope, read_func_scope, dwarf2_add_field)
10767 (dwarf2_add_member_fn, read_structure_type)
10768 (process_enumeration_scope, read_array_type, read_module_type)
10769 (read_base_type, read_subrange_type): Update.
10770 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10771 (new_symbol_full, guess_full_die_structure_name): Update.
10772 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10773 (dwarf2_name): Return const type.
10774 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10775 const.
10776
10777 2013-01-21 Tom Tromey <tromey@redhat.com>
10778
10779 * gdbtypes.c (init_type): Make 'name' const.
10780 * gdbtypes.h (init_type): Update.
10781
10782 2013-01-21 Tom Tromey <tromey@redhat.com>
10783
10784 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10785 (start_symtab): Make 'name' and 'dirname' const. Use
10786 set_last_source_file.
10787 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10788 (last_source_file): Define. Now static.
10789 (set_last_source_file, get_last_source_file): New functions.
10790 * buildsym.h (last_source_file): Don't declare.
10791 (start_symtab): Update.
10792 (set_last_source_file, get_last_source_file): Declare.
10793 * coffread.c (complete_symtab): Use set_last_source_file.
10794 (coff_end_symtab): Likewise.
10795 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10796 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10797 set_last_source_file.
10798 (process_one_symbol): Use get_last_source_file.
10799 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10800 (psymtab_to_symtab_1): Use get_last_source_file.
10801 * xcoffread.c (process_linenos): Use get_last_source_file.
10802 (complete_symtab): Use set_last_source_file.
10803 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10804 (scan_xcoff_symtab): Use set_last_source_file.
10805
10806 2013-01-21 Tom Tromey <tromey@redhat.com>
10807
10808 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10809 (symbol_set_names): Remove casts. Handle field const-ness.
10810
10811 2013-01-21 Tom Tromey <tromey@redhat.com>
10812
10813 * dwarf2read.c (new_symbol_full): Remove cast.
10814 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10815 * symtab.h (symbol_set_demangled_name): Update.
10816
10817 2013-01-21 Tom Tromey <tromey@redhat.com>
10818
10819 * main.c (captured_main): Call bfd_init.
10820
10821 2013-01-21 Tom Tromey <tromey@redhat.com>
10822
10823 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10824 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10825 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10826 * NEWS: Update.
10827
10828 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10829
10830 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10831
10832 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10833
10834 Fix gdb.fortran/common-block.exp crash in PIE mode.
10835 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10836 LOC_COMMON_BLOCK.
10837 * f-valprint.c (info_common_command_for_block): Expect
10838 LOC_COMMON_BLOCK in gdb_assert.
10839 * symtab.h (struct general_symbol_info): Update comment for the
10840 common_block member.
10841 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10842 (enum address_class): New member LOC_COMMON_BLOCK.
10843
10844 2013-01-18 David Blaikie <dblaikie@gmail.com>
10845
10846 * MAINTAINERS (Write After Approval): Add "David Blaikie".
10847
10848 2013-01-18 Tom Tromey <tromey@redhat.com>
10849
10850 PR c++/14999:
10851 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10852 Call require_rvalue.
10853
10854 2013-01-18 Yao Qi <yao@codesourcery.com>
10855
10856 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10857 (dbx_read_symtab): New declaration.
10858 (dbx_psymtab_to_symtab): Delete.
10859 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10860 Rename parameter PST to SELF. Exchanged two parameters.
10861 (start_psymtab): Caller update.
10862 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10863 (dwarf2_read_symtab): New declaration.
10864 (dwarf2_psymtab_to_symtab): Delete.
10865 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10866 Rename parameter PST to SELF. Exchanged two parameters.
10867 (create_partial_symtab): Caller update.
10868 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10869 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10870 Rename parameter PST to SELF. Exchanged two parameters.
10871 (parse_partial_symbols, new_psymtab): Caller update.
10872 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10873 two parameters.
10874 * psymtab.c (psymtab_to_symtab): Caller update.
10875 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10876 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10877 Rename parameter PST to SELF. Exchanged two parameters.
10878 (xcoff_start_psymtab): Caller update.
10879
10880 2013-01-18 Yao Qi <yao@codesourcery.com>
10881
10882 * infrun.c (proceed): Rename local variable 'oneproc' to
10883 'force_step'.
10884
10885 2013-01-17 Doug Evans <dje@google.com>
10886
10887 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10888 (dw2_build_type_unit_groups): Delete. All uses updated.
10889
10890 * symtab.h (struct symbol_search): Add comment.
10891
10892 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10893
10894 * symtab.c (compare_filenames_for_search): New comment for
10895 HAS_DRIVE_SPEC.
10896
10897 2013-01-17 Tom Tromey <tromey@redhat.com>
10898
10899 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10900
10901 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10902
10903 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10904 initialize it by existing make_cleanup. Call new do_cleanups.
10905
10906 2013-01-17 Tom Tromey <tromey@redhat.com>
10907
10908 * cp-abi.c (cp_abi_completer): New function.
10909 (_initialize_cp_abi): Set completer for "set cp-abi".
10910
10911 2013-01-17 Tom Tromey <tromey@redhat.com>
10912
10913 * mem-break.c: Remove obsolete comment.
10914 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10915
10916 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10917
10918 * jit.c (jit_reader_load_command): Interpret the jit reader name
10919 as an absolute path if it begins with a forward slash.
10920
10921 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10922
10923 PR gdb/14550
10924
10925 * jit.c (finalize_symtab): Ensure that only the global block has a
10926 NULL superblock.
10927
10928 2013-01-17 Pedro Alves <palves@redhat.com>
10929
10930 * acinclude.m4: Include ../config/plugins.m4,
10931 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10932 * Makefile.in (aclocal_m4_deps): Update.
10933 * aclocal.m4: Renegerate.
10934
10935 2013-01-16 Doug Evans <dje@google.com>
10936
10937 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10938
10939 2013-01-16 Pedro Alves <palves@redhat.com>
10940 Tom Tromey <tromey@redhat.com>
10941
10942 PR cli/7221:
10943 * NEWS: Add "catch signal".
10944 * breakpoint.c (base_breakpoint_ops): No longer static.
10945 (bpstat_explains_signal): New function.
10946 (init_catchpoint): No longer static.
10947 (base_breakpoint_explains_signal): New function.
10948 (base_breakpoint_ops): Initialize new field.
10949 * breakpoint.h (enum bpstat_signal_value): New.
10950 (struct breakpoint_ops) <explains_signal>: New field.
10951 (bpstat_explains_signal): Remove macro, declare as function.
10952 (base_breakpoint_ops, init_catchpoint): Declare.
10953 * break-catch-sig.c: New file.
10954 * inferior.h (signal_catch_update): Declare.
10955 * infrun.c (signal_catch): New global.
10956 (handle_syscall_event): Update for change to
10957 bpstat_explains_signal.
10958 (handle_inferior_event): Likewise. Always handle random signals
10959 via bpstats.
10960 (signal_cache_update): Check signal_catch.
10961 (signal_catch_update): New function.
10962 (_initialize_infrun): Initialize signal_catch.
10963 * Makefile.in (SFILES): Add break-catch-sig.c.
10964 (COMMON_OBS): Add break-catch-sig.o.
10965
10966 2013-01-16 Tom Tromey <tromey@redhat.com>
10967
10968 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10969 (print_one_catch_solib, print_one_catch_syscall)
10970 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10971 "catch-type".
10972
10973 2013-01-16 Yao Qi <yao@codesourcery.com>
10974
10975 * printcmd.c (current_display_number): Make it static.
10976
10977 2013-01-16 Yao Qi <yao@codesourcery.com>
10978
10979 * infcmd.c (step_once): Don't check '!single_inst' as it was
10980 checked before.
10981
10982 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10983
10984 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10985
10986 2013-01-14 Tom Tromey <tromey@redhat.com>
10987
10988 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10989 set command.
10990 * command.h (add_setshow_string_noescape_cmd): Update.
10991 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10992 (complete_set_gnutarget): New function.
10993 (_initialize_core): Set the "set gnutarget" completer.
10994
10995 2013-01-14 Tom Tromey <tromey@redhat.com>
10996
10997 PR symtab/14442:
10998 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10999 (c_type_print_modifier): Likewise.
11000 * dwarf2read.c (read_tag_restrict_type): New function.
11001 (read_type_die_1): Handle DW_TAG_restrict_type.
11002 * gdbtypes.c (make_restrict_type): New function.
11003 (recursive_dump_type): Handle TYPE_RESTRICT.
11004 * gdbtypes.h (enum type_flag_values): Renumber.
11005 (enum type_instance_flag_value): Add
11006 TYPE_INSTANCE_FLAG_RESTRICT.
11007 (TYPE_RESTRICT): New macro.
11008 (make_restrict_type): Declare.
11009
11010 2013-01-14 Tom Tromey <tromey@redhat.com>
11011
11012 PR symtab/14931:
11013 * psymtab.c (struct psymtab_state): New.
11014 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11015 functions.
11016 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11017 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11018
11019 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
11020 Pedro Alves <palves@redhat.com>
11021
11022 PR remote/14786
11023
11024 * remote.c (remote_threads_info): Make a copy of the reply from
11025 qfThreadInfo and use that instead of rs->buf.
11026
11027 2013-01-14 Yao Qi <yao@codesourcery.com>
11028
11029 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11030 (dbx_psymtab_to_symtab): Likewise.
11031 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11032 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11033 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11034
11035 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11036
11037 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11038 make_cleanup_restore_current_language. Call set_language. Move
11039 OLD_CHAIN and INNER_CHAIN cleanups.
11040 * utils.c (do_restore_current_language)
11041 (make_cleanup_restore_current_language): New functions.
11042 * utils.h (make_cleanup_restore_current_language): New declaration.
11043
11044 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11045
11046 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11047 non-existing files.
11048
11049 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11050 non-existing files if FILENAME is already absolute.
11051
11052 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11053
11054 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11055 fputs_filtered. Append trailing newline.
11056
11057 2013-01-11 Yao Qi <yao@codesourcery.com>
11058 Stan Shebs <stan@codesourcery.com>
11059
11060 * psymtab.c (init_psymbol_list): Clarify the comment.
11061
11062 2013-01-11 Yao Qi <yao@codesourcery.com>
11063
11064 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11065 (update_dprintf_command_list): Assert that 'printf_line' is
11066 non-null. Remove condition check.
11067
11068 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11069
11070 Code cleanup.
11071 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11072 type const char *.
11073 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11074 const char *.
11075 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11076
11077 2013-01-09 Anthony Green <green@moxielogic.com>
11078
11079 * cp-abi.c (cplus_print_vtable): Don't return value from void
11080 function.
11081 * ada-lang.c (re_set_catch_assert): Ditto.
11082
11083 2013-01-09 Doug Evans <dje@google.com>
11084
11085 * symfile.h (quick_symbol_functions): Delete member
11086 pre_expand_symtabs_matching. All uses removed.
11087 * dwarf2read.c (dw2_lookup_symbol): Implement.
11088 (dw2_do_expand_symtabs_matching): Delete.
11089 (dw2_pre_expand_symtabs_matching): Delete.
11090 (struct dw2_symtab_iterator): New type.
11091 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11092 (dw2_expand_symtabs_for_function): Rewrite.
11093 (dwarf2_gdb_index_functions): Update.
11094 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11095 (psym_functions): Update.
11096
11097 2013-01-09 Tom Tromey <tromey@redhat.com>
11098
11099 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11100 * configure: Rebuild.
11101 * configure.ac: Add somread.o to the build if BFD has SOM
11102 support.
11103 * somread.c: Include som/aout.h, not syms.h.
11104 (som_symtab_read): Use som_external_symbol_dictionary_record.
11105 Unpack records manually.
11106 (_initialize_somread): Declare.
11107
11108 2012-01-08 Mike Frysinger <vapier@gentoo.org>
11109
11110 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11111 Cast return_address to 64bits.
11112
11113 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
11114
11115 * printcmd.c: Remove define of function output_command.
11116 * tracepoint.c: Remove extern of function output_command.
11117 * valprint.h: (output_command): New extern.
11118
11119 2013-01-07 Tom Tromey <tromey@redhat.com>
11120
11121 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11122 Remove.
11123 (objc_language_defn): Use c_printchar, c_printstr,
11124 c_emit_char.
11125
11126 2013-01-07 Tom Tromey <tromey@redhat.com>
11127
11128 PR cli/7719:
11129 * NEWS: Update.
11130 * ada-valprint.c (printstr, print_field_values): Remove
11131 "inspect_it" code.
11132 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11133 code.
11134 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11135 code.
11136 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11137 * main.c (captured_main): Remove "epoch" argument.
11138 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11139 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11140 * p-valprint.c (pascal_object_print_value_fields): Remove
11141 "inspect_it" code.
11142 * printcmd.c (print_command_1): Remove 'inspect' argument.
11143 (print_command, call_command): Update.
11144 (inspect_command): Remove.
11145 (_initialize_printcmd): Make "inspect" an alias for "print".
11146 * top.c (epoch_interface): Remove.
11147 * top.h (epoch_interface): Remove.
11148 * valprint.c (user_print_options): Update.
11149 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11150 * valprint.h (struct value_print_options) <inspect_it>: Remove
11151 field.
11152
11153 2013-01-04 Tom Tromey <tromey@redhat.com>
11154
11155 * valprint.h (read_string): Add 'extern'.
11156
11157 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11158
11159 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11160 used to decide whether to define darwin_read_dyld_info or not.
11161
11162 2013-01-03 Pierre Muller <muller@sourceware.org>
11163
11164 * main.c (relocate_gdb_directory): Avoid calling stat function
11165 if DIR is empty.
11166
11167 2013-01-03 Yao Qi <yao@codesourcery.com>
11168
11169 * psymtab.c (fixup_psymbol_section): Update declaration.
11170 (fixup_psymbol_section): Remove code returning value.
11171
11172 2013-01-03 Yao Qi <yao@codesourcery.com>
11173
11174 * symtab.h: Remove some out of date comments.
11175 (enum exception_event_kind): Move it ...
11176 * breakpoint.c: ... here.
11177
11178 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11179
11180 PR gdb/14405
11181 * darwin-nat.c (darwin_read_dyld_info): Only build if
11182 TASK_DYLD_INFO_COUNT is defined.
11183 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11184 TASK_DYLD_INFO_COUNT is defined.
11185
11186 2013-01-02 Tom Tromey <tromey@redhat.com>
11187
11188 * symfile.h (struct ecoff_debug_hack): Remove.
11189 * objfiles.c: Don't include mdebugread.h.
11190
11191 2013-01-02 Tom Tromey <tromey@redhat.com>
11192
11193 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11194 * configure.ac: Check for Mach-O support in BFD. Update
11195 CONFIG_OBS.
11196 * configure: Rebuild.
11197
11198 2013-01-02 Tom Tromey <tromey@redhat.com>
11199
11200 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11201 * configure.ac: Use GDB_AC_CHECK_BFD.
11202 * configure: Rebuild.
11203
11204 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11205
11206 * MAINTAINERS: Update my email.
11207
11208 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11209
11210 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11211
11212 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11213
11214 * rs6000-nat.c (bss_data_overlap): New function.
11215 (vmap_symtab): Use it to adjust the .bss section's offset.
11216
11217 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11218
11219 Update year range in copyright notice of all files.
11220
11221 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11222
11223 * top.c (print_gdb_version): Update copyright year.
11224
11225 For older changes see ChangeLog-2012.
11226 \f
11227 Local Variables:
11228 mode: change-log
11229 left-margin: 8
11230 fill-column: 74
11231 version-control: never
11232 coding: utf-8
11233 End:
This page took 0.274584 seconds and 4 git commands to generate.