1 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * s390-tdep.h: Rename to...
4 * s390-linux-tdep.h: ...here.
5 * s390-tdep.c: Rename to...
6 * s390-linux-tdep.c: ...here. Adjust #include.
7 * s390-nat.c: Rename to...
8 * s390-linux-nat.c: ...here. Adjust #include.
9 * config/s390/s390.mh: Rename to...
10 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
12 * configure.host: Reflect host rename "s390" -> "linux".
13 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
14 * Makefile.in (ALL_TARGET_OBS): Likewise.
15 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
17 (ALLDEPFILES): Reflect rename of .c files.
19 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
21 * s390-nat.c: Whitespace cleanup.
22 * s390-tdep.c: Likewise.
23 * s390-tdep.h: Remove empty line at end of file.
25 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
27 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
30 2013-10-29 Tom Tromey <tromey@redhat.com>
32 * utils.c (reg): Move undefinition...
33 * gdb_curses.h: ... here. Update comment to mention AIX.
35 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
37 * exec.h (add_target_sections_of_objfile): New declaration.
38 * exec.c (add_target_sections_of_objfile): New function.
39 * symfile.c (add_symbol_file_command): Update current target sections.
40 (remove_symbol_file_command): New command.
41 (symfile_free_objfile): New function.
42 (_initialize_symfile): Register observer for free_objfile events.
43 * NEWS: Add description of the remove-symbol-file command.
44 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
45 * objfiles.c (free_objfile): Notify free_objfile.
46 (is_addr_in_objfile): New function.
47 * objfiles.h (is_addr_in_objfile): New declaration.
48 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
49 events instead of solib_unloaded events.
50 (_initialize_printcmd): Register observer for free_objfile instead
51 of solib_unloaded notifications.
52 * solib.c (remove_user_added_objfile): New function.
53 (_initialize_symfile): Add remove-symbol-file.
55 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
57 * infcmd.c (default_print_one_register_info): Use val_print to
58 print all values even optimized out or unavailable ones. Don't
59 try to print a raw form of optimized out or unavailable values.
61 2013-10-29 Yao Qi <yao@codesourcery.com>
63 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
64 parameter 'arg' instead of from program_space_data.
65 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
66 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
67 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
68 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
69 * inflow.c (inflow_inferior_data_cleanup): Get data from
70 parameter 'arg' instead of inferior_data.
71 * registry.h: Add comments.
73 2013-10-28 Pedro Alves <palves@redhat.com>
75 * breakpoint.c (watchpoints_triggered)
76 <!target_stopped_data_address>: Hardcode return 1.
78 2013-10-28 Pedro Alves <palves@redhat.com>
80 * infrun.c (process_event_stop_test): Remove unnecessary scoping
83 2013-10-28 Pedro Alves <palves@redhat.com>
85 * infrun.c (process_event_stop_test): New function, factored out
86 from handle_inferior_event.
87 (handle_inferior_event): 'process_event_stop_test' is now a
88 function instead of a goto label -- adjust.
90 2013-10-28 Pedro Alves <palves@redhat.com>
92 * infrun.c (handle_inferior_event): Move process_event_stop_test
93 goto label to the else branch of the ecs->random_signal check,
94 along with FRAME and GDBARCH re-fetching.
96 2013-10-28 Pedro Alves <palves@redhat.com>
98 * infrun.c (switch_back_to_stepped_thread): New function, factored
99 out from handle_inferior_event.
100 (handle_inferior_event): Adjust to call
101 switch_back_to_stepped_thread. Call it also at the tail of the
102 random signal handling, and return, instead of also handling
103 random signals just before the stepping tests.
105 2013-10-28 Pedro Alves <palves@redhat.com>
107 * infrun.c (clear_stop_func): Delete.
108 (handle_inferior_event): Don't call clear_stop_func and don't
109 clear 'ecs->random_signal'.
111 2013-10-27 Yao Qi <yao@codesourcery.com>
113 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
114 (varobj_create, varobj_get_path_expr): Update.
115 (varobj_value_has_mutated, varobj_update): Likewise.
116 (create_child_with_value, new_root_variable): Likewise.
117 (number_of_children, name_of_variable): Likewise.
118 (value_of_child, my_value_of_variable): Likewise.
119 (varobj_value_is_changeable_p): Likewise.
121 2013-10-25 Yao Qi <yao@codesourcery.com>
123 * language.h (struct lang_varobj_ops): Declare.
124 (struct language_defn) <la_varobj_ops>: New field.
125 * ada-lang.c: Include "varobj.h"
126 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
128 * c-lang.c: Include "varobj.h"
129 (c_language_defn): Initialize field 'la_varobj_ops' with
131 (cplus_language_defn): Initialize field 'la_varobj_ops' with
133 (asm_language_defn): Initialize field 'la_varobj_ops' with
135 (minimal_language_defn): Likewise.
136 * d-lang.c (d_language_defn): Likewise.
137 * f-lang.c (f_language_defn): Likewise.
138 * go-lang.c (go_language_defn): Likewise.
139 * m2-lang.c (m2_language_defn): Likewise.
140 * objc-lang.c (objc_language_defn): Likewise.
141 * opencl-lang.c (opencl_language_defn): Likewise.
142 * p-lang.c (pascal_language_defn): Likewise.
143 * language.c (unknown_language_defn): Likewise.
144 (auto_language_defn): Likewise.
145 (local_language_defn): Likewise.
146 * jv-lang.c (java_language_defn): Initialize field
147 'la_varobj_ops' with java_varobj_ops.
148 * varobj.c (varobj_create): Update.
149 * varobj.h (default_varobj_ops): Define macro.
151 2013-10-25 Pedro Alves <palves@redhat.com>
153 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
155 (cp_print_static_field): If the value is entirely optimized out,
156 print <optimized out> here.
157 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
159 * p-valprint.c (pascal_object_print_static_field): If the value is
160 entirely optimized out, print <optimized out> here.
161 * valops.c (do_search_struct_field)
162 (value_struct_elt_for_reference): No longer handle a NULL static
164 * value.c (value_static_field): Return an optimized out value
167 2013-10-25 Yao Qi <yao@codesourcery.com>
169 * remote.c (remote_traceframe_info): Return early if
170 traceframe is not selected.
172 2013-10-25 Yao Qi <yao@codesourcery.com>
174 * tracepoint.c (traceframe_fun): Remove.
175 (traceframe_sal): Remove.
176 (set_traceframe_context): Add local variables.
178 2013-10-25 Joel Brobecker <brobecker@adacore.com>
180 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
183 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
185 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
186 failure from register information collection.
188 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
190 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
192 (linux_corefile_thread_callback): Update accordingly.
193 (linux_make_corefile_notes): Likewise.
195 2013-10-24 Pedro Alves <palves@redhat.com>
197 * NEWS (New options): Mention set/show startup-with-shell.
198 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
200 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
202 (show_startup_with_shell): New function.
203 (_initialize_fork_child): Register the set/show startup-with-shell
205 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
206 * inf-ttrace.c (inf_ttrace_him): Remove comment.
207 * procfs.c (procfs_init_inferior): Remove comment.
208 * infcmd.c (startup_with_shell): New global.
209 * inferior.h (startup_with_shell): Declare global.
210 (STARTUP_WITH_SHELL): Delete.
211 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
213 2013-10-23 Pedro Alves <palves@redhat.com>
215 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
216 * common/signals.c: Include "gdb_assert.h".
217 (signals): New field 'symbol'.
218 (SET): Use the 'symbol' parameter.
219 (gdb_signal_to_symbol_string): New function.
220 * infrun.c (handle_inferior_event) <random signal>: In debug
221 output, print the random signal enum as string in addition to its
223 * target/waitstatus.c (target_waitstatus_to_string): Print the
224 signal's enum value as string instead of the (POSIX) signal name.
226 2013-10-23 Gary Benson <gbenson@redhat.com>
229 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
230 from 32 to 18. Adjusted fscanf format string accordingly.
231 (Avoids leaving cmd unterminated.)
232 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
233 trun, retn or extra. (Avoids leaving extra unterminated.) Check
234 that local_address and remote_address will not overflow.
235 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
236 leaving dependencies unterminated. Parse size as "%u" to match
239 2013-10-22 Pedro Alves <palves@redhat.com>
241 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
242 set ecs->random signal.
244 2013-10-22 Pedro Alves <palves@redhat.com>
246 * infrun.c (keep_going): Update comments.
248 2013-10-22 Pedro Alves <palves@redhat.com>
250 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
251 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
253 2013-10-22 Pedro Alves <palves@redhat.com>
255 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
257 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
258 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
259 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
260 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
261 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
262 (GDB_SIGNAL_LAST): Change description string.
263 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
264 Adjust to signal renaming.
265 * darwin-nat.c (darwin_decode_message): Likewise.
267 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
269 * MAINTAINERS (Write After Approval): Add myself to the list.
271 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
273 * breakpoint.c (update_watchpoint): If hardware watchpoints are
274 forced off, downgrade them to software watchpoints if possible,
275 and error out if not possible.
276 (watch_command_1): Move watchpoint type selection closer to
277 watchpoint creation, and extend the comments.
279 2013-10-18 Pedro Alves <palves@redhat.com>
282 * infrun.c (handle_inferior_event): Keep going if we got a random
283 signal we should not stop for, instead of falling through to the
286 2013-10-18 Yao Qi <yao@codesourcery.com>
288 * c-varobj.c (cplus_number_of_children): Fix indentation.
290 2013-10-17 Tom Tromey <tromey@redhat.com>
293 * printcmd.c (printcmd): Call gdb_flush.
295 2013-10-17 Tom Tromey <tromey@redhat.com>
297 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
298 (elf_locate_sections): Update.
300 2013-10-17 Yao Qi <yao@codesourcery.com>
302 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
303 * ada-varobj.c: Remove the include of ada-varobj.h.
304 (ada_varobj_get_number_of_children): Declare.
305 (ada_varobj_get_name_of_child): Make it static.
306 (ada_varobj_get_path_expr_of_child): Likewise.
307 (ada_varobj_get_value_of_child): Likewise.
308 (ada_varobj_get_type_of_child): Likewise.
309 (ada_varobj_get_value_of_array_variable): Likewise.
310 * ada-varobj.h: Remove.
312 2013-10-17 Yao Qi <yao@codesourcery.com>
314 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
315 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
316 * ada-varobj.c: Include "varobj.h".
317 (ada_number_of_children): New. Moved from varobj.c.
318 (ada_name_of_variable, ada_name_of_child): Likewise.
319 (ada_path_expr_of_child, ada_value_of_child): Likewise.
320 (ada_type_of_child, ada_value_of_variable): Likewise.
321 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
322 (ada_varobj_ops): New.
323 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
324 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
325 * gdbtypes.h (get_target_type): Declare.
326 * varobj.c: Remove the inclusion of "ada-varobj.h" and
328 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
329 (ANONYMOUS_UNION_NAME): Likewise.
330 (get_type, get_value_type, get_target_type): Remove declarations.
331 (value_get_print_value, varobj_value_get_print_value): Likewise.
332 (c_number_of_children, c_name_of_variable): Likewise.
333 (c_name_of_child, c_path_expr_of_child): Likewise.
334 (c_value_of_child, c_type_of_child): Likewise.
335 (c_value_of_variable, cplus_number_of_children): Likewise.
336 (cplus_class_num_children, cplus_name_of_variable): Likewise.
337 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
338 (cplus_value_of_child, cplus_type_of_child): Likewise.
339 (cplus_value_of_variable, java_number_of_children): Likewise.
340 (java_name_of_variable, java_name_of_child): Likewise.
341 (java_path_expr_of_child, java_value_of_child): Likewise.
342 (java_type_of_child, java_value_of_variable): Likewise.
343 (ada_number_of_children, ada_name_of_variable): Likewise.
344 (ada_name_of_child, ada_path_expr_of_child): Likewise.
345 (ada_value_of_child, ada_type_of_child): Likewise.
346 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
347 (ada_value_has_mutated): Likewise.
348 (struct language_specific): Move it to varobj.h.
349 (CPLUS_FAKE_CHILD): Move it to varobj.h.
350 (restrict_range): Rename it varobj_restrict_range. Make it extern.
352 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
354 (is_anonymous_child): Move it to c-varobj.c and rename to
355 varobj_is_anonymous_child. Caller update.
356 (get_type): Move it to c-varobj.c.
357 (get_value_type): Rename it varobj_get_value_type. Make it
359 (get_target_type): Move it gdbtypes.c.
360 (varobj_formatted_print_options): New function.
361 (value_get_print_value): Rename it to
362 varobj_value_get_print_value and make it extern.
363 (varobj_value_is_changeable_p): Make it extern.
364 (adjust_value_for_child_access): Move it to c-varobj.c.
365 (default_value_is_changeable_p): Rename it to
366 varobj_default_value_is_changeable_p. Make it extern.
367 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
368 (c_name_of_child, c_path_expr_of_child): Likewise.
369 (c_value_of_child, c_type_of_child): Likewise.
370 (c_value_of_variable, cplus_number_of_children): Likewise.
371 (cplus_class_num_children, cplus_name_of_variable): Likewise.
372 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
373 (cplus_value_of_child, cplus_type_of_child): Likewise.
374 (cplus_value_of_variable): Likewise.
375 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
376 (java_name_of_child, java_path_expr_of_child): Likewise.
377 (java_value_of_child, java_type_of_child): Likewise.
378 (java_value_of_variable): Likewise.
379 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
380 (ada_name_of_child, ada_path_expr_of_child): Likewise.
381 (ada_value_of_child, ada_type_of_child): Likewise.
382 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
383 (ada_value_has_mutated): Likewise.
384 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
385 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
386 (c_varobj_ops, cplus_varobj_ops): Declare.
387 (java_varobj_ops, ada_varobj_ops): Declare.
388 (varobj_default_value_is_changeable_p): Declare.
389 (varobj_value_is_changeable_p): Declare.
390 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
391 (varobj_get_path_expr_parent): Declare.
392 (varobj_value_get_print_value): Declare.
393 (varobj_formatted_print_options): Declare.
394 (varobj_restrict_range): Declare.
396 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
398 * target/waitstatus.h (target_waitkind): Remove spurious
399 character from the comments.
401 2013-10-17 Joel Brobecker <brobecker@adacore.com>
403 * gdbarch.sh (get_longjmp_target): Add method documentation.
404 * gdbarch.h: Regenerate.
406 2013-10-16 Tom Tromey <tromey@redhat.com>
408 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
411 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
413 * gcore.in: Call GDB using the full path to the gcore script.
414 Error out if the GDB binary is not found.
416 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
419 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
422 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
425 * target.c (target_disable_btrace): Fix invalid return value for
427 (target_teardown_btrace): Likewise.
429 2013-10-14 Yao Qi <yao@codesourcery.com>
431 * varobj.c (struct varobj): Move most of the fields to
433 (struct varobj_dynamic): New struct.
434 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
435 (varobj_has_more): Likewise.
436 (dynamic_varobj_has_child_method): Likewise.
437 (update_dynamic_varobj_children): Likewise.
438 (varobj_get_num_children): Likewise.
439 (varobj_list_children, varobj_pretty_printed_p): Likewise.
440 (install_new_value_visualizer): Likewise.
441 (install_new_value_visualizer, install_new_value): Likewise.
442 (varobj_update, new_variable, free_variable): Likewise.
443 (my_value_of_variable, value_get_print_value): Likewise.
444 (install_visualizer): Change the type of parameter 'var' to
445 'struct varobjd_dynamic *'. Callers update.
446 * varobj.h (struct varobj): Moved from varobj.c.
447 (struct varobj) <dynamic>: New field.
449 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
451 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
452 as the preferred name of r30.
453 * nios2-linux-tdep.c (reg_offsets): Likewise.
454 * features/nios2-cpu.xml: Likewise.
455 * features/nios2-linux.c: Regenerated.
456 * features/nios2.c: Regenerated.
457 * regformats/nios2-linux.dat: Regenerated.
459 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
461 Canonicalize directories for EXEC_FILENAME.
462 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
464 * utils.c (gdb_realpath_keepfile): New function.
465 * utils.h (gdb_realpath_keepfile): New declaration.
467 2013-10-11 Doug Evans <dje@google.com>
469 * Makefile.in (GDBFLAGS): New variable.
472 2013-10-11 Joel Brobecker <brobecker@adacore.com>
474 * NEWS: Add entry documenting the new "-catch-assert" and
475 "-catch-exception" GDB/MI commands.
477 2013-10-11 Joel Brobecker <brobecker@adacore.com>
479 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
481 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
482 "enabled". Set B->ENABLE_STATE accordingly.
483 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
485 (create_ada_exception_catchpoint): Add declaration.
486 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
487 (create_ada_exception_catchpoint): Make non-static. Add new
488 parameter "disabled". Use it in call to
489 init_ada_exception_breakpoint.
490 (catch_ada_exception_command): Add parameter "enabled" in call
491 to create_ada_exception_catchpoint.
492 (catch_assert_command): Likewise.
494 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
496 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
497 "catch-exception" commands.
498 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
499 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
501 2013-10-11 Joel Brobecker <brobecker@adacore.com>
503 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
504 "enum exception_catchpoint_kind". Replace the "ex_" prefix
505 of all its enumerates with "ada_". Update the rest of this
508 2013-10-11 Joel Brobecker <brobecker@adacore.com>
510 * ada-lang.c (ada_decode_exception_location): Delete.
511 (create_ada_exception_catchpoint): Remove arguments "sal",
512 "addr_string" and "ops". Add argument "ex_kind" instead.
513 Adjust implementation accordingly, calling ada_exception_sal
514 to get the entities it no longer gets passed as arguments.
515 Document the function's arguments.
516 (catch_ada_exception_command): Use catch_ada_exception_command_split
517 instead of ada_decode_exception_location, and update call to
518 create_ada_exception_catchpoint.
519 (catch_ada_assert_command_split): Renames
520 ada_decode_assert_location. Remove parameters "addr_string" and
521 "ops", and now returns void. Adjust implementation accordingly.
522 Update the function documentation.
523 (catch_assert_command): Use catch_ada_assert_command_split
524 instead of ada_decode_assert_location. Update call to
525 create_ada_exception_catchpoint.
527 2013-10-11 Joel Brobecker <brobecker@adacore.com>
529 * utils.h (perror_warning_with_name): Add declaration.
530 * utils.c (perror_warning_with_name): New function.
531 * cli/cli-cmds.c (source_script_with_search): Add call to
532 perror_warning_with_name if from_tty is nul.
534 2013-10-11 Joel Brobecker <brobecker@adacore.com>
536 * utils.c (perror_string): New function, extracted out of
537 throw_perror_with_name.
538 (throw_perror_with_name): Rework to use perror_string.
540 2013-10-11 Yao Qi <yao@codesourcery.com>
542 * remote.c (discard_pending_stop_replies_in_queue): Update
544 (struct stop_reply) <rs>: New field.
545 (remove_stop_reply_of_remote_state): New function.
546 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
547 Callers update. Pass remove_stop_reply_of_remote_state to
549 (remote_parse_stop_reply): Initialize field 'rs'.
551 2013-10-10 Will Newton <will.newton@linaro.org>
553 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
556 2013-10-10 Joel Brobecker <brobecker@adacore.com>
558 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
559 serial_baud_show_cmd.
560 (_initialize_cli_cmds): Delete the code creating the
561 "set/show remotebaud" commands.
562 * serial.c (baud_rate): Move here from top.c.
563 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
564 (_initialize_serial): Create "set/show serial baud" commands.
565 Add "set/show remotebaud" command aliases.
566 * top.c (baud_rate): Moved to serial.c.
567 * NEWS: Document the new "set/show serial baud" commands,
568 replacing "set/show remotebaud".
570 2013-10-09 Pedro Alves <palves@redhat.com>
572 * breakpoint.c (insert_bp_location): Use memory_error_message to
573 build the memory error string.
574 * c-lang.c: Include "gdbcore.h".
575 (c_get_string): Use memory_error to throw error.
576 (target_xfer_memory_error): Delete.
577 (memory_error_message): New, factored out from
578 target_xfer_memory_error.
579 (memory_error): Change parameter type to target_xfer_error.
581 (read_memory): Use memory_error instead of
582 target_xfer_memory_error.
583 * gdbcore.h: Include "target.h".
584 (memory_error): Change parameter type to target_xfer_error.
585 (memory_error_message): Declare function.
586 * target.c (target_read_memory, target_read_stack)
587 (target_write_memory, target_write_raw_memory): Return
588 TARGET_XFER_E_IO on error. Adjust comments.
589 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
591 * target.h (target_read, target_insert_breakpoint)
592 (target_remove_breakpoint): Adjust comments.
593 * valprint.c (partial_memory_read): Rename parameter, and adjust
595 (val_print_string): Use memory_error_message to build the memory
598 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
600 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
601 result variable. Rename variable fopen_e_ever_failed to
602 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
604 2013-10-09 Pedro Alves <palves@redhat.com>
606 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
607 (monitor_write_memory_longlongs, monitor_write_memory_block):
608 Constify 'myaddr' parameter.
609 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
611 (monitor_xfer_partial): New function.
612 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
613 hook. Install a to_xfer_partial hook.
615 2013-10-09 Tom Tromey <tromey@redhat.com>
617 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
618 bfd_get_alt_debug_link_info.
620 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
622 New flag OBJF_NOT_FILENAME.
623 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
624 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
626 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
627 symbol_file_add_from_bfd.
628 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
630 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
632 * objfiles.h (OBJF_NOT_FILENAME): New.
634 2013-10-08 Tom Tromey <tromey@redhat.com>
636 * Makefile.in (SFILES): Add build-id.c.
637 (HFILES_NO_SRCDIR): Add build-id.h.
638 * build-id.c: New file, largely from elfread.c. Modified
640 * build-id.h: New file.
641 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
642 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
643 Search for dwz file using build-id.
644 * elfread.c (build_id_bfd_get, build_id_verify)
645 (build_id_to_debug_filename, find_separate_debug_file): Remove.
647 2013-10-08 Joel Brobecker <brobecker@adacore.com>
649 * ada-lang.c (compare_names_with_case): Renamed from
650 compare_names, adding a new parameter "casing" and its handling.
651 New function documentation.
652 (compare_names): New function, implemented using
653 compare_names_with_case.
655 2013-10-08 Joel Brobecker <brobecker@adacore.com>
657 * ada-lang.c (ada_exception_sal): Remove advance declaration.
659 2013-10-07 Tom Tromey <tromey@redhat.com>
661 * objfiles.c (free_objfile_per_bfd_storage): Delete the
662 demangled_names_hash.
663 (free_objfile): Don't delete the demangled_names_hash.
664 * objfiles.h (struct objfile_per_bfd_storage)
665 <demangled_names_hash>: New field.
666 (struct objfile) <demangled_names_hash>: Move to
667 objfile_per_bfd_storage.
668 * symfile.c (reread_symbols): Don't delete the
669 demangled_names_hash.
670 * symtab.c (create_demangled_names_hash): Update.
671 (symbol_set_names): Update.
673 2013-10-07 Tom Tromey <tromey@redhat.com>
675 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
676 needs_relocations>: New fields.
677 (gdb_bfd_requires_relocations): New function.
678 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
679 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
680 the BFD needs relocations applied.
682 2013-10-07 Pedro Alves <palves@redhat.com>
685 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
686 the thread list" instead of "gone".
688 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
690 * NEWS: Mention new convenience variable $_exitsignal.
691 * corelow.c (core_open): Reset exit convenience variables. Set
692 $_exitsignal to the uncaught signal which generated the corefile.
693 * infrun.c (handle_inferior_event): Reset exit convenience
694 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
695 (clear_exit_convenience_vars): New function.
696 * inferior.h (clear_exit_convenience_vars): New prototype.
698 2013-10-06 Yao Qi <yao@codesourcery.com>
700 * varobj.h: Add comments to enum varobj_languages.
702 2013-10-04 Doug Evans <dje@google.com>
704 Add support for DWP file format version 2.
705 * NEWS: Mention support for DWP file format version 2.
706 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
707 union of asection, containing_section. New fields virtual_offset
708 and is_virtual. Change type of readin filed from int to char.
709 (dwo_sections, dwo_file): Tweak comments.
710 (dwp_v2_section_ids): New enum.
711 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
713 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
715 (virtual_v2_dwo_sections): New struct.
716 (dwp_hash_table): New fields version, nr_columns. Change type of
717 section_pool field to a union.
718 (dwp_file): New field version.
719 (dwarf2_has_info): Check for virtual sections.
720 (get_containing_section): New function.
721 (get_section_bfd_owner, get_section_bfd_section): Call it.
722 (dwarf2_locate_sections): Update.
723 (dwarf2_section_empty_p): Update.
724 (dwarf2_read_section): Handle virtual sections.
725 (locate_dwz_sections): Update.
726 (create_dwp_hash_table): Document and handle V2 format.
727 (locate_v1_virtual_dwo_sections): Renamed from
728 locate_virtual_dwo_sections and update. All callers updated.
729 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
730 Delete arg htab. Rename arg section_index to unit_index.
732 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
734 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
735 (lookup_dwo_unit_in_dwp): Add V2 support.
736 (dwarf2_locate_dwo_sections): Update.
737 (dwarf2_locate_common_dwp_sections): Renamed from
738 dwarf2_locate_dwp_sections and update. All callers updated.
739 (dwarf2_locate_v2_dwp_sections): New function.
740 (open_and_init_dwp_file): Add V2 support.
741 (read_str_index): New locals str_section, str_offsets_section.
743 2013-10-04 Pedro Alves <palves@redhat.com>
745 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
746 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
747 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
748 describing comments with references to ptid.h.
749 * common/ptid.h: Remove intro description of constructors,
750 accessors and predicates.
751 (struct ptid): Reformat.
752 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
753 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
756 2013-10-04 Joel Brobecker <brobecker@adacore.com>
758 * aix-thread.c (sync_threadlists): Add missing ')' in call
761 2013-10-04 Joel Brobecker <brobecker@adacore.com>
763 * procfs.c (procfs_init_inferior): Fix typo causing the build
766 2013-10-04 Joel Brobecker <brobecker@adacore.com>
768 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
770 2013-10-04 Joel Brobecker <brobecker@adacore.com>
772 * mi/mi-main.c (run_one_inferior): Add function description.
773 Make ARG a pointer to an integer whose value determines whether
774 we should "run" or "start" the program.
775 (mi_cmd_exec_run): Add handling of the "--start" option.
776 Reject all other command-line options.
777 * NEWS: Add entry for "-exec-run"'s new "--start" option.
779 2013-10-04 Yao Qi <yao@codesourcery.com>
781 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
782 (struct notif_client) <pending_event>: Moved
783 to struct remote_notif_state.
785 (struct remote_notif_state) <pending_event>: New field.
786 (notif_event_xfree): Declare.
787 * remote-notif.c (handle_notification): Adjust.
788 (notif_event_xfree): New function.
789 (do_notif_event_xfree): Call notif_event_xfree.
790 (remote_notif_state_xfree): Call notif_event_xfree to free
791 each element in field pending_event.
792 * remote.c (discard_pending_stop_replies): Remove declaration.
793 (discard_pending_stop_replies_in_queue): Declare.
794 (remote_close): Call discard_pending_stop_replies_in_queue
795 instead of discard_pending_stop_replies.
796 (remote_start_remote): Adjust.
797 (stop_reply_xfree): Call notif_event_xfree.
798 (notif_client_stop): Adjust initialization.
799 (remote_notif_remove_all): Rename it to ...
800 (remove_stop_reply_for_inferior): ... this. Update comments.
801 Don't check INF is NULL.
802 (discard_pending_stop_replies): Return early if notif_state is
803 NULL. Adjust. Don't check INF is NULL.
804 (remote_notif_get_pending_events): Adjust.
805 (discard_pending_stop_replies_in_queue): New function.
806 (remote_wait_ns): Likewise.
808 2013-10-04 Yao Qi <yao@codesourcery.com>
810 * remote-notif.c (DECLARE_QUEUE_P): Remove.
811 (notif_queue): Remove.
812 (remote_notif_process): Add one parameter 'notif_queue'.
813 Update comments. Callers update.
814 (remote_async_get_pending_events_token): Remove.
815 (remote_notif_register_async_event_handler): Remove.
816 (remote_notif_unregister_async_event_handler): Remove.
817 (handle_notification): Add parameter 'notif_queue'. Update
818 comments. Callers update.
819 (notif_xfree): Remove.
820 (remote_notif_state_allocate): New function.
821 (remote_notif_state_xfree): New function.
822 (_initialize_notif): Remove code to allocate queue.
823 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
824 (struct remote_notif_state): New.
825 (handle_notification): Update declaration.
826 (remote_notif_process): Likewise.
827 (remote_notif_register_async_event_handler): Remove.
828 (remote_notif_unregister_async_event_handler): Remove.
829 (remote_notif_state_allocate): Declare.
830 (remote_notif_state_xfree): Declare.
831 * remote.c (struct remote_state) <notif_state>: New field.
832 (remote_close): Don't call
833 remote_notif_unregister_async_event_handler. Call
834 remote_notif_state_xfree.
835 (remote_open_1): Don't call
836 remote_notif_register_async_event_handler. Call
837 remote_notif_state_allocate.
839 2013-10-04 Yao Qi <yao@codesourcery.com>
841 * varobj.c (create_child_with_value): Remove 'const' from the
842 type of parameter 'name'.
843 (varobj_add_child): Likewise.
844 (install_dynamic_child): Remove 'const' from the type of
846 (varobj_add_child): Likewise.
847 (create_child_with_value): Likewise. Update comments. Don't
849 (update_dynamic_varobj_children): Duplicate 'name'
850 and pass it to install_dynamic_child.
852 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
854 * python/py-value.c (convert_value_from_python): Move PyInt_Check
855 conversion logic to occur after PyLong_Check. Comment on order
857 * python/py-arch.c (archpy_disassemble): Comment on order of
858 conversion for integers and longs.
860 2013-10-03 Pedro Alves <palves@redhat.com>
862 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
863 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
864 functions. Always test for PTRACE_O_TRACESYSGOOD even if
865 PTRACE_O_TRACEFORK is not supported.
866 (linux_test_for_tracesysgood): New function.
867 (linux_test_for_tracefork): New function, factored out from
868 linux_check_ptrace_features, and also don't kill child_pid here.
870 2013-10-03 Tristan Gingold <gingold@adacore.com>
872 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
873 Remove verbose error reporting. Use detected state to
874 thread_set_state call.
875 (i386_darwin_dr_get): Fix return type. Remove verbose error
877 Remove trailing spaces.
879 2013-10-02 Pedro Alves <palves@redhat.com>
881 * cp-valprint.c (cp_print_value_fields): Adjust calls to
882 val_print_optimized_out.
883 * jv-valprint.c (java_print_value_fields): Likewise.
884 * p-valprint.c (pascal_object_print_value_fields): Likewise.
885 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
886 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
887 new optimized out value.
888 * findvar.c (address_from_register): Likewise.
889 * frame.c (put_frame_register): Tweak error string to say the
890 register was not saved, rather than optimized out.
891 * infcmd.c (default_print_one_register_info): Adjust call to
892 val_print_optimized_out. Use value_of_register instead of
893 get_frame_register_value.
894 * mi/mi-main.c (output_register): Use value_of_register instead of
895 get_frame_register_value.
896 * valprint.c (valprint_check_validity): Likewise.
897 (val_print_optimized_out): New value parameter. If the value is
898 lval_register, print <not saved> instead.
899 (value_check_printable, val_print_scalar_formatted): Adjust calls
900 to val_print_optimized_out.
901 * valprint.h (val_print_optimized_out): New value parameter.
902 * value.c (struct value) <optimized_out>: Extend comment.
903 (error_value_optimized_out): New function.
904 (require_not_optimized_out): Use it. Use a different string for
905 lval_register values.
906 * value.h (error_value_optimized_out): New declaration.
907 * NEWS: Mention <not saved>.
909 2013-10-02 Joel Brobecker <brobecker@adacore.com>
911 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
912 strcmp to compare two symtab filenames.
914 2013-10-02 Joel Brobecker <brobecker@adacore.com>
916 * symtab.c (search_symbols_equal): Delete.
917 (sort_search_symbols_remove_dups): Replace call to
918 search_symbols_equal by call to compare_search_syms,
919 adjusting as necessary.
921 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
925 * python/python.c: Document gdb.execute command in Python help.
927 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
929 * python/py-frame.c (frame_info_to_frame_object): Use
930 gdbpy_convert_exception. Clean up Python object on failure.
932 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
934 * python/lib/gdb/command/frame_filters.py
935 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
936 (ShowFrameFilterPriority.invoke): Ditto.
938 2013-10-01 Keith Seitz <keiths@redhat.com>
940 * linespec.c (struct ls_parser): Make 'saved_arg' const.
941 (parse_linespec): Make 'argptr' const.
942 Remove temporary cast of 'argptr' to const char **.
943 (decode_line_full): Pass const pointer to parse_linespec.
944 (decode_line_1): Likewise.
945 (decode_objc): Make local variable 'new_argptr' const.
946 (find_function_symbols): Remove temporary cast to char *
948 * objc-lang.c (find_imps): Make argument 'method' const.
950 * objc-lang.h (find_imps): Likewise.
952 2013-10-01 Keith Seitz <keiths@redhat.com>
954 * completer.c (skip_quoted_chars): Make all arguments const.
956 (skip_quoted): Likewise.
957 * completer.h (skip_quoted_chars): Likewise.
958 (skip_quoted): Likewise.
959 * defs.h (skip_quoted): Remove duplicate declaration.
960 * jv-exp.y: Include completer.h.
961 (yylex): Remove unneccessary cast to char * fro skip_quoted.
962 * p-exp.y: Include completer.h.
964 2013-10-01 Keith Seitz <keiths@redhat.com>
966 * c-exp.y (parse_number): Make first argument const.
967 Make a copy of the input to manipulate.
968 (c_parse_escape): Make first argument const.
969 Make local variable 'tokptr' const.
970 (parse_string_or_char): Make first two arguments const.
971 (macro_original_text): Make const.
972 (lex_one_token): Make local variable 'tokstart' const.
973 Likewise for local variables named 'p'.
974 Cast away const for struct stoken (temporary).
975 * c-lang.h (c_parse_escpae): Make first argument const.
976 * cli/cli-cmds.c (echo_command): Make local variable 'p'
978 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
980 * f-exp.y (parse_number): Make first argument const.
981 (match_string_literal): Make local variable 'tokstart'
983 (yylex): Make local variable 'p' const.
984 Cast away const for struct stoken (temporary).
985 * go-exp.y (parse_number): Make first argument const.
986 (parse_string_or_char): Likewise.
987 Make local variable 'tokstart' const.
988 (lex_one_token): Likewise for numerous locals called 'p'.
989 Cast away const for struct stoken (temporary).
990 * jv-exp.y (parse_number): Make first argument const.
991 Make local variables 'tokstart' and 'tokptr' const.
992 Cast away const for call to skip_quoted (temporary).
993 (yylex): Make local variable 'p' const.
994 Cast away const for struct stoken (temporary).
995 * m2-exp.y (parse_number): Make local variable 'p' const.
996 (yylex): Likewise for 'tokstart'.
997 Cast away const for struct stoken (temporary).
998 Make local variable 'p' const.
999 * macroexp.c (get_character_constant): Pass a const string
1001 (get_string_literal): Likewise.
1002 (macro_expand_next): Make first argument const.
1003 Cast away const for init_shared_buffer.
1004 * macroexp.h (macro_expand_next): Make first argument const.
1005 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1006 Pass a const string to c_parse_escape.
1007 Make local variables 'p' and 'namestart' const.
1008 * parse.c (lexptr): Make const.
1009 (prev_lexptr): Likewise.
1010 (find_template_name_end): Return const.
1011 Make argument const, too.
1012 (parse_exp_in_context): Make first argument const.
1013 Remove the entire const_hack.
1014 (parse_exp_in_context_1): Make first argument const.
1015 * parser-defs.h (find_template_name_end): Return const.
1016 Make argument const, too.
1017 (lexptr): Make const.
1018 (prev_lexptr): Likewise.
1019 * utils.c (parse_escape): Make second argument const.
1020 * utils.h (parse_escape): Likewise.
1022 2013-10-01 Keith Seitz <keiths@redhat.com>
1024 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1026 (block_lookup): Make 'raw_name' and 'name' const.
1027 * ada-lex.l (processString): Update for struct stoken.ptr.
1028 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1029 (operator_stoken): Likewise.
1030 (lex_one_token): Remove temporary cast to char * for
1032 * f-exp.y (yylex): Likewise.
1033 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1034 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1035 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1037 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1038 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1039 * linespec.c (struct ls_parser): Make 'stream' const.
1040 (find_parameter_list_end): Make argument 'input' and local
1042 (linespec_lexer_lex_string): Make local variables 'start' and
1044 Use skip_spaces_const instead of skip_spaces.
1045 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1047 (parse_linespec): Temporarily cast 'argptr' to const for
1048 'parser->lexer.stream'.
1049 * m2-exp.y (yylex): Remove temporary cast to char * for
1051 * objc-lang.c (add_msglist): Make local variable 'p' const.
1052 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1053 (exp : STRING): Make 'sp' const.
1054 (parse_number): Make argument 'p' const.
1055 * parser-defs.h (struct stoken): Make 'ptr' const.
1057 2013-10-01 Doug Evans <dje@google.com>
1059 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1061 2013-10-01 Yao Qi <yao@codesourcery.com>
1063 * varobj.c (c_value_of_root): Remove declaration.
1064 (cplus_value_of_root, java_value_of_root): Likewise.
1065 (ada_value_of_root): Likewise.
1066 (struct language_specific) <value_of_root>: Remove.
1067 (languages): Update initialization.
1068 (check_scope): Move earlier.
1069 (c_value_of_root): Move earlier and rename to ...
1070 (value_of_root_1): ... this.
1071 (value_of_root): Caller update.
1072 (cplus_value_of_root, java_value_of_root): Remove.
1073 (ada_value_of_root): Remove.
1075 2013-10-01 Yao Qi <yao@codesourcery.com>
1077 * varobj.c (varobj_format_string): Remove "unknown".
1078 (languages): Remove the first element.
1079 * varobj.h (enum varobj_languages): Remove vlang_c.
1081 2013-10-01 Yao Qi <yao@codesourcery.com>
1083 * varobj.c (struct language_specific) <language>: Remove.
1084 (languages): Update the initialization.
1086 2013-10-01 Yao Qi <yao@codesourcery.com>
1088 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1089 "solib-target.h". Include "windows-tdep.h".
1090 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1091 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1092 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1093 windows-tdep.o to gdb_target_obs.
1095 2013-10-01 Yao Qi <yao@codesourcery.com>
1097 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1099 (amd64_windows_init_abi): Don't call set_solib_ops and
1100 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1101 windows_init_abi instead.
1102 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1104 (i386_cygwin_init_abi): Don't call set_solib_ops,
1105 set_gdbarch_has_dos_based_file_system and
1106 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1107 windows_init_abi instead.
1108 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1109 (windows_init_abi): New function.
1110 (windows_iterate_over_objfiles_in_search_order): Make it
1112 * windows-tdep.h (windows_init_abi): Declare.
1113 (windows_iterate_over_objfiles_in_search_order): Remove
1116 2013-10-01 Jerome Guitton <guitton@adacore.com>
1118 Checked in by Joel Brobecker <brobecker@adacore.com>
1119 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1120 incomplete dictionnary instead of None in case of missing
1121 environment variables.
1122 (elinos_init): in case of an incomplete environment, best
1123 effort to load system libraries instead of abort.
1125 2013-10-01 Joel Brobecker <brobecker@adacore.com>
1127 * ada-lang.c (ada_has_this_exception_support): Ignore
1128 mst_solib_trampoline minimal symbols.
1130 2013-09-30 Tristan Gingold <gingold@adacore.com>
1132 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1133 hardware watchpoint.
1134 (i386_darwin_dr_set): Support 32 and 64 bit states.
1135 (i386_darwin_dr_get): Likewise.
1136 (i386_darwin_dr_set_control): Make static.
1137 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1138 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1140 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
1142 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1143 Replace TIDGET with ptid_get_lwp.
1144 Replace GET_LWP with ptid_get_lwp.
1145 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1146 Replace BUILD_THREAD with ptid_build.
1147 Replace BUILD_LWP with ptid_build.
1148 Replace PIDGET with ptid_get_pid.
1149 Replace TIDGET with ptid_get_lwp.
1150 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1151 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1152 Replace TIDGET with ptid_get_lwp.
1153 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1154 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1155 Replace TIDGET with ptid_get_lwp.
1156 Replace GET_LWP with ptid_get_lwp.
1157 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1159 * breakpoint.c: Likewise.
1160 * common/ptid.c (ptid_is_pid): Condense check for
1161 null_ptid and minus_one_ptid.
1162 (ptid_lwp_p): New function.
1163 (ptid_tid_p): New function.
1164 * common/ptid.h: Update comments for accessors.
1165 (ptid_lwp_p): New prototype.
1166 (ptid_tid_p): New prototype.
1167 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1168 * gcore.c: Replace PIDGET with ptid_get_pid.
1169 * gdbthread.h: Likewise.
1170 * gnu-nat.c: Likewise.
1171 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1172 Replace TIDGET with ptid_get_lwp.
1173 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1174 * hppanbsd-nat.c: Likewise.
1175 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1176 Replace TIDGET with ptid_get_lwp.
1177 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1178 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1179 * infcmd.c: Likewise.
1180 * inferior.h: Likewise.
1181 * inflow.c: Likewise.
1182 * infrun.c: Likewise.
1183 * linux-fork.c: Likewise.
1184 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1185 Replace GET_PID with ptid_get_pid.
1186 Replace is_lwp with ptid_lwp_p.
1187 Replace GET_LWP with ptid_get_lwp.
1188 Replace BUILD_LWP with ptid_build.
1190 2013-09-28 Mike Frysinger <vapier@gentoo.org>
1192 * common/linux-btrace.c: Move sys/syscall.h out of the
1193 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1194 Also check for SYS_perf_event_open before attempting to buid.
1196 2013-09-27 Doug Evans <dje@google.com>
1198 * dwarf2read.c (dwarf2_section_info): Add comment.
1199 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1201 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1202 (dwarf2_read_section): Delete unused local "header". Add section
1203 name to error message.
1204 (create_dwo_in_dwp): Tweak comment.
1205 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1207 * dwarf2read.c (die_reader_specs): Tweak comment.
1208 (get_section_bfd_owner, get_section_bfd_section): New functions.
1209 (get_section_name, get_section_file_name): New functions.
1210 (get_section_id, get_section_flags): New functions.
1211 (*): Use new functions to access section fields.
1213 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1214 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1215 arg "htab". All callers updated.
1216 (create_debug_types_hash_table): Remove redundant copy of
1218 (create_dwo_in_dwp): Tweak comments.
1219 (read_str_index): Tweak comment. Record dwarf form name in static
1222 2013-09-27 Pedro Alves <palves@redhat.com>
1224 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1225 (remote_filename_p): Add comment.
1226 * remote.c (remote_filename_p): Adjust to use
1227 REMOTE_SYSROOT_PREFIX.
1228 * solib.c (solib_find): When deciding whether we need to add a
1229 directory separator, check whether the sysroot is "remote:"
1230 instead of checking whether the patch has a drive spec. Add
1233 2013-09-27 Pedro Alves <palves@redhat.com>
1235 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1237 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1240 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1242 Fix set debug frame output.
1243 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1244 SENTINEL_FRAME entry lower to match enum frame_type order.
1246 2013-09-26 Pierre Muller <muller@sourceware.org>
1248 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1249 AMD64_R15_REGNUM when a register index is expected.
1250 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1251 Substitute in array.
1252 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1253 (amd64_push_arguments): Substitute in integer_regnum array.
1255 2013-09-25 Doug Evans <dje@google.com>
1257 * objfiles.c (allocate_objfile): Move comment to better place.
1259 New option "set debug symfile on".
1260 * NEWS: Mention "set debug symfile".
1261 * Makefile.in (SFILES): Add symfile-debug.c.
1262 (COMMON_OBS): Add symfile-debug.o.
1263 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1264 objfile's symbol functions.
1265 * objfiles.h (objfile_set_sym_fns): Declare.
1266 * symfile-debug.c: New file.
1267 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1268 objfile's symbol functions.
1269 (reread_symbols): Ditto.
1271 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1273 (add_symtab_fns): Update prototype.
1274 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1275 (registered_sym_fns): ... this.
1276 (symtab_fns): Update.
1277 (add_symtab_fns): New arg "flavour". All callers updated.
1278 (find_sym_fns): Rewrite to use new sym_fns registry.
1280 * symfile.h (struct sym_fns): Add "objfile" argument to
1281 sym_read_linetable. All uses updated.
1283 * symtab.c (domain_name, search_domain_name): New functions.
1284 * symtab.h (domain_name, search_domain_name): Declare.
1286 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1287 map_matching_symbols so objfile is first. All uses updated.
1288 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1289 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1291 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1294 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1297 2013-09-24 Doug Evans <dje@google.com>
1299 * objfiles.c (free_objfile): Move comment.
1301 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1303 * ada-exp.y (string_to_operator): Delete.
1304 (dummy_string_to_ada_operator): Delete.
1306 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1309 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1311 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1312 call_dummy_integer_regs, and classify.
1313 * amd64-tdep.h (amd64_classify): Add declaration.
1314 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1315 (amd64_reg_class): Delete, moved to i386-tdep.h.
1316 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1317 Replace call to amd64_classify by call to tdep->classify.
1318 (amd64_push_arguments): Get the list of registers to use for
1319 passing integer parameters from the gdbarch tdep structure,
1320 rather than using a hardcoded one. Replace calls to amd64_classify
1321 by calls to tdep->classify.
1322 (amd64_push_dummy_call): Get the register number used for
1323 the "hidden" argument from tdep->call_dummy_integer_regs.
1324 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1325 and tdep->call_dummy_integer_regs. Set tdep->classify.
1327 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1330 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1331 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1332 where tdep->memory_args_by_pointer is non-zero.
1334 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1337 * i386-tdep.h (struct gdbarch_tdep): Add new field
1338 integer_param_regs_saved_in_caller_frame.
1339 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1340 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1342 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1344 * amd64-windows-tdep.c: #include "value.h"
1345 (amd64_windows_classify): Delete.
1346 (amd64_windows_passed_by_integer_register)
1347 (amd64_windows_passed_by_xmm_register)
1348 (amd64_windows_passed_by_pointer)
1349 (amd64_windows_adjust_args_passed_by_pointer)
1350 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1351 (amd64_windows_push_dummy_call): New functions.
1352 (amd64_windows_init_abi): Remove setting of
1353 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1354 tdep->classify, tdep->memory_args_by_pointer and
1355 tdep->integer_param_regs_saved_in_caller_frame.
1356 Add call to set_gdbarch_push_dummy_call.
1358 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1360 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1361 objfile->original_name.
1363 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1365 Pass down original filename for objfile.
1366 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1367 * elfread.c (elf_symfile_read): Likewise.
1368 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1369 longer set ORIGINAL_NAME.
1370 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1371 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1372 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1373 symbol_file_add_from_bfd call.
1374 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1375 (macho_check_dsym): Add parameter filenamep. Change function comment.
1377 (macho_symfile_read): New variable dsym_filename. Update
1378 macho_check_dsym call. Use it for symbol_file_add_separate.
1379 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1380 it. Use it for objfile->original_name.
1381 (objfile_name): Return OBFD's filename, if available.
1382 * objfiles.h (allocate_objfile): Add new parameter name.
1383 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1384 * symfile-mem.c (symbol_file_add_from_memory): Update
1385 symbol_file_add_from_bfd call.
1386 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1388 (symbol_file_add_with_addrs): New parameter name, add function comment
1389 for it. Remove variable name. Update allocate_objfile call.
1390 (symbol_file_add_separate): New parameter name, add function comment
1391 for it. Update symbol_file_add_with_addrs call.
1392 (symbol_file_add_from_bfd): New parameter name. Update
1393 symbol_file_add_with_addrs call.
1394 (symbol_file_add): Update symbol_file_add_from_bfd call.
1395 (reread_symbols): New variable original_name. Save
1396 objfile->original_name by it.
1397 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1400 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1402 Code cleanup: Add objfile_name accessor function.
1403 * ada-lang.c (is_known_support_routine): Use objfile_name.
1404 * auto-load.c (source_gdb_script_for_objfile)
1405 (auto_load_objfile_script): Likewise.
1406 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1407 * dbxread.c (dbx_symfile_read): Likewise.
1408 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1409 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1410 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1411 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1412 (lookup_dwp_signatured_type, lookup_dwo_unit)
1413 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1414 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1415 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1416 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1417 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1418 (read_subrange_type, load_partial_dies, read_partial_die)
1419 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1420 (die_containing_type, build_error_marker_type, lookup_die_type)
1421 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1422 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1423 (get_DW_AT_signature_type, write_psymtabs_to_index)
1424 (save_gdb_index_command): Likewise.
1425 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1427 * expprint.c (dump_subexp_body_standard): Likewise.
1428 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1429 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1431 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1432 obj_name, use objfile_name for it, use the variable.
1433 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1435 * machoread.c (macho_symtab_read, macho_check_dsym)
1436 (macho_symfile_relocate): Likewise.
1437 * maint.c (maintenance_translate_address): Likewise.
1438 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1439 * minsyms.c (install_minimal_symbols): Likewise.
1440 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1442 (filter_overlapping_sections): Use objfile_name.
1443 (objfile_name): New function.
1444 * objfiles.h (struct objfile): Rename field name to original_name.
1445 (objfile_name): New prototype.
1446 * printcmd.c (sym_info, address_info): Use objfile_name.
1447 * probe.c (parse_probes, collect_probes, compare_probes)
1448 (info_probes_for_ops): Likewise.
1449 * progspace.c (clone_program_space): Likewise.
1450 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1451 (maintenance_info_psymtabs): Likewise.
1452 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1453 (source_section_scripts): Likewise.
1454 * python/py-objfile.c (objfpy_get_filename): Likewise.
1455 * python/py-progspace.c (pspy_get_filename): Likewise.
1456 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1457 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1458 * solib.c (solib_read_symbols): Likewise.
1459 * stabsread.c (scan_file_globals): Likewise.
1460 * stap-probe.c (handle_stap_probe): Likewise.
1461 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1462 (find_separate_debug_file_by_debuglink): Likewise.
1463 (reread_symbols): Likewise. Use the objfile field name renamed to
1465 (allocate_symtab): Use objfile_name.
1466 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1467 (dump_objfile, dump_msymbols, dump_symtab_1)
1468 (maintenance_print_msymbols, maintenance_print_objfiles)
1469 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1470 * target.c (target_translate_tls_address, target_info): Likewise.
1471 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1474 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1477 * probe.c (parse_probes): Rename variable objfile_name to
1480 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1482 Remove solib-sunos.c.
1483 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1484 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1485 * objfiles.c (rt_common_objfile): Remove.
1486 (free_objfile): Remove rt_common_objfile comparison.
1487 * objfiles.h (rt_common_objfile): Remove.
1488 * solib-sunos.c: Remove.
1489 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1491 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1493 Remove a.out NetBSD and OpenBSD hosts.
1494 * NEWS (Removed native configurations): New.
1495 * config/arm/nbsdaout.mh: Remove.
1496 * config/i386/nbsdaout.mh: Remove.
1497 * config/i386/obsdaout.mh: Remove.
1498 * config/m68k/nbsdaout.mh: Remove.
1499 * config/sparc/nbsdaout.mh: Remove.
1500 * config/vax/nbsdaout.mh: Remove.
1501 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1502 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1503 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1505 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1506 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1507 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1509 2013-09-23 Tom Tromey <tromey@redhat.com>
1511 * linespec.c (struct minsym_and_objfile): Remove.
1512 (minsym_and_objfile_d): Remove.
1513 (struct linespec, struct collect_info, linespec_parse_basic)
1514 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1515 (compare_msymbols, find_method, find_function_symbols)
1516 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1517 (add_minsym, search_minsyms_for_name): Update.
1519 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1521 * regcache.c: Add include of valprint.h.
1522 (dump_endian_bytes): Delete.
1523 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1525 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1527 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1529 2013-09-19 Pedro Alves <palves@redhat.com>
1531 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1534 2013-09-19 Pedro Alves <palves@redhat.com>
1535 Thomas Schwinge <thomas@codesourcery.com>
1536 Yue Lu <hacklu.newborn@gmail.com>
1538 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1539 Take a gdb_byte pointer instead of a char pointer.
1541 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1542 gnu_xfer_partial helper.
1543 (gnu_xfer_partial): New function.
1544 (gnu_target): Don't install a deprecated_xfer_memory hook.
1545 Install a to_xfer_partial hook.
1547 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1550 * main.c (captured_main): Replace catch_command_errors by
1551 catch_command_errors_const. Twice.
1552 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1553 (symbol_file_add): Make name parameter const.
1554 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1555 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1556 variable name. Change their usage accordingly.
1557 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1559 (symbol_file_add_main): Make args parameter const.
1561 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1562 Ulrich Weigand <uweigand@de.ibm.com>
1564 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1566 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1568 2013-09-18 Pedro Alves <palves@redhat.com>
1569 Yue Lu <hacklu.newborn@gmail.com>
1571 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1572 (gnu_create_inferior)
1573 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1574 (set_sig_thread_cmd): Use the lwpid field of ptids to
1575 store/extract thread ids instead of the tid field.
1576 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1578 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1580 * infcmd.c (default_print_one_register_info): Add detection of
1581 optimized out values.
1582 (default_print_registers_info): Switch to using
1583 get_frame_register_value.
1585 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1587 * infrun.c (handle_inferior_event): Check if we know the
1588 function start address before setting a resume breakpoint.
1590 2013-09-18 Pedro Alves <palves@redhat.com>
1592 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1593 minus_one_ptid instead of looking at the ptid's tid field and
1594 comparing that to -1.
1596 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1598 * main.h (get_gdb_program_name): Remove extra whitespace.
1600 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1602 * main.h (get_gdb_program_name): Add declaration.
1603 * main.c (get_gdb_program_name): Add definition.
1605 2013-09-17 Doug Evans <dje@google.com>
1607 * dwarf2read.c: Move definitions of complaint functions to after
1608 forward declarations of local functions.
1610 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1611 Pedro Alves <palves@redhat.com>
1614 * breakpoint.c (remove_threaded_breakpoints): New function.
1615 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1616 as thread_exit observer.
1618 2013-09-17 Pedro Alves <palves@redhat.com>
1621 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1622 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1623 * corelow.c (core_open):
1624 * frame.h (print_stack_frame, print_frame_info): New
1625 'set_current_sal' parameter.
1626 * infcmd.c (finish_command, kill_command): Adjust call to
1628 * inferior.c (inferior_command): Likewise.
1629 * infrun.c (normal_stop): Likewise.
1630 * linux-fork.c (linux_fork_context): Likewise.
1631 * record-full.c (record_full_goto_entry, record_full_restore):
1633 * remote-mips.c (common_open): Likewise.
1634 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1636 (print_frame_info): New 'set_current_sal' parameter. Set the last
1637 displayed sal depending on the new paremeter instead of looking at
1639 (backtrace_command_1, select_and_print_frame, frame_command)
1640 (current_frame_command, up_command, down_command): Adjust call to
1642 * thread.c (print_thread_info, restore_selected_frame)
1643 (do_captured_thread_select): Adjust call to print_stack_frame.
1644 * tracepoint.c (tfind_1): Likewise.
1645 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1646 (mi_cmd_stack_info_frame): Likewise.
1647 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1648 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1650 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1652 * value.c (isvoid_internal_fn): Replace "parameter" with
1655 2013-09-16 Stan Shebs <stan@codesourcery.com>
1657 * README: Update references to writing code for GDB.
1658 * configure.ac (build_warnings): Remove obsolete comment.
1659 * configure: Regenerate.
1660 * gdbarch.sh: Remove references to gdbint.texinfo.
1661 * gdbarch.h: Regenerate.
1662 * gdbtypes.c (objfile_type): Remove comments referencing internals
1665 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1667 * NEWS: Mention new convenience function $_isvoid.
1668 * value.c (isvoid_internal_fn): New function.
1669 (_initialize_values): Add new convenience function $_isvoid.
1671 2013-09-16 Pierre Muller <muller@sourceware.org>
1673 * arm-linux-tdep.c: Add "elf/common.h" header.
1674 Remove AT_HWCAP macro definintion as it is provided in
1676 * s390-tdep.c: Remove system header <elf.h>
1677 Add "elf/common.h" header for AT_HWCAP definition.
1678 (s390_core_read_description): Use correct CORE_ADDR
1679 for hwcap local variable used as third parameter
1680 of function target_auxv_search.
1682 2013-09-14 Pierre Muller <muller@sourceware.org>
1683 Tom Tromey <tromey@redhat.com>
1684 Pedro Alves <palves@redhat.com>
1686 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1687 mode if operating system doesn't know O_CLOEXEC.
1689 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1692 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1695 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1697 * NEWS: Mention TDB support.
1698 * features/s390-tdb.xml: New file.
1699 * features/s390-te-linux64.xml: New file.
1700 * features/s390x-te-linux64.xml: New file.
1701 * features/Makefile (WHICH): Add new tdescs above.
1702 (s390-te-linux64-expedite): Set.
1703 (s390x-te-linux64-expedite): Set.
1704 * features/s390-te-linux64.c: New file (generated).
1705 * features/s390x-te-linux64.c: New file (generated).
1706 * regformats/s390-te-linux64.dat: New file (generated).
1707 * regformats/s390x-te-linux64.dat: New file (generated).
1708 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1709 (HWCAP_S390_TE): Likewise.
1710 (S390_TDB_DWORD0_REGNUM): Likewise.
1711 (S390_TDB_DWORD0_REGNUM): Likewise.
1712 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1713 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1714 (S390_TDB_ATIA_REGNUM): Likewise.
1715 (S390_TDB_R0_REGNUM): Likewise.
1716 (S390_TDB_R1_REGNUM): Likewise.
1717 (S390_TDB_R2_REGNUM): Likewise.
1718 (S390_TDB_R3_REGNUM): Likewise.
1719 (S390_TDB_R4_REGNUM): Likewise.
1720 (S390_TDB_R5_REGNUM): Likewise.
1721 (S390_TDB_R6_REGNUM): Likewise.
1722 (S390_TDB_R7_REGNUM): Likewise.
1723 (S390_TDB_R8_REGNUM): Likewise.
1724 (S390_TDB_R9_REGNUM): Likewise.
1725 (S390_TDB_R10_REGNUM): Likewise.
1726 (S390_TDB_R11_REGNUM): Likewise.
1727 (S390_TDB_R12_REGNUM): Likewise.
1728 (S390_TDB_R13_REGNUM): Likewise.
1729 (S390_TDB_R14_REGNUM): Likewise.
1730 (S390_TDB_R15_REGNUM): Likewise.
1731 (S390_NUM_REGS): Increase.
1732 (S390_IS_TDBREGSET_REGNUM): New macro.
1733 (s390_regmap_tdb): Declare.
1734 (s390_sizeof_tdbregset): Define.
1735 (tdesc_s390_te_linux64): Declare.
1736 (tdesc_s390x_te_linux64): Likewise.
1737 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1738 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1739 (s390_regmap_tdb): New regmap.
1740 (s390_supply_tdb_regset): New function.
1741 (s390_tdb_regset): New regset.
1742 (s390_linux64v2_regset_sections): Add TDB regset to list.
1743 (s390x_linux64v2_regset_sections): Likewise.
1744 (s390_regset_from_core_section): Recognize TDB core note section.
1745 (s390_core_read_description): If HWCAP indicates TE support,
1746 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1747 (s390_gdbarch_init): Handle TDB regset.
1748 (_initialize_s390_tdep): Initialize new tdescs.
1749 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1750 (have_regset_tdb): New variable.
1751 (s390_native_supply): Support register invalidation.
1752 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1753 (check_regset): Treat ENODATA as "regset exists".
1754 (s390_linux_fetch_inferior_registers): Add TDB.
1755 (s390_read_description): Check for TDB existence and select
1757 * gdbserver/Makefile.in (clean): Add removal of new makefile
1759 (s390-te-linux64.c): New makefile target.
1760 (s390x-te-linux64.c): Likewise.
1761 * gdbserver/configure.srv (srv_regobj): Append new objects
1762 s390-te-linux64.o and s390x-te-linux64.o.
1763 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1764 s390x-te-linux64.xml, and s390-tdb.xml.
1765 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1767 (tdesc_s390_te_linux64): Likewise.
1768 (init_registers_s390x_te_linux64): Likewise.
1769 (tdesc_s390x_te_linux64): Likewise.
1770 (s390_check_regset): Treat ENODATA as "regset exists".
1771 (s390_arch_setup): Add TDB regset support.
1772 (initialize_low_arch): Initialize registers for new tdescs.
1774 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1776 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1777 (S390_IS_FPREGSET_REGNUM): New macro.
1778 * s390-tdep.c (s390_dwarf_regmap): Make const.
1779 (regnum_is_gpr_full): New function for replacing repeated code.
1780 (s390_pseudo_register_name): Use it.
1781 (s390_pseudo_register_type): Likewise.
1782 (s390_pseudo_register_read): Likewise.
1783 (s390_pseudo_register_write): Likewise.
1784 (s390_unwind_pseudo_register): Likewise.
1785 (s390_regmap_gregset): New format for regmap.
1786 (s390x_regmap_gregset): Likewise.
1787 (s390_regmap_fpregset): Likewise.
1788 (s390_regmap_upper): Likewise.
1789 (s390_regmap_last_break): Likewise.
1790 (s390_regmap_system_call): Likewise.
1791 (s390_supply_regset): Adjust to new regmap format.
1792 (s390_collect_regset): Likewise.
1793 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1794 (s390_native_collect): Likewise.
1795 (supply_gregset): Likewise.
1796 (fill_gregset): Likewise.
1797 (supply_fpregset): Likewise.
1798 (fill_fpregset): Likewise.
1799 (fetch_regset): Likewise.
1800 (store_regset): Likewise.
1801 (s390_linux_fetch_inferior_registers): Likewise.
1802 (s390_linux_fetch_inferior_registers): Likewise.
1804 2013-09-12 Andrew Pinski <apinski@cavium.com>
1806 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1808 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1810 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1812 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
1814 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1816 2013-09-06 Pedro Alves <palves@redhat.com>
1818 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1819 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1820 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1821 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1822 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1825 2013-09-06 Pedro Alves <palves@redhat.com>
1827 * remote-sim.c (dump_mem): Constify buf parameter.
1828 gdbsim_xfer_inferior_memory): Rename to ...
1829 (gdbsim_xfer_memory): ... this. Adjust interface as
1830 target_xfer_partial helper.
1831 (gdbsim_xfer_partial): New function.
1832 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1833 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1835 2013-09-06 Pedro Alves <palves@redhat.com>
1837 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1838 host_address_to_string, and send debug output to gdb_stdlog.
1840 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1842 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1843 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1844 gdb_target_obs for cris target.
1845 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1846 (cris_gdbarch_init): Move calls to
1847 set_gdbarch_fetch_tls_load_module_address and
1848 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1849 Add call to gdbarch_init_osabi.
1850 * cris-linux-tdep.c: New file.
1851 * cris-tdep.h: New file.
1853 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1855 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1856 to deprecated_init_ui_hook.
1858 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1860 * cli/cli-interp.c (_initialize_cli_interp): Add a
1861 command_loop_proc to interp_procs.
1862 * event-top.c (cli_command_loop): Change signature to match
1863 interp_command_loop_ftype.
1864 * event-top.h (cli_command_loop): Same.
1865 * interps.c (interp_new): Require every interpreter to have a
1867 (current_interp_command_loop): Just call the command_loop_proc on
1868 the current interpreter.
1869 * tui/tui-interp.c (_initialize_tui_interp): Add a
1870 command_loop_proc to interp_procs.
1872 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1874 * cris-tdep.c (cris_gdbarch_init): Add call to
1875 get_gdbarch_fetch_tls_load_module_address.
1877 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1879 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1880 (cris_elf_gregset_t): Rename from elf_gregset_t.
1881 (crisv32_elf_gregset_t): Adjust.
1882 (cris_supply_gregset, fetch_core_registers): Adjust.
1884 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1886 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1888 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
1890 * defs.h (deprecated_command_loop_hook): Remove, including
1891 references in comments.
1892 * interps.c (current_interp_command_loop): No longer use
1893 deprecated_command_loop_hook.
1894 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1896 * top.c (deprecated_command_loop_hook): Remove.
1898 2013-09-05 Pedro Alves <palves@redhat.com>
1900 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1901 local is now int instead of ULONGEST. Print it with %d
1902 instead of paddress.
1904 2013-09-05 Tristan Gingold <gingold@adacore.com>
1906 * MAINTAINERS: Remove avr maintainership.
1908 2013-09-05 Pedro Alves <palves@redhat.com>
1910 * findvar.c (value_of_register): Rework in terms of
1911 value_of_register_lazy.
1913 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1915 * symfile.c (add_symbol_file_command): Remove trailing
1916 whitespaces and blank line after comment.
1918 2013-09-05 Pedro Alves <palves@redhat.com>
1920 * tui/tui-regs.c (tui_register_format): Don't look at the
1921 register's name here. Return string representing register
1922 value instead of storing it in the data element.
1923 (tui_get_register): Compare register string representations
1924 instead of register value states and contents.
1926 2013-09-05 Pedro Alves <palves@redhat.com>
1929 * tui/tui-regs.c (tui_show_registers): Show registers of the
1930 selected frame, not the current frame.
1932 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
1934 * MAINTAINERS (Write After Approval): Add myself to the list.
1936 2013-09-04 Doug Evans <dje@google.com>
1938 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1939 (queue_and_load_dwo_tu): New function.
1940 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1941 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1942 Make dependent_cu optional.
1943 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1944 and an older .gdb_index is in use, queue and load all its TUs too.
1946 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1948 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1949 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1950 variable search_flags.
1951 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1952 (OPF_RETURN_REALPATH): ... here.
1953 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1954 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1956 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1958 * solib.c (solib_find): Likewise. Four times.
1959 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1960 in the function comment and for the realpath_fptr variable.
1961 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1962 (find_and_open_source): Likewise. Twice.
1963 * symfile.c (symfile_bfd_open): Likewise, also twice.
1965 2013-09-04 Doug Evans <dje@google.com>
1967 * progspace.c (save_current_space_and_thread): Remove unnecessary
1968 call to save_current_inferior.
1970 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
1972 * sh64-tdep.c (sh64_do_register): Return after printing message
1973 about unavailable register contents.
1975 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1976 Pedro Alves <palves@redhat.com>
1978 * symfile.c (add_symbol_file_command): Error out on unknown
1979 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1980 options and collapse into single conditional branch.
1982 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
1984 * inf-child.c (inf_child_follow_fork): New parameter
1986 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1987 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1988 * inferior.h (detach_fork): Remove.
1989 * infrun.c (detach_fork): Adjust comment and make it
1991 (follow_fork): Pass detach_fork parameter to
1993 * linux-nat.c (linux_child_follow_fork): New parameter
1995 * target.c (target_follow_fork): New parameter detach_fork.
1996 Pass detach_fork as parameter and print its value.
1997 * target.h (struct target_ops) <to_follow_fork>: New int
1999 (target_follow_fork): New parameter detach_fork.
2001 2013-09-03 Joel Brobecker <brobecker@adacore.com>
2003 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2004 Replace sec->bfd by sec->the_bfd_section->owner.
2006 2013-09-03 Yao Qi <yao@codesourcery.com>
2008 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2009 from linux_has_shared_address_space.
2010 (linux_has_shared_address_space): Call linux_is_uclinux.
2011 * linux-tdep.h (linux_is_uclinux): Declare.
2012 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2015 2013-09-03 Yao Qi <yao@codesourcery.com>
2017 * config/djgpp/fnchange.lst: Remove entry of
2018 i386-interix-nat.c and i386-interix-tdep.c.
2019 * configure.ac: Remove '*-*-interix*'.
2020 * configure: Re-generated.
2021 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2022 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2024 * osabi.c (gdb_osabi_names): Remove "Interix".
2026 2013-09-03 Yao Qi <yao@codesourcery.com>
2028 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2030 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2032 * record.h (record_print_flag) <record_print_src_line,
2033 record_print_insn_range>: Rename into ...
2034 (record_print_flag) <record_print_src_line,
2035 record_print_insn_range>: ... this. Update all users.
2037 2013-09-02 Pierre Muller <muller@sourceware.org>
2039 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2042 2013-09-02 Pierre Muller <muller@sourceware.org>
2044 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2045 by use of plongest function.
2047 2013-09-02 Tristan Gingold <gingold@adacore.com>
2049 * NEWS: Add entry mentioning support for native Windows x64
2052 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2053 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2054 (struct amd64_windows_frame_cache): New struct.
2055 (amd64_windows_w2gdb_regnum): New global.
2056 (pc_in_range, amd64_windows_frame_decode_epilogue)
2057 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2058 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2059 (amd64_windows_frame_this_id): New functions.
2060 (amd64_windows_frame_unwind): New static global.
2061 (amd64_windows_skip_prologue): New function.
2062 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2063 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2064 with amd64_windows_skip_prologue.
2066 2013-08-30 Joel Brobecker <brobecker@adacore.com>
2070 2013-08-30 Pedro Alves <palves@redhat.com>
2072 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2075 2013-08-30 Pedro Alves <palves@redhat.com>
2077 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2080 2013-08-30 Pedro Alves <palves@redhat.com>
2082 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2083 Adjust arguments to print_stack_frame.
2085 2013-08-30 Pedro Alves <palves@redhat.com>
2087 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2089 2013-08-30 Pedro Alves <palves@redhat.com>
2091 * frame.h (show_and_print_stack_frame): Delete declaration.
2093 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2097 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2098 (archpy_name): Check for valid architecture.
2099 (archpy_disassemble): Ditto.
2101 2013-08-29 Joel Brobecker <brobecker@adacore.com>
2103 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2104 instead of "long long" in call to ptrace64.
2106 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
2108 * mi/mi-interp.c (mi_command_loop): Change signature to match
2109 interp_command_loop_ftype.
2110 (mi1_command_loop): Remove.
2111 (mi2_command_loop): Remove.
2112 (mi3_command_loop): Remove.
2113 (mi_interpreter_resume): Remove setting of
2114 deprecated_command_loop_hook.
2115 (_initialize_mi_interp): Set mi_command_loop as the command loop
2118 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2120 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2123 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2125 * value.c (allocate_value_contents): Make static.
2126 * value.h (allocate_value_contents): Remove prototype.
2128 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2130 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2131 of assembling value via allocate_value_lazy and attribute setter.
2132 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2133 assembling value via allocate_value_lazy and attribute setter.
2134 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2135 assembling value via allocate_value_lazy and attribute setter.
2137 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2139 * value.c (value_from_contents_and_address): Replace allocate_value and
2140 memcpy with value_from_contents.
2142 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2144 * python/py-framefilter.c (py_print_frame): Remove usage of
2145 PyString_AsString. Use python_string_to_host_string instead.
2146 Refactor function to work with a string as a new allocation
2147 instead of a pointer.
2148 (py_print_frame): Ditto.
2149 * python/lib/gdb/frames.py (return_list): Cain iterators together
2150 instead of adding them as a list.
2151 (_sort_list): Call return_list, and remove duplicate code.
2152 (execute_frame_filters): Convert iterator to a list with list().
2153 * python/lib/gdb/command/frame_filters.py
2154 (SetFrameFilterPriority._set_filter_priority): Convert priority
2155 attribute to an integer.
2156 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2157 wrapper function __next__.
2158 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2161 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2164 * python/py-framefilter.c (apply_frame_filter): Check
2165 gdb_python_initialized. Exit if the Python frame-filter code
2166 cannot be initialized.
2168 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2171 * top.c (print_gdb_version): Remove erroneous newline after help
2174 2013-08-29 Yao Qi <yao@codesourcery.com>
2176 * varobj.c (install_dynamic_child): Remove trailing space.
2177 Add one blank line after variable declaration.
2179 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2182 * corefile.c (get_exec_file): Use exec_filename.
2183 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2184 * exec.c (exec_close): Free EXEC_FILENAME.
2185 (exec_file_attach): New variable canonical_pathname. Use
2186 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2188 * exec.h (exec_filename): New.
2189 * inferior.c (print_inferior, inferior_command): Use
2190 PSPACE_EXEC_FILENAME.
2191 * mi/mi-main.c (print_one_inferior): Likewise.
2192 * progspace.c (clone_program_space, print_program_space): Likewise.
2193 * progspace.h (struct program_space): New field pspace_exec_filename.
2194 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2195 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2197 2013-08-28 Will Newton <will.newton@linaro.org>
2199 * common/linux-ptrace.c: Include stdint.h unconditionally.
2201 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2204 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2206 2013-08-28 Yao Qi <yao@codesourcery.com>
2207 Pedro Alves <palves@redhat.com>
2209 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2210 instead of stdio_fileopen.
2211 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2212 .Call stderr_fileopen instead of stdio_fileopen.
2213 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2214 [__MINGW32__] (stderr_file_fputs): New function.
2215 (stderr_fileopen): New function.
2216 * ui-file.h (stderr_fileopen): Declare.
2218 2013-08-27 Doug Evans <dje@google.com>
2220 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2221 (struct dwarf2_per_cu_data): Ditto.
2222 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2223 (process_imported_unit_die): Ditto.
2224 (follow_die_sig_1): Simplify assert.
2226 2013-08-27 Pedro Alves <palves@redhat.com>
2228 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2229 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2230 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2231 windows_xfer_memory directly.
2232 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2234 2013-08-27 Pedro Alves <palves@redhat.com>
2236 * darwin-nat.c (darwin_xfer_memory): Delete.
2237 (_initialize_darwin_inferior): Don't install a
2238 deprecated_xfer_memory method.
2240 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2241 Yao Qi <yao@codesourcery.com>
2243 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2244 (parse_no_frames_option): Remove.
2245 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2246 (mi_cmd_stack_list_args): Adjust.
2247 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2248 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2249 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2251 (list_args_or_locals): New parameter 'skip_unavailable'.
2253 * valprint.c (scalar_type_p): Rename to ...
2254 (val_print_scalar_type_p): ... this. Make extern.
2255 (val_print, value_check_printable): Adjust.
2256 * valprint.h (val_print_scalar_type_p): Declare.
2257 * value.c (value_entirely_unavailable): New function.
2258 * value.h (value_entirely_unavailable): Declare.
2260 * NEWS: Mention the new option "--skip-unavailable" to MI
2261 commands '-stack-list-locals', '-stack-list-arguments' and
2262 '-stack-list-variables'.
2264 2013-08-27 Yao Qi <yao@codesourcery.com>
2266 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2267 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2269 * mi/mi-getopt.c (mi_getopt): Remove.
2270 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2272 (mi_getopt): Call mi_getopt_1.
2273 (mi_getopt_silent): New.
2274 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2276 2013-08-26 Doug Evans <dje@google.com>
2279 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2280 .gdb_index is in use.
2281 * symfile.c (reread_symbols): Reset objfile->sf.
2283 * NEWS: Document "mt print objfiles" now takes optional regexp.
2284 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2285 regexp of objfiles to print.
2286 (_initialize_symmisc): Update doc string for "mt print objfiles".
2288 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2289 missing debug info checks.
2291 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2292 Ulrich Weigand <uweigand@de.ibm.com>
2294 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2295 line tables generated by XLC compiled binaries.
2297 2013-08-23 Doug Evans <dje@google.com>
2299 * symmisc.c (dump_symtab): Delete prototype.
2300 (dump_msymbols, dump_objfile): Ditto.
2301 (maintenance_info_symtabs): Mark as dont_repeat.
2302 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2304 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2305 debugging printf to better location.
2307 2013-08-23 Pedro Alves <palves@redhat.com>
2309 * target.c (target_read_live_memory): Change type of 'ret' local
2312 2013-08-23 Pedro Alves <palves@redhat.com>
2314 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2315 (remote_read_bytes): Change return type to LONGEST, and adjust to
2316 return a target_xfer_error on error.
2317 (remote_xfer_memory): Delete.
2318 (remote_flash_write): Change type of 'ret' local to LONGEST.
2319 (remote_xfer_partial, remote_xfer_partial): Adjust.
2320 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2322 2013-08-23 Pierre Muller <muller@sourceware.org>
2324 ARI fix: Push # directives to start of line.
2325 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2327 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2330 * breakpoint.c (enable_command, disable_command): Iterate over
2331 all specified breakpoint locations.
2333 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2335 * common/linux-ptrace.c (linux_fork_to_function): Push #
2336 directives to the start of the line.
2337 (linux_check_ptrace_features): Fix warning message to use
2340 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2342 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2343 nat/linux-waitpid.h.
2344 (linux-waitpid.o): New object file rule.
2345 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2346 (current_ptrace_options): Moved from linux-nat.c.
2347 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2349 (linux_fork_to_function): New function.
2350 (linux_grandchild_function): Likewise.
2351 (linux_child_function): Likewise.
2352 (linux_check_ptrace_features): New function, heavily
2353 based on linux-nat.c:linux_test_for_tracefork.
2354 (linux_enable_event_reporting): New function.
2355 (ptrace_supports_feature): Likewise.
2356 (linux_supports_tracefork): Likewise.
2357 (linux_supports_traceclone): Likewise.
2358 (linux_supports_tracevforkdone): Likewise.
2359 (linux_supports_tracesysgood): Likewise.
2360 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2361 gdbserver/linux-low.c.
2362 (linux_enable_event_reporting): New declaration.
2363 (linux_supports_tracefork): Likewise.
2364 (linux_supports_traceclone): Likewise.
2365 (linux_supports_tracevforkdone): Likewise.
2366 (linux_supports_tracesysgood): Likewise.
2367 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2368 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2369 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2370 * config/arm/linux.mh (NATDEPFILES): Likewise.
2371 * config/i386/linux.mh (NATDEPFILES): Likewise.
2372 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2373 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2374 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2375 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2376 * config/mips/linux.mh (NATDEPFILES): Likewise.
2377 * config/pa/linux.mh (NATDEPFILES): Likewise..
2378 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2379 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2380 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2381 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2382 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2383 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2384 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2385 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2386 ptrace's 4th argument's types.
2387 Check the type of PTRACE_TYPE_ARG4.
2388 * configure: Regenerate.
2389 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2390 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2391 (linux_supports_tracefork_flag): Remove.
2392 (linux_supports_tracesysgood_flag): Likewise.
2393 (linux_supports_tracevforkdone_flag): Likewise.
2394 (current_ptrace_options): Moved to
2395 common/linux-ptrace.c.
2396 (linux_tracefork_child): Remove.
2397 (my_waitpid): Remove.
2398 (linux_test_for_tracefork): Renamed to
2399 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2400 (linux_test_for_tracesysgood): Remove.
2401 (linux_supports_tracesysgood): Remove.
2402 (linux_supports_tracefork): Remove.
2403 (linux_supports_tracevforkdone): Remove.
2404 (linux_enable_tracesysgood): Remove.
2405 (linux_enable_event_reporting): Remove.
2406 (linux_init_ptrace): New function.
2407 (linux_child_post_attach): Call linux_init_ptrace.
2408 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2409 (linux_child_follow_fork): Call linux_supports_tracefork
2410 and linux_supports_tracevforkdone.
2411 (linux_child_insert_fork_catchpoint): Call
2412 linux_supports_tracefork.
2413 (linux_child_insert_vfork_catchpoint): Likewise.
2414 (linux_child_set_syscall_catchpoint): Call
2415 linux_supports_tracesysgood.
2416 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2417 * nat/linux-nat.h: New file.
2418 * nat/linux-waitpid.c: New file.
2419 * nat/linux-waitpid.h: New file.
2421 2013-08-22 Samuel Bronson <naesten@gmail.com>
2423 ARM Linux support for `catch syscall'.
2424 * syscalls/arm-linux.py: New file.
2425 * syscalls/arm-linux.xml: Likewise.
2426 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2427 (arm_linux_init_abi): Register the new function and syscall xml file.
2428 * data-directory/Makefile.in: Install the new syscall xml file.
2429 * NEWS: Brag about this.
2431 2013-08-22 Pedro Alves <palves@redhat.com>
2434 * corefile.c (target_xfer_memory_error): New function.
2435 (memory_error): Defer EIO to target_memory_error.
2436 (read_memory): Use target_xfer_partial, and handle finer-grained
2438 * target.c (target_xfer_error_to_string): New function.
2439 (memory_xfer_partial_1): If memory is known to be
2440 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2441 (target_xfer_partial): Make extern.
2442 * target.h (enum target_xfer_error): New enum.
2443 (target_xfer_error_to_string): Declare function.
2444 (target_xfer_partial): Declare function.
2445 (struct target_ops) <xfer_partial>: Adjust describing comment.
2447 2013-08-22 Alan Modra <amodra@gmail.com>
2449 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2450 * configure.tgt: Likewise as targets.
2452 2013-08-20 Doug Evans <dje@google.com>
2454 * buildsym.c (subfile_stack): Move here from buildsym.h.
2455 (pending_macros): Ditto.
2456 (get_macro_table): New function.
2457 (buildsym_init): Initialize subfile_stack.
2458 * coffread.c (type_vector,type_vector_length): Moved here from
2460 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2461 (coff_symtab_read): Use it.
2462 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2463 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2464 with call to get_macro_table.
2465 * stabsread.c (type_vector,type_vector_length): Moved here from
2467 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2468 * buildsym.h (get_macro_table): Declare.
2470 2013-08-20 Tom Tromey <tromey@redhat.com>
2472 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2474 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2476 2013-08-20 Doug Evans <dje@google.com>
2478 * blockframe.c: Remove #include "psymtab.h".
2479 * cp-support.c: Ditto.
2483 2013-08-20 Tom Tromey <tromey@redhat.com>
2486 * exceptions.h (return_mask): Now an enum.
2487 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2490 2013-08-20 Tom Tromey <tromey@redhat.com>
2492 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2494 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2495 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2496 * jit.c (jit_object_close_impl): Update.
2497 * jv-lang.c (get_dynamics_objfile): Update.
2498 * linespec.c (add_minsym): Use get_dynamics_objfile.
2499 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2500 (allocate_objfile): Don't initialize 'gdbarch' field.
2501 (get_objfile_arch): Update.
2502 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2504 (struct objfile) <gdbarch>: ... here. Remove.
2505 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2507 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2509 2013-08-20 Alan Modra <amodra@gmail.com>
2511 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2512 for IBM long double nan and inf.
2513 (floatformat_is_negative, floatformat_classify,
2514 floatformat_mantissa): Similarly.
2515 (floatformat_ieee_single, floatformat_ieee_double,
2516 floatformat_ieee_quad, floatformat_arm_ext,
2517 floatformat_ia64_spill): Delete unused vars.
2518 (_initialize_doublest): Delete unused function.
2519 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2520 little-endian variants of floatformat_ibm_long_double.
2522 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2524 * Makefile.in (SFILES): Remove common/target-common.c and
2525 add target/waitstatus.c.
2526 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2527 target/resume.h, target/wait.h and target/waitstatus.h.
2528 (COMMON_OBS): Remove target-common.o and add
2530 (target-common.o): Remove.
2531 (waitstatus.o): New target object file.
2532 * common/target-common.c: Move contents to
2533 target/waitstatus.c and remove.
2534 * common/target-common.h: Move contents to other files and
2536 (enum resume_kind: Move to target/resume.h.
2537 (TARGET_WNOHANG): Move to target/wait.h.
2538 (enum target_waitkind): Move to target/waitstatus.h.
2539 (struct target_waitstatus): Likewise.
2540 * target.h: Do not include target-common.h and
2541 include target/resume.h, target/wait.h and
2542 target/waitstatus.h.
2543 * target/resume.h: New file.
2544 * target/wait.h: New file.
2545 * target/waitstatus.h: New file.
2546 * target/waitstatus.c: New file.
2548 2013-08-19 Pedro Alves <palves@redhat.com>
2550 * linux-nat.c (linux_test_for_tracefork)
2551 (linux_test_for_tracesysgood, linux_child_follow_fork)
2552 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2553 (linux_nat_wait_1): Extend comment.
2554 (linux_async_pipe): Add comment.
2556 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2558 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2559 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2560 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2561 Update to account for fact that PC is now a pseudo-register.
2562 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2563 cases for RL78_PC_REGNUM.
2565 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2568 * top.c (quit_force): Skip writing history file
2569 if input is not from terminal.
2571 2013-08-14 Tom Tromey <tromey@redhat.com>
2573 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2574 resultthreadlist>: New fields.
2575 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2576 (remote_get_threadlist, remote_threadlist_iterator): Use
2577 new fields. Remove static variables.
2579 2013-08-14 Tom Tromey <tromey@redhat.com>
2581 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2582 remote_watch_data_address>: New fields.
2583 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2584 (process_stop_reply, remote_wait_as)
2585 (remote_check_watch_resources, remote_stopped_data_address): Update.
2587 2013-08-14 Tom Tromey <tromey@redhat.com>
2589 * remote.c (struct remote_state) <async_client_callback,
2590 async_client_context>: New fields.
2591 (async_client_callback, async_client_context): Remove.
2592 (remote_async_serial_handler, remote_async): Update.
2594 2013-08-14 Tom Tromey <tromey@redhat.com>
2596 * remote.c (sizeof_pkt): Remove.
2597 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2599 2013-08-14 Tom Tromey <tromey@redhat.com>
2601 * remote.c (struct remote_state) <use_threadinfo_query,
2602 use_threadextra_query>: New fields.
2603 (remote_threads_info, remote_threads_extra_info)
2604 (remote_open_1): Update.
2606 2013-08-14 Tom Tromey <tromey@redhat.com>
2608 * remote.c (struct remote_state) <finished_object,
2609 finished_annex, finished_offset>: New fields.
2610 (remote_read_qxfer): Use remote_state fields; remove static
2613 2013-08-14 Tom Tromey <tromey@redhat.com>
2615 * remote.c (struct remote_state) <last_sent_step>:
2617 (last_sent_step): Remove.
2618 (remote_resume, remote_wait_as): Update.
2620 2013-08-14 Tom Tromey <tromey@redhat.com>
2622 * remote.c (struct remote_state) <last_sent_signal>:
2624 (last_sent_signal): Remove.
2625 (new_remote_state, remote_resume, remote_wait_as): Update.
2627 2013-08-14 Tom Tromey <tromey@redhat.com>
2629 * remote.c (struct remote_state) <last_program_signals_packet>:
2631 (last_program_signals_packet): Remove.
2632 (remote_program_signals, remote_open_1): Update.
2634 2013-08-14 Tom Tromey <tromey@redhat.com>
2636 * remote.c (struct remote_state) <last_pass_packet>:
2638 (last_pass_packet): Remove.
2639 (remote_pass_signals, remote_open_1): Update.
2641 2013-08-14 Tom Tromey <tromey@redhat.com>
2643 * remote.c (struct remote_state) <remote_traceframe_number>:
2645 (remote_traceframe_number): Remove.
2646 (new_remote_state, remote_open_1, set_remote_traceframe)
2647 (remote_trace_find): Update.
2649 2013-08-14 Tom Tromey <tromey@redhat.com>
2651 * remote.c (struct remote_state) <general_thread, continue_thread>:
2653 (general_thread, continue_thread): Remove.
2654 (record_currthread, set_thread, set_general_process)
2655 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2656 (extended_remote_mourn_1): Update.
2658 2013-08-14 Tom Tromey <tromey@redhat.com>
2660 * remote.c (struct remote_state) <remote_desc>: New field.
2661 (remote_desc): Remove.
2662 (remote_threads_info, remote_threads_extra_info, remote_close)
2663 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2664 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2665 (remote_hostio_send_command, remote_file_put, remote_file_get)
2666 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2667 (remote_async, remote_new_objfile, set_range_stepping): Update.
2669 2013-08-14 Tom Tromey <tromey@redhat.com>
2671 * remote.c (remote_state): Now a pointer.
2672 (get_remote_state_raw): Update.
2673 (new_remote_state): New function.
2674 (_initialize_remote): Use new_remote_state.
2676 2013-08-14 Tom Tromey <tromey@redhat.com>
2678 * remote.c (remote_protocol_features): Now const.
2680 2013-08-14 Tom Tromey <tromey@redhat.com>
2682 * remote.c (crc32_table, crc32): Remove.
2683 (remote_verify_memory): Use xcrc32.
2685 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2687 * value.h (create_internalvar_type_lazy): Adjust prototype
2690 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
2692 * common/format.c (parse_format_string): Don't allow '#' flag for
2693 pointer arguments in format string.
2695 2013-08-13 Pierre Muller <muller@sourceware.org>
2697 * utils.c (init_page_info): Only call tgetnum function
2698 if rl_get_screen_size did not return useful values.
2700 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2702 PR breakpoints/15117
2703 * linespec.c (linespec_parse_basic): Check for convenience
2704 variable or history value while parsing.
2706 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2708 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2710 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2711 different signals between the generic Linux kernel implementation
2713 (avr_linux_gdb_signal_from_target): Delete.
2714 (avr_linux_gdb_signal_to_target): Delete.
2715 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2717 2013-08-09 Doug Evans <dje@google.com>
2719 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2722 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2724 * linux-tdep.c: Define enum with generic signal numbers.
2725 (linux_gdb_signal_from_target): New function.
2726 (linux_gdb_signal_to_target): Likewise.
2727 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2728 methods to the functions above.
2729 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2730 (linux_gdb_signal_to_target): Likewise.
2731 * alpha-linux-tdep.c: Define new enum with signals different
2732 from generic Linux kernel.
2733 (alpha_linux_gdb_signal_from_target): New function.
2734 (alpha_linux_gdb_signal_to_target): Likewise.
2735 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2736 with the functions mentioned above.
2737 * avr-tdep.c: Define enum with differences between Linux kernel
2739 (avr_linux_gdb_signal_from_target): New function.
2740 (avr_linux_gdb_signal_to_target): Likewise.
2741 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2742 the functions mentioned above.
2743 * sparc-linux-tdep.c: Define enum with differences between SPARC
2744 and generic Linux kernel signal numbers.
2745 (sparc32_linux_gdb_signal_from_target): New function.
2746 (sparc32_linux_gdb_signal_to_target): Likewise.
2747 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2748 to the functions defined above.
2749 * xtensa-linux-tdep.c: Define enum with differences between
2750 Xtensa and Linux kernel generic signals.
2751 (xtensa_linux_gdb_signal_from_target): New function.
2752 (xtensa_linux_gdb_signal_to_target): Likewise.
2753 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2754 to the functions defined above.
2755 * mips-linux-tdep.c: Define enum with differences between
2756 signals in MIPS and Linux kernel generic ones.
2757 (mips_gdb_signal_to_target): New function.
2758 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2759 only different signals from the Linux kernel generic.
2760 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2761 the functions defined above.
2762 * mips-linux-tdep.h (enum mips_signals): Remove.
2764 2013-08-09 Pedro Alves <palves@redhat.com>
2766 * avr-tdep.c (XMALLOC): Delete macro.
2767 * cli/cli-dump.c (XMALLOC): Delete macro.
2769 2013-08-09 Pedro Alves <palves@redhat.com>
2771 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2772 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2773 (fopen_with_cleanup, add_dump_command): Make static.
2774 * cli/cli-dump.h: Delete file.
2775 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2778 2013-08-09 Pedro Alves <palves@redhat.com>
2780 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2783 2013-08-09 Pedro Alves <palves@redhat.com>
2785 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2788 2013-08-09 Pedro Alves <palves@redhat.com>
2790 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2791 (gcore_command): Use tilde_expand here, and when showing the
2792 filename to the user, show the expanded version.
2794 2013-08-09 Yao Qi <yao@codesourcery.com>
2796 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2799 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2801 * gcore.c (create_gcore_bfd): Use tilde_expand.
2803 2013-08-08 Yao Qi <yao@codesourcery.com>
2805 * frame.h (read_frame_local): Declare.
2806 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2808 * stack.c (read_frame_local): New.
2810 2013-08-08 Yao Qi <yao@codesourcery.com>
2812 * mi/mi-cmd-stack.c: Update comments to function
2813 list_args_or_locals.
2815 2013-08-07 Tom Tromey <tromey@redhat.com>
2818 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2819 (process_psymtab_comp_unit_reader): Use it.
2820 (process_psymtab_comp_unit): Update. Add "pretend_language"
2822 (dwarf2_build_psymtabs_hard): Update.
2823 (scan_partial_symbols): Pass CU's language to
2824 process_psymtab_comp_unit.
2826 2013-08-07 Tom Tromey <tromey@redhat.com>
2828 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2829 (dwarf2_gdb_index_functions): Update.
2830 * psymtab.c (find_symbol_file_from_partial): Remove.
2831 (psym_functions): Update.
2832 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2835 2013-08-07 Tom Tromey <tromey@redhat.com>
2837 * symfile.c (set_initial_language): Look up "main" symbol
2838 and use its language.
2839 * symtab.c (find_main_filename): Remove.
2840 * symtab.h (find_main_filename): Remove.
2842 2013-08-07 Tom Tromey <tromey@redhat.com>
2844 * dwarf2read.c (recursively_compute_inclusions): Add
2845 "immediate_parent" argument. Set symtab's "user" field
2847 (compute_symtab_includes): Update.
2849 2013-08-07 Tom Tromey <tromey@redhat.com>
2851 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2852 when adding label symbols.
2854 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2855 Ulrich Weigand <uweigand@de.ibm.com>
2857 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2858 * configure.host (powerpc64-*-aix*): Likewise.
2860 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2861 Ulrich Weigand <uweigand@de.ibm.com>
2863 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2865 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2866 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2867 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2868 * configure.ac: Check for ptrace64.
2869 * configure, config.in: Regenerate.
2871 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2872 Ulrich Weigand <uweigand@de.ibm.com>
2874 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2875 Call ptrace64 instead of ptrace if defined.
2876 Add macro addr_ptr to take care of ptrace address argument.
2877 (pdc_read_regs): Likewise.
2878 (pdc_write_regs): Likewise.
2879 (aix_thread_resume): Likewise.
2880 (fetch_regs_kernel_thread): Likewise.
2881 (store_regs_kernel_thread): Likewise.
2883 2013-08-07 Anton Blanchard <anton@samba.org>
2885 * MAINTAINERS: Add myself to Write After Approval.
2887 2013-08-05 Tom Tromey <tromey@redhat.com>
2889 * aix-thread.c (_initialize_aix_thread): Use
2890 complete_target_initialization.
2891 * bsd-uthread.c (_initialize_bsd_uthread): Use
2892 complete_target_initialization.
2893 * dec-thread.c (_initialize_dec_thread): Use
2894 complete_target_initialization.
2895 * ravenscar-thread.c (_initialize_ravenscar): Use
2896 complete_target_initialization.
2897 * sol-thread.c (_initialize_sol_thread): Use
2898 complete_target_initialization.
2899 * spu-multiarch.c (_initialize_spu_multiarch): Use
2900 complete_target_initialization.
2902 2013-08-05 Tom Tromey <tromey@redhat.com>
2904 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2905 * ada-lang.c (ada_lookup_simple_minsym): Return
2906 bound_minimal_symbol.
2907 * ada-lang.h (ada_lookup_simple_minsym): Update.
2908 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2909 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2910 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2911 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2912 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2913 * minsyms.c (msymbol_objfile): Remove.
2914 (lookup_minimal_symbol_internal): New function, from
2915 lookup_minimal_symbol.
2916 (lookup_minimal_symbol): Rewrite using
2917 lookup_minimal_symbol_internal.
2918 (lookup_bound_minimal_symbol): New function.
2919 * minsyms.h (msymbol_objfile): Remove.
2920 (lookup_bound_minimal_symbol): Declare.
2921 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2922 * parse.c (write_exp_msymbol): Change parameter to a
2923 bound_minimal_symbol.
2924 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2925 * parser-defs.h (write_exp_msymbol): Update.
2926 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2927 * symfile.c (simple_read_overlay_table): Use
2928 lookup_bound_minimal_symbol.
2929 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2930 (search_symbols): Likewise.
2931 (print_msymbol_info): Take a bound_minimal_symbol argument.
2932 (symtab_symbol_info, rbreak_command): Update.
2933 * symtab.h (struct symbol_search) <msymbol>: Change type
2934 to bound_minimal_symbol.
2935 * valops.c (find_function_in_inferior): Use
2936 lookup_bound_minimal_symbol.
2937 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2939 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2942 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2944 (async_cleanup_sigint_signal_handler): ... this.
2945 (initialize_sigint_signal_handler): Remove declaration.
2946 (handle_remote_sigint): Rename the declaration to ...
2947 (async_handle_remote_sigint): ... this.
2948 (handle_remote_sigint_twice): Rename the declaration to ...
2949 (async_handle_remote_sigint_twice): ... this.
2950 (async_remote_interrupt, async_remote_interrupt_twice)
2951 (remote_interrupt): Remove the declarations.
2952 (remote_interrupt_twice): Rename the declaration ...
2953 (sync_remote_interrupt_twice): ... this.
2954 (sigint_remote_twice_token): Rename the variable to ...
2955 (async_sigint_remote_twice_token): ... this.
2956 (sigint_remote_token): Rename the variable to ...
2957 (async_sigint_remote_token): ... this.
2958 (initialize_sigint_signal_handler): Rename the function to ...
2959 (async_initialize_sigint_signal_handler): ... this. Update the name
2961 (handle_remote_sigint): Rename the function to ...
2962 (async_handle_remote_sigint): ... this. Update the names inside.
2963 (handle_remote_sigint_twice): Rename the function to ...
2964 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2965 (cleanup_sigint_signal_handler): Rename the function to ...
2966 (async_cleanup_sigint_signal_handler): ... this.
2967 (remote_interrupt): Rename the function to ...
2968 (sync_remote_interrupt): this. Update the names inside.
2969 (remote_interrupt_twice): Rename the function to ...
2970 (sync_remote_interrupt_twice): this. Update the names inside.
2971 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2972 (_initialize_remote): Update the names inside.
2974 2013-08-02 Tom Tromey <tromey@redhat.com>
2977 * breakpoint.c (update_watchpoint, watchpoint_check)
2978 (watch_command_1): Update.
2979 * eval.c (fetch_subexp_value): Add "preserve_errors"
2981 * ppc-linux-nat.c (check_condition): Update.
2982 * value.h (fetch_subexp_value): Update.
2984 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
2986 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2989 2013-08-01 Doug Evans <dje@google.com>
2992 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2993 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2994 Add assert of sig_entry->dwo_unit == NULL.
2995 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2996 had already been read.
2997 (read_signatured_type): Set per_cu.tu_read.
3000 * valops.c (value_struct_elt): Add missing call to check_typedef.
3001 (value_find_oload_method_list): Ditto.
3003 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3004 effectively, struct symbol_search **.
3005 (make_cleanup_free_search_symbols): Change arg to struct
3006 symbol_search **. All callers updated.
3007 (compare_search_syms): Compare symtab file name and block as well.
3008 (search_symbols_equal): New function.
3009 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3010 New args new_head, new_tail. Result is now void. Remove dups after
3011 sorting the symbols.
3012 (search_symbols): Sort all found symbols once, after all have been
3013 found, and remove duplicates. Simplify cleanup tracking of result.
3014 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3016 Further workarounds for binutils/15021.
3017 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3018 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3019 Watch for duplicate symtabs coming from type units.
3020 (compute_symtab_includes): Update call to
3021 recursively_compute_inclusions. Build vector of included symtabs
3023 * symtab.h (symtab_ptr): New typedef.
3024 (DEF_VEC_P (symtab_ptr)): New VEC type.
3025 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3028 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
3030 * cli/cli-script.c (script_from_file): Remove use of
3032 * main.c (captured_main): Remove use of error_pre_print and
3034 * utils.c (error_pre_print, quit_pre_print): Remove.
3035 * utils.h (error_pre_print, quit_pre_print): Likewise.
3037 2013-08-01 Yao Qi <yao@codesourcery.com>
3039 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3041 (mi_cmd_stack_list_variables): Likewise.
3043 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3045 * exceptions.c (deprecated_throw_reason): Remove.
3046 * exceptions.h (deprecated_throw_reason): Remove.
3048 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3050 * remote-mips.c (mips_error): Replace use of
3051 deprecated_throw_reason with throw_verror. Use the error message
3052 passed to mips_error as the error message for throw_verror.
3054 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3056 * monitor.c (monitor_interrupt_query): Replace use of
3057 deprecated_throw_reason with quit.
3058 * nto-procfs.c (interrupt_query): Likewise.
3059 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3060 * remote-mips.c (mips_kill): Likewise.
3061 * remote.c (interrupt_query): Likewise.
3063 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3065 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3068 2013-07-31 Pedro Alves <pedro@codesourcery.com>
3069 Yao Qi <yao@codesourcery.com>
3071 * tracepoint.c (trace_dump_command): Select the current frame.
3073 2013-07-30 Doug Evans <dje@google.com>
3075 * dwarf2read.c (process_queue): Add type signature to debug output.
3077 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3079 * value.c (value_fetch_lazy): Mark optimized out values as such
3080 rather than raising an error.
3082 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3084 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3085 before checking which bits of the parent, not the child, value are
3088 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3091 * top.c: Include "filenames.h".
3092 (set_history_filename): New function.
3093 (init_main): Install it as set hook of the "set history filename"
3096 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3098 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3099 attribute parameter.
3100 (dwarf2_const_value_data): Constify struct attribute parameter.
3101 (dwarf2_const_value): Constify struct attribute parameter.
3102 (dwarf2_const_value_attr): Constify struct attribute parameter.
3103 (lookup_die_type): Constify struct attribute parameter.
3104 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3105 (follow_die_ref_or_sig): Constify struct attribute parameter.
3106 (follow_die_ref): Constify struct attribute parameter.
3107 (follow_die_sig): Constify struct attribute parameter.
3108 (get_DW_AT_signature_type): Constify struct attribute parameter.
3109 (get_type_unit_group): Constify struct attribute parameter.
3110 (fill_in_loclist_baton): Constify struct attribute parameter.
3111 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3112 (type_unit_group): Constify struct attribute parameter.
3114 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3116 * dwarf2read.c (attr_form_is_block): Make argument const.
3117 (attr_form_is_section_offset): Make argument const.
3118 (attr_form_is_constant): Make argument const.
3119 (attr_form_is_ref): Make argument const.
3121 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3123 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3125 (attr_form_is_ref): Moved below attr_form_is_constant.
3127 2013-07-29 Doug Evans <dje@google.com>
3129 * main.c (captured_command_loop): Tweak comment.
3131 * target.c (target_async_permitted_1): Fix comment.
3133 * symtab.c (iterate_over_some_symtabs): Add comment.
3135 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3137 2013-07-27 Yao Qi <yao@codesourcery.com>
3139 * NEWS: Mention that GDBserver now supports hardware
3140 watchpoints on the MIPS GNU/Linux target.
3142 2013-07-27 Yao Qi <yao@codesourcery.com>
3144 * Makefile.in (HFILES_NO_SRCDIR): Add
3145 common/mips-linux-watch.h.
3146 (mips-linux-watch.o): New rule.
3147 * common/mips-linux-watch.c: New.
3148 * common/mips-linux-watch.h: New.
3149 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3150 * mips-linux-nat.c: Include mips-linux-watch.h.
3151 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3152 to common/mips-linux-watch.h.
3153 (MAX_DEBUG_REGISTER): Likewise.
3154 (enum pt_watch_style): Likewise.
3155 (struct mips32_watch_regs): Likewise.
3156 (struct mips64_watch_regs): Likewise.
3157 (struct pt_watch_regs): Likewise.
3158 (struct mips_watchpoint): Likewise.
3159 (mips_linux_watch_get_irw_mask): Move to
3160 common/mips-linux-watch.c.
3161 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3162 (mips_linux_watch_get_watchlo): Likewise.
3163 (mips_linux_watch_set_watchlo): Likewise.
3164 (mips_linux_watch_get_watchhi): Likewise.
3165 (mips_linux_watch_set_watchhi): Likewise.
3166 (mips_linux_read_watch_registers): Likewise.
3167 (mips_linux_watch_type_to_irw): Likewise.
3168 (mips_linux_stopped_data_address, fill_mask): Likewise.
3169 (mips_linux_watch_try_one_watch): Likewise.
3170 (mips_linux_watch_populate_regs): Likewise.
3172 2013-07-27 Yao Qi <yao@codesourcery.com>
3174 * mips-linux-nat.c (get_irw_mask): Rename to ...
3175 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3176 'set' to 'n'. Update function comment. All callers changed.
3177 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3178 function comment. All callers changed.
3179 (get_num_valid): Rename to ...
3180 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3181 'set' to 'n'. Update function comment. All callers changed.
3182 (get_watchlo): Rename to ...
3183 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3184 'set' to 'n'. Update function comment. All callers changed.
3185 (set_watchlo): Rename to ...
3186 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3187 'set' to 'n'. Update function comment. All callers changed.
3188 (get_watchhi): Rename to ...
3189 (mips_linux_watch_get_watchhi): ... this. Update function
3190 comment. All callers changed.
3191 (set_watchhi): Rename to ...
3192 (mips_linux_watch_set_watchhi): ... this. Update function
3193 comment. All callers changed.
3194 (mips_linux_read_watch_registers): Update function comment.
3195 Add new parameters 'lwpid', 'watch_readback', and
3196 'watch_readback_valid'. Update.
3197 (type_to_irw): Rename to ...
3198 (mips_linux_watch_type_to_irw): ... this. Update function
3199 comment. All callers changed.
3200 (fill_mask): Update function comment.
3201 (try_one_watch): Rename to ...
3202 (mips_linux_watch_try_one_watch): ... this. Change the type
3203 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3204 (populate_regs_from_watches): Rename to ...
3205 (mips_linux_watch_populate_regs): ... this. Add parameter
3206 'current_watches'. All callers changed.
3208 2013-07-27 Yao Qi <yao@codesourcery.com>
3210 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3212 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3213 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3214 (struct pt_watch_regs): Likewise.
3215 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3216 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3217 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3218 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3219 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3221 2013-07-27 Yao Qi <yao@codesourcery.com>
3223 * breakpoint.h: Include break-common.h.
3224 (enum target_hw_bp_type): Move to ...
3225 * common/break-common.h: ... here. New.
3227 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3229 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3230 process group regardless of having tty on stdin.
3232 2013-07-25 Doug Evans <dje@google.com>
3234 * linux-fork.h (detach_fork): Delete.
3236 2013-07-25 Tom Tromey <tromey@redhat.com>
3238 PR remote/15256, PR remote/15266:
3239 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3240 * monitor.c (monitor_detach): Use unpush_target.
3241 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3242 * remote-mips.c (mips_detach): Use unpush_target. Don't
3244 * remote-sim.c (gdbsim_detach): Use unpush_target.
3245 * target.c (pop_target): Remove.
3246 (pop_all_targets_above): Don't call target_close.
3247 (target_close): Assert that the target is unpushed.
3248 * target.h (pop_target): Don't declare.
3249 * tracepoint.c (tfile_open): Use unpush_target.
3251 2013-07-25 Tom Tromey <tromey@redhat.com>
3253 * linux-thread-db.c (init_thread_db_ops): Call
3254 complete_target_initialization.
3255 (_initialize_thread_db): Don't call add_target.
3256 * target.c (complete_target_initialization): New function.
3257 (add_target_with_completer): Call it.
3258 * target.h (complete_target_initialization): Declare.
3260 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3262 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3263 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3264 (HPPANBSD_SIZEOF_GREGS): New define.
3265 (hppaobsd_supply_gregset): Handle additional registers.
3266 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3267 we provide more registers now.
3268 (hppabsd_supply_gregset): Supply additional registers.
3269 (hppabsd_collect_gregset): Collect additional registers.
3271 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3273 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3274 (hppabsd_dwarf2_frame_init_reg): New function.
3275 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3277 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3279 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3280 'z' format code. Remove error for optimized out values, standard
3281 code will handle these fine.
3283 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3285 * NEWS: Mention new 'z' formatter.
3286 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3287 (_initialize_printcmd): Mention 'z' formatter in help text of the
3290 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3292 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3295 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3297 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3298 interface can evaluate arguments. Fallback to the old mode if it
3300 (create_exception_master_breakpoint): Likewise.
3301 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3302 (struct sym_probe_fns elf_probe_fns): Export function above to the
3304 * probe.c (can_evaluate_probe_arguments): New function.
3305 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3307 (can_evaluate_probe_arguments): New function prototype.
3308 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3309 probe interface can evaluate arguments. Fallback to the old mode
3311 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3312 interface can evaluate arguments. Warning the user if it cannot.
3313 (stap_can_evaluate_probe_arguments): New function.
3314 (struct probe_ops stap_probe_ops): Export function above to the
3316 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3317 New function pointer.
3319 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3321 * Makefile.in (SFILES): Add common/target-common.c.
3322 Add common/target-common.h to headers.
3323 (COMMON_OBS): Add target-common.o.
3324 (target-common.o): New target.
3325 * linux-nat.h (resume_kind): Move to common/target-common.h.
3326 * target.c (target_waitstatus_to_string): Move to
3327 common/target-common.c.
3328 * target.h: Include target-common.h.
3329 (target_waitkind): Move to common/target-common.h.
3330 (target_waitstatus): Likewise.
3331 (TARGET_WNOHANG): Likewise.
3332 * common/target-common.c: New file.
3333 * common/target-common.h: New file.
3335 2013-07-24 Doug Evans <dje@google.com>
3337 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3340 2013-07-23 Yao Qi <yao@codesourcery.com>
3342 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3343 parameter 'gdbarch'.
3344 (i386_stack_tramp_frame_sniffer): Caller update.
3345 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3346 parameter 'gdbarch' and 'target'.
3347 (i386_linux_core_read_description): Caller update.
3348 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3350 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3353 2013-07-23 Tom Tromey <tromey@redhat.com>
3355 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3358 2013-07-22 Doug Evans <dje@google.com>
3360 * exec.h (remove_target_sections): Delete arg abfd.
3361 * exec.c (exec_close): Update call to remove_target_sections.
3362 (remove_target_sections): Delete arg abfd.
3363 * solib.c (update_solib_list): Ditto.
3364 (reload_shared_libraries_1): Ditto.
3365 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3366 * target.h (struct target_section): Rename key to owner.
3369 2013-07-22 Tom Tromey <tromey@redhat.com>
3371 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3373 2013-07-22 Tom Tromey <tromey@redhat.com>
3375 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3376 Simplify cleanup handling.
3378 2013-07-22 Tom Tromey <tromey@redhat.com>
3380 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3381 on all return paths.
3383 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3385 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3386 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3387 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3389 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3391 * top.c (print_gdb_version): Add help, apropos description and
3392 url to online documentation.
3394 2013-07-19 Hui Zhu <hui@codesourcery.com>
3397 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3399 2013-07-19 Yao Qi <yao@codesourcery.com>
3401 * target.c (update_current_target): Change the default action
3402 of 'to_traceframe_info' from tcomplain to return_zero.
3403 * target.h (struct target_ops) <to_traceframe_info>: Add more
3405 * valops.c (read_value_memory): Call
3406 traceframe_available_memory unconditionally.
3408 2013-07-18 Yao Qi <yao@codesourcery.com>
3410 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3411 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3412 symbol without prefix. If found, set its type to
3413 'mst_solib_trampoline'.
3415 2013-07-17 Doug Evans <dje@google.com>
3417 * NEWS: Mention "set print raw frame-arguments".
3418 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3419 * stack.c (print_raw_frame_arguments): New static global.
3420 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3421 (_initialize_stack): New command "set/show print raw frame-arguments".
3422 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3423 (set_print_raw, show_print_raw): New functions.
3424 (_initialize_valprint): New prefix command "set/show print raw".
3425 * valprint.h (value_print_options): Improve comments.
3427 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3428 of all *list variables.
3430 * gdbcmd.h (togglelist): Delete.
3431 * cli/cli-cmds.c (togglelist): Delete.
3432 (init_cmd_lists): Update.
3433 * cli/cli-cmds.h (togglelist): Delete.
3435 2013-07-17 Tom Tromey <tromey@redhat.com>
3437 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3440 2013-07-16 Doug Evans <dje@google.com>
3442 * nto-tdep.c (nto_relocate_section_addresses): Update,
3443 target_section.bfd deleted.
3444 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3445 * s390-tdep.c (s390_load): Ditto.
3446 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3448 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3450 * common/format.c (parse_format_string): Add checks for NULL
3451 character before calling strchr.
3453 2013-07-16 Doug Evans <dje@google.com>
3455 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3456 temp_pathname argument.
3457 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3458 when opening the file fails.
3460 * target.h (struct target_section): Delete member bfd.
3461 All users updated to use the_bfd_section->owner instead.
3462 * exec.c (add_to_section_table): Assert bfd is expected value.
3463 Remove initialization of target_section.bfd.
3464 (remove_target_sections): Update.
3465 (section_table_available_memory): Update.
3466 (section_table_xfer_memory_partial): Update.
3467 (print_section_info): Update.
3468 (exec_set_section_address): Update.
3469 * record-full.c (record_full_core_xfer_partial): Update.
3470 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3471 * solib-target.c (solib_target_relocate_section_addresses): Update.
3472 * symfile.c (build_section_addr_info_from_section_table): Update.
3473 * target.c (memory_xfer_live_readonly_partial): Update.
3474 (memory_xfer_partial_1): Update.
3476 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3478 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3479 now available for embedded (BookE) and server (BookS) processors,
3480 correct mentions of 'booke' and adjust comments accordingly in order to
3481 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3482 (have_ptrace_booke_interface): Rename function and variable
3483 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3484 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3485 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3486 'hwdebug_point_cmp'. Update all uses.
3487 (booke_find_thread_points_by_tid): Rename function
3488 'booke_find_thread_points_by_tid' to
3489 'hwdebug_find_thread_points_by_tid'. Update all uses.
3490 (booke_insert_point): Rename function 'booke_insert_point' to
3491 'hwdebug_insert_point'. Update all uses.
3492 (booke_remove_point): Rename function 'booke_remove_point' to
3493 'hwdebug_remove_point'. Update all uses.
3495 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3497 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3498 numbers with enum values.
3500 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3503 * thread.c (thread_apply_all_command): Check for valid threads
3505 (thread_array_cleanup): New struct.
3506 (set_thread_refcount): New function.
3508 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3510 * infcmd.c (default_print_one_register_info): Reuse function
3513 2013-07-10 Tom Tromey <tromey@redhat.com>
3515 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3516 (ada-exp.o): New target.
3518 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3520 * mt-tdep.c (mt_registers_info): Call
3521 get_no_prettyformat_print_options instead of
3522 get_raw_print_options (regression by last patch from Doug
3525 2013-07-09 Pedro Alves <palves@redhat.com>
3527 Checked in by Joel Brobecker <brobecker@adacore.com>.
3528 * ada-lang.c (coerce_unspec_val_to_type): Use
3529 value_optimized_out_const.
3530 * value.c (value_optimized_out_const): New function.
3531 * value.h (value_optimized_out_const): New declaration.
3533 2013-07-09 Doug Evans <dje@google.com>
3535 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3536 Enum values rename as well. All uses updated.
3537 * valprint.h (value_print_options): Rename member pretty to
3538 pretty format. Rename member prettyprint_arrays to
3539 prettyformat_arrays. Rename member prettyprint_structs to
3540 prettyformat_structs. All uses updated.
3541 (get_no_prettyformat_print_options): Renamed from
3542 get_raw_print_options.
3543 * valprint.c (get_no_prettyformat_print_options): Renamed from
3544 get_raw_print_options. All callers updated.
3545 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3546 All callers updated.
3547 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3548 All callers updated.
3549 (_initialize_valprint): Improve help text for "set print pretty" and
3552 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3554 * value.c (value_bits_valid): Revert previous change, and change
3555 by Pedro on 2013-07-04, due to regressions in
3556 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3558 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3559 Pedro Alves <palves@redhat.com>
3561 * value.c (value_bits_valid): If the value is not lval_computed
3562 or has no check validity handler then the answer is the
3563 optimized_out flag, otherwise defer to the handler.
3565 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3567 * top.c (print_gdb_configuration): Explain in output of
3568 --configuration what does "relocatable" mean.
3570 * main.c (print_gdb_help): Regroup options in the --help text.
3571 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3572 the relevant discussions.
3574 2013-07-06 Yao Qi <yao@codesourcery.com>
3576 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3577 Remove parameter 'lsal'.
3578 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3579 to inner block. Caller update.
3580 (base_breakpoint_create_breakpoints_sal): Update.
3581 (bkpt_create_breakpoints_sal): Likewise.
3582 (tracepoint_create_breakpoints_sal): Likewise.
3583 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3584 element 0 of vector 'canonical->sals'.
3586 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3588 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3589 register number instead of the pseudo register one.
3590 (rs6000_dwarf2_reg_to_regnum): Likewise.
3592 2013-07-04 Pedro Alves <palves@redhat.com>
3594 * findvar.c (value_of_register): Use allocate_optimized_out_value
3595 if the register has been optimized out, instead of
3596 set_value_optimized_out.
3597 * frame-unwind.c (frame_unwind_got_optimized): Use
3598 allocate_optimized_out_value.
3600 2013-07-04 Pedro Alves <palves@redhat.com>
3602 * value.c (value_bits_valid): If the value is not lval_computed,
3603 or doesn't have a check_validity hook, assume the value is entirely
3606 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3608 * stack.c (read_frame_arg): No longer fetch lazy values.
3609 * value.c (value_optimized_out): If the value is not already
3610 marked optimized out, and is lazy then fetch it.
3611 (value_primitive_field): Move optimized out check to later in the
3612 function, after we have loaded any lazy values.
3613 (value_fetch_lazy): Use optimized out flag directly rather than
3614 calling optimized_out method.
3616 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3618 * valops.c: Don't include "user-regs.h".
3619 (value_fetch_lazy): Moved to value.c.
3620 * value.c: Include "user-regs.h".
3621 (value_fetch_lazy): Moved from valops.c.
3623 2013-07-04 Yao Qi <yao@codesourcery.com>
3626 2013-06-27 Yao Qi <yao@codesourcery.com>
3628 * common/create-version.sh: Update comments. Handle the case
3629 that TARGET_ALIAS is empty.
3631 2013-07-03 Pedro Alves <palves@redhat.com>
3633 * Makefile.in (config.status): Depend on development.sh.
3634 (aclocal_m4_deps): Add libmcheck.m4.
3635 * acinclude.m4: Include libmcheck.m4.
3636 * configure.ac: Source development.sh instead of setting
3637 'development' here. --enable-libmcheck/--disable-libmcheck code
3638 factored out to GDB_AC_LIBMCHECK. Run it.
3639 * development.sh: New file.
3640 * libmcheck.m4: New file.
3641 * configure: Regenerate.
3643 2013-07-02 Tom Tromey <tromey@redhat.com>
3645 * contrib/ari/update-web-ari.sh: Update for version.in change.
3647 2013-07-02 Tom Tromey <tromey@redhat.com>
3649 * common/ptid.h: Comment fixes.
3651 2013-07-01 Tom Tromey <tromey@redhat.com>
3653 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3654 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3655 (dwarf2_read_index, create_all_comp_units): Update.
3657 2013-07-01 Tom Tromey <tromey@redhat.com>
3659 * configure.ac (build_warnings): Add -Wold-style-definition.
3660 * configure: Rebuild.
3661 * machoread.c (_initialize_machoread): Use "(void)".
3662 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3665 2013-07-01 Tom Tromey <tromey@redhat.com>
3667 * configure.ac (build_warnings): Add -Wold-style-declaration.
3668 * configure: Rebuild.
3669 * dsrec.c (make_srec): Use "static const", not "const static".
3670 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3672 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3673 Use "static const", not "const static".
3674 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3676 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3678 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3680 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3682 (v850_dbtrap_breakpoint_from_pc): Likewise.
3683 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3686 2013-07-01 Tom Tromey <tromey@redhat.com>
3688 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3689 * configure: Rebuild.
3691 2013-07-01 Pedro Alves <palves@redhat.com>
3693 * defs.h: Include "pathmax.h".
3694 * utils.c: Don't include sys/param.h.
3695 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3696 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3697 instead of MAXPATHLEN.
3698 * solib-sunos.c: Don't include sys/param.h.
3699 * xcoffread.c: Don't include sys/param.h.
3700 * bsd-kvm.c: Don't include sys/param.h.
3701 * darwin-nat.c: Don't include sys/param.h.
3702 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3703 * darwin-nat-info.c: Don't include sys/param.h.
3704 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3706 * i386obsd-nat.c: Don't include sys/param.h.
3707 * inf-child.c: Don't include sys/param.h.
3708 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3709 * linux-fork.c: Don't include sys/param.h.
3710 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3711 * linux-nat.c: Don't include sys/param.h.
3712 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3713 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3714 * m68klinux-nat.c: Don't include sys/param.h.
3715 * nbsd-nat.c: Don't include sys/param.h.
3716 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3717 * ppc-linux-nat.c: Don't include sys/param.h.
3718 * rs6000-nat.c: Don't include sys/param.h.
3719 * spu-linux-nat.c. Don't include sys/param.h.
3720 * windows-nat.c: Don't include sys/param.h.
3721 * xtensa-linux-nat.c: Don't include sys/param.h.
3722 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3724 2013-07-01 Pedro Alves <palves@redhat.com>
3726 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3727 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3728 * gnulib/aclocal.m4: Regenerate.
3729 * gnulib/config.in: Regenerate.
3730 * gnulib/configure: Regenerate.
3731 * gnulib/import/pathmax.h: New file.
3732 * gnulib/import/Makefile.am: Regenerate.
3733 * gnulib/import/Makefile.in: Regenerate.
3734 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3735 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3736 * gnulib/import/m4/pathmax.m4: New file.
3738 2013-07-01 Pedro Alves <palves@redhat.com>
3740 * configure.ac (GDBINIT): Define, depending on host.
3741 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3742 * top.c (PATH_MAX): Delete fallback definition.
3743 (GDBINIT_FILENAME): Delete.
3744 (gdbinit): Reimplement as const char array set to the GDBINIT
3746 * top.h (gdbinit): Make const.
3747 * configure, config.in: Regenerate.
3749 2013-07-01 Pedro Alves <palves@redhat.com>
3751 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3752 * cli/cli-cmds.h (source_script): Likewise.
3753 * exceptions.c (catch_command_errors_const): New function.
3754 * exceptions.h (catch_command_errors_const): Declare.
3755 * main.c (get_init_files): Make parameters const, and adjust.
3756 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3757 'local_gdbinit' locals const. Adjust to use
3758 catch_command_errors_const.
3759 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3760 'local_gdbinit' locals const.
3762 2013-07-01 Pedro Alves <palves@redhat.com>
3764 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3765 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3766 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3769 2013-07-01 Pedro Alves <palves@redhat.com>
3771 Import the "unistd" gnulib module.
3772 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3773 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3774 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3775 import/m4/unistd_h.m4.
3776 * gnulib/aclocal.m4: Renenerate.
3777 * gnulib/config.in: Renenerate.
3778 * gnulib/configure: Renenerate.
3779 * gnulib/import/Makefile.am: Renenerate.
3780 * gnulib/import/Makefile.in: Renenerate.
3781 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3782 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3783 * gnulib/import/m4/off_t.m4: New file.
3784 * gnulib/import/m4/ssize_t.m4: New file.
3785 * gnulib/import/m4/sys_types_h.m4: New file.
3786 * gnulib/import/m4/unistd_h.m4: New file.
3787 * gnulib/import/sys_types.in.h: New file.
3788 * gnulib/import/unistd.c: New file.
3789 * gnulib/import/unistd.in.h: New file.
3791 2013-07-01 Pedro Alves <palves@redhat.com>
3793 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3794 defined instead of checking HAVE_UNISTD_H.
3796 2013-07-01 Pedro Alves <palves@redhat.com>
3798 Reimport gnulib from scratch.
3799 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3800 import/m4/onceonly.m4.
3801 * gnulib/aclocal.m4: Renegerate.
3802 * gnulib/config.in: Renegerate.
3803 * gnulib/configure: Renegerate.
3804 * gnulib/import/Makefile.in: Renegerate.
3805 * gnulib/import/extra/update-copyright: Renegerate.
3806 * gnulib/import/m4/onceonly.m4: Delete.
3808 2013-07-01 Pedro Alves <palves@redhat.com>
3810 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3812 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3815 * remote.c (async_remote_interrupt_twice): Make it static.
3816 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3818 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3820 * ia64-linux-tdep.c: Include <ctype.h>.
3821 (ia64_linux_stap_is_single_operand): New function.
3822 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3824 2013-06-28 Tom Tromey <tromey@redhat.com>
3826 * Makefile.in (version.c): Use version.in, not
3828 * common/create-version.sh: Likewise.
3829 * common/version.in: Move...
3830 * version.in: ...here.
3832 2013-06-28 Pedro Alves <palves@redhat.com>
3834 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3836 * utils.h (pagination_enabled): Declare.
3838 2013-06-28 Pedro Alves <palves@redhat.com>
3840 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3841 Move higher up in file.
3843 2013-06-28 Tom Tromey <tromey@redhat.com>
3845 * tracepoint.c (deprecated_readline_begin_hook)
3846 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3849 2013-06-28 Pedro Alves <palves@redhat.com>
3852 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3853 checking if they're available.
3854 * value.c (value_available_contents_eq): Change comment.
3855 * value.h (value_available_contents_eq): Expand comment.
3857 2013-06-27 Tom Tromey <tromey@redhat.com>
3859 * target.c (find_run_target): Remove.
3860 * target.h (find_run_target): Remove.
3862 2013-06-27 Tom Tromey <tromey@redhat.com>
3864 * corelow.c (core_gdbarch): Now static.
3866 2013-06-27 Tom Tromey <tromey@redhat.com>
3868 * target.c (target_struct_index): Remove.
3870 2013-06-27 Pedro Alves <palves@redhat.com>
3872 * infrun.c: Remove comment describing the 'stepping over runtime
3873 loader dynamic symbol resolution code' mechanism; moved to
3876 2013-06-27 Pedro Alves <palves@redhat.com>
3878 * exceptions.c (catch_command_errors): Remove spurious space.
3879 * exceptions.h (catch_command_errors): Second parameter is "arg",
3882 2013-06-27 Yao Qi <yao@codesourcery.com>
3884 * common/create-version.sh: Update comments. Handle the case
3885 that TARGET_ALIAS is empty.
3887 2013-06-26 Pedro Alves <palves@redhat.com>
3889 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3892 2013-06-26 Pedro Alves <palves@redhat.com>
3894 * infrun.c: Update comments on stepping over runtime loader
3895 dynamic symbol resolution code.
3897 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3899 * ax-gdb.h (union exp_element): Forward declare.
3900 * parser-defs.h: Include expression.h.
3902 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3904 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3906 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3908 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3910 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3912 Fix trace-status to output proper start-time and stop-time.
3913 * tracepoint.c (trace_status_command): Fix type of printf arg to
3914 prevent improper type conversion.
3915 (trace_status_mi): Likewise.
3917 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3919 * mips-tdep.c (mips_next_pc): Fix a typo.
3921 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3923 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3925 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3926 Yao Qi <yao@codesourcery.com>
3928 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3929 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3930 * mi/mi-main.c (print_variable_or_computed): New function.
3931 (mi_cmd_trace_frame_collected): New function.
3932 * tracepoint.c (find_trace_state_variable_by_number): New.
3933 (struct traceframe_info): Move to tracepoint.h
3934 (struct collection_list): Likewise.
3935 (do_collect_symbol): Include locals and arguments in the
3936 collected variables list.
3937 (clear_collection_list): Clear wholly collected variables list
3938 and computed variables list.
3939 (append_exp): New function.
3940 (encode_actions_1): Include variables in the wholly
3941 collected variables list. Include memory ranges and
3942 full-fledged expressions in the computed expressions list.
3943 (encode_actions): Move some code to ...
3944 Return the cleanup chain.
3945 (encode_actions_rsp): ... here. New function.
3946 (get_traceframe_location, get_traceframe_info): Remove static.
3947 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3948 (struct collection_list): Moved from tracepoint.c. Add two
3949 new fields 'wholly_collected' and 'computed'.
3950 (find_trace_state_variable_by_number): Declare.
3951 (encode_actions): Adjust declaration.
3952 (encode_actions_rsp): Declare.
3953 (get_traceframe_info, get_traceframe_location): Declare.
3955 * NEWS: Mention new MI command -trace-frame-collected.
3957 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3958 Yao Qi <yao@codesourcery.com>
3960 * ctf.c (ctf_traceframe_info): Push trace state variables
3961 present in the trace data into the traceframe info object.
3962 * breakpoint.c (DEF_VEC_I): Remove.
3963 * common/filestuff.c (DEF_VEC_I): Likewise.
3964 * dwarf2loc.c (DEF_VEC_I): Likewise.
3965 * mi/mi-main.c (DEF_VEC_I): Likewise.
3966 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3967 * features/traceframe-info.dtd: Add tvar element and its
3969 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3970 (build_traceframe_info): Push trace state variables present in
3971 the trace data into the traceframe info object.
3972 (traceframe_info_start_tvar): New function.
3973 (tvar_attributes): New.
3974 (traceframe_info_children): Add "tvar" element.
3975 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3977 * NEWS: Mention the change in GDB and GDBserver.
3979 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3980 Yao Qi <yao@codesourcery.com>
3982 * tracepoint.c (trace_dump_command): Move code to ...
3983 (get_traceframe_location): ... here. New.
3985 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3986 Yao Qi <yao@codesourcery.com>
3988 * tracepoint.c (trace_dump_command): GDB emits an error
3989 instead of a warning when a traceframe is not selected.
3991 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3992 Yao Qi <yao@codesourcery.com>
3994 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3995 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3997 (do_clear_collection_list, init_collection_list): New.
3998 (encode_actions): Add local variables 'tracepoint_list' and
3999 'stepping_list'. Call init_collection_list and make cleanup
4000 which calls do_clear_collection_list. Don't call
4001 clear_collection_list.
4002 (_initialize_tracepoint): Delete references to
4003 'tracepoint_list' and 'stepping_list'.
4005 2013-06-25 Tom Tromey <tromey@redhat.com>
4007 * common/create-version.sh (date): Use "$", not "$$" in sed
4010 2013-06-25 Kevin Buettner <kevinb@redhat.com>
4012 * NEWS (New targets): Add entry for TI MSP430.
4014 2013-06-25 Yao Qi <yao@codesourcery.com>
4016 * remote.c (remote_start_remote): Move code to upload tsv
4019 2013-06-25 Yao Qi <yao@codesourcery.com>
4020 Hui Zhu <hui@codesourcery.com>
4021 Pedro Alves <palves@redhat.com>
4023 PR breakpoints/15075
4024 PR breakpoints/15434
4025 * breakpoint.c (bpstat_stop_status): Call
4026 b->ops->after_condition_true.
4027 (update_dprintf_command_list): Don't append "continue" command
4028 to the command list of dprintf breakpoint.
4029 (base_breakpoint_after_condition_true): New function.
4030 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4031 (dprintf_after_condition_true): New function.
4032 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4033 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4035 2013-06-24 Kevin Buettner <kevinb@redhat.com>
4037 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4038 (ALLDEPFILES): Add msp430-tdep.c.
4039 * configure.tgt (msp430*-*-elf): New target.
4040 * msp430-tdep.c: New file.
4042 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4044 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4045 microMIPS synthetic symbols.
4047 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4049 * objfiles.h (pc_in_section): New prototype.
4050 (in_plt_section): Remove name argument, replace prototype with
4051 static inline function.
4052 * mips-tdep.h: Include "objfiles.h".
4053 (in_mips_stubs_section): New function.
4054 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4055 in_solib_call_trampoline member.
4056 (hppa_in_solib_call_trampoline): Remove name argument.
4057 * objfiles.c (pc_in_section): New function.
4058 (in_plt_section): Remove function.
4059 * mips-linux-tdep.c: Include "objfiles.h".
4060 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4061 name argument. Return 1 rather than the low 16-bit halfword of
4062 any instruction examined.
4063 (mips_linux_in_dynsym_resolve_code): Update
4064 mips_linux_in_dynsym_stub call accordingly.
4065 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4066 rather than an equivalent hand-coded sequence.
4067 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4068 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4069 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4070 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4072 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4073 on call to tdep->in_solib_call_trampoline.
4074 (hppa_in_solib_call_trampoline): Remove name argument, update
4075 according to in_plt_section change.
4076 (hppa_skip_trampoline_code): Update according to in_plt_section
4078 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4079 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4081 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4082 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4083 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4084 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4085 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4086 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4087 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4088 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4089 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4090 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4091 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4092 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4093 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4095 2013-06-24 Joel Brobecker <brobecker@adacore.com>
4097 * common/create-version.sh: Fix expansion of $host_alias
4098 and $target_alias in generation of HOST_NAME and TARGET_NAME
4101 2013-06-24 Tom Tromey <tromey@redhat.com>
4103 * common/create-version.sh: New file.
4104 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4106 (HFILES_NO_SRCDIR): Use common/version.h.
4107 * version.in: Move to ...
4108 * common/version.in: ... here. Replace date with "DATE".
4109 * version.h: Move to ...
4110 * common/version.h: ... here.
4112 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4114 * gdb/gnulib/Makefile.in: Update date in copyright header.
4115 * gdb/gnulib/configure.ac: Ditto.
4116 * gdb/gnulib/update-gnulib.sh: Ditto.
4118 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4120 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4121 "gdb/gnulib/import".
4123 2013-06-21 Will Newton <will.newton@linaro.org>
4125 * doublest.c (ldfrexp): Remove function.
4126 (convert_doublest_to_floatformat): Call frexpl instead of
4129 2013-06-21 Will Newton <will.newton@linaro.org>
4131 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4132 * gnulib/aclocal.m4: Regenerate.
4133 * gnulib/config.in: Regenerate.
4134 * gnulib/configure: Regenerate.
4135 * gnulib/import/Makefile.am: Update.
4136 * gnulib/import/Makefile.in: Update.
4137 * gnulib/import/m4/gnulib-cache.m4: Update.
4138 * gnulib/import/m4/gnulib-comp.m4: Update.
4139 * gnulib/import/float+.h: Import.
4140 * gnulib/import/float.c: Import.
4141 * gnulib/import/float.in.h: Import.
4142 * gnulib/import/fpucw.h: Import.
4143 * gnulib/import/frexp.c: Import.
4144 * gnulib/import/frexpl.c: Import.
4145 * gnulib/import/isnan.c: Import.
4146 * gnulib/import/isnand-nolibm.h: Import.
4147 * gnulib/import/isnand.c: Import.
4148 * gnulib/import/isnanl-nolibm.h: Import.
4149 * gnulib/import/isnanl.c: Import.
4150 * gnulib/import/itold.c: Import.
4151 * gnulib/import/m4/exponentd.m4: Import.
4152 * gnulib/import/m4/exponentl.m4: Import.
4153 * gnulib/import/m4/float_h.m4: Import.
4154 * gnulib/import/m4/fpieee.m4: Import.
4155 * gnulib/import/m4/frexp.m4: Import.
4156 * gnulib/import/m4/frexpl.m4: Import.
4157 * gnulib/import/m4/isnand.m4: Import.
4158 * gnulib/import/m4/isnanl.m4: Import.
4159 * gnulib/import/m4/math_h.m4: Import.
4160 * gnulib/import/math.c: Import.
4161 * gnulib/import/math.in.h: Import.
4163 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4165 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4166 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4167 signature_INTEL_edx comparisons.
4169 2013-06-20 Doug Evans <dje@google.com>
4172 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4173 All callers updated.
4174 (open_dwp_file): If we can't find the dwp file, search the basename
4175 in debug-file-directory.
4177 * dwarf2read.c (struct dwp_file): Fix comment.
4178 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4180 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4183 2013-06-20 Yao Qi <yao@codesourcery.com>
4185 * breakpoint.c (create_breakpoint): Fix code indentation.
4187 2013-06-20 Yao Qi <yao@codesourcery.com>
4189 * breakpoint.c (create_breakpoints_sal_default): Remove
4190 parameter 'lsal'. Update declaration.
4191 (bkpt_create_breakpoints_sal): Caller update.
4192 (tracepoint_create_breakpoints_sal): Likewise.
4194 2013-06-20 Pedro Alves <pedro@codesourcery.com>
4195 Yao Qi <yao@codesourcery.com>
4197 * NEWS: Mention the new option '--skip-unavailable' of command
4198 -data-list-register-values.
4199 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4200 --skip-unavailable option. Adjust to use output_register.
4201 (output_register): Add new 'skip_unavailable' parameter.
4204 2013-06-19 Mike Frysinger <vapier@gentoo.org>
4206 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4207 common/i386-gcc-cpuid.h.
4208 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4209 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4210 Copy the latest version from upstream gcc.
4211 * common/linux-btrace.c: Include i386-cpuid.h.
4212 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4214 (cpu_supports_btrace): Likewise.
4215 * go32-nat.c: Include i386-cpuid.h.
4216 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4218 2013-06-19 Doug Evans <dje@google.com>
4220 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4221 (get_section_index): Ditto.
4223 2013-06-19 Tom Tromey <tromey@redhat.com>
4225 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4228 2013-06-18 Doug Evans <dje@google.com>
4230 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4232 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4233 Move test of cu_index closer to use. Print complaint if cu_index
4236 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4238 * machoread.c (oso_vector): Delete this global.
4239 (macho_register_oso): Add new parameter "oso_vector_ptr".
4240 Use it instead of the "oso_vector" global.
4241 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4242 (macho_symfile_read): Use a local oso_vector, to be free'ed
4243 at the end of this function, in place of the old "oso_vector"
4244 global. Update various function calls accordingly. Use one
4245 single cleanup chain for the entire function.
4247 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4249 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4250 DWARF2_PER_OBJFILE by uses of DATA instead.
4252 2013-06-18 Tom Tromey <tromey@redhat.com>
4254 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4256 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4257 Special case signals other than GDB_SIGNAL_TRAP.
4258 (explains_signal_watchpoint): New function.
4259 (base_breakpoint_explains_signal): Add 'sig' argument.
4260 (initialize_breakpoint_ops): Set 'explains_signal' method for
4262 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4264 (bpstat_explains_signal): Likewise.
4265 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4267 2013-06-18 Tom Tromey <tromey@redhat.com>
4269 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4271 2013-06-18 Tom Tromey <tromey@redhat.com>
4273 * python/python.c (finish_python_initialization): Decref
4274 'pythondir' on failure path as well.
4276 2013-06-18 Tom Tromey <tromey@redhat.com>
4279 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4280 after taking bits_to_skip into account. Sign extend byte_offset.
4281 * utils.h (gdb_sign_extend): Declare.
4282 * utils.c (gdb_sign_extend): New function.
4284 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4286 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4288 2013-06-17 Pierre Muller <muller@sourceware.org>
4290 * corelow.c (core_open): Print GDB signal name instead of target
4293 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4295 * .gitignore: Add /gcore.
4297 2013-06-13 Doug Evans <dje@google.com>
4299 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4300 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4302 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4304 * stack.c (backtrace_command_1): Fix indentation.
4306 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4308 * window-nat.c (thread_rec): Add missing empty line after
4309 local variable declaration.
4311 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4313 * windows-nat.c (thread_rec): Revert format used to print
4314 error code returned by SuspendThread from %d back to %u.
4316 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4318 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4320 (get_windows_debug_event): Likewise, for all debug traces.
4322 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4324 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4327 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4328 Yao Qi <yao@codesourcery.com>
4330 * mi/mi-main.c (get_register): Remove declaration.
4331 (output_register): Declare.
4332 (mi_cmd_data_list_register_values): Remove local variable
4333 'tuple_cleanup'. Move some code into output_register.
4334 (get_register): Renamed to ...
4335 (output_register): ... this. Output the register's
4336 "number" ui_out tuple here.
4338 2013-06-07 Pedro Alves <palves@redhat.com>
4340 * darwin-nat.c: Fix formating in copyright header.
4341 * darwin-nat.h: Likewise.
4342 * gnu-nat.c: Likewise.
4343 * machoread.c: Likewise.
4345 2013-06-07 Pedro Alves <palves@redhat.com>
4348 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4349 static. Output a global target description pointer.
4350 (init_registers_${name}): Adjust to initialize a
4351 target description structure.
4353 2013-06-07 Will Newton <will.newton@linaro.org>
4355 * printcmd.c (build_address_symbolic): Call
4356 gdbarch_addr_bits_remove for text minimal symbols.
4358 2013-06-07 Will Newton <will.newton@linaro.org>
4360 * MAINTAINERS: Add myself to Write After Approval.
4362 2013-06-07 Yao Qi <yao@codesourcery.com>
4364 * tracepoint.c (start_tracing): Move code to ...
4365 (trace_reset_local_state): ... here. New.
4366 (disconnect_tracing): Don't call set_current_traceframe,
4367 set_tracepoint_num, and set_traceframe_context. Call
4368 trace_reset_local_state instead.
4369 (tfile_close): Call trace_reset_local_state.
4370 * ctf.c (ctf_close): Likewise.
4371 * remote.c (remote_close): Likewise.
4372 * tracepoint.h (trace_reset_local_state): Declare.
4374 2013-06-06 Doug Evans <dje@google.com>
4376 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4377 and fix header docs.
4379 2013-06-05 Doug Evans <dje@google.com>
4380 Keith Seitz <keiths@redhat.com>
4383 * cp-namespace.c (find_symbol_in_baseclass): Call
4384 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4385 Check result of call to lookup_symbol_static.
4386 Call lookup_static_symbol_aux unconditionally.
4387 Call check_typedef on base types before accessing them.
4388 (cp_lookup_nested_symbol): Fix comment.
4390 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4392 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4393 minimal symbols pointing to function descriptors.
4395 2013-06-05 Tom Tromey <tromey@redhat.com>
4397 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4399 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4400 Pedro Alves <palves@redhat.com>
4402 * remote.c (remote_wait_as): Restore signal handler before returning
4403 when GDB gets a notification.
4405 2013-06-04 Gary Benson <gbenson@redhat.com>
4408 * breakpoint.h (handle_solib_event): Moved function declaration
4410 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4411 (bpstat_stop_status): Pass new argument to handle_solib_event.
4412 * solib.h (update_solib_breakpoints): New function declaration.
4413 (handle_solib_event): Moved function declaration from
4415 * solib.c (update_solib_breakpoints): New function.
4416 (handle_solib_event): Moved function from breakpoint.c.
4417 Updated to call solib_ops->handle_event if not NULL.
4418 * solist.h (target_so_ops): New fields "update_breakpoints" and
4420 * infrun.c (set_stop_on_solib_events): New function.
4421 (_initialize_infrun): Use the above for "set
4422 stop-on-solib-events".
4423 (handle_inferior_event): Pass new argument to handle_solib_event.
4424 * solib-svr4.c (probe.h): New include.
4425 (svr4_free_library_list): New forward declaration.
4426 (probe_action): New enum.
4427 (probe_info): New struct.
4428 (probe_info): New static variable.
4429 (NUM_PROBES): New definition.
4430 (svr4_info): New fields "using_xfer", "probes_table" and
4432 (free_probes_table): New function.
4433 (free_solib_list): New function.
4434 (svr4_pspace_data_cleanup): Free probes table and solib list.
4435 (svr4_copy_library_list): New function.
4436 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4437 (svr4_read_so_list): New parameter "prev_lm".
4438 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4439 (svr4_current_sos): New function.
4440 (probe_and_action): New struct.
4441 (hash_probe_and_action): New function.
4442 (equal_probe_and_action): Likewise.
4443 (register_solib_event_probe): Likewise.
4444 (solib_event_probe_at): Likewise.
4445 (solib_event_probe_action): Likewise.
4446 (solist_update_full): Likewise.
4447 (solist_update_incremental): Likewise.
4448 (disable_probes_interface_cleanup): Likewise.
4449 (svr4_handle_solib_event): Likewise.
4450 (svr4_update_solib_event_breakpoint): Likewise.
4451 (svr4_update_solib_event_breakpoints): Likewise.
4452 (svr4_create_solib_event_breakpoints): Likewise.
4453 (enable_break): Free probes table before creating breakpoints.
4454 Use svr4_create_solib_event_breakpoints to create breakpoints.
4455 (svr4_solib_create_inferior_hook): Free the solib list.
4456 (_initialize_svr4_solib): Initialise
4457 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4459 2013-06-04 Gary Benson <gbenson@redhat.com>
4461 * target.h (target_ops): New field
4462 "to_augmented_libraries_svr4_read".
4463 (target_augmented_libraries_svr4_read): New macro.
4464 * target.c (update_current_target): Handle
4465 to_augmented_libraries_svr4_read.
4466 * remote.c (remote_state): New field
4467 "augmented_libraries_svr4_read".
4468 (remote_augmented_libraries_svr4_read_feature): New function.
4469 (remote_protocol_features): Add entry for
4470 "augmented-libraries-svr4-read".
4471 (remote_augmented_libraries_svr4_read): New function.
4472 (init_remote_ops): Initialize
4473 remote_ops.to_augmented_libraries_svr4_read.
4475 2013-06-04 Gary Benson <gbenson@redhat.com>
4479 2013-06-04 Gary Benson <gbenson@redhat.com>
4481 * objfiles.h (inhibit_section_map_updates): New function
4483 (resume_section_map_updates): Likewise.
4484 (resume_section_map_updates_cleanup): Likewise.
4485 * objfiles.c (objfile_pspace_info): Removed field
4486 "objfiles_changed_p". New fields "new_objfiles_available",
4487 "section_map_dirty" and "inhibit_updates".
4488 (allocate_objfile): Set new_objfiles_available.
4489 (free_objfile): Set section_map_dirty.
4490 (objfile_relocate1): Likewise.
4491 (in_plt_section): Likewise.
4492 (find_pc_section): Update the conditions under which the
4493 section map will be updated.
4494 (inhibit_section_map_updates): New function.
4495 (resume_section_map_updates): Likewise.
4496 (resume_section_map_updates_cleanup): Likewise.
4498 2013-06-04 Gary Benson <gbenson@redhat.com>
4500 * probe.h (get_probe_argument_count): New declaration.
4501 (evaluate_probe_argument): Likewise.
4502 * probe.c (get_probe_argument_count): New function.
4503 (evaluate_probe_argument): Likewise.
4504 (probe_safe_evaluate_at_pc): Use the above new functions.
4506 2013-06-04 Alan Modra <amodra@gmail.com>
4508 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4509 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4510 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4511 target mem reads on optional insns.
4512 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4513 ppc_insns_match_pattern calls.
4514 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4515 Add match for power7 thread safety insns, and new order of
4516 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4517 invocation in comment, and update rest of comment.
4518 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4519 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4520 (ppc64_standard_linkage2_target): Update insn offsets.
4521 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4522 stubs first. Update calls.
4524 2013-06-04 Yao Qi <yao@codesourcery.com>
4526 * solib.c (solib_find): Don't need dir separator if path has
4529 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4531 Revert (indirectly causes a SIGSEGV):
4532 * machoread.c (macho_symfile_read): Assign first cleanup to
4535 2013-06-03 Yao Qi <yao@codesourcery.com>
4537 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4538 mi-parse.c. Make them static.
4539 (mi_all_values): Likewise.
4540 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4541 mi_parse_print_values. Make it external.
4542 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4543 Remove the declarations.
4544 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4545 * mi/mi-parse.h (mi_parse_print_values): Declare.
4546 * mi/mi-cmd-stack.c: Include mi-parse.h.
4547 (parse_print_values): Remove
4548 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4549 of parse_print_values.
4550 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4552 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4553 Yao Qi <yao@codesourcery.com>
4555 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4556 (encode_actions): Move code to ...
4557 (all_tracepoint_actions_and_cleanup): ... here. New.
4558 (trace_dump_command): Likewise.
4560 2013-05-30 Tom Tromey <tromey@redhat.com>
4562 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4564 2013-05-30 Tom Tromey <tromey@redhat.com>
4566 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4567 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4568 'old_chain' argument. Add 'parser_result' argument.
4569 (gdb_xml_create_parser_and_cleanup): Remove old version.
4570 (gdb_xml_parse_quick): Update.
4571 (xml_process_xincludes): Update.
4572 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4575 2013-05-30 Tom Tromey <tromey@redhat.com>
4577 * probe.c (collect_probes): Check arguments for NULL before
4578 calling compile_rx_or_error.
4579 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4582 2013-05-30 Tom Tromey <tromey@redhat.com>
4584 * infrun.c (adjust_pc_after_break): Introduce an outer null
4587 2013-05-30 Tom Tromey <tromey@redhat.com>
4589 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4591 2013-05-30 Tom Tromey <tromey@redhat.com>
4593 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4594 for 'old_chain'. Do not check 'head' before processing
4597 2013-05-30 Tom Tromey <tromey@redhat.com>
4599 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4602 2013-05-30 Tom Tromey <tromey@redhat.com>
4604 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4605 inner scope. Unconditionally call do_cleanups.
4607 2013-05-30 Tom Tromey <tromey@redhat.com>
4609 * source.c (find_and_open_source): Call do_cleanups.
4611 2013-05-30 Tom Tromey <tromey@redhat.com>
4613 * linux-thread-db.c (thread_db_load_search): Unconditionally
4616 2013-05-30 Tom Tromey <tromey@redhat.com>
4618 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4619 for 'cleanup'; instead use a later one.
4621 2013-05-30 Tom Tromey <tromey@redhat.com>
4623 * python/py-breakpoint.c (bppy_get_commands): Use
4624 explicit, unconditional return.
4625 * python/py-frame.c (frapy_read_var): Likewise.
4626 * python/python.c (gdbpy_decode_line): Likewise.
4628 2013-05-30 Tom Tromey <tromey@redhat.com>
4630 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4631 do_cleanups on all return paths.
4633 2013-05-30 Tom Tromey <tromey@redhat.com>
4635 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4637 2013-05-30 Tom Tromey <tromey@redhat.com>
4639 * stabsread.c (read_struct_type): Call do_cleanups along
4642 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4644 * mips-linux-tdep.c: Adjust formatting throughout.
4646 2013-05-30 Tom Tromey <tromey@redhat.com>
4648 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4649 along all return paths.
4651 2013-05-30 Tom Tromey <tromey@redhat.com>
4653 * symfile.c (find_separate_debug_file): Call do_cleanups
4654 along all return paths.
4656 2013-05-30 Tom Tromey <tromey@redhat.com>
4658 * symtab.c (search_symbols): Introduce a null cleanup for
4661 2013-05-30 Tom Tromey <tromey@redhat.com>
4663 * python/py-value.c (valpy_binop): Call do_cleanups before
4666 2013-05-30 Tom Tromey <tromey@redhat.com>
4668 * python/py-prettyprint.c (print_children): Remove extra
4671 2013-05-30 Tom Tromey <tromey@redhat.com>
4673 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4676 2013-05-30 Tom Tromey <tromey@redhat.com>
4678 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4679 along all return paths.
4681 2013-05-30 Tom Tromey <tromey@redhat.com>
4683 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4686 2013-05-30 Tom Tromey <tromey@redhat.com>
4688 * varobj.c (c_value_of_root): Call do_cleanups along all
4691 2013-05-30 Tom Tromey <tromey@redhat.com>
4693 * tracepoint.c (trace_dump_command): Unconditionally call
4696 2013-05-30 Tom Tromey <tromey@redhat.com>
4698 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4699 do_cleanups earlier.
4701 2013-05-30 Tom Tromey <tromey@redhat.com>
4703 * machoread.c (macho_symfile_read): Assign first cleanup to
4706 2013-05-30 Tom Tromey <tromey@redhat.com>
4708 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4710 2013-05-30 Tom Tromey <tromey@redhat.com>
4712 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4714 2013-05-30 Tom Tromey <tromey@redhat.com>
4716 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4717 call discard_cleanups.
4718 (inf_ptrace_attach): Likewise.
4720 2013-05-30 Tom Tromey <tromey@redhat.com>
4722 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4724 (mips_initialize): Likewise.
4725 (common_open): Call do_cleanups.
4727 2013-05-30 Tom Tromey <tromey@redhat.com>
4729 * utils.c (internal_vproblem): Call do_cleanups.
4731 2013-05-30 Tom Tromey <tromey@redhat.com>
4733 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4735 2013-05-30 Tom Tromey <tromey@redhat.com>
4737 * cli/cli-script.c (setup_user_args): Don't return after error.
4739 2013-05-30 Tom Tromey <tromey@redhat.com>
4741 * somread.c (som_symtab_read): Call do_cleanups.
4743 2013-05-30 Tom Tromey <tromey@redhat.com>
4745 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4747 2013-05-30 Tom Tromey <tromey@redhat.com>
4749 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4750 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4751 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4752 * source.c (show_substitute_path_command): Call do_cleanups.
4753 (unset_substitute_path_command, set_substitute_path_command):
4755 * symfile.c (load_command): Call do_cleanups.
4757 2013-05-30 Tom Tromey <tromey@redhat.com>
4759 * contrib/cleanup_check.py: New file.
4760 * contrib/gcc-with-excheck: Add option parsing.
4762 2013-05-30 Joel Brobecker <brobecker@adacore.com>
4764 * windows-nat.c (windows_delete_thread): Add missing space
4767 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4769 * inferior.c (top level): Include tilde.h.
4770 (add_inferior_command): Call tilde_expand on the value of 'exec'
4773 2013-05-30 Pedro Alves <pedro@codesourcery.com>
4774 Yao Qi <yao@codesourcery.com>
4776 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4778 (encode_actions): Likewise.
4779 * remote.c (remote_download_tracepoint): Caller update.
4780 * tracepoint.h (encode_actions): Update declaration.
4782 2013-05-30 Pedro Alves <palves@redhat.com>
4784 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4787 2013-05-30 Yao Qi <yao@codesourcery.com>
4789 * remote.c (remote_check_symbols): Remove unused parameter
4792 (remote_start_remote, remote_new_objfile): Caller update.
4794 2013-05-30 Yao Qi <yao@codesourcery.com>
4796 * mi/mi-cmds.c (mi_cmds): Define MI command
4797 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4800 2013-05-29 Pedro Alves <palves@redhat.com>
4802 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4803 (remote_insert_watchpoint, remote_remove_watchpoint)
4804 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4805 (remote_verify_memory, compare_sections_command)
4806 (remote_search_memory): Set the general process/thread on the
4809 2013-05-29 Pedro Alves <palves@redhat.com>
4811 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4812 (_initialize_aarch64_tdep): Don't call
4813 initialize_tdesc_aarch64_without_fpu.
4814 * features/Makefile (WHICH): Remove reference to
4815 aarch64-without-fpu.
4816 * features/aarch64-without-fpu.c: Delete file.
4817 * regformats/aarch64-without-fpu.dat: Delete file.
4819 2013-05-28 Yao Qi <yao@codesourcery.com>
4821 * tracepoint.c (stringify_collection_list): Remove parameter
4823 (encode_actions): Caller update. Remove local variables.
4825 2013-05-24 Yao Qi <yao@codesourcery.com>
4827 * tracepoint.c (TFILE_PID): Remove.
4828 (tfile_open): Don't add thread and inferior.
4829 (tfile_close): Don't set 'inferior_ptid'. Don't call
4830 exit_inferior_silent.
4831 (tfile_thread_alive): Remove.
4832 (init_tfile_ops): Don't set field 'to_thread_alive' of
4835 2013-05-23 Doug Evans <dje@google.com>
4837 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4839 2013-05-23 Pedro Alves <palves@redhat.com>
4841 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4842 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4843 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4844 Only define if HAVE_SOCKETS is defined.
4845 * configure.ac: Check for sys/socket.h.
4846 * config.in, configure: Regenerate.
4848 2013-05-23 Pedro Alves <palves@redhat.com>
4850 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4851 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4852 printing uint32_t variables.
4854 2013-05-23 Pedro Alves <palves@redhat.com>
4856 * NEWS: Mention GDBserver range stepping support.
4858 2013-05-23 Yao Qi <yao@codesourcery.com>
4859 Pedro Alves <palves@redhat.com>
4861 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4863 * infcmd.c (step_once, until_next_command): Enable range stepping.
4864 * infrun.c (displaced_step_prepare): Disable range stepping.
4865 (resume): Disable range stepping if stepping over a breakpoint or
4866 we have software watchpoints. If range stepping is enabled,
4867 assert the thread is in the stepping range.
4868 (clear_proceed_status_thread): Clear may_range_step.
4869 (handle_inferior_event): Disable range stepping as soon as we know
4870 the thread that hit the event. Re-enable it whenever we're going
4871 to step with a step range.
4872 * remote.c (struct vCont_action_support) <r>: New field.
4873 (use_range_stepping): New global.
4874 (remote_vcont_probe): Handle 'r' action.
4875 (append_resumption): Append an 'r' action if the thread may range
4877 (show_range_stepping): New function.
4878 (set_range_stepping): New function.
4879 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4880 'set range-stepping' and 'show range-stepping' commands.
4881 * NEWS: Mention range stepping, the new vCont;r action, and the
4882 new "set/show range-stepping" commands.
4884 2013-05-23 Yao Qi <yao@codesourcery.com>
4885 Pedro Alves <palves@redhat.com>
4887 * remote.c (struct vCont_action_support): New struct.
4888 (struct remote_state) <support_vCont_t>: Remove field.
4889 <vCont_actions_support>: New field.
4890 (remote_vcont_probe, remote_stop_ns): Update.
4892 2013-05-23 Yao Qi <yao@codesourcery.com>
4893 Pedro Alves <palves@redhat.com>
4895 * gdbthread.h (pc_in_thread_step_range): New declaration.
4896 * thread.c (pc_in_thread_step_range): New function.
4897 * infrun.c (handle_inferior_event): Use it.
4899 2013-05-23 Joel Brobecker <brobecker@adacore.com>
4901 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4904 2013-05-22 Keith Seitz <keiths@redhat.com>
4906 * ada-lang.c (is_known_support_routine): Add explicit free of
4907 'func_name' from find_frame_funname.
4908 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4909 for func_name from find_frame_funname.
4910 * python/py-frame.c (frapy_name): Add explicit free of
4911 'name' from find_frame_funname.
4912 * stack.c (find_frame_funname): Add comment explaining that
4913 funcp must be freed by the caller.
4914 Return copy of symbol names instead of pointers.
4915 (print_frame): Add a cleanup for 'funname' from
4917 * stack.h (find_frame_funname): Remove "const" from
4918 'funname' parameter.
4920 2013-05-22 Tom Tromey <tromey@redhat.com>
4923 * c-valprint.c (c_value_print): Use value_addr for
4924 references. Convert back to reference type with value_ref.
4926 2013-05-22 Eli Zaretskii <eliz@gnu.org>
4928 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4929 unloaded DLL, it will be done by handle_solib_event. See
4930 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4933 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4935 * ui-out.c: Create typedef ui_out_level_p and define vector
4936 operations for that type.
4937 (struct ui_out): Use a vector instead of an array.
4938 (current_level): Return level from a vector.
4939 (push_level): Create a level in a vector.
4940 (pop_level): Delete a level in a vector.
4941 (ui_out_new): Create initial level zero level, and store in a
4943 (ui_out_destroy): Add vector cleanup.
4945 2013-05-22 Pedro Alves <palves@redhat.com>
4947 * python/python-internal.h (gdb_Py_DECREF): Tag with
4948 "ARI: editCase function".
4950 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4952 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4954 2013-05-21 Pedro Alves <palves@redhat.com>
4956 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4957 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4958 * python/py-utils.c (py_decref): Don't check for NULL before
4961 2013-05-21 Pedro Alves <palves@redhat.com>
4963 * python/py-utils.c (py_decref): Remove extra braces.
4964 (gdb_pymodule_addobject): Remove extra braces.
4965 * python-internal.h (gdb_Py_DECREF): New static inline function.
4966 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4968 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4970 * breakpoints.c (detach_breakpoints): Do not
4971 detach breakpoints locations with loc_type bp_loc_other.
4973 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4975 Workaround Python 2.6.
4976 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4979 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4981 Code cleanup: constification.
4982 * solib.c (solib_ops): Make return type and ops variable type const.
4983 (set_solib_ops): Make the new_ops parameter and ops variable const.
4984 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4985 (solib_add, solib_keep_data_in_core, clear_solib)
4986 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4987 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4989 * solib.h (set_solib_ops): Make the new_ops parameter const.
4991 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4993 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4995 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4996 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4997 (SYSTEM_GDBINIT_FILES): New variables.
4998 (all): Add stamp-system-gdbinit.
4999 (stamp-system-gdbinit): New rule.
5000 (clean-system-gdbinit, install-system-gdbinit)
5001 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5002 (install-only): Add dependency on install-system-gdbinit.
5003 (uninstall): Add dependency on uninstall-system-gdbinit.
5004 (clean): Add dependency on clean-system-gdbinit.
5005 * system-gdbinit/elinos.py: New file.
5006 * system-gdbinit/wrs-linux.py: New file.
5008 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5010 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5012 2013-05-21 Hui Zhu <hui@codesourcery.com>
5014 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5015 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5016 * mi/mi-cmd-break.c (ctype.h): New include.
5017 (gdb_obstack.h): New include.
5018 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5019 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5020 (mi_cmd_dprintf_insert): New.
5021 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5022 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5024 2013-05-20 Tom Tromey <tromey@redhat.com>
5026 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5028 2013-05-20 Tom Tromey <tromey@redhat.com>
5030 * python/py-value.c (valpy_get_dynamic_type): Simplify
5031 dynamic_type assignment. Use Py_XINCREF.
5033 2013-05-20 Tom Tromey <tromey@redhat.com>
5035 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5037 2013-05-20 Tom Tromey <tromey@redhat.com>
5039 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5040 (gdbpy_selected_frame): Move object-construction code
5043 2013-05-20 Tom Tromey <tromey@redhat.com>
5045 * python/py-arch.c (gdbpy_initialize_arch): Use
5046 gdb_pymodule_addobject.
5047 * python/py-block.c (gdbpy_initialize_blocks): Use
5048 gdb_pymodule_addobject.
5049 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5050 gdb_pymodule_addobject.
5051 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5052 gdb_pymodule_addobject.
5053 * python/py-event.c (gdbpy_initialize_event_generic): Use
5054 gdb_pymodule_addobject.
5055 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5056 gdb_pymodule_addobject.
5057 * python/py-evts.c (add_new_registry): Use
5058 gdb_pymodule_addobject.
5059 (gdbpy_initialize_py_events): Likewise.
5060 * python/py-finishbreakpoint.c
5061 (gdbpy_initialize_finishbreakpoints): Use
5062 gdb_pymodule_addobject.
5063 * python/py-frame.c (gdbpy_initialize_frames): Use
5064 gdb_pymodule_addobject.
5065 * python/py-function.c (gdbpy_initialize_functions): Use
5066 gdb_pymodule_addobject.
5067 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5068 gdb_pymodule_addobject.
5069 * python/py-infthread.c (gdbpy_initialize_thread): Use
5070 gdb_pymodule_addobject.
5071 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5072 gdb_pymodule_addobject.
5073 * python/py-param.c (gdbpy_initialize_parameters): Use
5074 gdb_pymodule_addobject.
5075 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5076 gdb_pymodule_addobject.
5077 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5078 gdb_pymodule_addobject.
5079 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5080 gdb_pymodule_addobject.
5081 * python/py-type.c (gdbpy_initialize_types): Use
5082 gdb_pymodule_addobject.
5083 * python/py-utils.c (gdb_pymodule_addobject): New function.
5084 * python/py-value.c (gdbpy_initialize_values): Use
5085 gdb_pymodule_addobject.
5086 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5087 * python/python.c (_initialize_python): Use
5088 gdb_pymodule_addobject.
5090 2013-05-20 Tom Tromey <tromey@redhat.com>
5092 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5093 * python/py-param.c (get_set_value, get_show_value): Use
5095 * python/python.c (start_type_printers, apply_type_printers):
5096 Use explicit decrefs.
5098 2013-05-20 Tom Tromey <tromey@redhat.com>
5100 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5103 2013-05-20 Tom Tromey <tromey@redhat.com>
5105 * python/python.c (gdbpy_run_events): Decref the result
5106 of PyObject_CallObject.
5108 2013-05-20 Tom Tromey <tromey@redhat.com>
5110 * python/py-symtab.c (set_sal): Use
5111 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5112 (symtab_and_line_to_sal_object): Update.
5114 2013-05-20 Tom Tromey <tromey@redhat.com>
5116 * python/py-param.c (compute_enum_values): Decref 'item'.
5118 2013-05-20 Tom Tromey <tromey@redhat.com>
5120 * mi/mi-main.c: Include python-internal.h.
5121 (mi_cmd_list_features): Check gdb_python_initialized.
5122 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5123 (python_inferior_exit, python_new_objfile, add_thread_object)
5124 (delete_thread_object, py_free_inferior): Check
5125 gdb_python_initialized.
5126 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5127 gdb_python_initialized.
5128 * python/py-type.c (save_objfile_types): Check
5129 gdb_python_initialized.
5130 * python/python-internal.h (gdb_python_initialized): Declare.
5131 * python/python.c (ensure_python_env): Throw exception if
5132 Python not initialized.
5133 (before_prompt_hook, source_python_script_for_objfile)
5134 (start_type_printers, apply_type_printers,
5135 free_type_printers): Check gdb_python_initialized.
5136 * varobj.c (varobj_get_display_hint)
5137 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5138 (install_new_value_visualizer, varobj_set_visualizer)
5139 (value_get_print_value): Check gdb_python_initialized.
5141 2013-05-20 Tom Tromey <tromey@redhat.com>
5143 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5145 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5146 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5148 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5150 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5152 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5154 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5155 init function to return 'int'.
5156 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5157 Return 'int'. Check errors.
5158 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5160 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5161 Return 'int'. Check errors.
5162 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5164 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5166 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5168 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5170 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5172 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5174 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5176 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5178 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5180 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5182 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5184 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5186 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5188 * python/python-internal.h (gdbpy_initialize_auto_load,
5189 gdbpy_initialize_values, gdbpy_initialize_frames,
5190 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5191 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5192 gdbpy_initialize_blocks, gdbpy_initialize_types,
5193 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5194 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5195 gdbpy_initialize_finishbreakpoints,
5196 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5197 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5198 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5199 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5200 gdbpy_initialize_signal_event,
5201 gdbpy_initialize_breakpoint_event,
5202 gdbpy_initialize_continue_event,
5203 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5204 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5205 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5206 * python/python.c (gdb_python_initialized): New global.
5207 (gdbpy_initialize_events): Return 'int'. Check errors.
5208 (_initialize_python): Check errors. Set
5209 gdb_python_initialized.
5211 2013-05-20 Tom Tromey <tromey@redhat.com>
5213 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5214 Decref the reslut of PyObject_CallMethod.
5216 2013-05-20 Tom Tromey <tromey@redhat.com>
5218 * python/py-event.c (gdbpy_initialize_event_generic): Return
5219 early if PyType_Ready fails.
5221 2013-05-20 Tom Tromey <tromey@redhat.com>
5223 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5224 as 'default' in the switch.
5226 2013-05-20 Tom Tromey <tromey@redhat.com>
5228 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5229 get_addr_from_python calls out of TRY_CATCH.
5230 (infpy_write_memory, infpy_search_memory): Likewise.
5231 * python/py-utils.c (get_addr_from_python): Return negative
5232 value on error. Use TRY_CATCH.
5233 * python/python-internal.h (get_addr_from_python): Use
5234 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5236 2013-05-20 Tom Tromey <tromey@redhat.com>
5238 * python/py-event.c (evpy_emit_event): Decref the
5239 result of PyObject_CallFunctionObjArgs.
5241 2013-05-20 Tom Tromey <tromey@redhat.com>
5243 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5246 2013-05-20 Tom Tromey <tromey@redhat.com>
5248 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5250 2013-05-20 Tom Tromey <tromey@redhat.com>
5252 * python/py-event.h (gdbpy_initialize_event_generic): Use
5253 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5254 * python/py-evts.c (add_new_registry): Use
5255 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5256 * python/python-internal.h
5257 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5259 2013-05-20 Tom Tromey <tromey@redhat.com>
5261 * python/py-arch.c (archpy_disassemble): Update.
5262 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5263 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5264 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5265 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5267 (GDB_PY_HANDLE_EXCEPTION): Update.
5268 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5270 2013-05-20 Tom Tromey <tromey@redhat.com>
5272 * python/python-internal.h (events_object_type): Remove.
5274 2013-05-20 Tom Tromey <tromey@redhat.com>
5276 * python/py-event.h (evpy_emit_event): Use
5277 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5278 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5281 2013-05-20 Tom Tromey <tromey@redhat.com>
5283 * py-evtregistry.c (create_event_object): Decref
5284 eventregistry_object if PyList_New fails.
5286 2013-05-20 Tom Tromey <tromey@redhat.com>
5288 * py-cmd.c (gdbpy_string_to_argv): Check result of
5291 2013-05-20 Tom Tromey <tromey@redhat.com>
5293 * python/python.c (before_prompt_hook): Add cleanup to
5296 2013-05-20 Tom Tromey <tromey@redhat.com>
5298 * python/py-function.c (fnpy_init): Decref result of
5299 PyObject_GetAttrString.
5301 2013-05-20 Tom Tromey <tromey@redhat.com>
5303 * python/py-threadevent.c (get_event_thread): Use
5304 CPYCHECKER_RETURNS_BORROWED_REF.
5305 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5307 (pspace_to_pspace_object, objfile_to_objfile_object)
5308 (find_thread_object): Use it.
5310 2013-05-20 Tom Tromey <tromey@redhat.com>
5312 * python/py-arch.c (arch_object_type): Use
5313 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5314 * python/py-block.c (block_syms_iterator_object_type):
5315 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5316 * python/py-bpevent.c (breakpoint_event_object_type):
5317 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5318 * python/py-cmd.c (cmdpy_object_type): Use
5319 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5320 * python/py-continueevent.c (continue_event_object_type):
5321 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5322 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5323 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5324 * python/py-events.h (thread_event_object_type):
5325 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5326 * python/py-evtregistry.c (eventregistry_object_type): Use
5327 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5328 * python/py-exitedevent.c (exited_event_object_type):
5329 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5330 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5331 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5332 * python/py-function.c (fnpy_object_type): Use
5333 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5334 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5335 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5336 * python/py-infthread.c (thread_object_type): Use
5337 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5338 * python/py-lazy-string.c (lazy_string_object_type):
5339 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5340 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5341 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5342 * python/py-objfile.c (objfile_object_type): Use
5343 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5344 * python/py-param.c (parmpy_object_type):
5345 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5346 * python/py-progspace.c (pspace_object_type):
5347 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5348 * python/py-signalevent.c (signal_event_object_type):
5349 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5350 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5351 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5352 * python/py-type.c (type_object_type, field_object_type)
5353 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5354 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5356 (value_object_type, block_object_type, symbol_object_type)
5357 (event_object_type, stop_event_object_type, breakpoint_object_type)
5358 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5360 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5362 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5363 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5365 2013-05-20 Doug Evans <dje@google.com>
5367 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5369 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5370 reading_dwo_directly.
5371 (struct signatured_type): New member dwo_unit.
5372 (struct die_reader_specs): New member comp_dir.
5373 (create_signatured_type_table_from_index): Use malloc for
5374 all_type_units instead of objfile's obstack.
5375 (create_all_type_units): Ditto.
5376 (fill_in_sig_entry_from_dwo_entry): New function.
5377 (add_type_unit): New function.
5378 (lookup_dwo_signatured_type): New function.
5379 (lookup_dwp_signatured_type): New function.
5380 (lookup_signatured_type): New arg cu. All callers updated.
5381 (init_cu_die_reader): Initialize comp_dir.
5382 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5383 Change assert of matching type signatures to call error on mismatch.
5384 (lookup_dwo_unit): Add assert.
5385 (init_tu_and_read_dwo_dies): New function.
5386 (init_cutu_and_read_dies): Call it.
5387 (build_type_unit_groups): Handle case of no type unit groups created.
5388 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5389 (lookup_dwo_cutu): Tweak complaint.
5390 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5391 (dwarf2_per_objfile_free): Free all_type_units.
5393 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5395 * windows-nat.c (handle_unload_dll): Add missing empty line.
5397 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5399 * dwarf2read.c (prototyped_function_p): New function.
5400 (read_subroutine_type): Use it.
5402 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5404 * rs6000-aix-tdep.c: De-indent some example code provided
5407 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5409 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5410 region is ok for a hardware watchpoint using the new ptrace interface
5413 2013-05-17 Doug Evans <dje@google.com>
5415 * NEWS: Mention new maintenance commands check-symtabs, and
5416 expand-symtabs, and renamed check-psymtabs.
5417 * psymtab.c (maintenance_check_psymtabs): Renamed from
5418 maintenance_check_symtabs. Only process already-expanded symbol
5420 (_initialize_psymtab): Update.
5421 * symmisc.c (maintenance_check_symtabs): New function.
5422 (maintenance_expand_name_matcher): New function
5423 (maintenance_expand_file_matcher): New function
5424 (maintenance_expand_symtabs): New function.
5425 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5428 2013-05-17 Tom Tromey <tromey@redhat.com>
5430 * python/py-inferior.c (infpy_read_memory): Don't call
5431 PyErr_SetString if PyObject_New fails.
5432 * python/py-frame.c (frame_info_to_frame_object): Don't call
5433 PyErr_SetString if PyObject_New fails.
5435 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5437 * acinclude.m4: Add check for dlopen in libdl.
5438 * configure.ac: Ditto.
5439 * configure: Regenerate.
5441 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5443 * frame.c (frame_stash): Convert to htab.
5444 (frame_addr_hash): New function.
5445 (frame_addr_hash_eq): New function.
5446 (frame_stash_create): Convert function to create
5448 (frame_stash_add): Convert function to add an entry to a hash
5450 (frame_stash_find): Convert function to search the hash table.
5451 (frame_stash_invalidate): Convert function to empty the hash
5453 (get_frame_id): Only add to stash if a frame_id is created.
5454 (_initialize_frame): Call frame_stash_create.
5456 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5458 * configure.ac: Ensure MIG is available when building for GNU Hurd
5460 * configure: Regenerate.
5462 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5464 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5466 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5468 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5469 all cleanups are done before returning from this function.
5471 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5473 * utils.h: #include "exceptions.h".
5474 (enum errors): Remove partial declaration.
5476 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5478 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5479 * gdbarch.h, gdbarch.c: Regenerate.
5480 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5483 * rs6000-aix-tdep.h: New file.
5484 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5485 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5487 (struct field_info, struct ld_info_desc): New types.
5488 (ld_info32_desc, ld_info64_desc): New static constants.
5489 (struct ld_info): New type.
5490 (rs6000_aix_extract_ld_info): New function.
5491 (rs6000_aix_shared_library_to_xml): Likewise.
5492 (rs6000_aix_ld_info_to_xml): Likewise.
5493 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5494 (rs6000_aix_init_osabi): Add call to
5495 set_gdbarch_core_xfer_shared_libraries_aix.
5496 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5497 Remove "xml-utils.h" include.
5498 (LdInfo): Delete typedef.
5499 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5501 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5502 Adjust code accordingly.
5503 (rs6000_core_ldinfo): Delete, folded into
5504 rs6000_aix_core_xfer_shared_libraries_aix.
5505 (rs6000_xfer_shared_library): Delete.
5506 (rs6000_xfer_shared_libraries): Reimplement.
5508 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5510 * record.c (record_goto_cmdlist): New.
5511 (cmd_record_goto): Split into this ...
5512 (cmd_record_goto_begin): ... this
5513 (cmd_record_goto_end): ... and this.
5514 (_initialize_record): Change "record goto" to prefix command.
5515 Add commands for "record goto begin" and "record goto end".
5516 Add an alias for "record goto start" to "record goto begin".
5518 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5520 * linespec.c (convert_linespec_to_sals): New comment for
5521 SOURCE_FILENAME assignment.
5523 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5525 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5528 2013-05-14 Tom Tromey <tromey@redhat.com>
5530 * eval.c (parse_and_eval_long): Make 'exp' const.
5531 * value.h (parse_and_eval_long): Update.
5533 2013-05-14 Tom Tromey <tromey@redhat.com>
5535 * ui-file.c (gdb_fopen): Make arguments const.
5536 * ui-file.h (gdb_fopen): Make arguments const.
5538 2013-05-14 Tom Tromey <tromey@redhat.com>
5540 * remote.c (remote_set_trace_notes): Make arguments const.
5541 * target.c (update_current_target): Update cast.
5542 * target.h (to_set_trace_notes): Make arguments const.
5544 2013-05-14 Tom Tromey <tromey@redhat.com>
5546 * go32-nat.c (go32_terminal_info): Make 'args' const.
5547 * inferior.h (child_terminal_info): Update.
5548 * inflow.c (child_terminal_info): Make 'args' const.
5549 * target.c (default_terminal_info): Make 'args' const.
5550 (debug_to_terminal_save_ours): Likewise.
5551 * target.h (struct target_ops) <to_terminal_info>: Make argument
5554 2013-05-13 Tom Tromey <tromey@redhat.com>
5556 * gcore.c (create_gcore_bfd): Make 'filename' const.
5557 * gcore.h (create_gcore_bfd): Make 'filename' const.
5558 * record-full.c (record_full_save): Make 'recfilename' const.
5559 * target.c (target_save_record): Make 'filename' const.
5560 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5562 (target_save_record): Likewise.
5564 2013-05-13 Tom Tromey <tromey@redhat.com>
5567 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5568 ranges section has been read.
5570 2013-05-13 Tom Tromey <tromey@redhat.com>
5573 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5574 STRUCTOP_PTR>: Return a not_lval value for
5575 EVAL_AVOID_SIDE_EFFECTS.
5576 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5577 for EVAL_AVOID_SIDE_EFFECTS.
5579 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5581 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5582 floating point registers to register type before storing
5584 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5587 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5588 Tom Tromey <tromey@redhat.com>
5590 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5592 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5594 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5595 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5596 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5597 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5599 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5600 Tom Tromey <tromey@redhat.com>
5603 * configure: Rebuild.
5604 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5607 2013-05-10 Pedro Alves <palves@redhat.com>
5609 * remote.c (_initialize_remote): Fix spelling of
5610 qXfer:traceframe-info:read packet in packet config command.
5612 2013-05-10 David Taylor <dtaylor@emc.com>
5616 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5617 "QTro" at start of packet.
5619 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5621 * solib-aix.c (solib_aix_relocate_section_addresses):
5622 For the .bss section action, apply the same offset as
5625 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5627 * solib-aix.c (solib_aix_relocate_section_addresses):
5628 Remove FIXME comment.
5630 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5633 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5634 New functions, directly copied from sparc-sol-thread.c.
5635 * sparc-sol-thread.c: Delete.
5636 * configure.ac: Remove code handling sparc-solaris-thread.c.
5637 * configure: Regenerate.
5639 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5641 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5643 (backtrace_command): Add "no-filters" option parsing.
5644 (_initialize_stack): Alter help to reflect "no-filters" option.
5645 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5646 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5647 (py-frame.o): Add target
5648 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5650 * python/python.h: Add new frame filter constants, and flag enum.
5651 (apply_frame_filter): Add definition.
5652 * python/python.c (apply_frame_filter): New non-Python
5654 * python/py-utils.c (py_xdecref): New function.
5655 (make_cleanup_py_xdecref): Ditto.
5656 * python/py-objfile.c: Declare frame_filters dictionary.
5657 (objfpy_dealloc): Add frame_filters dealloc.
5658 (objfpy_new): Initialize frame_filters attribute.
5659 (objfile_to_objfile_object): Ditto.
5660 (objfpy_get_frame_filters): New function.
5661 (objfpy_set_frame_filters): New function.
5662 * python/py-progspace.c: Declare frame_filters dictionary.
5663 (pspy_dealloc): Add frame_filters dealloc.
5664 (pspy_new): Initialize frame_filters attribute.
5665 (pspacee_to_pspace_object): Ditto.
5666 (pspy_get_frame_filters): New function.
5667 (pspy_set_frame_filters): New function.
5668 * python/py-framefilter.c: New file.
5669 * python/lib/gdb/command/frame_filters.py: New file.
5670 * python/lib/gdb/frames.py: New file.
5671 * python/lib/gdb/__init__.py: Initialize global frame_filters
5673 * python/lib/gdb/FrameDecorator.py: New file.
5674 * python/lib/gdb/FrameIterator.py: New file.
5675 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5676 * mi/mi-cmds.h: Declare.
5677 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5678 --no-frame-filter logic, and Python frame filter logic.
5679 (stack_enable_frame_filters): New function.
5680 (parse_no_frame_option): Ditto.
5681 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5683 (mi_cmd_stack_list_locals): Ditto.
5684 (mi_cmd_stack_list_args): Ditto.
5685 (mi_cmd_stack_list_variables): Ditto.
5686 * NEWS: Add frame filter note.
5688 2013-05-09 Doug Evans <dje@google.com>
5690 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5691 All callers updated.
5692 (syms_from_objfile): Ditto. Make static.
5693 (symbol_file_add_with_addrs): Renamed from
5694 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5695 num_offsets. All callers updated.
5696 * symfile.h (syms_from_objfile): Delete.
5698 * symfile.c (decrement_reading_symtab): Add assert.
5699 (increment_reading_symtab): Ditto.
5701 2013-05-09 Joel Brobecker <brobecker@adacore.com>
5703 * source.c (forward_search_command): Replace call to getc
5705 (reverse_search_command): Likewise.
5707 2013-05-08 Doug Evans <dje@google.com>
5709 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5712 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5714 * sol-thread.c (info_cb): Factorize the code a little.
5716 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5718 * sol-thread.c (info_cb): Rework the output of the "maintenance
5719 info sol-threads" command a bit.
5721 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5723 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5724 Replace ti.ti_startfunc by ti.ti_pc.
5726 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5728 * solib-aix.c (solib_aix_free_library_list): New function
5729 for the case where HAVE_LIBEXPAT is not defined.
5731 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5733 PR breakpoints/15413:
5734 * breakpoint.c (condition_completer): Simplify the code to
5735 disconsider multiple locations of breakpoints when completing the
5736 "condition" command.
5738 2013-05-07 Pierre Muller <muller@sourceware.org>
5740 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5741 instead of <sys/wait.h>.
5743 2013-05-07 Pierre Muller <muller@sourceware.org>
5745 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5746 trailing new line from warning message.
5748 2013-05-07 Pierre Muller <muller@sourceware.org>
5750 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5751 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5753 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5755 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5756 error message (ARI fix).
5758 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5760 * features/library-list-aix.dtd: Replace library-list by
5762 * rs6000-nat.c: Replace library-list by library-list-aix
5764 * solib-aix.c: Likewise.
5766 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5768 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5769 Renames TARGET_OBJECT_AIX_LIBRARIES.
5770 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5771 TARGET_OBJECT_LIBRARIES_AIX throughout.
5772 * solib-aix.c: Likwise.
5774 2013-05-07 Yao Qi <yao@codesourcery.com>
5776 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5777 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5779 2013-05-07 Yao Qi <yao@codesourcery.com>
5781 * solib-dsbt.c (enable_break): Declare.
5782 (dsbt_current_sos): Remove call to enable_break2.
5783 (enable_break2): Rename to enable_break. Set solib breakpoint
5784 on '_dl_debug_state'.
5785 (enable_break): Remove.
5787 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
5789 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5790 debug state prior to replicating existing hardware watchpoints or
5793 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5795 * gcore.c (gcore_create_callback): Ignore sections with
5796 separate_debug_objfile_backlink != NULL.
5798 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5799 Andrew Jenner <andrew@codesourcery.com>
5800 Chung-Lin Tang <cltang@codesourcery.com>
5801 Julian Brown <julian@codesourcery.com>
5803 Based on the nios2-elf port from Altera Corporation.
5805 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5807 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5808 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5809 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5810 * nios2-tdep.h: New.
5811 * nios2-tdep.c: New.
5812 * nios2-linux-tdep.c: New.
5813 * features/Makefile (WHICH): Add nios2-linux.
5814 (nios2-linux-expedite): Set.
5815 * features/nios2-cpu.xml: New.
5816 * features/nios2.xml: New.
5817 * features/nios2-linux.xml: New.
5818 * features/nios2.c: New (autogenerated).
5819 * features/nios2-linux.c: New (autogenerated).
5820 * regformats/nios2-linux.dat: New (autogenerated).
5821 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5824 2013-05-06 Doug Evans <dje@google.com>
5826 * symfile.c: Whitespace cleanup.
5828 * solist.h (struct target_so_ops): New member clear_so.
5829 * solib-svr4.c (svr4_clear_so): New function.
5830 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5831 * solib.c (clear_so): Renamed from free_so_symbols.
5832 All callers updated. Call target clear_so if it exists.
5834 2013-05-06 Tom Tromey <tromey@redhat.com>
5836 * ada-lang.c (ada_value_primitive_packed_val): Don't
5838 * value.c (set_value_parent): Incref the new parent and decref
5840 (value_copy, value_primitive_field): Use set_value_parent.
5842 2013-05-06 Tom Tromey <tromey@redhat.com>
5844 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5845 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5847 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5848 * dwarf2read.c (write_constant_as_bytes)
5849 (dwarf2_fetch_constant_bytes): New functions.
5851 2013-05-06 Tom Tromey <tromey@redhat.com>
5853 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5855 (dwarf2_const_value_attr): Update.
5857 2013-05-06 Tom Tromey <tromey@redhat.com>
5859 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5860 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5861 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5864 2013-05-06 Tom Tromey <tromey@redhat.com>
5866 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5869 2013-05-06 Doug Evans <dje@google.com>
5871 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5872 * stabsread.h (process_one_symbol): Update declaration.
5873 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5874 * elfread.c (elf_symfile_relocate_probe): Ditto.
5875 * psymtab.c (relocate_psymtabs): Ditto.
5876 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5877 (objfile_relocate): Ditto.
5878 * objfiles.h (objfile_relocate): Update declaration.
5879 * symfile.c (relative_addr_info_to_section_offsets): Constify
5881 (default_symfile_offsets): Ditto.
5882 (syms_from_objfile_1): Constify offsets parameter.
5883 (syms_from_objfile): Ditto.
5884 (symbol_file_add_with_addrs_or_offsets): Ditto.
5885 (symfile_map_offsets_to_segments): Constify data parameter.
5886 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5887 delta parameters of member relocate.
5888 (struct sym_probe_fns): Constify new_offsets,
5889 delta parameters of member sym_relocate_probe.
5890 (struct sym_fns): Constify section_addr_info parameter of member
5892 (relative_addr_info_to_section_offsets): Update declaration.
5893 (default_symfile_offsets): Ditto.
5894 (syms_from_objfile): Ditto.
5895 (symfile_map_offsets_to_segments): Ditto.
5897 * symfile.c (syms_from_objfile_1): Use correct section count when
5898 objfile->sf == NULL.
5900 2013-05-06 Mike Frysinger <vapier@gentoo.org>
5902 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5904 2013-05-06 Doug Evans <dje@google.com>
5906 * psympriv.h (struct partial_symtab): Augment comment for member
5909 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5911 Reimplement shared library support on ppc-aix...
5912 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5913 * features/library-list-aix.dtd: New file.
5914 * solib-aix.h, solib-aix.c: New file.
5915 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5916 (rs6000_find_toc_address_hook): Delete.
5917 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5918 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5919 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5921 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5922 (vmap_symtab, fixup_breakpoints): Delete.
5923 (rs6000_xfer_shared_libraries): New function.
5924 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5925 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5926 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5927 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5928 (rs6000_xfer_shared_library): New function.
5929 (find_toc_address): Delete.
5930 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5931 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5932 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5933 before creating minimal symbol. Adjust function description
5935 (scan_xcoff_symtab): Replace call to
5936 prim_record_minimal_symbol_and_info by call to
5937 record_minimal_symbol.
5938 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5939 around default_symfile_offsets.
5940 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5941 powerpc-aix targets.
5942 * config/rs6000/nm-rs6000.h: Delete.
5943 * config/powerpc/aix.mh (NAT_FILE): Delete.
5944 (NATDEPFILES): Remove xcoffsolib.o.
5945 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5946 (ALL_TARGET_OBS): Add solib-aix.o.
5947 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5948 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5949 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5950 * xcoffsolib.h, xcoffsolib.c: Delete.
5952 * solib.c (reload_shared_libraries): Remove reference to
5953 SOLIB_CREATE_INFERIOR_HOOK.
5954 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5955 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5956 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5958 * corelow.c (deprecated_core_resize_section_table): Delete.
5959 * exec.c: Remove include of xcoffsolib.h".
5960 (map_vmap, vmap): Delete.
5961 (exec_close_1): Remove references to vmap.
5962 (exec_file_attach): Remove vmap handling code, and reference
5963 to DEPRECATED_IBM6000_TARGET.
5964 (bfdsec_to_vmap): Delete.
5965 (exec_files_info): Remove block of code handling VMAP.
5966 * infcmd.c (post_create_inferior): Remove reference to
5967 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5968 * infrun.c (follow_exec): Remove reference to
5969 SOLIB_CREATE_INFERIOR_HOOK.
5970 * stack.c (print_frame): Remove reference to PC_SOLIB.
5971 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5972 (dsbt_relocate_main_executable): Likewise.
5973 * solib-frv.c (frv_current_sos): Likewise.
5975 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5977 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5978 to target_write_memory and target_read_memory.
5980 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5982 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5983 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5985 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5987 * darwin-nat.c: Replace all "%x" instances in format strings
5988 into "0x%x" throughout.
5990 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5992 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5993 gdb_assert by call to MACH_CHECK_ERROR.
5994 (darwin_attach_pid): Raise an error rather than a failed
5995 assertion when various system calls failed. Report a warning
5996 instead of raising a failed assertion when PREV_NOT is not NULL
5997 after call to mach_port_request_notification.
5998 (darwin_ptrace_me): Raise an error rather than a failed
5999 assertion when read returns nonzero.
6001 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6003 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6005 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6007 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6009 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6011 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6012 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6013 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6014 a stale cleanup. Fix double free of NAME.
6016 2013-05-04 Eli Zaretskii <eliz@gnu.org>
6018 * windows-nat.c (windows_delete_thread): Accept an additional
6019 argument, the thread's exit code, and announce thread death when
6020 print_thread_events is non-zero and we are deleting a thread that
6021 is not the main thread.
6022 (get_windows_debug_event): Pass thread exit code to
6023 windows_delete_thread.
6025 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6027 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6028 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6029 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6030 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6031 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6032 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6033 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6034 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6035 (gdbarch_tdep): New struct.
6036 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6038 (v850e3v5_register_name): New function.
6039 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6040 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6041 code handling the struct return conventions for the RH850 ABI.
6043 (v850_eight_byte_align_p): New function.
6044 (v850_push_call_dummy): Push structs by value, not by reference
6045 for the RH850 ABI. Add support for eight byte alignment.
6046 (v850_dbtrap_breakpoint_from_pc): New function.
6047 (v850_gdbarch_init): Add ABI detection code. Register
6048 v850e3v5_register_name for the v850e3v5 architecture. Set the
6049 number of registers for v850e3v5. Register
6050 v850_dbtrap_breakpoint_from_pc as appropriate.
6051 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6053 2013-05-03 Doug Evans <dje@google.com>
6055 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6056 of bfd_count_sections.
6057 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6058 * symfile.c (default_symfile_offsets): Ditto.
6059 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6060 one entry, not bfd_count_sections entries.
6062 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6064 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6065 `save' and `restore' register groups. Don't include SPL
6066 or SPH in these groups.
6067 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6068 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6069 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6070 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6071 dwarf2_append_unwinders().
6073 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6075 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6076 ignore SIGINT and SIGTRAP in case these internal signals are
6079 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6081 * darwin-nat.c (darwin_read_write_inferior): Change types
6082 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6083 of copy_count to "mach_msg_type_number_t".
6084 (darwin_read_dyld_info): Change type of parameter
6085 rdaddr to "gdb_byte *".
6087 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6089 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6090 of &info->load_map from "char *" to "gdb_byte *".
6092 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6094 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6095 from "char *" to "gdb_byte *".
6096 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6098 2013-04-30 Doug Evans <dje@google.com>
6100 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6101 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6102 DWO stub. If DWO isn't found, just use stub.
6103 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6105 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6106 calling init_cutu_and_read_dies.
6108 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6110 * target-descriptions.c (maint_print_c_tdesc_cmd):
6111 Add case to parse structures as register types and
6114 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6116 * MAINTAINERS (Write After Approval): Add myself to the list.
6118 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6120 * sol-thread.c (rw_common): Change type of parameter "buf"
6122 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6123 rw_common to "gdb_byte *" instead of "char *".
6125 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6127 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6128 of local variable msym to const struct bound_minimal_symbol.
6129 Adjust use accordingly.
6130 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6132 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6134 * i386gnu-nat.c (CREG_OFFSET): New macro.
6135 (creg_offset): New array.
6136 (CREG_ADDR): Use creg_offset instead of reg_offset.
6138 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6140 * mep-tdep.c (mep_write_pc): Delete.
6141 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6142 Add call to set_gdbarch_pc_regnum.
6144 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6146 * common/filestuff.c: Replace #include <dirent.h> by
6147 #include "gdb_dirent.h".
6149 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6151 * common/filestuff.c: Replace #include <sys/stat.h> by
6152 #include "gdb_stat.h".
6154 2013-04-29 Pierre Muller <muller@sourceware.org>
6156 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6157 editCase function rule.
6158 (get_DW_AT_signature_type): Likewise.
6160 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6162 * m32r-tdep.c (m32r_write_pc): Delete.
6163 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6164 Add call to set_gdbarch_pc_regnum.
6166 2013-04-29 Pierre Muller <muller@sourceware.org>
6168 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6170 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6172 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6174 2013-04-28 Yao Qi <yao@codesourcery.com>
6176 * solib-dsbt.c (fetch_loadmap): Re-indent.
6177 (displacement_from_map, enable_break2): Likewise.
6178 (dsbt_relocate_section_addresses): Likewise.
6180 2013-04-26 Joel Brobecker <brobecker@adacore.com>
6184 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6187 * dwarf2read.c (process_full_comp_unit): Always create a static
6190 2013-04-25 Hui Zhu <hui@codesourcery.com>
6192 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6193 to loc->cmd_bytecode.
6195 2013-04-24 Doug Evans <dje@google.com>
6197 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6199 2013-04-22 Keith Seitz <keiths@redhat.com>
6201 * tracepoint.c (trace_save): Call the writer's start method.
6203 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6206 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6209 2013-04-23 Tom Tromey <tromey@redhat.com>
6211 * common/filestuff.c: Check USE_WIN32API before including
6213 (HAVE_F_GETFD): New define.
6214 (mark_cloexec): Check HAVE_F_GETFD.
6215 (gdb_open_cloexec): Change 'mode' to unsigned long.
6216 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6217 (gdb_pipe_cloexec): Check HAVE_PIPE.
6218 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6221 2013-04-23 Hui Zhu <hui@codesourcery.com>
6224 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6226 2013-04-23 Hui Zhu <hui@codesourcery.com>
6229 * breakpoint.c (dprintf_print_recreate): New.
6230 (save_breakpoints): Let it not save dprintf commands.
6231 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6233 2013-04-22 Tom Tromey <tromey@redhat.com>
6236 * Makefile.in (SFILES): Add filestuff.c
6237 (COMMON_OBS): Add filestuff.o.
6238 (filestuff.o): New target.
6239 * auto-load.c (auto_load_objfile_script_1): Use
6241 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6242 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6243 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6244 * common/agent.c (gdb_connect_sync_socket): Use
6246 * common/filestuff.c: New file.
6247 * common/filestuff.h: New file.
6248 * common/linux-osdata.c (linux_common_core_of_thread)
6249 (command_from_pid, commandline_from_pid, print_source_lines)
6250 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6251 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6253 * common/linux-procfs.c (linux_proc_get_int)
6254 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6255 * config.in, configure: Rebuild.
6256 * configure.ac: Don't check for sys/socket.h. Check for
6258 * corelow.c (core_open): Use gdb_open_cloexec.
6259 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6260 * fork-child.c (fork_inferior): Call close_most_fds.
6261 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6262 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6263 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6264 Use gdb_fopen_cloexec.
6265 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6267 (linux_async_pipe): Use gdb_pipe_cloexec.
6268 * remote-fileio.c (remote_fileio_func_open): Use
6270 * remote.c (remote_file_put, remote_file_get): Use
6272 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6274 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6275 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6276 * solib.c (solib_find): Use gdb_open_cloexec.
6277 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6278 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6279 (tfile_open): Use gdb_open_cloexec.
6280 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6281 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6282 * xml-support.c (xml_fetch_content_from_file): Use
6284 * main.c (captured_main): Call notice_open_fds.
6286 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6288 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6289 'char *' to 'gdb_byte *'.
6290 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6293 2013-04-22 Yao Qi <yao@codesourcery.com>
6295 * infrun.c: Fix typo in comment.
6297 2013-04-22 Andrew Haley <aph@redhat.com>
6299 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6302 2013-04-20 Yao Qi <yao@codesourcery.com>
6304 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6305 'char *' to 'gdb_byte *'. Cast the return value of
6306 'bt_ctf_get_char_array' to 'gdb_byte *'.
6308 2013-04-19 Pedro Alves <palves@redhat.com>
6310 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6312 * configure: Regenerate.
6314 2013-04-19 Pedro Alves <palves@redhat.com>
6316 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6319 2013-04-19 Pedro Alves <palves@redhat.com>
6321 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6322 Change type of 'myaddr' parameter to gdb_byte pointer.
6323 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6324 to 'long long' pointer instead of to 'unsigned long long'.
6325 (monitor_write_memory_block, monitor_read_memory_single)
6326 (monitor_read_memory): Change type of 'myaddr' parameter to
6329 2013-04-19 Pedro Alves <palves@redhat.com>
6331 * record.c (validate_history_size): Make parameter 'setting'
6334 2013-04-19 Pedro Alves <palves@redhat.com>
6336 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6339 2013-04-19 Pedro Alves <palves@redhat.com>
6341 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6344 2013-04-19 Pedro Alves <palves@redhat.com>
6346 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6347 * ada-tasks.c (read_fat_string_value): Likewise.
6349 2013-04-19 Pedro Alves <palves@redhat.com>
6351 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6352 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6353 'offset', and adjust.
6355 2013-04-19 Pedro Alves <palves@redhat.com>
6357 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6358 (read_index_from_section): Add cast to 'char *'.
6360 2013-04-19 Pedro Alves <palves@redhat.com>
6362 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6364 2013-04-19 Pedro Alves <palves@redhat.com>
6366 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6368 2013-04-19 Pedro Alves <palves@redhat.com>
6370 * record-full.c (record_full_get_bookmark): Change local 'ret'
6371 type to char * and add cast to gdb_byte *.
6372 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6374 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6376 2013-04-19 Pedro Alves <palves@redhat.com>
6378 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6379 * python/py-prettyprint.c (print_string_repr): Change type of
6380 'output' local to char *. Add cast to gdb_byte * in
6381 LA_PRINT_STRING call.
6382 (print_children): Change type of 'output' local to char *.
6383 * python/py-value.c (valpy_string): Add cast to const char * in
6384 PyUnicode_Decode call.
6386 2013-04-19 Pedro Alves <palves@redhat.com>
6388 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6389 and change its type to 'const char *'. Adjust.
6390 (mips_send_packet): Add cast to 'char *', and remove cast to
6392 (mips_receive_packet): Remove cast to 'unsigned char *'.
6393 (mips_load_srec): Use bfd_byte.
6394 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6395 (pmon_checkset): Make 'value' parameter unsigned.
6397 2013-04-19 Pedro Alves <palves@redhat.com>
6399 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6401 2013-04-19 Pedro Alves <palves@redhat.com>
6403 * remote.c (remote_write_bytes_aux, compare_sections_command)
6405 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6406 (remote_hostio_readlink, remote_bfd_iovec_pread)
6407 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6408 binary buffer, and char when buffer is used as string.
6409 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6410 (trace_save, tfile_open, traceframe_walk_blocks)
6411 (tfile_fetch_registers): Likewise.
6413 2013-04-19 Pedro Alves <palves@redhat.com>
6415 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6416 buffer and size_t size. Adjust.
6417 * ser-base.h (ser_base_write): Adjust.
6418 * ser-go32.c (cnts): Change type to size_t.
6419 (dos_write): Change prototype -- take 'void *'
6420 buffer and size_t size. Adjust.
6421 (dos_info): Print elements of 'cnts' as unsigned long.
6422 * serial.c (serial_write): Likewise.
6423 * serial.h (serial_write): Adjust.
6424 (struct serial_ops) <write>: Change prototype -- take 'void *'
6425 buffer and size_t size. Adjust.
6427 2013-04-19 Pedro Alves <palves@redhat.com>
6429 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6431 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6433 2013-04-19 Pedro Alves <palves@redhat.com>
6435 * alpha-tdep.c (alpha_extract_return_value): Use
6436 regcache_cooked_read_unsigned to read 'v0'.
6438 2013-04-19 Pedro Alves <palves@redhat.com>
6440 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6441 parameters 'at', 'as' and 'offset' to uint32_t.
6443 2013-04-19 Pedro Alves <palves@redhat.com>
6445 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6446 'is64' to signed 'int'.
6448 2013-04-19 Pedro Alves <palves@redhat.com>
6450 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6453 2013-04-19 Pedro Alves <palves@redhat.com>
6455 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6456 'insnbuf' buffer type to unsigned int[].
6458 2013-04-19 Pedro Alves <palves@redhat.com>
6460 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6462 2013-04-19 Pedro Alves <palves@redhat.com>
6464 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6467 2013-04-19 Pedro Alves <palves@redhat.com>
6469 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6470 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6472 * mips-tdep.c (heuristic_fence_post): Change type to int.
6473 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6475 2013-04-19 Pedro Alves <palves@redhat.com>
6477 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6478 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6479 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6481 2013-04-19 Pedro Alves <palves@redhat.com>
6483 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6484 it to get a string view of the byte buffer.
6485 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6486 type to gdb_byte *. Adjust.
6487 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6488 Change local to char *.
6489 * solib-darwin.c (find_program_interpreter): Change return type to
6491 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6492 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6493 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6494 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6495 * solib-svr4.c (find_program_interpreter): Change return type to
6497 (enable_break): Change local 'interp_name' to char *.
6498 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6499 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6500 (spu_pseudo_register_write_spu): Use char for string buffer.
6502 (info_spu_event_command, info_spu_signal_command): Add casts to
6505 2013-04-19 Pedro Alves <palves@redhat.com>
6507 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6509 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6510 * ada-lang.c (ada_value_assign): Use gdb_byte.
6511 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6512 (alphanbsd_sigtramp_offset): Use gdb_byte.
6513 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6514 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6515 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6516 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6517 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6518 * arm-tdep.c (arm_stub_unwind_sniffer)
6519 (arm_displaced_init_closure): Use gdb_byte.
6520 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6521 (arm_default_thumb_le_breakpoint)
6522 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6523 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6524 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6525 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6526 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6527 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6528 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6529 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6530 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6531 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6532 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6533 (cris_store_return_value, cris_extract_return_value): Use
6535 (constraint): Change type of parameter to char * from signed
6536 char*. Use gdb_byte.
6537 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6538 of local buffer to gdb_byte *.
6539 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6540 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6541 (add_address_entry): Change type of local buffer to gdb_byte[].
6542 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6543 (frv_push_dummy_call): Use gdb_byte.
6544 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6545 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6546 (hppa_hpux_supply_save_state): Use gdb_byte.
6547 * hppa-tdep.c (hppa32_push_dummy_call)
6548 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6549 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6550 (slotN_contents, replace_slotN_contents): Change type of parameter
6552 (fetch_instruction, ia64_pseudo_register_write)
6553 (ia64_register_to_value, ia64_value_to_register)
6554 (ia64_extract_return_value, ia64_store_return_value)
6555 (ia64_push_dummy_call): Use gdb_byte.
6556 * m32c-tdep.c (m32c_return_value): Remove cast.
6557 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6558 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6560 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6561 * mn10300-tdep.c (mn10300_store_return_value)
6562 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6564 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6565 (moxie_process_record): Remove casts.
6566 * ppc-ravenscar-thread.c (supply_register_at_address)
6567 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6568 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6569 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6570 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6571 * remote.c (compare_sections_command): Use gdb_byte.
6572 * score-tdep.c (score7_free_memblock): Change type of parameter to
6574 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6575 gdb_byte *. Use gdb_byte.
6576 (sh_push_dummy_call_fpu): Use gdb_byte.
6577 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6578 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6579 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6580 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6581 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6582 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6583 (sh64_store_return_value, sh64_register_convert_to_virtual):
6584 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6585 (sh64_pseudo_register_write): Use gdb_byte.
6586 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6587 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6589 (irix_current_sos): Use gdb_byte.
6590 * solib-som.c (som_current_sos): Use gdb_byte.
6591 * sparc-ravenscar-thread.c (supply_register_at_address)
6592 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6593 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6594 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6595 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6597 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6599 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6600 * xstormy16-tdep.c (xstormy16_extract_return_value)
6601 (xstormy16_store_return_value): Change parameter type to
6602 'gdb_byte *'. Adjust.
6603 (xstormy16_push_dummy_call): Use gdb_byte.
6604 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6605 (call0_analyze_prologue, execute_code): Use gdb_byte.
6607 2013-04-19 Vladimir Kargov <kargov@gmail.com>
6608 Pedro Alves <palves@redhat.com>
6610 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6613 2013-04-17 Doug Evans <dje@google.com>
6615 * dwarf2read.c (struct signatured_type): New member type.
6616 (struct attribute): Replace member signatured_type with signature.
6617 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6618 (read_call_site_scope): Call follow_die_ref instead of
6619 follow_die_ref_or_sig.
6620 (read_structure_type): Rewrite handling of signatured types.
6621 (read_enumeration_type): Ditto.
6622 (read_attribute_value): Update.
6623 (build_error_marker_type): New function.
6624 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6625 Don't call error for bad types, just build an error marker type.
6626 (dump_die_shallow): Update.
6627 (follow_die_sig_1): Renamed from follow_die_sig.
6628 Don't call error for bad types, instead return NULL.
6629 (follow_die_sig): New function.
6630 (get_signatured_type, get_DW_AT_signature_type): New functions.
6632 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6634 * aarch64-tdep.c (aarch64_write_pc): Removed.
6635 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6638 2013-04-17 Yao Qi <yao@codesourcery.com>
6640 * top.c (print_gdb_configuration): Print configure-time
6641 parameter on using libbabeltrace or not.
6643 2013-04-16 Pedro Alves <palves@redhat.com>
6645 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6647 2013-04-16 Pedro Alves <palves@redhat.com>
6649 * common/glibc_thread_db.h: Update from upstream glibc
6650 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6652 2013-04-16 Pedro Alves <palves@redhat.com>
6654 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6655 * common/glibc_thread_db.h: ... this new file ...
6656 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6658 2013-04-16 Will Newton <will.newton@gmail.com>
6659 Pedro Alves <palves@redhat.com>
6663 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6664 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6667 2013-04-16 Pedro Alves <palves@redhat.com>
6668 Eli Zaretskii <eliz@gnu.org>
6670 * NEWS: Mention "set foo unlimited".
6672 2013-04-15 Doug Evans <dje@google.com>
6674 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6675 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6676 (create_dwo_cu_reader): Renamed from
6677 create_dwo_debug_info_hash_table_reader.
6678 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6679 Remove support for multiple CUs in a DWO file.
6680 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6682 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6684 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6685 (create_dwo_in_dwp): Ditto.
6687 2013-04-15 Tom Tromey <tromey@redhat.com>
6689 * NEWS: Move recent entries into "since 7.6" section.
6691 2013-04-15 Tom Tromey <tromey@redhat.com>
6695 * break-catch-throw.c (struct exception_catchpoint)
6696 <exception_rx, pattern>: New fields.
6697 (fetch_probe_arguments, dtor_exception_catchpoint)
6698 (check_status_exception_catchpoint)
6699 (print_one_detail_exception_catchpoint): New functions.
6700 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6701 Compile regular expression if needed.
6702 (extract_exception_regexp): New function.
6703 (catch_exception_command_1): Use extract_exception_regexp.
6704 (compute_exception): Use fetch_probe_arguments.
6705 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6706 and check_status fields.
6707 * cp-abi.c (cplus_typename_from_type_info): New function.
6708 * cp-abi.h (cplus_typename_from_type_info): Declare.
6709 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6710 * gdb_regex.h (compile_rx_or_error): Declare.
6711 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6713 (init_gnuv3_ops): Set get_type_from_type_info field.
6714 * probe.c (compile_rx_or_error): Move...
6715 * utils.c (compile_rx_or_error): ... here.
6717 2013-04-15 Tom Tromey <tromey@redhat.com>
6721 * break-catch-throw.c (compute_exception): New function.
6722 (exception_funcs): New global.
6723 (_initialize_break_catch_throw): Create $_exception.
6724 * cp-abi.c (cplus_type_from_type_info): New function.
6725 * cp-abi.h (cplus_type_from_type_info): Declare.
6726 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6727 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6728 (gnuv3_get_type_from_type_info): New functions.
6729 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6731 2013-04-15 Tom Tromey <tromey@redhat.com>
6733 * break-catch-throw.c (struct exception_names): New.
6734 (exception_functions): Change type.
6735 (re_set_exception_catchpoint): Look for SDT probes.
6737 2013-04-15 Tom Tromey <tromey@redhat.com>
6740 * break-catch-throw.c (exception_functions): New global.
6741 (gnu_v3_exception_catchpoint_ops): Move earlier.
6742 (struct exception_catchpoint): New.
6743 (classify_exception_breakpoint): Rewrite.
6744 (re_set_exception_catchpoint): New function.
6745 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6746 Allocate a struct exception_catchpoint.
6747 (catch_exception_command_1): Update.
6748 (initialize_throw_catchpoint_ops): Set 're_set' method.
6750 2013-04-15 Tom Tromey <tromey@redhat.com>
6752 * Makefile.in (SFILES): Add break-catch-throw.c
6753 (COMMON_OBS): Add break-catch-throw.o.
6754 * break-catch-throw.c: New file.
6755 * breakpoint.c: Move exception-catching code to new file.
6756 (ep_parse_optional_if_clause): No longer static.
6757 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6759 2013-04-15 Tom Tromey <tromey@redhat.com>
6763 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6764 * c-exp.y (TYPEID): New token.
6765 (exp): Add new TYPEID productions.
6766 (ident_tokens): Add "typeid".
6767 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6768 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6769 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6770 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6771 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6773 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6774 (build_std_type_info_type, gnuv3_get_typeid_type)
6775 (gnuv3_get_typeid): New functions.
6776 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6777 new fields on ABI object.
6778 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6779 * std-operator.def (OP_TYPEID): New.
6781 2013-04-15 Tom Tromey <tromey@redhat.com>
6783 * elfread.c (elf_symtab_read): Install versioned symbol under
6784 unversioned name as well.
6786 2013-04-15 Tom Tromey <tromey@redhat.com>
6789 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6790 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6791 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6792 (gdb_demangle): New function.
6793 * cp-support.h (gdb_demangle): Declare.
6794 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6795 (dwarf2_name): Use gdb_demangle.
6796 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6797 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6799 (gnuv3_print_method_ptr): Use gdb_demangle.
6800 * jv-lang.c (java_demangle): Use gdb_demangle.
6801 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6802 * language.c (unk_lang_demangle): Use gdb_demangle.
6803 * symtab.c (symbol_find_demangled_name)
6804 (demangle_for_lookup): Use gdb_demangle.
6806 2013-04-15 Tom Tromey <tromey@redhat.com>
6810 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6812 (classify_exception_breakpoint): New function.
6813 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6814 (print_mention_exception_catchpoint)
6815 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6816 (catch_exception_command_1): Handle "rethrow" catchpoint.
6817 (catch_rethrow_command): New function.
6818 (_initialize_breakpoint): Add "catch rethrow" command.
6820 2013-04-15 Pierre Muller <muller@sourceware.org>
6822 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6823 set_gdbarch_write_pc as deprecated anymore.
6825 2013-04-15 Joel Brobecker <brobecker@adacore.com>
6827 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6830 2013-04-13 Yao Qi <yao@codesourcery.com>
6832 * ctf.c (_initialize_ctf): Include "completer.h".
6833 Call add_target_with_completer instead of add_target.
6835 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6837 Fix GDB regression related to PR binutils/14813.
6838 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6839 * minidebug.c (lzma_close): Add return value comment.
6840 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6841 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6842 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6844 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6846 * config.in: Regenerate.
6848 2013-04-12 Tom Tromey <tromey@redhat.com>
6850 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6852 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6853 (struct die_reader_specs) <buffer>: Likewise.
6854 (die_reader_func_ftype): Make 'info_ptr' const.
6855 (struct line_header) <include_dirs, statement_program_start,
6856 statement_program_end>: Now const.
6857 (struct file_entry) <name>: Likewise.
6858 (struct partial_die_info) <sibling>: Likewise.
6859 (struct dwarf_block) <data>: Likewise.
6860 (dwarf2_read_section): Remove cast.
6861 (dwarf2_get_section_info): Make 'bufp' const.
6862 (read_index_from_section): Constify.
6863 (dw2_get_file_names_reader): Make 'info_ptr' const.
6864 (dw2_get_primary_filename_reader): Likewise.
6865 (read_comp_unit_head): Make 'info_ptr' and return type const.
6866 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6868 (read_abbrev_offset): Constify.
6869 (dwarf2_create_include_psymtab): Make 'name' const.
6870 (create_debug_types_hash_table): Update.
6871 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6872 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6874 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6875 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6876 (read_comp_units_from_section): Constify.
6877 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6878 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6880 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6881 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6882 (create_dwp_hash_table, dwarf2_ranges_read)
6883 (dwarf2_record_block_ranges): Constify.
6884 (read_die_and_children, read_die_and_siblings_1)
6885 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6887 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6888 (abbrev_table_read_table): Constify.
6889 (load_partial_dies): Make 'info_ptr' const.
6890 (read_partial_die, read_attribute_value, read_attribute): Make
6891 'info_ptr' and return type const.
6892 (read_address, read_initial_length)
6893 (read_checked_initial_length_and_offset, read_offset)
6894 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6896 (read_direct_string): Make 'buf' and return type const.
6897 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6898 (read_indirect_string): Make return type const.
6899 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6900 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6902 (read_str_index): Make return type const.
6903 (add_include_dir): Make 'include_dir' const.
6904 (add_file_name): Make 'name' const.
6905 (dwarf_decode_line_header): Constify.
6906 (psymtab_include_file_name): Make return type const.
6907 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6908 (dwarf2_start_subfile): Make 'filename' const.
6909 (dwarf2_const_value_attr): Make 'bytes' const.
6910 (read_signatured_type_reader): Make 'info_ptr' const.
6911 (decode_locdesc): Constify.
6912 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6914 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6915 'mac_end', and return type const.
6916 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6917 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6919 (per_cu_header_read_in): Constify.
6920 * symfile.h (dwarf2_get_section_info): Update.
6922 2013-04-12 Tom Tromey <tromey@redhat.com>
6924 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6926 2013-04-12 Eli Zaretskii <eliz@gnu.org>
6928 * NEWS: Mention "show configuration", --configuration.
6929 * top.c (print_gdb_configuration): New function, displays the
6930 details about GDB configure-time parameters.
6931 (print_gdb_version): Mention "show configuration".
6932 * cli/cli-cmds.c (show_configuration): New function.
6933 (_initialize_cli_cmds): Add the "show configuration" command.
6934 * main.c (captured_main) <print_configuration>: New static var.
6935 <long_options>: Use it.
6936 If --configuration was given, call print_gdb_configuration.
6938 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6939 Pedro Alves <palves@redhat.com>
6941 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6942 (generated_files): Add gcore.
6943 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6944 HAVE_NATIVE_GCORE_HOST.
6946 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6947 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6948 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6949 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6950 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6951 Add HAVE_NATIVE_GCORE_HOST.
6952 * configure: Regenerate.
6953 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6954 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6955 AC_CONFIG_FILES for gcore.
6956 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6958 * gdb_gcore.sh: Rename to ...
6959 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6960 and GCORE_TRANSFORM_NAME substitutions.
6962 Fix parsing tabs in ${gdb_target_obs}.
6963 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6965 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6967 * remote.c (unpush_and_perror): Add output message final dot.
6969 2013-04-11 Yao Qi <yao@codesourcery.com>
6971 * tracepoint.c (tfile_interp_line): Fit parameters line and
6974 2013-04-10 Joel Brobecker <brobecker@adacore.com>
6976 * solib.c (solib_map_sections): Remove code overwriting
6977 SO->SO_NAME with the bfd's filename.
6979 2013-04-10 Pedro Alves <palves@redhat.com>
6981 * cli/cli-decode.c (integer_unlimited_completer): New function.
6982 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6983 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6985 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6986 (is_unlimited_literal): New function.
6987 (do_set_command): Handle literal "unlimited" arguments.
6988 * frame.c (_initialize_frame) <set backtrace limit>: Document
6990 * printcmd.c (_initialize_printcmd) <set print
6991 max-symbolic-offset>: Add help text.
6992 * record-full.c (_initialize_record_full) <set record full
6993 insn-number-max>: Likewise.
6994 * record.c (_initialize_record) <set record
6995 instruction-history-size, set record function-call-history-size>:
6997 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6999 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7001 * source.c (_initialize_source) <set listsize>: Add help text.
7002 * utils.c (initialize_utils) <set height, set width>: Likewise.
7003 <set pagination>: Mention "set height unlimited".
7004 * valprint.c (_initialize_valprint) <set print elements, set print
7005 repeats>: Document "unlimited".
7007 2013-04-10 Pedro Alves <palves@redhat.com>
7009 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7010 instead of disconnect_tracing.
7011 * infcmd.c (detach_command, disconnect_command): Call
7012 query_if_trace_running. Adjust.
7013 * top.c: Include "tracepoint.h".
7014 (quit_target): Delete. Contents moved ...
7015 (quit_force): ... here. Wrap each stage of teardown in
7016 TRY_CATCH. Call disconnect_tracing before detaching.
7018 2013-04-10 Hui Zhu <hui@codesourcery.com>
7019 Yao Qi <yao@codesourcery.com>
7021 * configure.ac: Check libbabeltrace is installed.
7022 * config.in: Regenerate.
7023 * configure: Regenerate.
7024 * Makefile.in (LIBBABELTRACE): New.
7025 (CLIBS): Add LIBBABELTRACE.
7026 * ctf.c: Include "exec.h".
7027 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7028 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7029 (ctf_save_metadata_header): Define new type aliases in
7031 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7032 in metadata. Start a new faked packet for trace status.
7033 (ctf_write_status): Write trace status to CTF.
7034 (ctf_write_uploaded_tsv): Write TSV to CTF.
7035 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7036 (ctf_write_definition_end): End the faked packet.
7038 (ctx, ctf_iter, trace_dirname): New.
7039 (start_pos): New variable.
7040 (ctf_destroy, ctf_open_dir, ctf_open): New.
7041 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7043 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7044 (ctf_fetch_registers, ctf_xfer_partial): New.
7045 (ctf_get_trace_state_variable_value): New.
7046 (ctf_get_tpnum_from_frame_event): New.
7047 (ctf_get_traceframe_address): New.
7048 (ctf_trace_find, ctf_has_stack): New.
7049 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7050 (ctf_get_trace_status, ctf_read_status): New.
7051 (_initialize_ctf): New.
7052 * tracepoint.c (get_tracepoint_number): New
7053 (get_uploaded_tsv): Remove 'static'.
7054 (struct traceframe_info, trace_regblock_size): Move it to ...
7055 * tracepoint.h: ... here.
7056 (get_tracepoint_number): Declare it.
7057 (get_uploaded_tsv): Declare it.
7059 * NEWS: Mention new configure option.
7061 2013-04-10 Pedro Alves <palves@redhat.com>
7062 Hui Zhu <hui@codesourcery.com>
7064 * breakpoint.c (dprintf_re_set): New.
7065 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7068 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7070 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7071 Remove solib-svr4.o from the list.
7073 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7075 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7076 Use gdb_assert_not_reached instead of invalid boolean expression.
7078 2013-04-09 Pedro Alves <palves@redhat.com>
7080 * remote.c (unpush_and_perror): New function.
7081 (readchar, remote_serial_write): Use it.
7083 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7085 * NEWS: Mention new btrace RSP packets.
7087 2013-04-08 Tom Tromey <tromey@redhat.com>
7089 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7092 2013-04-08 Tom Tromey <tromey@redhat.com>
7094 * maint.c (print_bfd_section_info): Print the section index.
7095 * symmisc.c (dump_msymbols): Print the section index.
7097 2013-04-08 Tom Tromey <tromey@redhat.com>
7100 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7101 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7102 * breakpoint.c (resolve_sal_pc): Update.
7103 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7104 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7105 (minsym_lookup_iterator_cb): Use it.
7106 (default_read_var_value): Update.
7107 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7109 * infcmd.c (jump_command): Update.
7110 * linespec.c (minsym_found): Update.
7111 * maint.c (maintenance_translate_address): Update.
7112 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7113 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7114 * parse.c (write_exp_msymbol): Update.
7115 * printcmd.c (address_info): Update.
7116 * psymtab.c (find_pc_sect_psymbol): Update.
7117 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7119 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7120 Don't initialize SYMBOL_OBJ_SECTION.
7121 * spu-tdep.c (spu_catch_start): Update.
7122 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7123 * symmisc.c (dump_msymbols, print_symbol): Update.
7124 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7125 how fallback section is computed.
7126 (fixup_symbol_section): Update.
7127 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7129 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7130 Initialize SYMBOL_SECTION.
7131 * symtab.h (struct general_symbol_info) <section>: Update comment.
7132 <obj_section>: Remove.
7133 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7134 (SYMBOL_OBJFILE): New macro.
7136 2013-04-08 Tom Tromey <tromey@redhat.com>
7138 * coffread.c (record_minimal_symbol): Update.
7139 * dbxread.c (record_minimal_symbol): Update.
7140 * elfread.c (record_minimal_symbol): Update.
7141 * machoread.c (macho_symtab_add_minsym): Update.
7142 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7144 * minsyms.c (prim_record_minimal_symbol): Update.
7145 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7147 (prim_record_minimal_symbol_and_info): Likewise.
7148 * minsyms.h (prim_record_minimal_symbol_full)
7149 (prim_record_minimal_symbol_and_info): Update.
7150 * symtab.c (allocate_symbol, initialize_symbol)
7151 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7152 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7155 2013-04-08 Tom Tromey <tromey@redhat.com>
7158 * solib-som.c (som_solib_section_offsets): Use BFD section
7159 indices. Set offsets for all sections.
7160 * somread.c (som_symtab_read): Compute BFD section for
7161 symbol. Use prim_record_minimal_symbol_and_info.
7162 (som_symfile_read): Fix comment.
7163 (struct find_section_offset_arg): New.
7164 (find_section_offset, set_section_index): New functions.
7165 (som_symfile_offsets): Use set_section_index to compute
7168 2013-04-08 Tom Tromey <tromey@redhat.com>
7170 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7171 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7172 gdb_bfd_section_index.
7173 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7175 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7177 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7179 * objfiles.c (add_to_objfile_sections_full): New function.
7180 (add_to_objfile_sections): Use it.
7181 (build_section_table): Rewrite.
7182 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7183 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7184 (struct objfile) <sections>: Update comment.
7185 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7187 (ALL_OBJSECTIONS): Use it.
7188 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7189 * solib-frv.c (frv_relocate_main_executable): Update.
7190 * solib-target.c (solib_target_relocate_section_addresses):
7191 Use gdb_bfd_section_index.
7192 * symfile.c (build_section_addr_info_from_section_table):
7193 Use gdb_bfd_section_index.
7194 (build_section_addr_info_from_bfd, place_section): Likewise.
7195 * symtab.c (fixup_section): Update.
7196 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7198 2013-04-08 Tom Tromey <tromey@redhat.com>
7200 * minsyms.h (struct bound_minimal_symbol): New.
7201 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7202 Remove objfile argument.
7203 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7204 Return bound_minimal_symbol.
7205 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7206 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7207 Return bound_minimal_symbol.
7208 (in_gnu_ifunc_stub): Update.
7209 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7210 Remove 'objfile_p' argument.
7211 (lookup_solib_trampoline_symbol_by_pc): Update.
7212 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7213 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7214 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7215 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7216 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7217 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7218 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7219 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7220 stack.c, symtab.c, tui/tui-disasm.c: Update.
7222 2013-04-08 Tom Tromey <tromey@redhat.com>
7224 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7225 Use symbol's obstack, not an objfile.
7226 * coffread.c (process_coff_symbol): Update.
7227 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7228 * jv-lang.c (add_class_symbol): Update.
7229 * mdebugread.c (new_symbol): Update.
7230 * minsyms.c (prim_record_minimal_symbol_full)
7231 (terminate_minimal_symbol_table): Update.
7232 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7233 * stabsread.c (define_symbol, read_enum_type): Update.
7234 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7235 Handle Ada specially.
7236 (symbol_set_language): Add 'obstack' argument.
7237 (symbol_set_names): Update.
7238 (symbol_natural_name, symbol_demangled_name): Always use
7240 * symtab.h (struct general_symbol_info)
7241 <language_specific::obstack>: New field.
7242 <ada_mangled>: New field.
7243 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7244 (symbol_set_language): Update.
7246 2013-04-08 Tom Tromey <tromey@redhat.com>
7248 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7249 Take an obstack, not an objfile.
7250 (symbol_set_names): Update.
7251 * symtab.h (symbol_set_demangled_name): Update.
7253 2013-04-08 Tom Tromey <tromey@redhat.com>
7255 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7257 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7258 (read_func_scope): Call allocate_template_symbol.
7259 (new_symbol_full): Call allocate_symbol.
7260 * jit.c (finalize_symtab): Call allocate_symbol.
7261 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7262 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7263 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7264 (common_block_end): Call allocate_symbol.
7265 * symtab.c (allocate_symbol, initialize_symbol)
7266 (allocate_template_symbol): New functions.
7267 * symtab.c (allocate_symbol, initialize_symbol)
7268 (allocate_template_symbol): Declare.
7269 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7271 2013-04-08 Pedro Alves <palves@redhat.com>
7272 Keith Seitz <keiths@redhat.com>
7274 * breakpoint.c (create_breakpoint): Rename
7275 "parse_condition_and_thread" parameter to "parse_arg". Update
7276 describing comment. If !PARSE_ARG, then error out if ARG is not
7277 the empty string after extracting the location.
7278 * breakpoint.h (create_breakpoint): Rename
7279 "parse_condition_and_thread" parameter to "parse_arg".
7281 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7283 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7285 2013-04-07 Yao Qi <yao@codesourcery.com>
7287 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7288 and 'addr2' to CORE_ADDR.
7289 * target.c (update_current_target): Update.
7290 * target.h (struct target_ops) <to_trace_find>: Change parameter
7292 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7293 'addr2' to CORE_ADDR.
7294 (tfile_trace_find): Likewise.
7295 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7296 Change local variable 'addr' to type CORE_ADDR.
7297 * tracepoint.h (tfind_1): Update declaration.
7299 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7301 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7302 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7305 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7307 * main.h (windows_get_absolute_argv0): ...to here.
7309 2013-04-05 Doug Evans <dje@google.com>
7311 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7312 (read_cutu_die_from_dwo): Add comments.
7313 (read_structure_type): Update comment.
7314 (read_enumeration_type, read_namespace_type): Update comment.
7315 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7317 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7319 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7320 * Makefile.in (gdb.z): Remove.
7321 (install-only): Remove $(man1dir) and gdb.1 installation.
7324 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7326 Fix compatibility with Linux kernel 3.8.3.
7327 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7328 to more inner block. Remove parsing of NUMBER from outer block.
7329 Parse NUMBER only if KEYWORD has been identified.
7331 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7333 Fix variable name shadowing.
7334 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7335 filename to mapsfilename and update its uses.
7337 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7339 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7340 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7341 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7342 details of the problem.
7344 2013-04-04 Pedro Alves <palves@redhat.com>
7345 Hui Zhu <hui@codesourcery.com>
7347 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7348 tracepoint, reset its STEP_COUNT and call validate_actionline.
7350 2013-04-03 Doug Evans <dje@google.com>
7352 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7353 read_die_and_siblings.
7354 (read_die_and_siblings): New function.
7355 (read_cutu_die_from_dwo): Dump die if requested.
7356 (read_die_and_children): Call read_full_die_1 and
7357 read_die_and_siblings_1.
7358 (read_full_die): Dump die if requested.
7360 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7362 * dwarf2read.c (struct dwo_file): New member comp_dir.
7363 Rename member name to dwo_name. All uses updated.
7364 (hash_dwo_file): Include comp_dir in computation.
7365 (eq_dwo_file): Ditto.
7366 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7367 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7369 * psymtab.c (read_psymtabs_with_fullname): Don't call
7370 psymtab_to_fullname if the basenames are different.
7372 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7374 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7375 New entry about "fullname" presence.
7377 2013-04-03 Pedro Alves <palves@redhat.com>
7379 * NEWS: Mention x86_64/Cygwin as new native configuration.
7381 2013-04-02 Doug Evans <dje@google.com>
7383 * dwarf2read.c (read_structure_type): Fix typo in comment.
7385 2013-04-02 Pedro Alves <palves@redhat.com>
7387 * NEWS: Mention "set/show debug aarch64", "set/show debug
7388 coff-pe-read" and "set/show debug mach-o".
7390 2013-04-02 Pedro Alves <palves@redhat.com>
7392 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7394 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7396 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7397 gdb_string.h is now in common/.
7399 2013-04-02 Pedro Alves <palves@redhat.com>
7401 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7402 under "New options".
7404 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7408 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7410 2013-04-02 Pedro Alves <palves@redhat.com>
7414 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7415 (remote_serial_write): New function.
7416 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7418 2013-04-01 Jiong Wang <jiwang@tilera.com>
7420 * NEWS: Mention TILE-Gx in "New native configurations" and
7421 "New targets" sections.
7423 2013-04-01 Doug Evans <dje@google.com>
7425 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7426 (process_enumeration_scope): Simplify.
7428 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7430 (struct signatured_type): ... to here.
7431 (sig_type_ptr): New typedef.
7432 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7433 out of union 't'. All uses updated.
7434 (dw2_get_file_names_reader): Assert not called for a type unit.
7435 (dw2_get_file_names): Assert not called for a type unit or type
7437 (build_type_psymtabs_reader): Assert called for a type unit.
7438 (build_type_psymtab_dependencies): Assert called for a type unit group.
7440 * dwarf2read.c (free_dwo_file): Add comment.
7441 (dwarf2_per_objfile_free): Unref dwp bfd.
7443 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7445 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7446 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7447 (read_pe_exported_syms): Remove unused 'exportix'.
7448 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7449 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7450 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7452 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7454 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7455 (print_it_watchpoint): Remove unused 'bl'.
7456 (say_where): Remove unused 'uiout'.
7457 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7458 (bkpt_breakpoint_hit): Remove unused 'b'.
7459 (internal_bkpt_print_it): Remove unused 'uiout'.
7460 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7462 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7464 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7465 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7467 2013-03-29 Doug Evans <dje@google.com>
7469 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7470 Delete arg is_dwp. All callers updated.
7471 (open_dwp_file): New function.
7472 (open_and_init_dwp_file): Call it.
7473 (get_dwp_file): New function.
7474 (lookup_dwo_cutu): Call it.
7476 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7477 unnecessary, cleanup.
7479 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7481 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7482 (lookup_dwo_unit): New function.
7483 (init_cutu_and_read_dies): Move DWO handling to new functions.
7485 * dwarf2read.c (struct signatured_type): Tweak comment.
7486 (struct dwo_unit): Tweak comment.
7487 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7488 (create_dwo_debug_info_hash_table): Tweak comment.
7489 (dwarf2_per_cu_offset_and_type): Tweak comment.
7491 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7492 missing .debug_types section.
7494 2013-03-29 Yao Qi <yao@codesourcery.com>
7496 * corelow.c: Include "completer.h".
7497 (_initialize_corelow): Call add_target_with_completer with
7498 argument 'filename_completer'.
7499 * tracepoint.c: Likewise.
7500 * exec.c (_initialize_exec): Likewise.
7501 * target.c (add_target): Rename to ...
7502 (add_target_with_completer): ... this. Call set_cmd_completer
7503 if parameter completer is not NULL.
7505 * target.h: Include "command.h".
7506 (add_target_with_completer): Declare it.
7508 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7510 * coffread.c (is_import_fixup_symbol): New function.
7511 (record_minimal_symbol): Use is_import_fixup_symbol to
7512 detect import fixup symbols, and discard them.
7514 2013-03-28 Doug Evans <dje@google.com>
7516 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7517 types hash table until we know we need it.
7519 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7522 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7523 All callers updated.
7524 (dw2_print_stats): Print #read CUs too.
7525 (dump_die_shallow): Print signatured types better.
7527 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7528 info_or_types_section to section. All uses updated.
7529 (struct dwo_unit): Ditto.
7531 2013-03-28 Pedro Alves <palves@redhat.com>
7533 * NEWS (New options): New section.
7534 (New options): Mention set/show remote trace-status-packet.
7535 * remote.c (PACKET_qTStatus): New enumeration value.
7536 (remote_get_trace_status): Skip sending qTStatus if the packet is
7537 disabled. Use packet_ok.
7538 (_initialize_remote): Register a configuration command for
7541 2013-03-28 Doug Evans <dje@google.com>
7543 * symfile.c (find_separate_debug_file): Add comment.
7544 (terminate_after_last_dir_separator): Tweak comment.
7546 * dwarf2read.c (create_partial_symtab): Add forward decl.
7547 (create_partial_symtab): Move to be closer to other psymtab functions.
7548 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7550 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7551 (compute_symtab_includes): Remove unnecessary forward declaration.
7552 (die_needs_namespace): Add comment marking group of functions for
7553 dwarf2 name computation.
7555 * typeprint.c (_initialize_typeprint): Improve type help text.
7557 * python/python.c (finish_python_initialization): Provide suggestion
7558 for how to tell gdb to find its python files.
7560 2013-03-28 Pedro Alves <palves@redhat.com>
7564 * source.c (_initialize_source): Change back "set listsize" to an
7567 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7570 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7572 2013-03-27 Pedro Alves <palves@redhat.com>
7574 * top.c (history_size): Rename to ...
7575 (history_size_setshow_var): ... this. Add comment.
7576 (show_commands): Use readline's 'history_length' instead of
7577 computing the history length by calling history_get in a loop.
7578 (set_history_size_command): Error out for sizes over INT_MAX.
7579 Restore previous history size on invalid size.
7580 (init_history): If HISTSIZE is negative, leave the history size as
7582 (init_main): Adjust.
7584 2013-03-27 Pedro Alves <palves@redhat.com>
7586 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7587 coff_pe_read" command to "set debug coff-pe-read".
7589 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7591 * record.c (command_size_to_target_size): Fix size comparison.
7592 Change parameter type from pointer to integer to integer.
7595 2013-03-27 Pierre Muller <muller@sourceware.org>
7597 * windows-nat.c (handle_output_debug_string): Avoid typecast
7598 from integer of different size warning.
7600 2013-03-26 Joel Brobecker <brobecker@adacore.com>
7602 * windows-nat.c (handle_output_debug_string): Add empty line
7603 after local block variable definition.
7605 2013-03-26 Pedro Alves <palves@redhat.com>
7607 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7608 (net_open): Make 'polls' local unsigned.
7610 2013-03-26 Pedro Alves <palves@redhat.com>
7612 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7613 a zuinteger command instead of uinteger.
7615 2013-03-26 Pedro Alves <palves@redhat.com>
7617 * record-full.c (record_full_insn_num): Make it unsigned.
7618 (record_full_check_insn_num, record_full_message)
7619 (record_full_registers_change, record_full_xfer_partial): Remove
7620 record_full_insn_max_num check (it's always != 0).
7621 (record_full_info, record_full_restore): Use %u as format string.
7622 (): Use %u as format string.
7623 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7624 check (it's always != 0).
7626 2013-03-26 Pedro Alves <palves@redhat.com>
7628 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7629 and "set dcache size" commands zuinteger instead of uinteger.
7631 2013-03-26 Pedro Alves <palves@redhat.com>
7633 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7634 command zuinteger instead of uinteger.
7636 2013-03-26 Pedro Alves <palves@redhat.com>
7638 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7639 zuinteger instead of uinteger.
7641 2013-03-26 Pedro Alves <palves@redhat.com>
7643 * record.c (record_insn_history_size_setshow_var)
7644 (record_call_history_size_setshow_var): New globals.
7645 (command_size_to_target_size): New function.
7646 (cmd_record_insn_history, cmd_record_call_history): Use
7647 command_size_to_target_size instead of cast.
7648 (validate_history_size, set_record_insn_history_size)
7649 (set_record_call_history_size): New functions.
7650 (_initialize_record): Install set_record_insn_history_size and
7651 set_record_call_history_size as "set" hooks of "set record
7652 instruction-history-size" and "set record
7653 function-call-history-size".
7655 2013-03-26 Pedro Alves <palves@redhat.com>
7657 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7658 use with history_max_entries use. Remove FIXME note.
7660 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7662 * record-btrace.c (record_btrace_close): Call
7663 record_btrace_auto_disable.
7665 2013-03-25 Joel Brobecker <brobecker@adacore.com>
7667 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7669 2013-03-25 Doug Evans <dje@google.com>
7671 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7673 2013-03-25 Tom Tromey <tromey@redhat.com>
7676 * c-exp.y (exp): Add new productions for destructors after '.' and
7678 (write_destructor_name): New function.
7680 2013-03-25 Tom Tromey <tromey@redhat.com>
7683 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7684 value_struct_elt, not lookup_struct_elt_type.
7685 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7686 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7687 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7689 2013-03-25 Yao Qi <yao@codesourcery.com>
7691 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7692 instead of '_mkdir'.
7694 2013-03-23 Eli Zaretskii <eliz@gnu.org>
7696 * windows-nat.c (windows_get_absolute_argv0): New function.
7697 * windows-nat.h: Add its prototype.
7699 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7700 Use IS_DIR_SEPARATOR instead of looking for a character inside
7701 SLASH_STRING. Include filenames.h.
7702 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7703 relocate_gdb_directory works when passed gdb_program_name.
7704 Include windows-nat.h.
7706 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7708 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7709 * remote.c (trace_error): Remove the special handling of '2'.
7710 (readchar) <SERIAL_EOF>
7711 (readchar) <SERIAL_ERROR>
7712 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7713 (remote_get_trace_status): Call throw_exception if EX is
7715 * utils.c (perror_with_name): Rename to ...
7716 (throw_perror_with_name): ... here. New parameter errcode, describe it
7717 in the function comment.
7718 (perror_with_name): New function wrapper.
7719 * utils.h (enum errors): New stub declaration.
7720 (throw_perror_with_name): New declaration.
7722 2013-03-22 Pedro Alves <palves@redhat.com>
7723 Yao Qi <yao@codesourcery.com>
7724 Mark Kettenis <kettenis@gnu.org>
7726 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7727 Don't let the user set the value to UINT_MAX directly.
7728 <var_integer>: Don't let the user set the value to INT_MAX
7731 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7733 * remote.c (remote_unpush_target): New function.
7734 (remote_open_1): Remove two pop_target calls, update one comment, add
7735 comment to target_preopen call. Replace pop_target call by
7736 remote_unpush_target call.
7737 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7738 pop_target calls by remote_unpush_target calls.
7740 2013-03-22 Pedro Alves <palves@redhat.com>
7742 * linux-nat.c (linux_child_follow_fork): Don't call
7743 linux_enable_event_reporting.
7744 (linux_handle_extended_wait): Don't call
7745 linux_enable_event_reporting.
7747 2013-03-22 Pedro Alves <palves@redhat.com>
7749 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7750 use it to rewrite the trampoline buffers with type gdb_byte[], and
7751 undefine the macro. Remove char* cast.
7753 2013-03-21 Doug Evans <dje@google.com>
7755 New commands "mt set per-command {space,time,symtab} {on,off}".
7757 * event-top.c: #include "maint.h".
7758 * main.c: #include "maint.h".
7759 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7760 timeval-utils.h, maint.h, cli/cli-setshow.h.
7761 (per_command_time, per_command_space): New static globals.
7762 (per_command_symtab): New static global.
7763 (per_command_setlist, per_command_showlist): New static globals.
7764 (struct cmd_stats): Move here from utils.c.
7765 (set_per_command_time): Renamed from set_display_time in utils.c
7766 and moved here. All callers updated.
7767 (set_per_command_space): Renamed from set_display_space in utils.c
7768 and moved here. All callers updated.
7769 (count_symtabs_and_blocks): New function.
7770 (report_command_stats): Moved here from utils.c. Add support for
7771 printing symtab stats. Only print data if enabled before command
7773 (make_command_stats_cleanup): Ditto.
7774 (sert_per_command_cmd, show_per_command_cmd): New functions.
7775 (_initialize_maint_cmds): Add new commands
7776 mt set per-command {space,time,symtab} {on,off}.
7777 * maint.h: New file.
7778 * top.c: #include "maint.h".
7779 * utils.c (reset_prompt_for_continue_wait_time): New function.
7780 (get_prompt_for_continue_wait_time): New function.
7781 * utils.h (reset_prompt_for_continue_wait_time): Declare
7782 (get_prompt_for_continue_wait_time): Declare.
7783 (make_command_stats_cleanup): Moved to maint.h.
7784 (set_display_time, set_display_space): Moved to maint.h and renamed
7785 to set_per_command_time, set_per_command_space.
7786 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7787 parse_binary_operation and made non-static. Don't call error,
7788 just return an error marker. All callers updated.
7789 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7791 2013-03-21 Tom Tromey <tromey@redhat.com>
7793 * symfile.c (alloc_section_addr_info): Update header. Don't set
7794 'num_sections' field.
7795 (build_section_addr_info_from_section_table): Set 'num_sections'.
7796 (build_section_addr_info_from_bfd): Likewise.
7797 (build_section_addr_info_from_objfile): Remove dead loop
7799 (free_section_addr_info): Unconditionally call xfree.
7800 (relative_addr_info_to_section_offsets, addrs_section_sort)
7801 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7803 (syms_from_objfile_1): Remove dead 'if' condition. Check
7805 (add_symbol_file_command): Set 'num_sections'.
7806 * symfile-mem.c (symbol_file_add_from_memory): Set
7808 * somread.c (som_symfile_offsets): Remove dead loop condition.
7809 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7810 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7812 2013-03-21 Tom Tromey <tromey@redhat.com>
7814 * tracepoint.h (decode_agent_options): Add 'trace_string'
7816 * tracepoint.c (decode_agent_options): Add 'trace_string'
7818 (validate_actionline): Update.
7819 (collect_symbol): Add 'trace_string' argument.
7820 (struct add_local_symbols_data) <trace_string>: New field.
7821 (do_collect_symbol): Update.
7822 (add_local_symbols): Add 'trace_string' argument.
7823 (encode_actions_1): Update.
7824 (trace_dump_actions): Update.
7825 * dwarf2loc.c (access_memory): Update.
7826 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7827 * ax-general.c (new_agent_expr): Update.
7828 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7829 (gen_trace_for_return_address): Add argument.
7830 (trace_kludge, trace_string_kludge): Remove.
7831 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7832 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7833 (gen_trace_for_var): Add 'trace_string' argument.
7834 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7835 (gen_printf, agent_eval_command_one): Update.
7837 2013-03-21 Tom Tromey <tromey@redhat.com>
7840 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7841 Handle FILENAME token.
7843 2013-03-21 Tom Tromey <tromey@redhat.com>
7845 * c-exp.y (YYPRINT): Define.
7846 (c_print_token): New function.
7848 2013-03-21 Tom Tromey <tromey@redhat.com>
7850 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7852 2013-03-21 Yao Qi <yao@codesourcery.com>
7854 * ctf.c: Include "gdb_stat.h".
7855 [USE_WIN32API]: New macro 'mkdir'.
7856 (ctf_start): Use permission bits macros if they are defined.
7858 2013-03-20 Keith Seitz <keiths@redhat.com>
7860 * breakpoint.h (struct breakpoint): Add comment to
7861 extra_string indicating that this member is mallod'd.
7862 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7864 2013-03-20 Pedro Alves <palves@redhat.com>
7868 * cli/cli-setshow.c (do_set_command)
7869 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7870 the result of parsing the command argument. Throw error if the
7871 value is greater than UINT_MAX. Print the invalid value with
7873 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7874 result of parsing the command argument. Throw error if the value
7875 is greater than INT_MAX, not greater or equal. Also throw error
7876 if the value is less than INT_MIN. Print the invalid value with
7878 <var_zuinteger_unlimited>: Throw error if the value is greater
7879 than INT_MAX, not greater or equal.
7880 (do_show_command) <var_integer, var_zinteger,
7881 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7883 2013-03-20 Tom Tromey <tromey@redhat.com>
7885 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7887 * dwarf2read.c (read_func_scope): Remove old FIXME.
7888 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7890 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7891 Unconditionally call via computed ops, if possible.
7892 * printcmd.c (address_info): Unconditionally call via computed ops,
7894 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7896 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7897 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7900 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7901 Tom Tromey <tromey@redhat.com>
7904 * coffread.c (coff_register_index): New global.
7905 (process_coff_symbol, coff_read_enum_type): Set
7906 SYMBOL_ACLASS_INDEX.
7907 (_initialize_coffread): Initialize new global.
7908 * dwarf2loc.c (locexpr_find_frame_base_location)
7909 (dwarf2_block_frame_base_locexpr_funcs)
7910 (loclist_find_frame_base_location)
7911 (dwarf2_block_frame_base_loclist_funcs): New.
7912 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7913 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7914 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7915 (dwarf2_block_frame_base_loclist_funcs): New.
7916 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7917 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7919 (read_func_scope): Update.
7920 (fixup_go_packaging, mark_common_block_symbol_computed)
7921 (var_decode_location, new_symbol_full, dwarf2_const_value):
7922 Set SYMBOL_ACLASS_INDEX.
7923 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7924 (_initialize_dwarf2_read): Initialize new globals.
7925 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7926 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7927 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7929 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7930 (_initialize_mdebugread): Initialize new globals.
7931 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7932 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7933 (stab_register_index, stab_regparm_index): New globals.
7934 (define_symbol, read_enum_type, common_block_end): Set
7935 SYMBOL_ACLASS_INDEX.
7936 (_initialize_stabsread): Initialize new globals.
7937 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7939 (MAX_SYMBOL_IMPLS): New define.
7940 (register_symbol_computed_impl, register_symbol_block_impl)
7941 (register_symbol_register_impl)
7942 (initialize_ordinary_address_classes): New functions.
7943 (_initialize_symtab): Call initialize_ordinary_address_classes.
7944 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7945 (struct symbol_impl): New.
7946 (SYMBOL_ACLASS_BITS): New define.
7947 (struct symbol) <aclass, ops>: Remove fields.
7948 <aclass_index>: New field.
7949 (symbol_impls): Declare.
7950 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7951 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7952 (register_symbol_computed_impl, register_symbol_block_impl)
7953 (register_symbol_register_impl): Declare.
7954 (struct symbol_computed_ops): Add location_has_loclist.
7955 (struct symbol_block_ops): New.
7956 (SYMBOL_BLOCK_OPS): New.
7957 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7959 2013-03-20 Tom Tromey <tromey@redhat.com>
7961 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7962 (print_partial_symbols, recursively_search_psymtabs): Use
7965 2013-03-20 Pierre Muller <muller@sourceware.org>
7967 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7968 addtion, subtraction, multiplication and division binary operator.
7970 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7973 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7974 * bsd-kvm.c (bsd_kvm_close): Likewise.
7975 * bsd-uthread.c (bsd_uthread_close): Likewise.
7976 * corelow.c (core_close): Likewise.
7977 (core_close_cleanup): Remove parameter quitting from a caller.
7978 * event-top.c (async_disconnect): Likewise.
7979 * exec.c (exec_close_1): Remove parameter quitting.
7980 * go32-nat.c (go32_close): Likewise.
7981 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7982 parameter quitting from a caller.
7983 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7985 (mips_linux_close): Remove parameter quitting. Remove parameter
7986 quitting from a caller.
7987 * monitor.c (monitor_close): Remove parameter quitting.
7988 * monitor.h (monitor_close): Likewise.
7989 * record-btrace.c (record_btrace_close): Likewise.
7990 * record-full.c (record_full_close): Likewise.
7991 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7992 it also from fprintf_unfiltered.
7993 * remote-mips.c (mips_close): Remove parameter quitting.
7994 (mips_detach): Remove parameter quitting from a caller.
7995 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7996 (gdbsim_close): Remove duplicate function comment. Remove parameter
7997 quitting and remove it also from printf_filtered.
7998 * remote.c (remote_close): Remove parameter quitting.
7999 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8000 * target.c (update_current_target): Remove parameter int from to_close
8002 (push_target, unpush_target, pop_target): Remove parameter quitting from
8004 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8005 Remove parameter quitting from a caller.
8006 (target_preopen): Remove parameter quitting from a caller.
8007 (target_close): Remove parameter quitting. Remove parameter quitting
8008 from a caller two times. Remove parameter quitting also from
8010 * target.h (struct target_ops): Remove parameter quitting and as int
8011 from fields to_xclose and to_close.
8012 (extern struct target_ops current_target):
8013 (target_close, pop_all_targets): Remove parameter quitting. Update the
8015 (pop_all_targets_above): Remove parameter quitting.
8016 * top.c (quit_target): Remove parameter quitting from a caller.
8017 * tracepoint.c (tfile_close): Remove parameter quitting.
8018 * windows-nat.c (windows_close): Remove parameter quitting.
8020 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
8022 * windows-nat.c (handle_output_debug_string): Replace call
8023 to string_to_core_addr with call to strtoull.
8025 2013-03-20 Yao Qi <yao@codesourcery.com>
8027 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8028 and write it to CTF metadata.
8030 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
8032 * windows-nat.c (handle_output_debug_string): Change type of n to
8033 SIZE_T to avoid crash on 64 bit systems.
8035 2013-03-17 Eli Zaretskii <eliz@gnu.org>
8037 * python/python-internal.h (HAVE_SNPRINTF)
8038 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8039 about redefinition of snprintf by pyerrors.h.
8041 2013-03-15 Steve Ellcey <sellcey@mips.com>
8043 * remote-sim.c (sim_command_completer): Make char arguments const.
8045 2013-03-15 Tom Tromey <tromey@redhat.com>
8048 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8050 2013-03-14 Tom Tromey <tromey@redhat.com>
8052 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8054 (get_file_crc): Move from symfile.c.
8055 (gdb_bfd_crc): New function.
8056 * gdb_bfd.h (gdb_bfd_crc): Declare.
8057 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8058 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8059 (separate_debug_file_exists): Use gdb_bfd_crc.
8061 2013-03-14 Tom Tromey <tromey@redhat.com>
8063 * symfile.c (get_debug_link_info): Remove.
8064 (find_separate_debug_file_by_debuglink): Use
8065 bfd_get_debug_link_info.
8067 2013-03-14 Tom Tromey <tromey@redhat.com>
8069 * symtab.c (error_in_psymtab_expansion): New function.
8070 (lookup_symbol_aux_quick)
8071 (basic_lookup_transparent_type_quick): Remove "last resort"
8072 code. Use error_in_psymtab_expansion.
8074 2013-03-14 Doug Evans <dje@google.com>
8075 Jan Kratochvil <jan.kratochvil@redhat.com>
8077 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8078 any successful compare_filenames_for_search or FILENAME_CMP.
8079 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8080 * symtab.c (iterate_over_some_symtabs): Likewise.
8082 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8084 * source.c (print_source_lines_base): Make a local copy of
8087 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
8088 Jan Kratochvil <jan.kratochvil@redhat.com>
8090 * source.c (print_source_lines_base): Suppress "file" for TUI.
8092 2013-03-14 Keith Seitz <keiths@redhat.com>
8093 Alan Matsuoka <alanm@redhat.com>
8097 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8099 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8102 2013-03-14 Yao Qi <yao@codesourcery.com>
8104 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8105 status to tfile if trace is stopped by command 'tstop'.
8107 2013-03-14 Yao Qi <yao@codesourcery.com>
8109 * tracepoint.c (tfile_write_status): Write trace notes and user
8110 name into tfile if they are not NULL.
8112 2013-03-14 Hui Zhu <hui@codesourcery.com>
8113 Yao Qi <yao@codesourcery.com>
8115 * Makefile.in (REMOTE_OBS): Add ctf.o.
8116 (SFILES): Add ctf.c.
8117 (HFILES_NO_SRCDIR): Add ctf.h.
8118 * ctf.c, ctf.h: New files.
8119 * tracepoint.c: Include 'ctf.h'.
8120 (collect_pseudocommand): Remove static.
8121 (trace_save_command): Parse option "-ctf".
8122 Produce different trace file writers per option.
8123 Adjust output message.
8124 (trace_save_tfile, trace_save_ctf): New.
8125 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8126 * mi/mi-main.c: Include 'ctf.h'.
8127 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8128 trace_save_tfile or trace_save_ctf.
8129 * NEWS: Mention these changes.
8131 2013-03-14 Yao Qi <yao@codesourcery.com>
8133 * tracepoint.c (trace_file_writer_xfree): New.
8134 (struct tfile_writer_data): New.
8135 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8136 (tfile_write_header, tfile_write_regblock_type): New.
8137 (tfile_write_status, tfile_write_uploaded_tsv): New.
8138 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8139 (tfile_write_raw_data, (tfile_end): New.
8140 (tfile_write_ops): New global variable.
8141 (TRACE_WRITE_R_BLOCK): New macro.
8142 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8143 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8144 (TRACE_WRITE_V_BLOCK): New macro.
8145 (trace_save): Add extra one parameter WRITER. Make it static.
8146 Use WRITER to writer trace.
8147 (tfile_trace_file_writer_new): New.
8148 (trace_save_command): Caller update.
8149 (trace_save_tfile): Write trace data in TFILE format.
8150 * tracepoint.h (struct trace_frame_write_ops): New.
8151 (struct trace_file_write_ops): New.
8152 (struct trace_file_writer): New.
8153 (trace_save): Remove its declaration.
8154 (trace_save_tfile): Declare it.
8155 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8156 instead of trace_save.
8158 2013-03-13 Pedro Alves <palves@redhat.com>
8160 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8162 2013-03-13 Pedro Alves <palves@redhat.com>
8164 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8166 * demangle.c (current_demangling_style_string): Make it const.
8167 (set_demangling_command): Assert the demangling style is known.
8168 Remove all handling of unknown styles. Set
8169 'current_demangling_style_string' to an element of the
8170 demangling_style_names array.
8171 (set_demangling_style): Delete.
8172 (_initialize_demangler): Set current_demangling_style_string to the
8173 element of the demangling_style_names array that corresponds to
8174 the default demangling style. Remove FIXME note. Don't call
8175 set_demangling_style.
8176 * gdb-demangle.h (set_demangling_style): Remove declaration.
8178 2013-03-13 Pedro Alves <palves@redhat.com>
8180 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8182 (ada_make_symbol_completion_list): Make "text0" parameter const.
8183 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8184 * breakpoint.c (condition_completer): Make "text" and "word"
8185 parameters const. Adjust.
8186 (check_tracepoint_command): Adjust to validate_actionline
8188 (catch_syscall_completer): Make "text" and "word" parameters
8190 * cli/cli-cmds.c (show_user): Make "comname" local const.
8191 (valid_command_p): Make "command" parameter const.
8192 (alias_command): Make "alias_prefix" and "command_prefix" locals
8194 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8195 (add_alias_cmd): Make "name" and "oldname" parameters const.
8196 Adjust. No longer make copy of OLDNAME.
8197 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8198 (add_setshow_cmd_full, add_setshow_enum_cmd)
8199 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8200 (add_setshow_filename_cmd, add_setshow_string_cmd)
8201 (add_setshow_string_noescape_cmd)
8202 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8203 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8204 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8205 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8206 Make "name" parameter const.
8207 (help_cmd): Rename "command" parameter to "arg". New const local
8209 (find_cmd): Make "command" parameter const.
8210 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8211 deprecated_cmd_warning prototype change.
8212 (undef_cmd_error): Make "cmdtype" parameter const.
8213 (lookup_cmd): Make "line" parameter const.
8214 (deprecated_cmd_warning): Change type of "text" parameter to
8215 pointer to const char, from pointer to pointer to char. Adjust.
8216 (lookup_cmd_composition): Make "text" parameter const.
8217 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8219 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8221 * cli/cli-script.c (validate_comname): Make "tem" local const.
8222 (define_command): New const local "tem_c". Use it in calls to
8224 (document_command): Make "tem" and "comfull" locals const.
8225 (show_user_1): Make "prefix" and "name" parameters const.
8226 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8228 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8229 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8230 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8231 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8232 (complete_on_enum, add_setshow_enum_cmd)
8233 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8234 (add_setshow_filename_cmd, add_setshow_string_cmd)
8235 (add_setshow_string_noescape_cmd)
8236 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8237 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8238 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8239 Change prototypes, constifying strings.
8240 * completer.c (noop_completer, filename_completer): Make "text"
8241 and "prefix" parameters const.
8242 (location_completer, expression_completer)
8243 (complete_line_internal): Make "text" and "prefix" parameters
8245 (command_completer, signal_completer): Make "text" and "prefix"
8247 * completer.h (noop_completer, filename_completer)
8248 (expression_completer, location_completer, command_completer)
8249 (signal_completer): Change prototypes.
8250 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8252 * cp-abi.c (cp_abi_completer): Likewise.
8253 * expression.h (parse_expression_for_completion): Change
8255 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8257 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8258 * infrun.c (handle_completer): Make "text" and "word" parameters
8260 * interps.c (interpreter_completer): Make "text" and "word"
8262 * language.h (struct language_defn)
8263 <la_make_symbol_completion_list>: Make "text" and "word"
8265 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8266 (parse_exp_in_context): Rename to ...
8267 (parse_exp_in_context_1): ... this.
8268 (parse_exp_in_context): Reimplement, with const hack from
8270 (parse_expression_for_completion): Make "string" parameter const.
8271 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8272 to pointer to const char. Adjust.
8273 (print_command_1): Make "exp" parameter const.
8274 (output_command): Rename to ...
8275 (output_command_const): ... this. Make "exp" parameter const.
8276 (output_command): Reimplement.
8277 (x_command): Adjust.
8278 (display_command): Rename "exp" parameter to "arg". New "exp"
8279 local, const version of "arg".
8280 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8281 "cmd_name" local const.
8282 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8284 (cmdpy_completer): Make "text" and "word" parameters const.
8285 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8286 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8288 * remote.c (_initialize_remote): Make "cmd_name" local const.
8289 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8290 parameters const. Adjust.
8291 (completion_list_add_fields): Make "sym_text", "text" and "word"
8293 (struct add_name_data) <sym_text, text, word>: Make fields const.
8294 (default_make_symbol_completion_list_break_on): Make "text" and
8295 "word" parameters const. Adjust locals.
8296 (default_make_symbol_completion_list)
8297 (make_symbol_completion_list, make_symbol_completion_type)
8298 (make_symbol_completion_list_fn): Make "text" and "word"
8300 (make_file_symbol_completion_list): Make "text", "word" and
8301 "srcfile" parameters const. Adjust locals.
8302 (add_filename_to_list): Make "text" and "word" parameters const.
8303 (struct add_partial_filename_data) <text, word>: Make fields
8305 (make_source_files_completion_list): Make "text" and "word"
8307 * symtab.h (default_make_symbol_completion_list_break_on)
8308 (default_make_symbol_completion_list, make_symbol_completion_list)
8309 (make_symbol_completion_type enum type_code)
8310 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8311 (make_source_files_completion_list): Change prototype.
8312 * top.c (execute_command): Adjust to pass pointer to pointer to
8313 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8315 (set_verbose): Make "cmdname" local const.
8316 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8318 (validate_actionline): Make "line" parameter a pointer to const
8320 (encode_actions_1): Make "action_exp" local const, and adjust.
8321 (encode_actions): Adjust.
8322 (replace_comma): Delete.
8323 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8324 const, and adjust. Don't frob the action string while splitting
8325 it at commas. Instead, make a copy of each split substring in
8327 (trace_dump_command): Adjust to validate_actionline prototype
8329 * tracepoint.h (decode_agent_options, decode_agent_options)
8330 (encode_actions, validate_actionline): Change prototypes.
8331 * valprint.h (output_command): Delete declaration.
8332 (output_command_const): Declare.
8333 * value.c (function_destroyer): Cast const away in xfree call.
8335 2013-03-13 Pedro Alves <palves@redhat.com>
8337 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8338 rather than casting 'const char * const *' to 'const char **'.
8339 * ada-lex.l (processInt): Make "trailer" local const. Remove
8340 'const char **' cast.
8341 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8342 locals, and use those as strtol output pointer, instead than doing
8343 invalid casts to from 'const char **' to 'char **'.
8344 (_initialize_demangle): Remove cast.
8345 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8346 locals, and use those as strtol output pointer, instead than doing
8347 invalid casts to from 'const char **' to 'char **'.
8348 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8350 * stap-probe.c (stap_parse_register_operand)
8351 (stap_parse_single_operand): Likewise.
8353 2013-03-13 Yao Qi <yao@codesourcery.com>
8355 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8356 the last matched 'V' blcok in trace frame.
8358 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8360 * NEWS: Create a new section for the next release branch.
8361 Rename the section of the current branch, now that it has
8364 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8366 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8367 * version.in: Bump version to 7.6.50.20130312-cvs.
8369 2013-03-12 Keith Seitz <keiths@redhat.com>
8371 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8372 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8373 Remove temporary copy of input string.
8374 (mi_execute_command_wrapper): Make "cmd" const.
8375 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8376 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8378 (mi_parse): Make "cmd" const.
8380 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8382 2013-03-12 Keith Seitz <keiths@redhat.com>
8384 * ada-lang.c (ada_read_renaming_var_value): Pass const
8385 pointer to expression string to parse_exp_1.
8386 (create_excep_cond_exprs): Likewise.
8387 * ax-gdb.c (agent_eval_command_one): Likewise.
8388 (maint_agent_printf_command): Likewise.
8389 Constify much of the string handling/parsing.
8390 * breakpoint.c (set_breakpoint_condition): Pass const
8391 pointer to expression string to parse_exp_1.
8392 (update_watchpoint): Likewise.
8393 (parse_cmd_to_aexpr): Constify string handling.
8394 Pass const pointer to parse_exp_1.
8395 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8396 (find_condition_and_thread): Likewise.
8398 (watch_command_1): Make "arg" const.
8399 Constify string handling.
8400 Copy the expression string instead of changing the input
8402 (update_breakpoint_location): Pass const pointer to
8404 * eval.c (parse_and_eval_address): Make "exp" const.
8405 (parse_to_comma_and_eval): Make "expp" const.
8406 (parse_and_eval): Make "exp" const.
8407 * expression.h (parse_expression): Make argument const.
8408 (parse_exp_1): Make first argument const.
8409 * findcmd.c (parse_find_args): Treat "args" as const.
8410 * linespec.c (parse_linespec): Pass const pointer to
8411 linespec_expression_to_pc.
8412 (linespec_expression_to_pc): Make "exp_ptr" const.
8413 * parse.c (parse_exp_1): Make "stringptr" const.
8414 Make a copy of the expression to pass to parse_exp_in_context until
8415 this whole interface can be constified.
8416 (parse_expression): Make "string" const.
8417 * printcmd.c (ui_printf): Treat "arg" as const.
8418 Handle const strings.
8419 * tracepoint.c (validate_actionline): Pass const pointer to
8420 all calls to parse_exp_1.
8421 (encode_actions_1): Likewise.
8422 * value.h (parse_to_comma_and_eval): Make argument const.
8423 (parse_and_eval_address): Likewise.
8424 (parse_and_eval): Likewise.
8425 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8426 (varobj_set_value): Likewise.
8427 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8428 constify string handling.
8429 Pass const pointers to parse_and_eval_address and
8430 parse_to_comman_and_eval.
8431 * cli/cli-utils.c (skip_to_space): Rename to ...
8432 (skip_to_space_const): ... this. Handle const strings.
8433 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8434 skip_to_space_const.
8435 (skip_to_space_const): Declare.
8436 * common/format.c (parse_format_string): Make "arg" const.
8437 Handle const strings.
8438 * common/format.h (parse_format_string): Make "arg" const.
8439 * gdbserver/ax.c (ax_printf): Make "format" const.
8440 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8441 of the expression string.
8443 2013-03-12 Hui Zhu <hui@codesourcery.com>
8445 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8447 2013-03-12 Yao Qi <yao@codesourcery.com>
8448 Hui Zhu <hui@codesourcery.com>
8450 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8451 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8454 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8456 * ada-lex.l (rules): Only recognize 'thread' as a
8457 delimiter when followed by numerals, as for c-exp.y.
8458 Use new rewind_to_char function to rewind the input for
8459 expression-delimiting tokens.
8460 (rewind_to_char): New function.
8462 2013-03-11 Pedro Alves <palves@redhat.com>
8463 Jan Kratochvil <jan.kratochvil@redhat.com>
8465 * configure: Regenerate.
8466 * configure.ac (check dynamic export flag): Link python test with
8469 2013-03-11 Doug Evans <dje@google.com>
8470 Keith Seitz <keiths@redhat.com>
8472 * linespec.c (find_linespec_symbols): Call find_function_symbols
8473 first, and then call lookup_prefix_sym/find_method.
8475 2013-03-11 Pedro Alves <palves@redhat.com>
8477 * charset.c (convert_between_encodings): Don't cast between
8478 different pointer to pointer types. Instead, make the 'inp' local
8479 be of the type iconv expects.
8480 (wchar_iterate): Don't cast between different pointer to pointer
8481 types. Instead, use new pointer local of the type iconv expects.
8482 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8483 Add new local of type char pointer, and use it to get a
8484 char/string view of the byte buffer, instead of casting between
8485 pointer to pointer types.
8487 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8489 * remote.c (remote_set_trace_buffer_size): Move != operator
8490 to the start of next line to fix an ARI warning.
8492 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8494 * NEWS: Add record changes.
8496 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8498 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8499 the instruction history disassembly.
8500 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8501 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8503 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8505 * Makefile.in (SFILES): Add record-btrace.c
8506 (COMMON_OBS): Add record-btrace.o
8507 * record-btrace.c: New.
8508 * objfiles.c: Include btrace.h.
8509 (free_objfile): call btrace_free_objfile.
8511 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8513 * target.c (target_call_history, target_call_history_from,
8514 target_call_history_range): New.
8515 * target.h (target_ops) <to_call_history, to_call_history_from,
8516 to_call_history_range>: New fields.
8517 (target_call_history, target_call_history_from,
8518 target_call_history_range): New declaration.
8519 * record.c (get_call_history_modifiers, cmd_record_call_history,
8520 record_call_history_size): New.
8521 (_initialize_record): Add the "record function-call-history" command.
8522 Add "set/show record function-call-history-size" commands.
8523 * record.h (record_print_flag): New.
8525 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8527 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8528 to_insn_history_range>: New fields.
8529 (target_insn_history): New.
8530 (target_insn_history_from): New.
8531 (target_insn_history_range): New.
8532 * target.c (target_insn_history): New.
8533 (target_insn_history_from): New.
8534 (target_insn_history_range): New.
8535 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8536 (record_insn_history_size): New.
8537 (get_insn_number): New.
8538 (get_context_size): New.
8540 (get_insn_history_modifiers): New.
8541 (cmd_record_insn_history): New.
8542 (_initialize_record): Add "set/show record instruction-history-size"
8543 command. Add "record instruction-history" command.
8545 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8547 * record.h (record_disconnect): New.
8548 (record_detach): New.
8549 (record_mourn_inferior): New.
8551 * record-full.c (record_disconnect, record_detach,
8552 record_mourn_inferior, record_kill): Move to...
8553 * record.c: ...here.
8556 (record_unpush): New.
8557 (cmd_record_stop): Call record_stop. Replace unpush_target
8558 call with record_unpush call.
8559 (record_disconnect, record_detach): Assert that the target
8560 is of record stratum. Call record_unpush, record_stop, and
8562 (record_mourn_inferior, record_kill): Assert that the target
8563 is of record stratum. Call record_unpush and DEBUG.
8565 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8567 * record-full.h, record-full.c (record_memory_query): Rename
8569 (record_full_memory_query): ...this. Update all users.
8570 (record_arch_list_add_reg): Rename to ...
8571 (record_full_arch_list_add_reg): ...this. Update all users.
8572 (record_arch_list_add_mem): Rename to ...
8573 (record_full_arch_list_add_mem): ...this. Update all users.
8574 (record_arch_list_add_end): Rename to ...
8575 (record_full_arch_list_add_end): ...this. Update all users.
8576 (record_gdb_operation_disable_set): Rename to ...
8577 (record_full_gdb_operation_disable_set): ...this.
8580 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8582 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8583 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8584 (RECORD_IS_REPLAY): Renamed to ...
8585 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8586 (RECORD_FILE_MAGIC): Renamed to ...
8587 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8588 (record_mem_entry): Renamed to ...
8589 (record_full_mem_entry): ... this. Updated all users.
8590 (record_reg_entry): Renamed to ...
8591 (record_full_reg_entry): ... this. Updated all users.
8592 (record_end_entry): Renamed to ...
8593 (record_full_end_entry): ... this. Updated all users.
8594 (record_type) <record_end, record_reg, record_mem>: Renamed
8596 (record_full_type) <record_full_end, record_full_reg,
8597 record_full_mem>: ... this. Updated all users.
8598 (record_entry): Renamed to ...
8599 (record_full_entry): ... this. Updated all users.
8600 (record_core_buf_entry): Renamed to ...
8601 (record_full_core_buf_entry): ... this. Updated all users.
8602 (record_core_regbuf): Renamed to ...
8603 (record_full_core_regbuf): ... this. Updated all users.
8604 (record_core_start): Renamed to ...
8605 (record_full_core_start): ... this. Updated all users.
8606 (record_core_end): Renamed to ...
8607 (record_full_core_end): ... this. Updated all users.
8608 (record_core_buf_list): Renamed to ...
8609 (record_full_core_buf_list): ... this. Updated all users.
8610 (record_first): Renamed to ...
8611 (record_full_first): ... this. Updated all users.
8612 (record_list): Renamed to ...
8613 (record_full_list): ... this. Updated all users.
8614 (record_arch_list_head): Renamed to ...
8615 (record_full_arch_list_head): ... this. Updated all users.
8616 (record_arch_list_tail): Renamed to ...
8617 (record_full_arch_list_tail): ... this. Updated all users.
8618 (record_stop_at_limit): Renamed to ...
8619 (record_full_stop_at_limit): ... this. Updated all users.
8620 (record_insn_max_num): Renamed to ...
8621 (record_full_insn_max_num): ... this. Updated all users.
8622 (record_insn_num): Renamed to ...
8623 (record_full_insn_num): ... this. Updated all users.
8624 (record_insn_count): Renamed to ...
8625 (record_full_insn_count): ... this. Updated all users.
8626 (record_ops): Renamed to ...
8627 (record_full_ops): ... this. Updated all users.
8628 (record_core_ops): Renamed to ...
8629 (record_full_core_ops): ... this. Updated all users.
8630 (set_record_cmdlist): Renamed to ...
8631 (set_record_full_cmdlist): ... this. Updated all users.
8632 (show_record_cmdlist): Renamed to ...
8633 (show_record_full_cmdlist): ... this. Updated all users.
8634 (record_cmdlist): Renamed to ...
8635 (record_full_cmdlist): ... this. Updated all users.
8636 (record_beneath_to_resume_ops): Renamed to ...
8637 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8638 (record_beneath_to_resume): Renamed to ...
8639 (record_full_beneath_to_resume): ... this. Updated all users.
8640 (record_beneath_to_wait_ops): Renamed to ...
8641 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8642 (record_beneath_to_wait): Renamed to ...
8643 (record_full_beneath_to_wait): ... this. Updated all users.
8644 (record_beneath_to_store_registers_ops): Renamed to ...
8645 (record_full_beneath_to_store_registers_ops): ... this.
8647 (record_beneath_to_store_registers): Renamed to ...
8648 (record_full_beneath_to_store_registers): ... this.
8650 (record_beneath_to_xfer_partial_ops): Renamed to ...
8651 (record_full_beneath_to_xfer_partial_ops): ... this.
8653 (record_beneath_to_xfer_partial): Renamed to ...
8654 (record_full_beneath_to_xfer_partial): ... this.
8656 (record_beneath_to_insert_breakpoint): Renamed to ...
8657 (record_full_beneath_to_insert_breakpoint): ... this.
8659 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8660 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8662 (record_beneath_to_stopped_data_address): Renamed to ...
8663 (record_full_beneath_to_stopped_data_address): ... this.
8665 (record_beneath_to_async): Renamed to ...
8666 (record_full_beneath_to_async): ... this. Updated all users.
8667 (record_goto_insn): Renamed to ...
8668 (record_full_goto_insn): ... this. Updated all users.
8669 (record_save): Renamed to ...
8670 (record_full_save): ... this. Updated all users.
8671 (record_reg_alloc): Renamed to ...
8672 (record_full_reg_alloc): ... this. Updated all users.
8673 (record_reg_release): Renamed to ...
8674 (record_full_reg_release): ... this. Updated all users.
8675 (record_mem_alloc): Renamed to ...
8676 (record_full_mem_alloc): ... this. Updated all users.
8677 (record_mem_release): Renamed to ...
8678 (record_full_mem_release): ... this. Updated all users.
8679 (record_end_alloc): Renamed to ...
8680 (record_full_end_alloc): ... this. Updated all users.
8681 (record_end_release): Renamed to ...
8682 (record_full_end_release): ... this. Updated all users.
8683 (record_entry_release): Renamed to ...
8684 (record_full_entry_release): ... this. Updated all users.
8685 (record_list_release): Renamed to ...
8686 (record_full_list_release): ... this. Updated all users.
8687 (record_list_release_following): Renamed to ...
8688 (record_full_list_release_following): ... this.
8690 (record_list_release_first): Renamed to ...
8691 (record_full_list_release_first): ... this. Updated all users.
8692 (record_arch_list_add): Renamed to ...
8693 (record_full_arch_list_add): ... this. Updated all users.
8694 (record_get_loc): Renamed to ...
8695 (record_full_get_loc): ... this. Updated all users.
8696 (record_check_insn_num): Renamed to ...
8697 (record_full_check_insn_num): ... this. Updated all users.
8698 (record_arch_list_cleanups): Renamed to ...
8699 (record_full_arch_list_cleanups): ... this. Updated all users.
8700 (record_message): Renamed to ...
8701 (record_full_message): ... this. Updated all users.
8702 (record_message_wrapper): Renamed to ...
8703 (record_full_message_wrapper): ... this. Updated all users.
8704 (record_message_wrapper_safe): Renamed to ...
8705 (record_full_message_wrapper_safe): ... this. Updated all users.
8706 (record_gdb_operation_disable): Renamed to ...
8707 (record_full_gdb_operation_disable): ... this. Updated all users.
8708 (record_hw_watchpoint): Renamed to ...
8709 (record_full_hw_watchpoint): ... this. Updated all users.
8710 (record_exec_insn): Renamed to ...
8711 (record_full_exec_insn): ... this. Updated all users.
8712 (record_restore): Renamed to ...
8713 (record_full_restore): ... this. Updated all users.
8714 (record_async_inferior_event_token): Renamed to ...
8715 (record_full_async_inferior_event_token): ... this.
8717 (record_async_inferior_event_handler): Renamed to ...
8718 (record_full_async_inferior_event_handler): ... this.
8720 (record_core_open_1): Renamed to ...
8721 (record_full_core_open_1): ... this. Updated all users.
8722 (record_open_1): Renamed to ...
8723 (record_full_open_1): ... this. Updated all users.
8724 (record_open): Renamed to ...
8725 (record_full_open): ... this. Updated all users.
8726 (record_close): Renamed to ...
8727 (record_full_close): ... this. Updated all users.
8728 (record_resume_step): Renamed to ...
8729 (record_full_resume_step): ... this. Updated all users.
8730 (record_resumed): Renamed to ...
8731 (record_full_resumed): ... this. Updated all users.
8732 (record_execution_dir): Renamed to ...
8733 (record_full_execution_dir): ... this. Updated all users.
8734 (record_resume): Renamed to ...
8735 (record_full_resume): ... this. Updated all users.
8736 (record_get_sig): Renamed to ...
8737 (record_full_get_sig): ... this. Updated all users.
8738 (record_sig_handler): Renamed to ...
8739 (record_full_sig_handler): ... this. Updated all users.
8740 (record_wait_cleanups): Renamed to ...
8741 (record_full_wait_cleanups): ... this. Updated all users.
8742 (record_wait_1): Renamed to ...
8743 (record_full_wait_1): ... this. Updated all users.
8744 (record_wait): Renamed to ...
8745 (record_full_wait): ... this. Updated all users.
8746 (record_stopped_by_watchpoint): Renamed to ...
8747 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8748 (record_disconnect): Renamed to ...
8749 (record_full_disconnect): ... this. Updated all users.
8750 (record_detach): Renamed to ...
8751 (record_full_detach): ... this. Updated all users.
8752 (record_mourn_inferior): Renamed to ...
8753 (record_full_mourn_inferior): ... this. Updated all users.
8754 (record_kill): Renamed to ...
8755 (record_full_kill): ... this. Updated all users.
8756 (record_stopped_data_address): Renamed to ...
8757 (record_full_stopped_data_address): ... this. Updated all users.
8758 (record_registers_change): Renamed to ...
8759 (record_full_registers_change): ... this. Updated all users.
8760 (record_store_registers): Renamed to ...
8761 (record_full_store_registers): ... this. Updated all users.
8762 (record_xfer_partial): Renamed to ...
8763 (record_full_xfer_partial): ... this. Updated all users.
8764 (record_breakpoint): Renamed to ...
8765 (record_full_breakpoint): ... this. Updated all users.
8766 (record_breakpoint_p): Renamed to ...
8767 (record_full_breakpoint_p): ... this. Updated all users.
8768 (record_breakpoints): Renamed to ...
8769 (record_full_breakpoints): ... this. Updated all users.
8770 (record_sync_record_breakpoints): Renamed to ...
8771 (record_full_sync_record_breakpoints): ... this.
8773 (record_init_record_breakpoints): Renamed to ...
8774 (record_full_init_record_breakpoints): ... this.
8776 (record_insert_breakpoint): Renamed to ...
8777 (record_full_insert_breakpoint): ... this. Updated all users.
8778 (record_remove_breakpoint): Renamed to ...
8779 (record_full_remove_breakpoint): ... this. Updated all users.
8780 (record_can_execute_reverse): Renamed to ...
8781 (record_full_can_execute_reverse): ... this. Updated all users.
8782 (record_get_bookmark): Renamed to ...
8783 (record_full_get_bookmark): ... this. Updated all users.
8784 (record_goto_bookmark): Renamed to ...
8785 (record_full_goto_bookmark): ... this. Updated all users.
8786 (record_async): Renamed to ...
8787 (record_full_async): ... this. Updated all users.
8788 (record_can_async_p): Renamed to ...
8789 (record_full_can_async_p): ... this. Updated all users.
8790 (record_is_async_p): Renamed to ...
8791 (record_full_is_async_p): ... this. Updated all users.
8792 (record_execution_direction): Renamed to ...
8793 (record_full_execution_direction): ... this. Updated all users.
8794 (record_info): Renamed to ...
8795 (record_full_info): ... this. Updated all users.
8796 (record_delete): Renamed to ...
8797 (record_full_delete): ... this. Updated all users.
8798 (record_is_replaying): Renamed to ...
8799 (record_full_is_replaying): ... this. Updated all users.
8800 (record_goto_entry): Renamed to ...
8801 (record_full_goto_entry): ... this. Updated all users.
8802 (record_goto_begin): Renamed to ...
8803 (record_full_goto_begin): ... this. Updated all users.
8804 (record_goto_end): Renamed to ...
8805 (record_full_goto_end): ... this. Updated all users.
8806 (record_goto): Renamed to ...
8807 (record_full_goto): ... this. Updated all users.
8808 (init_record_ops): Renamed to ...
8809 (init_record_full_ops): ... this. Updated all users.
8810 (record_core_resume): Renamed to ...
8811 (record_full_core_resume): ... this. Updated all users.
8812 (record_core_kill): Renamed to ...
8813 (record_full_core_kill): ... this. Updated all users.
8814 (record_core_fetch_registers): Renamed to ...
8815 (record_full_core_fetch_registers): ... this. Updated all users.
8816 (record_core_prepare_to_store): Renamed to ...
8817 (record_full_core_prepare_to_store): ... this. Updated all users.
8818 (record_core_store_registers): Renamed to ...
8819 (record_full_core_store_registers): ... this. Updated all users.
8820 (record_core_xfer_partial): Renamed to ...
8821 (record_full_core_xfer_partial): ... this. Updated all users.
8822 (record_core_insert_breakpoint): Renamed to ...
8823 (record_full_core_insert_breakpoint): ... this. Updated all users.
8824 (record_core_remove_breakpoint): Renamed to ...
8825 (record_full_core_remove_breakpoint): ... this. Updated all users.
8826 (record_core_has_execution): Renamed to ...
8827 (record_full_core_has_execution): ... this. Updated all users.
8828 (init_record_core_ops): Renamed to ...
8829 (init_record_full_core_ops): ... this. Updated all users.
8830 (cmd_record_restore): Renamed to ...
8831 (cmd_record_full_restore): ... this. Updated all users.
8832 (record_save_cleanups): Renamed to ...
8833 (record_full_save_cleanups): ... this. Updated all users.
8834 (cmd_record_start): Renamed to ...
8835 (cmd_record_full_start): ... this. Updated all users.
8836 (set_record_insn_max_num): Renamed to ...
8837 (set_record_full_insn_max_num): ... this. Updated all users.
8838 (set_record_command): Renamed to ...
8839 (set_record_full_command): ... this. Updated all users.
8840 (show_record_command): Renamed to ...
8841 (show_record_full_command): ... this. Updated all users.
8842 (_initialize_record): Renamed to ...
8843 (_initialize_record_full): ... this. Updated all users.
8845 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8847 * record.h: Split into this and ...
8848 * record-full.h: ... this.
8849 * record.c: Split into this and ...
8850 * record-full.c: ... this.
8851 * target.h (target_ops): Add new fields to_info_record,
8852 to_save_record, to_delete_record, to_record_is_replaying,
8853 to_goto_record_begin, to_goto_record_end, to_goto_record.
8854 (target_info_record): New.
8855 (target_save_record): New.
8856 (target_supports_delete_record): New.
8857 (target_delete_record): New.
8858 (target_record_is_replaying): New.
8859 (target_goto_record_begin): New.
8860 (target_goto_record_end): New.
8861 (target_goto_record): New.
8862 * target.c (target_info_record): New.
8863 (target_save_record): New.
8864 (target_supports_delete_record): New.
8865 (target_delete_record): New.
8866 (target_record_is_replaying): New.
8867 (target_goto_record_begin): New.
8868 (target_goto_record_end): New.
8869 (target_goto_record): New.
8870 * record.h: Declare struct cmd_list_element.
8871 (record_cmdlist): New declaration.
8872 (set_record_cmdlist): New declaration.
8873 (show_record_cmdlist): New declaration.
8874 (info_record_cmdlist): New declaration.
8875 (cmd_record_goto): New declaration.
8876 * record.c: Remove unnecessary includes.
8878 (cmd_record_goto): Remove declaration.
8879 (record_cmdlist): Now extern. Initialize.
8880 (set_record_cmdlist): Now extern. Initialize.
8881 (show_record_cmdlist): Now extern. Initialize.
8882 (info_record_cmdlist): Now extern. Initialize.
8883 (find_record_target): New.
8884 (require_record_target): New.
8885 (cmd_record_start): Update.
8886 (cmd_record_delete): Remove target-specific code.
8887 Call target_delete_record.
8888 (cmd_record_stop): Unpush any record target.
8889 (set_record_insn_max_num): Move to record-full.c
8890 (set_record_command): Add comment.
8891 (show_record_command): Add comment.
8892 (info_record_command): Update comment.
8893 Remove target-specific code.
8894 Call the record target's to_info_record.
8895 (cmd_record_start): New.
8896 (cmd_record_goto): Now extern.
8897 Remove target-specific code.
8898 Call target_goto_begin, target_goto_end, or target_goto.
8899 (_initialize_record): Move record target ops initialization to
8901 Change "record" command help text.
8902 Move "record restore", "record set", and "record show" commands to
8904 * Makefile.in (SFILES): Add record-full.c.
8905 (HFILES_NO_SRCDIR): Add record-full.h.
8906 (COMMON_OBS): Add record-full.o.
8907 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8908 * arm-tdep.c: Include record-full.h.
8909 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8910 * i386-tdep.c: Include record-full.h.
8911 * infrun.c: Include record-full.h.
8912 * linux-record.c: Include record-full.h.
8913 * moxie-tdep.c: Include record-full.h.
8914 * record-full.c: Include record-full.h.
8915 Change module comment.
8916 (set_record_full_cmdlist): New.
8917 (show_record_full_cmdlist): New.
8918 (record_full_cmdlist): New.
8919 (record_goto_insn): New declaration.
8920 (record_save): New declaration.
8921 (record_check_insn_num): Change query string.
8923 (record_delete): New.
8924 (record_is_replaying): New.
8925 (record_goto_entry): New.
8926 (record_goto_begin): New.
8927 (record_goto_end): New.
8929 (init_record_ops): Update.
8930 (init_record_core_ops): Update.
8931 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8932 (cmd_record_start): New.
8933 (set_record_insn_max_num): Moved from record.c
8934 (set_record_full_command): New.
8935 (show_record_full_command): New.
8936 (_initialize_record_full): New.
8938 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8940 * target.h (add_deprecated_target_alias): New.
8941 * target.c (add_deprecated_target_alias): New.
8943 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8945 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8947 (linux_supports_btrace): Add kernel and
8949 (kernel_supports_btrace): New function.
8950 (cpu_supports_btrace): New function.
8951 (intel_supports_btrace): New function.
8953 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8955 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8956 * remote.c: Include btrace.h.
8957 (struct btrace_target_info): New struct.
8958 (remote_supports_btrace): New function.
8959 (send_Qbtrace): New function.
8960 (remote_enable_btrace): New function.
8961 (remote_disable_btrace): New function.
8962 (remote_teardown_btrace): New function.
8963 (remote_read_btrace): New function.
8964 (init_remote_ops): Add btrace ops.
8965 (enum <unnamed>): Add btrace packets.
8966 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8967 (_initialize_remote): Add packet configuration for branch tracing.
8969 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8971 * features/btrace.dtd: New file.
8972 * Makefile.in (XMLFILES): Add btrace.dtd.
8973 * btrace.h (parse_xml_btrace): New declaration.
8974 * btrace.c: Include xml-support.h.
8975 (parse_xml_btrace): New function.
8976 (parse_xml_btrace_block): New function.
8977 (block_attributes): New struct.
8978 (btrace_attributes): New struct.
8979 (btrace_children): New struct.
8980 (btrace_elements): New struct.
8982 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8984 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8985 (amd64_linux_enable_btrace): New.
8986 (amd64_linux_disable_btrace): New.
8987 (amd64_linux_teardown_btrace): New.
8988 (_initialize_amd64_linux_nat): Initialize btrace ops.
8989 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8990 (i386_linux_enable_btrace): New.
8991 (i386_linux_disable_btrace): New.
8992 (i386_linux_teardown_btrace): New.
8993 (_initialize_i386_linux_nat): Initialize btrace ops.
8994 * config/i386/linux.mh: Add linux-btrace.o.
8995 * config/i386/linux64.mh: Add linux-btrace.o.
8997 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8999 * common/linux_btrace.h: New file.
9000 * common/linux_btrace.c: New file.
9001 * Makefile.in (SFILES): Add btrace.c.
9002 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9003 (COMMON_OBS): Add btrace.o.
9004 (linux-btrace.o): New rule.
9006 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9008 * target.h: Include btrace.h.
9009 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9010 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9011 * target.c (target_supports_btrace): New function.
9012 (target_enable_btrace): New function.
9013 (target_disable_btrace): New function.
9014 (target_teardown_btrace): New function.
9015 (target_read_btrace): New function.
9016 * btrace.h: New file.
9017 * btrace.c: New file.
9018 * Makefile.in: Add btrace.c.
9019 * gdbthread.h: Include btrace.h.
9020 (struct thread_info): Add btrace field.
9021 * thread.c: Include btrace.h.
9022 (clear_thread_inferior_resources): Call target_teardown_btrace.
9023 * common/btrace-common.h: New file.
9025 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9027 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9028 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9029 kill_status to outer block.
9031 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9033 Fix entry-values if the callee called a noreturn function.
9034 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9035 get_frame_address_in_block. Add new comment.
9037 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9039 Fix entry-values in C++ across CUs.
9040 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9041 lookup_minimal_symbol. Add a comment.
9043 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9046 2013-03-08 Yao Qi <yao@codesourcery.com>
9048 * tracepoint.c (_initialize_tracepoint): Indent the code.
9050 2013-03-08 Pedro Alves <palves@redhat.com>
9052 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9053 (parse_find_args, find_command): Change type of pattern buffer
9054 locals to 'gdb_byte *'.
9056 2013-03-08 Stan Shebs <stan@codesourcery.com>
9057 Hafiz Abid Qadeer <abidh@codesourcery.com>
9059 * NEWS: Mention set and show trace-buffer-size commands.
9061 * target.h (struct target_ops): New method
9062 to_set_trace_buffer_size.
9063 (target_set_trace_buffer_size): New macro.
9064 * target.c (update_current_target): Set up new method.
9065 * tracepoint.c (trace_buffer_size): New global.
9066 (start_tracing): Send it to the target.
9067 (set_trace_buffer_size): New function.
9068 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9069 * remote.c (remote_set_trace_buffer_size): New function.
9070 (_initialize_remote): Use it.
9071 (QTBuffer:size) New remote command.
9072 (PACKET_QTBuffer_size): New enum.
9073 (remote_protocol_features): Add an entry for
9074 PACKET_QTBuffer_size.
9076 2013-03-08 Tom Tromey <tromey@redhat.com>
9078 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9081 2013-03-07 Pedro Alves <palves@redhat.com>
9083 * target.c (target_read_stralloc, target_fileio_read_alloc):
9084 *Cast pointer to 'gdb_byte *' in target call.
9086 2013-03-07 Pedro Alves <palves@redhat.com>
9088 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9091 2013-03-07 Keith Seitz <keiths@redhat.com>
9093 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9094 (trace_pass_command): Likewise.
9095 * cli/cli-cmds.c: Include cli/cli-utils.h.
9096 (source_command): Use skip-spaces.
9097 (disassemble_command): Likewise.
9098 * findcmd.c: Include cli/cli-utils.h.
9099 (parse_find_args): Use skip_spaces.
9100 * go32-nat.c: Include cli/cli-utils.h.
9101 (go32_sldt): Use skip_spaces.
9102 (go32_sgdt): Likewise.
9103 (go32_sidt): Likewise.
9104 (go32_pde): Likewise.
9105 (go32_pte): Likewise.
9106 (go32_pte_for_address): Likewise.
9107 * infcmd.c: Include cli/cli-utils.h.
9108 (registers_info): Use skip_spaces.
9109 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9110 (linux_info_proc): Likewise.
9111 * linux-thread-db.c: Include cli/cli-utils.h.
9112 (info_auto_load_libthread_db): Use skip_spaces_const.
9113 * m32r-rom.c: Include cli/cli-utils.h.
9114 (m32r_upload_command): Use skip_spaces.
9115 * maint.c: Include cli/cli-utils.h.
9116 (maintenance_translate_address): Use skip_spaces.
9117 * mi/mi-parse.c: Include cli/cli-utils.h.
9118 (mi_parse_argv): Use skip_spaces.
9119 (mi_parse): Likewise.
9120 * minsyms.c: Include cli/cli-utils.h.
9121 (msymbol_hash_iw): Use skip_spaces_const.
9122 * objc-lang.c: Include cli/cli-utils.h.
9123 (parse_selector): Use skip_spaces.
9124 (parse_method): Likewise.
9125 * python/python.c: Include cli/cli-utils.h.
9126 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9127 (python_command)[HAVE_PYTHON]: Likewise.
9128 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9129 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9130 (m32r_load): Use skip_spaces.
9131 * serial.c: Include cli/cli-utils.h.
9132 (serial_open): Use skip_spaces_const.
9133 * stack.c: Include cli/cli-utils.h.
9134 (parse_frame_specification_1): Use skip_spaces_const.
9135 * symfile.c: Include cli/cli-utils.h.
9136 (set_ext_lang_command): Use skip_spaces.
9137 * symtab.c: Include cli/cli-utils.h.
9138 (rbreak_command): Use skip_spaces.
9139 * thread.c (thread_name_command): Use skip_spaces.
9140 * tracepoint.c (validate_actionline): Use skip_spaces.
9141 (encode_actions_1): Likewise.
9142 (trace_find_range_command): Likewise.
9143 (trace_find_outside_command): Likewise.
9144 (trace_dump_actions): Likewise.
9146 2013-03-07 Pedro Alves <palves@redhat.com>
9148 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9149 * expprint.c (print_subexp_standard): Likewise.
9150 * utils.c (host_char_to_target): Likewise.
9151 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9152 * varobj.c (value_get_print_value): Change type of local to char*.
9153 Cast it gdb_byte * in call to language printer.
9155 2013-03-07 Pedro Alves <palves@redhat.com>
9157 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9159 (make_wchar_iterator): Remove cast to char*.
9160 (wchar_iterate): Change type of local.
9162 2013-03-07 Pedro Alves <palves@redhat.com>
9164 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9165 for 'regcache->register_status'.
9167 2013-03-07 Pedro Alves <palves@redhat.com>
9169 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9172 2013-03-07 Pedro Alves <palves@redhat.com>
9174 * stap-probe.c (handle_stap_probe): Add cast to char*.
9176 2013-03-07 Pedro Alves <palves@redhat.com>
9178 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9179 RECORD_MSGRCV>: Pass a signed variable to
9180 regcache_raw_read_signed, instead of an unsigned one.
9182 2013-03-07 Pedro Alves <palves@redhat.com>
9184 * remote-notif.c (notif_debug): Change type to int.
9185 * remote-notif.h (notif_debug): Likewise.
9187 2013-03-07 Pedro Alves <palves@redhat.com>
9189 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9191 2013-03-07 Pedro Alves <palves@redhat.com>
9193 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9194 * remote.h (hex2bin, bin2hex): ... here.
9195 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9197 2013-03-07 Eli Zaretskii <eliz@gnu.org>
9199 * utils.c (initialize_utils): Improve doc strings of "set/show
9200 width", "set/show height", and "set/show pagination".
9202 2013-03-06 Keith Seitz <keiths@redhat.com>
9204 * ax-gdb.c (gen_printf): Make FORMAT const.
9205 * ax-gdb.h (gen_printf): Likewise.
9206 * ax-general.c (ax_string): Make STR const.
9207 * ax.h (ax_string): Likewise.
9209 2013-03-06 Doug Evans <dje@google.com>
9211 * elfread.c (elf_symfile_read): Move debugging printf to more
9214 2013-03-06 Pedro Alves <palves@redhat.com>
9216 * python/py-utils.c (target_string_to_unicode): Delete function.
9217 * python/python-internal.h (target_string_to_unicode): Delete
9220 2013-03-06 Pierre Muller <muller@sourceware.org>
9222 * linespec.c (get_current_search_block): ARI fix, use (void)
9223 for empty parameter list.
9225 2013-03-05 Doug Evans <dje@google.com>
9227 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9228 of old ada_lookup_symbol_list. In !full_search case, don't
9230 (ada_lookup_symbol_list): Delete arg full_search, all callers
9231 updated. Call ada_lookup_symbol_list_worker.
9232 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9233 * ada-lang.h (ada_lookup_symbol_list): Update.
9234 * language.h (language_defn): Update comment for
9235 la_iterate_over_symbols.
9236 * linespec.c (iterate_over_file_blocks): New function.
9237 (iterate_over_all_matching_symtabs): Call it.
9238 (lookup_prefix_sym): Ditto.
9239 (get_current_search_block): New function.
9240 (get_search_block): Delete.
9241 (find_label_symbols): Call get_current_search_block.
9242 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9243 * symtab.c (iterate_over_symbols): Don't search superblocks.
9245 2013-03-05 Yao Qi <yao@codesourcery.com>
9247 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9248 parameter VAR's type from "unsigned int" to "int".
9249 * command.h (var_zuinteger_unlimited): Update its comments.
9250 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9252 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9254 * NEWS: Mention new target x86_64-*-cygwin*.
9256 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9258 * configure.host: Add x86_64-*-cygwin* as host.
9259 * configure.tgt: Add x86_64-*-cygwin* as target.
9260 * config/i386/cygwin64.mh: New file.
9262 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9264 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9266 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9268 * linespec.c (struct linespec_canonical_name): New.
9269 (struct linespec_state): Change canonical_names type to it.
9270 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9271 xrealloc element size. Initialize the different CANONICAL fields.
9272 (canonical_to_fullform): New.
9273 (filter_results): Use it. Add variables canonical, fullform and
9275 (struct decode_line_2_item, decode_line_2_compare_items): New.
9276 (decode_line_2): Remove variables iter and item_names, add variables
9277 items and items_count. Modify the code for these new variables.
9279 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9281 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9284 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9286 * tracepoint.c (build_traceframe_info): Add code for byte order.
9288 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9290 * v850-tdep.c: (v850e2_register_name): Revise system register
9291 names to match current V850E2M architecture specifications.
9292 Update register number enum comments too.
9294 2013-03-01 Jiong Wang <jiwang@tilera.com>
9295 Pedro Alves <palves@redhat.com>
9297 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9299 (tilegx_skip_prologue): Limit prologue analysis to section end.
9301 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9303 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9306 2013-03-01 Pedro Alves <palves@redhat.com>
9308 Use gdb_byte for bytes from the program being debugged.
9310 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9311 Change type of local 'buf' to gdb_byte.
9312 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9313 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9314 * cris-tdep.c (cris_sigcontext_addr)
9315 (cris_sigtramp_frame_unwind_cache): Likewise.
9316 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9317 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9319 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9320 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9321 (hppa32_hpux_search_dummy_call_sequence)
9322 (hppa_hpux_supply_save_state): Likewise.
9323 * hppa-linux-tdep.c (insns_match_pattern)
9324 (hppa_linux_find_global_pointer): Likewise.
9325 * hppa-tdep.c (hppa_in_function_epilogue_p)
9326 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9327 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9328 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9329 (i386fbsd_collect_uthread): Likewise.
9330 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9331 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9332 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9333 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9334 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9335 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9336 (ia64_libunwind_frame_prev_register)
9337 (ia64_libunwind_sigtramp_frame_this_id)
9338 (ia64_find_global_pointer_from_dynamic_section)
9339 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9340 (ia64_unwind_pc): Likewise.
9341 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9342 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9343 (m68hc11_extract_return_value): Likewise.
9344 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9345 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9346 (mep_get_insn, mep_push_dummy_call): Likewise.
9347 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9348 (mips_linux_in_dynsym_stub): Likewise.
9349 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9350 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9351 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9353 * remote-mips.c (mips_set_register): Likewise.
9354 * remote-sim.c (gdbsim_fetch_register): Likewise.
9355 * score-tdep.c (score7_fetch_inst): Change type of parameter
9356 'memblock' and local 'buf' to gdb_byte.
9357 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9358 Change type of local 'buf' to gdb_byte. Adjust.
9359 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9361 (score7_analyze_prologue): Change type of 'memblock' and
9362 'memblock_ptr' locals to gdb_byte*.
9363 * sh64-tdep.c (sh64_extract_return_value)
9364 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9365 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9366 * solib-pa64.c (pa64_solib_create_inferior_hook)
9367 (pa64_open_symbol_file_object): Remove local 'buf'.
9368 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9369 (som_open_symbol_file_object): Likewise.
9370 * solib-spu.c (spu_current_sos): Likewise.
9371 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9372 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9373 (spu_store_registers): Likewise.
9374 * target.c (debug_print_register): Likewise.
9375 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9376 * xstormy16-tdep.c (xstormy16_store_return_value)
9377 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9378 (xstormy16_find_jmp_table_entry): Likewise.
9380 2013-03-01 Jiong Wang <jiwang@tilera.com>
9382 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9383 (tilegx_gdbarch_init): Install it.
9385 2013-02-28 Tom Tromey <tromey@redhat.com>
9387 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9390 2013-02-28 Doug Evans <dje@google.com>
9392 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9393 * python/python.c (gdbpy_find_pc_line): Ditto.
9395 2013-02-28 Tom Tromey <tromey@redhat.com>
9397 * contrib/excheck.py: New file.
9398 * contrib/exsummary.py: New file.
9399 * contrib/gcc-with-excheck: New file.
9401 2013-02-28 Tom Tromey <tromey@redhat.com>
9403 * python/python.c (gdbpy_print_stack): Call begin_line and
9404 fprintf_filtered inside TRY_CATCH.
9406 2013-02-28 Tom Tromey <tromey@redhat.com>
9408 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9411 2013-02-28 Tom Tromey <tromey@redhat.com>
9413 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9414 frame_object_to_frame_info inside TRY_CATCH.
9416 2013-02-28 Tom Tromey <tromey@redhat.com>
9418 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9421 2013-02-28 Tom Tromey <tromey@redhat.com>
9423 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9425 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9427 * windows-nat.c: Throughout, fix format strings and casts of
9428 printf-like functions to avoid type related warnings on all
9430 (handle_output_debug_string): Fetch context information address
9431 from debug string using string_to_core_addr.
9433 2013-02-27 Jiong Wang <jiwang@tilera.com>
9435 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9436 * regformats/reg-tilegx32.dat: New.
9438 2013-02-27 Jiong Wang <jiwang@tilera.com>
9440 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9442 2013-02-27 Jiong Wang <jiwang@tilera.com>
9444 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9446 2013-02-27 Yao Qi <yao@codesourcery.com>
9447 Pedro Alves <palves@redhat.com>
9449 * tracepoint.c (tfile_trace_find): For tfind
9450 pc/tp/range/outside, look for the next trace frame instead of
9451 always starting from frame 0.
9453 2013-02-26 Anthony Green <green@moxielogic.com>
9455 * configure.tgt: Add support for moxie-*-rtems* target.
9457 2013-02-25 Pedro Alves <palves@redhat.com>
9459 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9462 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9464 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9465 if $fp is used as the virtual frame pointer.
9467 2013-02-23 Alan Modra <amodra@gmail.com>
9469 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9471 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9472 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9473 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9474 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9476 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9479 * elfread.c (build_id_bfd_get): Make the return type const.
9480 (build_id_verify): Make the check parameter const.
9481 (build_id_to_debug_filename): Make the build_id parameter and variable
9483 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9485 2013-02-21 Alan Modra <amodra@gmail.com>
9487 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9489 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9491 Add a new method 'disassemble' to gdb.Architecture class.
9492 * python/py-arch.c (archpy_disassmble): Implementation of the
9493 new method gdb.Architecture.disassemble.
9494 (arch_object_methods): Add entry for the new method.
9496 2013-02-20 Jiong Wang <jiwang@tilera.com>
9498 * MAINTAINERS (Write After Approval): Add myself to the list.
9500 2013-02-19 Pedro Alves <palves@redhat.com>
9502 Garbage collect 'struct monitor_ops'::load_routine.
9504 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9505 * monitor.c (monitor_load): No longer call
9506 current_monitor->load_routine.
9507 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9508 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9509 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9511 2013-02-19 Pedro Alves <palves@redhat.com>
9515 Harmonize with generic_load.
9517 * monitor.c: Include "readline/readline.h".
9518 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9519 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9520 long/strtol for the 'load_offset' local. Error out if no argument
9521 is given or if too many arguments are given. Tilde expand the
9522 passed in file name.
9524 2013-02-19 Kai Tietz <ktietz@redhat.com>
9527 * symfile.c (load_section_data): Change type of load_offset
9529 (generic_load): User strtoulst instead of strtoul for conversion
9532 2013-02-19 Jiong Wang <jiwang@tilera.com>
9534 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9535 for return address, "lr" register, saved on stack.
9536 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9537 after we invoke tilegx_analyze_prologue.
9539 2013-02-19 Jiong Wang <jiwang@tilera.com>
9541 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9543 2013-02-19 Jiong Wang <jiwang@tilera.com>
9545 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9547 2013-02-19 Jiong Wang <jiwang@tilera.com>
9549 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9550 (tilegx_write_pc): New function.
9551 (tilegx_cannot_reference_register): Return zero if REGNO
9552 is TILEGX_FAULTNUM_REGNUM.
9553 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9554 (tilegx_register_name): Add handling of "faultnum" register.
9555 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9556 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9557 handling of TILEGX_FAULTNUM_REGNUM.
9558 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9560 2013-02-19 Jiong Wang <jiwang@tilera.com>
9562 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9563 should be aligned to 64bit.
9565 2013-02-19 Kai Tietz <ktietz@redhat.com>
9567 * windows-nat.c (windows_xfer_memory): Fix debug-output
9570 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9572 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9573 Don't check DSP register number if HAVE_DSP is not set.
9575 2013-02-19 Alan Modra <amodra@gmail.com>
9577 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9578 throughout file instead.
9579 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9580 Don't xmalloc return value.
9581 (build_id_verify): Similarly. Don't xfree.
9582 (build_id_to_debug_filename): Update.
9583 (find_separate_debug_file_by_buildid): Update, don't xfree.
9585 2013-02-18 Tom Tromey <tromey@redhat.com>
9588 * dwarf2read.c (read_subrange_type): Use result of
9591 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9593 * frame.c: Remove one extra white space after #include
9596 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9598 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9600 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9602 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9603 and dir commands into an if block.
9605 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9607 * python/py-breakpoint (struct pybp_code): Use int instead of
9610 2013-02-15 Pedro Alves <pedro@codesourcery.com>
9611 Hafiz Abid Qadeer <abidh@codesourcery.com>
9613 * NEWS: Mention new field "trace-file".
9614 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9615 (tfile_open): Record the trace file's filename in the trace
9617 (tfile_files_info): Mention the name of the trace file.
9618 Check the "filename" field explicitely.
9619 (trace_status_command): Explicitely check "filename" field.
9620 (trace_find_command): Ditto.
9621 (trace_find_pc_command): Ditto.
9622 (trace_find_tracepoint_command): Ditto.
9623 (trace_find_line_command): Ditto.
9624 (trace_find_range_command): Ditto.
9625 (trace_find_outside_command): Ditto.
9626 * tracepoint.h (struct trace_status) <from_file>: Rename it
9627 to "filename" and make it hold the trace file's filename
9628 instead of a boolean.
9629 * remote.c (remote_get_trace_status): Initialize "filename"
9630 field with NULL instead of 0.
9632 2013-02-15 Yao Qi <yao@codesourcery.com>
9634 * remote.c: Fix a typo.
9636 2013-02-14 Pierre Muller <muller@sourceware.org>
9638 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9640 2013-02-14 Pedro Alves <palves@redhat.com>
9642 * utils.c (savestring): Don't #undef it. Move function to
9643 common/common-utils.c.
9644 * common/common-utils.c: Include gdb_string.h.
9645 (savestring): Move here from utils.c.
9646 * common/common-utils.h (savestring): Declare.
9648 2013-02-14 Pedro Alves <palves@redhat.com>
9650 * utils.c (savestring): Rename parameter 'size' to 'len'.
9652 2013-02-14 Pedro Alves <palves@redhat.com>
9653 Yufeng Zhang <yufeng.zhang@arm.com>
9655 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9656 (aarch64_inferior_data, struct aarch64_inferior_data):
9658 (struct aarch64_process_info): New.
9659 (aarch64_process_list): New global.
9660 (aarch64_find_process_pid, aarch64_add_process)
9661 (aarch64_process_info_get): New functions.
9662 (aarch64_inferior_data_get): Delete.
9663 (aarch64_process_info_get): New function.
9664 (aarch64_forget_process): New function.
9665 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9666 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9667 aarch64_get_debug_reg_state.
9668 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9669 instead of linux_nat_iterate_watchpoint_lwps.
9670 (aarch64_linux_new_fork): New function.
9671 (aarch64_linux_child_post_startup_inferior): Use
9672 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9673 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9674 (aarch64_linux_remove_hw_breakpoint)
9675 (aarch64_handle_aligned_watchpoint)
9676 (aarch64_handle_unaligned_watchpoint)
9677 (aarch64_linux_insert_watchpoint)
9678 (aarch64_linux_remove_watchpoint)
9679 (aarch64_linux_stopped_data_address): Adjust to pass the current
9680 process id to aarch64_debug_reg_state.
9681 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9682 linux_nat_new_fork hook, and aarch64_forget_process as
9683 linux_nat_forget_process hook; remove the call to
9684 register_inferior_data_with_cleanup.
9686 2013-02-14 Pedro Alves <palves@redhat.com>
9688 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9689 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9692 2013-02-14 Pedro Alves <pedro@codesourcery.com>
9693 Hafiz Abid Qadeer <abidh@codesourcery.com>
9695 * tracepoint.h (validate_trace_state_variable_name): Declare.
9696 * tracepoint.c (validate_trace_state_variable_name): New.
9697 (trace_variable_command): Parse the trace state variable's name
9698 without using parse_expression. Do several validations.
9699 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9700 trace state variable's name with parse_expression. Validate it.
9702 2013-02-14 Yao Qi <yao@codesourcery.com>
9704 * infcmd.c (breakpoint_proceeded): Remove it.
9706 2013-02-14 Yao Qi <yao@codesourcery.com>
9708 * tracepoint.c (end_actions_pseudocommand): Make it static.
9709 (while_stepping_pseudocommand): Likewise.
9710 * tracepoint.h (end_actions_pseudocommand): Remove the
9712 (while_stepping_pseudocommand): Likewise.
9714 2013-02-14 Yao Qi <yao@codesourcery.com>
9716 * cli/cli-decode.c (help_cmd): Remove the declaration of
9718 (help_all): Likewise.
9720 2013-02-13 Pedro Alves <palves@redhat.com>
9722 * amd64-linux-nat.c (update_debug_registers_callback):
9724 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9726 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9727 i386_debug_reg_state.
9728 (amd64_linux_new_fork): New function.
9729 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9730 linux_nat_new_fork hook, and i386_forget_process as
9731 linux_nat_forget_process hook.
9732 * i386-linux-nat.c (update_debug_registers_callback):
9734 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9736 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9737 i386_debug_reg_state.
9738 (i386_linux_new_fork): New function.
9739 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9740 linux_nat_new_fork hook, and i386_forget_process as
9741 linux_nat_forget_process hook.
9742 * i386-nat.c (i386_init_dregs): Delete.
9743 (i386_inferior_data, struct i386_inferior_data):
9745 (struct i386_process_info): New.
9746 (i386_process_list): New global.
9747 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9749 (i386_inferior_data_get): Delete.
9750 (i386_process_info_get): New function.
9751 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9752 (i386_forget_process): New function.
9753 (i386_cleanup_dregs): Rewrite.
9754 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9755 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9756 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9757 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9758 to i386_debug_reg_state.
9759 (i386_use_watchpoints): Don't register inferior data.
9760 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9762 (i386_forget_process): Declare.
9763 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9764 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9766 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9767 (add_initial_lwp): New, factored out from ...
9768 (add_lwp): ... this. Don't check the number of lwps before
9769 calling linux_nat_new_thread.
9770 (linux_nat_iterate_watchpoint_lwps): Delete.
9771 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9772 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9774 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9776 (linux_nat_kill, linux_nat_mourn_inferior): Call
9777 linux_nat_forget_process.
9778 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9779 (linux_nat_forget_process): New functions.
9780 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9782 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9783 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9785 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9786 (linux_nat_forget_process): New declarations.
9788 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9789 (amd64fbsd_mourn_inferior): New function.
9790 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9791 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9793 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9795 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9798 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9800 * aarch64-linux-nat.c (debug_reg_change_callback)
9801 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9804 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9806 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9809 2013-02-13 Pedro Alves <palves@redhat.com>
9810 Hafiz Abid Qadeer <abidh@codesourcery.com>
9812 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9814 2013-02-12 Tom Tromey <tromey@redhat.com>
9817 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9819 (classify_inner_name): Remove 'first_name' argument, add
9820 'context'. Remove unused variable.
9821 (yylex): Explicitly maintain the context type. Exit loop earlier
9822 if NAME result is seen.
9824 2013-02-12 Pedro Alves <palves@redhat.com>
9826 * amd64-darwin-tdep.c: Add (C) after Copyright.
9827 * cli/cli-cmds.h: Ditto.
9828 * cli/cli-decode.c: Ditto.
9829 * cli/cli-decode.h: Ditto.
9830 * cli/cli-dump.c: Ditto.
9831 * cli/cli-dump.h: Ditto.
9832 * cli/cli-interp.c: Ditto.
9833 * cli/cli-logging.c: Ditto.
9834 * cli/cli-script.c: Ditto.
9835 * cli/cli-script.h: Ditto.
9836 * cli/cli-setshow.c: Ditto.
9837 * cli/cli-setshow.h: Ditto.
9838 * cli/cli-utils.c: Ditto.
9839 * cli/cli-utils.h: Ditto.
9840 * config/alpha/nm-osf3.h: Ditto.
9841 * config/djgpp/djconfig.sh: Ditto.
9842 * config/i386/nm-fbsd.h: Ditto.
9843 * config/i386/nm-i386gnu.h: Ditto.
9844 * config/nm-linux.h: Ditto.
9845 * config/nm-nto.h: Ditto.
9846 * config/rs6000/nm-rs6000.h: Ditto.
9847 * config/sparc/nm-sol2.h: Ditto.
9848 * darwin-nat-info.c: Ditto.
9851 * gdb-demangle.h: Ditto.
9852 * i386-darwin-nat.c: Ditto.
9853 * i386-darwin-tdep.c: Ditto.
9854 * linux-fork.h: Ditto.
9855 * m32c-tdep.c: Ditto.
9856 * microblaze-linux-tdep.c: Ditto.
9857 * microblaze-rom.c: Ditto.
9858 * microblaze-tdep.c: Ditto.
9859 * microblaze-tdep.h: Ditto.
9860 * mips-linux-tdep.h: Ditto.
9861 * ppc-ravenscar-thread.c: Ditto.
9862 * ppc-ravenscar-thread.h: Ditto.
9863 * prologue-value.c: Ditto.
9864 * prologue-value.h: Ditto.
9865 * ravenscar-thread.c: Ditto.
9866 * ravenscar-thread.h: Ditto.
9867 * sparc-ravenscar-thread.c: Ditto.
9868 * sparc-ravenscar-thread.h: Ditto.
9869 * tilegx-linux-tdep.c: Ditto.
9870 * unwind_stop_reasons.def: Ditto.
9871 * windows-nat.h: Ditto.
9872 * xtensa-linux-tdep.c: Ditto.
9873 * xtensa-xtregs.c: Ditto.
9874 * regformats/regdat.sh: Ditto.
9875 * regformats/regdef.h: Ditto.
9877 2013-02-12 Pedro Alves <palves@redhat.com>
9879 * break-catch-sig.c: Update copyright years.
9881 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9883 Add support for a destructor for ui_out data and use it to
9884 provide a ui_out destructor.
9885 * ui-out.h: Declare the new ui_out destructor.
9886 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9887 * ui-out.c (default_data_destroy): Add a default data destructor
9889 (default_ui_out_impl): Set the new data_destroy field to
9890 default_data_destroy
9891 (uo_data_destroy): Local function which invokes the data
9892 destructor if present.
9893 (clear_table): Local function which clears the table data of a
9895 (ui_out_destroy): Public function which frees a ui_out object.
9896 (ui_out_table_end): Use the new clear_table function.
9897 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9899 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9902 2013-02-11 Doug Evans <dje@google.com>
9904 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9905 (printf_decfloat): New function. Broken out from ui_printf.
9906 Remove unnecessary code to shift the entire format string down.
9907 (printf_pointer): New function.
9908 (ui_printf): Code to print C strings, wide C strings, decfloats,
9909 and pointers moved to separate functions.
9911 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9913 * valops.c (value_assign): Handling bitfield offset in
9914 `lval_internalvar_component' case.
9916 2013-02-08 Doug Evans <dje@google.com>
9918 * common/format.c (parse_format_string): Fix whitespace.
9920 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9922 * stack.c (return_command): Work around uninitialized variable
9925 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9927 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9928 number of the registers from 36 to 34.
9930 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9932 * NEWS: Mention new AArch64 native and target support.
9934 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9936 * MAINTAINERS (Write After Approval): Add myself.
9938 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9939 Marcus Shawcroft <marcus.shawcroft@arm.com>
9940 Nigel Stephens <nigel.stephens@arm.com>
9941 Yufeng Zhang <yufeng.zhang@arm.com>
9943 * aarch64-linux-nat.c: New file.
9944 * config/aarch64/linux.mh: New file.
9945 * configure.host: Add AArch64.
9946 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9948 2013-02-07 Doug Evans <dje@google.com>
9950 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9951 disassemble command.
9953 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9955 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9956 set_gdbarch_fetch_tls_load_module_address.
9958 2013-02-06 David S. Miller <davem@davemloft.net>
9960 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9961 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9962 * value.c (struct_return_convention): New function.
9963 (using_struct_return): Implement in terms of struct_return_convention.
9964 * value.h (struct_return_convention): Declare.
9965 * stack.c (return_command): Allow successful overriding of the return
9966 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9968 2013-02-06 Tom Tromey <tromey@redhat.com>
9970 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9971 outside of TRY_CATCH.
9973 2013-02-06 Yao Qi <yao@codesourcery.com>
9975 * mi/mi-interp.c: Include "tracepoint.h".
9976 (mi_tsv_modified): Declare.
9977 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9978 (mi_interpreter_init): Call observer_attach_tsv_modified.
9979 (mi_tsv_modified): New.
9980 (mi_tsv_created, mi_tsv_deleted): Update.
9981 * tracepoint.c (trace_variable_command): Call
9982 observer_notify_tsv_modified if the initial value of tsv is
9984 (delete_trace_state_variable): Call
9985 observer_notify_tsv_deleted earlier.
9986 (trace_variable_command): Caller update.
9987 (create_tsv_from_upload): Likewise.
9988 * observer.sh: Declare "struct trace_state_variable".
9990 * NEWS: Mention the new MI notification "=tsv-modified".
9992 2013-02-05 Doug Evans <dje@google.com>
9994 * completer.c (location_completer): Fix typo in comment.
9996 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9998 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10001 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10003 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10004 Refactor if statement to avoid trailing || operator.
10006 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
10008 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10010 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
10012 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10013 * configure.host: Add powerpc*-*-freebsd* target.
10014 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10015 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10016 * config/powerpc/fbsd.mh: New file.
10018 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10019 Denys Vlasenko <dvlasenk@redhat.com>
10020 Pedro Alves <palves@redhat.com>
10022 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10023 (struct elf_internal_linux_prpsinfo): Forward declare.
10024 * gdbarch.h, gdbarch.c: Regenerate.
10025 * linux-tdep.c: Include `cli/cli-utils.h'.
10026 (linux_fill_prpsinfo): New function.
10027 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10028 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10029 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10030 depending on gdbarch pointer bitness.
10031 * ppc-linux-tdep.c: Include elf-bfd.h.
10032 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10035 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10036 Marcus Shawcroft <marcus.shawcroft@arm.com>
10037 Nigel Stephens <nigel.stephens@arm.com>
10038 Yufeng Zhang <yufeng.zhang@arm.com>
10040 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10042 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10043 Marcus Shawcroft <marcus.shawcroft@arm.com>
10044 Nigel Stephens <nigel.stephens@arm.com>
10045 Yufeng Zhang <yufeng.zhang@arm.com>
10047 * aarch64-newlib-tdep.c: New file.
10048 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10050 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10051 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10052 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10053 * osabi.c (gdb_osabi_names): Add "Newlib".
10055 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10056 Marcus Shawcroft <marcus.shawcroft@arm.com>
10057 Nigel Stephens <nigel.stephens@arm.com>
10058 Yufeng Zhang <yufeng.zhang@arm.com>
10060 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10061 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10062 * aarch64-linux-tdep.c: New file.
10063 * aarch64-linux-tdep.h: New file.
10064 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10065 * configure.tgt: Add aarch64-none-linux-gnu.
10067 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10068 Marcus Shawcroft <marcus.shawcroft@arm.com>
10069 Nigel Stephens <nigel.stephens@arm.com>
10070 Yufeng Zhang <yufeng.zhang@arm.com>
10072 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10073 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10074 (ALLDEPFILES): Add aarch64-tdep.c.
10075 * aarch64-tdep.c: New file.
10076 * aarch64-tdep.h: New file.
10077 * configure.tgt: Add AArch64.
10078 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10079 (aarch64-expedite): New definition.
10080 * features/aarch64-core.xml: New file.
10081 * features/aarch64-fpu.xml: New file.
10082 * features/aarch64-without-fpu.c: New file (generated).
10083 * features/aarch64-without-fpu.xml: New file.
10084 * features/aarch64.c: New file (generated).
10085 * features/aarch64.xml: New file.
10086 * regformats/aarch64-without-fpu.dat: New file (generated).
10087 * regformats/aarch64.dat: New file (generated).
10089 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10091 * contrib/expect-read1.c: New file.
10092 * contrib/expect-read1.sh: New file.
10094 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10096 * dwarf2read.c (file_file_name): New function with code from
10098 (file_full_name): Move most of the code to file_file_name.
10099 (macro_start_file): Rename variable full_name to file_name and use
10100 file_file_name for it. Add comp_dir parameter to new_macro_table.
10101 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10102 macro_source_file->filename access by macro_source_fullname call.
10103 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10105 * macrotab.c (struct macro_table): New field comp_dir.
10106 (macro_include): New variables link_fullname and source_fullname.
10107 Replace any macro_source_file->filename access by macro_source_fullname
10109 (macro_lookup_inclusion): Remove the partial filenames checking code.
10110 (check_for_redefinition): New variables source_fullname and
10111 found_key_fullname. Replace any macro_source_file->filename access by
10112 macro_source_fullname call.
10113 (macro_undef): New variables source_fullname and key_fullname. Replace
10114 any macro_source_file->filename access by macro_source_fullname call.
10115 (macro_lookup_definition): New variables retval and source_fullname.
10116 Replace any macro_source_file->filename access by macro_source_fullname
10118 (foreach_macro): New variable key_fullname. Replace any
10119 macro_source_file->filename access by macro_source_fullname call.
10120 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10121 macro_source_file->filename access by macro_source_fullname call.
10122 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10123 (macro_source_fullname): New function.
10124 * macrotab.h (struct macro_source_file): Extent the filename field
10126 (new_macro_table): New parameter comp_dir, add a comment for it.
10127 (macro_source_fullname): new declaration.
10129 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10131 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10132 this_real_name to outer block. Use it also for
10133 compare_filenames_for_search.
10134 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10135 with dw2_get_real_path for file_matcher, considering also
10136 BASENAMES_MAY_DIFFER.
10137 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10139 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10141 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10142 to the file_matcher parameter. Pass 0 to it.
10143 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10144 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10145 NULL psymtab_to_fullname result.
10146 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10147 an expected filename instead.
10148 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10149 file_matcher parameter. Call also psymtab_to_fullname, after newly
10150 considering BASENAMES_MAY_DIFFER.
10151 * source.c (rewrite_source_path): Remove static.
10152 * source.h (rewrite_source_path): New declaration.
10153 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10154 the expand_symtabs_matching field. Comment it.
10155 * symtab.c (file_matches): New function comment. Add parameter
10156 basenames, implement it.
10157 (search_symbols_file_matches): Add basenames parameter. Update the
10158 file_matches caller.
10159 (search_symbols): Match FILES also against symtab_to_fullname.
10160 Optimize it for BASENAMES_MAY_DIFFER.
10162 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10164 * source.c (print_source_lines_base): Print for TUI also "fullname".
10165 * tui/tui-data.c (init_content_element): Change tui_locator_element
10166 field to full_name.
10167 * tui/tui-data.h (struct tui_locator_element): Likewise.
10168 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10169 tui_update_locator_filename calls to tui_update_locator_fullname.
10170 Replace symtab->filename refererence by symtab_to_fullname call.
10171 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10172 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10173 field to full_name. Replace symtab->filename refererence by
10174 symtab_to_fullname call.
10175 (tui_show_symtab_source): Rename parameter to fullname. Change
10176 tui_locator_element field to full_name.
10177 * tui/tui-stack.c: Include source.h.
10178 (tui_set_locator_filename): Rename the declaration to ...
10179 (tui_set_locator_fullname): ... here. Rename its parameter to
10180 fullname, updates its comment.
10181 (tui_set_locator_info): Rename its parameter to fullname.
10182 (tui_set_locator_filename): Rename the definition to ...
10183 (tui_set_locator_fullname): ... here. Rename its parameter to
10184 fullname, updates its comment. Change tui_locator_element field to
10186 (tui_set_locator_info): Rename its parameter to fullname.
10187 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10188 (tui_update_locator_filename): Rename to ...
10189 (tui_update_locator_fullname): ... here. Rename callee to
10190 tui_set_locator_fullname.
10191 (tui_show_frame_info): Replace symtab->filename refererence by
10192 symtab_to_fullname call.
10193 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10194 (tui_update_locator_fullname): ... here.
10195 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10196 tui_update_locator_fullname. Replace symtab->filename refererence by
10197 symtab_to_fullname call.
10198 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10199 Rename the callee to tui_update_locator_fullname.
10200 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10202 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10204 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10205 by symtab_to_filename_for_display calls.
10206 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10207 (clear_command): New variable sal_fullname, initialize it. Replace
10208 compare_filenames_for_search by filename_cmp with sal_fullname.
10209 (say_where, update_static_tracepoint): Replace symtab->filename
10210 refererences by symtab_to_filename_for_display calls.
10211 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10213 * dwarf2read.c: Include source.h.
10214 (fixup_go_packaging): Replace symtab->filename refererences by
10215 symtab_to_filename_for_display calls.
10216 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10217 Replace symtab->filename refererences by symtab_to_filename_for_display
10219 (create_sals_line_offset, convert_linespec_to_sals): New variable
10220 fullname, initialize it, replace symtab->filename reference by the
10222 * linux-fork.c: Include source.h.
10223 (info_checkpoints_command): Replace symtab->filename refererences by
10224 symtab_to_filename_for_display calls.
10225 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10226 by symtab_to_filename_for_display calls.
10227 * mdebugread.c: Include source.h.
10228 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10229 symtab_to_filename_for_display calls.
10230 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10231 (mi_cmd_file_list_exec_source_files): Likewise.
10232 * printcmd.c: Include source.h.
10233 (build_address_symbolic): Replace symtab->filename refererences by
10234 symtab_to_filename_for_display calls.
10235 * psymtab.c (partial_map_symtabs_matching_filename)
10236 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10237 with psymtab_to_fullname.
10238 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10239 by symtab_to_filename_for_display calls.
10240 (stpy_get_filename): New variable filename, initialize it, use instead
10241 of symtab->filename refererences.
10242 (salpy_str): Make variable filename const char *. Replace
10243 symtab->filename refererences by symtab_to_filename_for_display calls.
10244 * skip.c: Include source.h and filenames.h.
10245 (skip_file_command): Remove const from the symtab variable. Replace
10246 symtab->filename refererences by symtab_to_fullname call.
10247 (function_name_is_marked_for_skip): New variables searched_for_fullname
10248 and fullname. Use them to search also with symtab's fullname.
10249 * source.c (find_source_lines): Replace symtab->filename refererences
10250 by symtab_to_filename_for_display calls.
10251 (print_source_lines_base): New variable filename, use it instead of
10252 symtab->filename. Replace symtab->filename refererences by
10253 symtab_to_filename_for_display calls.
10254 (line_info, forward_search_command): Replace symtab->filename
10255 refererences by symtab_to_filename_for_display calls.
10256 (reverse_search_command): Replace symtab->filename refererences by
10257 symtab_to_filename_for_display calls. New variable filename for it.
10258 * stack.c (frame_info): Likewise.
10259 * symmisc.c: Include source.h.
10260 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10261 (maintenance_info_symtabs): Replace symtab->filename refererences by
10262 symtab_to_filename_for_display calls.
10263 * symtab.c (iterate_over_some_symtabs): Call
10264 compare_filenames_for_search also with symtab_to_fullname.
10265 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10266 symtab->filename refererences by symtab_to_filename_for_display calls.
10267 (find_line_symtab): Replace symtab->filename refererences by
10268 symtab_to_filename_for_display calls.
10269 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10270 (print_symbol_info): Make the last parameter const char *. New
10271 variable s_filename. Use it in the function.
10272 (symtab_symbol_info): Make the last_filename variable const char *.
10273 Replace symtab->filename refererences by symtab_to_filename_for_display
10275 (rbreak_command): New variable fullname. Use it. Replace
10276 symtab->filename refererence by symtab_to_filename_for_display call.
10277 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10278 (print_one_static_tracepoint_marker): Replace symtab->filename
10279 refererences by symtab_to_filename_for_display calls.
10280 * tui/tui-source.c (tui_set_source_content): New variables filename and
10281 s_filename. Replace symtab->filename refererences by this variable.
10282 Replace other symtab->filename refererences by
10283 symtab_to_filename_for_display calls.
10285 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10286 Jan Kratochvil <jan.kratochvil@redhat.com>
10288 Add a new variable that controls a way in which filenames are
10290 * NEWS (set filename-display): New entry.
10291 * source.c (filename_display_basename, filename_display_relative)
10292 (filename_display_absolute, filename_display_kind_names)
10293 (filename_display_string, show_filename_display_string)
10294 (symtab_to_filename_for_display): New.
10295 (_initialize_source): Added initialization of 'filename-display'
10297 * source.h (symtab_to_filename_for_display): Added declaration.
10298 * stack.c (print_frame): Added new variable and calling of a new
10299 function and condition with this variable. Changed third argument of
10300 calling of a function.
10302 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10304 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10305 Rename field reference filename to fullname.
10306 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10307 fullname. New comment for it.
10308 * tui/tui-source.c (tui_set_source_content): Rename field reference
10309 filename to fullname. Initialize field by symtab_to_fullname now.
10310 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10311 reference filename to fullname. Use symtab_to_fullname during
10314 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10317 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10318 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10319 filename to fullname. Rename variable this_name to this_fullname.
10320 Lowercase FILENAME_CMP call.
10321 (dw2_find_symbol_file): New comment for the returned string.
10322 (dwarf2_gdb_index_functions): Rename the function to
10323 dw2_expand_symtabs_with_fullname.
10324 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10325 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10327 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10328 * symfile.h (struct quick_symbol_functions): Rename field
10329 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10330 parameter filename to fullname. Document returned string meaning for
10332 * symtab.c (find_line_symtab): Rename the called function to
10333 expand_symtabs_with_fullname.
10335 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10338 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10339 call of filename_cmp with compare_filenames_for_search.
10340 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10341 is_abs, unify the call of FILENAME_CMP with
10342 compare_filenames_for_search. New gdb_asserts for real_path and name.
10343 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10344 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10345 * symfile.h (struct quick_symbol_functions): Extend the comment for
10346 map_symtabs_matching_filename.
10347 * symtab.c (compare_filenames_for_search): Remove the function comment
10348 relative path requirement. Handle absolute filenames, with a comment.
10349 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10350 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10351 real_path and name. Unify the call of compare_filenames_for_search
10353 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10355 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10358 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10359 source_file references by symtab field references. Remove variables
10361 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10362 (clear_command, say_where): Replace bp_location field source_file
10363 references by symtab field references.
10364 (bp_location_dtor): Remove the source_file reference.
10365 (update_static_tracepoint): Replace bp_location field source_file
10366 references by symtab field references.
10367 (breakpoint_free_objfile): New function.
10368 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10369 Replace the field source_file by field symtab, extend its comment.
10370 (breakpoint_free_objfile): New declaration.
10371 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10372 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10373 field source_file references by symtab field references.
10375 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10377 Replace xfullpath calls by gdb_realpath calls.
10378 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10380 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10381 Remove it from the iterate_over_some_symtabs call.
10382 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10383 Remove it from the dw2_map_expand_apply calls, remove a block handling
10385 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10386 Remove it from the iterate_over_some_symtabs call.
10387 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10388 Remove it from the partial_map_expand_apply calls, remove a block
10389 handling it. Drop gdb_realpath call and cleanups from the real_path
10391 * source.c (openp): Drop the comment part about xfullpath. Replace
10392 xfullpath calls by gdb_realpath calls.
10393 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10394 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10395 from method map_symtabs_matching_filename and its comment.
10396 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10398 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10399 remove it also from the function comment, remove a block handling it.
10400 Drop gdb_realpath call and cleanups from the real_path handling.
10401 (iterate_over_symtabs): Drop variable full_path and its use.
10402 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10403 * utils.c (xfullpath): Remove.
10404 * utils.h (xfullpath): Remove.
10406 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10408 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10409 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10410 (ALLDEPFILES): Add ppc64-tdep.c.
10411 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10412 ppc64-tdep.o to gdb_target_obs.
10413 * ppc64-tdep.h: New file.
10414 * ppc64-tdep.c: New file.
10415 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10416 ppc-linux-tdep.c to here.
10417 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10418 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10419 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10420 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10421 from ppc-linux-tdep.c to here.
10422 (ppc64_convert_from_func_ptr_addr): Rename from
10423 ppc64_linux_convert_from_func_ptr_addr to
10424 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10427 (read_insn): Move from ppc-linux-tdep.c to here.
10428 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10429 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10430 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10431 Removed above functions.
10432 (ppc_linux_init_abi): Adjust.
10434 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10436 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10438 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10440 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10442 2013-02-01 Pedro Alves <palves@redhat.com>
10444 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10445 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10447 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10449 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10450 files with no separate debug info.
10451 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10452 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10453 only for files with no separate debug info.
10455 2013-01-31 Tom Tromey <tromey@redhat.com>
10457 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10459 (struct jit_program_space_data): Rename from jit_inferior_data.
10461 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10462 Change return type. Attach data to program space.
10463 (jit_program_space_data_cleanup): Rename from
10464 jit_inferior_data_cleanup; change argument type.
10465 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10467 (jit_register_code): Update.
10468 (jit_update_inferior_cache): Remove.
10469 (jit_breakpoint_deleted): Get jit data from the location's program
10471 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10472 'ps_data', change type.
10473 (jit_inferior_init, jit_breakpoint_re_set_internal)
10474 (jit_event_handler): Update.
10475 (free_objfile_data): Get data from objfile's program space.
10476 (_initialize_jit): Update.
10478 2013-01-31 Tom Tromey <tromey@redhat.com>
10481 * jit.c (struct jit_inferior_data) <cached_code_address,
10482 jit_breakpoint>: New fields.
10483 (jit_breakpoint_re_set_internal): Fix logging. Only create
10484 breakpoint if cached address has changed.
10485 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10487 (_initialize_jit): Register breakpoint deleted observer.
10489 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10491 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10492 (save_infcall_suspend_state): Ifdef out unused inf.
10493 (restore_infcall_suspend_state): Ifdef out unused inf.
10494 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10495 (jit_frame_sniffer): Remove unused inf_data.
10497 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10499 * c-exp.y (classify_inner_name): Remove unused type.
10500 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10501 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10503 (c_get_string): Remove unused kind.
10504 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10506 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10508 * charset.c (intermediate_encoding): Remove unused i.
10509 * completer.c (signal_completer): Remove unused i.
10510 * continuations.c (discard_my_continuations_1): Remove unused
10512 * corelow.c (core_close): Remove unuseD name.
10513 (get_core_siginfo): Remove unused pid.
10514 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10516 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10517 (loclist_describe_location): Remove unused first.
10518 * event-top.c (command_line_handler): Remove unused got_eof.
10519 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10520 (resize_section_table): Remove unused old_value.
10521 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10522 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10523 * i386-tdep.c (i386_process_record): Remove unused rex.
10524 * infcmd.c (get_return_value): Remove unused uiout.
10525 * jv-lang.c (type_from_class): Remove unused is_array.
10526 * jv-valprint.c (java_val_print): Remove unused i.
10527 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10528 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10529 * m2-typeprint.c (m2_print_type): Remove unused code.
10530 * macroexp.c (get_character_constant): Remove unused body_start.
10531 (macro_stringify): Remove unused result.
10532 * objc-lang.c (find_methods): Remove unused gdbarch.
10533 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10534 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10535 * stack.c (print_frame_args): Remove unused summary.
10536 * thread.c (thread_apply_command): Remove unused p.
10537 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10538 * valops.c (search_struct_method): Remove unused skip.
10539 * valprint.c (generic_val_print): Remove unused byte_order.
10540 * varobj.c (varobj_update): Remove unused changed.
10541 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10542 (alias_command): Remove unused c.
10543 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10544 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10546 (mi_cmd_data_write_memory): Remove unused word_format.
10547 (mi_cmd_data_write_memory_bytes): Remove unused r.
10548 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10550 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10551 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10554 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10556 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10557 * symtab.c (iterate_over_symtabs): Remove unused s.
10558 (find_pc_sect_symtab): Remove unused pspAce.
10559 (find_pc_sect_line): Remove unused alt_symtab.
10560 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10561 (completion_list_add_name): Remove unused newsize.
10563 2013-01-31 Tom Tromey <tromey@redhat.com>
10566 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10569 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10571 * target.c (target_read_string): Remove unused origlen.
10573 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10575 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10576 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10577 * ax-general.c (ax_print): Remove unused is_float.
10578 * blockframe.c (block_innermost_frame): Remove unused start, end.
10579 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10581 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10583 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10584 (svr4_read_so_list): Remove unused lmo.
10585 * solib-target.c (solib_target_relocate_section_addresses): Remove
10588 2013-01-30 Tom Tromey <tromey@redhat.com>
10590 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10592 2013-01-30 Tom Tromey <tromey@redhat.com>
10594 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10595 * utils.c (gnu_debuglink_crc32): Remove.
10596 * utils.h (gnu_debuglink_crc32): Don't declare.
10598 2013-01-30 Tom Tromey <tromey@redhat.com>
10600 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10601 (read_structure_type, read_enumeration_type): Remove cast.
10603 2013-01-30 Tom Tromey <tromey@redhat.com>
10605 * dwarf2read.c (read_namespace_type): Remove cast.
10606 (read_typedef): Likewise.
10608 2013-01-29 Tom Tromey <tromey@redhat.com>
10610 * dwarf2read.c (free_dwo_file): Remove assert.
10612 2013-01-29 Tom Tromey <tromey@redhat.com>
10614 * value.c (deprecated_set_value_modifiable): Remove.
10615 * value.h (deprecated_set_value_modifiable): Remove.
10617 2013-01-28 Doug Evans <dje@google.com>
10619 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10620 to addresses from dwo files.
10622 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10624 * valops.c (find_overload_match): Remove unused argument 'lax'.
10625 * value.h: Remove unused argument 'lax' from the declaration of
10626 find_overload_match.
10627 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10628 to find_overload_match.
10629 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10630 argument to find_overload_match.
10632 2013-01-25 Tom Tromey <tromey@redhat.com>
10634 * dwarf2read.c (processing_has_namespace_info): Remove.
10635 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10636 (process_die, read_func_scope, dwarf2_start_symtab)
10637 (new_symbol_full): Update.
10639 2013-01-25 Tom Tromey <tromey@redhat.com>
10641 * cp-namespace.c (cp_set_block_scope): Remove.
10642 * cp-support.h (cp_set_block_scope): Remove.
10643 * dbxread.c: Include block.h.
10644 (cp_set_block_scope): New function.
10645 (process_one_symbol): Update.
10646 * dwarf2read.c (read_func_scope): Use block_set_scope.
10648 2013-01-25 Pedro Alves <palves@redhat.com>
10650 * remote.c (add_current_inferior_and_thread): Tweak comment.
10652 2013-01-25 Tom Tromey <tromey@redhat.com>
10654 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10655 (cp_add_using_directive): Add 'copy_names' argument.
10656 * cp-support.h (cp_add_using_directive): Update.
10657 (struct using_direct) <import_src, import_dest, alias,
10658 declaration>: Now const.
10659 * dwarf2read.c (read_import_statement): Use obconcat.
10660 Don't copy names passed to cp_add_using_directive.
10662 2013-01-25 Tom Tromey <tromey@redhat.com>
10664 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10666 2013-01-25 Pedro Alves <palves@redhat.com>
10668 * remote.c (stop_reply_extract_thread): New.
10669 (add_current_inferior_and_thread): New parameter 'wait_status'.
10671 (remote_start_remote): Pass wait status to
10672 add_current_inferior_and_thread.
10673 (extended_remote_run): Update comment.
10674 (extended_remote_create_inferior_1): Pass wait status to
10675 add_current_inferior_and_thread.
10677 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
10678 Ulrich Weigand <uweigand@de.ibm.com>
10680 * valarith.c (value_vector_widen): New function for replicating a
10681 scalar into a vector.
10682 (value_binop): Use value_vector_widen to widen scalar to vector
10683 rather than casting, this better matches gcc C behaviour.
10684 * valops.c (value_casst): Update logic for casting between vector
10685 types, and for casting from scalar to vector, try to match gcc C
10687 * value.h (value_vector_widen): Declare.
10688 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10689 function, handle special case for casting scalar to vector.
10690 (opencl_relop): Use opencl_value_cast.
10691 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10692 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10693 in order to use opencl_value_cast.
10695 2013-01-25 Yao Qi <yao@codesourcery.com>
10697 * event-loop.c: Include "queue.h".
10698 (gdb_event_p): New typedef.
10699 (DECLARE_QUEUE_P): Use.
10700 (DEFINE_QUEUE_P): Use.
10701 (async_queue_event): Remove.
10702 (gdb_event_xfree): New.
10703 (initialize_event_loop): New.
10704 (process_event): Use QUEUE macros.
10705 (event_queue): Remove.
10706 (gdb_wait_for_event): Caller update.
10707 (check_async_event_handlers): Likewise.
10708 (poll_timers): Likewise.
10709 * event-loop.h (initialize_event_loop): Declare.
10710 * event-loop.c (gdb_event_xfree): New.
10711 * top.c (gdb_init): Call initialize_event_loop.
10713 2013-01-25 Yao Qi <yao@codesourcery.com>
10715 * event-loop.c (async_queue_event): Remove one parameter
10716 'position'. Remove code handling 'position' == TAIL.
10717 (gdb_wait_for_event): Caller update.
10718 (check_async_event_handlers): Caller update.
10719 (poll_timers): Caller update.
10720 * event-loop.h (enum queue_position): Remove.
10722 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10724 * MAINTAINERS: Update my email.
10726 2013-01-25 Yao Qi <yao@codesourcery.com>
10728 * main.c (print_gdb_help): Remove "--epoch" from the help
10731 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
10733 * symtab.c (skip_prologue_using_sal): Consider a file
10734 change the same as an increased line number
10736 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10738 * MAINTAINERS (Write After Approval): Add myself to the list.
10740 2013-01-24 Tom Tromey <tromey@redhat.com>
10742 * ada-lang.h (ada_decode_symbol): Make return type const.
10743 * ada-lang.c (ada_decode_symbol): Likewise.
10745 2013-01-23 Doug Evans <dje@google.com>
10747 * linespec.c (find_linespec_symbols): Make static.
10749 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10751 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10752 type on float conversion for complex type.
10754 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10756 Add a new class gdb.Architecture which exposes GDB's
10757 internal representation of architecture via GDB Python API.
10758 * Makefile.in: Add entries corresponding to the new file
10760 * NEWS (Python Scripting): Add entries for the new class
10761 gdb.Architecture and the new method gdb.Frame.architecture.
10762 * python/py-arch.c: Implement gdb.Architecture class.
10763 * python/py-frame.c (frapy_arch): Implement the method
10764 gdb.Frame.architecture().
10765 (frame_object_methods): Add 'architecture' to the method table.
10766 * python/python-internal.h: Add declarations of new utility
10768 * python/python.c (_initialize_python): Initialize
10769 gdb.Architecture class.
10771 2013-01-23 Doug Evans <dje@google.com>
10773 Work around binutils/15021.
10774 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10775 type_unit_group out of union s. All uses updated.
10776 (read_index_from_section): Watch for index version 8.
10777 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10778 an imported symtab.
10779 (write_psymtabs_to_index): Increment version number to 8.
10781 2013-01-22 Pedro Alves <palves@redhat.com>
10783 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10786 2013-01-22 Pedro Alves <palves@redhat.com>
10788 * annotate.c (annotate_breakpoints_changed): Rename to ...
10789 (annotate_breakpoints_invalid): ... this. Make static.
10790 (breakpoint_changed): Adjust.
10791 (_initialize_annotate): Always install the observers. Install a
10792 "breakpoint_created" observer.
10793 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10794 * breakpoint.c (set_breakpoint_condition)
10795 (breakpoint_set_commands, do_map_commands_command)
10796 (init_raw_breakpoint, clear_command, set_ignore_count)
10797 (enable_breakpoint_disp): No longer call
10798 annotate_breakpoints_changed.
10800 2013-01-22 Pedro Alves <palves@redhat.com>
10802 * annotate.c: Include "inferior.h".
10803 (frames_invalid_emitted)
10804 (breakpoints_invalid_emitted): New globals.
10805 (async_background_execution_p): New function.
10806 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10807 emitting the annotation if it has already been emitted.
10808 (annotate_display_prompt): New function.
10809 * annotate.h (annotate_display_prompt): New declaration.
10810 * event-top.c: Include annotate.h.
10811 (display_gdb_prompt): Call annotate_display_prompt.
10813 2013-01-22 Pedro Alves <palves@redhat.com>
10815 * annotate.c (ignore_count_changed): Delete.
10816 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10817 (annotate_ignore_count_change): Delete.
10818 (annotate_stopped): Don't emit a delayed breakpoints-changed
10820 * annotate.h (annotate_ignore_count_change): Delete.
10821 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10822 annotate_ignore_count_change.
10824 2013-01-22 Tom Tromey <tromey@redhat.com>
10826 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10827 require_rvalue for a register location.
10829 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10831 * breakpoint.c (print_one_breakpoint_location): Add MI
10832 field 'thread-groups' when printing a breakpoint.
10833 (output_thread_groups): New function.
10835 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10837 * python/lib/gdb/commands/explore.py
10838 (CompoundExplorer.explore_expr): Correct the name of a method
10840 (ExploreTypeCommand.invoke): Add a missing 'return'.
10842 2013-01-21 Tom Tromey <tromey@redhat.com>
10844 * gdb_obstack.h (obconcat): Move declaration here, from...
10845 * symfile.h (obconcat): ... here.
10846 * gdb_obstack.c: New file.
10847 (obconcat): Move from...
10848 * symfile.c (obconcat): ... here.
10849 * Makefile.in (SFILES): Add gdb_obstack.c.
10850 (COMMON_OBS): Add gdb_obstack.o.
10852 2013-01-21 Tom Tromey <tromey@redhat.com>
10854 * symfile.h (obsavestring): Don't declare.
10855 * symfile.c (obsavestring): Remove.
10856 * ada-exp.y: Use obstack_copy0, not obsavestring.
10857 * ada-lang.c: Use obstack_copy0, not obsavestring.
10858 * coffread.c: Use obstack_copy0, not obsavestring.
10859 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10860 * dbxread.c: Use obstack_copy0, not obsavestring.
10861 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10862 * jit.c: Use obstack_copy0, not obsavestring.
10863 * mdebugread.c: Use obstack_copy0, not obsavestring.
10864 * psymtab.c: Use obstack_copy0, not obsavestring.
10865 * stabsread.c: Use obstack_copy0, not obsavestring.
10866 * xcoffread.c: Use obstack_copy0, not obsavestring.
10868 2013-01-21 Tom Tromey <tromey@redhat.com>
10870 * dwarf2read.c (fixup_go_packaging): Save package name
10871 on objfile obstack.
10872 * gdbtypes.c (init_type): Don't copy name.
10874 2013-01-21 Tom Tromey <tromey@redhat.com>
10876 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10878 (struct attribute) <u.str>: Now const.
10879 (struct fnfieldlist) <name>: Now const.
10880 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10881 (partial_die_parent_scope): Make return type const.
10882 (partial_die_full_name, add_partial_symbol): Update.
10883 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10885 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10886 (read_file_scope, read_func_scope, dwarf2_add_field)
10887 (dwarf2_add_member_fn, read_structure_type)
10888 (process_enumeration_scope, read_array_type, read_module_type)
10889 (read_base_type, read_subrange_type): Update.
10890 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10891 (new_symbol_full, guess_full_die_structure_name): Update.
10892 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10893 (dwarf2_name): Return const type.
10894 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10897 2013-01-21 Tom Tromey <tromey@redhat.com>
10899 * gdbtypes.c (init_type): Make 'name' const.
10900 * gdbtypes.h (init_type): Update.
10902 2013-01-21 Tom Tromey <tromey@redhat.com>
10904 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10905 (start_symtab): Make 'name' and 'dirname' const. Use
10906 set_last_source_file.
10907 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10908 (last_source_file): Define. Now static.
10909 (set_last_source_file, get_last_source_file): New functions.
10910 * buildsym.h (last_source_file): Don't declare.
10911 (start_symtab): Update.
10912 (set_last_source_file, get_last_source_file): Declare.
10913 * coffread.c (complete_symtab): Use set_last_source_file.
10914 (coff_end_symtab): Likewise.
10915 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10916 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10917 set_last_source_file.
10918 (process_one_symbol): Use get_last_source_file.
10919 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10920 (psymtab_to_symtab_1): Use get_last_source_file.
10921 * xcoffread.c (process_linenos): Use get_last_source_file.
10922 (complete_symtab): Use set_last_source_file.
10923 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10924 (scan_xcoff_symtab): Use set_last_source_file.
10926 2013-01-21 Tom Tromey <tromey@redhat.com>
10928 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10929 (symbol_set_names): Remove casts. Handle field const-ness.
10931 2013-01-21 Tom Tromey <tromey@redhat.com>
10933 * dwarf2read.c (new_symbol_full): Remove cast.
10934 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10935 * symtab.h (symbol_set_demangled_name): Update.
10937 2013-01-21 Tom Tromey <tromey@redhat.com>
10939 * main.c (captured_main): Call bfd_init.
10941 2013-01-21 Tom Tromey <tromey@redhat.com>
10943 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10944 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10945 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10948 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10950 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10952 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10954 Fix gdb.fortran/common-block.exp crash in PIE mode.
10955 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10957 * f-valprint.c (info_common_command_for_block): Expect
10958 LOC_COMMON_BLOCK in gdb_assert.
10959 * symtab.h (struct general_symbol_info): Update comment for the
10960 common_block member.
10961 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10962 (enum address_class): New member LOC_COMMON_BLOCK.
10964 2013-01-18 David Blaikie <dblaikie@gmail.com>
10966 * MAINTAINERS (Write After Approval): Add "David Blaikie".
10968 2013-01-18 Tom Tromey <tromey@redhat.com>
10971 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10972 Call require_rvalue.
10974 2013-01-18 Yao Qi <yao@codesourcery.com>
10976 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10977 (dbx_read_symtab): New declaration.
10978 (dbx_psymtab_to_symtab): Delete.
10979 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10980 Rename parameter PST to SELF. Exchanged two parameters.
10981 (start_psymtab): Caller update.
10982 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10983 (dwarf2_read_symtab): New declaration.
10984 (dwarf2_psymtab_to_symtab): Delete.
10985 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10986 Rename parameter PST to SELF. Exchanged two parameters.
10987 (create_partial_symtab): Caller update.
10988 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10989 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10990 Rename parameter PST to SELF. Exchanged two parameters.
10991 (parse_partial_symbols, new_psymtab): Caller update.
10992 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10994 * psymtab.c (psymtab_to_symtab): Caller update.
10995 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10996 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10997 Rename parameter PST to SELF. Exchanged two parameters.
10998 (xcoff_start_psymtab): Caller update.
11000 2013-01-18 Yao Qi <yao@codesourcery.com>
11002 * infrun.c (proceed): Rename local variable 'oneproc' to
11005 2013-01-17 Doug Evans <dje@google.com>
11007 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11008 (dw2_build_type_unit_groups): Delete. All uses updated.
11010 * symtab.h (struct symbol_search): Add comment.
11012 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11014 * symtab.c (compare_filenames_for_search): New comment for
11017 2013-01-17 Tom Tromey <tromey@redhat.com>
11019 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11021 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11023 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11024 initialize it by existing make_cleanup. Call new do_cleanups.
11026 2013-01-17 Tom Tromey <tromey@redhat.com>
11028 * cp-abi.c (cp_abi_completer): New function.
11029 (_initialize_cp_abi): Set completer for "set cp-abi".
11031 2013-01-17 Tom Tromey <tromey@redhat.com>
11033 * mem-break.c: Remove obsolete comment.
11034 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11036 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11038 * jit.c (jit_reader_load_command): Interpret the jit reader name
11039 as an absolute path if it begins with a forward slash.
11041 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11045 * jit.c (finalize_symtab): Ensure that only the global block has a
11048 2013-01-17 Pedro Alves <palves@redhat.com>
11050 * acinclude.m4: Include ../config/plugins.m4,
11051 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11052 * Makefile.in (aclocal_m4_deps): Update.
11053 * aclocal.m4: Renegerate.
11055 2013-01-16 Doug Evans <dje@google.com>
11057 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11059 2013-01-16 Pedro Alves <palves@redhat.com>
11060 Tom Tromey <tromey@redhat.com>
11063 * NEWS: Add "catch signal".
11064 * breakpoint.c (base_breakpoint_ops): No longer static.
11065 (bpstat_explains_signal): New function.
11066 (init_catchpoint): No longer static.
11067 (base_breakpoint_explains_signal): New function.
11068 (base_breakpoint_ops): Initialize new field.
11069 * breakpoint.h (enum bpstat_signal_value): New.
11070 (struct breakpoint_ops) <explains_signal>: New field.
11071 (bpstat_explains_signal): Remove macro, declare as function.
11072 (base_breakpoint_ops, init_catchpoint): Declare.
11073 * break-catch-sig.c: New file.
11074 * inferior.h (signal_catch_update): Declare.
11075 * infrun.c (signal_catch): New global.
11076 (handle_syscall_event): Update for change to
11077 bpstat_explains_signal.
11078 (handle_inferior_event): Likewise. Always handle random signals
11080 (signal_cache_update): Check signal_catch.
11081 (signal_catch_update): New function.
11082 (_initialize_infrun): Initialize signal_catch.
11083 * Makefile.in (SFILES): Add break-catch-sig.c.
11084 (COMMON_OBS): Add break-catch-sig.o.
11086 2013-01-16 Tom Tromey <tromey@redhat.com>
11088 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11089 (print_one_catch_solib, print_one_catch_syscall)
11090 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11093 2013-01-16 Yao Qi <yao@codesourcery.com>
11095 * printcmd.c (current_display_number): Make it static.
11097 2013-01-16 Yao Qi <yao@codesourcery.com>
11099 * infcmd.c (step_once): Don't check '!single_inst' as it was
11102 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11104 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11106 2013-01-14 Tom Tromey <tromey@redhat.com>
11108 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11110 * command.h (add_setshow_string_noescape_cmd): Update.
11111 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11112 (complete_set_gnutarget): New function.
11113 (_initialize_core): Set the "set gnutarget" completer.
11115 2013-01-14 Tom Tromey <tromey@redhat.com>
11118 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11119 (c_type_print_modifier): Likewise.
11120 * dwarf2read.c (read_tag_restrict_type): New function.
11121 (read_type_die_1): Handle DW_TAG_restrict_type.
11122 * gdbtypes.c (make_restrict_type): New function.
11123 (recursive_dump_type): Handle TYPE_RESTRICT.
11124 * gdbtypes.h (enum type_flag_values): Renumber.
11125 (enum type_instance_flag_value): Add
11126 TYPE_INSTANCE_FLAG_RESTRICT.
11127 (TYPE_RESTRICT): New macro.
11128 (make_restrict_type): Declare.
11130 2013-01-14 Tom Tromey <tromey@redhat.com>
11133 * psymtab.c (struct psymtab_state): New.
11134 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11136 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11137 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11139 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
11140 Pedro Alves <palves@redhat.com>
11144 * remote.c (remote_threads_info): Make a copy of the reply from
11145 qfThreadInfo and use that instead of rs->buf.
11147 2013-01-14 Yao Qi <yao@codesourcery.com>
11149 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11150 (dbx_psymtab_to_symtab): Likewise.
11151 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11152 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11153 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11155 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11157 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11158 make_cleanup_restore_current_language. Call set_language. Move
11159 OLD_CHAIN and INNER_CHAIN cleanups.
11160 * utils.c (do_restore_current_language)
11161 (make_cleanup_restore_current_language): New functions.
11162 * utils.h (make_cleanup_restore_current_language): New declaration.
11164 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11166 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11167 non-existing files.
11169 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11170 non-existing files if FILENAME is already absolute.
11172 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11174 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11175 fputs_filtered. Append trailing newline.
11177 2013-01-11 Yao Qi <yao@codesourcery.com>
11178 Stan Shebs <stan@codesourcery.com>
11180 * psymtab.c (init_psymbol_list): Clarify the comment.
11182 2013-01-11 Yao Qi <yao@codesourcery.com>
11184 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11185 (update_dprintf_command_list): Assert that 'printf_line' is
11186 non-null. Remove condition check.
11188 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11191 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11193 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11195 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11197 2013-01-09 Anthony Green <green@moxielogic.com>
11199 * cp-abi.c (cplus_print_vtable): Don't return value from void
11201 * ada-lang.c (re_set_catch_assert): Ditto.
11203 2013-01-09 Doug Evans <dje@google.com>
11205 * symfile.h (quick_symbol_functions): Delete member
11206 pre_expand_symtabs_matching. All uses removed.
11207 * dwarf2read.c (dw2_lookup_symbol): Implement.
11208 (dw2_do_expand_symtabs_matching): Delete.
11209 (dw2_pre_expand_symtabs_matching): Delete.
11210 (struct dw2_symtab_iterator): New type.
11211 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11212 (dw2_expand_symtabs_for_function): Rewrite.
11213 (dwarf2_gdb_index_functions): Update.
11214 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11215 (psym_functions): Update.
11217 2013-01-09 Tom Tromey <tromey@redhat.com>
11219 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11220 * configure: Rebuild.
11221 * configure.ac: Add somread.o to the build if BFD has SOM
11223 * somread.c: Include som/aout.h, not syms.h.
11224 (som_symtab_read): Use som_external_symbol_dictionary_record.
11225 Unpack records manually.
11226 (_initialize_somread): Declare.
11228 2012-01-08 Mike Frysinger <vapier@gentoo.org>
11230 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11231 Cast return_address to 64bits.
11233 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
11235 * printcmd.c: Remove define of function output_command.
11236 * tracepoint.c: Remove extern of function output_command.
11237 * valprint.h: (output_command): New extern.
11239 2013-01-07 Tom Tromey <tromey@redhat.com>
11241 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11243 (objc_language_defn): Use c_printchar, c_printstr,
11246 2013-01-07 Tom Tromey <tromey@redhat.com>
11250 * ada-valprint.c (printstr, print_field_values): Remove
11252 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11254 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11256 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11257 * main.c (captured_main): Remove "epoch" argument.
11258 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11259 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11260 * p-valprint.c (pascal_object_print_value_fields): Remove
11262 * printcmd.c (print_command_1): Remove 'inspect' argument.
11263 (print_command, call_command): Update.
11264 (inspect_command): Remove.
11265 (_initialize_printcmd): Make "inspect" an alias for "print".
11266 * top.c (epoch_interface): Remove.
11267 * top.h (epoch_interface): Remove.
11268 * valprint.c (user_print_options): Update.
11269 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11270 * valprint.h (struct value_print_options) <inspect_it>: Remove
11273 2013-01-04 Tom Tromey <tromey@redhat.com>
11275 * valprint.h (read_string): Add 'extern'.
11277 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11279 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11280 used to decide whether to define darwin_read_dyld_info or not.
11282 2013-01-03 Pierre Muller <muller@sourceware.org>
11284 * main.c (relocate_gdb_directory): Avoid calling stat function
11287 2013-01-03 Yao Qi <yao@codesourcery.com>
11289 * psymtab.c (fixup_psymbol_section): Update declaration.
11290 (fixup_psymbol_section): Remove code returning value.
11292 2013-01-03 Yao Qi <yao@codesourcery.com>
11294 * symtab.h: Remove some out of date comments.
11295 (enum exception_event_kind): Move it ...
11296 * breakpoint.c: ... here.
11298 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11301 * darwin-nat.c (darwin_read_dyld_info): Only build if
11302 TASK_DYLD_INFO_COUNT is defined.
11303 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11304 TASK_DYLD_INFO_COUNT is defined.
11306 2013-01-02 Tom Tromey <tromey@redhat.com>
11308 * symfile.h (struct ecoff_debug_hack): Remove.
11309 * objfiles.c: Don't include mdebugread.h.
11311 2013-01-02 Tom Tromey <tromey@redhat.com>
11313 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11314 * configure.ac: Check for Mach-O support in BFD. Update
11316 * configure: Rebuild.
11318 2013-01-02 Tom Tromey <tromey@redhat.com>
11320 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11321 * configure.ac: Use GDB_AC_CHECK_BFD.
11322 * configure: Rebuild.
11324 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11326 * MAINTAINERS: Update my email.
11328 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11330 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11332 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11334 * rs6000-nat.c (bss_data_overlap): New function.
11335 (vmap_symtab): Use it to adjust the .bss section's offset.
11337 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11339 Update year range in copyright notice of all files.
11341 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11343 * top.c (print_gdb_version): Update copyright year.
11345 For older changes see ChangeLog-2012.
11351 version-control: never