1 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
3 * breakpoint.c (update_watchpoint): Update error message and add
4 an additional error message.
6 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
8 * s390-tdep.h: Rename to...
9 * s390-linux-tdep.h: ...here.
10 * s390-tdep.c: Rename to...
11 * s390-linux-tdep.c: ...here. Adjust #include.
12 * s390-nat.c: Rename to...
13 * s390-linux-nat.c: ...here. Adjust #include.
14 * config/s390/s390.mh: Rename to...
15 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
17 * configure.host: Reflect host rename "s390" -> "linux".
18 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
19 * Makefile.in (ALL_TARGET_OBS): Likewise.
20 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
22 (ALLDEPFILES): Reflect rename of .c files.
24 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
26 * s390-nat.c: Whitespace cleanup.
27 * s390-tdep.c: Likewise.
28 * s390-tdep.h: Remove empty line at end of file.
30 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
32 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
35 2013-10-29 Tom Tromey <tromey@redhat.com>
37 * utils.c (reg): Move undefinition...
38 * gdb_curses.h: ... here. Update comment to mention AIX.
40 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
42 * exec.h (add_target_sections_of_objfile): New declaration.
43 * exec.c (add_target_sections_of_objfile): New function.
44 * symfile.c (add_symbol_file_command): Update current target sections.
45 (remove_symbol_file_command): New command.
46 (symfile_free_objfile): New function.
47 (_initialize_symfile): Register observer for free_objfile events.
48 * NEWS: Add description of the remove-symbol-file command.
49 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
50 * objfiles.c (free_objfile): Notify free_objfile.
51 (is_addr_in_objfile): New function.
52 * objfiles.h (is_addr_in_objfile): New declaration.
53 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
54 events instead of solib_unloaded events.
55 (_initialize_printcmd): Register observer for free_objfile instead
56 of solib_unloaded notifications.
57 * solib.c (remove_user_added_objfile): New function.
58 (_initialize_symfile): Add remove-symbol-file.
60 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
62 * infcmd.c (default_print_one_register_info): Use val_print to
63 print all values even optimized out or unavailable ones. Don't
64 try to print a raw form of optimized out or unavailable values.
66 2013-10-29 Yao Qi <yao@codesourcery.com>
68 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
69 parameter 'arg' instead of from program_space_data.
70 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
71 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
72 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
73 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
74 * inflow.c (inflow_inferior_data_cleanup): Get data from
75 parameter 'arg' instead of inferior_data.
76 * registry.h: Add comments.
78 2013-10-28 Pedro Alves <palves@redhat.com>
80 * breakpoint.c (watchpoints_triggered)
81 <!target_stopped_data_address>: Hardcode return 1.
83 2013-10-28 Pedro Alves <palves@redhat.com>
85 * infrun.c (process_event_stop_test): Remove unnecessary scoping
88 2013-10-28 Pedro Alves <palves@redhat.com>
90 * infrun.c (process_event_stop_test): New function, factored out
91 from handle_inferior_event.
92 (handle_inferior_event): 'process_event_stop_test' is now a
93 function instead of a goto label -- adjust.
95 2013-10-28 Pedro Alves <palves@redhat.com>
97 * infrun.c (handle_inferior_event): Move process_event_stop_test
98 goto label to the else branch of the ecs->random_signal check,
99 along with FRAME and GDBARCH re-fetching.
101 2013-10-28 Pedro Alves <palves@redhat.com>
103 * infrun.c (switch_back_to_stepped_thread): New function, factored
104 out from handle_inferior_event.
105 (handle_inferior_event): Adjust to call
106 switch_back_to_stepped_thread. Call it also at the tail of the
107 random signal handling, and return, instead of also handling
108 random signals just before the stepping tests.
110 2013-10-28 Pedro Alves <palves@redhat.com>
112 * infrun.c (clear_stop_func): Delete.
113 (handle_inferior_event): Don't call clear_stop_func and don't
114 clear 'ecs->random_signal'.
116 2013-10-27 Yao Qi <yao@codesourcery.com>
118 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
119 (varobj_create, varobj_get_path_expr): Update.
120 (varobj_value_has_mutated, varobj_update): Likewise.
121 (create_child_with_value, new_root_variable): Likewise.
122 (number_of_children, name_of_variable): Likewise.
123 (value_of_child, my_value_of_variable): Likewise.
124 (varobj_value_is_changeable_p): Likewise.
126 2013-10-25 Yao Qi <yao@codesourcery.com>
128 * language.h (struct lang_varobj_ops): Declare.
129 (struct language_defn) <la_varobj_ops>: New field.
130 * ada-lang.c: Include "varobj.h"
131 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
133 * c-lang.c: Include "varobj.h"
134 (c_language_defn): Initialize field 'la_varobj_ops' with
136 (cplus_language_defn): Initialize field 'la_varobj_ops' with
138 (asm_language_defn): Initialize field 'la_varobj_ops' with
140 (minimal_language_defn): Likewise.
141 * d-lang.c (d_language_defn): Likewise.
142 * f-lang.c (f_language_defn): Likewise.
143 * go-lang.c (go_language_defn): Likewise.
144 * m2-lang.c (m2_language_defn): Likewise.
145 * objc-lang.c (objc_language_defn): Likewise.
146 * opencl-lang.c (opencl_language_defn): Likewise.
147 * p-lang.c (pascal_language_defn): Likewise.
148 * language.c (unknown_language_defn): Likewise.
149 (auto_language_defn): Likewise.
150 (local_language_defn): Likewise.
151 * jv-lang.c (java_language_defn): Initialize field
152 'la_varobj_ops' with java_varobj_ops.
153 * varobj.c (varobj_create): Update.
154 * varobj.h (default_varobj_ops): Define macro.
156 2013-10-25 Pedro Alves <palves@redhat.com>
158 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
160 (cp_print_static_field): If the value is entirely optimized out,
161 print <optimized out> here.
162 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
164 * p-valprint.c (pascal_object_print_static_field): If the value is
165 entirely optimized out, print <optimized out> here.
166 * valops.c (do_search_struct_field)
167 (value_struct_elt_for_reference): No longer handle a NULL static
169 * value.c (value_static_field): Return an optimized out value
172 2013-10-25 Yao Qi <yao@codesourcery.com>
174 * remote.c (remote_traceframe_info): Return early if
175 traceframe is not selected.
177 2013-10-25 Yao Qi <yao@codesourcery.com>
179 * tracepoint.c (traceframe_fun): Remove.
180 (traceframe_sal): Remove.
181 (set_traceframe_context): Add local variables.
183 2013-10-25 Joel Brobecker <brobecker@adacore.com>
185 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
188 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
190 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
191 failure from register information collection.
193 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
195 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
197 (linux_corefile_thread_callback): Update accordingly.
198 (linux_make_corefile_notes): Likewise.
200 2013-10-24 Pedro Alves <palves@redhat.com>
202 * NEWS (New options): Mention set/show startup-with-shell.
203 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
205 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
207 (show_startup_with_shell): New function.
208 (_initialize_fork_child): Register the set/show startup-with-shell
210 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
211 * inf-ttrace.c (inf_ttrace_him): Remove comment.
212 * procfs.c (procfs_init_inferior): Remove comment.
213 * infcmd.c (startup_with_shell): New global.
214 * inferior.h (startup_with_shell): Declare global.
215 (STARTUP_WITH_SHELL): Delete.
216 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
218 2013-10-23 Pedro Alves <palves@redhat.com>
220 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
221 * common/signals.c: Include "gdb_assert.h".
222 (signals): New field 'symbol'.
223 (SET): Use the 'symbol' parameter.
224 (gdb_signal_to_symbol_string): New function.
225 * infrun.c (handle_inferior_event) <random signal>: In debug
226 output, print the random signal enum as string in addition to its
228 * target/waitstatus.c (target_waitstatus_to_string): Print the
229 signal's enum value as string instead of the (POSIX) signal name.
231 2013-10-23 Gary Benson <gbenson@redhat.com>
234 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
235 from 32 to 18. Adjusted fscanf format string accordingly.
236 (Avoids leaving cmd unterminated.)
237 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
238 trun, retn or extra. (Avoids leaving extra unterminated.) Check
239 that local_address and remote_address will not overflow.
240 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
241 leaving dependencies unterminated. Parse size as "%u" to match
244 2013-10-22 Pedro Alves <palves@redhat.com>
246 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
247 set ecs->random signal.
249 2013-10-22 Pedro Alves <palves@redhat.com>
251 * infrun.c (keep_going): Update comments.
253 2013-10-22 Pedro Alves <palves@redhat.com>
255 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
256 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
258 2013-10-22 Pedro Alves <palves@redhat.com>
260 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
262 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
263 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
264 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
265 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
266 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
267 (GDB_SIGNAL_LAST): Change description string.
268 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
269 Adjust to signal renaming.
270 * darwin-nat.c (darwin_decode_message): Likewise.
272 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
274 * MAINTAINERS (Write After Approval): Add myself to the list.
276 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
278 * breakpoint.c (update_watchpoint): If hardware watchpoints are
279 forced off, downgrade them to software watchpoints if possible,
280 and error out if not possible.
281 (watch_command_1): Move watchpoint type selection closer to
282 watchpoint creation, and extend the comments.
284 2013-10-18 Pedro Alves <palves@redhat.com>
287 * infrun.c (handle_inferior_event): Keep going if we got a random
288 signal we should not stop for, instead of falling through to the
291 2013-10-18 Yao Qi <yao@codesourcery.com>
293 * c-varobj.c (cplus_number_of_children): Fix indentation.
295 2013-10-17 Tom Tromey <tromey@redhat.com>
298 * printcmd.c (printcmd): Call gdb_flush.
300 2013-10-17 Tom Tromey <tromey@redhat.com>
302 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
303 (elf_locate_sections): Update.
305 2013-10-17 Yao Qi <yao@codesourcery.com>
307 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
308 * ada-varobj.c: Remove the include of ada-varobj.h.
309 (ada_varobj_get_number_of_children): Declare.
310 (ada_varobj_get_name_of_child): Make it static.
311 (ada_varobj_get_path_expr_of_child): Likewise.
312 (ada_varobj_get_value_of_child): Likewise.
313 (ada_varobj_get_type_of_child): Likewise.
314 (ada_varobj_get_value_of_array_variable): Likewise.
315 * ada-varobj.h: Remove.
317 2013-10-17 Yao Qi <yao@codesourcery.com>
319 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
320 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
321 * ada-varobj.c: Include "varobj.h".
322 (ada_number_of_children): New. Moved from varobj.c.
323 (ada_name_of_variable, ada_name_of_child): Likewise.
324 (ada_path_expr_of_child, ada_value_of_child): Likewise.
325 (ada_type_of_child, ada_value_of_variable): Likewise.
326 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
327 (ada_varobj_ops): New.
328 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
329 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
330 * gdbtypes.h (get_target_type): Declare.
331 * varobj.c: Remove the inclusion of "ada-varobj.h" and
333 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
334 (ANONYMOUS_UNION_NAME): Likewise.
335 (get_type, get_value_type, get_target_type): Remove declarations.
336 (value_get_print_value, varobj_value_get_print_value): Likewise.
337 (c_number_of_children, c_name_of_variable): Likewise.
338 (c_name_of_child, c_path_expr_of_child): Likewise.
339 (c_value_of_child, c_type_of_child): Likewise.
340 (c_value_of_variable, cplus_number_of_children): Likewise.
341 (cplus_class_num_children, cplus_name_of_variable): Likewise.
342 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
343 (cplus_value_of_child, cplus_type_of_child): Likewise.
344 (cplus_value_of_variable, java_number_of_children): Likewise.
345 (java_name_of_variable, java_name_of_child): Likewise.
346 (java_path_expr_of_child, java_value_of_child): Likewise.
347 (java_type_of_child, java_value_of_variable): Likewise.
348 (ada_number_of_children, ada_name_of_variable): Likewise.
349 (ada_name_of_child, ada_path_expr_of_child): Likewise.
350 (ada_value_of_child, ada_type_of_child): Likewise.
351 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
352 (ada_value_has_mutated): Likewise.
353 (struct language_specific): Move it to varobj.h.
354 (CPLUS_FAKE_CHILD): Move it to varobj.h.
355 (restrict_range): Rename it varobj_restrict_range. Make it extern.
357 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
359 (is_anonymous_child): Move it to c-varobj.c and rename to
360 varobj_is_anonymous_child. Caller update.
361 (get_type): Move it to c-varobj.c.
362 (get_value_type): Rename it varobj_get_value_type. Make it
364 (get_target_type): Move it gdbtypes.c.
365 (varobj_formatted_print_options): New function.
366 (value_get_print_value): Rename it to
367 varobj_value_get_print_value and make it extern.
368 (varobj_value_is_changeable_p): Make it extern.
369 (adjust_value_for_child_access): Move it to c-varobj.c.
370 (default_value_is_changeable_p): Rename it to
371 varobj_default_value_is_changeable_p. Make it extern.
372 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
373 (c_name_of_child, c_path_expr_of_child): Likewise.
374 (c_value_of_child, c_type_of_child): Likewise.
375 (c_value_of_variable, cplus_number_of_children): Likewise.
376 (cplus_class_num_children, cplus_name_of_variable): Likewise.
377 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
378 (cplus_value_of_child, cplus_type_of_child): Likewise.
379 (cplus_value_of_variable): Likewise.
380 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
381 (java_name_of_child, java_path_expr_of_child): Likewise.
382 (java_value_of_child, java_type_of_child): Likewise.
383 (java_value_of_variable): Likewise.
384 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
385 (ada_name_of_child, ada_path_expr_of_child): Likewise.
386 (ada_value_of_child, ada_type_of_child): Likewise.
387 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
388 (ada_value_has_mutated): Likewise.
389 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
390 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
391 (c_varobj_ops, cplus_varobj_ops): Declare.
392 (java_varobj_ops, ada_varobj_ops): Declare.
393 (varobj_default_value_is_changeable_p): Declare.
394 (varobj_value_is_changeable_p): Declare.
395 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
396 (varobj_get_path_expr_parent): Declare.
397 (varobj_value_get_print_value): Declare.
398 (varobj_formatted_print_options): Declare.
399 (varobj_restrict_range): Declare.
401 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
403 * target/waitstatus.h (target_waitkind): Remove spurious
404 character from the comments.
406 2013-10-17 Joel Brobecker <brobecker@adacore.com>
408 * gdbarch.sh (get_longjmp_target): Add method documentation.
409 * gdbarch.h: Regenerate.
411 2013-10-16 Tom Tromey <tromey@redhat.com>
413 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
416 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
418 * gcore.in: Call GDB using the full path to the gcore script.
419 Error out if the GDB binary is not found.
421 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
424 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
427 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
430 * target.c (target_disable_btrace): Fix invalid return value for
432 (target_teardown_btrace): Likewise.
434 2013-10-14 Yao Qi <yao@codesourcery.com>
436 * varobj.c (struct varobj): Move most of the fields to
438 (struct varobj_dynamic): New struct.
439 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
440 (varobj_has_more): Likewise.
441 (dynamic_varobj_has_child_method): Likewise.
442 (update_dynamic_varobj_children): Likewise.
443 (varobj_get_num_children): Likewise.
444 (varobj_list_children, varobj_pretty_printed_p): Likewise.
445 (install_new_value_visualizer): Likewise.
446 (install_new_value_visualizer, install_new_value): Likewise.
447 (varobj_update, new_variable, free_variable): Likewise.
448 (my_value_of_variable, value_get_print_value): Likewise.
449 (install_visualizer): Change the type of parameter 'var' to
450 'struct varobjd_dynamic *'. Callers update.
451 * varobj.h (struct varobj): Moved from varobj.c.
452 (struct varobj) <dynamic>: New field.
454 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
456 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
457 as the preferred name of r30.
458 * nios2-linux-tdep.c (reg_offsets): Likewise.
459 * features/nios2-cpu.xml: Likewise.
460 * features/nios2-linux.c: Regenerated.
461 * features/nios2.c: Regenerated.
462 * regformats/nios2-linux.dat: Regenerated.
464 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
466 Canonicalize directories for EXEC_FILENAME.
467 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
469 * utils.c (gdb_realpath_keepfile): New function.
470 * utils.h (gdb_realpath_keepfile): New declaration.
472 2013-10-11 Doug Evans <dje@google.com>
474 * Makefile.in (GDBFLAGS): New variable.
477 2013-10-11 Joel Brobecker <brobecker@adacore.com>
479 * NEWS: Add entry documenting the new "-catch-assert" and
480 "-catch-exception" GDB/MI commands.
482 2013-10-11 Joel Brobecker <brobecker@adacore.com>
484 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
486 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
487 "enabled". Set B->ENABLE_STATE accordingly.
488 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
490 (create_ada_exception_catchpoint): Add declaration.
491 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
492 (create_ada_exception_catchpoint): Make non-static. Add new
493 parameter "disabled". Use it in call to
494 init_ada_exception_breakpoint.
495 (catch_ada_exception_command): Add parameter "enabled" in call
496 to create_ada_exception_catchpoint.
497 (catch_assert_command): Likewise.
499 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
501 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
502 "catch-exception" commands.
503 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
504 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
506 2013-10-11 Joel Brobecker <brobecker@adacore.com>
508 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
509 "enum exception_catchpoint_kind". Replace the "ex_" prefix
510 of all its enumerates with "ada_". Update the rest of this
513 2013-10-11 Joel Brobecker <brobecker@adacore.com>
515 * ada-lang.c (ada_decode_exception_location): Delete.
516 (create_ada_exception_catchpoint): Remove arguments "sal",
517 "addr_string" and "ops". Add argument "ex_kind" instead.
518 Adjust implementation accordingly, calling ada_exception_sal
519 to get the entities it no longer gets passed as arguments.
520 Document the function's arguments.
521 (catch_ada_exception_command): Use catch_ada_exception_command_split
522 instead of ada_decode_exception_location, and update call to
523 create_ada_exception_catchpoint.
524 (catch_ada_assert_command_split): Renames
525 ada_decode_assert_location. Remove parameters "addr_string" and
526 "ops", and now returns void. Adjust implementation accordingly.
527 Update the function documentation.
528 (catch_assert_command): Use catch_ada_assert_command_split
529 instead of ada_decode_assert_location. Update call to
530 create_ada_exception_catchpoint.
532 2013-10-11 Joel Brobecker <brobecker@adacore.com>
534 * utils.h (perror_warning_with_name): Add declaration.
535 * utils.c (perror_warning_with_name): New function.
536 * cli/cli-cmds.c (source_script_with_search): Add call to
537 perror_warning_with_name if from_tty is nul.
539 2013-10-11 Joel Brobecker <brobecker@adacore.com>
541 * utils.c (perror_string): New function, extracted out of
542 throw_perror_with_name.
543 (throw_perror_with_name): Rework to use perror_string.
545 2013-10-11 Yao Qi <yao@codesourcery.com>
547 * remote.c (discard_pending_stop_replies_in_queue): Update
549 (struct stop_reply) <rs>: New field.
550 (remove_stop_reply_of_remote_state): New function.
551 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
552 Callers update. Pass remove_stop_reply_of_remote_state to
554 (remote_parse_stop_reply): Initialize field 'rs'.
556 2013-10-10 Will Newton <will.newton@linaro.org>
558 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
561 2013-10-10 Joel Brobecker <brobecker@adacore.com>
563 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
564 serial_baud_show_cmd.
565 (_initialize_cli_cmds): Delete the code creating the
566 "set/show remotebaud" commands.
567 * serial.c (baud_rate): Move here from top.c.
568 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
569 (_initialize_serial): Create "set/show serial baud" commands.
570 Add "set/show remotebaud" command aliases.
571 * top.c (baud_rate): Moved to serial.c.
572 * NEWS: Document the new "set/show serial baud" commands,
573 replacing "set/show remotebaud".
575 2013-10-09 Pedro Alves <palves@redhat.com>
577 * breakpoint.c (insert_bp_location): Use memory_error_message to
578 build the memory error string.
579 * c-lang.c: Include "gdbcore.h".
580 (c_get_string): Use memory_error to throw error.
581 (target_xfer_memory_error): Delete.
582 (memory_error_message): New, factored out from
583 target_xfer_memory_error.
584 (memory_error): Change parameter type to target_xfer_error.
586 (read_memory): Use memory_error instead of
587 target_xfer_memory_error.
588 * gdbcore.h: Include "target.h".
589 (memory_error): Change parameter type to target_xfer_error.
590 (memory_error_message): Declare function.
591 * target.c (target_read_memory, target_read_stack)
592 (target_write_memory, target_write_raw_memory): Return
593 TARGET_XFER_E_IO on error. Adjust comments.
594 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
596 * target.h (target_read, target_insert_breakpoint)
597 (target_remove_breakpoint): Adjust comments.
598 * valprint.c (partial_memory_read): Rename parameter, and adjust
600 (val_print_string): Use memory_error_message to build the memory
603 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
605 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
606 result variable. Rename variable fopen_e_ever_failed to
607 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
609 2013-10-09 Pedro Alves <palves@redhat.com>
611 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
612 (monitor_write_memory_longlongs, monitor_write_memory_block):
613 Constify 'myaddr' parameter.
614 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
616 (monitor_xfer_partial): New function.
617 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
618 hook. Install a to_xfer_partial hook.
620 2013-10-09 Tom Tromey <tromey@redhat.com>
622 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
623 bfd_get_alt_debug_link_info.
625 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
627 New flag OBJF_NOT_FILENAME.
628 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
629 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
631 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
632 symbol_file_add_from_bfd.
633 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
635 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
637 * objfiles.h (OBJF_NOT_FILENAME): New.
639 2013-10-08 Tom Tromey <tromey@redhat.com>
641 * Makefile.in (SFILES): Add build-id.c.
642 (HFILES_NO_SRCDIR): Add build-id.h.
643 * build-id.c: New file, largely from elfread.c. Modified
645 * build-id.h: New file.
646 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
647 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
648 Search for dwz file using build-id.
649 * elfread.c (build_id_bfd_get, build_id_verify)
650 (build_id_to_debug_filename, find_separate_debug_file): Remove.
652 2013-10-08 Joel Brobecker <brobecker@adacore.com>
654 * ada-lang.c (compare_names_with_case): Renamed from
655 compare_names, adding a new parameter "casing" and its handling.
656 New function documentation.
657 (compare_names): New function, implemented using
658 compare_names_with_case.
660 2013-10-08 Joel Brobecker <brobecker@adacore.com>
662 * ada-lang.c (ada_exception_sal): Remove advance declaration.
664 2013-10-07 Tom Tromey <tromey@redhat.com>
666 * objfiles.c (free_objfile_per_bfd_storage): Delete the
667 demangled_names_hash.
668 (free_objfile): Don't delete the demangled_names_hash.
669 * objfiles.h (struct objfile_per_bfd_storage)
670 <demangled_names_hash>: New field.
671 (struct objfile) <demangled_names_hash>: Move to
672 objfile_per_bfd_storage.
673 * symfile.c (reread_symbols): Don't delete the
674 demangled_names_hash.
675 * symtab.c (create_demangled_names_hash): Update.
676 (symbol_set_names): Update.
678 2013-10-07 Tom Tromey <tromey@redhat.com>
680 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
681 needs_relocations>: New fields.
682 (gdb_bfd_requires_relocations): New function.
683 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
684 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
685 the BFD needs relocations applied.
687 2013-10-07 Pedro Alves <palves@redhat.com>
690 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
691 the thread list" instead of "gone".
693 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
695 * NEWS: Mention new convenience variable $_exitsignal.
696 * corelow.c (core_open): Reset exit convenience variables. Set
697 $_exitsignal to the uncaught signal which generated the corefile.
698 * infrun.c (handle_inferior_event): Reset exit convenience
699 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
700 (clear_exit_convenience_vars): New function.
701 * inferior.h (clear_exit_convenience_vars): New prototype.
703 2013-10-06 Yao Qi <yao@codesourcery.com>
705 * varobj.h: Add comments to enum varobj_languages.
707 2013-10-04 Doug Evans <dje@google.com>
709 Add support for DWP file format version 2.
710 * NEWS: Mention support for DWP file format version 2.
711 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
712 union of asection, containing_section. New fields virtual_offset
713 and is_virtual. Change type of readin filed from int to char.
714 (dwo_sections, dwo_file): Tweak comments.
715 (dwp_v2_section_ids): New enum.
716 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
718 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
720 (virtual_v2_dwo_sections): New struct.
721 (dwp_hash_table): New fields version, nr_columns. Change type of
722 section_pool field to a union.
723 (dwp_file): New field version.
724 (dwarf2_has_info): Check for virtual sections.
725 (get_containing_section): New function.
726 (get_section_bfd_owner, get_section_bfd_section): Call it.
727 (dwarf2_locate_sections): Update.
728 (dwarf2_section_empty_p): Update.
729 (dwarf2_read_section): Handle virtual sections.
730 (locate_dwz_sections): Update.
731 (create_dwp_hash_table): Document and handle V2 format.
732 (locate_v1_virtual_dwo_sections): Renamed from
733 locate_virtual_dwo_sections and update. All callers updated.
734 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
735 Delete arg htab. Rename arg section_index to unit_index.
737 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
739 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
740 (lookup_dwo_unit_in_dwp): Add V2 support.
741 (dwarf2_locate_dwo_sections): Update.
742 (dwarf2_locate_common_dwp_sections): Renamed from
743 dwarf2_locate_dwp_sections and update. All callers updated.
744 (dwarf2_locate_v2_dwp_sections): New function.
745 (open_and_init_dwp_file): Add V2 support.
746 (read_str_index): New locals str_section, str_offsets_section.
748 2013-10-04 Pedro Alves <palves@redhat.com>
750 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
751 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
752 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
753 describing comments with references to ptid.h.
754 * common/ptid.h: Remove intro description of constructors,
755 accessors and predicates.
756 (struct ptid): Reformat.
757 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
758 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
761 2013-10-04 Joel Brobecker <brobecker@adacore.com>
763 * aix-thread.c (sync_threadlists): Add missing ')' in call
766 2013-10-04 Joel Brobecker <brobecker@adacore.com>
768 * procfs.c (procfs_init_inferior): Fix typo causing the build
771 2013-10-04 Joel Brobecker <brobecker@adacore.com>
773 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
775 2013-10-04 Joel Brobecker <brobecker@adacore.com>
777 * mi/mi-main.c (run_one_inferior): Add function description.
778 Make ARG a pointer to an integer whose value determines whether
779 we should "run" or "start" the program.
780 (mi_cmd_exec_run): Add handling of the "--start" option.
781 Reject all other command-line options.
782 * NEWS: Add entry for "-exec-run"'s new "--start" option.
784 2013-10-04 Yao Qi <yao@codesourcery.com>
786 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
787 (struct notif_client) <pending_event>: Moved
788 to struct remote_notif_state.
790 (struct remote_notif_state) <pending_event>: New field.
791 (notif_event_xfree): Declare.
792 * remote-notif.c (handle_notification): Adjust.
793 (notif_event_xfree): New function.
794 (do_notif_event_xfree): Call notif_event_xfree.
795 (remote_notif_state_xfree): Call notif_event_xfree to free
796 each element in field pending_event.
797 * remote.c (discard_pending_stop_replies): Remove declaration.
798 (discard_pending_stop_replies_in_queue): Declare.
799 (remote_close): Call discard_pending_stop_replies_in_queue
800 instead of discard_pending_stop_replies.
801 (remote_start_remote): Adjust.
802 (stop_reply_xfree): Call notif_event_xfree.
803 (notif_client_stop): Adjust initialization.
804 (remote_notif_remove_all): Rename it to ...
805 (remove_stop_reply_for_inferior): ... this. Update comments.
806 Don't check INF is NULL.
807 (discard_pending_stop_replies): Return early if notif_state is
808 NULL. Adjust. Don't check INF is NULL.
809 (remote_notif_get_pending_events): Adjust.
810 (discard_pending_stop_replies_in_queue): New function.
811 (remote_wait_ns): Likewise.
813 2013-10-04 Yao Qi <yao@codesourcery.com>
815 * remote-notif.c (DECLARE_QUEUE_P): Remove.
816 (notif_queue): Remove.
817 (remote_notif_process): Add one parameter 'notif_queue'.
818 Update comments. Callers update.
819 (remote_async_get_pending_events_token): Remove.
820 (remote_notif_register_async_event_handler): Remove.
821 (remote_notif_unregister_async_event_handler): Remove.
822 (handle_notification): Add parameter 'notif_queue'. Update
823 comments. Callers update.
824 (notif_xfree): Remove.
825 (remote_notif_state_allocate): New function.
826 (remote_notif_state_xfree): New function.
827 (_initialize_notif): Remove code to allocate queue.
828 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
829 (struct remote_notif_state): New.
830 (handle_notification): Update declaration.
831 (remote_notif_process): Likewise.
832 (remote_notif_register_async_event_handler): Remove.
833 (remote_notif_unregister_async_event_handler): Remove.
834 (remote_notif_state_allocate): Declare.
835 (remote_notif_state_xfree): Declare.
836 * remote.c (struct remote_state) <notif_state>: New field.
837 (remote_close): Don't call
838 remote_notif_unregister_async_event_handler. Call
839 remote_notif_state_xfree.
840 (remote_open_1): Don't call
841 remote_notif_register_async_event_handler. Call
842 remote_notif_state_allocate.
844 2013-10-04 Yao Qi <yao@codesourcery.com>
846 * varobj.c (create_child_with_value): Remove 'const' from the
847 type of parameter 'name'.
848 (varobj_add_child): Likewise.
849 (install_dynamic_child): Remove 'const' from the type of
851 (varobj_add_child): Likewise.
852 (create_child_with_value): Likewise. Update comments. Don't
854 (update_dynamic_varobj_children): Duplicate 'name'
855 and pass it to install_dynamic_child.
857 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
859 * python/py-value.c (convert_value_from_python): Move PyInt_Check
860 conversion logic to occur after PyLong_Check. Comment on order
862 * python/py-arch.c (archpy_disassemble): Comment on order of
863 conversion for integers and longs.
865 2013-10-03 Pedro Alves <palves@redhat.com>
867 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
868 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
869 functions. Always test for PTRACE_O_TRACESYSGOOD even if
870 PTRACE_O_TRACEFORK is not supported.
871 (linux_test_for_tracesysgood): New function.
872 (linux_test_for_tracefork): New function, factored out from
873 linux_check_ptrace_features, and also don't kill child_pid here.
875 2013-10-03 Tristan Gingold <gingold@adacore.com>
877 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
878 Remove verbose error reporting. Use detected state to
879 thread_set_state call.
880 (i386_darwin_dr_get): Fix return type. Remove verbose error
882 Remove trailing spaces.
884 2013-10-02 Pedro Alves <palves@redhat.com>
886 * cp-valprint.c (cp_print_value_fields): Adjust calls to
887 val_print_optimized_out.
888 * jv-valprint.c (java_print_value_fields): Likewise.
889 * p-valprint.c (pascal_object_print_value_fields): Likewise.
890 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
891 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
892 new optimized out value.
893 * findvar.c (address_from_register): Likewise.
894 * frame.c (put_frame_register): Tweak error string to say the
895 register was not saved, rather than optimized out.
896 * infcmd.c (default_print_one_register_info): Adjust call to
897 val_print_optimized_out. Use value_of_register instead of
898 get_frame_register_value.
899 * mi/mi-main.c (output_register): Use value_of_register instead of
900 get_frame_register_value.
901 * valprint.c (valprint_check_validity): Likewise.
902 (val_print_optimized_out): New value parameter. If the value is
903 lval_register, print <not saved> instead.
904 (value_check_printable, val_print_scalar_formatted): Adjust calls
905 to val_print_optimized_out.
906 * valprint.h (val_print_optimized_out): New value parameter.
907 * value.c (struct value) <optimized_out>: Extend comment.
908 (error_value_optimized_out): New function.
909 (require_not_optimized_out): Use it. Use a different string for
910 lval_register values.
911 * value.h (error_value_optimized_out): New declaration.
912 * NEWS: Mention <not saved>.
914 2013-10-02 Joel Brobecker <brobecker@adacore.com>
916 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
917 strcmp to compare two symtab filenames.
919 2013-10-02 Joel Brobecker <brobecker@adacore.com>
921 * symtab.c (search_symbols_equal): Delete.
922 (sort_search_symbols_remove_dups): Replace call to
923 search_symbols_equal by call to compare_search_syms,
924 adjusting as necessary.
926 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
930 * python/python.c: Document gdb.execute command in Python help.
932 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
934 * python/py-frame.c (frame_info_to_frame_object): Use
935 gdbpy_convert_exception. Clean up Python object on failure.
937 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
939 * python/lib/gdb/command/frame_filters.py
940 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
941 (ShowFrameFilterPriority.invoke): Ditto.
943 2013-10-01 Keith Seitz <keiths@redhat.com>
945 * linespec.c (struct ls_parser): Make 'saved_arg' const.
946 (parse_linespec): Make 'argptr' const.
947 Remove temporary cast of 'argptr' to const char **.
948 (decode_line_full): Pass const pointer to parse_linespec.
949 (decode_line_1): Likewise.
950 (decode_objc): Make local variable 'new_argptr' const.
951 (find_function_symbols): Remove temporary cast to char *
953 * objc-lang.c (find_imps): Make argument 'method' const.
955 * objc-lang.h (find_imps): Likewise.
957 2013-10-01 Keith Seitz <keiths@redhat.com>
959 * completer.c (skip_quoted_chars): Make all arguments const.
961 (skip_quoted): Likewise.
962 * completer.h (skip_quoted_chars): Likewise.
963 (skip_quoted): Likewise.
964 * defs.h (skip_quoted): Remove duplicate declaration.
965 * jv-exp.y: Include completer.h.
966 (yylex): Remove unneccessary cast to char * fro skip_quoted.
967 * p-exp.y: Include completer.h.
969 2013-10-01 Keith Seitz <keiths@redhat.com>
971 * c-exp.y (parse_number): Make first argument const.
972 Make a copy of the input to manipulate.
973 (c_parse_escape): Make first argument const.
974 Make local variable 'tokptr' const.
975 (parse_string_or_char): Make first two arguments const.
976 (macro_original_text): Make const.
977 (lex_one_token): Make local variable 'tokstart' const.
978 Likewise for local variables named 'p'.
979 Cast away const for struct stoken (temporary).
980 * c-lang.h (c_parse_escpae): Make first argument const.
981 * cli/cli-cmds.c (echo_command): Make local variable 'p'
983 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
985 * f-exp.y (parse_number): Make first argument const.
986 (match_string_literal): Make local variable 'tokstart'
988 (yylex): Make local variable 'p' const.
989 Cast away const for struct stoken (temporary).
990 * go-exp.y (parse_number): Make first argument const.
991 (parse_string_or_char): Likewise.
992 Make local variable 'tokstart' const.
993 (lex_one_token): Likewise for numerous locals called 'p'.
994 Cast away const for struct stoken (temporary).
995 * jv-exp.y (parse_number): Make first argument const.
996 Make local variables 'tokstart' and 'tokptr' const.
997 Cast away const for call to skip_quoted (temporary).
998 (yylex): Make local variable 'p' const.
999 Cast away const for struct stoken (temporary).
1000 * m2-exp.y (parse_number): Make local variable 'p' const.
1001 (yylex): Likewise for 'tokstart'.
1002 Cast away const for struct stoken (temporary).
1003 Make local variable 'p' const.
1004 * macroexp.c (get_character_constant): Pass a const string
1006 (get_string_literal): Likewise.
1007 (macro_expand_next): Make first argument const.
1008 Cast away const for init_shared_buffer.
1009 * macroexp.h (macro_expand_next): Make first argument const.
1010 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1011 Pass a const string to c_parse_escape.
1012 Make local variables 'p' and 'namestart' const.
1013 * parse.c (lexptr): Make const.
1014 (prev_lexptr): Likewise.
1015 (find_template_name_end): Return const.
1016 Make argument const, too.
1017 (parse_exp_in_context): Make first argument const.
1018 Remove the entire const_hack.
1019 (parse_exp_in_context_1): Make first argument const.
1020 * parser-defs.h (find_template_name_end): Return const.
1021 Make argument const, too.
1022 (lexptr): Make const.
1023 (prev_lexptr): Likewise.
1024 * utils.c (parse_escape): Make second argument const.
1025 * utils.h (parse_escape): Likewise.
1027 2013-10-01 Keith Seitz <keiths@redhat.com>
1029 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1031 (block_lookup): Make 'raw_name' and 'name' const.
1032 * ada-lex.l (processString): Update for struct stoken.ptr.
1033 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1034 (operator_stoken): Likewise.
1035 (lex_one_token): Remove temporary cast to char * for
1037 * f-exp.y (yylex): Likewise.
1038 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1039 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1040 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1042 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1043 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1044 * linespec.c (struct ls_parser): Make 'stream' const.
1045 (find_parameter_list_end): Make argument 'input' and local
1047 (linespec_lexer_lex_string): Make local variables 'start' and
1049 Use skip_spaces_const instead of skip_spaces.
1050 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1052 (parse_linespec): Temporarily cast 'argptr' to const for
1053 'parser->lexer.stream'.
1054 * m2-exp.y (yylex): Remove temporary cast to char * for
1056 * objc-lang.c (add_msglist): Make local variable 'p' const.
1057 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1058 (exp : STRING): Make 'sp' const.
1059 (parse_number): Make argument 'p' const.
1060 * parser-defs.h (struct stoken): Make 'ptr' const.
1062 2013-10-01 Doug Evans <dje@google.com>
1064 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1066 2013-10-01 Yao Qi <yao@codesourcery.com>
1068 * varobj.c (c_value_of_root): Remove declaration.
1069 (cplus_value_of_root, java_value_of_root): Likewise.
1070 (ada_value_of_root): Likewise.
1071 (struct language_specific) <value_of_root>: Remove.
1072 (languages): Update initialization.
1073 (check_scope): Move earlier.
1074 (c_value_of_root): Move earlier and rename to ...
1075 (value_of_root_1): ... this.
1076 (value_of_root): Caller update.
1077 (cplus_value_of_root, java_value_of_root): Remove.
1078 (ada_value_of_root): Remove.
1080 2013-10-01 Yao Qi <yao@codesourcery.com>
1082 * varobj.c (varobj_format_string): Remove "unknown".
1083 (languages): Remove the first element.
1084 * varobj.h (enum varobj_languages): Remove vlang_c.
1086 2013-10-01 Yao Qi <yao@codesourcery.com>
1088 * varobj.c (struct language_specific) <language>: Remove.
1089 (languages): Update the initialization.
1091 2013-10-01 Yao Qi <yao@codesourcery.com>
1093 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1094 "solib-target.h". Include "windows-tdep.h".
1095 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1096 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1097 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1098 windows-tdep.o to gdb_target_obs.
1100 2013-10-01 Yao Qi <yao@codesourcery.com>
1102 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1104 (amd64_windows_init_abi): Don't call set_solib_ops and
1105 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1106 windows_init_abi instead.
1107 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1109 (i386_cygwin_init_abi): Don't call set_solib_ops,
1110 set_gdbarch_has_dos_based_file_system and
1111 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1112 windows_init_abi instead.
1113 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1114 (windows_init_abi): New function.
1115 (windows_iterate_over_objfiles_in_search_order): Make it
1117 * windows-tdep.h (windows_init_abi): Declare.
1118 (windows_iterate_over_objfiles_in_search_order): Remove
1121 2013-10-01 Jerome Guitton <guitton@adacore.com>
1123 Checked in by Joel Brobecker <brobecker@adacore.com>
1124 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1125 incomplete dictionnary instead of None in case of missing
1126 environment variables.
1127 (elinos_init): in case of an incomplete environment, best
1128 effort to load system libraries instead of abort.
1130 2013-10-01 Joel Brobecker <brobecker@adacore.com>
1132 * ada-lang.c (ada_has_this_exception_support): Ignore
1133 mst_solib_trampoline minimal symbols.
1135 2013-09-30 Tristan Gingold <gingold@adacore.com>
1137 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1138 hardware watchpoint.
1139 (i386_darwin_dr_set): Support 32 and 64 bit states.
1140 (i386_darwin_dr_get): Likewise.
1141 (i386_darwin_dr_set_control): Make static.
1142 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1143 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1145 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
1147 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1148 Replace TIDGET with ptid_get_lwp.
1149 Replace GET_LWP with ptid_get_lwp.
1150 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1151 Replace BUILD_THREAD with ptid_build.
1152 Replace BUILD_LWP with ptid_build.
1153 Replace PIDGET with ptid_get_pid.
1154 Replace TIDGET with ptid_get_lwp.
1155 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1156 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1157 Replace TIDGET with ptid_get_lwp.
1158 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1159 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1160 Replace TIDGET with ptid_get_lwp.
1161 Replace GET_LWP with ptid_get_lwp.
1162 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1164 * breakpoint.c: Likewise.
1165 * common/ptid.c (ptid_is_pid): Condense check for
1166 null_ptid and minus_one_ptid.
1167 (ptid_lwp_p): New function.
1168 (ptid_tid_p): New function.
1169 * common/ptid.h: Update comments for accessors.
1170 (ptid_lwp_p): New prototype.
1171 (ptid_tid_p): New prototype.
1172 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1173 * gcore.c: Replace PIDGET with ptid_get_pid.
1174 * gdbthread.h: Likewise.
1175 * gnu-nat.c: Likewise.
1176 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1177 Replace TIDGET with ptid_get_lwp.
1178 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1179 * hppanbsd-nat.c: Likewise.
1180 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1181 Replace TIDGET with ptid_get_lwp.
1182 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1183 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1184 * infcmd.c: Likewise.
1185 * inferior.h: Likewise.
1186 * inflow.c: Likewise.
1187 * infrun.c: Likewise.
1188 * linux-fork.c: Likewise.
1189 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1190 Replace GET_PID with ptid_get_pid.
1191 Replace is_lwp with ptid_lwp_p.
1192 Replace GET_LWP with ptid_get_lwp.
1193 Replace BUILD_LWP with ptid_build.
1195 2013-09-28 Mike Frysinger <vapier@gentoo.org>
1197 * common/linux-btrace.c: Move sys/syscall.h out of the
1198 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1199 Also check for SYS_perf_event_open before attempting to buid.
1201 2013-09-27 Doug Evans <dje@google.com>
1203 * dwarf2read.c (dwarf2_section_info): Add comment.
1204 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1206 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1207 (dwarf2_read_section): Delete unused local "header". Add section
1208 name to error message.
1209 (create_dwo_in_dwp): Tweak comment.
1210 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1212 * dwarf2read.c (die_reader_specs): Tweak comment.
1213 (get_section_bfd_owner, get_section_bfd_section): New functions.
1214 (get_section_name, get_section_file_name): New functions.
1215 (get_section_id, get_section_flags): New functions.
1216 (*): Use new functions to access section fields.
1218 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1219 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1220 arg "htab". All callers updated.
1221 (create_debug_types_hash_table): Remove redundant copy of
1223 (create_dwo_in_dwp): Tweak comments.
1224 (read_str_index): Tweak comment. Record dwarf form name in static
1227 2013-09-27 Pedro Alves <palves@redhat.com>
1229 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1230 (remote_filename_p): Add comment.
1231 * remote.c (remote_filename_p): Adjust to use
1232 REMOTE_SYSROOT_PREFIX.
1233 * solib.c (solib_find): When deciding whether we need to add a
1234 directory separator, check whether the sysroot is "remote:"
1235 instead of checking whether the patch has a drive spec. Add
1238 2013-09-27 Pedro Alves <palves@redhat.com>
1240 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1242 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1245 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1247 Fix set debug frame output.
1248 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1249 SENTINEL_FRAME entry lower to match enum frame_type order.
1251 2013-09-26 Pierre Muller <muller@sourceware.org>
1253 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1254 AMD64_R15_REGNUM when a register index is expected.
1255 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1256 Substitute in array.
1257 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1258 (amd64_push_arguments): Substitute in integer_regnum array.
1260 2013-09-25 Doug Evans <dje@google.com>
1262 * objfiles.c (allocate_objfile): Move comment to better place.
1264 New option "set debug symfile on".
1265 * NEWS: Mention "set debug symfile".
1266 * Makefile.in (SFILES): Add symfile-debug.c.
1267 (COMMON_OBS): Add symfile-debug.o.
1268 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1269 objfile's symbol functions.
1270 * objfiles.h (objfile_set_sym_fns): Declare.
1271 * symfile-debug.c: New file.
1272 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1273 objfile's symbol functions.
1274 (reread_symbols): Ditto.
1276 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1278 (add_symtab_fns): Update prototype.
1279 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1280 (registered_sym_fns): ... this.
1281 (symtab_fns): Update.
1282 (add_symtab_fns): New arg "flavour". All callers updated.
1283 (find_sym_fns): Rewrite to use new sym_fns registry.
1285 * symfile.h (struct sym_fns): Add "objfile" argument to
1286 sym_read_linetable. All uses updated.
1288 * symtab.c (domain_name, search_domain_name): New functions.
1289 * symtab.h (domain_name, search_domain_name): Declare.
1291 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1292 map_matching_symbols so objfile is first. All uses updated.
1293 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1294 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1296 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1299 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1302 2013-09-24 Doug Evans <dje@google.com>
1304 * objfiles.c (free_objfile): Move comment.
1306 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1308 * ada-exp.y (string_to_operator): Delete.
1309 (dummy_string_to_ada_operator): Delete.
1311 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1314 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1316 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1317 call_dummy_integer_regs, and classify.
1318 * amd64-tdep.h (amd64_classify): Add declaration.
1319 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1320 (amd64_reg_class): Delete, moved to i386-tdep.h.
1321 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1322 Replace call to amd64_classify by call to tdep->classify.
1323 (amd64_push_arguments): Get the list of registers to use for
1324 passing integer parameters from the gdbarch tdep structure,
1325 rather than using a hardcoded one. Replace calls to amd64_classify
1326 by calls to tdep->classify.
1327 (amd64_push_dummy_call): Get the register number used for
1328 the "hidden" argument from tdep->call_dummy_integer_regs.
1329 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1330 and tdep->call_dummy_integer_regs. Set tdep->classify.
1332 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1335 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1336 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1337 where tdep->memory_args_by_pointer is non-zero.
1339 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1342 * i386-tdep.h (struct gdbarch_tdep): Add new field
1343 integer_param_regs_saved_in_caller_frame.
1344 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1345 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1347 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1349 * amd64-windows-tdep.c: #include "value.h"
1350 (amd64_windows_classify): Delete.
1351 (amd64_windows_passed_by_integer_register)
1352 (amd64_windows_passed_by_xmm_register)
1353 (amd64_windows_passed_by_pointer)
1354 (amd64_windows_adjust_args_passed_by_pointer)
1355 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1356 (amd64_windows_push_dummy_call): New functions.
1357 (amd64_windows_init_abi): Remove setting of
1358 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1359 tdep->classify, tdep->memory_args_by_pointer and
1360 tdep->integer_param_regs_saved_in_caller_frame.
1361 Add call to set_gdbarch_push_dummy_call.
1363 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1365 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1366 objfile->original_name.
1368 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1370 Pass down original filename for objfile.
1371 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1372 * elfread.c (elf_symfile_read): Likewise.
1373 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1374 longer set ORIGINAL_NAME.
1375 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1376 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1377 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1378 symbol_file_add_from_bfd call.
1379 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1380 (macho_check_dsym): Add parameter filenamep. Change function comment.
1382 (macho_symfile_read): New variable dsym_filename. Update
1383 macho_check_dsym call. Use it for symbol_file_add_separate.
1384 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1385 it. Use it for objfile->original_name.
1386 (objfile_name): Return OBFD's filename, if available.
1387 * objfiles.h (allocate_objfile): Add new parameter name.
1388 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1389 * symfile-mem.c (symbol_file_add_from_memory): Update
1390 symbol_file_add_from_bfd call.
1391 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1393 (symbol_file_add_with_addrs): New parameter name, add function comment
1394 for it. Remove variable name. Update allocate_objfile call.
1395 (symbol_file_add_separate): New parameter name, add function comment
1396 for it. Update symbol_file_add_with_addrs call.
1397 (symbol_file_add_from_bfd): New parameter name. Update
1398 symbol_file_add_with_addrs call.
1399 (symbol_file_add): Update symbol_file_add_from_bfd call.
1400 (reread_symbols): New variable original_name. Save
1401 objfile->original_name by it.
1402 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1405 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1407 Code cleanup: Add objfile_name accessor function.
1408 * ada-lang.c (is_known_support_routine): Use objfile_name.
1409 * auto-load.c (source_gdb_script_for_objfile)
1410 (auto_load_objfile_script): Likewise.
1411 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1412 * dbxread.c (dbx_symfile_read): Likewise.
1413 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1414 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1415 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1416 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1417 (lookup_dwp_signatured_type, lookup_dwo_unit)
1418 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1419 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1420 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1421 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1422 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1423 (read_subrange_type, load_partial_dies, read_partial_die)
1424 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1425 (die_containing_type, build_error_marker_type, lookup_die_type)
1426 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1427 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1428 (get_DW_AT_signature_type, write_psymtabs_to_index)
1429 (save_gdb_index_command): Likewise.
1430 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1432 * expprint.c (dump_subexp_body_standard): Likewise.
1433 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1434 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1436 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1437 obj_name, use objfile_name for it, use the variable.
1438 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1440 * machoread.c (macho_symtab_read, macho_check_dsym)
1441 (macho_symfile_relocate): Likewise.
1442 * maint.c (maintenance_translate_address): Likewise.
1443 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1444 * minsyms.c (install_minimal_symbols): Likewise.
1445 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1447 (filter_overlapping_sections): Use objfile_name.
1448 (objfile_name): New function.
1449 * objfiles.h (struct objfile): Rename field name to original_name.
1450 (objfile_name): New prototype.
1451 * printcmd.c (sym_info, address_info): Use objfile_name.
1452 * probe.c (parse_probes, collect_probes, compare_probes)
1453 (info_probes_for_ops): Likewise.
1454 * progspace.c (clone_program_space): Likewise.
1455 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1456 (maintenance_info_psymtabs): Likewise.
1457 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1458 (source_section_scripts): Likewise.
1459 * python/py-objfile.c (objfpy_get_filename): Likewise.
1460 * python/py-progspace.c (pspy_get_filename): Likewise.
1461 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1462 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1463 * solib.c (solib_read_symbols): Likewise.
1464 * stabsread.c (scan_file_globals): Likewise.
1465 * stap-probe.c (handle_stap_probe): Likewise.
1466 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1467 (find_separate_debug_file_by_debuglink): Likewise.
1468 (reread_symbols): Likewise. Use the objfile field name renamed to
1470 (allocate_symtab): Use objfile_name.
1471 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1472 (dump_objfile, dump_msymbols, dump_symtab_1)
1473 (maintenance_print_msymbols, maintenance_print_objfiles)
1474 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1475 * target.c (target_translate_tls_address, target_info): Likewise.
1476 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1479 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1482 * probe.c (parse_probes): Rename variable objfile_name to
1485 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1487 Remove solib-sunos.c.
1488 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1489 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1490 * objfiles.c (rt_common_objfile): Remove.
1491 (free_objfile): Remove rt_common_objfile comparison.
1492 * objfiles.h (rt_common_objfile): Remove.
1493 * solib-sunos.c: Remove.
1494 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1496 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1498 Remove a.out NetBSD and OpenBSD hosts.
1499 * NEWS (Removed native configurations): New.
1500 * config/arm/nbsdaout.mh: Remove.
1501 * config/i386/nbsdaout.mh: Remove.
1502 * config/i386/obsdaout.mh: Remove.
1503 * config/m68k/nbsdaout.mh: Remove.
1504 * config/sparc/nbsdaout.mh: Remove.
1505 * config/vax/nbsdaout.mh: Remove.
1506 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1507 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1508 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1510 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1511 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1512 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1514 2013-09-23 Tom Tromey <tromey@redhat.com>
1516 * linespec.c (struct minsym_and_objfile): Remove.
1517 (minsym_and_objfile_d): Remove.
1518 (struct linespec, struct collect_info, linespec_parse_basic)
1519 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1520 (compare_msymbols, find_method, find_function_symbols)
1521 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1522 (add_minsym, search_minsyms_for_name): Update.
1524 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1526 * regcache.c: Add include of valprint.h.
1527 (dump_endian_bytes): Delete.
1528 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1530 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1532 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1534 2013-09-19 Pedro Alves <palves@redhat.com>
1536 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1539 2013-09-19 Pedro Alves <palves@redhat.com>
1540 Thomas Schwinge <thomas@codesourcery.com>
1541 Yue Lu <hacklu.newborn@gmail.com>
1543 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1544 Take a gdb_byte pointer instead of a char pointer.
1546 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1547 gnu_xfer_partial helper.
1548 (gnu_xfer_partial): New function.
1549 (gnu_target): Don't install a deprecated_xfer_memory hook.
1550 Install a to_xfer_partial hook.
1552 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1555 * main.c (captured_main): Replace catch_command_errors by
1556 catch_command_errors_const. Twice.
1557 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1558 (symbol_file_add): Make name parameter const.
1559 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1560 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1561 variable name. Change their usage accordingly.
1562 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1564 (symbol_file_add_main): Make args parameter const.
1566 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1567 Ulrich Weigand <uweigand@de.ibm.com>
1569 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1571 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1573 2013-09-18 Pedro Alves <palves@redhat.com>
1574 Yue Lu <hacklu.newborn@gmail.com>
1576 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1577 (gnu_create_inferior)
1578 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1579 (set_sig_thread_cmd): Use the lwpid field of ptids to
1580 store/extract thread ids instead of the tid field.
1581 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1583 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1585 * infcmd.c (default_print_one_register_info): Add detection of
1586 optimized out values.
1587 (default_print_registers_info): Switch to using
1588 get_frame_register_value.
1590 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1592 * infrun.c (handle_inferior_event): Check if we know the
1593 function start address before setting a resume breakpoint.
1595 2013-09-18 Pedro Alves <palves@redhat.com>
1597 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1598 minus_one_ptid instead of looking at the ptid's tid field and
1599 comparing that to -1.
1601 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1603 * main.h (get_gdb_program_name): Remove extra whitespace.
1605 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1607 * main.h (get_gdb_program_name): Add declaration.
1608 * main.c (get_gdb_program_name): Add definition.
1610 2013-09-17 Doug Evans <dje@google.com>
1612 * dwarf2read.c: Move definitions of complaint functions to after
1613 forward declarations of local functions.
1615 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1616 Pedro Alves <palves@redhat.com>
1619 * breakpoint.c (remove_threaded_breakpoints): New function.
1620 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1621 as thread_exit observer.
1623 2013-09-17 Pedro Alves <palves@redhat.com>
1626 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1627 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1628 * corelow.c (core_open):
1629 * frame.h (print_stack_frame, print_frame_info): New
1630 'set_current_sal' parameter.
1631 * infcmd.c (finish_command, kill_command): Adjust call to
1633 * inferior.c (inferior_command): Likewise.
1634 * infrun.c (normal_stop): Likewise.
1635 * linux-fork.c (linux_fork_context): Likewise.
1636 * record-full.c (record_full_goto_entry, record_full_restore):
1638 * remote-mips.c (common_open): Likewise.
1639 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1641 (print_frame_info): New 'set_current_sal' parameter. Set the last
1642 displayed sal depending on the new paremeter instead of looking at
1644 (backtrace_command_1, select_and_print_frame, frame_command)
1645 (current_frame_command, up_command, down_command): Adjust call to
1647 * thread.c (print_thread_info, restore_selected_frame)
1648 (do_captured_thread_select): Adjust call to print_stack_frame.
1649 * tracepoint.c (tfind_1): Likewise.
1650 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1651 (mi_cmd_stack_info_frame): Likewise.
1652 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1653 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1655 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1657 * value.c (isvoid_internal_fn): Replace "parameter" with
1660 2013-09-16 Stan Shebs <stan@codesourcery.com>
1662 * README: Update references to writing code for GDB.
1663 * configure.ac (build_warnings): Remove obsolete comment.
1664 * configure: Regenerate.
1665 * gdbarch.sh: Remove references to gdbint.texinfo.
1666 * gdbarch.h: Regenerate.
1667 * gdbtypes.c (objfile_type): Remove comments referencing internals
1670 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1672 * NEWS: Mention new convenience function $_isvoid.
1673 * value.c (isvoid_internal_fn): New function.
1674 (_initialize_values): Add new convenience function $_isvoid.
1676 2013-09-16 Pierre Muller <muller@sourceware.org>
1678 * arm-linux-tdep.c: Add "elf/common.h" header.
1679 Remove AT_HWCAP macro definintion as it is provided in
1681 * s390-tdep.c: Remove system header <elf.h>
1682 Add "elf/common.h" header for AT_HWCAP definition.
1683 (s390_core_read_description): Use correct CORE_ADDR
1684 for hwcap local variable used as third parameter
1685 of function target_auxv_search.
1687 2013-09-14 Pierre Muller <muller@sourceware.org>
1688 Tom Tromey <tromey@redhat.com>
1689 Pedro Alves <palves@redhat.com>
1691 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1692 mode if operating system doesn't know O_CLOEXEC.
1694 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1697 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1700 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1702 * NEWS: Mention TDB support.
1703 * features/s390-tdb.xml: New file.
1704 * features/s390-te-linux64.xml: New file.
1705 * features/s390x-te-linux64.xml: New file.
1706 * features/Makefile (WHICH): Add new tdescs above.
1707 (s390-te-linux64-expedite): Set.
1708 (s390x-te-linux64-expedite): Set.
1709 * features/s390-te-linux64.c: New file (generated).
1710 * features/s390x-te-linux64.c: New file (generated).
1711 * regformats/s390-te-linux64.dat: New file (generated).
1712 * regformats/s390x-te-linux64.dat: New file (generated).
1713 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1714 (HWCAP_S390_TE): Likewise.
1715 (S390_TDB_DWORD0_REGNUM): Likewise.
1716 (S390_TDB_DWORD0_REGNUM): Likewise.
1717 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1718 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1719 (S390_TDB_ATIA_REGNUM): Likewise.
1720 (S390_TDB_R0_REGNUM): Likewise.
1721 (S390_TDB_R1_REGNUM): Likewise.
1722 (S390_TDB_R2_REGNUM): Likewise.
1723 (S390_TDB_R3_REGNUM): Likewise.
1724 (S390_TDB_R4_REGNUM): Likewise.
1725 (S390_TDB_R5_REGNUM): Likewise.
1726 (S390_TDB_R6_REGNUM): Likewise.
1727 (S390_TDB_R7_REGNUM): Likewise.
1728 (S390_TDB_R8_REGNUM): Likewise.
1729 (S390_TDB_R9_REGNUM): Likewise.
1730 (S390_TDB_R10_REGNUM): Likewise.
1731 (S390_TDB_R11_REGNUM): Likewise.
1732 (S390_TDB_R12_REGNUM): Likewise.
1733 (S390_TDB_R13_REGNUM): Likewise.
1734 (S390_TDB_R14_REGNUM): Likewise.
1735 (S390_TDB_R15_REGNUM): Likewise.
1736 (S390_NUM_REGS): Increase.
1737 (S390_IS_TDBREGSET_REGNUM): New macro.
1738 (s390_regmap_tdb): Declare.
1739 (s390_sizeof_tdbregset): Define.
1740 (tdesc_s390_te_linux64): Declare.
1741 (tdesc_s390x_te_linux64): Likewise.
1742 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1743 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1744 (s390_regmap_tdb): New regmap.
1745 (s390_supply_tdb_regset): New function.
1746 (s390_tdb_regset): New regset.
1747 (s390_linux64v2_regset_sections): Add TDB regset to list.
1748 (s390x_linux64v2_regset_sections): Likewise.
1749 (s390_regset_from_core_section): Recognize TDB core note section.
1750 (s390_core_read_description): If HWCAP indicates TE support,
1751 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1752 (s390_gdbarch_init): Handle TDB regset.
1753 (_initialize_s390_tdep): Initialize new tdescs.
1754 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1755 (have_regset_tdb): New variable.
1756 (s390_native_supply): Support register invalidation.
1757 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1758 (check_regset): Treat ENODATA as "regset exists".
1759 (s390_linux_fetch_inferior_registers): Add TDB.
1760 (s390_read_description): Check for TDB existence and select
1762 * gdbserver/Makefile.in (clean): Add removal of new makefile
1764 (s390-te-linux64.c): New makefile target.
1765 (s390x-te-linux64.c): Likewise.
1766 * gdbserver/configure.srv (srv_regobj): Append new objects
1767 s390-te-linux64.o and s390x-te-linux64.o.
1768 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1769 s390x-te-linux64.xml, and s390-tdb.xml.
1770 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1772 (tdesc_s390_te_linux64): Likewise.
1773 (init_registers_s390x_te_linux64): Likewise.
1774 (tdesc_s390x_te_linux64): Likewise.
1775 (s390_check_regset): Treat ENODATA as "regset exists".
1776 (s390_arch_setup): Add TDB regset support.
1777 (initialize_low_arch): Initialize registers for new tdescs.
1779 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1781 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1782 (S390_IS_FPREGSET_REGNUM): New macro.
1783 * s390-tdep.c (s390_dwarf_regmap): Make const.
1784 (regnum_is_gpr_full): New function for replacing repeated code.
1785 (s390_pseudo_register_name): Use it.
1786 (s390_pseudo_register_type): Likewise.
1787 (s390_pseudo_register_read): Likewise.
1788 (s390_pseudo_register_write): Likewise.
1789 (s390_unwind_pseudo_register): Likewise.
1790 (s390_regmap_gregset): New format for regmap.
1791 (s390x_regmap_gregset): Likewise.
1792 (s390_regmap_fpregset): Likewise.
1793 (s390_regmap_upper): Likewise.
1794 (s390_regmap_last_break): Likewise.
1795 (s390_regmap_system_call): Likewise.
1796 (s390_supply_regset): Adjust to new regmap format.
1797 (s390_collect_regset): Likewise.
1798 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1799 (s390_native_collect): Likewise.
1800 (supply_gregset): Likewise.
1801 (fill_gregset): Likewise.
1802 (supply_fpregset): Likewise.
1803 (fill_fpregset): Likewise.
1804 (fetch_regset): Likewise.
1805 (store_regset): Likewise.
1806 (s390_linux_fetch_inferior_registers): Likewise.
1807 (s390_linux_fetch_inferior_registers): Likewise.
1809 2013-09-12 Andrew Pinski <apinski@cavium.com>
1811 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1813 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1815 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1817 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
1819 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1821 2013-09-06 Pedro Alves <palves@redhat.com>
1823 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1824 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1825 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1826 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1827 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1830 2013-09-06 Pedro Alves <palves@redhat.com>
1832 * remote-sim.c (dump_mem): Constify buf parameter.
1833 gdbsim_xfer_inferior_memory): Rename to ...
1834 (gdbsim_xfer_memory): ... this. Adjust interface as
1835 target_xfer_partial helper.
1836 (gdbsim_xfer_partial): New function.
1837 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1838 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1840 2013-09-06 Pedro Alves <palves@redhat.com>
1842 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1843 host_address_to_string, and send debug output to gdb_stdlog.
1845 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1847 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1848 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1849 gdb_target_obs for cris target.
1850 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1851 (cris_gdbarch_init): Move calls to
1852 set_gdbarch_fetch_tls_load_module_address and
1853 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1854 Add call to gdbarch_init_osabi.
1855 * cris-linux-tdep.c: New file.
1856 * cris-tdep.h: New file.
1858 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1860 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1861 to deprecated_init_ui_hook.
1863 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1865 * cli/cli-interp.c (_initialize_cli_interp): Add a
1866 command_loop_proc to interp_procs.
1867 * event-top.c (cli_command_loop): Change signature to match
1868 interp_command_loop_ftype.
1869 * event-top.h (cli_command_loop): Same.
1870 * interps.c (interp_new): Require every interpreter to have a
1872 (current_interp_command_loop): Just call the command_loop_proc on
1873 the current interpreter.
1874 * tui/tui-interp.c (_initialize_tui_interp): Add a
1875 command_loop_proc to interp_procs.
1877 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1879 * cris-tdep.c (cris_gdbarch_init): Add call to
1880 get_gdbarch_fetch_tls_load_module_address.
1882 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1884 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1885 (cris_elf_gregset_t): Rename from elf_gregset_t.
1886 (crisv32_elf_gregset_t): Adjust.
1887 (cris_supply_gregset, fetch_core_registers): Adjust.
1889 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1891 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1893 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
1895 * defs.h (deprecated_command_loop_hook): Remove, including
1896 references in comments.
1897 * interps.c (current_interp_command_loop): No longer use
1898 deprecated_command_loop_hook.
1899 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1901 * top.c (deprecated_command_loop_hook): Remove.
1903 2013-09-05 Pedro Alves <palves@redhat.com>
1905 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1906 local is now int instead of ULONGEST. Print it with %d
1907 instead of paddress.
1909 2013-09-05 Tristan Gingold <gingold@adacore.com>
1911 * MAINTAINERS: Remove avr maintainership.
1913 2013-09-05 Pedro Alves <palves@redhat.com>
1915 * findvar.c (value_of_register): Rework in terms of
1916 value_of_register_lazy.
1918 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1920 * symfile.c (add_symbol_file_command): Remove trailing
1921 whitespaces and blank line after comment.
1923 2013-09-05 Pedro Alves <palves@redhat.com>
1925 * tui/tui-regs.c (tui_register_format): Don't look at the
1926 register's name here. Return string representing register
1927 value instead of storing it in the data element.
1928 (tui_get_register): Compare register string representations
1929 instead of register value states and contents.
1931 2013-09-05 Pedro Alves <palves@redhat.com>
1934 * tui/tui-regs.c (tui_show_registers): Show registers of the
1935 selected frame, not the current frame.
1937 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
1939 * MAINTAINERS (Write After Approval): Add myself to the list.
1941 2013-09-04 Doug Evans <dje@google.com>
1943 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1944 (queue_and_load_dwo_tu): New function.
1945 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1946 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1947 Make dependent_cu optional.
1948 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1949 and an older .gdb_index is in use, queue and load all its TUs too.
1951 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1953 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1954 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1955 variable search_flags.
1956 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1957 (OPF_RETURN_REALPATH): ... here.
1958 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1959 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1961 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1963 * solib.c (solib_find): Likewise. Four times.
1964 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1965 in the function comment and for the realpath_fptr variable.
1966 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1967 (find_and_open_source): Likewise. Twice.
1968 * symfile.c (symfile_bfd_open): Likewise, also twice.
1970 2013-09-04 Doug Evans <dje@google.com>
1972 * progspace.c (save_current_space_and_thread): Remove unnecessary
1973 call to save_current_inferior.
1975 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
1977 * sh64-tdep.c (sh64_do_register): Return after printing message
1978 about unavailable register contents.
1980 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1981 Pedro Alves <palves@redhat.com>
1983 * symfile.c (add_symbol_file_command): Error out on unknown
1984 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1985 options and collapse into single conditional branch.
1987 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
1989 * inf-child.c (inf_child_follow_fork): New parameter
1991 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1992 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1993 * inferior.h (detach_fork): Remove.
1994 * infrun.c (detach_fork): Adjust comment and make it
1996 (follow_fork): Pass detach_fork parameter to
1998 * linux-nat.c (linux_child_follow_fork): New parameter
2000 * target.c (target_follow_fork): New parameter detach_fork.
2001 Pass detach_fork as parameter and print its value.
2002 * target.h (struct target_ops) <to_follow_fork>: New int
2004 (target_follow_fork): New parameter detach_fork.
2006 2013-09-03 Joel Brobecker <brobecker@adacore.com>
2008 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2009 Replace sec->bfd by sec->the_bfd_section->owner.
2011 2013-09-03 Yao Qi <yao@codesourcery.com>
2013 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2014 from linux_has_shared_address_space.
2015 (linux_has_shared_address_space): Call linux_is_uclinux.
2016 * linux-tdep.h (linux_is_uclinux): Declare.
2017 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2020 2013-09-03 Yao Qi <yao@codesourcery.com>
2022 * config/djgpp/fnchange.lst: Remove entry of
2023 i386-interix-nat.c and i386-interix-tdep.c.
2024 * configure.ac: Remove '*-*-interix*'.
2025 * configure: Re-generated.
2026 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2027 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2029 * osabi.c (gdb_osabi_names): Remove "Interix".
2031 2013-09-03 Yao Qi <yao@codesourcery.com>
2033 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2035 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2037 * record.h (record_print_flag) <record_print_src_line,
2038 record_print_insn_range>: Rename into ...
2039 (record_print_flag) <record_print_src_line,
2040 record_print_insn_range>: ... this. Update all users.
2042 2013-09-02 Pierre Muller <muller@sourceware.org>
2044 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2047 2013-09-02 Pierre Muller <muller@sourceware.org>
2049 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2050 by use of plongest function.
2052 2013-09-02 Tristan Gingold <gingold@adacore.com>
2054 * NEWS: Add entry mentioning support for native Windows x64
2057 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2058 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2059 (struct amd64_windows_frame_cache): New struct.
2060 (amd64_windows_w2gdb_regnum): New global.
2061 (pc_in_range, amd64_windows_frame_decode_epilogue)
2062 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2063 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2064 (amd64_windows_frame_this_id): New functions.
2065 (amd64_windows_frame_unwind): New static global.
2066 (amd64_windows_skip_prologue): New function.
2067 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2068 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2069 with amd64_windows_skip_prologue.
2071 2013-08-30 Joel Brobecker <brobecker@adacore.com>
2075 2013-08-30 Pedro Alves <palves@redhat.com>
2077 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2080 2013-08-30 Pedro Alves <palves@redhat.com>
2082 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2085 2013-08-30 Pedro Alves <palves@redhat.com>
2087 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2088 Adjust arguments to print_stack_frame.
2090 2013-08-30 Pedro Alves <palves@redhat.com>
2092 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2094 2013-08-30 Pedro Alves <palves@redhat.com>
2096 * frame.h (show_and_print_stack_frame): Delete declaration.
2098 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2102 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2103 (archpy_name): Check for valid architecture.
2104 (archpy_disassemble): Ditto.
2106 2013-08-29 Joel Brobecker <brobecker@adacore.com>
2108 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2109 instead of "long long" in call to ptrace64.
2111 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
2113 * mi/mi-interp.c (mi_command_loop): Change signature to match
2114 interp_command_loop_ftype.
2115 (mi1_command_loop): Remove.
2116 (mi2_command_loop): Remove.
2117 (mi3_command_loop): Remove.
2118 (mi_interpreter_resume): Remove setting of
2119 deprecated_command_loop_hook.
2120 (_initialize_mi_interp): Set mi_command_loop as the command loop
2123 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2125 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2128 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2130 * value.c (allocate_value_contents): Make static.
2131 * value.h (allocate_value_contents): Remove prototype.
2133 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2135 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2136 of assembling value via allocate_value_lazy and attribute setter.
2137 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2138 assembling value via allocate_value_lazy and attribute setter.
2139 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2140 assembling value via allocate_value_lazy and attribute setter.
2142 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2144 * value.c (value_from_contents_and_address): Replace allocate_value and
2145 memcpy with value_from_contents.
2147 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2149 * python/py-framefilter.c (py_print_frame): Remove usage of
2150 PyString_AsString. Use python_string_to_host_string instead.
2151 Refactor function to work with a string as a new allocation
2152 instead of a pointer.
2153 (py_print_frame): Ditto.
2154 * python/lib/gdb/frames.py (return_list): Cain iterators together
2155 instead of adding them as a list.
2156 (_sort_list): Call return_list, and remove duplicate code.
2157 (execute_frame_filters): Convert iterator to a list with list().
2158 * python/lib/gdb/command/frame_filters.py
2159 (SetFrameFilterPriority._set_filter_priority): Convert priority
2160 attribute to an integer.
2161 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2162 wrapper function __next__.
2163 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2166 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2169 * python/py-framefilter.c (apply_frame_filter): Check
2170 gdb_python_initialized. Exit if the Python frame-filter code
2171 cannot be initialized.
2173 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2176 * top.c (print_gdb_version): Remove erroneous newline after help
2179 2013-08-29 Yao Qi <yao@codesourcery.com>
2181 * varobj.c (install_dynamic_child): Remove trailing space.
2182 Add one blank line after variable declaration.
2184 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2187 * corefile.c (get_exec_file): Use exec_filename.
2188 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2189 * exec.c (exec_close): Free EXEC_FILENAME.
2190 (exec_file_attach): New variable canonical_pathname. Use
2191 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2193 * exec.h (exec_filename): New.
2194 * inferior.c (print_inferior, inferior_command): Use
2195 PSPACE_EXEC_FILENAME.
2196 * mi/mi-main.c (print_one_inferior): Likewise.
2197 * progspace.c (clone_program_space, print_program_space): Likewise.
2198 * progspace.h (struct program_space): New field pspace_exec_filename.
2199 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2200 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2202 2013-08-28 Will Newton <will.newton@linaro.org>
2204 * common/linux-ptrace.c: Include stdint.h unconditionally.
2206 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2209 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2211 2013-08-28 Yao Qi <yao@codesourcery.com>
2212 Pedro Alves <palves@redhat.com>
2214 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2215 instead of stdio_fileopen.
2216 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2217 .Call stderr_fileopen instead of stdio_fileopen.
2218 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2219 [__MINGW32__] (stderr_file_fputs): New function.
2220 (stderr_fileopen): New function.
2221 * ui-file.h (stderr_fileopen): Declare.
2223 2013-08-27 Doug Evans <dje@google.com>
2225 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2226 (struct dwarf2_per_cu_data): Ditto.
2227 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2228 (process_imported_unit_die): Ditto.
2229 (follow_die_sig_1): Simplify assert.
2231 2013-08-27 Pedro Alves <palves@redhat.com>
2233 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2234 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2235 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2236 windows_xfer_memory directly.
2237 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2239 2013-08-27 Pedro Alves <palves@redhat.com>
2241 * darwin-nat.c (darwin_xfer_memory): Delete.
2242 (_initialize_darwin_inferior): Don't install a
2243 deprecated_xfer_memory method.
2245 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2246 Yao Qi <yao@codesourcery.com>
2248 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2249 (parse_no_frames_option): Remove.
2250 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2251 (mi_cmd_stack_list_args): Adjust.
2252 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2253 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2254 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2256 (list_args_or_locals): New parameter 'skip_unavailable'.
2258 * valprint.c (scalar_type_p): Rename to ...
2259 (val_print_scalar_type_p): ... this. Make extern.
2260 (val_print, value_check_printable): Adjust.
2261 * valprint.h (val_print_scalar_type_p): Declare.
2262 * value.c (value_entirely_unavailable): New function.
2263 * value.h (value_entirely_unavailable): Declare.
2265 * NEWS: Mention the new option "--skip-unavailable" to MI
2266 commands '-stack-list-locals', '-stack-list-arguments' and
2267 '-stack-list-variables'.
2269 2013-08-27 Yao Qi <yao@codesourcery.com>
2271 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2272 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2274 * mi/mi-getopt.c (mi_getopt): Remove.
2275 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2277 (mi_getopt): Call mi_getopt_1.
2278 (mi_getopt_silent): New.
2279 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2281 2013-08-26 Doug Evans <dje@google.com>
2284 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2285 .gdb_index is in use.
2286 * symfile.c (reread_symbols): Reset objfile->sf.
2288 * NEWS: Document "mt print objfiles" now takes optional regexp.
2289 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2290 regexp of objfiles to print.
2291 (_initialize_symmisc): Update doc string for "mt print objfiles".
2293 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2294 missing debug info checks.
2296 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2297 Ulrich Weigand <uweigand@de.ibm.com>
2299 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2300 line tables generated by XLC compiled binaries.
2302 2013-08-23 Doug Evans <dje@google.com>
2304 * symmisc.c (dump_symtab): Delete prototype.
2305 (dump_msymbols, dump_objfile): Ditto.
2306 (maintenance_info_symtabs): Mark as dont_repeat.
2307 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2309 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2310 debugging printf to better location.
2312 2013-08-23 Pedro Alves <palves@redhat.com>
2314 * target.c (target_read_live_memory): Change type of 'ret' local
2317 2013-08-23 Pedro Alves <palves@redhat.com>
2319 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2320 (remote_read_bytes): Change return type to LONGEST, and adjust to
2321 return a target_xfer_error on error.
2322 (remote_xfer_memory): Delete.
2323 (remote_flash_write): Change type of 'ret' local to LONGEST.
2324 (remote_xfer_partial, remote_xfer_partial): Adjust.
2325 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2327 2013-08-23 Pierre Muller <muller@sourceware.org>
2329 ARI fix: Push # directives to start of line.
2330 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2332 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2335 * breakpoint.c (enable_command, disable_command): Iterate over
2336 all specified breakpoint locations.
2338 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2340 * common/linux-ptrace.c (linux_fork_to_function): Push #
2341 directives to the start of the line.
2342 (linux_check_ptrace_features): Fix warning message to use
2345 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2347 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2348 nat/linux-waitpid.h.
2349 (linux-waitpid.o): New object file rule.
2350 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2351 (current_ptrace_options): Moved from linux-nat.c.
2352 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2354 (linux_fork_to_function): New function.
2355 (linux_grandchild_function): Likewise.
2356 (linux_child_function): Likewise.
2357 (linux_check_ptrace_features): New function, heavily
2358 based on linux-nat.c:linux_test_for_tracefork.
2359 (linux_enable_event_reporting): New function.
2360 (ptrace_supports_feature): Likewise.
2361 (linux_supports_tracefork): Likewise.
2362 (linux_supports_traceclone): Likewise.
2363 (linux_supports_tracevforkdone): Likewise.
2364 (linux_supports_tracesysgood): Likewise.
2365 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2366 gdbserver/linux-low.c.
2367 (linux_enable_event_reporting): New declaration.
2368 (linux_supports_tracefork): Likewise.
2369 (linux_supports_traceclone): Likewise.
2370 (linux_supports_tracevforkdone): Likewise.
2371 (linux_supports_tracesysgood): Likewise.
2372 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2373 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2374 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2375 * config/arm/linux.mh (NATDEPFILES): Likewise.
2376 * config/i386/linux.mh (NATDEPFILES): Likewise.
2377 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2378 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2379 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2380 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2381 * config/mips/linux.mh (NATDEPFILES): Likewise.
2382 * config/pa/linux.mh (NATDEPFILES): Likewise..
2383 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2384 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2385 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2386 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2387 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2388 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2389 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2390 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2391 ptrace's 4th argument's types.
2392 Check the type of PTRACE_TYPE_ARG4.
2393 * configure: Regenerate.
2394 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2395 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2396 (linux_supports_tracefork_flag): Remove.
2397 (linux_supports_tracesysgood_flag): Likewise.
2398 (linux_supports_tracevforkdone_flag): Likewise.
2399 (current_ptrace_options): Moved to
2400 common/linux-ptrace.c.
2401 (linux_tracefork_child): Remove.
2402 (my_waitpid): Remove.
2403 (linux_test_for_tracefork): Renamed to
2404 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2405 (linux_test_for_tracesysgood): Remove.
2406 (linux_supports_tracesysgood): Remove.
2407 (linux_supports_tracefork): Remove.
2408 (linux_supports_tracevforkdone): Remove.
2409 (linux_enable_tracesysgood): Remove.
2410 (linux_enable_event_reporting): Remove.
2411 (linux_init_ptrace): New function.
2412 (linux_child_post_attach): Call linux_init_ptrace.
2413 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2414 (linux_child_follow_fork): Call linux_supports_tracefork
2415 and linux_supports_tracevforkdone.
2416 (linux_child_insert_fork_catchpoint): Call
2417 linux_supports_tracefork.
2418 (linux_child_insert_vfork_catchpoint): Likewise.
2419 (linux_child_set_syscall_catchpoint): Call
2420 linux_supports_tracesysgood.
2421 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2422 * nat/linux-nat.h: New file.
2423 * nat/linux-waitpid.c: New file.
2424 * nat/linux-waitpid.h: New file.
2426 2013-08-22 Samuel Bronson <naesten@gmail.com>
2428 ARM Linux support for `catch syscall'.
2429 * syscalls/arm-linux.py: New file.
2430 * syscalls/arm-linux.xml: Likewise.
2431 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2432 (arm_linux_init_abi): Register the new function and syscall xml file.
2433 * data-directory/Makefile.in: Install the new syscall xml file.
2434 * NEWS: Brag about this.
2436 2013-08-22 Pedro Alves <palves@redhat.com>
2439 * corefile.c (target_xfer_memory_error): New function.
2440 (memory_error): Defer EIO to target_memory_error.
2441 (read_memory): Use target_xfer_partial, and handle finer-grained
2443 * target.c (target_xfer_error_to_string): New function.
2444 (memory_xfer_partial_1): If memory is known to be
2445 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2446 (target_xfer_partial): Make extern.
2447 * target.h (enum target_xfer_error): New enum.
2448 (target_xfer_error_to_string): Declare function.
2449 (target_xfer_partial): Declare function.
2450 (struct target_ops) <xfer_partial>: Adjust describing comment.
2452 2013-08-22 Alan Modra <amodra@gmail.com>
2454 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2455 * configure.tgt: Likewise as targets.
2457 2013-08-20 Doug Evans <dje@google.com>
2459 * buildsym.c (subfile_stack): Move here from buildsym.h.
2460 (pending_macros): Ditto.
2461 (get_macro_table): New function.
2462 (buildsym_init): Initialize subfile_stack.
2463 * coffread.c (type_vector,type_vector_length): Moved here from
2465 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2466 (coff_symtab_read): Use it.
2467 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2468 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2469 with call to get_macro_table.
2470 * stabsread.c (type_vector,type_vector_length): Moved here from
2472 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2473 * buildsym.h (get_macro_table): Declare.
2475 2013-08-20 Tom Tromey <tromey@redhat.com>
2477 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2479 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2481 2013-08-20 Doug Evans <dje@google.com>
2483 * blockframe.c: Remove #include "psymtab.h".
2484 * cp-support.c: Ditto.
2488 2013-08-20 Tom Tromey <tromey@redhat.com>
2491 * exceptions.h (return_mask): Now an enum.
2492 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2495 2013-08-20 Tom Tromey <tromey@redhat.com>
2497 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2499 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2500 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2501 * jit.c (jit_object_close_impl): Update.
2502 * jv-lang.c (get_dynamics_objfile): Update.
2503 * linespec.c (add_minsym): Use get_dynamics_objfile.
2504 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2505 (allocate_objfile): Don't initialize 'gdbarch' field.
2506 (get_objfile_arch): Update.
2507 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2509 (struct objfile) <gdbarch>: ... here. Remove.
2510 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2512 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2514 2013-08-20 Alan Modra <amodra@gmail.com>
2516 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2517 for IBM long double nan and inf.
2518 (floatformat_is_negative, floatformat_classify,
2519 floatformat_mantissa): Similarly.
2520 (floatformat_ieee_single, floatformat_ieee_double,
2521 floatformat_ieee_quad, floatformat_arm_ext,
2522 floatformat_ia64_spill): Delete unused vars.
2523 (_initialize_doublest): Delete unused function.
2524 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2525 little-endian variants of floatformat_ibm_long_double.
2527 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2529 * Makefile.in (SFILES): Remove common/target-common.c and
2530 add target/waitstatus.c.
2531 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2532 target/resume.h, target/wait.h and target/waitstatus.h.
2533 (COMMON_OBS): Remove target-common.o and add
2535 (target-common.o): Remove.
2536 (waitstatus.o): New target object file.
2537 * common/target-common.c: Move contents to
2538 target/waitstatus.c and remove.
2539 * common/target-common.h: Move contents to other files and
2541 (enum resume_kind: Move to target/resume.h.
2542 (TARGET_WNOHANG): Move to target/wait.h.
2543 (enum target_waitkind): Move to target/waitstatus.h.
2544 (struct target_waitstatus): Likewise.
2545 * target.h: Do not include target-common.h and
2546 include target/resume.h, target/wait.h and
2547 target/waitstatus.h.
2548 * target/resume.h: New file.
2549 * target/wait.h: New file.
2550 * target/waitstatus.h: New file.
2551 * target/waitstatus.c: New file.
2553 2013-08-19 Pedro Alves <palves@redhat.com>
2555 * linux-nat.c (linux_test_for_tracefork)
2556 (linux_test_for_tracesysgood, linux_child_follow_fork)
2557 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2558 (linux_nat_wait_1): Extend comment.
2559 (linux_async_pipe): Add comment.
2561 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2563 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2564 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2565 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2566 Update to account for fact that PC is now a pseudo-register.
2567 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2568 cases for RL78_PC_REGNUM.
2570 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2573 * top.c (quit_force): Skip writing history file
2574 if input is not from terminal.
2576 2013-08-14 Tom Tromey <tromey@redhat.com>
2578 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2579 resultthreadlist>: New fields.
2580 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2581 (remote_get_threadlist, remote_threadlist_iterator): Use
2582 new fields. Remove static variables.
2584 2013-08-14 Tom Tromey <tromey@redhat.com>
2586 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2587 remote_watch_data_address>: New fields.
2588 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2589 (process_stop_reply, remote_wait_as)
2590 (remote_check_watch_resources, remote_stopped_data_address): Update.
2592 2013-08-14 Tom Tromey <tromey@redhat.com>
2594 * remote.c (struct remote_state) <async_client_callback,
2595 async_client_context>: New fields.
2596 (async_client_callback, async_client_context): Remove.
2597 (remote_async_serial_handler, remote_async): Update.
2599 2013-08-14 Tom Tromey <tromey@redhat.com>
2601 * remote.c (sizeof_pkt): Remove.
2602 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2604 2013-08-14 Tom Tromey <tromey@redhat.com>
2606 * remote.c (struct remote_state) <use_threadinfo_query,
2607 use_threadextra_query>: New fields.
2608 (remote_threads_info, remote_threads_extra_info)
2609 (remote_open_1): Update.
2611 2013-08-14 Tom Tromey <tromey@redhat.com>
2613 * remote.c (struct remote_state) <finished_object,
2614 finished_annex, finished_offset>: New fields.
2615 (remote_read_qxfer): Use remote_state fields; remove static
2618 2013-08-14 Tom Tromey <tromey@redhat.com>
2620 * remote.c (struct remote_state) <last_sent_step>:
2622 (last_sent_step): Remove.
2623 (remote_resume, remote_wait_as): Update.
2625 2013-08-14 Tom Tromey <tromey@redhat.com>
2627 * remote.c (struct remote_state) <last_sent_signal>:
2629 (last_sent_signal): Remove.
2630 (new_remote_state, remote_resume, remote_wait_as): Update.
2632 2013-08-14 Tom Tromey <tromey@redhat.com>
2634 * remote.c (struct remote_state) <last_program_signals_packet>:
2636 (last_program_signals_packet): Remove.
2637 (remote_program_signals, remote_open_1): Update.
2639 2013-08-14 Tom Tromey <tromey@redhat.com>
2641 * remote.c (struct remote_state) <last_pass_packet>:
2643 (last_pass_packet): Remove.
2644 (remote_pass_signals, remote_open_1): Update.
2646 2013-08-14 Tom Tromey <tromey@redhat.com>
2648 * remote.c (struct remote_state) <remote_traceframe_number>:
2650 (remote_traceframe_number): Remove.
2651 (new_remote_state, remote_open_1, set_remote_traceframe)
2652 (remote_trace_find): Update.
2654 2013-08-14 Tom Tromey <tromey@redhat.com>
2656 * remote.c (struct remote_state) <general_thread, continue_thread>:
2658 (general_thread, continue_thread): Remove.
2659 (record_currthread, set_thread, set_general_process)
2660 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2661 (extended_remote_mourn_1): Update.
2663 2013-08-14 Tom Tromey <tromey@redhat.com>
2665 * remote.c (struct remote_state) <remote_desc>: New field.
2666 (remote_desc): Remove.
2667 (remote_threads_info, remote_threads_extra_info, remote_close)
2668 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2669 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2670 (remote_hostio_send_command, remote_file_put, remote_file_get)
2671 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2672 (remote_async, remote_new_objfile, set_range_stepping): Update.
2674 2013-08-14 Tom Tromey <tromey@redhat.com>
2676 * remote.c (remote_state): Now a pointer.
2677 (get_remote_state_raw): Update.
2678 (new_remote_state): New function.
2679 (_initialize_remote): Use new_remote_state.
2681 2013-08-14 Tom Tromey <tromey@redhat.com>
2683 * remote.c (remote_protocol_features): Now const.
2685 2013-08-14 Tom Tromey <tromey@redhat.com>
2687 * remote.c (crc32_table, crc32): Remove.
2688 (remote_verify_memory): Use xcrc32.
2690 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2692 * value.h (create_internalvar_type_lazy): Adjust prototype
2695 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
2697 * common/format.c (parse_format_string): Don't allow '#' flag for
2698 pointer arguments in format string.
2700 2013-08-13 Pierre Muller <muller@sourceware.org>
2702 * utils.c (init_page_info): Only call tgetnum function
2703 if rl_get_screen_size did not return useful values.
2705 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2707 PR breakpoints/15117
2708 * linespec.c (linespec_parse_basic): Check for convenience
2709 variable or history value while parsing.
2711 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2713 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2715 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2716 different signals between the generic Linux kernel implementation
2718 (avr_linux_gdb_signal_from_target): Delete.
2719 (avr_linux_gdb_signal_to_target): Delete.
2720 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2722 2013-08-09 Doug Evans <dje@google.com>
2724 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2727 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2729 * linux-tdep.c: Define enum with generic signal numbers.
2730 (linux_gdb_signal_from_target): New function.
2731 (linux_gdb_signal_to_target): Likewise.
2732 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2733 methods to the functions above.
2734 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2735 (linux_gdb_signal_to_target): Likewise.
2736 * alpha-linux-tdep.c: Define new enum with signals different
2737 from generic Linux kernel.
2738 (alpha_linux_gdb_signal_from_target): New function.
2739 (alpha_linux_gdb_signal_to_target): Likewise.
2740 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2741 with the functions mentioned above.
2742 * avr-tdep.c: Define enum with differences between Linux kernel
2744 (avr_linux_gdb_signal_from_target): New function.
2745 (avr_linux_gdb_signal_to_target): Likewise.
2746 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2747 the functions mentioned above.
2748 * sparc-linux-tdep.c: Define enum with differences between SPARC
2749 and generic Linux kernel signal numbers.
2750 (sparc32_linux_gdb_signal_from_target): New function.
2751 (sparc32_linux_gdb_signal_to_target): Likewise.
2752 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2753 to the functions defined above.
2754 * xtensa-linux-tdep.c: Define enum with differences between
2755 Xtensa and Linux kernel generic signals.
2756 (xtensa_linux_gdb_signal_from_target): New function.
2757 (xtensa_linux_gdb_signal_to_target): Likewise.
2758 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2759 to the functions defined above.
2760 * mips-linux-tdep.c: Define enum with differences between
2761 signals in MIPS and Linux kernel generic ones.
2762 (mips_gdb_signal_to_target): New function.
2763 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2764 only different signals from the Linux kernel generic.
2765 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2766 the functions defined above.
2767 * mips-linux-tdep.h (enum mips_signals): Remove.
2769 2013-08-09 Pedro Alves <palves@redhat.com>
2771 * avr-tdep.c (XMALLOC): Delete macro.
2772 * cli/cli-dump.c (XMALLOC): Delete macro.
2774 2013-08-09 Pedro Alves <palves@redhat.com>
2776 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2777 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2778 (fopen_with_cleanup, add_dump_command): Make static.
2779 * cli/cli-dump.h: Delete file.
2780 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2783 2013-08-09 Pedro Alves <palves@redhat.com>
2785 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2788 2013-08-09 Pedro Alves <palves@redhat.com>
2790 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2793 2013-08-09 Pedro Alves <palves@redhat.com>
2795 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2796 (gcore_command): Use tilde_expand here, and when showing the
2797 filename to the user, show the expanded version.
2799 2013-08-09 Yao Qi <yao@codesourcery.com>
2801 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2804 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2806 * gcore.c (create_gcore_bfd): Use tilde_expand.
2808 2013-08-08 Yao Qi <yao@codesourcery.com>
2810 * frame.h (read_frame_local): Declare.
2811 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2813 * stack.c (read_frame_local): New.
2815 2013-08-08 Yao Qi <yao@codesourcery.com>
2817 * mi/mi-cmd-stack.c: Update comments to function
2818 list_args_or_locals.
2820 2013-08-07 Tom Tromey <tromey@redhat.com>
2823 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2824 (process_psymtab_comp_unit_reader): Use it.
2825 (process_psymtab_comp_unit): Update. Add "pretend_language"
2827 (dwarf2_build_psymtabs_hard): Update.
2828 (scan_partial_symbols): Pass CU's language to
2829 process_psymtab_comp_unit.
2831 2013-08-07 Tom Tromey <tromey@redhat.com>
2833 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2834 (dwarf2_gdb_index_functions): Update.
2835 * psymtab.c (find_symbol_file_from_partial): Remove.
2836 (psym_functions): Update.
2837 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2840 2013-08-07 Tom Tromey <tromey@redhat.com>
2842 * symfile.c (set_initial_language): Look up "main" symbol
2843 and use its language.
2844 * symtab.c (find_main_filename): Remove.
2845 * symtab.h (find_main_filename): Remove.
2847 2013-08-07 Tom Tromey <tromey@redhat.com>
2849 * dwarf2read.c (recursively_compute_inclusions): Add
2850 "immediate_parent" argument. Set symtab's "user" field
2852 (compute_symtab_includes): Update.
2854 2013-08-07 Tom Tromey <tromey@redhat.com>
2856 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2857 when adding label symbols.
2859 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2860 Ulrich Weigand <uweigand@de.ibm.com>
2862 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2863 * configure.host (powerpc64-*-aix*): Likewise.
2865 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2866 Ulrich Weigand <uweigand@de.ibm.com>
2868 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2870 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2871 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2872 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2873 * configure.ac: Check for ptrace64.
2874 * configure, config.in: Regenerate.
2876 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2877 Ulrich Weigand <uweigand@de.ibm.com>
2879 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2880 Call ptrace64 instead of ptrace if defined.
2881 Add macro addr_ptr to take care of ptrace address argument.
2882 (pdc_read_regs): Likewise.
2883 (pdc_write_regs): Likewise.
2884 (aix_thread_resume): Likewise.
2885 (fetch_regs_kernel_thread): Likewise.
2886 (store_regs_kernel_thread): Likewise.
2888 2013-08-07 Anton Blanchard <anton@samba.org>
2890 * MAINTAINERS: Add myself to Write After Approval.
2892 2013-08-05 Tom Tromey <tromey@redhat.com>
2894 * aix-thread.c (_initialize_aix_thread): Use
2895 complete_target_initialization.
2896 * bsd-uthread.c (_initialize_bsd_uthread): Use
2897 complete_target_initialization.
2898 * dec-thread.c (_initialize_dec_thread): Use
2899 complete_target_initialization.
2900 * ravenscar-thread.c (_initialize_ravenscar): Use
2901 complete_target_initialization.
2902 * sol-thread.c (_initialize_sol_thread): Use
2903 complete_target_initialization.
2904 * spu-multiarch.c (_initialize_spu_multiarch): Use
2905 complete_target_initialization.
2907 2013-08-05 Tom Tromey <tromey@redhat.com>
2909 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2910 * ada-lang.c (ada_lookup_simple_minsym): Return
2911 bound_minimal_symbol.
2912 * ada-lang.h (ada_lookup_simple_minsym): Update.
2913 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2914 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2915 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2916 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2917 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2918 * minsyms.c (msymbol_objfile): Remove.
2919 (lookup_minimal_symbol_internal): New function, from
2920 lookup_minimal_symbol.
2921 (lookup_minimal_symbol): Rewrite using
2922 lookup_minimal_symbol_internal.
2923 (lookup_bound_minimal_symbol): New function.
2924 * minsyms.h (msymbol_objfile): Remove.
2925 (lookup_bound_minimal_symbol): Declare.
2926 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2927 * parse.c (write_exp_msymbol): Change parameter to a
2928 bound_minimal_symbol.
2929 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2930 * parser-defs.h (write_exp_msymbol): Update.
2931 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2932 * symfile.c (simple_read_overlay_table): Use
2933 lookup_bound_minimal_symbol.
2934 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2935 (search_symbols): Likewise.
2936 (print_msymbol_info): Take a bound_minimal_symbol argument.
2937 (symtab_symbol_info, rbreak_command): Update.
2938 * symtab.h (struct symbol_search) <msymbol>: Change type
2939 to bound_minimal_symbol.
2940 * valops.c (find_function_in_inferior): Use
2941 lookup_bound_minimal_symbol.
2942 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2944 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2947 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2949 (async_cleanup_sigint_signal_handler): ... this.
2950 (initialize_sigint_signal_handler): Remove declaration.
2951 (handle_remote_sigint): Rename the declaration to ...
2952 (async_handle_remote_sigint): ... this.
2953 (handle_remote_sigint_twice): Rename the declaration to ...
2954 (async_handle_remote_sigint_twice): ... this.
2955 (async_remote_interrupt, async_remote_interrupt_twice)
2956 (remote_interrupt): Remove the declarations.
2957 (remote_interrupt_twice): Rename the declaration ...
2958 (sync_remote_interrupt_twice): ... this.
2959 (sigint_remote_twice_token): Rename the variable to ...
2960 (async_sigint_remote_twice_token): ... this.
2961 (sigint_remote_token): Rename the variable to ...
2962 (async_sigint_remote_token): ... this.
2963 (initialize_sigint_signal_handler): Rename the function to ...
2964 (async_initialize_sigint_signal_handler): ... this. Update the name
2966 (handle_remote_sigint): Rename the function to ...
2967 (async_handle_remote_sigint): ... this. Update the names inside.
2968 (handle_remote_sigint_twice): Rename the function to ...
2969 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2970 (cleanup_sigint_signal_handler): Rename the function to ...
2971 (async_cleanup_sigint_signal_handler): ... this.
2972 (remote_interrupt): Rename the function to ...
2973 (sync_remote_interrupt): this. Update the names inside.
2974 (remote_interrupt_twice): Rename the function to ...
2975 (sync_remote_interrupt_twice): this. Update the names inside.
2976 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2977 (_initialize_remote): Update the names inside.
2979 2013-08-02 Tom Tromey <tromey@redhat.com>
2982 * breakpoint.c (update_watchpoint, watchpoint_check)
2983 (watch_command_1): Update.
2984 * eval.c (fetch_subexp_value): Add "preserve_errors"
2986 * ppc-linux-nat.c (check_condition): Update.
2987 * value.h (fetch_subexp_value): Update.
2989 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
2991 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2994 2013-08-01 Doug Evans <dje@google.com>
2997 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2998 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2999 Add assert of sig_entry->dwo_unit == NULL.
3000 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3001 had already been read.
3002 (read_signatured_type): Set per_cu.tu_read.
3005 * valops.c (value_struct_elt): Add missing call to check_typedef.
3006 (value_find_oload_method_list): Ditto.
3008 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3009 effectively, struct symbol_search **.
3010 (make_cleanup_free_search_symbols): Change arg to struct
3011 symbol_search **. All callers updated.
3012 (compare_search_syms): Compare symtab file name and block as well.
3013 (search_symbols_equal): New function.
3014 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3015 New args new_head, new_tail. Result is now void. Remove dups after
3016 sorting the symbols.
3017 (search_symbols): Sort all found symbols once, after all have been
3018 found, and remove duplicates. Simplify cleanup tracking of result.
3019 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3021 Further workarounds for binutils/15021.
3022 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3023 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3024 Watch for duplicate symtabs coming from type units.
3025 (compute_symtab_includes): Update call to
3026 recursively_compute_inclusions. Build vector of included symtabs
3028 * symtab.h (symtab_ptr): New typedef.
3029 (DEF_VEC_P (symtab_ptr)): New VEC type.
3030 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3033 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
3035 * cli/cli-script.c (script_from_file): Remove use of
3037 * main.c (captured_main): Remove use of error_pre_print and
3039 * utils.c (error_pre_print, quit_pre_print): Remove.
3040 * utils.h (error_pre_print, quit_pre_print): Likewise.
3042 2013-08-01 Yao Qi <yao@codesourcery.com>
3044 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3046 (mi_cmd_stack_list_variables): Likewise.
3048 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3050 * exceptions.c (deprecated_throw_reason): Remove.
3051 * exceptions.h (deprecated_throw_reason): Remove.
3053 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3055 * remote-mips.c (mips_error): Replace use of
3056 deprecated_throw_reason with throw_verror. Use the error message
3057 passed to mips_error as the error message for throw_verror.
3059 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3061 * monitor.c (monitor_interrupt_query): Replace use of
3062 deprecated_throw_reason with quit.
3063 * nto-procfs.c (interrupt_query): Likewise.
3064 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3065 * remote-mips.c (mips_kill): Likewise.
3066 * remote.c (interrupt_query): Likewise.
3068 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3070 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3073 2013-07-31 Pedro Alves <pedro@codesourcery.com>
3074 Yao Qi <yao@codesourcery.com>
3076 * tracepoint.c (trace_dump_command): Select the current frame.
3078 2013-07-30 Doug Evans <dje@google.com>
3080 * dwarf2read.c (process_queue): Add type signature to debug output.
3082 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3084 * value.c (value_fetch_lazy): Mark optimized out values as such
3085 rather than raising an error.
3087 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3089 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3090 before checking which bits of the parent, not the child, value are
3093 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3096 * top.c: Include "filenames.h".
3097 (set_history_filename): New function.
3098 (init_main): Install it as set hook of the "set history filename"
3101 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3103 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3104 attribute parameter.
3105 (dwarf2_const_value_data): Constify struct attribute parameter.
3106 (dwarf2_const_value): Constify struct attribute parameter.
3107 (dwarf2_const_value_attr): Constify struct attribute parameter.
3108 (lookup_die_type): Constify struct attribute parameter.
3109 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3110 (follow_die_ref_or_sig): Constify struct attribute parameter.
3111 (follow_die_ref): Constify struct attribute parameter.
3112 (follow_die_sig): Constify struct attribute parameter.
3113 (get_DW_AT_signature_type): Constify struct attribute parameter.
3114 (get_type_unit_group): Constify struct attribute parameter.
3115 (fill_in_loclist_baton): Constify struct attribute parameter.
3116 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3117 (type_unit_group): Constify struct attribute parameter.
3119 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3121 * dwarf2read.c (attr_form_is_block): Make argument const.
3122 (attr_form_is_section_offset): Make argument const.
3123 (attr_form_is_constant): Make argument const.
3124 (attr_form_is_ref): Make argument const.
3126 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3128 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3130 (attr_form_is_ref): Moved below attr_form_is_constant.
3132 2013-07-29 Doug Evans <dje@google.com>
3134 * main.c (captured_command_loop): Tweak comment.
3136 * target.c (target_async_permitted_1): Fix comment.
3138 * symtab.c (iterate_over_some_symtabs): Add comment.
3140 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3142 2013-07-27 Yao Qi <yao@codesourcery.com>
3144 * NEWS: Mention that GDBserver now supports hardware
3145 watchpoints on the MIPS GNU/Linux target.
3147 2013-07-27 Yao Qi <yao@codesourcery.com>
3149 * Makefile.in (HFILES_NO_SRCDIR): Add
3150 common/mips-linux-watch.h.
3151 (mips-linux-watch.o): New rule.
3152 * common/mips-linux-watch.c: New.
3153 * common/mips-linux-watch.h: New.
3154 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3155 * mips-linux-nat.c: Include mips-linux-watch.h.
3156 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3157 to common/mips-linux-watch.h.
3158 (MAX_DEBUG_REGISTER): Likewise.
3159 (enum pt_watch_style): Likewise.
3160 (struct mips32_watch_regs): Likewise.
3161 (struct mips64_watch_regs): Likewise.
3162 (struct pt_watch_regs): Likewise.
3163 (struct mips_watchpoint): Likewise.
3164 (mips_linux_watch_get_irw_mask): Move to
3165 common/mips-linux-watch.c.
3166 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3167 (mips_linux_watch_get_watchlo): Likewise.
3168 (mips_linux_watch_set_watchlo): Likewise.
3169 (mips_linux_watch_get_watchhi): Likewise.
3170 (mips_linux_watch_set_watchhi): Likewise.
3171 (mips_linux_read_watch_registers): Likewise.
3172 (mips_linux_watch_type_to_irw): Likewise.
3173 (mips_linux_stopped_data_address, fill_mask): Likewise.
3174 (mips_linux_watch_try_one_watch): Likewise.
3175 (mips_linux_watch_populate_regs): Likewise.
3177 2013-07-27 Yao Qi <yao@codesourcery.com>
3179 * mips-linux-nat.c (get_irw_mask): Rename to ...
3180 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3181 'set' to 'n'. Update function comment. All callers changed.
3182 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3183 function comment. All callers changed.
3184 (get_num_valid): Rename to ...
3185 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3186 'set' to 'n'. Update function comment. All callers changed.
3187 (get_watchlo): Rename to ...
3188 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3189 'set' to 'n'. Update function comment. All callers changed.
3190 (set_watchlo): Rename to ...
3191 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3192 'set' to 'n'. Update function comment. All callers changed.
3193 (get_watchhi): Rename to ...
3194 (mips_linux_watch_get_watchhi): ... this. Update function
3195 comment. All callers changed.
3196 (set_watchhi): Rename to ...
3197 (mips_linux_watch_set_watchhi): ... this. Update function
3198 comment. All callers changed.
3199 (mips_linux_read_watch_registers): Update function comment.
3200 Add new parameters 'lwpid', 'watch_readback', and
3201 'watch_readback_valid'. Update.
3202 (type_to_irw): Rename to ...
3203 (mips_linux_watch_type_to_irw): ... this. Update function
3204 comment. All callers changed.
3205 (fill_mask): Update function comment.
3206 (try_one_watch): Rename to ...
3207 (mips_linux_watch_try_one_watch): ... this. Change the type
3208 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3209 (populate_regs_from_watches): Rename to ...
3210 (mips_linux_watch_populate_regs): ... this. Add parameter
3211 'current_watches'. All callers changed.
3213 2013-07-27 Yao Qi <yao@codesourcery.com>
3215 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3217 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3218 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3219 (struct pt_watch_regs): Likewise.
3220 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3221 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3222 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3223 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3224 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3226 2013-07-27 Yao Qi <yao@codesourcery.com>
3228 * breakpoint.h: Include break-common.h.
3229 (enum target_hw_bp_type): Move to ...
3230 * common/break-common.h: ... here. New.
3232 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3234 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3235 process group regardless of having tty on stdin.
3237 2013-07-25 Doug Evans <dje@google.com>
3239 * linux-fork.h (detach_fork): Delete.
3241 2013-07-25 Tom Tromey <tromey@redhat.com>
3243 PR remote/15256, PR remote/15266:
3244 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3245 * monitor.c (monitor_detach): Use unpush_target.
3246 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3247 * remote-mips.c (mips_detach): Use unpush_target. Don't
3249 * remote-sim.c (gdbsim_detach): Use unpush_target.
3250 * target.c (pop_target): Remove.
3251 (pop_all_targets_above): Don't call target_close.
3252 (target_close): Assert that the target is unpushed.
3253 * target.h (pop_target): Don't declare.
3254 * tracepoint.c (tfile_open): Use unpush_target.
3256 2013-07-25 Tom Tromey <tromey@redhat.com>
3258 * linux-thread-db.c (init_thread_db_ops): Call
3259 complete_target_initialization.
3260 (_initialize_thread_db): Don't call add_target.
3261 * target.c (complete_target_initialization): New function.
3262 (add_target_with_completer): Call it.
3263 * target.h (complete_target_initialization): Declare.
3265 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3267 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3268 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3269 (HPPANBSD_SIZEOF_GREGS): New define.
3270 (hppaobsd_supply_gregset): Handle additional registers.
3271 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3272 we provide more registers now.
3273 (hppabsd_supply_gregset): Supply additional registers.
3274 (hppabsd_collect_gregset): Collect additional registers.
3276 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3278 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3279 (hppabsd_dwarf2_frame_init_reg): New function.
3280 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3282 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3284 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3285 'z' format code. Remove error for optimized out values, standard
3286 code will handle these fine.
3288 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3290 * NEWS: Mention new 'z' formatter.
3291 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3292 (_initialize_printcmd): Mention 'z' formatter in help text of the
3295 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3297 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3300 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3302 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3303 interface can evaluate arguments. Fallback to the old mode if it
3305 (create_exception_master_breakpoint): Likewise.
3306 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3307 (struct sym_probe_fns elf_probe_fns): Export function above to the
3309 * probe.c (can_evaluate_probe_arguments): New function.
3310 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3312 (can_evaluate_probe_arguments): New function prototype.
3313 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3314 probe interface can evaluate arguments. Fallback to the old mode
3316 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3317 interface can evaluate arguments. Warning the user if it cannot.
3318 (stap_can_evaluate_probe_arguments): New function.
3319 (struct probe_ops stap_probe_ops): Export function above to the
3321 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3322 New function pointer.
3324 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3326 * Makefile.in (SFILES): Add common/target-common.c.
3327 Add common/target-common.h to headers.
3328 (COMMON_OBS): Add target-common.o.
3329 (target-common.o): New target.
3330 * linux-nat.h (resume_kind): Move to common/target-common.h.
3331 * target.c (target_waitstatus_to_string): Move to
3332 common/target-common.c.
3333 * target.h: Include target-common.h.
3334 (target_waitkind): Move to common/target-common.h.
3335 (target_waitstatus): Likewise.
3336 (TARGET_WNOHANG): Likewise.
3337 * common/target-common.c: New file.
3338 * common/target-common.h: New file.
3340 2013-07-24 Doug Evans <dje@google.com>
3342 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3345 2013-07-23 Yao Qi <yao@codesourcery.com>
3347 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3348 parameter 'gdbarch'.
3349 (i386_stack_tramp_frame_sniffer): Caller update.
3350 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3351 parameter 'gdbarch' and 'target'.
3352 (i386_linux_core_read_description): Caller update.
3353 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3355 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3358 2013-07-23 Tom Tromey <tromey@redhat.com>
3360 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3363 2013-07-22 Doug Evans <dje@google.com>
3365 * exec.h (remove_target_sections): Delete arg abfd.
3366 * exec.c (exec_close): Update call to remove_target_sections.
3367 (remove_target_sections): Delete arg abfd.
3368 * solib.c (update_solib_list): Ditto.
3369 (reload_shared_libraries_1): Ditto.
3370 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3371 * target.h (struct target_section): Rename key to owner.
3374 2013-07-22 Tom Tromey <tromey@redhat.com>
3376 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3378 2013-07-22 Tom Tromey <tromey@redhat.com>
3380 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3381 Simplify cleanup handling.
3383 2013-07-22 Tom Tromey <tromey@redhat.com>
3385 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3386 on all return paths.
3388 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3390 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3391 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3392 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3394 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3396 * top.c (print_gdb_version): Add help, apropos description and
3397 url to online documentation.
3399 2013-07-19 Hui Zhu <hui@codesourcery.com>
3402 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3404 2013-07-19 Yao Qi <yao@codesourcery.com>
3406 * target.c (update_current_target): Change the default action
3407 of 'to_traceframe_info' from tcomplain to return_zero.
3408 * target.h (struct target_ops) <to_traceframe_info>: Add more
3410 * valops.c (read_value_memory): Call
3411 traceframe_available_memory unconditionally.
3413 2013-07-18 Yao Qi <yao@codesourcery.com>
3415 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3416 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3417 symbol without prefix. If found, set its type to
3418 'mst_solib_trampoline'.
3420 2013-07-17 Doug Evans <dje@google.com>
3422 * NEWS: Mention "set print raw frame-arguments".
3423 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3424 * stack.c (print_raw_frame_arguments): New static global.
3425 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3426 (_initialize_stack): New command "set/show print raw frame-arguments".
3427 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3428 (set_print_raw, show_print_raw): New functions.
3429 (_initialize_valprint): New prefix command "set/show print raw".
3430 * valprint.h (value_print_options): Improve comments.
3432 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3433 of all *list variables.
3435 * gdbcmd.h (togglelist): Delete.
3436 * cli/cli-cmds.c (togglelist): Delete.
3437 (init_cmd_lists): Update.
3438 * cli/cli-cmds.h (togglelist): Delete.
3440 2013-07-17 Tom Tromey <tromey@redhat.com>
3442 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3445 2013-07-16 Doug Evans <dje@google.com>
3447 * nto-tdep.c (nto_relocate_section_addresses): Update,
3448 target_section.bfd deleted.
3449 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3450 * s390-tdep.c (s390_load): Ditto.
3451 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3453 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3455 * common/format.c (parse_format_string): Add checks for NULL
3456 character before calling strchr.
3458 2013-07-16 Doug Evans <dje@google.com>
3460 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3461 temp_pathname argument.
3462 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3463 when opening the file fails.
3465 * target.h (struct target_section): Delete member bfd.
3466 All users updated to use the_bfd_section->owner instead.
3467 * exec.c (add_to_section_table): Assert bfd is expected value.
3468 Remove initialization of target_section.bfd.
3469 (remove_target_sections): Update.
3470 (section_table_available_memory): Update.
3471 (section_table_xfer_memory_partial): Update.
3472 (print_section_info): Update.
3473 (exec_set_section_address): Update.
3474 * record-full.c (record_full_core_xfer_partial): Update.
3475 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3476 * solib-target.c (solib_target_relocate_section_addresses): Update.
3477 * symfile.c (build_section_addr_info_from_section_table): Update.
3478 * target.c (memory_xfer_live_readonly_partial): Update.
3479 (memory_xfer_partial_1): Update.
3481 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3483 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3484 now available for embedded (BookE) and server (BookS) processors,
3485 correct mentions of 'booke' and adjust comments accordingly in order to
3486 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3487 (have_ptrace_booke_interface): Rename function and variable
3488 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3489 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3490 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3491 'hwdebug_point_cmp'. Update all uses.
3492 (booke_find_thread_points_by_tid): Rename function
3493 'booke_find_thread_points_by_tid' to
3494 'hwdebug_find_thread_points_by_tid'. Update all uses.
3495 (booke_insert_point): Rename function 'booke_insert_point' to
3496 'hwdebug_insert_point'. Update all uses.
3497 (booke_remove_point): Rename function 'booke_remove_point' to
3498 'hwdebug_remove_point'. Update all uses.
3500 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3502 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3503 numbers with enum values.
3505 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3508 * thread.c (thread_apply_all_command): Check for valid threads
3510 (thread_array_cleanup): New struct.
3511 (set_thread_refcount): New function.
3513 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3515 * infcmd.c (default_print_one_register_info): Reuse function
3518 2013-07-10 Tom Tromey <tromey@redhat.com>
3520 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3521 (ada-exp.o): New target.
3523 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3525 * mt-tdep.c (mt_registers_info): Call
3526 get_no_prettyformat_print_options instead of
3527 get_raw_print_options (regression by last patch from Doug
3530 2013-07-09 Pedro Alves <palves@redhat.com>
3532 Checked in by Joel Brobecker <brobecker@adacore.com>.
3533 * ada-lang.c (coerce_unspec_val_to_type): Use
3534 value_optimized_out_const.
3535 * value.c (value_optimized_out_const): New function.
3536 * value.h (value_optimized_out_const): New declaration.
3538 2013-07-09 Doug Evans <dje@google.com>
3540 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3541 Enum values rename as well. All uses updated.
3542 * valprint.h (value_print_options): Rename member pretty to
3543 pretty format. Rename member prettyprint_arrays to
3544 prettyformat_arrays. Rename member prettyprint_structs to
3545 prettyformat_structs. All uses updated.
3546 (get_no_prettyformat_print_options): Renamed from
3547 get_raw_print_options.
3548 * valprint.c (get_no_prettyformat_print_options): Renamed from
3549 get_raw_print_options. All callers updated.
3550 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3551 All callers updated.
3552 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3553 All callers updated.
3554 (_initialize_valprint): Improve help text for "set print pretty" and
3557 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3559 * value.c (value_bits_valid): Revert previous change, and change
3560 by Pedro on 2013-07-04, due to regressions in
3561 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3563 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3564 Pedro Alves <palves@redhat.com>
3566 * value.c (value_bits_valid): If the value is not lval_computed
3567 or has no check validity handler then the answer is the
3568 optimized_out flag, otherwise defer to the handler.
3570 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3572 * top.c (print_gdb_configuration): Explain in output of
3573 --configuration what does "relocatable" mean.
3575 * main.c (print_gdb_help): Regroup options in the --help text.
3576 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3577 the relevant discussions.
3579 2013-07-06 Yao Qi <yao@codesourcery.com>
3581 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3582 Remove parameter 'lsal'.
3583 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3584 to inner block. Caller update.
3585 (base_breakpoint_create_breakpoints_sal): Update.
3586 (bkpt_create_breakpoints_sal): Likewise.
3587 (tracepoint_create_breakpoints_sal): Likewise.
3588 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3589 element 0 of vector 'canonical->sals'.
3591 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3593 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3594 register number instead of the pseudo register one.
3595 (rs6000_dwarf2_reg_to_regnum): Likewise.
3597 2013-07-04 Pedro Alves <palves@redhat.com>
3599 * findvar.c (value_of_register): Use allocate_optimized_out_value
3600 if the register has been optimized out, instead of
3601 set_value_optimized_out.
3602 * frame-unwind.c (frame_unwind_got_optimized): Use
3603 allocate_optimized_out_value.
3605 2013-07-04 Pedro Alves <palves@redhat.com>
3607 * value.c (value_bits_valid): If the value is not lval_computed,
3608 or doesn't have a check_validity hook, assume the value is entirely
3611 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3613 * stack.c (read_frame_arg): No longer fetch lazy values.
3614 * value.c (value_optimized_out): If the value is not already
3615 marked optimized out, and is lazy then fetch it.
3616 (value_primitive_field): Move optimized out check to later in the
3617 function, after we have loaded any lazy values.
3618 (value_fetch_lazy): Use optimized out flag directly rather than
3619 calling optimized_out method.
3621 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3623 * valops.c: Don't include "user-regs.h".
3624 (value_fetch_lazy): Moved to value.c.
3625 * value.c: Include "user-regs.h".
3626 (value_fetch_lazy): Moved from valops.c.
3628 2013-07-04 Yao Qi <yao@codesourcery.com>
3631 2013-06-27 Yao Qi <yao@codesourcery.com>
3633 * common/create-version.sh: Update comments. Handle the case
3634 that TARGET_ALIAS is empty.
3636 2013-07-03 Pedro Alves <palves@redhat.com>
3638 * Makefile.in (config.status): Depend on development.sh.
3639 (aclocal_m4_deps): Add libmcheck.m4.
3640 * acinclude.m4: Include libmcheck.m4.
3641 * configure.ac: Source development.sh instead of setting
3642 'development' here. --enable-libmcheck/--disable-libmcheck code
3643 factored out to GDB_AC_LIBMCHECK. Run it.
3644 * development.sh: New file.
3645 * libmcheck.m4: New file.
3646 * configure: Regenerate.
3648 2013-07-02 Tom Tromey <tromey@redhat.com>
3650 * contrib/ari/update-web-ari.sh: Update for version.in change.
3652 2013-07-02 Tom Tromey <tromey@redhat.com>
3654 * common/ptid.h: Comment fixes.
3656 2013-07-01 Tom Tromey <tromey@redhat.com>
3658 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3659 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3660 (dwarf2_read_index, create_all_comp_units): Update.
3662 2013-07-01 Tom Tromey <tromey@redhat.com>
3664 * configure.ac (build_warnings): Add -Wold-style-definition.
3665 * configure: Rebuild.
3666 * machoread.c (_initialize_machoread): Use "(void)".
3667 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3670 2013-07-01 Tom Tromey <tromey@redhat.com>
3672 * configure.ac (build_warnings): Add -Wold-style-declaration.
3673 * configure: Rebuild.
3674 * dsrec.c (make_srec): Use "static const", not "const static".
3675 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3677 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3678 Use "static const", not "const static".
3679 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3681 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3683 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3685 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3687 (v850_dbtrap_breakpoint_from_pc): Likewise.
3688 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3691 2013-07-01 Tom Tromey <tromey@redhat.com>
3693 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3694 * configure: Rebuild.
3696 2013-07-01 Pedro Alves <palves@redhat.com>
3698 * defs.h: Include "pathmax.h".
3699 * utils.c: Don't include sys/param.h.
3700 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3701 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3702 instead of MAXPATHLEN.
3703 * solib-sunos.c: Don't include sys/param.h.
3704 * xcoffread.c: Don't include sys/param.h.
3705 * bsd-kvm.c: Don't include sys/param.h.
3706 * darwin-nat.c: Don't include sys/param.h.
3707 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3708 * darwin-nat-info.c: Don't include sys/param.h.
3709 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3711 * i386obsd-nat.c: Don't include sys/param.h.
3712 * inf-child.c: Don't include sys/param.h.
3713 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3714 * linux-fork.c: Don't include sys/param.h.
3715 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3716 * linux-nat.c: Don't include sys/param.h.
3717 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3718 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3719 * m68klinux-nat.c: Don't include sys/param.h.
3720 * nbsd-nat.c: Don't include sys/param.h.
3721 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3722 * ppc-linux-nat.c: Don't include sys/param.h.
3723 * rs6000-nat.c: Don't include sys/param.h.
3724 * spu-linux-nat.c. Don't include sys/param.h.
3725 * windows-nat.c: Don't include sys/param.h.
3726 * xtensa-linux-nat.c: Don't include sys/param.h.
3727 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3729 2013-07-01 Pedro Alves <palves@redhat.com>
3731 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3732 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3733 * gnulib/aclocal.m4: Regenerate.
3734 * gnulib/config.in: Regenerate.
3735 * gnulib/configure: Regenerate.
3736 * gnulib/import/pathmax.h: New file.
3737 * gnulib/import/Makefile.am: Regenerate.
3738 * gnulib/import/Makefile.in: Regenerate.
3739 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3740 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3741 * gnulib/import/m4/pathmax.m4: New file.
3743 2013-07-01 Pedro Alves <palves@redhat.com>
3745 * configure.ac (GDBINIT): Define, depending on host.
3746 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3747 * top.c (PATH_MAX): Delete fallback definition.
3748 (GDBINIT_FILENAME): Delete.
3749 (gdbinit): Reimplement as const char array set to the GDBINIT
3751 * top.h (gdbinit): Make const.
3752 * configure, config.in: Regenerate.
3754 2013-07-01 Pedro Alves <palves@redhat.com>
3756 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3757 * cli/cli-cmds.h (source_script): Likewise.
3758 * exceptions.c (catch_command_errors_const): New function.
3759 * exceptions.h (catch_command_errors_const): Declare.
3760 * main.c (get_init_files): Make parameters const, and adjust.
3761 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3762 'local_gdbinit' locals const. Adjust to use
3763 catch_command_errors_const.
3764 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3765 'local_gdbinit' locals const.
3767 2013-07-01 Pedro Alves <palves@redhat.com>
3769 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3770 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3771 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3774 2013-07-01 Pedro Alves <palves@redhat.com>
3776 Import the "unistd" gnulib module.
3777 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3778 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3779 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3780 import/m4/unistd_h.m4.
3781 * gnulib/aclocal.m4: Renenerate.
3782 * gnulib/config.in: Renenerate.
3783 * gnulib/configure: Renenerate.
3784 * gnulib/import/Makefile.am: Renenerate.
3785 * gnulib/import/Makefile.in: Renenerate.
3786 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3787 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3788 * gnulib/import/m4/off_t.m4: New file.
3789 * gnulib/import/m4/ssize_t.m4: New file.
3790 * gnulib/import/m4/sys_types_h.m4: New file.
3791 * gnulib/import/m4/unistd_h.m4: New file.
3792 * gnulib/import/sys_types.in.h: New file.
3793 * gnulib/import/unistd.c: New file.
3794 * gnulib/import/unistd.in.h: New file.
3796 2013-07-01 Pedro Alves <palves@redhat.com>
3798 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3799 defined instead of checking HAVE_UNISTD_H.
3801 2013-07-01 Pedro Alves <palves@redhat.com>
3803 Reimport gnulib from scratch.
3804 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3805 import/m4/onceonly.m4.
3806 * gnulib/aclocal.m4: Renegerate.
3807 * gnulib/config.in: Renegerate.
3808 * gnulib/configure: Renegerate.
3809 * gnulib/import/Makefile.in: Renegerate.
3810 * gnulib/import/extra/update-copyright: Renegerate.
3811 * gnulib/import/m4/onceonly.m4: Delete.
3813 2013-07-01 Pedro Alves <palves@redhat.com>
3815 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3817 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3820 * remote.c (async_remote_interrupt_twice): Make it static.
3821 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3823 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3825 * ia64-linux-tdep.c: Include <ctype.h>.
3826 (ia64_linux_stap_is_single_operand): New function.
3827 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3829 2013-06-28 Tom Tromey <tromey@redhat.com>
3831 * Makefile.in (version.c): Use version.in, not
3833 * common/create-version.sh: Likewise.
3834 * common/version.in: Move...
3835 * version.in: ...here.
3837 2013-06-28 Pedro Alves <palves@redhat.com>
3839 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3841 * utils.h (pagination_enabled): Declare.
3843 2013-06-28 Pedro Alves <palves@redhat.com>
3845 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3846 Move higher up in file.
3848 2013-06-28 Tom Tromey <tromey@redhat.com>
3850 * tracepoint.c (deprecated_readline_begin_hook)
3851 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3854 2013-06-28 Pedro Alves <palves@redhat.com>
3857 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3858 checking if they're available.
3859 * value.c (value_available_contents_eq): Change comment.
3860 * value.h (value_available_contents_eq): Expand comment.
3862 2013-06-27 Tom Tromey <tromey@redhat.com>
3864 * target.c (find_run_target): Remove.
3865 * target.h (find_run_target): Remove.
3867 2013-06-27 Tom Tromey <tromey@redhat.com>
3869 * corelow.c (core_gdbarch): Now static.
3871 2013-06-27 Tom Tromey <tromey@redhat.com>
3873 * target.c (target_struct_index): Remove.
3875 2013-06-27 Pedro Alves <palves@redhat.com>
3877 * infrun.c: Remove comment describing the 'stepping over runtime
3878 loader dynamic symbol resolution code' mechanism; moved to
3881 2013-06-27 Pedro Alves <palves@redhat.com>
3883 * exceptions.c (catch_command_errors): Remove spurious space.
3884 * exceptions.h (catch_command_errors): Second parameter is "arg",
3887 2013-06-27 Yao Qi <yao@codesourcery.com>
3889 * common/create-version.sh: Update comments. Handle the case
3890 that TARGET_ALIAS is empty.
3892 2013-06-26 Pedro Alves <palves@redhat.com>
3894 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3897 2013-06-26 Pedro Alves <palves@redhat.com>
3899 * infrun.c: Update comments on stepping over runtime loader
3900 dynamic symbol resolution code.
3902 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3904 * ax-gdb.h (union exp_element): Forward declare.
3905 * parser-defs.h: Include expression.h.
3907 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3909 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3911 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3913 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3915 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3917 Fix trace-status to output proper start-time and stop-time.
3918 * tracepoint.c (trace_status_command): Fix type of printf arg to
3919 prevent improper type conversion.
3920 (trace_status_mi): Likewise.
3922 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3924 * mips-tdep.c (mips_next_pc): Fix a typo.
3926 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3928 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3930 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3931 Yao Qi <yao@codesourcery.com>
3933 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3934 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3935 * mi/mi-main.c (print_variable_or_computed): New function.
3936 (mi_cmd_trace_frame_collected): New function.
3937 * tracepoint.c (find_trace_state_variable_by_number): New.
3938 (struct traceframe_info): Move to tracepoint.h
3939 (struct collection_list): Likewise.
3940 (do_collect_symbol): Include locals and arguments in the
3941 collected variables list.
3942 (clear_collection_list): Clear wholly collected variables list
3943 and computed variables list.
3944 (append_exp): New function.
3945 (encode_actions_1): Include variables in the wholly
3946 collected variables list. Include memory ranges and
3947 full-fledged expressions in the computed expressions list.
3948 (encode_actions): Move some code to ...
3949 Return the cleanup chain.
3950 (encode_actions_rsp): ... here. New function.
3951 (get_traceframe_location, get_traceframe_info): Remove static.
3952 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3953 (struct collection_list): Moved from tracepoint.c. Add two
3954 new fields 'wholly_collected' and 'computed'.
3955 (find_trace_state_variable_by_number): Declare.
3956 (encode_actions): Adjust declaration.
3957 (encode_actions_rsp): Declare.
3958 (get_traceframe_info, get_traceframe_location): Declare.
3960 * NEWS: Mention new MI command -trace-frame-collected.
3962 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3963 Yao Qi <yao@codesourcery.com>
3965 * ctf.c (ctf_traceframe_info): Push trace state variables
3966 present in the trace data into the traceframe info object.
3967 * breakpoint.c (DEF_VEC_I): Remove.
3968 * common/filestuff.c (DEF_VEC_I): Likewise.
3969 * dwarf2loc.c (DEF_VEC_I): Likewise.
3970 * mi/mi-main.c (DEF_VEC_I): Likewise.
3971 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3972 * features/traceframe-info.dtd: Add tvar element and its
3974 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3975 (build_traceframe_info): Push trace state variables present in
3976 the trace data into the traceframe info object.
3977 (traceframe_info_start_tvar): New function.
3978 (tvar_attributes): New.
3979 (traceframe_info_children): Add "tvar" element.
3980 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3982 * NEWS: Mention the change in GDB and GDBserver.
3984 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3985 Yao Qi <yao@codesourcery.com>
3987 * tracepoint.c (trace_dump_command): Move code to ...
3988 (get_traceframe_location): ... here. New.
3990 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3991 Yao Qi <yao@codesourcery.com>
3993 * tracepoint.c (trace_dump_command): GDB emits an error
3994 instead of a warning when a traceframe is not selected.
3996 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3997 Yao Qi <yao@codesourcery.com>
3999 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4000 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4002 (do_clear_collection_list, init_collection_list): New.
4003 (encode_actions): Add local variables 'tracepoint_list' and
4004 'stepping_list'. Call init_collection_list and make cleanup
4005 which calls do_clear_collection_list. Don't call
4006 clear_collection_list.
4007 (_initialize_tracepoint): Delete references to
4008 'tracepoint_list' and 'stepping_list'.
4010 2013-06-25 Tom Tromey <tromey@redhat.com>
4012 * common/create-version.sh (date): Use "$", not "$$" in sed
4015 2013-06-25 Kevin Buettner <kevinb@redhat.com>
4017 * NEWS (New targets): Add entry for TI MSP430.
4019 2013-06-25 Yao Qi <yao@codesourcery.com>
4021 * remote.c (remote_start_remote): Move code to upload tsv
4024 2013-06-25 Yao Qi <yao@codesourcery.com>
4025 Hui Zhu <hui@codesourcery.com>
4026 Pedro Alves <palves@redhat.com>
4028 PR breakpoints/15075
4029 PR breakpoints/15434
4030 * breakpoint.c (bpstat_stop_status): Call
4031 b->ops->after_condition_true.
4032 (update_dprintf_command_list): Don't append "continue" command
4033 to the command list of dprintf breakpoint.
4034 (base_breakpoint_after_condition_true): New function.
4035 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4036 (dprintf_after_condition_true): New function.
4037 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4038 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4040 2013-06-24 Kevin Buettner <kevinb@redhat.com>
4042 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4043 (ALLDEPFILES): Add msp430-tdep.c.
4044 * configure.tgt (msp430*-*-elf): New target.
4045 * msp430-tdep.c: New file.
4047 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4049 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4050 microMIPS synthetic symbols.
4052 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4054 * objfiles.h (pc_in_section): New prototype.
4055 (in_plt_section): Remove name argument, replace prototype with
4056 static inline function.
4057 * mips-tdep.h: Include "objfiles.h".
4058 (in_mips_stubs_section): New function.
4059 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4060 in_solib_call_trampoline member.
4061 (hppa_in_solib_call_trampoline): Remove name argument.
4062 * objfiles.c (pc_in_section): New function.
4063 (in_plt_section): Remove function.
4064 * mips-linux-tdep.c: Include "objfiles.h".
4065 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4066 name argument. Return 1 rather than the low 16-bit halfword of
4067 any instruction examined.
4068 (mips_linux_in_dynsym_resolve_code): Update
4069 mips_linux_in_dynsym_stub call accordingly.
4070 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4071 rather than an equivalent hand-coded sequence.
4072 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4073 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4074 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4075 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4077 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4078 on call to tdep->in_solib_call_trampoline.
4079 (hppa_in_solib_call_trampoline): Remove name argument, update
4080 according to in_plt_section change.
4081 (hppa_skip_trampoline_code): Update according to in_plt_section
4083 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4084 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4086 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4087 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4088 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4089 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4090 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4091 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4092 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4093 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4094 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4095 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4096 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4097 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4098 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4100 2013-06-24 Joel Brobecker <brobecker@adacore.com>
4102 * common/create-version.sh: Fix expansion of $host_alias
4103 and $target_alias in generation of HOST_NAME and TARGET_NAME
4106 2013-06-24 Tom Tromey <tromey@redhat.com>
4108 * common/create-version.sh: New file.
4109 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4111 (HFILES_NO_SRCDIR): Use common/version.h.
4112 * version.in: Move to ...
4113 * common/version.in: ... here. Replace date with "DATE".
4114 * version.h: Move to ...
4115 * common/version.h: ... here.
4117 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4119 * gdb/gnulib/Makefile.in: Update date in copyright header.
4120 * gdb/gnulib/configure.ac: Ditto.
4121 * gdb/gnulib/update-gnulib.sh: Ditto.
4123 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4125 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4126 "gdb/gnulib/import".
4128 2013-06-21 Will Newton <will.newton@linaro.org>
4130 * doublest.c (ldfrexp): Remove function.
4131 (convert_doublest_to_floatformat): Call frexpl instead of
4134 2013-06-21 Will Newton <will.newton@linaro.org>
4136 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4137 * gnulib/aclocal.m4: Regenerate.
4138 * gnulib/config.in: Regenerate.
4139 * gnulib/configure: Regenerate.
4140 * gnulib/import/Makefile.am: Update.
4141 * gnulib/import/Makefile.in: Update.
4142 * gnulib/import/m4/gnulib-cache.m4: Update.
4143 * gnulib/import/m4/gnulib-comp.m4: Update.
4144 * gnulib/import/float+.h: Import.
4145 * gnulib/import/float.c: Import.
4146 * gnulib/import/float.in.h: Import.
4147 * gnulib/import/fpucw.h: Import.
4148 * gnulib/import/frexp.c: Import.
4149 * gnulib/import/frexpl.c: Import.
4150 * gnulib/import/isnan.c: Import.
4151 * gnulib/import/isnand-nolibm.h: Import.
4152 * gnulib/import/isnand.c: Import.
4153 * gnulib/import/isnanl-nolibm.h: Import.
4154 * gnulib/import/isnanl.c: Import.
4155 * gnulib/import/itold.c: Import.
4156 * gnulib/import/m4/exponentd.m4: Import.
4157 * gnulib/import/m4/exponentl.m4: Import.
4158 * gnulib/import/m4/float_h.m4: Import.
4159 * gnulib/import/m4/fpieee.m4: Import.
4160 * gnulib/import/m4/frexp.m4: Import.
4161 * gnulib/import/m4/frexpl.m4: Import.
4162 * gnulib/import/m4/isnand.m4: Import.
4163 * gnulib/import/m4/isnanl.m4: Import.
4164 * gnulib/import/m4/math_h.m4: Import.
4165 * gnulib/import/math.c: Import.
4166 * gnulib/import/math.in.h: Import.
4168 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4170 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4171 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4172 signature_INTEL_edx comparisons.
4174 2013-06-20 Doug Evans <dje@google.com>
4177 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4178 All callers updated.
4179 (open_dwp_file): If we can't find the dwp file, search the basename
4180 in debug-file-directory.
4182 * dwarf2read.c (struct dwp_file): Fix comment.
4183 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4185 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4188 2013-06-20 Yao Qi <yao@codesourcery.com>
4190 * breakpoint.c (create_breakpoint): Fix code indentation.
4192 2013-06-20 Yao Qi <yao@codesourcery.com>
4194 * breakpoint.c (create_breakpoints_sal_default): Remove
4195 parameter 'lsal'. Update declaration.
4196 (bkpt_create_breakpoints_sal): Caller update.
4197 (tracepoint_create_breakpoints_sal): Likewise.
4199 2013-06-20 Pedro Alves <pedro@codesourcery.com>
4200 Yao Qi <yao@codesourcery.com>
4202 * NEWS: Mention the new option '--skip-unavailable' of command
4203 -data-list-register-values.
4204 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4205 --skip-unavailable option. Adjust to use output_register.
4206 (output_register): Add new 'skip_unavailable' parameter.
4209 2013-06-19 Mike Frysinger <vapier@gentoo.org>
4211 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4212 common/i386-gcc-cpuid.h.
4213 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4214 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4215 Copy the latest version from upstream gcc.
4216 * common/linux-btrace.c: Include i386-cpuid.h.
4217 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4219 (cpu_supports_btrace): Likewise.
4220 * go32-nat.c: Include i386-cpuid.h.
4221 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4223 2013-06-19 Doug Evans <dje@google.com>
4225 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4226 (get_section_index): Ditto.
4228 2013-06-19 Tom Tromey <tromey@redhat.com>
4230 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4233 2013-06-18 Doug Evans <dje@google.com>
4235 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4237 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4238 Move test of cu_index closer to use. Print complaint if cu_index
4241 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4243 * machoread.c (oso_vector): Delete this global.
4244 (macho_register_oso): Add new parameter "oso_vector_ptr".
4245 Use it instead of the "oso_vector" global.
4246 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4247 (macho_symfile_read): Use a local oso_vector, to be free'ed
4248 at the end of this function, in place of the old "oso_vector"
4249 global. Update various function calls accordingly. Use one
4250 single cleanup chain for the entire function.
4252 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4254 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4255 DWARF2_PER_OBJFILE by uses of DATA instead.
4257 2013-06-18 Tom Tromey <tromey@redhat.com>
4259 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4261 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4262 Special case signals other than GDB_SIGNAL_TRAP.
4263 (explains_signal_watchpoint): New function.
4264 (base_breakpoint_explains_signal): Add 'sig' argument.
4265 (initialize_breakpoint_ops): Set 'explains_signal' method for
4267 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4269 (bpstat_explains_signal): Likewise.
4270 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4272 2013-06-18 Tom Tromey <tromey@redhat.com>
4274 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4276 2013-06-18 Tom Tromey <tromey@redhat.com>
4278 * python/python.c (finish_python_initialization): Decref
4279 'pythondir' on failure path as well.
4281 2013-06-18 Tom Tromey <tromey@redhat.com>
4284 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4285 after taking bits_to_skip into account. Sign extend byte_offset.
4286 * utils.h (gdb_sign_extend): Declare.
4287 * utils.c (gdb_sign_extend): New function.
4289 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4291 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4293 2013-06-17 Pierre Muller <muller@sourceware.org>
4295 * corelow.c (core_open): Print GDB signal name instead of target
4298 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4300 * .gitignore: Add /gcore.
4302 2013-06-13 Doug Evans <dje@google.com>
4304 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4305 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4307 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4309 * stack.c (backtrace_command_1): Fix indentation.
4311 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4313 * window-nat.c (thread_rec): Add missing empty line after
4314 local variable declaration.
4316 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4318 * windows-nat.c (thread_rec): Revert format used to print
4319 error code returned by SuspendThread from %d back to %u.
4321 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4323 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4325 (get_windows_debug_event): Likewise, for all debug traces.
4327 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4329 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4332 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4333 Yao Qi <yao@codesourcery.com>
4335 * mi/mi-main.c (get_register): Remove declaration.
4336 (output_register): Declare.
4337 (mi_cmd_data_list_register_values): Remove local variable
4338 'tuple_cleanup'. Move some code into output_register.
4339 (get_register): Renamed to ...
4340 (output_register): ... this. Output the register's
4341 "number" ui_out tuple here.
4343 2013-06-07 Pedro Alves <palves@redhat.com>
4345 * darwin-nat.c: Fix formating in copyright header.
4346 * darwin-nat.h: Likewise.
4347 * gnu-nat.c: Likewise.
4348 * machoread.c: Likewise.
4350 2013-06-07 Pedro Alves <palves@redhat.com>
4353 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4354 static. Output a global target description pointer.
4355 (init_registers_${name}): Adjust to initialize a
4356 target description structure.
4358 2013-06-07 Will Newton <will.newton@linaro.org>
4360 * printcmd.c (build_address_symbolic): Call
4361 gdbarch_addr_bits_remove for text minimal symbols.
4363 2013-06-07 Will Newton <will.newton@linaro.org>
4365 * MAINTAINERS: Add myself to Write After Approval.
4367 2013-06-07 Yao Qi <yao@codesourcery.com>
4369 * tracepoint.c (start_tracing): Move code to ...
4370 (trace_reset_local_state): ... here. New.
4371 (disconnect_tracing): Don't call set_current_traceframe,
4372 set_tracepoint_num, and set_traceframe_context. Call
4373 trace_reset_local_state instead.
4374 (tfile_close): Call trace_reset_local_state.
4375 * ctf.c (ctf_close): Likewise.
4376 * remote.c (remote_close): Likewise.
4377 * tracepoint.h (trace_reset_local_state): Declare.
4379 2013-06-06 Doug Evans <dje@google.com>
4381 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4382 and fix header docs.
4384 2013-06-05 Doug Evans <dje@google.com>
4385 Keith Seitz <keiths@redhat.com>
4388 * cp-namespace.c (find_symbol_in_baseclass): Call
4389 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4390 Check result of call to lookup_symbol_static.
4391 Call lookup_static_symbol_aux unconditionally.
4392 Call check_typedef on base types before accessing them.
4393 (cp_lookup_nested_symbol): Fix comment.
4395 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4397 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4398 minimal symbols pointing to function descriptors.
4400 2013-06-05 Tom Tromey <tromey@redhat.com>
4402 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4404 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4405 Pedro Alves <palves@redhat.com>
4407 * remote.c (remote_wait_as): Restore signal handler before returning
4408 when GDB gets a notification.
4410 2013-06-04 Gary Benson <gbenson@redhat.com>
4413 * breakpoint.h (handle_solib_event): Moved function declaration
4415 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4416 (bpstat_stop_status): Pass new argument to handle_solib_event.
4417 * solib.h (update_solib_breakpoints): New function declaration.
4418 (handle_solib_event): Moved function declaration from
4420 * solib.c (update_solib_breakpoints): New function.
4421 (handle_solib_event): Moved function from breakpoint.c.
4422 Updated to call solib_ops->handle_event if not NULL.
4423 * solist.h (target_so_ops): New fields "update_breakpoints" and
4425 * infrun.c (set_stop_on_solib_events): New function.
4426 (_initialize_infrun): Use the above for "set
4427 stop-on-solib-events".
4428 (handle_inferior_event): Pass new argument to handle_solib_event.
4429 * solib-svr4.c (probe.h): New include.
4430 (svr4_free_library_list): New forward declaration.
4431 (probe_action): New enum.
4432 (probe_info): New struct.
4433 (probe_info): New static variable.
4434 (NUM_PROBES): New definition.
4435 (svr4_info): New fields "using_xfer", "probes_table" and
4437 (free_probes_table): New function.
4438 (free_solib_list): New function.
4439 (svr4_pspace_data_cleanup): Free probes table and solib list.
4440 (svr4_copy_library_list): New function.
4441 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4442 (svr4_read_so_list): New parameter "prev_lm".
4443 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4444 (svr4_current_sos): New function.
4445 (probe_and_action): New struct.
4446 (hash_probe_and_action): New function.
4447 (equal_probe_and_action): Likewise.
4448 (register_solib_event_probe): Likewise.
4449 (solib_event_probe_at): Likewise.
4450 (solib_event_probe_action): Likewise.
4451 (solist_update_full): Likewise.
4452 (solist_update_incremental): Likewise.
4453 (disable_probes_interface_cleanup): Likewise.
4454 (svr4_handle_solib_event): Likewise.
4455 (svr4_update_solib_event_breakpoint): Likewise.
4456 (svr4_update_solib_event_breakpoints): Likewise.
4457 (svr4_create_solib_event_breakpoints): Likewise.
4458 (enable_break): Free probes table before creating breakpoints.
4459 Use svr4_create_solib_event_breakpoints to create breakpoints.
4460 (svr4_solib_create_inferior_hook): Free the solib list.
4461 (_initialize_svr4_solib): Initialise
4462 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4464 2013-06-04 Gary Benson <gbenson@redhat.com>
4466 * target.h (target_ops): New field
4467 "to_augmented_libraries_svr4_read".
4468 (target_augmented_libraries_svr4_read): New macro.
4469 * target.c (update_current_target): Handle
4470 to_augmented_libraries_svr4_read.
4471 * remote.c (remote_state): New field
4472 "augmented_libraries_svr4_read".
4473 (remote_augmented_libraries_svr4_read_feature): New function.
4474 (remote_protocol_features): Add entry for
4475 "augmented-libraries-svr4-read".
4476 (remote_augmented_libraries_svr4_read): New function.
4477 (init_remote_ops): Initialize
4478 remote_ops.to_augmented_libraries_svr4_read.
4480 2013-06-04 Gary Benson <gbenson@redhat.com>
4484 2013-06-04 Gary Benson <gbenson@redhat.com>
4486 * objfiles.h (inhibit_section_map_updates): New function
4488 (resume_section_map_updates): Likewise.
4489 (resume_section_map_updates_cleanup): Likewise.
4490 * objfiles.c (objfile_pspace_info): Removed field
4491 "objfiles_changed_p". New fields "new_objfiles_available",
4492 "section_map_dirty" and "inhibit_updates".
4493 (allocate_objfile): Set new_objfiles_available.
4494 (free_objfile): Set section_map_dirty.
4495 (objfile_relocate1): Likewise.
4496 (in_plt_section): Likewise.
4497 (find_pc_section): Update the conditions under which the
4498 section map will be updated.
4499 (inhibit_section_map_updates): New function.
4500 (resume_section_map_updates): Likewise.
4501 (resume_section_map_updates_cleanup): Likewise.
4503 2013-06-04 Gary Benson <gbenson@redhat.com>
4505 * probe.h (get_probe_argument_count): New declaration.
4506 (evaluate_probe_argument): Likewise.
4507 * probe.c (get_probe_argument_count): New function.
4508 (evaluate_probe_argument): Likewise.
4509 (probe_safe_evaluate_at_pc): Use the above new functions.
4511 2013-06-04 Alan Modra <amodra@gmail.com>
4513 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4514 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4515 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4516 target mem reads on optional insns.
4517 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4518 ppc_insns_match_pattern calls.
4519 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4520 Add match for power7 thread safety insns, and new order of
4521 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4522 invocation in comment, and update rest of comment.
4523 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4524 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4525 (ppc64_standard_linkage2_target): Update insn offsets.
4526 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4527 stubs first. Update calls.
4529 2013-06-04 Yao Qi <yao@codesourcery.com>
4531 * solib.c (solib_find): Don't need dir separator if path has
4534 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4536 Revert (indirectly causes a SIGSEGV):
4537 * machoread.c (macho_symfile_read): Assign first cleanup to
4540 2013-06-03 Yao Qi <yao@codesourcery.com>
4542 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4543 mi-parse.c. Make them static.
4544 (mi_all_values): Likewise.
4545 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4546 mi_parse_print_values. Make it external.
4547 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4548 Remove the declarations.
4549 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4550 * mi/mi-parse.h (mi_parse_print_values): Declare.
4551 * mi/mi-cmd-stack.c: Include mi-parse.h.
4552 (parse_print_values): Remove
4553 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4554 of parse_print_values.
4555 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4557 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4558 Yao Qi <yao@codesourcery.com>
4560 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4561 (encode_actions): Move code to ...
4562 (all_tracepoint_actions_and_cleanup): ... here. New.
4563 (trace_dump_command): Likewise.
4565 2013-05-30 Tom Tromey <tromey@redhat.com>
4567 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4569 2013-05-30 Tom Tromey <tromey@redhat.com>
4571 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4572 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4573 'old_chain' argument. Add 'parser_result' argument.
4574 (gdb_xml_create_parser_and_cleanup): Remove old version.
4575 (gdb_xml_parse_quick): Update.
4576 (xml_process_xincludes): Update.
4577 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4580 2013-05-30 Tom Tromey <tromey@redhat.com>
4582 * probe.c (collect_probes): Check arguments for NULL before
4583 calling compile_rx_or_error.
4584 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4587 2013-05-30 Tom Tromey <tromey@redhat.com>
4589 * infrun.c (adjust_pc_after_break): Introduce an outer null
4592 2013-05-30 Tom Tromey <tromey@redhat.com>
4594 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4596 2013-05-30 Tom Tromey <tromey@redhat.com>
4598 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4599 for 'old_chain'. Do not check 'head' before processing
4602 2013-05-30 Tom Tromey <tromey@redhat.com>
4604 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4607 2013-05-30 Tom Tromey <tromey@redhat.com>
4609 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4610 inner scope. Unconditionally call do_cleanups.
4612 2013-05-30 Tom Tromey <tromey@redhat.com>
4614 * source.c (find_and_open_source): Call do_cleanups.
4616 2013-05-30 Tom Tromey <tromey@redhat.com>
4618 * linux-thread-db.c (thread_db_load_search): Unconditionally
4621 2013-05-30 Tom Tromey <tromey@redhat.com>
4623 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4624 for 'cleanup'; instead use a later one.
4626 2013-05-30 Tom Tromey <tromey@redhat.com>
4628 * python/py-breakpoint.c (bppy_get_commands): Use
4629 explicit, unconditional return.
4630 * python/py-frame.c (frapy_read_var): Likewise.
4631 * python/python.c (gdbpy_decode_line): Likewise.
4633 2013-05-30 Tom Tromey <tromey@redhat.com>
4635 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4636 do_cleanups on all return paths.
4638 2013-05-30 Tom Tromey <tromey@redhat.com>
4640 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4642 2013-05-30 Tom Tromey <tromey@redhat.com>
4644 * stabsread.c (read_struct_type): Call do_cleanups along
4647 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4649 * mips-linux-tdep.c: Adjust formatting throughout.
4651 2013-05-30 Tom Tromey <tromey@redhat.com>
4653 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4654 along all return paths.
4656 2013-05-30 Tom Tromey <tromey@redhat.com>
4658 * symfile.c (find_separate_debug_file): Call do_cleanups
4659 along all return paths.
4661 2013-05-30 Tom Tromey <tromey@redhat.com>
4663 * symtab.c (search_symbols): Introduce a null cleanup for
4666 2013-05-30 Tom Tromey <tromey@redhat.com>
4668 * python/py-value.c (valpy_binop): Call do_cleanups before
4671 2013-05-30 Tom Tromey <tromey@redhat.com>
4673 * python/py-prettyprint.c (print_children): Remove extra
4676 2013-05-30 Tom Tromey <tromey@redhat.com>
4678 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4681 2013-05-30 Tom Tromey <tromey@redhat.com>
4683 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4684 along all return paths.
4686 2013-05-30 Tom Tromey <tromey@redhat.com>
4688 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4691 2013-05-30 Tom Tromey <tromey@redhat.com>
4693 * varobj.c (c_value_of_root): Call do_cleanups along all
4696 2013-05-30 Tom Tromey <tromey@redhat.com>
4698 * tracepoint.c (trace_dump_command): Unconditionally call
4701 2013-05-30 Tom Tromey <tromey@redhat.com>
4703 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4704 do_cleanups earlier.
4706 2013-05-30 Tom Tromey <tromey@redhat.com>
4708 * machoread.c (macho_symfile_read): Assign first cleanup to
4711 2013-05-30 Tom Tromey <tromey@redhat.com>
4713 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4715 2013-05-30 Tom Tromey <tromey@redhat.com>
4717 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4719 2013-05-30 Tom Tromey <tromey@redhat.com>
4721 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4722 call discard_cleanups.
4723 (inf_ptrace_attach): Likewise.
4725 2013-05-30 Tom Tromey <tromey@redhat.com>
4727 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4729 (mips_initialize): Likewise.
4730 (common_open): Call do_cleanups.
4732 2013-05-30 Tom Tromey <tromey@redhat.com>
4734 * utils.c (internal_vproblem): Call do_cleanups.
4736 2013-05-30 Tom Tromey <tromey@redhat.com>
4738 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4740 2013-05-30 Tom Tromey <tromey@redhat.com>
4742 * cli/cli-script.c (setup_user_args): Don't return after error.
4744 2013-05-30 Tom Tromey <tromey@redhat.com>
4746 * somread.c (som_symtab_read): Call do_cleanups.
4748 2013-05-30 Tom Tromey <tromey@redhat.com>
4750 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4752 2013-05-30 Tom Tromey <tromey@redhat.com>
4754 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4755 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4756 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4757 * source.c (show_substitute_path_command): Call do_cleanups.
4758 (unset_substitute_path_command, set_substitute_path_command):
4760 * symfile.c (load_command): Call do_cleanups.
4762 2013-05-30 Tom Tromey <tromey@redhat.com>
4764 * contrib/cleanup_check.py: New file.
4765 * contrib/gcc-with-excheck: Add option parsing.
4767 2013-05-30 Joel Brobecker <brobecker@adacore.com>
4769 * windows-nat.c (windows_delete_thread): Add missing space
4772 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4774 * inferior.c (top level): Include tilde.h.
4775 (add_inferior_command): Call tilde_expand on the value of 'exec'
4778 2013-05-30 Pedro Alves <pedro@codesourcery.com>
4779 Yao Qi <yao@codesourcery.com>
4781 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4783 (encode_actions): Likewise.
4784 * remote.c (remote_download_tracepoint): Caller update.
4785 * tracepoint.h (encode_actions): Update declaration.
4787 2013-05-30 Pedro Alves <palves@redhat.com>
4789 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4792 2013-05-30 Yao Qi <yao@codesourcery.com>
4794 * remote.c (remote_check_symbols): Remove unused parameter
4797 (remote_start_remote, remote_new_objfile): Caller update.
4799 2013-05-30 Yao Qi <yao@codesourcery.com>
4801 * mi/mi-cmds.c (mi_cmds): Define MI command
4802 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4805 2013-05-29 Pedro Alves <palves@redhat.com>
4807 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4808 (remote_insert_watchpoint, remote_remove_watchpoint)
4809 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4810 (remote_verify_memory, compare_sections_command)
4811 (remote_search_memory): Set the general process/thread on the
4814 2013-05-29 Pedro Alves <palves@redhat.com>
4816 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4817 (_initialize_aarch64_tdep): Don't call
4818 initialize_tdesc_aarch64_without_fpu.
4819 * features/Makefile (WHICH): Remove reference to
4820 aarch64-without-fpu.
4821 * features/aarch64-without-fpu.c: Delete file.
4822 * regformats/aarch64-without-fpu.dat: Delete file.
4824 2013-05-28 Yao Qi <yao@codesourcery.com>
4826 * tracepoint.c (stringify_collection_list): Remove parameter
4828 (encode_actions): Caller update. Remove local variables.
4830 2013-05-24 Yao Qi <yao@codesourcery.com>
4832 * tracepoint.c (TFILE_PID): Remove.
4833 (tfile_open): Don't add thread and inferior.
4834 (tfile_close): Don't set 'inferior_ptid'. Don't call
4835 exit_inferior_silent.
4836 (tfile_thread_alive): Remove.
4837 (init_tfile_ops): Don't set field 'to_thread_alive' of
4840 2013-05-23 Doug Evans <dje@google.com>
4842 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4844 2013-05-23 Pedro Alves <palves@redhat.com>
4846 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4847 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4848 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4849 Only define if HAVE_SOCKETS is defined.
4850 * configure.ac: Check for sys/socket.h.
4851 * config.in, configure: Regenerate.
4853 2013-05-23 Pedro Alves <palves@redhat.com>
4855 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4856 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4857 printing uint32_t variables.
4859 2013-05-23 Pedro Alves <palves@redhat.com>
4861 * NEWS: Mention GDBserver range stepping support.
4863 2013-05-23 Yao Qi <yao@codesourcery.com>
4864 Pedro Alves <palves@redhat.com>
4866 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4868 * infcmd.c (step_once, until_next_command): Enable range stepping.
4869 * infrun.c (displaced_step_prepare): Disable range stepping.
4870 (resume): Disable range stepping if stepping over a breakpoint or
4871 we have software watchpoints. If range stepping is enabled,
4872 assert the thread is in the stepping range.
4873 (clear_proceed_status_thread): Clear may_range_step.
4874 (handle_inferior_event): Disable range stepping as soon as we know
4875 the thread that hit the event. Re-enable it whenever we're going
4876 to step with a step range.
4877 * remote.c (struct vCont_action_support) <r>: New field.
4878 (use_range_stepping): New global.
4879 (remote_vcont_probe): Handle 'r' action.
4880 (append_resumption): Append an 'r' action if the thread may range
4882 (show_range_stepping): New function.
4883 (set_range_stepping): New function.
4884 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4885 'set range-stepping' and 'show range-stepping' commands.
4886 * NEWS: Mention range stepping, the new vCont;r action, and the
4887 new "set/show range-stepping" commands.
4889 2013-05-23 Yao Qi <yao@codesourcery.com>
4890 Pedro Alves <palves@redhat.com>
4892 * remote.c (struct vCont_action_support): New struct.
4893 (struct remote_state) <support_vCont_t>: Remove field.
4894 <vCont_actions_support>: New field.
4895 (remote_vcont_probe, remote_stop_ns): Update.
4897 2013-05-23 Yao Qi <yao@codesourcery.com>
4898 Pedro Alves <palves@redhat.com>
4900 * gdbthread.h (pc_in_thread_step_range): New declaration.
4901 * thread.c (pc_in_thread_step_range): New function.
4902 * infrun.c (handle_inferior_event): Use it.
4904 2013-05-23 Joel Brobecker <brobecker@adacore.com>
4906 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4909 2013-05-22 Keith Seitz <keiths@redhat.com>
4911 * ada-lang.c (is_known_support_routine): Add explicit free of
4912 'func_name' from find_frame_funname.
4913 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4914 for func_name from find_frame_funname.
4915 * python/py-frame.c (frapy_name): Add explicit free of
4916 'name' from find_frame_funname.
4917 * stack.c (find_frame_funname): Add comment explaining that
4918 funcp must be freed by the caller.
4919 Return copy of symbol names instead of pointers.
4920 (print_frame): Add a cleanup for 'funname' from
4922 * stack.h (find_frame_funname): Remove "const" from
4923 'funname' parameter.
4925 2013-05-22 Tom Tromey <tromey@redhat.com>
4928 * c-valprint.c (c_value_print): Use value_addr for
4929 references. Convert back to reference type with value_ref.
4931 2013-05-22 Eli Zaretskii <eliz@gnu.org>
4933 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4934 unloaded DLL, it will be done by handle_solib_event. See
4935 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4938 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4940 * ui-out.c: Create typedef ui_out_level_p and define vector
4941 operations for that type.
4942 (struct ui_out): Use a vector instead of an array.
4943 (current_level): Return level from a vector.
4944 (push_level): Create a level in a vector.
4945 (pop_level): Delete a level in a vector.
4946 (ui_out_new): Create initial level zero level, and store in a
4948 (ui_out_destroy): Add vector cleanup.
4950 2013-05-22 Pedro Alves <palves@redhat.com>
4952 * python/python-internal.h (gdb_Py_DECREF): Tag with
4953 "ARI: editCase function".
4955 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4957 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4959 2013-05-21 Pedro Alves <palves@redhat.com>
4961 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4962 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4963 * python/py-utils.c (py_decref): Don't check for NULL before
4966 2013-05-21 Pedro Alves <palves@redhat.com>
4968 * python/py-utils.c (py_decref): Remove extra braces.
4969 (gdb_pymodule_addobject): Remove extra braces.
4970 * python-internal.h (gdb_Py_DECREF): New static inline function.
4971 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4973 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4975 * breakpoints.c (detach_breakpoints): Do not
4976 detach breakpoints locations with loc_type bp_loc_other.
4978 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4980 Workaround Python 2.6.
4981 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4984 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4986 Code cleanup: constification.
4987 * solib.c (solib_ops): Make return type and ops variable type const.
4988 (set_solib_ops): Make the new_ops parameter and ops variable const.
4989 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4990 (solib_add, solib_keep_data_in_core, clear_solib)
4991 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4992 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4994 * solib.h (set_solib_ops): Make the new_ops parameter const.
4996 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4998 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5000 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5001 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5002 (SYSTEM_GDBINIT_FILES): New variables.
5003 (all): Add stamp-system-gdbinit.
5004 (stamp-system-gdbinit): New rule.
5005 (clean-system-gdbinit, install-system-gdbinit)
5006 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5007 (install-only): Add dependency on install-system-gdbinit.
5008 (uninstall): Add dependency on uninstall-system-gdbinit.
5009 (clean): Add dependency on clean-system-gdbinit.
5010 * system-gdbinit/elinos.py: New file.
5011 * system-gdbinit/wrs-linux.py: New file.
5013 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5015 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5017 2013-05-21 Hui Zhu <hui@codesourcery.com>
5019 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5020 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5021 * mi/mi-cmd-break.c (ctype.h): New include.
5022 (gdb_obstack.h): New include.
5023 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5024 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5025 (mi_cmd_dprintf_insert): New.
5026 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5027 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5029 2013-05-20 Tom Tromey <tromey@redhat.com>
5031 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5033 2013-05-20 Tom Tromey <tromey@redhat.com>
5035 * python/py-value.c (valpy_get_dynamic_type): Simplify
5036 dynamic_type assignment. Use Py_XINCREF.
5038 2013-05-20 Tom Tromey <tromey@redhat.com>
5040 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5042 2013-05-20 Tom Tromey <tromey@redhat.com>
5044 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5045 (gdbpy_selected_frame): Move object-construction code
5048 2013-05-20 Tom Tromey <tromey@redhat.com>
5050 * python/py-arch.c (gdbpy_initialize_arch): Use
5051 gdb_pymodule_addobject.
5052 * python/py-block.c (gdbpy_initialize_blocks): Use
5053 gdb_pymodule_addobject.
5054 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5055 gdb_pymodule_addobject.
5056 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5057 gdb_pymodule_addobject.
5058 * python/py-event.c (gdbpy_initialize_event_generic): Use
5059 gdb_pymodule_addobject.
5060 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5061 gdb_pymodule_addobject.
5062 * python/py-evts.c (add_new_registry): Use
5063 gdb_pymodule_addobject.
5064 (gdbpy_initialize_py_events): Likewise.
5065 * python/py-finishbreakpoint.c
5066 (gdbpy_initialize_finishbreakpoints): Use
5067 gdb_pymodule_addobject.
5068 * python/py-frame.c (gdbpy_initialize_frames): Use
5069 gdb_pymodule_addobject.
5070 * python/py-function.c (gdbpy_initialize_functions): Use
5071 gdb_pymodule_addobject.
5072 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5073 gdb_pymodule_addobject.
5074 * python/py-infthread.c (gdbpy_initialize_thread): Use
5075 gdb_pymodule_addobject.
5076 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5077 gdb_pymodule_addobject.
5078 * python/py-param.c (gdbpy_initialize_parameters): Use
5079 gdb_pymodule_addobject.
5080 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5081 gdb_pymodule_addobject.
5082 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5083 gdb_pymodule_addobject.
5084 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5085 gdb_pymodule_addobject.
5086 * python/py-type.c (gdbpy_initialize_types): Use
5087 gdb_pymodule_addobject.
5088 * python/py-utils.c (gdb_pymodule_addobject): New function.
5089 * python/py-value.c (gdbpy_initialize_values): Use
5090 gdb_pymodule_addobject.
5091 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5092 * python/python.c (_initialize_python): Use
5093 gdb_pymodule_addobject.
5095 2013-05-20 Tom Tromey <tromey@redhat.com>
5097 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5098 * python/py-param.c (get_set_value, get_show_value): Use
5100 * python/python.c (start_type_printers, apply_type_printers):
5101 Use explicit decrefs.
5103 2013-05-20 Tom Tromey <tromey@redhat.com>
5105 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5108 2013-05-20 Tom Tromey <tromey@redhat.com>
5110 * python/python.c (gdbpy_run_events): Decref the result
5111 of PyObject_CallObject.
5113 2013-05-20 Tom Tromey <tromey@redhat.com>
5115 * python/py-symtab.c (set_sal): Use
5116 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5117 (symtab_and_line_to_sal_object): Update.
5119 2013-05-20 Tom Tromey <tromey@redhat.com>
5121 * python/py-param.c (compute_enum_values): Decref 'item'.
5123 2013-05-20 Tom Tromey <tromey@redhat.com>
5125 * mi/mi-main.c: Include python-internal.h.
5126 (mi_cmd_list_features): Check gdb_python_initialized.
5127 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5128 (python_inferior_exit, python_new_objfile, add_thread_object)
5129 (delete_thread_object, py_free_inferior): Check
5130 gdb_python_initialized.
5131 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5132 gdb_python_initialized.
5133 * python/py-type.c (save_objfile_types): Check
5134 gdb_python_initialized.
5135 * python/python-internal.h (gdb_python_initialized): Declare.
5136 * python/python.c (ensure_python_env): Throw exception if
5137 Python not initialized.
5138 (before_prompt_hook, source_python_script_for_objfile)
5139 (start_type_printers, apply_type_printers,
5140 free_type_printers): Check gdb_python_initialized.
5141 * varobj.c (varobj_get_display_hint)
5142 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5143 (install_new_value_visualizer, varobj_set_visualizer)
5144 (value_get_print_value): Check gdb_python_initialized.
5146 2013-05-20 Tom Tromey <tromey@redhat.com>
5148 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5150 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5151 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5153 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5155 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5157 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5159 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5160 init function to return 'int'.
5161 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5162 Return 'int'. Check errors.
5163 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5165 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5166 Return 'int'. Check errors.
5167 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5169 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5171 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5173 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5175 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5177 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5179 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5181 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5183 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5185 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5187 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5189 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5191 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5193 * python/python-internal.h (gdbpy_initialize_auto_load,
5194 gdbpy_initialize_values, gdbpy_initialize_frames,
5195 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5196 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5197 gdbpy_initialize_blocks, gdbpy_initialize_types,
5198 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5199 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5200 gdbpy_initialize_finishbreakpoints,
5201 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5202 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5203 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5204 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5205 gdbpy_initialize_signal_event,
5206 gdbpy_initialize_breakpoint_event,
5207 gdbpy_initialize_continue_event,
5208 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5209 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5210 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5211 * python/python.c (gdb_python_initialized): New global.
5212 (gdbpy_initialize_events): Return 'int'. Check errors.
5213 (_initialize_python): Check errors. Set
5214 gdb_python_initialized.
5216 2013-05-20 Tom Tromey <tromey@redhat.com>
5218 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5219 Decref the reslut of PyObject_CallMethod.
5221 2013-05-20 Tom Tromey <tromey@redhat.com>
5223 * python/py-event.c (gdbpy_initialize_event_generic): Return
5224 early if PyType_Ready fails.
5226 2013-05-20 Tom Tromey <tromey@redhat.com>
5228 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5229 as 'default' in the switch.
5231 2013-05-20 Tom Tromey <tromey@redhat.com>
5233 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5234 get_addr_from_python calls out of TRY_CATCH.
5235 (infpy_write_memory, infpy_search_memory): Likewise.
5236 * python/py-utils.c (get_addr_from_python): Return negative
5237 value on error. Use TRY_CATCH.
5238 * python/python-internal.h (get_addr_from_python): Use
5239 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5241 2013-05-20 Tom Tromey <tromey@redhat.com>
5243 * python/py-event.c (evpy_emit_event): Decref the
5244 result of PyObject_CallFunctionObjArgs.
5246 2013-05-20 Tom Tromey <tromey@redhat.com>
5248 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5251 2013-05-20 Tom Tromey <tromey@redhat.com>
5253 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5255 2013-05-20 Tom Tromey <tromey@redhat.com>
5257 * python/py-event.h (gdbpy_initialize_event_generic): Use
5258 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5259 * python/py-evts.c (add_new_registry): Use
5260 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5261 * python/python-internal.h
5262 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5264 2013-05-20 Tom Tromey <tromey@redhat.com>
5266 * python/py-arch.c (archpy_disassemble): Update.
5267 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5268 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5269 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5270 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5272 (GDB_PY_HANDLE_EXCEPTION): Update.
5273 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5275 2013-05-20 Tom Tromey <tromey@redhat.com>
5277 * python/python-internal.h (events_object_type): Remove.
5279 2013-05-20 Tom Tromey <tromey@redhat.com>
5281 * python/py-event.h (evpy_emit_event): Use
5282 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5283 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5286 2013-05-20 Tom Tromey <tromey@redhat.com>
5288 * py-evtregistry.c (create_event_object): Decref
5289 eventregistry_object if PyList_New fails.
5291 2013-05-20 Tom Tromey <tromey@redhat.com>
5293 * py-cmd.c (gdbpy_string_to_argv): Check result of
5296 2013-05-20 Tom Tromey <tromey@redhat.com>
5298 * python/python.c (before_prompt_hook): Add cleanup to
5301 2013-05-20 Tom Tromey <tromey@redhat.com>
5303 * python/py-function.c (fnpy_init): Decref result of
5304 PyObject_GetAttrString.
5306 2013-05-20 Tom Tromey <tromey@redhat.com>
5308 * python/py-threadevent.c (get_event_thread): Use
5309 CPYCHECKER_RETURNS_BORROWED_REF.
5310 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5312 (pspace_to_pspace_object, objfile_to_objfile_object)
5313 (find_thread_object): Use it.
5315 2013-05-20 Tom Tromey <tromey@redhat.com>
5317 * python/py-arch.c (arch_object_type): Use
5318 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5319 * python/py-block.c (block_syms_iterator_object_type):
5320 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5321 * python/py-bpevent.c (breakpoint_event_object_type):
5322 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5323 * python/py-cmd.c (cmdpy_object_type): Use
5324 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5325 * python/py-continueevent.c (continue_event_object_type):
5326 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5327 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5328 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5329 * python/py-events.h (thread_event_object_type):
5330 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5331 * python/py-evtregistry.c (eventregistry_object_type): Use
5332 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5333 * python/py-exitedevent.c (exited_event_object_type):
5334 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5335 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5336 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5337 * python/py-function.c (fnpy_object_type): Use
5338 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5339 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5340 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5341 * python/py-infthread.c (thread_object_type): Use
5342 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5343 * python/py-lazy-string.c (lazy_string_object_type):
5344 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5345 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5346 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5347 * python/py-objfile.c (objfile_object_type): Use
5348 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5349 * python/py-param.c (parmpy_object_type):
5350 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5351 * python/py-progspace.c (pspace_object_type):
5352 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5353 * python/py-signalevent.c (signal_event_object_type):
5354 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5355 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5356 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5357 * python/py-type.c (type_object_type, field_object_type)
5358 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5359 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5361 (value_object_type, block_object_type, symbol_object_type)
5362 (event_object_type, stop_event_object_type, breakpoint_object_type)
5363 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5365 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5367 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5368 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5370 2013-05-20 Doug Evans <dje@google.com>
5372 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5374 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5375 reading_dwo_directly.
5376 (struct signatured_type): New member dwo_unit.
5377 (struct die_reader_specs): New member comp_dir.
5378 (create_signatured_type_table_from_index): Use malloc for
5379 all_type_units instead of objfile's obstack.
5380 (create_all_type_units): Ditto.
5381 (fill_in_sig_entry_from_dwo_entry): New function.
5382 (add_type_unit): New function.
5383 (lookup_dwo_signatured_type): New function.
5384 (lookup_dwp_signatured_type): New function.
5385 (lookup_signatured_type): New arg cu. All callers updated.
5386 (init_cu_die_reader): Initialize comp_dir.
5387 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5388 Change assert of matching type signatures to call error on mismatch.
5389 (lookup_dwo_unit): Add assert.
5390 (init_tu_and_read_dwo_dies): New function.
5391 (init_cutu_and_read_dies): Call it.
5392 (build_type_unit_groups): Handle case of no type unit groups created.
5393 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5394 (lookup_dwo_cutu): Tweak complaint.
5395 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5396 (dwarf2_per_objfile_free): Free all_type_units.
5398 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5400 * windows-nat.c (handle_unload_dll): Add missing empty line.
5402 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5404 * dwarf2read.c (prototyped_function_p): New function.
5405 (read_subroutine_type): Use it.
5407 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5409 * rs6000-aix-tdep.c: De-indent some example code provided
5412 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5414 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5415 region is ok for a hardware watchpoint using the new ptrace interface
5418 2013-05-17 Doug Evans <dje@google.com>
5420 * NEWS: Mention new maintenance commands check-symtabs, and
5421 expand-symtabs, and renamed check-psymtabs.
5422 * psymtab.c (maintenance_check_psymtabs): Renamed from
5423 maintenance_check_symtabs. Only process already-expanded symbol
5425 (_initialize_psymtab): Update.
5426 * symmisc.c (maintenance_check_symtabs): New function.
5427 (maintenance_expand_name_matcher): New function
5428 (maintenance_expand_file_matcher): New function
5429 (maintenance_expand_symtabs): New function.
5430 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5433 2013-05-17 Tom Tromey <tromey@redhat.com>
5435 * python/py-inferior.c (infpy_read_memory): Don't call
5436 PyErr_SetString if PyObject_New fails.
5437 * python/py-frame.c (frame_info_to_frame_object): Don't call
5438 PyErr_SetString if PyObject_New fails.
5440 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5442 * acinclude.m4: Add check for dlopen in libdl.
5443 * configure.ac: Ditto.
5444 * configure: Regenerate.
5446 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5448 * frame.c (frame_stash): Convert to htab.
5449 (frame_addr_hash): New function.
5450 (frame_addr_hash_eq): New function.
5451 (frame_stash_create): Convert function to create
5453 (frame_stash_add): Convert function to add an entry to a hash
5455 (frame_stash_find): Convert function to search the hash table.
5456 (frame_stash_invalidate): Convert function to empty the hash
5458 (get_frame_id): Only add to stash if a frame_id is created.
5459 (_initialize_frame): Call frame_stash_create.
5461 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5463 * configure.ac: Ensure MIG is available when building for GNU Hurd
5465 * configure: Regenerate.
5467 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5469 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5471 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5473 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5474 all cleanups are done before returning from this function.
5476 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5478 * utils.h: #include "exceptions.h".
5479 (enum errors): Remove partial declaration.
5481 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5483 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5484 * gdbarch.h, gdbarch.c: Regenerate.
5485 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5488 * rs6000-aix-tdep.h: New file.
5489 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5490 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5492 (struct field_info, struct ld_info_desc): New types.
5493 (ld_info32_desc, ld_info64_desc): New static constants.
5494 (struct ld_info): New type.
5495 (rs6000_aix_extract_ld_info): New function.
5496 (rs6000_aix_shared_library_to_xml): Likewise.
5497 (rs6000_aix_ld_info_to_xml): Likewise.
5498 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5499 (rs6000_aix_init_osabi): Add call to
5500 set_gdbarch_core_xfer_shared_libraries_aix.
5501 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5502 Remove "xml-utils.h" include.
5503 (LdInfo): Delete typedef.
5504 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5506 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5507 Adjust code accordingly.
5508 (rs6000_core_ldinfo): Delete, folded into
5509 rs6000_aix_core_xfer_shared_libraries_aix.
5510 (rs6000_xfer_shared_library): Delete.
5511 (rs6000_xfer_shared_libraries): Reimplement.
5513 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5515 * record.c (record_goto_cmdlist): New.
5516 (cmd_record_goto): Split into this ...
5517 (cmd_record_goto_begin): ... this
5518 (cmd_record_goto_end): ... and this.
5519 (_initialize_record): Change "record goto" to prefix command.
5520 Add commands for "record goto begin" and "record goto end".
5521 Add an alias for "record goto start" to "record goto begin".
5523 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5525 * linespec.c (convert_linespec_to_sals): New comment for
5526 SOURCE_FILENAME assignment.
5528 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5530 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5533 2013-05-14 Tom Tromey <tromey@redhat.com>
5535 * eval.c (parse_and_eval_long): Make 'exp' const.
5536 * value.h (parse_and_eval_long): Update.
5538 2013-05-14 Tom Tromey <tromey@redhat.com>
5540 * ui-file.c (gdb_fopen): Make arguments const.
5541 * ui-file.h (gdb_fopen): Make arguments const.
5543 2013-05-14 Tom Tromey <tromey@redhat.com>
5545 * remote.c (remote_set_trace_notes): Make arguments const.
5546 * target.c (update_current_target): Update cast.
5547 * target.h (to_set_trace_notes): Make arguments const.
5549 2013-05-14 Tom Tromey <tromey@redhat.com>
5551 * go32-nat.c (go32_terminal_info): Make 'args' const.
5552 * inferior.h (child_terminal_info): Update.
5553 * inflow.c (child_terminal_info): Make 'args' const.
5554 * target.c (default_terminal_info): Make 'args' const.
5555 (debug_to_terminal_save_ours): Likewise.
5556 * target.h (struct target_ops) <to_terminal_info>: Make argument
5559 2013-05-13 Tom Tromey <tromey@redhat.com>
5561 * gcore.c (create_gcore_bfd): Make 'filename' const.
5562 * gcore.h (create_gcore_bfd): Make 'filename' const.
5563 * record-full.c (record_full_save): Make 'recfilename' const.
5564 * target.c (target_save_record): Make 'filename' const.
5565 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5567 (target_save_record): Likewise.
5569 2013-05-13 Tom Tromey <tromey@redhat.com>
5572 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5573 ranges section has been read.
5575 2013-05-13 Tom Tromey <tromey@redhat.com>
5578 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5579 STRUCTOP_PTR>: Return a not_lval value for
5580 EVAL_AVOID_SIDE_EFFECTS.
5581 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5582 for EVAL_AVOID_SIDE_EFFECTS.
5584 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5586 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5587 floating point registers to register type before storing
5589 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5592 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5593 Tom Tromey <tromey@redhat.com>
5595 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5597 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5599 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5600 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5601 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5602 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5604 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5605 Tom Tromey <tromey@redhat.com>
5608 * configure: Rebuild.
5609 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5612 2013-05-10 Pedro Alves <palves@redhat.com>
5614 * remote.c (_initialize_remote): Fix spelling of
5615 qXfer:traceframe-info:read packet in packet config command.
5617 2013-05-10 David Taylor <dtaylor@emc.com>
5621 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5622 "QTro" at start of packet.
5624 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5626 * solib-aix.c (solib_aix_relocate_section_addresses):
5627 For the .bss section action, apply the same offset as
5630 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5632 * solib-aix.c (solib_aix_relocate_section_addresses):
5633 Remove FIXME comment.
5635 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5638 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5639 New functions, directly copied from sparc-sol-thread.c.
5640 * sparc-sol-thread.c: Delete.
5641 * configure.ac: Remove code handling sparc-solaris-thread.c.
5642 * configure: Regenerate.
5644 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5646 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5648 (backtrace_command): Add "no-filters" option parsing.
5649 (_initialize_stack): Alter help to reflect "no-filters" option.
5650 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5651 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5652 (py-frame.o): Add target
5653 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5655 * python/python.h: Add new frame filter constants, and flag enum.
5656 (apply_frame_filter): Add definition.
5657 * python/python.c (apply_frame_filter): New non-Python
5659 * python/py-utils.c (py_xdecref): New function.
5660 (make_cleanup_py_xdecref): Ditto.
5661 * python/py-objfile.c: Declare frame_filters dictionary.
5662 (objfpy_dealloc): Add frame_filters dealloc.
5663 (objfpy_new): Initialize frame_filters attribute.
5664 (objfile_to_objfile_object): Ditto.
5665 (objfpy_get_frame_filters): New function.
5666 (objfpy_set_frame_filters): New function.
5667 * python/py-progspace.c: Declare frame_filters dictionary.
5668 (pspy_dealloc): Add frame_filters dealloc.
5669 (pspy_new): Initialize frame_filters attribute.
5670 (pspacee_to_pspace_object): Ditto.
5671 (pspy_get_frame_filters): New function.
5672 (pspy_set_frame_filters): New function.
5673 * python/py-framefilter.c: New file.
5674 * python/lib/gdb/command/frame_filters.py: New file.
5675 * python/lib/gdb/frames.py: New file.
5676 * python/lib/gdb/__init__.py: Initialize global frame_filters
5678 * python/lib/gdb/FrameDecorator.py: New file.
5679 * python/lib/gdb/FrameIterator.py: New file.
5680 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5681 * mi/mi-cmds.h: Declare.
5682 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5683 --no-frame-filter logic, and Python frame filter logic.
5684 (stack_enable_frame_filters): New function.
5685 (parse_no_frame_option): Ditto.
5686 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5688 (mi_cmd_stack_list_locals): Ditto.
5689 (mi_cmd_stack_list_args): Ditto.
5690 (mi_cmd_stack_list_variables): Ditto.
5691 * NEWS: Add frame filter note.
5693 2013-05-09 Doug Evans <dje@google.com>
5695 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5696 All callers updated.
5697 (syms_from_objfile): Ditto. Make static.
5698 (symbol_file_add_with_addrs): Renamed from
5699 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5700 num_offsets. All callers updated.
5701 * symfile.h (syms_from_objfile): Delete.
5703 * symfile.c (decrement_reading_symtab): Add assert.
5704 (increment_reading_symtab): Ditto.
5706 2013-05-09 Joel Brobecker <brobecker@adacore.com>
5708 * source.c (forward_search_command): Replace call to getc
5710 (reverse_search_command): Likewise.
5712 2013-05-08 Doug Evans <dje@google.com>
5714 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5717 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5719 * sol-thread.c (info_cb): Factorize the code a little.
5721 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5723 * sol-thread.c (info_cb): Rework the output of the "maintenance
5724 info sol-threads" command a bit.
5726 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5728 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5729 Replace ti.ti_startfunc by ti.ti_pc.
5731 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5733 * solib-aix.c (solib_aix_free_library_list): New function
5734 for the case where HAVE_LIBEXPAT is not defined.
5736 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5738 PR breakpoints/15413:
5739 * breakpoint.c (condition_completer): Simplify the code to
5740 disconsider multiple locations of breakpoints when completing the
5741 "condition" command.
5743 2013-05-07 Pierre Muller <muller@sourceware.org>
5745 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5746 instead of <sys/wait.h>.
5748 2013-05-07 Pierre Muller <muller@sourceware.org>
5750 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5751 trailing new line from warning message.
5753 2013-05-07 Pierre Muller <muller@sourceware.org>
5755 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5756 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5758 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5760 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5761 error message (ARI fix).
5763 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5765 * features/library-list-aix.dtd: Replace library-list by
5767 * rs6000-nat.c: Replace library-list by library-list-aix
5769 * solib-aix.c: Likewise.
5771 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5773 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5774 Renames TARGET_OBJECT_AIX_LIBRARIES.
5775 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5776 TARGET_OBJECT_LIBRARIES_AIX throughout.
5777 * solib-aix.c: Likwise.
5779 2013-05-07 Yao Qi <yao@codesourcery.com>
5781 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5782 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5784 2013-05-07 Yao Qi <yao@codesourcery.com>
5786 * solib-dsbt.c (enable_break): Declare.
5787 (dsbt_current_sos): Remove call to enable_break2.
5788 (enable_break2): Rename to enable_break. Set solib breakpoint
5789 on '_dl_debug_state'.
5790 (enable_break): Remove.
5792 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
5794 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5795 debug state prior to replicating existing hardware watchpoints or
5798 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5800 * gcore.c (gcore_create_callback): Ignore sections with
5801 separate_debug_objfile_backlink != NULL.
5803 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5804 Andrew Jenner <andrew@codesourcery.com>
5805 Chung-Lin Tang <cltang@codesourcery.com>
5806 Julian Brown <julian@codesourcery.com>
5808 Based on the nios2-elf port from Altera Corporation.
5810 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5812 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5813 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5814 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5815 * nios2-tdep.h: New.
5816 * nios2-tdep.c: New.
5817 * nios2-linux-tdep.c: New.
5818 * features/Makefile (WHICH): Add nios2-linux.
5819 (nios2-linux-expedite): Set.
5820 * features/nios2-cpu.xml: New.
5821 * features/nios2.xml: New.
5822 * features/nios2-linux.xml: New.
5823 * features/nios2.c: New (autogenerated).
5824 * features/nios2-linux.c: New (autogenerated).
5825 * regformats/nios2-linux.dat: New (autogenerated).
5826 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5829 2013-05-06 Doug Evans <dje@google.com>
5831 * symfile.c: Whitespace cleanup.
5833 * solist.h (struct target_so_ops): New member clear_so.
5834 * solib-svr4.c (svr4_clear_so): New function.
5835 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5836 * solib.c (clear_so): Renamed from free_so_symbols.
5837 All callers updated. Call target clear_so if it exists.
5839 2013-05-06 Tom Tromey <tromey@redhat.com>
5841 * ada-lang.c (ada_value_primitive_packed_val): Don't
5843 * value.c (set_value_parent): Incref the new parent and decref
5845 (value_copy, value_primitive_field): Use set_value_parent.
5847 2013-05-06 Tom Tromey <tromey@redhat.com>
5849 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5850 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5852 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5853 * dwarf2read.c (write_constant_as_bytes)
5854 (dwarf2_fetch_constant_bytes): New functions.
5856 2013-05-06 Tom Tromey <tromey@redhat.com>
5858 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5860 (dwarf2_const_value_attr): Update.
5862 2013-05-06 Tom Tromey <tromey@redhat.com>
5864 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5865 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5866 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5869 2013-05-06 Tom Tromey <tromey@redhat.com>
5871 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5874 2013-05-06 Doug Evans <dje@google.com>
5876 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5877 * stabsread.h (process_one_symbol): Update declaration.
5878 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5879 * elfread.c (elf_symfile_relocate_probe): Ditto.
5880 * psymtab.c (relocate_psymtabs): Ditto.
5881 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5882 (objfile_relocate): Ditto.
5883 * objfiles.h (objfile_relocate): Update declaration.
5884 * symfile.c (relative_addr_info_to_section_offsets): Constify
5886 (default_symfile_offsets): Ditto.
5887 (syms_from_objfile_1): Constify offsets parameter.
5888 (syms_from_objfile): Ditto.
5889 (symbol_file_add_with_addrs_or_offsets): Ditto.
5890 (symfile_map_offsets_to_segments): Constify data parameter.
5891 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5892 delta parameters of member relocate.
5893 (struct sym_probe_fns): Constify new_offsets,
5894 delta parameters of member sym_relocate_probe.
5895 (struct sym_fns): Constify section_addr_info parameter of member
5897 (relative_addr_info_to_section_offsets): Update declaration.
5898 (default_symfile_offsets): Ditto.
5899 (syms_from_objfile): Ditto.
5900 (symfile_map_offsets_to_segments): Ditto.
5902 * symfile.c (syms_from_objfile_1): Use correct section count when
5903 objfile->sf == NULL.
5905 2013-05-06 Mike Frysinger <vapier@gentoo.org>
5907 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5909 2013-05-06 Doug Evans <dje@google.com>
5911 * psympriv.h (struct partial_symtab): Augment comment for member
5914 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5916 Reimplement shared library support on ppc-aix...
5917 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5918 * features/library-list-aix.dtd: New file.
5919 * solib-aix.h, solib-aix.c: New file.
5920 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5921 (rs6000_find_toc_address_hook): Delete.
5922 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5923 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5924 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5926 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5927 (vmap_symtab, fixup_breakpoints): Delete.
5928 (rs6000_xfer_shared_libraries): New function.
5929 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5930 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5931 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5932 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5933 (rs6000_xfer_shared_library): New function.
5934 (find_toc_address): Delete.
5935 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5936 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5937 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5938 before creating minimal symbol. Adjust function description
5940 (scan_xcoff_symtab): Replace call to
5941 prim_record_minimal_symbol_and_info by call to
5942 record_minimal_symbol.
5943 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5944 around default_symfile_offsets.
5945 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5946 powerpc-aix targets.
5947 * config/rs6000/nm-rs6000.h: Delete.
5948 * config/powerpc/aix.mh (NAT_FILE): Delete.
5949 (NATDEPFILES): Remove xcoffsolib.o.
5950 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5951 (ALL_TARGET_OBS): Add solib-aix.o.
5952 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5953 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5954 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5955 * xcoffsolib.h, xcoffsolib.c: Delete.
5957 * solib.c (reload_shared_libraries): Remove reference to
5958 SOLIB_CREATE_INFERIOR_HOOK.
5959 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5960 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5961 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5963 * corelow.c (deprecated_core_resize_section_table): Delete.
5964 * exec.c: Remove include of xcoffsolib.h".
5965 (map_vmap, vmap): Delete.
5966 (exec_close_1): Remove references to vmap.
5967 (exec_file_attach): Remove vmap handling code, and reference
5968 to DEPRECATED_IBM6000_TARGET.
5969 (bfdsec_to_vmap): Delete.
5970 (exec_files_info): Remove block of code handling VMAP.
5971 * infcmd.c (post_create_inferior): Remove reference to
5972 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5973 * infrun.c (follow_exec): Remove reference to
5974 SOLIB_CREATE_INFERIOR_HOOK.
5975 * stack.c (print_frame): Remove reference to PC_SOLIB.
5976 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5977 (dsbt_relocate_main_executable): Likewise.
5978 * solib-frv.c (frv_current_sos): Likewise.
5980 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5982 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5983 to target_write_memory and target_read_memory.
5985 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5987 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5988 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5990 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5992 * darwin-nat.c: Replace all "%x" instances in format strings
5993 into "0x%x" throughout.
5995 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5997 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5998 gdb_assert by call to MACH_CHECK_ERROR.
5999 (darwin_attach_pid): Raise an error rather than a failed
6000 assertion when various system calls failed. Report a warning
6001 instead of raising a failed assertion when PREV_NOT is not NULL
6002 after call to mach_port_request_notification.
6003 (darwin_ptrace_me): Raise an error rather than a failed
6004 assertion when read returns nonzero.
6006 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6008 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6010 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6012 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6014 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6016 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6017 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6018 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6019 a stale cleanup. Fix double free of NAME.
6021 2013-05-04 Eli Zaretskii <eliz@gnu.org>
6023 * windows-nat.c (windows_delete_thread): Accept an additional
6024 argument, the thread's exit code, and announce thread death when
6025 print_thread_events is non-zero and we are deleting a thread that
6026 is not the main thread.
6027 (get_windows_debug_event): Pass thread exit code to
6028 windows_delete_thread.
6030 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6032 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6033 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6034 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6035 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6036 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6037 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6038 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6039 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6040 (gdbarch_tdep): New struct.
6041 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6043 (v850e3v5_register_name): New function.
6044 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6045 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6046 code handling the struct return conventions for the RH850 ABI.
6048 (v850_eight_byte_align_p): New function.
6049 (v850_push_call_dummy): Push structs by value, not by reference
6050 for the RH850 ABI. Add support for eight byte alignment.
6051 (v850_dbtrap_breakpoint_from_pc): New function.
6052 (v850_gdbarch_init): Add ABI detection code. Register
6053 v850e3v5_register_name for the v850e3v5 architecture. Set the
6054 number of registers for v850e3v5. Register
6055 v850_dbtrap_breakpoint_from_pc as appropriate.
6056 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6058 2013-05-03 Doug Evans <dje@google.com>
6060 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6061 of bfd_count_sections.
6062 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6063 * symfile.c (default_symfile_offsets): Ditto.
6064 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6065 one entry, not bfd_count_sections entries.
6067 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6069 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6070 `save' and `restore' register groups. Don't include SPL
6071 or SPH in these groups.
6072 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6073 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6074 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6075 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6076 dwarf2_append_unwinders().
6078 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6080 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6081 ignore SIGINT and SIGTRAP in case these internal signals are
6084 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6086 * darwin-nat.c (darwin_read_write_inferior): Change types
6087 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6088 of copy_count to "mach_msg_type_number_t".
6089 (darwin_read_dyld_info): Change type of parameter
6090 rdaddr to "gdb_byte *".
6092 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6094 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6095 of &info->load_map from "char *" to "gdb_byte *".
6097 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6099 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6100 from "char *" to "gdb_byte *".
6101 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6103 2013-04-30 Doug Evans <dje@google.com>
6105 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6106 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6107 DWO stub. If DWO isn't found, just use stub.
6108 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6110 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6111 calling init_cutu_and_read_dies.
6113 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6115 * target-descriptions.c (maint_print_c_tdesc_cmd):
6116 Add case to parse structures as register types and
6119 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6121 * MAINTAINERS (Write After Approval): Add myself to the list.
6123 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6125 * sol-thread.c (rw_common): Change type of parameter "buf"
6127 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6128 rw_common to "gdb_byte *" instead of "char *".
6130 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6132 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6133 of local variable msym to const struct bound_minimal_symbol.
6134 Adjust use accordingly.
6135 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6137 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6139 * i386gnu-nat.c (CREG_OFFSET): New macro.
6140 (creg_offset): New array.
6141 (CREG_ADDR): Use creg_offset instead of reg_offset.
6143 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6145 * mep-tdep.c (mep_write_pc): Delete.
6146 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6147 Add call to set_gdbarch_pc_regnum.
6149 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6151 * common/filestuff.c: Replace #include <dirent.h> by
6152 #include "gdb_dirent.h".
6154 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6156 * common/filestuff.c: Replace #include <sys/stat.h> by
6157 #include "gdb_stat.h".
6159 2013-04-29 Pierre Muller <muller@sourceware.org>
6161 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6162 editCase function rule.
6163 (get_DW_AT_signature_type): Likewise.
6165 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6167 * m32r-tdep.c (m32r_write_pc): Delete.
6168 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6169 Add call to set_gdbarch_pc_regnum.
6171 2013-04-29 Pierre Muller <muller@sourceware.org>
6173 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6175 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6177 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6179 2013-04-28 Yao Qi <yao@codesourcery.com>
6181 * solib-dsbt.c (fetch_loadmap): Re-indent.
6182 (displacement_from_map, enable_break2): Likewise.
6183 (dsbt_relocate_section_addresses): Likewise.
6185 2013-04-26 Joel Brobecker <brobecker@adacore.com>
6189 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6192 * dwarf2read.c (process_full_comp_unit): Always create a static
6195 2013-04-25 Hui Zhu <hui@codesourcery.com>
6197 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6198 to loc->cmd_bytecode.
6200 2013-04-24 Doug Evans <dje@google.com>
6202 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6204 2013-04-22 Keith Seitz <keiths@redhat.com>
6206 * tracepoint.c (trace_save): Call the writer's start method.
6208 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6211 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6214 2013-04-23 Tom Tromey <tromey@redhat.com>
6216 * common/filestuff.c: Check USE_WIN32API before including
6218 (HAVE_F_GETFD): New define.
6219 (mark_cloexec): Check HAVE_F_GETFD.
6220 (gdb_open_cloexec): Change 'mode' to unsigned long.
6221 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6222 (gdb_pipe_cloexec): Check HAVE_PIPE.
6223 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6226 2013-04-23 Hui Zhu <hui@codesourcery.com>
6229 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6231 2013-04-23 Hui Zhu <hui@codesourcery.com>
6234 * breakpoint.c (dprintf_print_recreate): New.
6235 (save_breakpoints): Let it not save dprintf commands.
6236 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6238 2013-04-22 Tom Tromey <tromey@redhat.com>
6241 * Makefile.in (SFILES): Add filestuff.c
6242 (COMMON_OBS): Add filestuff.o.
6243 (filestuff.o): New target.
6244 * auto-load.c (auto_load_objfile_script_1): Use
6246 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6247 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6248 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6249 * common/agent.c (gdb_connect_sync_socket): Use
6251 * common/filestuff.c: New file.
6252 * common/filestuff.h: New file.
6253 * common/linux-osdata.c (linux_common_core_of_thread)
6254 (command_from_pid, commandline_from_pid, print_source_lines)
6255 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6256 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6258 * common/linux-procfs.c (linux_proc_get_int)
6259 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6260 * config.in, configure: Rebuild.
6261 * configure.ac: Don't check for sys/socket.h. Check for
6263 * corelow.c (core_open): Use gdb_open_cloexec.
6264 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6265 * fork-child.c (fork_inferior): Call close_most_fds.
6266 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6267 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6268 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6269 Use gdb_fopen_cloexec.
6270 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6272 (linux_async_pipe): Use gdb_pipe_cloexec.
6273 * remote-fileio.c (remote_fileio_func_open): Use
6275 * remote.c (remote_file_put, remote_file_get): Use
6277 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6279 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6280 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6281 * solib.c (solib_find): Use gdb_open_cloexec.
6282 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6283 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6284 (tfile_open): Use gdb_open_cloexec.
6285 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6286 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6287 * xml-support.c (xml_fetch_content_from_file): Use
6289 * main.c (captured_main): Call notice_open_fds.
6291 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6293 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6294 'char *' to 'gdb_byte *'.
6295 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6298 2013-04-22 Yao Qi <yao@codesourcery.com>
6300 * infrun.c: Fix typo in comment.
6302 2013-04-22 Andrew Haley <aph@redhat.com>
6304 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6307 2013-04-20 Yao Qi <yao@codesourcery.com>
6309 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6310 'char *' to 'gdb_byte *'. Cast the return value of
6311 'bt_ctf_get_char_array' to 'gdb_byte *'.
6313 2013-04-19 Pedro Alves <palves@redhat.com>
6315 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6317 * configure: Regenerate.
6319 2013-04-19 Pedro Alves <palves@redhat.com>
6321 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6324 2013-04-19 Pedro Alves <palves@redhat.com>
6326 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6327 Change type of 'myaddr' parameter to gdb_byte pointer.
6328 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6329 to 'long long' pointer instead of to 'unsigned long long'.
6330 (monitor_write_memory_block, monitor_read_memory_single)
6331 (monitor_read_memory): Change type of 'myaddr' parameter to
6334 2013-04-19 Pedro Alves <palves@redhat.com>
6336 * record.c (validate_history_size): Make parameter 'setting'
6339 2013-04-19 Pedro Alves <palves@redhat.com>
6341 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6344 2013-04-19 Pedro Alves <palves@redhat.com>
6346 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6349 2013-04-19 Pedro Alves <palves@redhat.com>
6351 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6352 * ada-tasks.c (read_fat_string_value): Likewise.
6354 2013-04-19 Pedro Alves <palves@redhat.com>
6356 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6357 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6358 'offset', and adjust.
6360 2013-04-19 Pedro Alves <palves@redhat.com>
6362 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6363 (read_index_from_section): Add cast to 'char *'.
6365 2013-04-19 Pedro Alves <palves@redhat.com>
6367 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6369 2013-04-19 Pedro Alves <palves@redhat.com>
6371 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6373 2013-04-19 Pedro Alves <palves@redhat.com>
6375 * record-full.c (record_full_get_bookmark): Change local 'ret'
6376 type to char * and add cast to gdb_byte *.
6377 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6379 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6381 2013-04-19 Pedro Alves <palves@redhat.com>
6383 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6384 * python/py-prettyprint.c (print_string_repr): Change type of
6385 'output' local to char *. Add cast to gdb_byte * in
6386 LA_PRINT_STRING call.
6387 (print_children): Change type of 'output' local to char *.
6388 * python/py-value.c (valpy_string): Add cast to const char * in
6389 PyUnicode_Decode call.
6391 2013-04-19 Pedro Alves <palves@redhat.com>
6393 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6394 and change its type to 'const char *'. Adjust.
6395 (mips_send_packet): Add cast to 'char *', and remove cast to
6397 (mips_receive_packet): Remove cast to 'unsigned char *'.
6398 (mips_load_srec): Use bfd_byte.
6399 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6400 (pmon_checkset): Make 'value' parameter unsigned.
6402 2013-04-19 Pedro Alves <palves@redhat.com>
6404 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6406 2013-04-19 Pedro Alves <palves@redhat.com>
6408 * remote.c (remote_write_bytes_aux, compare_sections_command)
6410 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6411 (remote_hostio_readlink, remote_bfd_iovec_pread)
6412 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6413 binary buffer, and char when buffer is used as string.
6414 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6415 (trace_save, tfile_open, traceframe_walk_blocks)
6416 (tfile_fetch_registers): Likewise.
6418 2013-04-19 Pedro Alves <palves@redhat.com>
6420 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6421 buffer and size_t size. Adjust.
6422 * ser-base.h (ser_base_write): Adjust.
6423 * ser-go32.c (cnts): Change type to size_t.
6424 (dos_write): Change prototype -- take 'void *'
6425 buffer and size_t size. Adjust.
6426 (dos_info): Print elements of 'cnts' as unsigned long.
6427 * serial.c (serial_write): Likewise.
6428 * serial.h (serial_write): Adjust.
6429 (struct serial_ops) <write>: Change prototype -- take 'void *'
6430 buffer and size_t size. Adjust.
6432 2013-04-19 Pedro Alves <palves@redhat.com>
6434 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6436 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6438 2013-04-19 Pedro Alves <palves@redhat.com>
6440 * alpha-tdep.c (alpha_extract_return_value): Use
6441 regcache_cooked_read_unsigned to read 'v0'.
6443 2013-04-19 Pedro Alves <palves@redhat.com>
6445 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6446 parameters 'at', 'as' and 'offset' to uint32_t.
6448 2013-04-19 Pedro Alves <palves@redhat.com>
6450 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6451 'is64' to signed 'int'.
6453 2013-04-19 Pedro Alves <palves@redhat.com>
6455 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6458 2013-04-19 Pedro Alves <palves@redhat.com>
6460 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6461 'insnbuf' buffer type to unsigned int[].
6463 2013-04-19 Pedro Alves <palves@redhat.com>
6465 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6467 2013-04-19 Pedro Alves <palves@redhat.com>
6469 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6472 2013-04-19 Pedro Alves <palves@redhat.com>
6474 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6475 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6477 * mips-tdep.c (heuristic_fence_post): Change type to int.
6478 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6480 2013-04-19 Pedro Alves <palves@redhat.com>
6482 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6483 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6484 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6486 2013-04-19 Pedro Alves <palves@redhat.com>
6488 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6489 it to get a string view of the byte buffer.
6490 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6491 type to gdb_byte *. Adjust.
6492 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6493 Change local to char *.
6494 * solib-darwin.c (find_program_interpreter): Change return type to
6496 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6497 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6498 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6499 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6500 * solib-svr4.c (find_program_interpreter): Change return type to
6502 (enable_break): Change local 'interp_name' to char *.
6503 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6504 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6505 (spu_pseudo_register_write_spu): Use char for string buffer.
6507 (info_spu_event_command, info_spu_signal_command): Add casts to
6510 2013-04-19 Pedro Alves <palves@redhat.com>
6512 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6514 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6515 * ada-lang.c (ada_value_assign): Use gdb_byte.
6516 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6517 (alphanbsd_sigtramp_offset): Use gdb_byte.
6518 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6519 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6520 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6521 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6522 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6523 * arm-tdep.c (arm_stub_unwind_sniffer)
6524 (arm_displaced_init_closure): Use gdb_byte.
6525 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6526 (arm_default_thumb_le_breakpoint)
6527 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6528 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6529 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6530 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6531 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6532 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6533 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6534 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6535 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6536 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6537 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6538 (cris_store_return_value, cris_extract_return_value): Use
6540 (constraint): Change type of parameter to char * from signed
6541 char*. Use gdb_byte.
6542 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6543 of local buffer to gdb_byte *.
6544 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6545 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6546 (add_address_entry): Change type of local buffer to gdb_byte[].
6547 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6548 (frv_push_dummy_call): Use gdb_byte.
6549 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6550 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6551 (hppa_hpux_supply_save_state): Use gdb_byte.
6552 * hppa-tdep.c (hppa32_push_dummy_call)
6553 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6554 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6555 (slotN_contents, replace_slotN_contents): Change type of parameter
6557 (fetch_instruction, ia64_pseudo_register_write)
6558 (ia64_register_to_value, ia64_value_to_register)
6559 (ia64_extract_return_value, ia64_store_return_value)
6560 (ia64_push_dummy_call): Use gdb_byte.
6561 * m32c-tdep.c (m32c_return_value): Remove cast.
6562 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6563 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6565 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6566 * mn10300-tdep.c (mn10300_store_return_value)
6567 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6569 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6570 (moxie_process_record): Remove casts.
6571 * ppc-ravenscar-thread.c (supply_register_at_address)
6572 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6573 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6574 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6575 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6576 * remote.c (compare_sections_command): Use gdb_byte.
6577 * score-tdep.c (score7_free_memblock): Change type of parameter to
6579 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6580 gdb_byte *. Use gdb_byte.
6581 (sh_push_dummy_call_fpu): Use gdb_byte.
6582 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6583 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6584 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6585 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6586 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6587 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6588 (sh64_store_return_value, sh64_register_convert_to_virtual):
6589 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6590 (sh64_pseudo_register_write): Use gdb_byte.
6591 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6592 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6594 (irix_current_sos): Use gdb_byte.
6595 * solib-som.c (som_current_sos): Use gdb_byte.
6596 * sparc-ravenscar-thread.c (supply_register_at_address)
6597 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6598 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6599 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6600 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6602 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6604 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6605 * xstormy16-tdep.c (xstormy16_extract_return_value)
6606 (xstormy16_store_return_value): Change parameter type to
6607 'gdb_byte *'. Adjust.
6608 (xstormy16_push_dummy_call): Use gdb_byte.
6609 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6610 (call0_analyze_prologue, execute_code): Use gdb_byte.
6612 2013-04-19 Vladimir Kargov <kargov@gmail.com>
6613 Pedro Alves <palves@redhat.com>
6615 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6618 2013-04-17 Doug Evans <dje@google.com>
6620 * dwarf2read.c (struct signatured_type): New member type.
6621 (struct attribute): Replace member signatured_type with signature.
6622 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6623 (read_call_site_scope): Call follow_die_ref instead of
6624 follow_die_ref_or_sig.
6625 (read_structure_type): Rewrite handling of signatured types.
6626 (read_enumeration_type): Ditto.
6627 (read_attribute_value): Update.
6628 (build_error_marker_type): New function.
6629 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6630 Don't call error for bad types, just build an error marker type.
6631 (dump_die_shallow): Update.
6632 (follow_die_sig_1): Renamed from follow_die_sig.
6633 Don't call error for bad types, instead return NULL.
6634 (follow_die_sig): New function.
6635 (get_signatured_type, get_DW_AT_signature_type): New functions.
6637 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6639 * aarch64-tdep.c (aarch64_write_pc): Removed.
6640 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6643 2013-04-17 Yao Qi <yao@codesourcery.com>
6645 * top.c (print_gdb_configuration): Print configure-time
6646 parameter on using libbabeltrace or not.
6648 2013-04-16 Pedro Alves <palves@redhat.com>
6650 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6652 2013-04-16 Pedro Alves <palves@redhat.com>
6654 * common/glibc_thread_db.h: Update from upstream glibc
6655 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6657 2013-04-16 Pedro Alves <palves@redhat.com>
6659 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6660 * common/glibc_thread_db.h: ... this new file ...
6661 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6663 2013-04-16 Will Newton <will.newton@gmail.com>
6664 Pedro Alves <palves@redhat.com>
6668 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6669 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6672 2013-04-16 Pedro Alves <palves@redhat.com>
6673 Eli Zaretskii <eliz@gnu.org>
6675 * NEWS: Mention "set foo unlimited".
6677 2013-04-15 Doug Evans <dje@google.com>
6679 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6680 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6681 (create_dwo_cu_reader): Renamed from
6682 create_dwo_debug_info_hash_table_reader.
6683 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6684 Remove support for multiple CUs in a DWO file.
6685 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6687 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6689 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6690 (create_dwo_in_dwp): Ditto.
6692 2013-04-15 Tom Tromey <tromey@redhat.com>
6694 * NEWS: Move recent entries into "since 7.6" section.
6696 2013-04-15 Tom Tromey <tromey@redhat.com>
6700 * break-catch-throw.c (struct exception_catchpoint)
6701 <exception_rx, pattern>: New fields.
6702 (fetch_probe_arguments, dtor_exception_catchpoint)
6703 (check_status_exception_catchpoint)
6704 (print_one_detail_exception_catchpoint): New functions.
6705 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6706 Compile regular expression if needed.
6707 (extract_exception_regexp): New function.
6708 (catch_exception_command_1): Use extract_exception_regexp.
6709 (compute_exception): Use fetch_probe_arguments.
6710 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6711 and check_status fields.
6712 * cp-abi.c (cplus_typename_from_type_info): New function.
6713 * cp-abi.h (cplus_typename_from_type_info): Declare.
6714 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6715 * gdb_regex.h (compile_rx_or_error): Declare.
6716 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6718 (init_gnuv3_ops): Set get_type_from_type_info field.
6719 * probe.c (compile_rx_or_error): Move...
6720 * utils.c (compile_rx_or_error): ... here.
6722 2013-04-15 Tom Tromey <tromey@redhat.com>
6726 * break-catch-throw.c (compute_exception): New function.
6727 (exception_funcs): New global.
6728 (_initialize_break_catch_throw): Create $_exception.
6729 * cp-abi.c (cplus_type_from_type_info): New function.
6730 * cp-abi.h (cplus_type_from_type_info): Declare.
6731 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6732 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6733 (gnuv3_get_type_from_type_info): New functions.
6734 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6736 2013-04-15 Tom Tromey <tromey@redhat.com>
6738 * break-catch-throw.c (struct exception_names): New.
6739 (exception_functions): Change type.
6740 (re_set_exception_catchpoint): Look for SDT probes.
6742 2013-04-15 Tom Tromey <tromey@redhat.com>
6745 * break-catch-throw.c (exception_functions): New global.
6746 (gnu_v3_exception_catchpoint_ops): Move earlier.
6747 (struct exception_catchpoint): New.
6748 (classify_exception_breakpoint): Rewrite.
6749 (re_set_exception_catchpoint): New function.
6750 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6751 Allocate a struct exception_catchpoint.
6752 (catch_exception_command_1): Update.
6753 (initialize_throw_catchpoint_ops): Set 're_set' method.
6755 2013-04-15 Tom Tromey <tromey@redhat.com>
6757 * Makefile.in (SFILES): Add break-catch-throw.c
6758 (COMMON_OBS): Add break-catch-throw.o.
6759 * break-catch-throw.c: New file.
6760 * breakpoint.c: Move exception-catching code to new file.
6761 (ep_parse_optional_if_clause): No longer static.
6762 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6764 2013-04-15 Tom Tromey <tromey@redhat.com>
6768 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6769 * c-exp.y (TYPEID): New token.
6770 (exp): Add new TYPEID productions.
6771 (ident_tokens): Add "typeid".
6772 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6773 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6774 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6775 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6776 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6778 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6779 (build_std_type_info_type, gnuv3_get_typeid_type)
6780 (gnuv3_get_typeid): New functions.
6781 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6782 new fields on ABI object.
6783 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6784 * std-operator.def (OP_TYPEID): New.
6786 2013-04-15 Tom Tromey <tromey@redhat.com>
6788 * elfread.c (elf_symtab_read): Install versioned symbol under
6789 unversioned name as well.
6791 2013-04-15 Tom Tromey <tromey@redhat.com>
6794 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6795 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6796 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6797 (gdb_demangle): New function.
6798 * cp-support.h (gdb_demangle): Declare.
6799 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6800 (dwarf2_name): Use gdb_demangle.
6801 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6802 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6804 (gnuv3_print_method_ptr): Use gdb_demangle.
6805 * jv-lang.c (java_demangle): Use gdb_demangle.
6806 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6807 * language.c (unk_lang_demangle): Use gdb_demangle.
6808 * symtab.c (symbol_find_demangled_name)
6809 (demangle_for_lookup): Use gdb_demangle.
6811 2013-04-15 Tom Tromey <tromey@redhat.com>
6815 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6817 (classify_exception_breakpoint): New function.
6818 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6819 (print_mention_exception_catchpoint)
6820 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6821 (catch_exception_command_1): Handle "rethrow" catchpoint.
6822 (catch_rethrow_command): New function.
6823 (_initialize_breakpoint): Add "catch rethrow" command.
6825 2013-04-15 Pierre Muller <muller@sourceware.org>
6827 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6828 set_gdbarch_write_pc as deprecated anymore.
6830 2013-04-15 Joel Brobecker <brobecker@adacore.com>
6832 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6835 2013-04-13 Yao Qi <yao@codesourcery.com>
6837 * ctf.c (_initialize_ctf): Include "completer.h".
6838 Call add_target_with_completer instead of add_target.
6840 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6842 Fix GDB regression related to PR binutils/14813.
6843 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6844 * minidebug.c (lzma_close): Add return value comment.
6845 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6846 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6847 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6849 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6851 * config.in: Regenerate.
6853 2013-04-12 Tom Tromey <tromey@redhat.com>
6855 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6857 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6858 (struct die_reader_specs) <buffer>: Likewise.
6859 (die_reader_func_ftype): Make 'info_ptr' const.
6860 (struct line_header) <include_dirs, statement_program_start,
6861 statement_program_end>: Now const.
6862 (struct file_entry) <name>: Likewise.
6863 (struct partial_die_info) <sibling>: Likewise.
6864 (struct dwarf_block) <data>: Likewise.
6865 (dwarf2_read_section): Remove cast.
6866 (dwarf2_get_section_info): Make 'bufp' const.
6867 (read_index_from_section): Constify.
6868 (dw2_get_file_names_reader): Make 'info_ptr' const.
6869 (dw2_get_primary_filename_reader): Likewise.
6870 (read_comp_unit_head): Make 'info_ptr' and return type const.
6871 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6873 (read_abbrev_offset): Constify.
6874 (dwarf2_create_include_psymtab): Make 'name' const.
6875 (create_debug_types_hash_table): Update.
6876 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6877 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6879 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6880 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6881 (read_comp_units_from_section): Constify.
6882 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6883 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6885 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6886 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6887 (create_dwp_hash_table, dwarf2_ranges_read)
6888 (dwarf2_record_block_ranges): Constify.
6889 (read_die_and_children, read_die_and_siblings_1)
6890 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6892 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6893 (abbrev_table_read_table): Constify.
6894 (load_partial_dies): Make 'info_ptr' const.
6895 (read_partial_die, read_attribute_value, read_attribute): Make
6896 'info_ptr' and return type const.
6897 (read_address, read_initial_length)
6898 (read_checked_initial_length_and_offset, read_offset)
6899 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6901 (read_direct_string): Make 'buf' and return type const.
6902 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6903 (read_indirect_string): Make return type const.
6904 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6905 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6907 (read_str_index): Make return type const.
6908 (add_include_dir): Make 'include_dir' const.
6909 (add_file_name): Make 'name' const.
6910 (dwarf_decode_line_header): Constify.
6911 (psymtab_include_file_name): Make return type const.
6912 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6913 (dwarf2_start_subfile): Make 'filename' const.
6914 (dwarf2_const_value_attr): Make 'bytes' const.
6915 (read_signatured_type_reader): Make 'info_ptr' const.
6916 (decode_locdesc): Constify.
6917 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6919 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6920 'mac_end', and return type const.
6921 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6922 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6924 (per_cu_header_read_in): Constify.
6925 * symfile.h (dwarf2_get_section_info): Update.
6927 2013-04-12 Tom Tromey <tromey@redhat.com>
6929 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6931 2013-04-12 Eli Zaretskii <eliz@gnu.org>
6933 * NEWS: Mention "show configuration", --configuration.
6934 * top.c (print_gdb_configuration): New function, displays the
6935 details about GDB configure-time parameters.
6936 (print_gdb_version): Mention "show configuration".
6937 * cli/cli-cmds.c (show_configuration): New function.
6938 (_initialize_cli_cmds): Add the "show configuration" command.
6939 * main.c (captured_main) <print_configuration>: New static var.
6940 <long_options>: Use it.
6941 If --configuration was given, call print_gdb_configuration.
6943 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6944 Pedro Alves <palves@redhat.com>
6946 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6947 (generated_files): Add gcore.
6948 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6949 HAVE_NATIVE_GCORE_HOST.
6951 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6952 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6953 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6954 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6955 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6956 Add HAVE_NATIVE_GCORE_HOST.
6957 * configure: Regenerate.
6958 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6959 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6960 AC_CONFIG_FILES for gcore.
6961 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6963 * gdb_gcore.sh: Rename to ...
6964 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6965 and GCORE_TRANSFORM_NAME substitutions.
6967 Fix parsing tabs in ${gdb_target_obs}.
6968 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6970 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6972 * remote.c (unpush_and_perror): Add output message final dot.
6974 2013-04-11 Yao Qi <yao@codesourcery.com>
6976 * tracepoint.c (tfile_interp_line): Fit parameters line and
6979 2013-04-10 Joel Brobecker <brobecker@adacore.com>
6981 * solib.c (solib_map_sections): Remove code overwriting
6982 SO->SO_NAME with the bfd's filename.
6984 2013-04-10 Pedro Alves <palves@redhat.com>
6986 * cli/cli-decode.c (integer_unlimited_completer): New function.
6987 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6988 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6990 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6991 (is_unlimited_literal): New function.
6992 (do_set_command): Handle literal "unlimited" arguments.
6993 * frame.c (_initialize_frame) <set backtrace limit>: Document
6995 * printcmd.c (_initialize_printcmd) <set print
6996 max-symbolic-offset>: Add help text.
6997 * record-full.c (_initialize_record_full) <set record full
6998 insn-number-max>: Likewise.
6999 * record.c (_initialize_record) <set record
7000 instruction-history-size, set record function-call-history-size>:
7002 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7004 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7006 * source.c (_initialize_source) <set listsize>: Add help text.
7007 * utils.c (initialize_utils) <set height, set width>: Likewise.
7008 <set pagination>: Mention "set height unlimited".
7009 * valprint.c (_initialize_valprint) <set print elements, set print
7010 repeats>: Document "unlimited".
7012 2013-04-10 Pedro Alves <palves@redhat.com>
7014 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7015 instead of disconnect_tracing.
7016 * infcmd.c (detach_command, disconnect_command): Call
7017 query_if_trace_running. Adjust.
7018 * top.c: Include "tracepoint.h".
7019 (quit_target): Delete. Contents moved ...
7020 (quit_force): ... here. Wrap each stage of teardown in
7021 TRY_CATCH. Call disconnect_tracing before detaching.
7023 2013-04-10 Hui Zhu <hui@codesourcery.com>
7024 Yao Qi <yao@codesourcery.com>
7026 * configure.ac: Check libbabeltrace is installed.
7027 * config.in: Regenerate.
7028 * configure: Regenerate.
7029 * Makefile.in (LIBBABELTRACE): New.
7030 (CLIBS): Add LIBBABELTRACE.
7031 * ctf.c: Include "exec.h".
7032 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7033 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7034 (ctf_save_metadata_header): Define new type aliases in
7036 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7037 in metadata. Start a new faked packet for trace status.
7038 (ctf_write_status): Write trace status to CTF.
7039 (ctf_write_uploaded_tsv): Write TSV to CTF.
7040 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7041 (ctf_write_definition_end): End the faked packet.
7043 (ctx, ctf_iter, trace_dirname): New.
7044 (start_pos): New variable.
7045 (ctf_destroy, ctf_open_dir, ctf_open): New.
7046 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7048 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7049 (ctf_fetch_registers, ctf_xfer_partial): New.
7050 (ctf_get_trace_state_variable_value): New.
7051 (ctf_get_tpnum_from_frame_event): New.
7052 (ctf_get_traceframe_address): New.
7053 (ctf_trace_find, ctf_has_stack): New.
7054 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7055 (ctf_get_trace_status, ctf_read_status): New.
7056 (_initialize_ctf): New.
7057 * tracepoint.c (get_tracepoint_number): New
7058 (get_uploaded_tsv): Remove 'static'.
7059 (struct traceframe_info, trace_regblock_size): Move it to ...
7060 * tracepoint.h: ... here.
7061 (get_tracepoint_number): Declare it.
7062 (get_uploaded_tsv): Declare it.
7064 * NEWS: Mention new configure option.
7066 2013-04-10 Pedro Alves <palves@redhat.com>
7067 Hui Zhu <hui@codesourcery.com>
7069 * breakpoint.c (dprintf_re_set): New.
7070 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7073 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7075 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7076 Remove solib-svr4.o from the list.
7078 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7080 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7081 Use gdb_assert_not_reached instead of invalid boolean expression.
7083 2013-04-09 Pedro Alves <palves@redhat.com>
7085 * remote.c (unpush_and_perror): New function.
7086 (readchar, remote_serial_write): Use it.
7088 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7090 * NEWS: Mention new btrace RSP packets.
7092 2013-04-08 Tom Tromey <tromey@redhat.com>
7094 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7097 2013-04-08 Tom Tromey <tromey@redhat.com>
7099 * maint.c (print_bfd_section_info): Print the section index.
7100 * symmisc.c (dump_msymbols): Print the section index.
7102 2013-04-08 Tom Tromey <tromey@redhat.com>
7105 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7106 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7107 * breakpoint.c (resolve_sal_pc): Update.
7108 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7109 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7110 (minsym_lookup_iterator_cb): Use it.
7111 (default_read_var_value): Update.
7112 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7114 * infcmd.c (jump_command): Update.
7115 * linespec.c (minsym_found): Update.
7116 * maint.c (maintenance_translate_address): Update.
7117 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7118 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7119 * parse.c (write_exp_msymbol): Update.
7120 * printcmd.c (address_info): Update.
7121 * psymtab.c (find_pc_sect_psymbol): Update.
7122 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7124 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7125 Don't initialize SYMBOL_OBJ_SECTION.
7126 * spu-tdep.c (spu_catch_start): Update.
7127 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7128 * symmisc.c (dump_msymbols, print_symbol): Update.
7129 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7130 how fallback section is computed.
7131 (fixup_symbol_section): Update.
7132 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7134 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7135 Initialize SYMBOL_SECTION.
7136 * symtab.h (struct general_symbol_info) <section>: Update comment.
7137 <obj_section>: Remove.
7138 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7139 (SYMBOL_OBJFILE): New macro.
7141 2013-04-08 Tom Tromey <tromey@redhat.com>
7143 * coffread.c (record_minimal_symbol): Update.
7144 * dbxread.c (record_minimal_symbol): Update.
7145 * elfread.c (record_minimal_symbol): Update.
7146 * machoread.c (macho_symtab_add_minsym): Update.
7147 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7149 * minsyms.c (prim_record_minimal_symbol): Update.
7150 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7152 (prim_record_minimal_symbol_and_info): Likewise.
7153 * minsyms.h (prim_record_minimal_symbol_full)
7154 (prim_record_minimal_symbol_and_info): Update.
7155 * symtab.c (allocate_symbol, initialize_symbol)
7156 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7157 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7160 2013-04-08 Tom Tromey <tromey@redhat.com>
7163 * solib-som.c (som_solib_section_offsets): Use BFD section
7164 indices. Set offsets for all sections.
7165 * somread.c (som_symtab_read): Compute BFD section for
7166 symbol. Use prim_record_minimal_symbol_and_info.
7167 (som_symfile_read): Fix comment.
7168 (struct find_section_offset_arg): New.
7169 (find_section_offset, set_section_index): New functions.
7170 (som_symfile_offsets): Use set_section_index to compute
7173 2013-04-08 Tom Tromey <tromey@redhat.com>
7175 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7176 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7177 gdb_bfd_section_index.
7178 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7180 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7182 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7184 * objfiles.c (add_to_objfile_sections_full): New function.
7185 (add_to_objfile_sections): Use it.
7186 (build_section_table): Rewrite.
7187 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7188 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7189 (struct objfile) <sections>: Update comment.
7190 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7192 (ALL_OBJSECTIONS): Use it.
7193 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7194 * solib-frv.c (frv_relocate_main_executable): Update.
7195 * solib-target.c (solib_target_relocate_section_addresses):
7196 Use gdb_bfd_section_index.
7197 * symfile.c (build_section_addr_info_from_section_table):
7198 Use gdb_bfd_section_index.
7199 (build_section_addr_info_from_bfd, place_section): Likewise.
7200 * symtab.c (fixup_section): Update.
7201 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7203 2013-04-08 Tom Tromey <tromey@redhat.com>
7205 * minsyms.h (struct bound_minimal_symbol): New.
7206 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7207 Remove objfile argument.
7208 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7209 Return bound_minimal_symbol.
7210 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7211 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7212 Return bound_minimal_symbol.
7213 (in_gnu_ifunc_stub): Update.
7214 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7215 Remove 'objfile_p' argument.
7216 (lookup_solib_trampoline_symbol_by_pc): Update.
7217 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7218 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7219 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7220 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7221 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7222 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7223 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7224 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7225 stack.c, symtab.c, tui/tui-disasm.c: Update.
7227 2013-04-08 Tom Tromey <tromey@redhat.com>
7229 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7230 Use symbol's obstack, not an objfile.
7231 * coffread.c (process_coff_symbol): Update.
7232 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7233 * jv-lang.c (add_class_symbol): Update.
7234 * mdebugread.c (new_symbol): Update.
7235 * minsyms.c (prim_record_minimal_symbol_full)
7236 (terminate_minimal_symbol_table): Update.
7237 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7238 * stabsread.c (define_symbol, read_enum_type): Update.
7239 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7240 Handle Ada specially.
7241 (symbol_set_language): Add 'obstack' argument.
7242 (symbol_set_names): Update.
7243 (symbol_natural_name, symbol_demangled_name): Always use
7245 * symtab.h (struct general_symbol_info)
7246 <language_specific::obstack>: New field.
7247 <ada_mangled>: New field.
7248 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7249 (symbol_set_language): Update.
7251 2013-04-08 Tom Tromey <tromey@redhat.com>
7253 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7254 Take an obstack, not an objfile.
7255 (symbol_set_names): Update.
7256 * symtab.h (symbol_set_demangled_name): Update.
7258 2013-04-08 Tom Tromey <tromey@redhat.com>
7260 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7262 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7263 (read_func_scope): Call allocate_template_symbol.
7264 (new_symbol_full): Call allocate_symbol.
7265 * jit.c (finalize_symtab): Call allocate_symbol.
7266 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7267 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7268 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7269 (common_block_end): Call allocate_symbol.
7270 * symtab.c (allocate_symbol, initialize_symbol)
7271 (allocate_template_symbol): New functions.
7272 * symtab.c (allocate_symbol, initialize_symbol)
7273 (allocate_template_symbol): Declare.
7274 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7276 2013-04-08 Pedro Alves <palves@redhat.com>
7277 Keith Seitz <keiths@redhat.com>
7279 * breakpoint.c (create_breakpoint): Rename
7280 "parse_condition_and_thread" parameter to "parse_arg". Update
7281 describing comment. If !PARSE_ARG, then error out if ARG is not
7282 the empty string after extracting the location.
7283 * breakpoint.h (create_breakpoint): Rename
7284 "parse_condition_and_thread" parameter to "parse_arg".
7286 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7288 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7290 2013-04-07 Yao Qi <yao@codesourcery.com>
7292 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7293 and 'addr2' to CORE_ADDR.
7294 * target.c (update_current_target): Update.
7295 * target.h (struct target_ops) <to_trace_find>: Change parameter
7297 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7298 'addr2' to CORE_ADDR.
7299 (tfile_trace_find): Likewise.
7300 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7301 Change local variable 'addr' to type CORE_ADDR.
7302 * tracepoint.h (tfind_1): Update declaration.
7304 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7306 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7307 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7310 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7312 * main.h (windows_get_absolute_argv0): ...to here.
7314 2013-04-05 Doug Evans <dje@google.com>
7316 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7317 (read_cutu_die_from_dwo): Add comments.
7318 (read_structure_type): Update comment.
7319 (read_enumeration_type, read_namespace_type): Update comment.
7320 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7322 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7324 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7325 * Makefile.in (gdb.z): Remove.
7326 (install-only): Remove $(man1dir) and gdb.1 installation.
7329 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7331 Fix compatibility with Linux kernel 3.8.3.
7332 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7333 to more inner block. Remove parsing of NUMBER from outer block.
7334 Parse NUMBER only if KEYWORD has been identified.
7336 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7338 Fix variable name shadowing.
7339 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7340 filename to mapsfilename and update its uses.
7342 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7344 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7345 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7346 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7347 details of the problem.
7349 2013-04-04 Pedro Alves <palves@redhat.com>
7350 Hui Zhu <hui@codesourcery.com>
7352 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7353 tracepoint, reset its STEP_COUNT and call validate_actionline.
7355 2013-04-03 Doug Evans <dje@google.com>
7357 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7358 read_die_and_siblings.
7359 (read_die_and_siblings): New function.
7360 (read_cutu_die_from_dwo): Dump die if requested.
7361 (read_die_and_children): Call read_full_die_1 and
7362 read_die_and_siblings_1.
7363 (read_full_die): Dump die if requested.
7365 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7367 * dwarf2read.c (struct dwo_file): New member comp_dir.
7368 Rename member name to dwo_name. All uses updated.
7369 (hash_dwo_file): Include comp_dir in computation.
7370 (eq_dwo_file): Ditto.
7371 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7372 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7374 * psymtab.c (read_psymtabs_with_fullname): Don't call
7375 psymtab_to_fullname if the basenames are different.
7377 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7379 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7380 New entry about "fullname" presence.
7382 2013-04-03 Pedro Alves <palves@redhat.com>
7384 * NEWS: Mention x86_64/Cygwin as new native configuration.
7386 2013-04-02 Doug Evans <dje@google.com>
7388 * dwarf2read.c (read_structure_type): Fix typo in comment.
7390 2013-04-02 Pedro Alves <palves@redhat.com>
7392 * NEWS: Mention "set/show debug aarch64", "set/show debug
7393 coff-pe-read" and "set/show debug mach-o".
7395 2013-04-02 Pedro Alves <palves@redhat.com>
7397 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7399 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7401 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7402 gdb_string.h is now in common/.
7404 2013-04-02 Pedro Alves <palves@redhat.com>
7406 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7407 under "New options".
7409 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7413 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7415 2013-04-02 Pedro Alves <palves@redhat.com>
7419 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7420 (remote_serial_write): New function.
7421 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7423 2013-04-01 Jiong Wang <jiwang@tilera.com>
7425 * NEWS: Mention TILE-Gx in "New native configurations" and
7426 "New targets" sections.
7428 2013-04-01 Doug Evans <dje@google.com>
7430 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7431 (process_enumeration_scope): Simplify.
7433 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7435 (struct signatured_type): ... to here.
7436 (sig_type_ptr): New typedef.
7437 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7438 out of union 't'. All uses updated.
7439 (dw2_get_file_names_reader): Assert not called for a type unit.
7440 (dw2_get_file_names): Assert not called for a type unit or type
7442 (build_type_psymtabs_reader): Assert called for a type unit.
7443 (build_type_psymtab_dependencies): Assert called for a type unit group.
7445 * dwarf2read.c (free_dwo_file): Add comment.
7446 (dwarf2_per_objfile_free): Unref dwp bfd.
7448 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7450 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7451 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7452 (read_pe_exported_syms): Remove unused 'exportix'.
7453 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7454 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7455 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7457 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7459 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7460 (print_it_watchpoint): Remove unused 'bl'.
7461 (say_where): Remove unused 'uiout'.
7462 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7463 (bkpt_breakpoint_hit): Remove unused 'b'.
7464 (internal_bkpt_print_it): Remove unused 'uiout'.
7465 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7467 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7469 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7470 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7472 2013-03-29 Doug Evans <dje@google.com>
7474 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7475 Delete arg is_dwp. All callers updated.
7476 (open_dwp_file): New function.
7477 (open_and_init_dwp_file): Call it.
7478 (get_dwp_file): New function.
7479 (lookup_dwo_cutu): Call it.
7481 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7482 unnecessary, cleanup.
7484 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7486 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7487 (lookup_dwo_unit): New function.
7488 (init_cutu_and_read_dies): Move DWO handling to new functions.
7490 * dwarf2read.c (struct signatured_type): Tweak comment.
7491 (struct dwo_unit): Tweak comment.
7492 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7493 (create_dwo_debug_info_hash_table): Tweak comment.
7494 (dwarf2_per_cu_offset_and_type): Tweak comment.
7496 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7497 missing .debug_types section.
7499 2013-03-29 Yao Qi <yao@codesourcery.com>
7501 * corelow.c: Include "completer.h".
7502 (_initialize_corelow): Call add_target_with_completer with
7503 argument 'filename_completer'.
7504 * tracepoint.c: Likewise.
7505 * exec.c (_initialize_exec): Likewise.
7506 * target.c (add_target): Rename to ...
7507 (add_target_with_completer): ... this. Call set_cmd_completer
7508 if parameter completer is not NULL.
7510 * target.h: Include "command.h".
7511 (add_target_with_completer): Declare it.
7513 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7515 * coffread.c (is_import_fixup_symbol): New function.
7516 (record_minimal_symbol): Use is_import_fixup_symbol to
7517 detect import fixup symbols, and discard them.
7519 2013-03-28 Doug Evans <dje@google.com>
7521 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7522 types hash table until we know we need it.
7524 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7527 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7528 All callers updated.
7529 (dw2_print_stats): Print #read CUs too.
7530 (dump_die_shallow): Print signatured types better.
7532 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7533 info_or_types_section to section. All uses updated.
7534 (struct dwo_unit): Ditto.
7536 2013-03-28 Pedro Alves <palves@redhat.com>
7538 * NEWS (New options): New section.
7539 (New options): Mention set/show remote trace-status-packet.
7540 * remote.c (PACKET_qTStatus): New enumeration value.
7541 (remote_get_trace_status): Skip sending qTStatus if the packet is
7542 disabled. Use packet_ok.
7543 (_initialize_remote): Register a configuration command for
7546 2013-03-28 Doug Evans <dje@google.com>
7548 * symfile.c (find_separate_debug_file): Add comment.
7549 (terminate_after_last_dir_separator): Tweak comment.
7551 * dwarf2read.c (create_partial_symtab): Add forward decl.
7552 (create_partial_symtab): Move to be closer to other psymtab functions.
7553 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7555 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7556 (compute_symtab_includes): Remove unnecessary forward declaration.
7557 (die_needs_namespace): Add comment marking group of functions for
7558 dwarf2 name computation.
7560 * typeprint.c (_initialize_typeprint): Improve type help text.
7562 * python/python.c (finish_python_initialization): Provide suggestion
7563 for how to tell gdb to find its python files.
7565 2013-03-28 Pedro Alves <palves@redhat.com>
7569 * source.c (_initialize_source): Change back "set listsize" to an
7572 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7575 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7577 2013-03-27 Pedro Alves <palves@redhat.com>
7579 * top.c (history_size): Rename to ...
7580 (history_size_setshow_var): ... this. Add comment.
7581 (show_commands): Use readline's 'history_length' instead of
7582 computing the history length by calling history_get in a loop.
7583 (set_history_size_command): Error out for sizes over INT_MAX.
7584 Restore previous history size on invalid size.
7585 (init_history): If HISTSIZE is negative, leave the history size as
7587 (init_main): Adjust.
7589 2013-03-27 Pedro Alves <palves@redhat.com>
7591 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7592 coff_pe_read" command to "set debug coff-pe-read".
7594 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7596 * record.c (command_size_to_target_size): Fix size comparison.
7597 Change parameter type from pointer to integer to integer.
7600 2013-03-27 Pierre Muller <muller@sourceware.org>
7602 * windows-nat.c (handle_output_debug_string): Avoid typecast
7603 from integer of different size warning.
7605 2013-03-26 Joel Brobecker <brobecker@adacore.com>
7607 * windows-nat.c (handle_output_debug_string): Add empty line
7608 after local block variable definition.
7610 2013-03-26 Pedro Alves <palves@redhat.com>
7612 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7613 (net_open): Make 'polls' local unsigned.
7615 2013-03-26 Pedro Alves <palves@redhat.com>
7617 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7618 a zuinteger command instead of uinteger.
7620 2013-03-26 Pedro Alves <palves@redhat.com>
7622 * record-full.c (record_full_insn_num): Make it unsigned.
7623 (record_full_check_insn_num, record_full_message)
7624 (record_full_registers_change, record_full_xfer_partial): Remove
7625 record_full_insn_max_num check (it's always != 0).
7626 (record_full_info, record_full_restore): Use %u as format string.
7627 (): Use %u as format string.
7628 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7629 check (it's always != 0).
7631 2013-03-26 Pedro Alves <palves@redhat.com>
7633 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7634 and "set dcache size" commands zuinteger instead of uinteger.
7636 2013-03-26 Pedro Alves <palves@redhat.com>
7638 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7639 command zuinteger instead of uinteger.
7641 2013-03-26 Pedro Alves <palves@redhat.com>
7643 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7644 zuinteger instead of uinteger.
7646 2013-03-26 Pedro Alves <palves@redhat.com>
7648 * record.c (record_insn_history_size_setshow_var)
7649 (record_call_history_size_setshow_var): New globals.
7650 (command_size_to_target_size): New function.
7651 (cmd_record_insn_history, cmd_record_call_history): Use
7652 command_size_to_target_size instead of cast.
7653 (validate_history_size, set_record_insn_history_size)
7654 (set_record_call_history_size): New functions.
7655 (_initialize_record): Install set_record_insn_history_size and
7656 set_record_call_history_size as "set" hooks of "set record
7657 instruction-history-size" and "set record
7658 function-call-history-size".
7660 2013-03-26 Pedro Alves <palves@redhat.com>
7662 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7663 use with history_max_entries use. Remove FIXME note.
7665 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7667 * record-btrace.c (record_btrace_close): Call
7668 record_btrace_auto_disable.
7670 2013-03-25 Joel Brobecker <brobecker@adacore.com>
7672 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7674 2013-03-25 Doug Evans <dje@google.com>
7676 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7678 2013-03-25 Tom Tromey <tromey@redhat.com>
7681 * c-exp.y (exp): Add new productions for destructors after '.' and
7683 (write_destructor_name): New function.
7685 2013-03-25 Tom Tromey <tromey@redhat.com>
7688 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7689 value_struct_elt, not lookup_struct_elt_type.
7690 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7691 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7692 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7694 2013-03-25 Yao Qi <yao@codesourcery.com>
7696 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7697 instead of '_mkdir'.
7699 2013-03-23 Eli Zaretskii <eliz@gnu.org>
7701 * windows-nat.c (windows_get_absolute_argv0): New function.
7702 * windows-nat.h: Add its prototype.
7704 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7705 Use IS_DIR_SEPARATOR instead of looking for a character inside
7706 SLASH_STRING. Include filenames.h.
7707 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7708 relocate_gdb_directory works when passed gdb_program_name.
7709 Include windows-nat.h.
7711 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7713 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7714 * remote.c (trace_error): Remove the special handling of '2'.
7715 (readchar) <SERIAL_EOF>
7716 (readchar) <SERIAL_ERROR>
7717 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7718 (remote_get_trace_status): Call throw_exception if EX is
7720 * utils.c (perror_with_name): Rename to ...
7721 (throw_perror_with_name): ... here. New parameter errcode, describe it
7722 in the function comment.
7723 (perror_with_name): New function wrapper.
7724 * utils.h (enum errors): New stub declaration.
7725 (throw_perror_with_name): New declaration.
7727 2013-03-22 Pedro Alves <palves@redhat.com>
7728 Yao Qi <yao@codesourcery.com>
7729 Mark Kettenis <kettenis@gnu.org>
7731 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7732 Don't let the user set the value to UINT_MAX directly.
7733 <var_integer>: Don't let the user set the value to INT_MAX
7736 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7738 * remote.c (remote_unpush_target): New function.
7739 (remote_open_1): Remove two pop_target calls, update one comment, add
7740 comment to target_preopen call. Replace pop_target call by
7741 remote_unpush_target call.
7742 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7743 pop_target calls by remote_unpush_target calls.
7745 2013-03-22 Pedro Alves <palves@redhat.com>
7747 * linux-nat.c (linux_child_follow_fork): Don't call
7748 linux_enable_event_reporting.
7749 (linux_handle_extended_wait): Don't call
7750 linux_enable_event_reporting.
7752 2013-03-22 Pedro Alves <palves@redhat.com>
7754 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7755 use it to rewrite the trampoline buffers with type gdb_byte[], and
7756 undefine the macro. Remove char* cast.
7758 2013-03-21 Doug Evans <dje@google.com>
7760 New commands "mt set per-command {space,time,symtab} {on,off}".
7762 * event-top.c: #include "maint.h".
7763 * main.c: #include "maint.h".
7764 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7765 timeval-utils.h, maint.h, cli/cli-setshow.h.
7766 (per_command_time, per_command_space): New static globals.
7767 (per_command_symtab): New static global.
7768 (per_command_setlist, per_command_showlist): New static globals.
7769 (struct cmd_stats): Move here from utils.c.
7770 (set_per_command_time): Renamed from set_display_time in utils.c
7771 and moved here. All callers updated.
7772 (set_per_command_space): Renamed from set_display_space in utils.c
7773 and moved here. All callers updated.
7774 (count_symtabs_and_blocks): New function.
7775 (report_command_stats): Moved here from utils.c. Add support for
7776 printing symtab stats. Only print data if enabled before command
7778 (make_command_stats_cleanup): Ditto.
7779 (sert_per_command_cmd, show_per_command_cmd): New functions.
7780 (_initialize_maint_cmds): Add new commands
7781 mt set per-command {space,time,symtab} {on,off}.
7782 * maint.h: New file.
7783 * top.c: #include "maint.h".
7784 * utils.c (reset_prompt_for_continue_wait_time): New function.
7785 (get_prompt_for_continue_wait_time): New function.
7786 * utils.h (reset_prompt_for_continue_wait_time): Declare
7787 (get_prompt_for_continue_wait_time): Declare.
7788 (make_command_stats_cleanup): Moved to maint.h.
7789 (set_display_time, set_display_space): Moved to maint.h and renamed
7790 to set_per_command_time, set_per_command_space.
7791 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7792 parse_binary_operation and made non-static. Don't call error,
7793 just return an error marker. All callers updated.
7794 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7796 2013-03-21 Tom Tromey <tromey@redhat.com>
7798 * symfile.c (alloc_section_addr_info): Update header. Don't set
7799 'num_sections' field.
7800 (build_section_addr_info_from_section_table): Set 'num_sections'.
7801 (build_section_addr_info_from_bfd): Likewise.
7802 (build_section_addr_info_from_objfile): Remove dead loop
7804 (free_section_addr_info): Unconditionally call xfree.
7805 (relative_addr_info_to_section_offsets, addrs_section_sort)
7806 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7808 (syms_from_objfile_1): Remove dead 'if' condition. Check
7810 (add_symbol_file_command): Set 'num_sections'.
7811 * symfile-mem.c (symbol_file_add_from_memory): Set
7813 * somread.c (som_symfile_offsets): Remove dead loop condition.
7814 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7815 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7817 2013-03-21 Tom Tromey <tromey@redhat.com>
7819 * tracepoint.h (decode_agent_options): Add 'trace_string'
7821 * tracepoint.c (decode_agent_options): Add 'trace_string'
7823 (validate_actionline): Update.
7824 (collect_symbol): Add 'trace_string' argument.
7825 (struct add_local_symbols_data) <trace_string>: New field.
7826 (do_collect_symbol): Update.
7827 (add_local_symbols): Add 'trace_string' argument.
7828 (encode_actions_1): Update.
7829 (trace_dump_actions): Update.
7830 * dwarf2loc.c (access_memory): Update.
7831 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7832 * ax-general.c (new_agent_expr): Update.
7833 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7834 (gen_trace_for_return_address): Add argument.
7835 (trace_kludge, trace_string_kludge): Remove.
7836 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7837 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7838 (gen_trace_for_var): Add 'trace_string' argument.
7839 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7840 (gen_printf, agent_eval_command_one): Update.
7842 2013-03-21 Tom Tromey <tromey@redhat.com>
7845 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7846 Handle FILENAME token.
7848 2013-03-21 Tom Tromey <tromey@redhat.com>
7850 * c-exp.y (YYPRINT): Define.
7851 (c_print_token): New function.
7853 2013-03-21 Tom Tromey <tromey@redhat.com>
7855 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7857 2013-03-21 Yao Qi <yao@codesourcery.com>
7859 * ctf.c: Include "gdb_stat.h".
7860 [USE_WIN32API]: New macro 'mkdir'.
7861 (ctf_start): Use permission bits macros if they are defined.
7863 2013-03-20 Keith Seitz <keiths@redhat.com>
7865 * breakpoint.h (struct breakpoint): Add comment to
7866 extra_string indicating that this member is mallod'd.
7867 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7869 2013-03-20 Pedro Alves <palves@redhat.com>
7873 * cli/cli-setshow.c (do_set_command)
7874 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7875 the result of parsing the command argument. Throw error if the
7876 value is greater than UINT_MAX. Print the invalid value with
7878 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7879 result of parsing the command argument. Throw error if the value
7880 is greater than INT_MAX, not greater or equal. Also throw error
7881 if the value is less than INT_MIN. Print the invalid value with
7883 <var_zuinteger_unlimited>: Throw error if the value is greater
7884 than INT_MAX, not greater or equal.
7885 (do_show_command) <var_integer, var_zinteger,
7886 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7888 2013-03-20 Tom Tromey <tromey@redhat.com>
7890 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7892 * dwarf2read.c (read_func_scope): Remove old FIXME.
7893 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7895 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7896 Unconditionally call via computed ops, if possible.
7897 * printcmd.c (address_info): Unconditionally call via computed ops,
7899 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7901 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7902 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7905 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7906 Tom Tromey <tromey@redhat.com>
7909 * coffread.c (coff_register_index): New global.
7910 (process_coff_symbol, coff_read_enum_type): Set
7911 SYMBOL_ACLASS_INDEX.
7912 (_initialize_coffread): Initialize new global.
7913 * dwarf2loc.c (locexpr_find_frame_base_location)
7914 (dwarf2_block_frame_base_locexpr_funcs)
7915 (loclist_find_frame_base_location)
7916 (dwarf2_block_frame_base_loclist_funcs): New.
7917 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7918 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7919 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7920 (dwarf2_block_frame_base_loclist_funcs): New.
7921 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7922 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7924 (read_func_scope): Update.
7925 (fixup_go_packaging, mark_common_block_symbol_computed)
7926 (var_decode_location, new_symbol_full, dwarf2_const_value):
7927 Set SYMBOL_ACLASS_INDEX.
7928 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7929 (_initialize_dwarf2_read): Initialize new globals.
7930 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7931 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7932 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7934 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7935 (_initialize_mdebugread): Initialize new globals.
7936 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7937 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7938 (stab_register_index, stab_regparm_index): New globals.
7939 (define_symbol, read_enum_type, common_block_end): Set
7940 SYMBOL_ACLASS_INDEX.
7941 (_initialize_stabsread): Initialize new globals.
7942 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7944 (MAX_SYMBOL_IMPLS): New define.
7945 (register_symbol_computed_impl, register_symbol_block_impl)
7946 (register_symbol_register_impl)
7947 (initialize_ordinary_address_classes): New functions.
7948 (_initialize_symtab): Call initialize_ordinary_address_classes.
7949 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7950 (struct symbol_impl): New.
7951 (SYMBOL_ACLASS_BITS): New define.
7952 (struct symbol) <aclass, ops>: Remove fields.
7953 <aclass_index>: New field.
7954 (symbol_impls): Declare.
7955 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7956 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7957 (register_symbol_computed_impl, register_symbol_block_impl)
7958 (register_symbol_register_impl): Declare.
7959 (struct symbol_computed_ops): Add location_has_loclist.
7960 (struct symbol_block_ops): New.
7961 (SYMBOL_BLOCK_OPS): New.
7962 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7964 2013-03-20 Tom Tromey <tromey@redhat.com>
7966 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7967 (print_partial_symbols, recursively_search_psymtabs): Use
7970 2013-03-20 Pierre Muller <muller@sourceware.org>
7972 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7973 addtion, subtraction, multiplication and division binary operator.
7975 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7978 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7979 * bsd-kvm.c (bsd_kvm_close): Likewise.
7980 * bsd-uthread.c (bsd_uthread_close): Likewise.
7981 * corelow.c (core_close): Likewise.
7982 (core_close_cleanup): Remove parameter quitting from a caller.
7983 * event-top.c (async_disconnect): Likewise.
7984 * exec.c (exec_close_1): Remove parameter quitting.
7985 * go32-nat.c (go32_close): Likewise.
7986 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7987 parameter quitting from a caller.
7988 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7990 (mips_linux_close): Remove parameter quitting. Remove parameter
7991 quitting from a caller.
7992 * monitor.c (monitor_close): Remove parameter quitting.
7993 * monitor.h (monitor_close): Likewise.
7994 * record-btrace.c (record_btrace_close): Likewise.
7995 * record-full.c (record_full_close): Likewise.
7996 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7997 it also from fprintf_unfiltered.
7998 * remote-mips.c (mips_close): Remove parameter quitting.
7999 (mips_detach): Remove parameter quitting from a caller.
8000 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8001 (gdbsim_close): Remove duplicate function comment. Remove parameter
8002 quitting and remove it also from printf_filtered.
8003 * remote.c (remote_close): Remove parameter quitting.
8004 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8005 * target.c (update_current_target): Remove parameter int from to_close
8007 (push_target, unpush_target, pop_target): Remove parameter quitting from
8009 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8010 Remove parameter quitting from a caller.
8011 (target_preopen): Remove parameter quitting from a caller.
8012 (target_close): Remove parameter quitting. Remove parameter quitting
8013 from a caller two times. Remove parameter quitting also from
8015 * target.h (struct target_ops): Remove parameter quitting and as int
8016 from fields to_xclose and to_close.
8017 (extern struct target_ops current_target):
8018 (target_close, pop_all_targets): Remove parameter quitting. Update the
8020 (pop_all_targets_above): Remove parameter quitting.
8021 * top.c (quit_target): Remove parameter quitting from a caller.
8022 * tracepoint.c (tfile_close): Remove parameter quitting.
8023 * windows-nat.c (windows_close): Remove parameter quitting.
8025 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
8027 * windows-nat.c (handle_output_debug_string): Replace call
8028 to string_to_core_addr with call to strtoull.
8030 2013-03-20 Yao Qi <yao@codesourcery.com>
8032 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8033 and write it to CTF metadata.
8035 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
8037 * windows-nat.c (handle_output_debug_string): Change type of n to
8038 SIZE_T to avoid crash on 64 bit systems.
8040 2013-03-17 Eli Zaretskii <eliz@gnu.org>
8042 * python/python-internal.h (HAVE_SNPRINTF)
8043 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8044 about redefinition of snprintf by pyerrors.h.
8046 2013-03-15 Steve Ellcey <sellcey@mips.com>
8048 * remote-sim.c (sim_command_completer): Make char arguments const.
8050 2013-03-15 Tom Tromey <tromey@redhat.com>
8053 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8055 2013-03-14 Tom Tromey <tromey@redhat.com>
8057 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8059 (get_file_crc): Move from symfile.c.
8060 (gdb_bfd_crc): New function.
8061 * gdb_bfd.h (gdb_bfd_crc): Declare.
8062 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8063 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8064 (separate_debug_file_exists): Use gdb_bfd_crc.
8066 2013-03-14 Tom Tromey <tromey@redhat.com>
8068 * symfile.c (get_debug_link_info): Remove.
8069 (find_separate_debug_file_by_debuglink): Use
8070 bfd_get_debug_link_info.
8072 2013-03-14 Tom Tromey <tromey@redhat.com>
8074 * symtab.c (error_in_psymtab_expansion): New function.
8075 (lookup_symbol_aux_quick)
8076 (basic_lookup_transparent_type_quick): Remove "last resort"
8077 code. Use error_in_psymtab_expansion.
8079 2013-03-14 Doug Evans <dje@google.com>
8080 Jan Kratochvil <jan.kratochvil@redhat.com>
8082 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8083 any successful compare_filenames_for_search or FILENAME_CMP.
8084 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8085 * symtab.c (iterate_over_some_symtabs): Likewise.
8087 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8089 * source.c (print_source_lines_base): Make a local copy of
8092 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
8093 Jan Kratochvil <jan.kratochvil@redhat.com>
8095 * source.c (print_source_lines_base): Suppress "file" for TUI.
8097 2013-03-14 Keith Seitz <keiths@redhat.com>
8098 Alan Matsuoka <alanm@redhat.com>
8102 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8104 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8107 2013-03-14 Yao Qi <yao@codesourcery.com>
8109 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8110 status to tfile if trace is stopped by command 'tstop'.
8112 2013-03-14 Yao Qi <yao@codesourcery.com>
8114 * tracepoint.c (tfile_write_status): Write trace notes and user
8115 name into tfile if they are not NULL.
8117 2013-03-14 Hui Zhu <hui@codesourcery.com>
8118 Yao Qi <yao@codesourcery.com>
8120 * Makefile.in (REMOTE_OBS): Add ctf.o.
8121 (SFILES): Add ctf.c.
8122 (HFILES_NO_SRCDIR): Add ctf.h.
8123 * ctf.c, ctf.h: New files.
8124 * tracepoint.c: Include 'ctf.h'.
8125 (collect_pseudocommand): Remove static.
8126 (trace_save_command): Parse option "-ctf".
8127 Produce different trace file writers per option.
8128 Adjust output message.
8129 (trace_save_tfile, trace_save_ctf): New.
8130 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8131 * mi/mi-main.c: Include 'ctf.h'.
8132 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8133 trace_save_tfile or trace_save_ctf.
8134 * NEWS: Mention these changes.
8136 2013-03-14 Yao Qi <yao@codesourcery.com>
8138 * tracepoint.c (trace_file_writer_xfree): New.
8139 (struct tfile_writer_data): New.
8140 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8141 (tfile_write_header, tfile_write_regblock_type): New.
8142 (tfile_write_status, tfile_write_uploaded_tsv): New.
8143 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8144 (tfile_write_raw_data, (tfile_end): New.
8145 (tfile_write_ops): New global variable.
8146 (TRACE_WRITE_R_BLOCK): New macro.
8147 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8148 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8149 (TRACE_WRITE_V_BLOCK): New macro.
8150 (trace_save): Add extra one parameter WRITER. Make it static.
8151 Use WRITER to writer trace.
8152 (tfile_trace_file_writer_new): New.
8153 (trace_save_command): Caller update.
8154 (trace_save_tfile): Write trace data in TFILE format.
8155 * tracepoint.h (struct trace_frame_write_ops): New.
8156 (struct trace_file_write_ops): New.
8157 (struct trace_file_writer): New.
8158 (trace_save): Remove its declaration.
8159 (trace_save_tfile): Declare it.
8160 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8161 instead of trace_save.
8163 2013-03-13 Pedro Alves <palves@redhat.com>
8165 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8167 2013-03-13 Pedro Alves <palves@redhat.com>
8169 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8171 * demangle.c (current_demangling_style_string): Make it const.
8172 (set_demangling_command): Assert the demangling style is known.
8173 Remove all handling of unknown styles. Set
8174 'current_demangling_style_string' to an element of the
8175 demangling_style_names array.
8176 (set_demangling_style): Delete.
8177 (_initialize_demangler): Set current_demangling_style_string to the
8178 element of the demangling_style_names array that corresponds to
8179 the default demangling style. Remove FIXME note. Don't call
8180 set_demangling_style.
8181 * gdb-demangle.h (set_demangling_style): Remove declaration.
8183 2013-03-13 Pedro Alves <palves@redhat.com>
8185 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8187 (ada_make_symbol_completion_list): Make "text0" parameter const.
8188 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8189 * breakpoint.c (condition_completer): Make "text" and "word"
8190 parameters const. Adjust.
8191 (check_tracepoint_command): Adjust to validate_actionline
8193 (catch_syscall_completer): Make "text" and "word" parameters
8195 * cli/cli-cmds.c (show_user): Make "comname" local const.
8196 (valid_command_p): Make "command" parameter const.
8197 (alias_command): Make "alias_prefix" and "command_prefix" locals
8199 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8200 (add_alias_cmd): Make "name" and "oldname" parameters const.
8201 Adjust. No longer make copy of OLDNAME.
8202 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8203 (add_setshow_cmd_full, add_setshow_enum_cmd)
8204 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8205 (add_setshow_filename_cmd, add_setshow_string_cmd)
8206 (add_setshow_string_noescape_cmd)
8207 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8208 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8209 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8210 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8211 Make "name" parameter const.
8212 (help_cmd): Rename "command" parameter to "arg". New const local
8214 (find_cmd): Make "command" parameter const.
8215 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8216 deprecated_cmd_warning prototype change.
8217 (undef_cmd_error): Make "cmdtype" parameter const.
8218 (lookup_cmd): Make "line" parameter const.
8219 (deprecated_cmd_warning): Change type of "text" parameter to
8220 pointer to const char, from pointer to pointer to char. Adjust.
8221 (lookup_cmd_composition): Make "text" parameter const.
8222 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8224 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8226 * cli/cli-script.c (validate_comname): Make "tem" local const.
8227 (define_command): New const local "tem_c". Use it in calls to
8229 (document_command): Make "tem" and "comfull" locals const.
8230 (show_user_1): Make "prefix" and "name" parameters const.
8231 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8233 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8234 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8235 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8236 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8237 (complete_on_enum, add_setshow_enum_cmd)
8238 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8239 (add_setshow_filename_cmd, add_setshow_string_cmd)
8240 (add_setshow_string_noescape_cmd)
8241 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8242 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8243 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8244 Change prototypes, constifying strings.
8245 * completer.c (noop_completer, filename_completer): Make "text"
8246 and "prefix" parameters const.
8247 (location_completer, expression_completer)
8248 (complete_line_internal): Make "text" and "prefix" parameters
8250 (command_completer, signal_completer): Make "text" and "prefix"
8252 * completer.h (noop_completer, filename_completer)
8253 (expression_completer, location_completer, command_completer)
8254 (signal_completer): Change prototypes.
8255 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8257 * cp-abi.c (cp_abi_completer): Likewise.
8258 * expression.h (parse_expression_for_completion): Change
8260 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8262 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8263 * infrun.c (handle_completer): Make "text" and "word" parameters
8265 * interps.c (interpreter_completer): Make "text" and "word"
8267 * language.h (struct language_defn)
8268 <la_make_symbol_completion_list>: Make "text" and "word"
8270 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8271 (parse_exp_in_context): Rename to ...
8272 (parse_exp_in_context_1): ... this.
8273 (parse_exp_in_context): Reimplement, with const hack from
8275 (parse_expression_for_completion): Make "string" parameter const.
8276 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8277 to pointer to const char. Adjust.
8278 (print_command_1): Make "exp" parameter const.
8279 (output_command): Rename to ...
8280 (output_command_const): ... this. Make "exp" parameter const.
8281 (output_command): Reimplement.
8282 (x_command): Adjust.
8283 (display_command): Rename "exp" parameter to "arg". New "exp"
8284 local, const version of "arg".
8285 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8286 "cmd_name" local const.
8287 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8289 (cmdpy_completer): Make "text" and "word" parameters const.
8290 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8291 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8293 * remote.c (_initialize_remote): Make "cmd_name" local const.
8294 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8295 parameters const. Adjust.
8296 (completion_list_add_fields): Make "sym_text", "text" and "word"
8298 (struct add_name_data) <sym_text, text, word>: Make fields const.
8299 (default_make_symbol_completion_list_break_on): Make "text" and
8300 "word" parameters const. Adjust locals.
8301 (default_make_symbol_completion_list)
8302 (make_symbol_completion_list, make_symbol_completion_type)
8303 (make_symbol_completion_list_fn): Make "text" and "word"
8305 (make_file_symbol_completion_list): Make "text", "word" and
8306 "srcfile" parameters const. Adjust locals.
8307 (add_filename_to_list): Make "text" and "word" parameters const.
8308 (struct add_partial_filename_data) <text, word>: Make fields
8310 (make_source_files_completion_list): Make "text" and "word"
8312 * symtab.h (default_make_symbol_completion_list_break_on)
8313 (default_make_symbol_completion_list, make_symbol_completion_list)
8314 (make_symbol_completion_type enum type_code)
8315 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8316 (make_source_files_completion_list): Change prototype.
8317 * top.c (execute_command): Adjust to pass pointer to pointer to
8318 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8320 (set_verbose): Make "cmdname" local const.
8321 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8323 (validate_actionline): Make "line" parameter a pointer to const
8325 (encode_actions_1): Make "action_exp" local const, and adjust.
8326 (encode_actions): Adjust.
8327 (replace_comma): Delete.
8328 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8329 const, and adjust. Don't frob the action string while splitting
8330 it at commas. Instead, make a copy of each split substring in
8332 (trace_dump_command): Adjust to validate_actionline prototype
8334 * tracepoint.h (decode_agent_options, decode_agent_options)
8335 (encode_actions, validate_actionline): Change prototypes.
8336 * valprint.h (output_command): Delete declaration.
8337 (output_command_const): Declare.
8338 * value.c (function_destroyer): Cast const away in xfree call.
8340 2013-03-13 Pedro Alves <palves@redhat.com>
8342 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8343 rather than casting 'const char * const *' to 'const char **'.
8344 * ada-lex.l (processInt): Make "trailer" local const. Remove
8345 'const char **' cast.
8346 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8347 locals, and use those as strtol output pointer, instead than doing
8348 invalid casts to from 'const char **' to 'char **'.
8349 (_initialize_demangle): Remove cast.
8350 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8351 locals, and use those as strtol output pointer, instead than doing
8352 invalid casts to from 'const char **' to 'char **'.
8353 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8355 * stap-probe.c (stap_parse_register_operand)
8356 (stap_parse_single_operand): Likewise.
8358 2013-03-13 Yao Qi <yao@codesourcery.com>
8360 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8361 the last matched 'V' blcok in trace frame.
8363 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8365 * NEWS: Create a new section for the next release branch.
8366 Rename the section of the current branch, now that it has
8369 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8371 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8372 * version.in: Bump version to 7.6.50.20130312-cvs.
8374 2013-03-12 Keith Seitz <keiths@redhat.com>
8376 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8377 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8378 Remove temporary copy of input string.
8379 (mi_execute_command_wrapper): Make "cmd" const.
8380 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8381 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8383 (mi_parse): Make "cmd" const.
8385 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8387 2013-03-12 Keith Seitz <keiths@redhat.com>
8389 * ada-lang.c (ada_read_renaming_var_value): Pass const
8390 pointer to expression string to parse_exp_1.
8391 (create_excep_cond_exprs): Likewise.
8392 * ax-gdb.c (agent_eval_command_one): Likewise.
8393 (maint_agent_printf_command): Likewise.
8394 Constify much of the string handling/parsing.
8395 * breakpoint.c (set_breakpoint_condition): Pass const
8396 pointer to expression string to parse_exp_1.
8397 (update_watchpoint): Likewise.
8398 (parse_cmd_to_aexpr): Constify string handling.
8399 Pass const pointer to parse_exp_1.
8400 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8401 (find_condition_and_thread): Likewise.
8403 (watch_command_1): Make "arg" const.
8404 Constify string handling.
8405 Copy the expression string instead of changing the input
8407 (update_breakpoint_location): Pass const pointer to
8409 * eval.c (parse_and_eval_address): Make "exp" const.
8410 (parse_to_comma_and_eval): Make "expp" const.
8411 (parse_and_eval): Make "exp" const.
8412 * expression.h (parse_expression): Make argument const.
8413 (parse_exp_1): Make first argument const.
8414 * findcmd.c (parse_find_args): Treat "args" as const.
8415 * linespec.c (parse_linespec): Pass const pointer to
8416 linespec_expression_to_pc.
8417 (linespec_expression_to_pc): Make "exp_ptr" const.
8418 * parse.c (parse_exp_1): Make "stringptr" const.
8419 Make a copy of the expression to pass to parse_exp_in_context until
8420 this whole interface can be constified.
8421 (parse_expression): Make "string" const.
8422 * printcmd.c (ui_printf): Treat "arg" as const.
8423 Handle const strings.
8424 * tracepoint.c (validate_actionline): Pass const pointer to
8425 all calls to parse_exp_1.
8426 (encode_actions_1): Likewise.
8427 * value.h (parse_to_comma_and_eval): Make argument const.
8428 (parse_and_eval_address): Likewise.
8429 (parse_and_eval): Likewise.
8430 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8431 (varobj_set_value): Likewise.
8432 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8433 constify string handling.
8434 Pass const pointers to parse_and_eval_address and
8435 parse_to_comman_and_eval.
8436 * cli/cli-utils.c (skip_to_space): Rename to ...
8437 (skip_to_space_const): ... this. Handle const strings.
8438 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8439 skip_to_space_const.
8440 (skip_to_space_const): Declare.
8441 * common/format.c (parse_format_string): Make "arg" const.
8442 Handle const strings.
8443 * common/format.h (parse_format_string): Make "arg" const.
8444 * gdbserver/ax.c (ax_printf): Make "format" const.
8445 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8446 of the expression string.
8448 2013-03-12 Hui Zhu <hui@codesourcery.com>
8450 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8452 2013-03-12 Yao Qi <yao@codesourcery.com>
8453 Hui Zhu <hui@codesourcery.com>
8455 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8456 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8459 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8461 * ada-lex.l (rules): Only recognize 'thread' as a
8462 delimiter when followed by numerals, as for c-exp.y.
8463 Use new rewind_to_char function to rewind the input for
8464 expression-delimiting tokens.
8465 (rewind_to_char): New function.
8467 2013-03-11 Pedro Alves <palves@redhat.com>
8468 Jan Kratochvil <jan.kratochvil@redhat.com>
8470 * configure: Regenerate.
8471 * configure.ac (check dynamic export flag): Link python test with
8474 2013-03-11 Doug Evans <dje@google.com>
8475 Keith Seitz <keiths@redhat.com>
8477 * linespec.c (find_linespec_symbols): Call find_function_symbols
8478 first, and then call lookup_prefix_sym/find_method.
8480 2013-03-11 Pedro Alves <palves@redhat.com>
8482 * charset.c (convert_between_encodings): Don't cast between
8483 different pointer to pointer types. Instead, make the 'inp' local
8484 be of the type iconv expects.
8485 (wchar_iterate): Don't cast between different pointer to pointer
8486 types. Instead, use new pointer local of the type iconv expects.
8487 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8488 Add new local of type char pointer, and use it to get a
8489 char/string view of the byte buffer, instead of casting between
8490 pointer to pointer types.
8492 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8494 * remote.c (remote_set_trace_buffer_size): Move != operator
8495 to the start of next line to fix an ARI warning.
8497 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8499 * NEWS: Add record changes.
8501 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8503 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8504 the instruction history disassembly.
8505 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8506 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8508 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8510 * Makefile.in (SFILES): Add record-btrace.c
8511 (COMMON_OBS): Add record-btrace.o
8512 * record-btrace.c: New.
8513 * objfiles.c: Include btrace.h.
8514 (free_objfile): call btrace_free_objfile.
8516 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8518 * target.c (target_call_history, target_call_history_from,
8519 target_call_history_range): New.
8520 * target.h (target_ops) <to_call_history, to_call_history_from,
8521 to_call_history_range>: New fields.
8522 (target_call_history, target_call_history_from,
8523 target_call_history_range): New declaration.
8524 * record.c (get_call_history_modifiers, cmd_record_call_history,
8525 record_call_history_size): New.
8526 (_initialize_record): Add the "record function-call-history" command.
8527 Add "set/show record function-call-history-size" commands.
8528 * record.h (record_print_flag): New.
8530 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8532 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8533 to_insn_history_range>: New fields.
8534 (target_insn_history): New.
8535 (target_insn_history_from): New.
8536 (target_insn_history_range): New.
8537 * target.c (target_insn_history): New.
8538 (target_insn_history_from): New.
8539 (target_insn_history_range): New.
8540 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8541 (record_insn_history_size): New.
8542 (get_insn_number): New.
8543 (get_context_size): New.
8545 (get_insn_history_modifiers): New.
8546 (cmd_record_insn_history): New.
8547 (_initialize_record): Add "set/show record instruction-history-size"
8548 command. Add "record instruction-history" command.
8550 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8552 * record.h (record_disconnect): New.
8553 (record_detach): New.
8554 (record_mourn_inferior): New.
8556 * record-full.c (record_disconnect, record_detach,
8557 record_mourn_inferior, record_kill): Move to...
8558 * record.c: ...here.
8561 (record_unpush): New.
8562 (cmd_record_stop): Call record_stop. Replace unpush_target
8563 call with record_unpush call.
8564 (record_disconnect, record_detach): Assert that the target
8565 is of record stratum. Call record_unpush, record_stop, and
8567 (record_mourn_inferior, record_kill): Assert that the target
8568 is of record stratum. Call record_unpush and DEBUG.
8570 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8572 * record-full.h, record-full.c (record_memory_query): Rename
8574 (record_full_memory_query): ...this. Update all users.
8575 (record_arch_list_add_reg): Rename to ...
8576 (record_full_arch_list_add_reg): ...this. Update all users.
8577 (record_arch_list_add_mem): Rename to ...
8578 (record_full_arch_list_add_mem): ...this. Update all users.
8579 (record_arch_list_add_end): Rename to ...
8580 (record_full_arch_list_add_end): ...this. Update all users.
8581 (record_gdb_operation_disable_set): Rename to ...
8582 (record_full_gdb_operation_disable_set): ...this.
8585 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8587 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8588 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8589 (RECORD_IS_REPLAY): Renamed to ...
8590 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8591 (RECORD_FILE_MAGIC): Renamed to ...
8592 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8593 (record_mem_entry): Renamed to ...
8594 (record_full_mem_entry): ... this. Updated all users.
8595 (record_reg_entry): Renamed to ...
8596 (record_full_reg_entry): ... this. Updated all users.
8597 (record_end_entry): Renamed to ...
8598 (record_full_end_entry): ... this. Updated all users.
8599 (record_type) <record_end, record_reg, record_mem>: Renamed
8601 (record_full_type) <record_full_end, record_full_reg,
8602 record_full_mem>: ... this. Updated all users.
8603 (record_entry): Renamed to ...
8604 (record_full_entry): ... this. Updated all users.
8605 (record_core_buf_entry): Renamed to ...
8606 (record_full_core_buf_entry): ... this. Updated all users.
8607 (record_core_regbuf): Renamed to ...
8608 (record_full_core_regbuf): ... this. Updated all users.
8609 (record_core_start): Renamed to ...
8610 (record_full_core_start): ... this. Updated all users.
8611 (record_core_end): Renamed to ...
8612 (record_full_core_end): ... this. Updated all users.
8613 (record_core_buf_list): Renamed to ...
8614 (record_full_core_buf_list): ... this. Updated all users.
8615 (record_first): Renamed to ...
8616 (record_full_first): ... this. Updated all users.
8617 (record_list): Renamed to ...
8618 (record_full_list): ... this. Updated all users.
8619 (record_arch_list_head): Renamed to ...
8620 (record_full_arch_list_head): ... this. Updated all users.
8621 (record_arch_list_tail): Renamed to ...
8622 (record_full_arch_list_tail): ... this. Updated all users.
8623 (record_stop_at_limit): Renamed to ...
8624 (record_full_stop_at_limit): ... this. Updated all users.
8625 (record_insn_max_num): Renamed to ...
8626 (record_full_insn_max_num): ... this. Updated all users.
8627 (record_insn_num): Renamed to ...
8628 (record_full_insn_num): ... this. Updated all users.
8629 (record_insn_count): Renamed to ...
8630 (record_full_insn_count): ... this. Updated all users.
8631 (record_ops): Renamed to ...
8632 (record_full_ops): ... this. Updated all users.
8633 (record_core_ops): Renamed to ...
8634 (record_full_core_ops): ... this. Updated all users.
8635 (set_record_cmdlist): Renamed to ...
8636 (set_record_full_cmdlist): ... this. Updated all users.
8637 (show_record_cmdlist): Renamed to ...
8638 (show_record_full_cmdlist): ... this. Updated all users.
8639 (record_cmdlist): Renamed to ...
8640 (record_full_cmdlist): ... this. Updated all users.
8641 (record_beneath_to_resume_ops): Renamed to ...
8642 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8643 (record_beneath_to_resume): Renamed to ...
8644 (record_full_beneath_to_resume): ... this. Updated all users.
8645 (record_beneath_to_wait_ops): Renamed to ...
8646 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8647 (record_beneath_to_wait): Renamed to ...
8648 (record_full_beneath_to_wait): ... this. Updated all users.
8649 (record_beneath_to_store_registers_ops): Renamed to ...
8650 (record_full_beneath_to_store_registers_ops): ... this.
8652 (record_beneath_to_store_registers): Renamed to ...
8653 (record_full_beneath_to_store_registers): ... this.
8655 (record_beneath_to_xfer_partial_ops): Renamed to ...
8656 (record_full_beneath_to_xfer_partial_ops): ... this.
8658 (record_beneath_to_xfer_partial): Renamed to ...
8659 (record_full_beneath_to_xfer_partial): ... this.
8661 (record_beneath_to_insert_breakpoint): Renamed to ...
8662 (record_full_beneath_to_insert_breakpoint): ... this.
8664 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8665 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8667 (record_beneath_to_stopped_data_address): Renamed to ...
8668 (record_full_beneath_to_stopped_data_address): ... this.
8670 (record_beneath_to_async): Renamed to ...
8671 (record_full_beneath_to_async): ... this. Updated all users.
8672 (record_goto_insn): Renamed to ...
8673 (record_full_goto_insn): ... this. Updated all users.
8674 (record_save): Renamed to ...
8675 (record_full_save): ... this. Updated all users.
8676 (record_reg_alloc): Renamed to ...
8677 (record_full_reg_alloc): ... this. Updated all users.
8678 (record_reg_release): Renamed to ...
8679 (record_full_reg_release): ... this. Updated all users.
8680 (record_mem_alloc): Renamed to ...
8681 (record_full_mem_alloc): ... this. Updated all users.
8682 (record_mem_release): Renamed to ...
8683 (record_full_mem_release): ... this. Updated all users.
8684 (record_end_alloc): Renamed to ...
8685 (record_full_end_alloc): ... this. Updated all users.
8686 (record_end_release): Renamed to ...
8687 (record_full_end_release): ... this. Updated all users.
8688 (record_entry_release): Renamed to ...
8689 (record_full_entry_release): ... this. Updated all users.
8690 (record_list_release): Renamed to ...
8691 (record_full_list_release): ... this. Updated all users.
8692 (record_list_release_following): Renamed to ...
8693 (record_full_list_release_following): ... this.
8695 (record_list_release_first): Renamed to ...
8696 (record_full_list_release_first): ... this. Updated all users.
8697 (record_arch_list_add): Renamed to ...
8698 (record_full_arch_list_add): ... this. Updated all users.
8699 (record_get_loc): Renamed to ...
8700 (record_full_get_loc): ... this. Updated all users.
8701 (record_check_insn_num): Renamed to ...
8702 (record_full_check_insn_num): ... this. Updated all users.
8703 (record_arch_list_cleanups): Renamed to ...
8704 (record_full_arch_list_cleanups): ... this. Updated all users.
8705 (record_message): Renamed to ...
8706 (record_full_message): ... this. Updated all users.
8707 (record_message_wrapper): Renamed to ...
8708 (record_full_message_wrapper): ... this. Updated all users.
8709 (record_message_wrapper_safe): Renamed to ...
8710 (record_full_message_wrapper_safe): ... this. Updated all users.
8711 (record_gdb_operation_disable): Renamed to ...
8712 (record_full_gdb_operation_disable): ... this. Updated all users.
8713 (record_hw_watchpoint): Renamed to ...
8714 (record_full_hw_watchpoint): ... this. Updated all users.
8715 (record_exec_insn): Renamed to ...
8716 (record_full_exec_insn): ... this. Updated all users.
8717 (record_restore): Renamed to ...
8718 (record_full_restore): ... this. Updated all users.
8719 (record_async_inferior_event_token): Renamed to ...
8720 (record_full_async_inferior_event_token): ... this.
8722 (record_async_inferior_event_handler): Renamed to ...
8723 (record_full_async_inferior_event_handler): ... this.
8725 (record_core_open_1): Renamed to ...
8726 (record_full_core_open_1): ... this. Updated all users.
8727 (record_open_1): Renamed to ...
8728 (record_full_open_1): ... this. Updated all users.
8729 (record_open): Renamed to ...
8730 (record_full_open): ... this. Updated all users.
8731 (record_close): Renamed to ...
8732 (record_full_close): ... this. Updated all users.
8733 (record_resume_step): Renamed to ...
8734 (record_full_resume_step): ... this. Updated all users.
8735 (record_resumed): Renamed to ...
8736 (record_full_resumed): ... this. Updated all users.
8737 (record_execution_dir): Renamed to ...
8738 (record_full_execution_dir): ... this. Updated all users.
8739 (record_resume): Renamed to ...
8740 (record_full_resume): ... this. Updated all users.
8741 (record_get_sig): Renamed to ...
8742 (record_full_get_sig): ... this. Updated all users.
8743 (record_sig_handler): Renamed to ...
8744 (record_full_sig_handler): ... this. Updated all users.
8745 (record_wait_cleanups): Renamed to ...
8746 (record_full_wait_cleanups): ... this. Updated all users.
8747 (record_wait_1): Renamed to ...
8748 (record_full_wait_1): ... this. Updated all users.
8749 (record_wait): Renamed to ...
8750 (record_full_wait): ... this. Updated all users.
8751 (record_stopped_by_watchpoint): Renamed to ...
8752 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8753 (record_disconnect): Renamed to ...
8754 (record_full_disconnect): ... this. Updated all users.
8755 (record_detach): Renamed to ...
8756 (record_full_detach): ... this. Updated all users.
8757 (record_mourn_inferior): Renamed to ...
8758 (record_full_mourn_inferior): ... this. Updated all users.
8759 (record_kill): Renamed to ...
8760 (record_full_kill): ... this. Updated all users.
8761 (record_stopped_data_address): Renamed to ...
8762 (record_full_stopped_data_address): ... this. Updated all users.
8763 (record_registers_change): Renamed to ...
8764 (record_full_registers_change): ... this. Updated all users.
8765 (record_store_registers): Renamed to ...
8766 (record_full_store_registers): ... this. Updated all users.
8767 (record_xfer_partial): Renamed to ...
8768 (record_full_xfer_partial): ... this. Updated all users.
8769 (record_breakpoint): Renamed to ...
8770 (record_full_breakpoint): ... this. Updated all users.
8771 (record_breakpoint_p): Renamed to ...
8772 (record_full_breakpoint_p): ... this. Updated all users.
8773 (record_breakpoints): Renamed to ...
8774 (record_full_breakpoints): ... this. Updated all users.
8775 (record_sync_record_breakpoints): Renamed to ...
8776 (record_full_sync_record_breakpoints): ... this.
8778 (record_init_record_breakpoints): Renamed to ...
8779 (record_full_init_record_breakpoints): ... this.
8781 (record_insert_breakpoint): Renamed to ...
8782 (record_full_insert_breakpoint): ... this. Updated all users.
8783 (record_remove_breakpoint): Renamed to ...
8784 (record_full_remove_breakpoint): ... this. Updated all users.
8785 (record_can_execute_reverse): Renamed to ...
8786 (record_full_can_execute_reverse): ... this. Updated all users.
8787 (record_get_bookmark): Renamed to ...
8788 (record_full_get_bookmark): ... this. Updated all users.
8789 (record_goto_bookmark): Renamed to ...
8790 (record_full_goto_bookmark): ... this. Updated all users.
8791 (record_async): Renamed to ...
8792 (record_full_async): ... this. Updated all users.
8793 (record_can_async_p): Renamed to ...
8794 (record_full_can_async_p): ... this. Updated all users.
8795 (record_is_async_p): Renamed to ...
8796 (record_full_is_async_p): ... this. Updated all users.
8797 (record_execution_direction): Renamed to ...
8798 (record_full_execution_direction): ... this. Updated all users.
8799 (record_info): Renamed to ...
8800 (record_full_info): ... this. Updated all users.
8801 (record_delete): Renamed to ...
8802 (record_full_delete): ... this. Updated all users.
8803 (record_is_replaying): Renamed to ...
8804 (record_full_is_replaying): ... this. Updated all users.
8805 (record_goto_entry): Renamed to ...
8806 (record_full_goto_entry): ... this. Updated all users.
8807 (record_goto_begin): Renamed to ...
8808 (record_full_goto_begin): ... this. Updated all users.
8809 (record_goto_end): Renamed to ...
8810 (record_full_goto_end): ... this. Updated all users.
8811 (record_goto): Renamed to ...
8812 (record_full_goto): ... this. Updated all users.
8813 (init_record_ops): Renamed to ...
8814 (init_record_full_ops): ... this. Updated all users.
8815 (record_core_resume): Renamed to ...
8816 (record_full_core_resume): ... this. Updated all users.
8817 (record_core_kill): Renamed to ...
8818 (record_full_core_kill): ... this. Updated all users.
8819 (record_core_fetch_registers): Renamed to ...
8820 (record_full_core_fetch_registers): ... this. Updated all users.
8821 (record_core_prepare_to_store): Renamed to ...
8822 (record_full_core_prepare_to_store): ... this. Updated all users.
8823 (record_core_store_registers): Renamed to ...
8824 (record_full_core_store_registers): ... this. Updated all users.
8825 (record_core_xfer_partial): Renamed to ...
8826 (record_full_core_xfer_partial): ... this. Updated all users.
8827 (record_core_insert_breakpoint): Renamed to ...
8828 (record_full_core_insert_breakpoint): ... this. Updated all users.
8829 (record_core_remove_breakpoint): Renamed to ...
8830 (record_full_core_remove_breakpoint): ... this. Updated all users.
8831 (record_core_has_execution): Renamed to ...
8832 (record_full_core_has_execution): ... this. Updated all users.
8833 (init_record_core_ops): Renamed to ...
8834 (init_record_full_core_ops): ... this. Updated all users.
8835 (cmd_record_restore): Renamed to ...
8836 (cmd_record_full_restore): ... this. Updated all users.
8837 (record_save_cleanups): Renamed to ...
8838 (record_full_save_cleanups): ... this. Updated all users.
8839 (cmd_record_start): Renamed to ...
8840 (cmd_record_full_start): ... this. Updated all users.
8841 (set_record_insn_max_num): Renamed to ...
8842 (set_record_full_insn_max_num): ... this. Updated all users.
8843 (set_record_command): Renamed to ...
8844 (set_record_full_command): ... this. Updated all users.
8845 (show_record_command): Renamed to ...
8846 (show_record_full_command): ... this. Updated all users.
8847 (_initialize_record): Renamed to ...
8848 (_initialize_record_full): ... this. Updated all users.
8850 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8852 * record.h: Split into this and ...
8853 * record-full.h: ... this.
8854 * record.c: Split into this and ...
8855 * record-full.c: ... this.
8856 * target.h (target_ops): Add new fields to_info_record,
8857 to_save_record, to_delete_record, to_record_is_replaying,
8858 to_goto_record_begin, to_goto_record_end, to_goto_record.
8859 (target_info_record): New.
8860 (target_save_record): New.
8861 (target_supports_delete_record): New.
8862 (target_delete_record): New.
8863 (target_record_is_replaying): New.
8864 (target_goto_record_begin): New.
8865 (target_goto_record_end): New.
8866 (target_goto_record): New.
8867 * target.c (target_info_record): New.
8868 (target_save_record): New.
8869 (target_supports_delete_record): New.
8870 (target_delete_record): New.
8871 (target_record_is_replaying): New.
8872 (target_goto_record_begin): New.
8873 (target_goto_record_end): New.
8874 (target_goto_record): New.
8875 * record.h: Declare struct cmd_list_element.
8876 (record_cmdlist): New declaration.
8877 (set_record_cmdlist): New declaration.
8878 (show_record_cmdlist): New declaration.
8879 (info_record_cmdlist): New declaration.
8880 (cmd_record_goto): New declaration.
8881 * record.c: Remove unnecessary includes.
8883 (cmd_record_goto): Remove declaration.
8884 (record_cmdlist): Now extern. Initialize.
8885 (set_record_cmdlist): Now extern. Initialize.
8886 (show_record_cmdlist): Now extern. Initialize.
8887 (info_record_cmdlist): Now extern. Initialize.
8888 (find_record_target): New.
8889 (require_record_target): New.
8890 (cmd_record_start): Update.
8891 (cmd_record_delete): Remove target-specific code.
8892 Call target_delete_record.
8893 (cmd_record_stop): Unpush any record target.
8894 (set_record_insn_max_num): Move to record-full.c
8895 (set_record_command): Add comment.
8896 (show_record_command): Add comment.
8897 (info_record_command): Update comment.
8898 Remove target-specific code.
8899 Call the record target's to_info_record.
8900 (cmd_record_start): New.
8901 (cmd_record_goto): Now extern.
8902 Remove target-specific code.
8903 Call target_goto_begin, target_goto_end, or target_goto.
8904 (_initialize_record): Move record target ops initialization to
8906 Change "record" command help text.
8907 Move "record restore", "record set", and "record show" commands to
8909 * Makefile.in (SFILES): Add record-full.c.
8910 (HFILES_NO_SRCDIR): Add record-full.h.
8911 (COMMON_OBS): Add record-full.o.
8912 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8913 * arm-tdep.c: Include record-full.h.
8914 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8915 * i386-tdep.c: Include record-full.h.
8916 * infrun.c: Include record-full.h.
8917 * linux-record.c: Include record-full.h.
8918 * moxie-tdep.c: Include record-full.h.
8919 * record-full.c: Include record-full.h.
8920 Change module comment.
8921 (set_record_full_cmdlist): New.
8922 (show_record_full_cmdlist): New.
8923 (record_full_cmdlist): New.
8924 (record_goto_insn): New declaration.
8925 (record_save): New declaration.
8926 (record_check_insn_num): Change query string.
8928 (record_delete): New.
8929 (record_is_replaying): New.
8930 (record_goto_entry): New.
8931 (record_goto_begin): New.
8932 (record_goto_end): New.
8934 (init_record_ops): Update.
8935 (init_record_core_ops): Update.
8936 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8937 (cmd_record_start): New.
8938 (set_record_insn_max_num): Moved from record.c
8939 (set_record_full_command): New.
8940 (show_record_full_command): New.
8941 (_initialize_record_full): New.
8943 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8945 * target.h (add_deprecated_target_alias): New.
8946 * target.c (add_deprecated_target_alias): New.
8948 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8950 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8952 (linux_supports_btrace): Add kernel and
8954 (kernel_supports_btrace): New function.
8955 (cpu_supports_btrace): New function.
8956 (intel_supports_btrace): New function.
8958 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8960 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8961 * remote.c: Include btrace.h.
8962 (struct btrace_target_info): New struct.
8963 (remote_supports_btrace): New function.
8964 (send_Qbtrace): New function.
8965 (remote_enable_btrace): New function.
8966 (remote_disable_btrace): New function.
8967 (remote_teardown_btrace): New function.
8968 (remote_read_btrace): New function.
8969 (init_remote_ops): Add btrace ops.
8970 (enum <unnamed>): Add btrace packets.
8971 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8972 (_initialize_remote): Add packet configuration for branch tracing.
8974 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8976 * features/btrace.dtd: New file.
8977 * Makefile.in (XMLFILES): Add btrace.dtd.
8978 * btrace.h (parse_xml_btrace): New declaration.
8979 * btrace.c: Include xml-support.h.
8980 (parse_xml_btrace): New function.
8981 (parse_xml_btrace_block): New function.
8982 (block_attributes): New struct.
8983 (btrace_attributes): New struct.
8984 (btrace_children): New struct.
8985 (btrace_elements): New struct.
8987 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8989 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8990 (amd64_linux_enable_btrace): New.
8991 (amd64_linux_disable_btrace): New.
8992 (amd64_linux_teardown_btrace): New.
8993 (_initialize_amd64_linux_nat): Initialize btrace ops.
8994 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8995 (i386_linux_enable_btrace): New.
8996 (i386_linux_disable_btrace): New.
8997 (i386_linux_teardown_btrace): New.
8998 (_initialize_i386_linux_nat): Initialize btrace ops.
8999 * config/i386/linux.mh: Add linux-btrace.o.
9000 * config/i386/linux64.mh: Add linux-btrace.o.
9002 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9004 * common/linux_btrace.h: New file.
9005 * common/linux_btrace.c: New file.
9006 * Makefile.in (SFILES): Add btrace.c.
9007 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9008 (COMMON_OBS): Add btrace.o.
9009 (linux-btrace.o): New rule.
9011 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9013 * target.h: Include btrace.h.
9014 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9015 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9016 * target.c (target_supports_btrace): New function.
9017 (target_enable_btrace): New function.
9018 (target_disable_btrace): New function.
9019 (target_teardown_btrace): New function.
9020 (target_read_btrace): New function.
9021 * btrace.h: New file.
9022 * btrace.c: New file.
9023 * Makefile.in: Add btrace.c.
9024 * gdbthread.h: Include btrace.h.
9025 (struct thread_info): Add btrace field.
9026 * thread.c: Include btrace.h.
9027 (clear_thread_inferior_resources): Call target_teardown_btrace.
9028 * common/btrace-common.h: New file.
9030 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9032 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9033 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9034 kill_status to outer block.
9036 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9038 Fix entry-values if the callee called a noreturn function.
9039 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9040 get_frame_address_in_block. Add new comment.
9042 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9044 Fix entry-values in C++ across CUs.
9045 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9046 lookup_minimal_symbol. Add a comment.
9048 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9051 2013-03-08 Yao Qi <yao@codesourcery.com>
9053 * tracepoint.c (_initialize_tracepoint): Indent the code.
9055 2013-03-08 Pedro Alves <palves@redhat.com>
9057 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9058 (parse_find_args, find_command): Change type of pattern buffer
9059 locals to 'gdb_byte *'.
9061 2013-03-08 Stan Shebs <stan@codesourcery.com>
9062 Hafiz Abid Qadeer <abidh@codesourcery.com>
9064 * NEWS: Mention set and show trace-buffer-size commands.
9066 * target.h (struct target_ops): New method
9067 to_set_trace_buffer_size.
9068 (target_set_trace_buffer_size): New macro.
9069 * target.c (update_current_target): Set up new method.
9070 * tracepoint.c (trace_buffer_size): New global.
9071 (start_tracing): Send it to the target.
9072 (set_trace_buffer_size): New function.
9073 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9074 * remote.c (remote_set_trace_buffer_size): New function.
9075 (_initialize_remote): Use it.
9076 (QTBuffer:size) New remote command.
9077 (PACKET_QTBuffer_size): New enum.
9078 (remote_protocol_features): Add an entry for
9079 PACKET_QTBuffer_size.
9081 2013-03-08 Tom Tromey <tromey@redhat.com>
9083 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9086 2013-03-07 Pedro Alves <palves@redhat.com>
9088 * target.c (target_read_stralloc, target_fileio_read_alloc):
9089 *Cast pointer to 'gdb_byte *' in target call.
9091 2013-03-07 Pedro Alves <palves@redhat.com>
9093 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9096 2013-03-07 Keith Seitz <keiths@redhat.com>
9098 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9099 (trace_pass_command): Likewise.
9100 * cli/cli-cmds.c: Include cli/cli-utils.h.
9101 (source_command): Use skip-spaces.
9102 (disassemble_command): Likewise.
9103 * findcmd.c: Include cli/cli-utils.h.
9104 (parse_find_args): Use skip_spaces.
9105 * go32-nat.c: Include cli/cli-utils.h.
9106 (go32_sldt): Use skip_spaces.
9107 (go32_sgdt): Likewise.
9108 (go32_sidt): Likewise.
9109 (go32_pde): Likewise.
9110 (go32_pte): Likewise.
9111 (go32_pte_for_address): Likewise.
9112 * infcmd.c: Include cli/cli-utils.h.
9113 (registers_info): Use skip_spaces.
9114 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9115 (linux_info_proc): Likewise.
9116 * linux-thread-db.c: Include cli/cli-utils.h.
9117 (info_auto_load_libthread_db): Use skip_spaces_const.
9118 * m32r-rom.c: Include cli/cli-utils.h.
9119 (m32r_upload_command): Use skip_spaces.
9120 * maint.c: Include cli/cli-utils.h.
9121 (maintenance_translate_address): Use skip_spaces.
9122 * mi/mi-parse.c: Include cli/cli-utils.h.
9123 (mi_parse_argv): Use skip_spaces.
9124 (mi_parse): Likewise.
9125 * minsyms.c: Include cli/cli-utils.h.
9126 (msymbol_hash_iw): Use skip_spaces_const.
9127 * objc-lang.c: Include cli/cli-utils.h.
9128 (parse_selector): Use skip_spaces.
9129 (parse_method): Likewise.
9130 * python/python.c: Include cli/cli-utils.h.
9131 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9132 (python_command)[HAVE_PYTHON]: Likewise.
9133 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9134 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9135 (m32r_load): Use skip_spaces.
9136 * serial.c: Include cli/cli-utils.h.
9137 (serial_open): Use skip_spaces_const.
9138 * stack.c: Include cli/cli-utils.h.
9139 (parse_frame_specification_1): Use skip_spaces_const.
9140 * symfile.c: Include cli/cli-utils.h.
9141 (set_ext_lang_command): Use skip_spaces.
9142 * symtab.c: Include cli/cli-utils.h.
9143 (rbreak_command): Use skip_spaces.
9144 * thread.c (thread_name_command): Use skip_spaces.
9145 * tracepoint.c (validate_actionline): Use skip_spaces.
9146 (encode_actions_1): Likewise.
9147 (trace_find_range_command): Likewise.
9148 (trace_find_outside_command): Likewise.
9149 (trace_dump_actions): Likewise.
9151 2013-03-07 Pedro Alves <palves@redhat.com>
9153 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9154 * expprint.c (print_subexp_standard): Likewise.
9155 * utils.c (host_char_to_target): Likewise.
9156 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9157 * varobj.c (value_get_print_value): Change type of local to char*.
9158 Cast it gdb_byte * in call to language printer.
9160 2013-03-07 Pedro Alves <palves@redhat.com>
9162 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9164 (make_wchar_iterator): Remove cast to char*.
9165 (wchar_iterate): Change type of local.
9167 2013-03-07 Pedro Alves <palves@redhat.com>
9169 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9170 for 'regcache->register_status'.
9172 2013-03-07 Pedro Alves <palves@redhat.com>
9174 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9177 2013-03-07 Pedro Alves <palves@redhat.com>
9179 * stap-probe.c (handle_stap_probe): Add cast to char*.
9181 2013-03-07 Pedro Alves <palves@redhat.com>
9183 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9184 RECORD_MSGRCV>: Pass a signed variable to
9185 regcache_raw_read_signed, instead of an unsigned one.
9187 2013-03-07 Pedro Alves <palves@redhat.com>
9189 * remote-notif.c (notif_debug): Change type to int.
9190 * remote-notif.h (notif_debug): Likewise.
9192 2013-03-07 Pedro Alves <palves@redhat.com>
9194 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9196 2013-03-07 Pedro Alves <palves@redhat.com>
9198 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9199 * remote.h (hex2bin, bin2hex): ... here.
9200 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9202 2013-03-07 Eli Zaretskii <eliz@gnu.org>
9204 * utils.c (initialize_utils): Improve doc strings of "set/show
9205 width", "set/show height", and "set/show pagination".
9207 2013-03-06 Keith Seitz <keiths@redhat.com>
9209 * ax-gdb.c (gen_printf): Make FORMAT const.
9210 * ax-gdb.h (gen_printf): Likewise.
9211 * ax-general.c (ax_string): Make STR const.
9212 * ax.h (ax_string): Likewise.
9214 2013-03-06 Doug Evans <dje@google.com>
9216 * elfread.c (elf_symfile_read): Move debugging printf to more
9219 2013-03-06 Pedro Alves <palves@redhat.com>
9221 * python/py-utils.c (target_string_to_unicode): Delete function.
9222 * python/python-internal.h (target_string_to_unicode): Delete
9225 2013-03-06 Pierre Muller <muller@sourceware.org>
9227 * linespec.c (get_current_search_block): ARI fix, use (void)
9228 for empty parameter list.
9230 2013-03-05 Doug Evans <dje@google.com>
9232 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9233 of old ada_lookup_symbol_list. In !full_search case, don't
9235 (ada_lookup_symbol_list): Delete arg full_search, all callers
9236 updated. Call ada_lookup_symbol_list_worker.
9237 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9238 * ada-lang.h (ada_lookup_symbol_list): Update.
9239 * language.h (language_defn): Update comment for
9240 la_iterate_over_symbols.
9241 * linespec.c (iterate_over_file_blocks): New function.
9242 (iterate_over_all_matching_symtabs): Call it.
9243 (lookup_prefix_sym): Ditto.
9244 (get_current_search_block): New function.
9245 (get_search_block): Delete.
9246 (find_label_symbols): Call get_current_search_block.
9247 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9248 * symtab.c (iterate_over_symbols): Don't search superblocks.
9250 2013-03-05 Yao Qi <yao@codesourcery.com>
9252 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9253 parameter VAR's type from "unsigned int" to "int".
9254 * command.h (var_zuinteger_unlimited): Update its comments.
9255 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9257 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9259 * NEWS: Mention new target x86_64-*-cygwin*.
9261 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9263 * configure.host: Add x86_64-*-cygwin* as host.
9264 * configure.tgt: Add x86_64-*-cygwin* as target.
9265 * config/i386/cygwin64.mh: New file.
9267 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9269 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9271 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9273 * linespec.c (struct linespec_canonical_name): New.
9274 (struct linespec_state): Change canonical_names type to it.
9275 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9276 xrealloc element size. Initialize the different CANONICAL fields.
9277 (canonical_to_fullform): New.
9278 (filter_results): Use it. Add variables canonical, fullform and
9280 (struct decode_line_2_item, decode_line_2_compare_items): New.
9281 (decode_line_2): Remove variables iter and item_names, add variables
9282 items and items_count. Modify the code for these new variables.
9284 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9286 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9289 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9291 * tracepoint.c (build_traceframe_info): Add code for byte order.
9293 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9295 * v850-tdep.c: (v850e2_register_name): Revise system register
9296 names to match current V850E2M architecture specifications.
9297 Update register number enum comments too.
9299 2013-03-01 Jiong Wang <jiwang@tilera.com>
9300 Pedro Alves <palves@redhat.com>
9302 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9304 (tilegx_skip_prologue): Limit prologue analysis to section end.
9306 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9308 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9311 2013-03-01 Pedro Alves <palves@redhat.com>
9313 Use gdb_byte for bytes from the program being debugged.
9315 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9316 Change type of local 'buf' to gdb_byte.
9317 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9318 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9319 * cris-tdep.c (cris_sigcontext_addr)
9320 (cris_sigtramp_frame_unwind_cache): Likewise.
9321 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9322 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9324 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9325 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9326 (hppa32_hpux_search_dummy_call_sequence)
9327 (hppa_hpux_supply_save_state): Likewise.
9328 * hppa-linux-tdep.c (insns_match_pattern)
9329 (hppa_linux_find_global_pointer): Likewise.
9330 * hppa-tdep.c (hppa_in_function_epilogue_p)
9331 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9332 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9333 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9334 (i386fbsd_collect_uthread): Likewise.
9335 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9336 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9337 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9338 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9339 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9340 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9341 (ia64_libunwind_frame_prev_register)
9342 (ia64_libunwind_sigtramp_frame_this_id)
9343 (ia64_find_global_pointer_from_dynamic_section)
9344 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9345 (ia64_unwind_pc): Likewise.
9346 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9347 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9348 (m68hc11_extract_return_value): Likewise.
9349 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9350 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9351 (mep_get_insn, mep_push_dummy_call): Likewise.
9352 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9353 (mips_linux_in_dynsym_stub): Likewise.
9354 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9355 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9356 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9358 * remote-mips.c (mips_set_register): Likewise.
9359 * remote-sim.c (gdbsim_fetch_register): Likewise.
9360 * score-tdep.c (score7_fetch_inst): Change type of parameter
9361 'memblock' and local 'buf' to gdb_byte.
9362 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9363 Change type of local 'buf' to gdb_byte. Adjust.
9364 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9366 (score7_analyze_prologue): Change type of 'memblock' and
9367 'memblock_ptr' locals to gdb_byte*.
9368 * sh64-tdep.c (sh64_extract_return_value)
9369 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9370 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9371 * solib-pa64.c (pa64_solib_create_inferior_hook)
9372 (pa64_open_symbol_file_object): Remove local 'buf'.
9373 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9374 (som_open_symbol_file_object): Likewise.
9375 * solib-spu.c (spu_current_sos): Likewise.
9376 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9377 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9378 (spu_store_registers): Likewise.
9379 * target.c (debug_print_register): Likewise.
9380 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9381 * xstormy16-tdep.c (xstormy16_store_return_value)
9382 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9383 (xstormy16_find_jmp_table_entry): Likewise.
9385 2013-03-01 Jiong Wang <jiwang@tilera.com>
9387 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9388 (tilegx_gdbarch_init): Install it.
9390 2013-02-28 Tom Tromey <tromey@redhat.com>
9392 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9395 2013-02-28 Doug Evans <dje@google.com>
9397 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9398 * python/python.c (gdbpy_find_pc_line): Ditto.
9400 2013-02-28 Tom Tromey <tromey@redhat.com>
9402 * contrib/excheck.py: New file.
9403 * contrib/exsummary.py: New file.
9404 * contrib/gcc-with-excheck: New file.
9406 2013-02-28 Tom Tromey <tromey@redhat.com>
9408 * python/python.c (gdbpy_print_stack): Call begin_line and
9409 fprintf_filtered inside TRY_CATCH.
9411 2013-02-28 Tom Tromey <tromey@redhat.com>
9413 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9416 2013-02-28 Tom Tromey <tromey@redhat.com>
9418 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9419 frame_object_to_frame_info inside TRY_CATCH.
9421 2013-02-28 Tom Tromey <tromey@redhat.com>
9423 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9426 2013-02-28 Tom Tromey <tromey@redhat.com>
9428 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9430 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9432 * windows-nat.c: Throughout, fix format strings and casts of
9433 printf-like functions to avoid type related warnings on all
9435 (handle_output_debug_string): Fetch context information address
9436 from debug string using string_to_core_addr.
9438 2013-02-27 Jiong Wang <jiwang@tilera.com>
9440 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9441 * regformats/reg-tilegx32.dat: New.
9443 2013-02-27 Jiong Wang <jiwang@tilera.com>
9445 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9447 2013-02-27 Jiong Wang <jiwang@tilera.com>
9449 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9451 2013-02-27 Yao Qi <yao@codesourcery.com>
9452 Pedro Alves <palves@redhat.com>
9454 * tracepoint.c (tfile_trace_find): For tfind
9455 pc/tp/range/outside, look for the next trace frame instead of
9456 always starting from frame 0.
9458 2013-02-26 Anthony Green <green@moxielogic.com>
9460 * configure.tgt: Add support for moxie-*-rtems* target.
9462 2013-02-25 Pedro Alves <palves@redhat.com>
9464 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9467 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9469 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9470 if $fp is used as the virtual frame pointer.
9472 2013-02-23 Alan Modra <amodra@gmail.com>
9474 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9476 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9477 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9478 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9479 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9481 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9484 * elfread.c (build_id_bfd_get): Make the return type const.
9485 (build_id_verify): Make the check parameter const.
9486 (build_id_to_debug_filename): Make the build_id parameter and variable
9488 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9490 2013-02-21 Alan Modra <amodra@gmail.com>
9492 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9494 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9496 Add a new method 'disassemble' to gdb.Architecture class.
9497 * python/py-arch.c (archpy_disassmble): Implementation of the
9498 new method gdb.Architecture.disassemble.
9499 (arch_object_methods): Add entry for the new method.
9501 2013-02-20 Jiong Wang <jiwang@tilera.com>
9503 * MAINTAINERS (Write After Approval): Add myself to the list.
9505 2013-02-19 Pedro Alves <palves@redhat.com>
9507 Garbage collect 'struct monitor_ops'::load_routine.
9509 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9510 * monitor.c (monitor_load): No longer call
9511 current_monitor->load_routine.
9512 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9513 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9514 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9516 2013-02-19 Pedro Alves <palves@redhat.com>
9520 Harmonize with generic_load.
9522 * monitor.c: Include "readline/readline.h".
9523 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9524 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9525 long/strtol for the 'load_offset' local. Error out if no argument
9526 is given or if too many arguments are given. Tilde expand the
9527 passed in file name.
9529 2013-02-19 Kai Tietz <ktietz@redhat.com>
9532 * symfile.c (load_section_data): Change type of load_offset
9534 (generic_load): User strtoulst instead of strtoul for conversion
9537 2013-02-19 Jiong Wang <jiwang@tilera.com>
9539 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9540 for return address, "lr" register, saved on stack.
9541 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9542 after we invoke tilegx_analyze_prologue.
9544 2013-02-19 Jiong Wang <jiwang@tilera.com>
9546 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9548 2013-02-19 Jiong Wang <jiwang@tilera.com>
9550 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9552 2013-02-19 Jiong Wang <jiwang@tilera.com>
9554 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9555 (tilegx_write_pc): New function.
9556 (tilegx_cannot_reference_register): Return zero if REGNO
9557 is TILEGX_FAULTNUM_REGNUM.
9558 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9559 (tilegx_register_name): Add handling of "faultnum" register.
9560 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9561 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9562 handling of TILEGX_FAULTNUM_REGNUM.
9563 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9565 2013-02-19 Jiong Wang <jiwang@tilera.com>
9567 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9568 should be aligned to 64bit.
9570 2013-02-19 Kai Tietz <ktietz@redhat.com>
9572 * windows-nat.c (windows_xfer_memory): Fix debug-output
9575 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9577 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9578 Don't check DSP register number if HAVE_DSP is not set.
9580 2013-02-19 Alan Modra <amodra@gmail.com>
9582 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9583 throughout file instead.
9584 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9585 Don't xmalloc return value.
9586 (build_id_verify): Similarly. Don't xfree.
9587 (build_id_to_debug_filename): Update.
9588 (find_separate_debug_file_by_buildid): Update, don't xfree.
9590 2013-02-18 Tom Tromey <tromey@redhat.com>
9593 * dwarf2read.c (read_subrange_type): Use result of
9596 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9598 * frame.c: Remove one extra white space after #include
9601 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9603 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9605 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9607 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9608 and dir commands into an if block.
9610 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9612 * python/py-breakpoint (struct pybp_code): Use int instead of
9615 2013-02-15 Pedro Alves <pedro@codesourcery.com>
9616 Hafiz Abid Qadeer <abidh@codesourcery.com>
9618 * NEWS: Mention new field "trace-file".
9619 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9620 (tfile_open): Record the trace file's filename in the trace
9622 (tfile_files_info): Mention the name of the trace file.
9623 Check the "filename" field explicitely.
9624 (trace_status_command): Explicitely check "filename" field.
9625 (trace_find_command): Ditto.
9626 (trace_find_pc_command): Ditto.
9627 (trace_find_tracepoint_command): Ditto.
9628 (trace_find_line_command): Ditto.
9629 (trace_find_range_command): Ditto.
9630 (trace_find_outside_command): Ditto.
9631 * tracepoint.h (struct trace_status) <from_file>: Rename it
9632 to "filename" and make it hold the trace file's filename
9633 instead of a boolean.
9634 * remote.c (remote_get_trace_status): Initialize "filename"
9635 field with NULL instead of 0.
9637 2013-02-15 Yao Qi <yao@codesourcery.com>
9639 * remote.c: Fix a typo.
9641 2013-02-14 Pierre Muller <muller@sourceware.org>
9643 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9645 2013-02-14 Pedro Alves <palves@redhat.com>
9647 * utils.c (savestring): Don't #undef it. Move function to
9648 common/common-utils.c.
9649 * common/common-utils.c: Include gdb_string.h.
9650 (savestring): Move here from utils.c.
9651 * common/common-utils.h (savestring): Declare.
9653 2013-02-14 Pedro Alves <palves@redhat.com>
9655 * utils.c (savestring): Rename parameter 'size' to 'len'.
9657 2013-02-14 Pedro Alves <palves@redhat.com>
9658 Yufeng Zhang <yufeng.zhang@arm.com>
9660 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9661 (aarch64_inferior_data, struct aarch64_inferior_data):
9663 (struct aarch64_process_info): New.
9664 (aarch64_process_list): New global.
9665 (aarch64_find_process_pid, aarch64_add_process)
9666 (aarch64_process_info_get): New functions.
9667 (aarch64_inferior_data_get): Delete.
9668 (aarch64_process_info_get): New function.
9669 (aarch64_forget_process): New function.
9670 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9671 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9672 aarch64_get_debug_reg_state.
9673 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9674 instead of linux_nat_iterate_watchpoint_lwps.
9675 (aarch64_linux_new_fork): New function.
9676 (aarch64_linux_child_post_startup_inferior): Use
9677 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9678 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9679 (aarch64_linux_remove_hw_breakpoint)
9680 (aarch64_handle_aligned_watchpoint)
9681 (aarch64_handle_unaligned_watchpoint)
9682 (aarch64_linux_insert_watchpoint)
9683 (aarch64_linux_remove_watchpoint)
9684 (aarch64_linux_stopped_data_address): Adjust to pass the current
9685 process id to aarch64_debug_reg_state.
9686 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9687 linux_nat_new_fork hook, and aarch64_forget_process as
9688 linux_nat_forget_process hook; remove the call to
9689 register_inferior_data_with_cleanup.
9691 2013-02-14 Pedro Alves <palves@redhat.com>
9693 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9694 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9697 2013-02-14 Pedro Alves <pedro@codesourcery.com>
9698 Hafiz Abid Qadeer <abidh@codesourcery.com>
9700 * tracepoint.h (validate_trace_state_variable_name): Declare.
9701 * tracepoint.c (validate_trace_state_variable_name): New.
9702 (trace_variable_command): Parse the trace state variable's name
9703 without using parse_expression. Do several validations.
9704 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9705 trace state variable's name with parse_expression. Validate it.
9707 2013-02-14 Yao Qi <yao@codesourcery.com>
9709 * infcmd.c (breakpoint_proceeded): Remove it.
9711 2013-02-14 Yao Qi <yao@codesourcery.com>
9713 * tracepoint.c (end_actions_pseudocommand): Make it static.
9714 (while_stepping_pseudocommand): Likewise.
9715 * tracepoint.h (end_actions_pseudocommand): Remove the
9717 (while_stepping_pseudocommand): Likewise.
9719 2013-02-14 Yao Qi <yao@codesourcery.com>
9721 * cli/cli-decode.c (help_cmd): Remove the declaration of
9723 (help_all): Likewise.
9725 2013-02-13 Pedro Alves <palves@redhat.com>
9727 * amd64-linux-nat.c (update_debug_registers_callback):
9729 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9731 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9732 i386_debug_reg_state.
9733 (amd64_linux_new_fork): New function.
9734 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9735 linux_nat_new_fork hook, and i386_forget_process as
9736 linux_nat_forget_process hook.
9737 * i386-linux-nat.c (update_debug_registers_callback):
9739 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9741 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9742 i386_debug_reg_state.
9743 (i386_linux_new_fork): New function.
9744 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9745 linux_nat_new_fork hook, and i386_forget_process as
9746 linux_nat_forget_process hook.
9747 * i386-nat.c (i386_init_dregs): Delete.
9748 (i386_inferior_data, struct i386_inferior_data):
9750 (struct i386_process_info): New.
9751 (i386_process_list): New global.
9752 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9754 (i386_inferior_data_get): Delete.
9755 (i386_process_info_get): New function.
9756 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9757 (i386_forget_process): New function.
9758 (i386_cleanup_dregs): Rewrite.
9759 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9760 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9761 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9762 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9763 to i386_debug_reg_state.
9764 (i386_use_watchpoints): Don't register inferior data.
9765 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9767 (i386_forget_process): Declare.
9768 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9769 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9771 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9772 (add_initial_lwp): New, factored out from ...
9773 (add_lwp): ... this. Don't check the number of lwps before
9774 calling linux_nat_new_thread.
9775 (linux_nat_iterate_watchpoint_lwps): Delete.
9776 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9777 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9779 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9781 (linux_nat_kill, linux_nat_mourn_inferior): Call
9782 linux_nat_forget_process.
9783 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9784 (linux_nat_forget_process): New functions.
9785 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9787 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9788 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9790 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9791 (linux_nat_forget_process): New declarations.
9793 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9794 (amd64fbsd_mourn_inferior): New function.
9795 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9796 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9798 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9800 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9803 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9805 * aarch64-linux-nat.c (debug_reg_change_callback)
9806 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9809 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9811 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9814 2013-02-13 Pedro Alves <palves@redhat.com>
9815 Hafiz Abid Qadeer <abidh@codesourcery.com>
9817 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9819 2013-02-12 Tom Tromey <tromey@redhat.com>
9822 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9824 (classify_inner_name): Remove 'first_name' argument, add
9825 'context'. Remove unused variable.
9826 (yylex): Explicitly maintain the context type. Exit loop earlier
9827 if NAME result is seen.
9829 2013-02-12 Pedro Alves <palves@redhat.com>
9831 * amd64-darwin-tdep.c: Add (C) after Copyright.
9832 * cli/cli-cmds.h: Ditto.
9833 * cli/cli-decode.c: Ditto.
9834 * cli/cli-decode.h: Ditto.
9835 * cli/cli-dump.c: Ditto.
9836 * cli/cli-dump.h: Ditto.
9837 * cli/cli-interp.c: Ditto.
9838 * cli/cli-logging.c: Ditto.
9839 * cli/cli-script.c: Ditto.
9840 * cli/cli-script.h: Ditto.
9841 * cli/cli-setshow.c: Ditto.
9842 * cli/cli-setshow.h: Ditto.
9843 * cli/cli-utils.c: Ditto.
9844 * cli/cli-utils.h: Ditto.
9845 * config/alpha/nm-osf3.h: Ditto.
9846 * config/djgpp/djconfig.sh: Ditto.
9847 * config/i386/nm-fbsd.h: Ditto.
9848 * config/i386/nm-i386gnu.h: Ditto.
9849 * config/nm-linux.h: Ditto.
9850 * config/nm-nto.h: Ditto.
9851 * config/rs6000/nm-rs6000.h: Ditto.
9852 * config/sparc/nm-sol2.h: Ditto.
9853 * darwin-nat-info.c: Ditto.
9856 * gdb-demangle.h: Ditto.
9857 * i386-darwin-nat.c: Ditto.
9858 * i386-darwin-tdep.c: Ditto.
9859 * linux-fork.h: Ditto.
9860 * m32c-tdep.c: Ditto.
9861 * microblaze-linux-tdep.c: Ditto.
9862 * microblaze-rom.c: Ditto.
9863 * microblaze-tdep.c: Ditto.
9864 * microblaze-tdep.h: Ditto.
9865 * mips-linux-tdep.h: Ditto.
9866 * ppc-ravenscar-thread.c: Ditto.
9867 * ppc-ravenscar-thread.h: Ditto.
9868 * prologue-value.c: Ditto.
9869 * prologue-value.h: Ditto.
9870 * ravenscar-thread.c: Ditto.
9871 * ravenscar-thread.h: Ditto.
9872 * sparc-ravenscar-thread.c: Ditto.
9873 * sparc-ravenscar-thread.h: Ditto.
9874 * tilegx-linux-tdep.c: Ditto.
9875 * unwind_stop_reasons.def: Ditto.
9876 * windows-nat.h: Ditto.
9877 * xtensa-linux-tdep.c: Ditto.
9878 * xtensa-xtregs.c: Ditto.
9879 * regformats/regdat.sh: Ditto.
9880 * regformats/regdef.h: Ditto.
9882 2013-02-12 Pedro Alves <palves@redhat.com>
9884 * break-catch-sig.c: Update copyright years.
9886 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9888 Add support for a destructor for ui_out data and use it to
9889 provide a ui_out destructor.
9890 * ui-out.h: Declare the new ui_out destructor.
9891 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9892 * ui-out.c (default_data_destroy): Add a default data destructor
9894 (default_ui_out_impl): Set the new data_destroy field to
9895 default_data_destroy
9896 (uo_data_destroy): Local function which invokes the data
9897 destructor if present.
9898 (clear_table): Local function which clears the table data of a
9900 (ui_out_destroy): Public function which frees a ui_out object.
9901 (ui_out_table_end): Use the new clear_table function.
9902 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9904 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9907 2013-02-11 Doug Evans <dje@google.com>
9909 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9910 (printf_decfloat): New function. Broken out from ui_printf.
9911 Remove unnecessary code to shift the entire format string down.
9912 (printf_pointer): New function.
9913 (ui_printf): Code to print C strings, wide C strings, decfloats,
9914 and pointers moved to separate functions.
9916 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9918 * valops.c (value_assign): Handling bitfield offset in
9919 `lval_internalvar_component' case.
9921 2013-02-08 Doug Evans <dje@google.com>
9923 * common/format.c (parse_format_string): Fix whitespace.
9925 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9927 * stack.c (return_command): Work around uninitialized variable
9930 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9932 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9933 number of the registers from 36 to 34.
9935 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9937 * NEWS: Mention new AArch64 native and target support.
9939 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9941 * MAINTAINERS (Write After Approval): Add myself.
9943 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9944 Marcus Shawcroft <marcus.shawcroft@arm.com>
9945 Nigel Stephens <nigel.stephens@arm.com>
9946 Yufeng Zhang <yufeng.zhang@arm.com>
9948 * aarch64-linux-nat.c: New file.
9949 * config/aarch64/linux.mh: New file.
9950 * configure.host: Add AArch64.
9951 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9953 2013-02-07 Doug Evans <dje@google.com>
9955 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9956 disassemble command.
9958 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9960 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9961 set_gdbarch_fetch_tls_load_module_address.
9963 2013-02-06 David S. Miller <davem@davemloft.net>
9965 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9966 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9967 * value.c (struct_return_convention): New function.
9968 (using_struct_return): Implement in terms of struct_return_convention.
9969 * value.h (struct_return_convention): Declare.
9970 * stack.c (return_command): Allow successful overriding of the return
9971 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9973 2013-02-06 Tom Tromey <tromey@redhat.com>
9975 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9976 outside of TRY_CATCH.
9978 2013-02-06 Yao Qi <yao@codesourcery.com>
9980 * mi/mi-interp.c: Include "tracepoint.h".
9981 (mi_tsv_modified): Declare.
9982 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9983 (mi_interpreter_init): Call observer_attach_tsv_modified.
9984 (mi_tsv_modified): New.
9985 (mi_tsv_created, mi_tsv_deleted): Update.
9986 * tracepoint.c (trace_variable_command): Call
9987 observer_notify_tsv_modified if the initial value of tsv is
9989 (delete_trace_state_variable): Call
9990 observer_notify_tsv_deleted earlier.
9991 (trace_variable_command): Caller update.
9992 (create_tsv_from_upload): Likewise.
9993 * observer.sh: Declare "struct trace_state_variable".
9995 * NEWS: Mention the new MI notification "=tsv-modified".
9997 2013-02-05 Doug Evans <dje@google.com>
9999 * completer.c (location_completer): Fix typo in comment.
10001 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10003 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10006 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10008 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10009 Refactor if statement to avoid trailing || operator.
10011 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
10013 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10015 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
10017 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10018 * configure.host: Add powerpc*-*-freebsd* target.
10019 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10020 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10021 * config/powerpc/fbsd.mh: New file.
10023 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10024 Denys Vlasenko <dvlasenk@redhat.com>
10025 Pedro Alves <palves@redhat.com>
10027 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10028 (struct elf_internal_linux_prpsinfo): Forward declare.
10029 * gdbarch.h, gdbarch.c: Regenerate.
10030 * linux-tdep.c: Include `cli/cli-utils.h'.
10031 (linux_fill_prpsinfo): New function.
10032 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10033 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10034 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10035 depending on gdbarch pointer bitness.
10036 * ppc-linux-tdep.c: Include elf-bfd.h.
10037 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10040 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10041 Marcus Shawcroft <marcus.shawcroft@arm.com>
10042 Nigel Stephens <nigel.stephens@arm.com>
10043 Yufeng Zhang <yufeng.zhang@arm.com>
10045 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10047 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10048 Marcus Shawcroft <marcus.shawcroft@arm.com>
10049 Nigel Stephens <nigel.stephens@arm.com>
10050 Yufeng Zhang <yufeng.zhang@arm.com>
10052 * aarch64-newlib-tdep.c: New file.
10053 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10055 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10056 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10057 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10058 * osabi.c (gdb_osabi_names): Add "Newlib".
10060 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10061 Marcus Shawcroft <marcus.shawcroft@arm.com>
10062 Nigel Stephens <nigel.stephens@arm.com>
10063 Yufeng Zhang <yufeng.zhang@arm.com>
10065 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10066 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10067 * aarch64-linux-tdep.c: New file.
10068 * aarch64-linux-tdep.h: New file.
10069 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10070 * configure.tgt: Add aarch64-none-linux-gnu.
10072 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10073 Marcus Shawcroft <marcus.shawcroft@arm.com>
10074 Nigel Stephens <nigel.stephens@arm.com>
10075 Yufeng Zhang <yufeng.zhang@arm.com>
10077 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10078 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10079 (ALLDEPFILES): Add aarch64-tdep.c.
10080 * aarch64-tdep.c: New file.
10081 * aarch64-tdep.h: New file.
10082 * configure.tgt: Add AArch64.
10083 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10084 (aarch64-expedite): New definition.
10085 * features/aarch64-core.xml: New file.
10086 * features/aarch64-fpu.xml: New file.
10087 * features/aarch64-without-fpu.c: New file (generated).
10088 * features/aarch64-without-fpu.xml: New file.
10089 * features/aarch64.c: New file (generated).
10090 * features/aarch64.xml: New file.
10091 * regformats/aarch64-without-fpu.dat: New file (generated).
10092 * regformats/aarch64.dat: New file (generated).
10094 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10096 * contrib/expect-read1.c: New file.
10097 * contrib/expect-read1.sh: New file.
10099 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10101 * dwarf2read.c (file_file_name): New function with code from
10103 (file_full_name): Move most of the code to file_file_name.
10104 (macro_start_file): Rename variable full_name to file_name and use
10105 file_file_name for it. Add comp_dir parameter to new_macro_table.
10106 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10107 macro_source_file->filename access by macro_source_fullname call.
10108 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10110 * macrotab.c (struct macro_table): New field comp_dir.
10111 (macro_include): New variables link_fullname and source_fullname.
10112 Replace any macro_source_file->filename access by macro_source_fullname
10114 (macro_lookup_inclusion): Remove the partial filenames checking code.
10115 (check_for_redefinition): New variables source_fullname and
10116 found_key_fullname. Replace any macro_source_file->filename access by
10117 macro_source_fullname call.
10118 (macro_undef): New variables source_fullname and key_fullname. Replace
10119 any macro_source_file->filename access by macro_source_fullname call.
10120 (macro_lookup_definition): New variables retval and source_fullname.
10121 Replace any macro_source_file->filename access by macro_source_fullname
10123 (foreach_macro): New variable key_fullname. Replace any
10124 macro_source_file->filename access by macro_source_fullname call.
10125 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10126 macro_source_file->filename access by macro_source_fullname call.
10127 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10128 (macro_source_fullname): New function.
10129 * macrotab.h (struct macro_source_file): Extent the filename field
10131 (new_macro_table): New parameter comp_dir, add a comment for it.
10132 (macro_source_fullname): new declaration.
10134 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10136 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10137 this_real_name to outer block. Use it also for
10138 compare_filenames_for_search.
10139 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10140 with dw2_get_real_path for file_matcher, considering also
10141 BASENAMES_MAY_DIFFER.
10142 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10144 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10146 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10147 to the file_matcher parameter. Pass 0 to it.
10148 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10149 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10150 NULL psymtab_to_fullname result.
10151 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10152 an expected filename instead.
10153 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10154 file_matcher parameter. Call also psymtab_to_fullname, after newly
10155 considering BASENAMES_MAY_DIFFER.
10156 * source.c (rewrite_source_path): Remove static.
10157 * source.h (rewrite_source_path): New declaration.
10158 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10159 the expand_symtabs_matching field. Comment it.
10160 * symtab.c (file_matches): New function comment. Add parameter
10161 basenames, implement it.
10162 (search_symbols_file_matches): Add basenames parameter. Update the
10163 file_matches caller.
10164 (search_symbols): Match FILES also against symtab_to_fullname.
10165 Optimize it for BASENAMES_MAY_DIFFER.
10167 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10169 * source.c (print_source_lines_base): Print for TUI also "fullname".
10170 * tui/tui-data.c (init_content_element): Change tui_locator_element
10171 field to full_name.
10172 * tui/tui-data.h (struct tui_locator_element): Likewise.
10173 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10174 tui_update_locator_filename calls to tui_update_locator_fullname.
10175 Replace symtab->filename refererence by symtab_to_fullname call.
10176 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10177 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10178 field to full_name. Replace symtab->filename refererence by
10179 symtab_to_fullname call.
10180 (tui_show_symtab_source): Rename parameter to fullname. Change
10181 tui_locator_element field to full_name.
10182 * tui/tui-stack.c: Include source.h.
10183 (tui_set_locator_filename): Rename the declaration to ...
10184 (tui_set_locator_fullname): ... here. Rename its parameter to
10185 fullname, updates its comment.
10186 (tui_set_locator_info): Rename its parameter to fullname.
10187 (tui_set_locator_filename): Rename the definition to ...
10188 (tui_set_locator_fullname): ... here. Rename its parameter to
10189 fullname, updates its comment. Change tui_locator_element field to
10191 (tui_set_locator_info): Rename its parameter to fullname.
10192 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10193 (tui_update_locator_filename): Rename to ...
10194 (tui_update_locator_fullname): ... here. Rename callee to
10195 tui_set_locator_fullname.
10196 (tui_show_frame_info): Replace symtab->filename refererence by
10197 symtab_to_fullname call.
10198 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10199 (tui_update_locator_fullname): ... here.
10200 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10201 tui_update_locator_fullname. Replace symtab->filename refererence by
10202 symtab_to_fullname call.
10203 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10204 Rename the callee to tui_update_locator_fullname.
10205 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10207 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10209 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10210 by symtab_to_filename_for_display calls.
10211 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10212 (clear_command): New variable sal_fullname, initialize it. Replace
10213 compare_filenames_for_search by filename_cmp with sal_fullname.
10214 (say_where, update_static_tracepoint): Replace symtab->filename
10215 refererences by symtab_to_filename_for_display calls.
10216 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10218 * dwarf2read.c: Include source.h.
10219 (fixup_go_packaging): Replace symtab->filename refererences by
10220 symtab_to_filename_for_display calls.
10221 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10222 Replace symtab->filename refererences by symtab_to_filename_for_display
10224 (create_sals_line_offset, convert_linespec_to_sals): New variable
10225 fullname, initialize it, replace symtab->filename reference by the
10227 * linux-fork.c: Include source.h.
10228 (info_checkpoints_command): Replace symtab->filename refererences by
10229 symtab_to_filename_for_display calls.
10230 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10231 by symtab_to_filename_for_display calls.
10232 * mdebugread.c: Include source.h.
10233 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10234 symtab_to_filename_for_display calls.
10235 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10236 (mi_cmd_file_list_exec_source_files): Likewise.
10237 * printcmd.c: Include source.h.
10238 (build_address_symbolic): Replace symtab->filename refererences by
10239 symtab_to_filename_for_display calls.
10240 * psymtab.c (partial_map_symtabs_matching_filename)
10241 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10242 with psymtab_to_fullname.
10243 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10244 by symtab_to_filename_for_display calls.
10245 (stpy_get_filename): New variable filename, initialize it, use instead
10246 of symtab->filename refererences.
10247 (salpy_str): Make variable filename const char *. Replace
10248 symtab->filename refererences by symtab_to_filename_for_display calls.
10249 * skip.c: Include source.h and filenames.h.
10250 (skip_file_command): Remove const from the symtab variable. Replace
10251 symtab->filename refererences by symtab_to_fullname call.
10252 (function_name_is_marked_for_skip): New variables searched_for_fullname
10253 and fullname. Use them to search also with symtab's fullname.
10254 * source.c (find_source_lines): Replace symtab->filename refererences
10255 by symtab_to_filename_for_display calls.
10256 (print_source_lines_base): New variable filename, use it instead of
10257 symtab->filename. Replace symtab->filename refererences by
10258 symtab_to_filename_for_display calls.
10259 (line_info, forward_search_command): Replace symtab->filename
10260 refererences by symtab_to_filename_for_display calls.
10261 (reverse_search_command): Replace symtab->filename refererences by
10262 symtab_to_filename_for_display calls. New variable filename for it.
10263 * stack.c (frame_info): Likewise.
10264 * symmisc.c: Include source.h.
10265 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10266 (maintenance_info_symtabs): Replace symtab->filename refererences by
10267 symtab_to_filename_for_display calls.
10268 * symtab.c (iterate_over_some_symtabs): Call
10269 compare_filenames_for_search also with symtab_to_fullname.
10270 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10271 symtab->filename refererences by symtab_to_filename_for_display calls.
10272 (find_line_symtab): Replace symtab->filename refererences by
10273 symtab_to_filename_for_display calls.
10274 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10275 (print_symbol_info): Make the last parameter const char *. New
10276 variable s_filename. Use it in the function.
10277 (symtab_symbol_info): Make the last_filename variable const char *.
10278 Replace symtab->filename refererences by symtab_to_filename_for_display
10280 (rbreak_command): New variable fullname. Use it. Replace
10281 symtab->filename refererence by symtab_to_filename_for_display call.
10282 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10283 (print_one_static_tracepoint_marker): Replace symtab->filename
10284 refererences by symtab_to_filename_for_display calls.
10285 * tui/tui-source.c (tui_set_source_content): New variables filename and
10286 s_filename. Replace symtab->filename refererences by this variable.
10287 Replace other symtab->filename refererences by
10288 symtab_to_filename_for_display calls.
10290 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10291 Jan Kratochvil <jan.kratochvil@redhat.com>
10293 Add a new variable that controls a way in which filenames are
10295 * NEWS (set filename-display): New entry.
10296 * source.c (filename_display_basename, filename_display_relative)
10297 (filename_display_absolute, filename_display_kind_names)
10298 (filename_display_string, show_filename_display_string)
10299 (symtab_to_filename_for_display): New.
10300 (_initialize_source): Added initialization of 'filename-display'
10302 * source.h (symtab_to_filename_for_display): Added declaration.
10303 * stack.c (print_frame): Added new variable and calling of a new
10304 function and condition with this variable. Changed third argument of
10305 calling of a function.
10307 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10309 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10310 Rename field reference filename to fullname.
10311 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10312 fullname. New comment for it.
10313 * tui/tui-source.c (tui_set_source_content): Rename field reference
10314 filename to fullname. Initialize field by symtab_to_fullname now.
10315 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10316 reference filename to fullname. Use symtab_to_fullname during
10319 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10322 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10323 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10324 filename to fullname. Rename variable this_name to this_fullname.
10325 Lowercase FILENAME_CMP call.
10326 (dw2_find_symbol_file): New comment for the returned string.
10327 (dwarf2_gdb_index_functions): Rename the function to
10328 dw2_expand_symtabs_with_fullname.
10329 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10330 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10332 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10333 * symfile.h (struct quick_symbol_functions): Rename field
10334 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10335 parameter filename to fullname. Document returned string meaning for
10337 * symtab.c (find_line_symtab): Rename the called function to
10338 expand_symtabs_with_fullname.
10340 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10343 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10344 call of filename_cmp with compare_filenames_for_search.
10345 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10346 is_abs, unify the call of FILENAME_CMP with
10347 compare_filenames_for_search. New gdb_asserts for real_path and name.
10348 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10349 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10350 * symfile.h (struct quick_symbol_functions): Extend the comment for
10351 map_symtabs_matching_filename.
10352 * symtab.c (compare_filenames_for_search): Remove the function comment
10353 relative path requirement. Handle absolute filenames, with a comment.
10354 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10355 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10356 real_path and name. Unify the call of compare_filenames_for_search
10358 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10360 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10363 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10364 source_file references by symtab field references. Remove variables
10366 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10367 (clear_command, say_where): Replace bp_location field source_file
10368 references by symtab field references.
10369 (bp_location_dtor): Remove the source_file reference.
10370 (update_static_tracepoint): Replace bp_location field source_file
10371 references by symtab field references.
10372 (breakpoint_free_objfile): New function.
10373 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10374 Replace the field source_file by field symtab, extend its comment.
10375 (breakpoint_free_objfile): New declaration.
10376 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10377 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10378 field source_file references by symtab field references.
10380 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10382 Replace xfullpath calls by gdb_realpath calls.
10383 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10385 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10386 Remove it from the iterate_over_some_symtabs call.
10387 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10388 Remove it from the dw2_map_expand_apply calls, remove a block handling
10390 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10391 Remove it from the iterate_over_some_symtabs call.
10392 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10393 Remove it from the partial_map_expand_apply calls, remove a block
10394 handling it. Drop gdb_realpath call and cleanups from the real_path
10396 * source.c (openp): Drop the comment part about xfullpath. Replace
10397 xfullpath calls by gdb_realpath calls.
10398 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10399 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10400 from method map_symtabs_matching_filename and its comment.
10401 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10403 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10404 remove it also from the function comment, remove a block handling it.
10405 Drop gdb_realpath call and cleanups from the real_path handling.
10406 (iterate_over_symtabs): Drop variable full_path and its use.
10407 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10408 * utils.c (xfullpath): Remove.
10409 * utils.h (xfullpath): Remove.
10411 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10413 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10414 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10415 (ALLDEPFILES): Add ppc64-tdep.c.
10416 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10417 ppc64-tdep.o to gdb_target_obs.
10418 * ppc64-tdep.h: New file.
10419 * ppc64-tdep.c: New file.
10420 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10421 ppc-linux-tdep.c to here.
10422 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10423 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10424 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10425 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10426 from ppc-linux-tdep.c to here.
10427 (ppc64_convert_from_func_ptr_addr): Rename from
10428 ppc64_linux_convert_from_func_ptr_addr to
10429 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10432 (read_insn): Move from ppc-linux-tdep.c to here.
10433 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10434 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10435 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10436 Removed above functions.
10437 (ppc_linux_init_abi): Adjust.
10439 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10441 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10443 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10445 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10447 2013-02-01 Pedro Alves <palves@redhat.com>
10449 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10450 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10452 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10454 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10455 files with no separate debug info.
10456 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10457 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10458 only for files with no separate debug info.
10460 2013-01-31 Tom Tromey <tromey@redhat.com>
10462 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10464 (struct jit_program_space_data): Rename from jit_inferior_data.
10466 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10467 Change return type. Attach data to program space.
10468 (jit_program_space_data_cleanup): Rename from
10469 jit_inferior_data_cleanup; change argument type.
10470 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10472 (jit_register_code): Update.
10473 (jit_update_inferior_cache): Remove.
10474 (jit_breakpoint_deleted): Get jit data from the location's program
10476 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10477 'ps_data', change type.
10478 (jit_inferior_init, jit_breakpoint_re_set_internal)
10479 (jit_event_handler): Update.
10480 (free_objfile_data): Get data from objfile's program space.
10481 (_initialize_jit): Update.
10483 2013-01-31 Tom Tromey <tromey@redhat.com>
10486 * jit.c (struct jit_inferior_data) <cached_code_address,
10487 jit_breakpoint>: New fields.
10488 (jit_breakpoint_re_set_internal): Fix logging. Only create
10489 breakpoint if cached address has changed.
10490 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10492 (_initialize_jit): Register breakpoint deleted observer.
10494 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10496 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10497 (save_infcall_suspend_state): Ifdef out unused inf.
10498 (restore_infcall_suspend_state): Ifdef out unused inf.
10499 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10500 (jit_frame_sniffer): Remove unused inf_data.
10502 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10504 * c-exp.y (classify_inner_name): Remove unused type.
10505 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10506 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10508 (c_get_string): Remove unused kind.
10509 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10511 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10513 * charset.c (intermediate_encoding): Remove unused i.
10514 * completer.c (signal_completer): Remove unused i.
10515 * continuations.c (discard_my_continuations_1): Remove unused
10517 * corelow.c (core_close): Remove unuseD name.
10518 (get_core_siginfo): Remove unused pid.
10519 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10521 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10522 (loclist_describe_location): Remove unused first.
10523 * event-top.c (command_line_handler): Remove unused got_eof.
10524 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10525 (resize_section_table): Remove unused old_value.
10526 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10527 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10528 * i386-tdep.c (i386_process_record): Remove unused rex.
10529 * infcmd.c (get_return_value): Remove unused uiout.
10530 * jv-lang.c (type_from_class): Remove unused is_array.
10531 * jv-valprint.c (java_val_print): Remove unused i.
10532 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10533 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10534 * m2-typeprint.c (m2_print_type): Remove unused code.
10535 * macroexp.c (get_character_constant): Remove unused body_start.
10536 (macro_stringify): Remove unused result.
10537 * objc-lang.c (find_methods): Remove unused gdbarch.
10538 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10539 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10540 * stack.c (print_frame_args): Remove unused summary.
10541 * thread.c (thread_apply_command): Remove unused p.
10542 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10543 * valops.c (search_struct_method): Remove unused skip.
10544 * valprint.c (generic_val_print): Remove unused byte_order.
10545 * varobj.c (varobj_update): Remove unused changed.
10546 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10547 (alias_command): Remove unused c.
10548 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10549 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10551 (mi_cmd_data_write_memory): Remove unused word_format.
10552 (mi_cmd_data_write_memory_bytes): Remove unused r.
10553 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10555 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10556 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10559 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10561 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10562 * symtab.c (iterate_over_symtabs): Remove unused s.
10563 (find_pc_sect_symtab): Remove unused pspAce.
10564 (find_pc_sect_line): Remove unused alt_symtab.
10565 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10566 (completion_list_add_name): Remove unused newsize.
10568 2013-01-31 Tom Tromey <tromey@redhat.com>
10571 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10574 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10576 * target.c (target_read_string): Remove unused origlen.
10578 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10580 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10581 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10582 * ax-general.c (ax_print): Remove unused is_float.
10583 * blockframe.c (block_innermost_frame): Remove unused start, end.
10584 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10586 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10588 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10589 (svr4_read_so_list): Remove unused lmo.
10590 * solib-target.c (solib_target_relocate_section_addresses): Remove
10593 2013-01-30 Tom Tromey <tromey@redhat.com>
10595 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10597 2013-01-30 Tom Tromey <tromey@redhat.com>
10599 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10600 * utils.c (gnu_debuglink_crc32): Remove.
10601 * utils.h (gnu_debuglink_crc32): Don't declare.
10603 2013-01-30 Tom Tromey <tromey@redhat.com>
10605 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10606 (read_structure_type, read_enumeration_type): Remove cast.
10608 2013-01-30 Tom Tromey <tromey@redhat.com>
10610 * dwarf2read.c (read_namespace_type): Remove cast.
10611 (read_typedef): Likewise.
10613 2013-01-29 Tom Tromey <tromey@redhat.com>
10615 * dwarf2read.c (free_dwo_file): Remove assert.
10617 2013-01-29 Tom Tromey <tromey@redhat.com>
10619 * value.c (deprecated_set_value_modifiable): Remove.
10620 * value.h (deprecated_set_value_modifiable): Remove.
10622 2013-01-28 Doug Evans <dje@google.com>
10624 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10625 to addresses from dwo files.
10627 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10629 * valops.c (find_overload_match): Remove unused argument 'lax'.
10630 * value.h: Remove unused argument 'lax' from the declaration of
10631 find_overload_match.
10632 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10633 to find_overload_match.
10634 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10635 argument to find_overload_match.
10637 2013-01-25 Tom Tromey <tromey@redhat.com>
10639 * dwarf2read.c (processing_has_namespace_info): Remove.
10640 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10641 (process_die, read_func_scope, dwarf2_start_symtab)
10642 (new_symbol_full): Update.
10644 2013-01-25 Tom Tromey <tromey@redhat.com>
10646 * cp-namespace.c (cp_set_block_scope): Remove.
10647 * cp-support.h (cp_set_block_scope): Remove.
10648 * dbxread.c: Include block.h.
10649 (cp_set_block_scope): New function.
10650 (process_one_symbol): Update.
10651 * dwarf2read.c (read_func_scope): Use block_set_scope.
10653 2013-01-25 Pedro Alves <palves@redhat.com>
10655 * remote.c (add_current_inferior_and_thread): Tweak comment.
10657 2013-01-25 Tom Tromey <tromey@redhat.com>
10659 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10660 (cp_add_using_directive): Add 'copy_names' argument.
10661 * cp-support.h (cp_add_using_directive): Update.
10662 (struct using_direct) <import_src, import_dest, alias,
10663 declaration>: Now const.
10664 * dwarf2read.c (read_import_statement): Use obconcat.
10665 Don't copy names passed to cp_add_using_directive.
10667 2013-01-25 Tom Tromey <tromey@redhat.com>
10669 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10671 2013-01-25 Pedro Alves <palves@redhat.com>
10673 * remote.c (stop_reply_extract_thread): New.
10674 (add_current_inferior_and_thread): New parameter 'wait_status'.
10676 (remote_start_remote): Pass wait status to
10677 add_current_inferior_and_thread.
10678 (extended_remote_run): Update comment.
10679 (extended_remote_create_inferior_1): Pass wait status to
10680 add_current_inferior_and_thread.
10682 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
10683 Ulrich Weigand <uweigand@de.ibm.com>
10685 * valarith.c (value_vector_widen): New function for replicating a
10686 scalar into a vector.
10687 (value_binop): Use value_vector_widen to widen scalar to vector
10688 rather than casting, this better matches gcc C behaviour.
10689 * valops.c (value_casst): Update logic for casting between vector
10690 types, and for casting from scalar to vector, try to match gcc C
10692 * value.h (value_vector_widen): Declare.
10693 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10694 function, handle special case for casting scalar to vector.
10695 (opencl_relop): Use opencl_value_cast.
10696 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10697 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10698 in order to use opencl_value_cast.
10700 2013-01-25 Yao Qi <yao@codesourcery.com>
10702 * event-loop.c: Include "queue.h".
10703 (gdb_event_p): New typedef.
10704 (DECLARE_QUEUE_P): Use.
10705 (DEFINE_QUEUE_P): Use.
10706 (async_queue_event): Remove.
10707 (gdb_event_xfree): New.
10708 (initialize_event_loop): New.
10709 (process_event): Use QUEUE macros.
10710 (event_queue): Remove.
10711 (gdb_wait_for_event): Caller update.
10712 (check_async_event_handlers): Likewise.
10713 (poll_timers): Likewise.
10714 * event-loop.h (initialize_event_loop): Declare.
10715 * event-loop.c (gdb_event_xfree): New.
10716 * top.c (gdb_init): Call initialize_event_loop.
10718 2013-01-25 Yao Qi <yao@codesourcery.com>
10720 * event-loop.c (async_queue_event): Remove one parameter
10721 'position'. Remove code handling 'position' == TAIL.
10722 (gdb_wait_for_event): Caller update.
10723 (check_async_event_handlers): Caller update.
10724 (poll_timers): Caller update.
10725 * event-loop.h (enum queue_position): Remove.
10727 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10729 * MAINTAINERS: Update my email.
10731 2013-01-25 Yao Qi <yao@codesourcery.com>
10733 * main.c (print_gdb_help): Remove "--epoch" from the help
10736 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
10738 * symtab.c (skip_prologue_using_sal): Consider a file
10739 change the same as an increased line number
10741 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10743 * MAINTAINERS (Write After Approval): Add myself to the list.
10745 2013-01-24 Tom Tromey <tromey@redhat.com>
10747 * ada-lang.h (ada_decode_symbol): Make return type const.
10748 * ada-lang.c (ada_decode_symbol): Likewise.
10750 2013-01-23 Doug Evans <dje@google.com>
10752 * linespec.c (find_linespec_symbols): Make static.
10754 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10756 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10757 type on float conversion for complex type.
10759 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10761 Add a new class gdb.Architecture which exposes GDB's
10762 internal representation of architecture via GDB Python API.
10763 * Makefile.in: Add entries corresponding to the new file
10765 * NEWS (Python Scripting): Add entries for the new class
10766 gdb.Architecture and the new method gdb.Frame.architecture.
10767 * python/py-arch.c: Implement gdb.Architecture class.
10768 * python/py-frame.c (frapy_arch): Implement the method
10769 gdb.Frame.architecture().
10770 (frame_object_methods): Add 'architecture' to the method table.
10771 * python/python-internal.h: Add declarations of new utility
10773 * python/python.c (_initialize_python): Initialize
10774 gdb.Architecture class.
10776 2013-01-23 Doug Evans <dje@google.com>
10778 Work around binutils/15021.
10779 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10780 type_unit_group out of union s. All uses updated.
10781 (read_index_from_section): Watch for index version 8.
10782 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10783 an imported symtab.
10784 (write_psymtabs_to_index): Increment version number to 8.
10786 2013-01-22 Pedro Alves <palves@redhat.com>
10788 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10791 2013-01-22 Pedro Alves <palves@redhat.com>
10793 * annotate.c (annotate_breakpoints_changed): Rename to ...
10794 (annotate_breakpoints_invalid): ... this. Make static.
10795 (breakpoint_changed): Adjust.
10796 (_initialize_annotate): Always install the observers. Install a
10797 "breakpoint_created" observer.
10798 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10799 * breakpoint.c (set_breakpoint_condition)
10800 (breakpoint_set_commands, do_map_commands_command)
10801 (init_raw_breakpoint, clear_command, set_ignore_count)
10802 (enable_breakpoint_disp): No longer call
10803 annotate_breakpoints_changed.
10805 2013-01-22 Pedro Alves <palves@redhat.com>
10807 * annotate.c: Include "inferior.h".
10808 (frames_invalid_emitted)
10809 (breakpoints_invalid_emitted): New globals.
10810 (async_background_execution_p): New function.
10811 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10812 emitting the annotation if it has already been emitted.
10813 (annotate_display_prompt): New function.
10814 * annotate.h (annotate_display_prompt): New declaration.
10815 * event-top.c: Include annotate.h.
10816 (display_gdb_prompt): Call annotate_display_prompt.
10818 2013-01-22 Pedro Alves <palves@redhat.com>
10820 * annotate.c (ignore_count_changed): Delete.
10821 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10822 (annotate_ignore_count_change): Delete.
10823 (annotate_stopped): Don't emit a delayed breakpoints-changed
10825 * annotate.h (annotate_ignore_count_change): Delete.
10826 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10827 annotate_ignore_count_change.
10829 2013-01-22 Tom Tromey <tromey@redhat.com>
10831 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10832 require_rvalue for a register location.
10834 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10836 * breakpoint.c (print_one_breakpoint_location): Add MI
10837 field 'thread-groups' when printing a breakpoint.
10838 (output_thread_groups): New function.
10840 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10842 * python/lib/gdb/commands/explore.py
10843 (CompoundExplorer.explore_expr): Correct the name of a method
10845 (ExploreTypeCommand.invoke): Add a missing 'return'.
10847 2013-01-21 Tom Tromey <tromey@redhat.com>
10849 * gdb_obstack.h (obconcat): Move declaration here, from...
10850 * symfile.h (obconcat): ... here.
10851 * gdb_obstack.c: New file.
10852 (obconcat): Move from...
10853 * symfile.c (obconcat): ... here.
10854 * Makefile.in (SFILES): Add gdb_obstack.c.
10855 (COMMON_OBS): Add gdb_obstack.o.
10857 2013-01-21 Tom Tromey <tromey@redhat.com>
10859 * symfile.h (obsavestring): Don't declare.
10860 * symfile.c (obsavestring): Remove.
10861 * ada-exp.y: Use obstack_copy0, not obsavestring.
10862 * ada-lang.c: Use obstack_copy0, not obsavestring.
10863 * coffread.c: Use obstack_copy0, not obsavestring.
10864 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10865 * dbxread.c: Use obstack_copy0, not obsavestring.
10866 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10867 * jit.c: Use obstack_copy0, not obsavestring.
10868 * mdebugread.c: Use obstack_copy0, not obsavestring.
10869 * psymtab.c: Use obstack_copy0, not obsavestring.
10870 * stabsread.c: Use obstack_copy0, not obsavestring.
10871 * xcoffread.c: Use obstack_copy0, not obsavestring.
10873 2013-01-21 Tom Tromey <tromey@redhat.com>
10875 * dwarf2read.c (fixup_go_packaging): Save package name
10876 on objfile obstack.
10877 * gdbtypes.c (init_type): Don't copy name.
10879 2013-01-21 Tom Tromey <tromey@redhat.com>
10881 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10883 (struct attribute) <u.str>: Now const.
10884 (struct fnfieldlist) <name>: Now const.
10885 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10886 (partial_die_parent_scope): Make return type const.
10887 (partial_die_full_name, add_partial_symbol): Update.
10888 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10890 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10891 (read_file_scope, read_func_scope, dwarf2_add_field)
10892 (dwarf2_add_member_fn, read_structure_type)
10893 (process_enumeration_scope, read_array_type, read_module_type)
10894 (read_base_type, read_subrange_type): Update.
10895 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10896 (new_symbol_full, guess_full_die_structure_name): Update.
10897 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10898 (dwarf2_name): Return const type.
10899 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10902 2013-01-21 Tom Tromey <tromey@redhat.com>
10904 * gdbtypes.c (init_type): Make 'name' const.
10905 * gdbtypes.h (init_type): Update.
10907 2013-01-21 Tom Tromey <tromey@redhat.com>
10909 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10910 (start_symtab): Make 'name' and 'dirname' const. Use
10911 set_last_source_file.
10912 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10913 (last_source_file): Define. Now static.
10914 (set_last_source_file, get_last_source_file): New functions.
10915 * buildsym.h (last_source_file): Don't declare.
10916 (start_symtab): Update.
10917 (set_last_source_file, get_last_source_file): Declare.
10918 * coffread.c (complete_symtab): Use set_last_source_file.
10919 (coff_end_symtab): Likewise.
10920 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10921 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10922 set_last_source_file.
10923 (process_one_symbol): Use get_last_source_file.
10924 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10925 (psymtab_to_symtab_1): Use get_last_source_file.
10926 * xcoffread.c (process_linenos): Use get_last_source_file.
10927 (complete_symtab): Use set_last_source_file.
10928 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10929 (scan_xcoff_symtab): Use set_last_source_file.
10931 2013-01-21 Tom Tromey <tromey@redhat.com>
10933 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10934 (symbol_set_names): Remove casts. Handle field const-ness.
10936 2013-01-21 Tom Tromey <tromey@redhat.com>
10938 * dwarf2read.c (new_symbol_full): Remove cast.
10939 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10940 * symtab.h (symbol_set_demangled_name): Update.
10942 2013-01-21 Tom Tromey <tromey@redhat.com>
10944 * main.c (captured_main): Call bfd_init.
10946 2013-01-21 Tom Tromey <tromey@redhat.com>
10948 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10949 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10950 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10953 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10955 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10957 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10959 Fix gdb.fortran/common-block.exp crash in PIE mode.
10960 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10962 * f-valprint.c (info_common_command_for_block): Expect
10963 LOC_COMMON_BLOCK in gdb_assert.
10964 * symtab.h (struct general_symbol_info): Update comment for the
10965 common_block member.
10966 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10967 (enum address_class): New member LOC_COMMON_BLOCK.
10969 2013-01-18 David Blaikie <dblaikie@gmail.com>
10971 * MAINTAINERS (Write After Approval): Add "David Blaikie".
10973 2013-01-18 Tom Tromey <tromey@redhat.com>
10976 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10977 Call require_rvalue.
10979 2013-01-18 Yao Qi <yao@codesourcery.com>
10981 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10982 (dbx_read_symtab): New declaration.
10983 (dbx_psymtab_to_symtab): Delete.
10984 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10985 Rename parameter PST to SELF. Exchanged two parameters.
10986 (start_psymtab): Caller update.
10987 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10988 (dwarf2_read_symtab): New declaration.
10989 (dwarf2_psymtab_to_symtab): Delete.
10990 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10991 Rename parameter PST to SELF. Exchanged two parameters.
10992 (create_partial_symtab): Caller update.
10993 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10994 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10995 Rename parameter PST to SELF. Exchanged two parameters.
10996 (parse_partial_symbols, new_psymtab): Caller update.
10997 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10999 * psymtab.c (psymtab_to_symtab): Caller update.
11000 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11001 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11002 Rename parameter PST to SELF. Exchanged two parameters.
11003 (xcoff_start_psymtab): Caller update.
11005 2013-01-18 Yao Qi <yao@codesourcery.com>
11007 * infrun.c (proceed): Rename local variable 'oneproc' to
11010 2013-01-17 Doug Evans <dje@google.com>
11012 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11013 (dw2_build_type_unit_groups): Delete. All uses updated.
11015 * symtab.h (struct symbol_search): Add comment.
11017 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11019 * symtab.c (compare_filenames_for_search): New comment for
11022 2013-01-17 Tom Tromey <tromey@redhat.com>
11024 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11026 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11028 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11029 initialize it by existing make_cleanup. Call new do_cleanups.
11031 2013-01-17 Tom Tromey <tromey@redhat.com>
11033 * cp-abi.c (cp_abi_completer): New function.
11034 (_initialize_cp_abi): Set completer for "set cp-abi".
11036 2013-01-17 Tom Tromey <tromey@redhat.com>
11038 * mem-break.c: Remove obsolete comment.
11039 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11041 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11043 * jit.c (jit_reader_load_command): Interpret the jit reader name
11044 as an absolute path if it begins with a forward slash.
11046 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11050 * jit.c (finalize_symtab): Ensure that only the global block has a
11053 2013-01-17 Pedro Alves <palves@redhat.com>
11055 * acinclude.m4: Include ../config/plugins.m4,
11056 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11057 * Makefile.in (aclocal_m4_deps): Update.
11058 * aclocal.m4: Renegerate.
11060 2013-01-16 Doug Evans <dje@google.com>
11062 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11064 2013-01-16 Pedro Alves <palves@redhat.com>
11065 Tom Tromey <tromey@redhat.com>
11068 * NEWS: Add "catch signal".
11069 * breakpoint.c (base_breakpoint_ops): No longer static.
11070 (bpstat_explains_signal): New function.
11071 (init_catchpoint): No longer static.
11072 (base_breakpoint_explains_signal): New function.
11073 (base_breakpoint_ops): Initialize new field.
11074 * breakpoint.h (enum bpstat_signal_value): New.
11075 (struct breakpoint_ops) <explains_signal>: New field.
11076 (bpstat_explains_signal): Remove macro, declare as function.
11077 (base_breakpoint_ops, init_catchpoint): Declare.
11078 * break-catch-sig.c: New file.
11079 * inferior.h (signal_catch_update): Declare.
11080 * infrun.c (signal_catch): New global.
11081 (handle_syscall_event): Update for change to
11082 bpstat_explains_signal.
11083 (handle_inferior_event): Likewise. Always handle random signals
11085 (signal_cache_update): Check signal_catch.
11086 (signal_catch_update): New function.
11087 (_initialize_infrun): Initialize signal_catch.
11088 * Makefile.in (SFILES): Add break-catch-sig.c.
11089 (COMMON_OBS): Add break-catch-sig.o.
11091 2013-01-16 Tom Tromey <tromey@redhat.com>
11093 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11094 (print_one_catch_solib, print_one_catch_syscall)
11095 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11098 2013-01-16 Yao Qi <yao@codesourcery.com>
11100 * printcmd.c (current_display_number): Make it static.
11102 2013-01-16 Yao Qi <yao@codesourcery.com>
11104 * infcmd.c (step_once): Don't check '!single_inst' as it was
11107 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11109 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11111 2013-01-14 Tom Tromey <tromey@redhat.com>
11113 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11115 * command.h (add_setshow_string_noescape_cmd): Update.
11116 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11117 (complete_set_gnutarget): New function.
11118 (_initialize_core): Set the "set gnutarget" completer.
11120 2013-01-14 Tom Tromey <tromey@redhat.com>
11123 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11124 (c_type_print_modifier): Likewise.
11125 * dwarf2read.c (read_tag_restrict_type): New function.
11126 (read_type_die_1): Handle DW_TAG_restrict_type.
11127 * gdbtypes.c (make_restrict_type): New function.
11128 (recursive_dump_type): Handle TYPE_RESTRICT.
11129 * gdbtypes.h (enum type_flag_values): Renumber.
11130 (enum type_instance_flag_value): Add
11131 TYPE_INSTANCE_FLAG_RESTRICT.
11132 (TYPE_RESTRICT): New macro.
11133 (make_restrict_type): Declare.
11135 2013-01-14 Tom Tromey <tromey@redhat.com>
11138 * psymtab.c (struct psymtab_state): New.
11139 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11141 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11142 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11144 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
11145 Pedro Alves <palves@redhat.com>
11149 * remote.c (remote_threads_info): Make a copy of the reply from
11150 qfThreadInfo and use that instead of rs->buf.
11152 2013-01-14 Yao Qi <yao@codesourcery.com>
11154 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11155 (dbx_psymtab_to_symtab): Likewise.
11156 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11157 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11158 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11160 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11162 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11163 make_cleanup_restore_current_language. Call set_language. Move
11164 OLD_CHAIN and INNER_CHAIN cleanups.
11165 * utils.c (do_restore_current_language)
11166 (make_cleanup_restore_current_language): New functions.
11167 * utils.h (make_cleanup_restore_current_language): New declaration.
11169 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11171 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11172 non-existing files.
11174 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11175 non-existing files if FILENAME is already absolute.
11177 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11179 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11180 fputs_filtered. Append trailing newline.
11182 2013-01-11 Yao Qi <yao@codesourcery.com>
11183 Stan Shebs <stan@codesourcery.com>
11185 * psymtab.c (init_psymbol_list): Clarify the comment.
11187 2013-01-11 Yao Qi <yao@codesourcery.com>
11189 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11190 (update_dprintf_command_list): Assert that 'printf_line' is
11191 non-null. Remove condition check.
11193 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11196 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11198 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11200 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11202 2013-01-09 Anthony Green <green@moxielogic.com>
11204 * cp-abi.c (cplus_print_vtable): Don't return value from void
11206 * ada-lang.c (re_set_catch_assert): Ditto.
11208 2013-01-09 Doug Evans <dje@google.com>
11210 * symfile.h (quick_symbol_functions): Delete member
11211 pre_expand_symtabs_matching. All uses removed.
11212 * dwarf2read.c (dw2_lookup_symbol): Implement.
11213 (dw2_do_expand_symtabs_matching): Delete.
11214 (dw2_pre_expand_symtabs_matching): Delete.
11215 (struct dw2_symtab_iterator): New type.
11216 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11217 (dw2_expand_symtabs_for_function): Rewrite.
11218 (dwarf2_gdb_index_functions): Update.
11219 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11220 (psym_functions): Update.
11222 2013-01-09 Tom Tromey <tromey@redhat.com>
11224 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11225 * configure: Rebuild.
11226 * configure.ac: Add somread.o to the build if BFD has SOM
11228 * somread.c: Include som/aout.h, not syms.h.
11229 (som_symtab_read): Use som_external_symbol_dictionary_record.
11230 Unpack records manually.
11231 (_initialize_somread): Declare.
11233 2012-01-08 Mike Frysinger <vapier@gentoo.org>
11235 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11236 Cast return_address to 64bits.
11238 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
11240 * printcmd.c: Remove define of function output_command.
11241 * tracepoint.c: Remove extern of function output_command.
11242 * valprint.h: (output_command): New extern.
11244 2013-01-07 Tom Tromey <tromey@redhat.com>
11246 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11248 (objc_language_defn): Use c_printchar, c_printstr,
11251 2013-01-07 Tom Tromey <tromey@redhat.com>
11255 * ada-valprint.c (printstr, print_field_values): Remove
11257 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11259 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11261 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11262 * main.c (captured_main): Remove "epoch" argument.
11263 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11264 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11265 * p-valprint.c (pascal_object_print_value_fields): Remove
11267 * printcmd.c (print_command_1): Remove 'inspect' argument.
11268 (print_command, call_command): Update.
11269 (inspect_command): Remove.
11270 (_initialize_printcmd): Make "inspect" an alias for "print".
11271 * top.c (epoch_interface): Remove.
11272 * top.h (epoch_interface): Remove.
11273 * valprint.c (user_print_options): Update.
11274 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11275 * valprint.h (struct value_print_options) <inspect_it>: Remove
11278 2013-01-04 Tom Tromey <tromey@redhat.com>
11280 * valprint.h (read_string): Add 'extern'.
11282 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11284 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11285 used to decide whether to define darwin_read_dyld_info or not.
11287 2013-01-03 Pierre Muller <muller@sourceware.org>
11289 * main.c (relocate_gdb_directory): Avoid calling stat function
11292 2013-01-03 Yao Qi <yao@codesourcery.com>
11294 * psymtab.c (fixup_psymbol_section): Update declaration.
11295 (fixup_psymbol_section): Remove code returning value.
11297 2013-01-03 Yao Qi <yao@codesourcery.com>
11299 * symtab.h: Remove some out of date comments.
11300 (enum exception_event_kind): Move it ...
11301 * breakpoint.c: ... here.
11303 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11306 * darwin-nat.c (darwin_read_dyld_info): Only build if
11307 TASK_DYLD_INFO_COUNT is defined.
11308 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11309 TASK_DYLD_INFO_COUNT is defined.
11311 2013-01-02 Tom Tromey <tromey@redhat.com>
11313 * symfile.h (struct ecoff_debug_hack): Remove.
11314 * objfiles.c: Don't include mdebugread.h.
11316 2013-01-02 Tom Tromey <tromey@redhat.com>
11318 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11319 * configure.ac: Check for Mach-O support in BFD. Update
11321 * configure: Rebuild.
11323 2013-01-02 Tom Tromey <tromey@redhat.com>
11325 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11326 * configure.ac: Use GDB_AC_CHECK_BFD.
11327 * configure: Rebuild.
11329 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11331 * MAINTAINERS: Update my email.
11333 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11335 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11337 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11339 * rs6000-nat.c (bss_data_overlap): New function.
11340 (vmap_symtab): Use it to adjust the .bss section's offset.
11342 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11344 Update year range in copyright notice of all files.
11346 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11348 * top.c (print_gdb_version): Update copyright year.
11350 For older changes see ChangeLog-2012.
11356 version-control: never