23a216266509a7b948cd2fd60f1f9dcdcbe67261
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
2
3 * exec.h (add_target_sections_of_objfile): New declaration.
4 * exec.c (add_target_sections_of_objfile): New function.
5 * symfile.c (add_symbol_file_command): Update current target sections.
6 (remove_symbol_file_command): New command.
7 (symfile_free_objfile): New function.
8 (_initialize_symfile): Register observer for free_objfile events.
9 * NEWS: Add description of the remove-symbol-file command.
10 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
11 * objfiles.c (free_objfile): Notify free_objfile.
12 (is_addr_in_objfile): New function.
13 * objfiles.h (is_addr_in_objfile): New declaration.
14 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
15 events instead of solib_unloaded events.
16 (_initialize_printcmd): Register observer for free_objfile instead
17 of solib_unloaded notifications.
18 * solib.c (remove_user_added_objfile): New function.
19 (_initialize_symfile): Add remove-symbol-file.
20
21 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
22
23 * infcmd.c (default_print_one_register_info): Use val_print to
24 print all values even optimized out or unavailable ones. Don't
25 try to print a raw form of optimized out or unavailable values.
26
27 2013-10-29 Yao Qi <yao@codesourcery.com>
28
29 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
30 parameter 'arg' instead of from program_space_data.
31 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
32 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
33 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
34 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
35 * inflow.c (inflow_inferior_data_cleanup): Get data from
36 parameter 'arg' instead of inferior_data.
37 * registry.h: Add comments.
38
39 2013-10-28 Pedro Alves <palves@redhat.com>
40
41 * breakpoint.c (watchpoints_triggered)
42 <!target_stopped_data_address>: Hardcode return 1.
43
44 2013-10-28 Pedro Alves <palves@redhat.com>
45
46 * infrun.c (process_event_stop_test): Remove unnecessary scoping
47 level and reindent.
48
49 2013-10-28 Pedro Alves <palves@redhat.com>
50
51 * infrun.c (process_event_stop_test): New function, factored out
52 from handle_inferior_event.
53 (handle_inferior_event): 'process_event_stop_test' is now a
54 function instead of a goto label -- adjust.
55
56 2013-10-28 Pedro Alves <palves@redhat.com>
57
58 * infrun.c (handle_inferior_event): Move process_event_stop_test
59 goto label to the else branch of the ecs->random_signal check,
60 along with FRAME and GDBARCH re-fetching.
61
62 2013-10-28 Pedro Alves <palves@redhat.com>
63
64 * infrun.c (switch_back_to_stepped_thread): New function, factored
65 out from handle_inferior_event.
66 (handle_inferior_event): Adjust to call
67 switch_back_to_stepped_thread. Call it also at the tail of the
68 random signal handling, and return, instead of also handling
69 random signals just before the stepping tests.
70
71 2013-10-28 Pedro Alves <palves@redhat.com>
72
73 * infrun.c (clear_stop_func): Delete.
74 (handle_inferior_event): Don't call clear_stop_func and don't
75 clear 'ecs->random_signal'.
76
77 2013-10-27 Yao Qi <yao@codesourcery.com>
78
79 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
80 (varobj_create, varobj_get_path_expr): Update.
81 (varobj_value_has_mutated, varobj_update): Likewise.
82 (create_child_with_value, new_root_variable): Likewise.
83 (number_of_children, name_of_variable): Likewise.
84 (value_of_child, my_value_of_variable): Likewise.
85 (varobj_value_is_changeable_p): Likewise.
86
87 2013-10-25 Yao Qi <yao@codesourcery.com>
88
89 * language.h (struct lang_varobj_ops): Declare.
90 (struct language_defn) <la_varobj_ops>: New field.
91 * ada-lang.c: Include "varobj.h"
92 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
93 ada_varobj_ops.
94 * c-lang.c: Include "varobj.h"
95 (c_language_defn): Initialize field 'la_varobj_ops' with
96 c_varobj_ops.
97 (cplus_language_defn): Initialize field 'la_varobj_ops' with
98 cplus_varobj_ops.
99 (asm_language_defn): Initialize field 'la_varobj_ops' with
100 default_varobj_ops.
101 (minimal_language_defn): Likewise.
102 * d-lang.c (d_language_defn): Likewise.
103 * f-lang.c (f_language_defn): Likewise.
104 * go-lang.c (go_language_defn): Likewise.
105 * m2-lang.c (m2_language_defn): Likewise.
106 * objc-lang.c (objc_language_defn): Likewise.
107 * opencl-lang.c (opencl_language_defn): Likewise.
108 * p-lang.c (pascal_language_defn): Likewise.
109 * language.c (unknown_language_defn): Likewise.
110 (auto_language_defn): Likewise.
111 (local_language_defn): Likewise.
112 * jv-lang.c (java_language_defn): Initialize field
113 'la_varobj_ops' with java_varobj_ops.
114 * varobj.c (varobj_create): Update.
115 * varobj.h (default_varobj_ops): Define macro.
116
117 2013-10-25 Pedro Alves <palves@redhat.com>
118
119 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
120 static field value.
121 (cp_print_static_field): If the value is entirely optimized out,
122 print <optimized out> here.
123 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
124 static field value.
125 * p-valprint.c (pascal_object_print_static_field): If the value is
126 entirely optimized out, print <optimized out> here.
127 * valops.c (do_search_struct_field)
128 (value_struct_elt_for_reference): No longer handle a NULL static
129 field value.
130 * value.c (value_static_field): Return an optimized out value
131 instead of NULL.
132
133 2013-10-25 Yao Qi <yao@codesourcery.com>
134
135 * remote.c (remote_traceframe_info): Return early if
136 traceframe is not selected.
137
138 2013-10-25 Yao Qi <yao@codesourcery.com>
139
140 * tracepoint.c (traceframe_fun): Remove.
141 (traceframe_sal): Remove.
142 (set_traceframe_context): Add local variables.
143
144 2013-10-25 Joel Brobecker <brobecker@adacore.com>
145
146 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
147 and parameter name.
148
149 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
150
151 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
152 failure from register information collection.
153
154 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
155
156 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
157 member.
158 (linux_corefile_thread_callback): Update accordingly.
159 (linux_make_corefile_notes): Likewise.
160
161 2013-10-24 Pedro Alves <palves@redhat.com>
162
163 * NEWS (New options): Mention set/show startup-with-shell.
164 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
165 instead of 3.
166 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
167 startup-with-shell'.
168 (show_startup_with_shell): New function.
169 (_initialize_fork_child): Register the set/show startup-with-shell
170 commands.
171 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
172 * inf-ttrace.c (inf_ttrace_him): Remove comment.
173 * procfs.c (procfs_init_inferior): Remove comment.
174 * infcmd.c (startup_with_shell): New global.
175 * inferior.h (startup_with_shell): Declare global.
176 (STARTUP_WITH_SHELL): Delete.
177 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
178
179 2013-10-23 Pedro Alves <palves@redhat.com>
180
181 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
182 * common/signals.c: Include "gdb_assert.h".
183 (signals): New field 'symbol'.
184 (SET): Use the 'symbol' parameter.
185 (gdb_signal_to_symbol_string): New function.
186 * infrun.c (handle_inferior_event) <random signal>: In debug
187 output, print the random signal enum as string in addition to its
188 number.
189 * target/waitstatus.c (target_waitstatus_to_string): Print the
190 signal's enum value as string instead of the (POSIX) signal name.
191
192 2013-10-23 Gary Benson <gbenson@redhat.com>
193
194 PR 16013
195 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
196 from 32 to 18. Adjusted fscanf format string accordingly.
197 (Avoids leaving cmd unterminated.)
198 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
199 trun, retn or extra. (Avoids leaving extra unterminated.) Check
200 that local_address and remote_address will not overflow.
201 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
202 leaving dependencies unterminated. Parse size as "%u" to match
203 definition.
204
205 2013-10-22 Pedro Alves <palves@redhat.com>
206
207 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
208 set ecs->random signal.
209
210 2013-10-22 Pedro Alves <palves@redhat.com>
211
212 * infrun.c (keep_going): Update comments.
213
214 2013-10-22 Pedro Alves <palves@redhat.com>
215
216 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
217 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
218
219 2013-10-22 Pedro Alves <palves@redhat.com>
220
221 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
222 GDB_EXC_BAD_ACCESS.
223 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
224 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
225 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
226 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
227 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
228 (GDB_SIGNAL_LAST): Change description string.
229 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
230 Adjust to signal renaming.
231 * darwin-nat.c (darwin_decode_message): Likewise.
232
233 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
234
235 * MAINTAINERS (Write After Approval): Add myself to the list.
236
237 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
238
239 * breakpoint.c (update_watchpoint): If hardware watchpoints are
240 forced off, downgrade them to software watchpoints if possible,
241 and error out if not possible.
242 (watch_command_1): Move watchpoint type selection closer to
243 watchpoint creation, and extend the comments.
244
245 2013-10-18 Pedro Alves <palves@redhat.com>
246
247 PR gdb/16062
248 * infrun.c (handle_inferior_event): Keep going if we got a random
249 signal we should not stop for, instead of falling through to the
250 step tests.
251
252 2013-10-18 Yao Qi <yao@codesourcery.com>
253
254 * c-varobj.c (cplus_number_of_children): Fix indentation.
255
256 2013-10-17 Tom Tromey <tromey@redhat.com>
257
258 PR gdb/15995:
259 * printcmd.c (printcmd): Call gdb_flush.
260
261 2013-10-17 Tom Tromey <tromey@redhat.com>
262
263 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
264 (elf_locate_sections): Update.
265
266 2013-10-17 Yao Qi <yao@codesourcery.com>
267
268 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
269 * ada-varobj.c: Remove the include of ada-varobj.h.
270 (ada_varobj_get_number_of_children): Declare.
271 (ada_varobj_get_name_of_child): Make it static.
272 (ada_varobj_get_path_expr_of_child): Likewise.
273 (ada_varobj_get_value_of_child): Likewise.
274 (ada_varobj_get_type_of_child): Likewise.
275 (ada_varobj_get_value_of_array_variable): Likewise.
276 * ada-varobj.h: Remove.
277
278 2013-10-17 Yao Qi <yao@codesourcery.com>
279
280 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
281 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
282 * ada-varobj.c: Include "varobj.h".
283 (ada_number_of_children): New. Moved from varobj.c.
284 (ada_name_of_variable, ada_name_of_child): Likewise.
285 (ada_path_expr_of_child, ada_value_of_child): Likewise.
286 (ada_type_of_child, ada_value_of_variable): Likewise.
287 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
288 (ada_varobj_ops): New.
289 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
290 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
291 * gdbtypes.h (get_target_type): Declare.
292 * varobj.c: Remove the inclusion of "ada-varobj.h" and
293 "ada-lang.h".
294 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
295 (ANONYMOUS_UNION_NAME): Likewise.
296 (get_type, get_value_type, get_target_type): Remove declarations.
297 (value_get_print_value, varobj_value_get_print_value): Likewise.
298 (c_number_of_children, c_name_of_variable): Likewise.
299 (c_name_of_child, c_path_expr_of_child): Likewise.
300 (c_value_of_child, c_type_of_child): Likewise.
301 (c_value_of_variable, cplus_number_of_children): Likewise.
302 (cplus_class_num_children, cplus_name_of_variable): Likewise.
303 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
304 (cplus_value_of_child, cplus_type_of_child): Likewise.
305 (cplus_value_of_variable, java_number_of_children): Likewise.
306 (java_name_of_variable, java_name_of_child): Likewise.
307 (java_path_expr_of_child, java_value_of_child): Likewise.
308 (java_type_of_child, java_value_of_variable): Likewise.
309 (ada_number_of_children, ada_name_of_variable): Likewise.
310 (ada_name_of_child, ada_path_expr_of_child): Likewise.
311 (ada_value_of_child, ada_type_of_child): Likewise.
312 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
313 (ada_value_has_mutated): Likewise.
314 (struct language_specific): Move it to varobj.h.
315 (CPLUS_FAKE_CHILD): Move it to varobj.h.
316 (restrict_range): Rename it varobj_restrict_range. Make it extern.
317 Callers update.
318 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
319 Make it extern.
320 (is_anonymous_child): Move it to c-varobj.c and rename to
321 varobj_is_anonymous_child. Caller update.
322 (get_type): Move it to c-varobj.c.
323 (get_value_type): Rename it varobj_get_value_type. Make it
324 extern.
325 (get_target_type): Move it gdbtypes.c.
326 (varobj_formatted_print_options): New function.
327 (value_get_print_value): Rename it to
328 varobj_value_get_print_value and make it extern.
329 (varobj_value_is_changeable_p): Make it extern.
330 (adjust_value_for_child_access): Move it to c-varobj.c.
331 (default_value_is_changeable_p): Rename it to
332 varobj_default_value_is_changeable_p. Make it extern.
333 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
334 (c_name_of_child, c_path_expr_of_child): Likewise.
335 (c_value_of_child, c_type_of_child): Likewise.
336 (c_value_of_variable, cplus_number_of_children): Likewise.
337 (cplus_class_num_children, cplus_name_of_variable): Likewise.
338 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
339 (cplus_value_of_child, cplus_type_of_child): Likewise.
340 (cplus_value_of_variable): Likewise.
341 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
342 (java_name_of_child, java_path_expr_of_child): Likewise.
343 (java_value_of_child, java_type_of_child): Likewise.
344 (java_value_of_variable): Likewise.
345 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
346 (ada_name_of_child, ada_path_expr_of_child): Likewise.
347 (ada_value_of_child, ada_type_of_child): Likewise.
348 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
349 (ada_value_has_mutated): Likewise.
350 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
351 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
352 (c_varobj_ops, cplus_varobj_ops): Declare.
353 (java_varobj_ops, ada_varobj_ops): Declare.
354 (varobj_default_value_is_changeable_p): Declare.
355 (varobj_value_is_changeable_p): Declare.
356 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
357 (varobj_get_path_expr_parent): Declare.
358 (varobj_value_get_print_value): Declare.
359 (varobj_formatted_print_options): Declare.
360 (varobj_restrict_range): Declare.
361
362 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
363
364 * target/waitstatus.h (target_waitkind): Remove spurious
365 character from the comments.
366
367 2013-10-17 Joel Brobecker <brobecker@adacore.com>
368
369 * gdbarch.sh (get_longjmp_target): Add method documentation.
370 * gdbarch.h: Regenerate.
371
372 2013-10-16 Tom Tromey <tromey@redhat.com>
373
374 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
375 label.
376
377 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
378
379 * gcore.in: Call GDB using the full path to the gcore script.
380 Error out if the GDB binary is not found.
381
382 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
383
384 PR gdb/16014
385 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
386 sizeof.
387
388 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
389
390 PR gdb/16042
391 * target.c (target_disable_btrace): Fix invalid return value for
392 void function.
393 (target_teardown_btrace): Likewise.
394
395 2013-10-14 Yao Qi <yao@codesourcery.com>
396
397 * varobj.c (struct varobj): Move most of the fields to
398 varobj.h.
399 (struct varobj_dynamic): New struct.
400 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
401 (varobj_has_more): Likewise.
402 (dynamic_varobj_has_child_method): Likewise.
403 (update_dynamic_varobj_children): Likewise.
404 (varobj_get_num_children): Likewise.
405 (varobj_list_children, varobj_pretty_printed_p): Likewise.
406 (install_new_value_visualizer): Likewise.
407 (install_new_value_visualizer, install_new_value): Likewise.
408 (varobj_update, new_variable, free_variable): Likewise.
409 (my_value_of_variable, value_get_print_value): Likewise.
410 (install_visualizer): Change the type of parameter 'var' to
411 'struct varobjd_dynamic *'. Callers update.
412 * varobj.h (struct varobj): Moved from varobj.c.
413 (struct varobj) <dynamic>: New field.
414
415 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
416
417 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
418 as the preferred name of r30.
419 * nios2-linux-tdep.c (reg_offsets): Likewise.
420 * features/nios2-cpu.xml: Likewise.
421 * features/nios2-linux.c: Regenerated.
422 * features/nios2.c: Regenerated.
423 * regformats/nios2-linux.dat: Regenerated.
424
425 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
426
427 Canonicalize directories for EXEC_FILENAME.
428 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
429 exec_filename.
430 * utils.c (gdb_realpath_keepfile): New function.
431 * utils.h (gdb_realpath_keepfile): New declaration.
432
433 2013-10-11 Doug Evans <dje@google.com>
434
435 * Makefile.in (GDBFLAGS): New variable.
436 (run): New rule.
437
438 2013-10-11 Joel Brobecker <brobecker@adacore.com>
439
440 * NEWS: Add entry documenting the new "-catch-assert" and
441 "-catch-exception" GDB/MI commands.
442
443 2013-10-11 Joel Brobecker <brobecker@adacore.com>
444
445 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
446 "enabled".
447 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
448 "enabled". Set B->ENABLE_STATE accordingly.
449 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
450 ada-lang.c.
451 (create_ada_exception_catchpoint): Add declaration.
452 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
453 (create_ada_exception_catchpoint): Make non-static. Add new
454 parameter "disabled". Use it in call to
455 init_ada_exception_breakpoint.
456 (catch_ada_exception_command): Add parameter "enabled" in call
457 to create_ada_exception_catchpoint.
458 (catch_assert_command): Likewise.
459
460 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
461 Add declarations.
462 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
463 "catch-exception" commands.
464 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
465 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
466
467 2013-10-11 Joel Brobecker <brobecker@adacore.com>
468
469 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
470 "enum exception_catchpoint_kind". Replace the "ex_" prefix
471 of all its enumerates with "ada_". Update the rest of this
472 file throughout.
473
474 2013-10-11 Joel Brobecker <brobecker@adacore.com>
475
476 * ada-lang.c (ada_decode_exception_location): Delete.
477 (create_ada_exception_catchpoint): Remove arguments "sal",
478 "addr_string" and "ops". Add argument "ex_kind" instead.
479 Adjust implementation accordingly, calling ada_exception_sal
480 to get the entities it no longer gets passed as arguments.
481 Document the function's arguments.
482 (catch_ada_exception_command): Use catch_ada_exception_command_split
483 instead of ada_decode_exception_location, and update call to
484 create_ada_exception_catchpoint.
485 (catch_ada_assert_command_split): Renames
486 ada_decode_assert_location. Remove parameters "addr_string" and
487 "ops", and now returns void. Adjust implementation accordingly.
488 Update the function documentation.
489 (catch_assert_command): Use catch_ada_assert_command_split
490 instead of ada_decode_assert_location. Update call to
491 create_ada_exception_catchpoint.
492
493 2013-10-11 Joel Brobecker <brobecker@adacore.com>
494
495 * utils.h (perror_warning_with_name): Add declaration.
496 * utils.c (perror_warning_with_name): New function.
497 * cli/cli-cmds.c (source_script_with_search): Add call to
498 perror_warning_with_name if from_tty is nul.
499
500 2013-10-11 Joel Brobecker <brobecker@adacore.com>
501
502 * utils.c (perror_string): New function, extracted out of
503 throw_perror_with_name.
504 (throw_perror_with_name): Rework to use perror_string.
505
506 2013-10-11 Yao Qi <yao@codesourcery.com>
507
508 * remote.c (discard_pending_stop_replies_in_queue): Update
509 declaration.
510 (struct stop_reply) <rs>: New field.
511 (remove_stop_reply_of_remote_state): New function.
512 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
513 Callers update. Pass remove_stop_reply_of_remote_state to
514 QUEUE_iterate.
515 (remote_parse_stop_reply): Initialize field 'rs'.
516
517 2013-10-10 Will Newton <will.newton@linaro.org>
518
519 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
520 linux_init_abi.
521
522 2013-10-10 Joel Brobecker <brobecker@adacore.com>
523
524 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
525 serial_baud_show_cmd.
526 (_initialize_cli_cmds): Delete the code creating the
527 "set/show remotebaud" commands.
528 * serial.c (baud_rate): Move here from top.c.
529 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
530 (_initialize_serial): Create "set/show serial baud" commands.
531 Add "set/show remotebaud" command aliases.
532 * top.c (baud_rate): Moved to serial.c.
533 * NEWS: Document the new "set/show serial baud" commands,
534 replacing "set/show remotebaud".
535
536 2013-10-09 Pedro Alves <palves@redhat.com>
537
538 * breakpoint.c (insert_bp_location): Use memory_error_message to
539 build the memory error string.
540 * c-lang.c: Include "gdbcore.h".
541 (c_get_string): Use memory_error to throw error.
542 (target_xfer_memory_error): Delete.
543 (memory_error_message): New, factored out from
544 target_xfer_memory_error.
545 (memory_error): Change parameter type to target_xfer_error.
546 Rewrite.
547 (read_memory): Use memory_error instead of
548 target_xfer_memory_error.
549 * gdbcore.h: Include "target.h".
550 (memory_error): Change parameter type to target_xfer_error.
551 (memory_error_message): Declare function.
552 * target.c (target_read_memory, target_read_stack)
553 (target_write_memory, target_write_raw_memory): Return
554 TARGET_XFER_E_IO on error. Adjust comments.
555 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
556 instead of EIO.
557 * target.h (target_read, target_insert_breakpoint)
558 (target_remove_breakpoint): Adjust comments.
559 * valprint.c (partial_memory_read): Rename parameter, and adjust
560 comment.
561 (val_print_string): Use memory_error_message to build the memory
562 error string.
563
564 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
565
566 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
567 result variable. Rename variable fopen_e_ever_failed to
568 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
569
570 2013-10-09 Pedro Alves <palves@redhat.com>
571
572 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
573 (monitor_write_memory_longlongs, monitor_write_memory_block):
574 Constify 'myaddr' parameter.
575 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
576 helper.
577 (monitor_xfer_partial): New function.
578 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
579 hook. Install a to_xfer_partial hook.
580
581 2013-10-09 Tom Tromey <tromey@redhat.com>
582
583 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
584 bfd_get_alt_debug_link_info.
585
586 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
587
588 New flag OBJF_NOT_FILENAME.
589 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
590 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
591 allocate_objfile.
592 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
593 symbol_file_add_from_bfd.
594 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
595 allocate_objfile.
596 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
597 NULL.
598 * objfiles.h (OBJF_NOT_FILENAME): New.
599
600 2013-10-08 Tom Tromey <tromey@redhat.com>
601
602 * Makefile.in (SFILES): Add build-id.c.
603 (HFILES_NO_SRCDIR): Add build-id.h.
604 * build-id.c: New file, largely from elfread.c. Modified
605 most functions.
606 * build-id.h: New file.
607 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
608 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
609 Search for dwz file using build-id.
610 * elfread.c (build_id_bfd_get, build_id_verify)
611 (build_id_to_debug_filename, find_separate_debug_file): Remove.
612
613 2013-10-08 Joel Brobecker <brobecker@adacore.com>
614
615 * ada-lang.c (compare_names_with_case): Renamed from
616 compare_names, adding a new parameter "casing" and its handling.
617 New function documentation.
618 (compare_names): New function, implemented using
619 compare_names_with_case.
620
621 2013-10-08 Joel Brobecker <brobecker@adacore.com>
622
623 * ada-lang.c (ada_exception_sal): Remove advance declaration.
624
625 2013-10-07 Tom Tromey <tromey@redhat.com>
626
627 * objfiles.c (free_objfile_per_bfd_storage): Delete the
628 demangled_names_hash.
629 (free_objfile): Don't delete the demangled_names_hash.
630 * objfiles.h (struct objfile_per_bfd_storage)
631 <demangled_names_hash>: New field.
632 (struct objfile) <demangled_names_hash>: Move to
633 objfile_per_bfd_storage.
634 * symfile.c (reread_symbols): Don't delete the
635 demangled_names_hash.
636 * symtab.c (create_demangled_names_hash): Update.
637 (symbol_set_names): Update.
638
639 2013-10-07 Tom Tromey <tromey@redhat.com>
640
641 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
642 needs_relocations>: New fields.
643 (gdb_bfd_requires_relocations): New function.
644 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
645 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
646 the BFD needs relocations applied.
647
648 2013-10-07 Pedro Alves <palves@redhat.com>
649
650 PR breakpoints/11568
651 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
652 the thread list" instead of "gone".
653
654 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
655
656 * NEWS: Mention new convenience variable $_exitsignal.
657 * corelow.c (core_open): Reset exit convenience variables. Set
658 $_exitsignal to the uncaught signal which generated the corefile.
659 * infrun.c (handle_inferior_event): Reset exit convenience
660 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
661 (clear_exit_convenience_vars): New function.
662 * inferior.h (clear_exit_convenience_vars): New prototype.
663
664 2013-10-06 Yao Qi <yao@codesourcery.com>
665
666 * varobj.h: Add comments to enum varobj_languages.
667
668 2013-10-04 Doug Evans <dje@google.com>
669
670 Add support for DWP file format version 2.
671 * NEWS: Mention support for DWP file format version 2.
672 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
673 union of asection, containing_section. New fields virtual_offset
674 and is_virtual. Change type of readin filed from int to char.
675 (dwo_sections, dwo_file): Tweak comments.
676 (dwp_v2_section_ids): New enum.
677 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
678 str_offsets, types.
679 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
680 All uses updated.
681 (virtual_v2_dwo_sections): New struct.
682 (dwp_hash_table): New fields version, nr_columns. Change type of
683 section_pool field to a union.
684 (dwp_file): New field version.
685 (dwarf2_has_info): Check for virtual sections.
686 (get_containing_section): New function.
687 (get_section_bfd_owner, get_section_bfd_section): Call it.
688 (dwarf2_locate_sections): Update.
689 (dwarf2_section_empty_p): Update.
690 (dwarf2_read_section): Handle virtual sections.
691 (locate_dwz_sections): Update.
692 (create_dwp_hash_table): Document and handle V2 format.
693 (locate_v1_virtual_dwo_sections): Renamed from
694 locate_virtual_dwo_sections and update. All callers updated.
695 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
696 Delete arg htab. Rename arg section_index to unit_index.
697 All callers updated.
698 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
699 All uses updated.
700 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
701 (lookup_dwo_unit_in_dwp): Add V2 support.
702 (dwarf2_locate_dwo_sections): Update.
703 (dwarf2_locate_common_dwp_sections): Renamed from
704 dwarf2_locate_dwp_sections and update. All callers updated.
705 (dwarf2_locate_v2_dwp_sections): New function.
706 (open_and_init_dwp_file): Add V2 support.
707 (read_str_index): New locals str_section, str_offsets_section.
708
709 2013-10-04 Pedro Alves <palves@redhat.com>
710
711 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
712 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
713 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
714 describing comments with references to ptid.h.
715 * common/ptid.h: Remove intro description of constructors,
716 accessors and predicates.
717 (struct ptid): Reformat.
718 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
719 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
720 describing comments.
721
722 2013-10-04 Joel Brobecker <brobecker@adacore.com>
723
724 * aix-thread.c (sync_threadlists): Add missing ')' in call
725 to ptid_build.
726
727 2013-10-04 Joel Brobecker <brobecker@adacore.com>
728
729 * procfs.c (procfs_init_inferior): Fix typo causing the build
730 to fail.
731
732 2013-10-04 Joel Brobecker <brobecker@adacore.com>
733
734 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
735
736 2013-10-04 Joel Brobecker <brobecker@adacore.com>
737
738 * mi/mi-main.c (run_one_inferior): Add function description.
739 Make ARG a pointer to an integer whose value determines whether
740 we should "run" or "start" the program.
741 (mi_cmd_exec_run): Add handling of the "--start" option.
742 Reject all other command-line options.
743 * NEWS: Add entry for "-exec-run"'s new "--start" option.
744
745 2013-10-04 Yao Qi <yao@codesourcery.com>
746
747 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
748 (struct notif_client) <pending_event>: Moved
749 to struct remote_notif_state.
750 <id>: New field.
751 (struct remote_notif_state) <pending_event>: New field.
752 (notif_event_xfree): Declare.
753 * remote-notif.c (handle_notification): Adjust.
754 (notif_event_xfree): New function.
755 (do_notif_event_xfree): Call notif_event_xfree.
756 (remote_notif_state_xfree): Call notif_event_xfree to free
757 each element in field pending_event.
758 * remote.c (discard_pending_stop_replies): Remove declaration.
759 (discard_pending_stop_replies_in_queue): Declare.
760 (remote_close): Call discard_pending_stop_replies_in_queue
761 instead of discard_pending_stop_replies.
762 (remote_start_remote): Adjust.
763 (stop_reply_xfree): Call notif_event_xfree.
764 (notif_client_stop): Adjust initialization.
765 (remote_notif_remove_all): Rename it to ...
766 (remove_stop_reply_for_inferior): ... this. Update comments.
767 Don't check INF is NULL.
768 (discard_pending_stop_replies): Return early if notif_state is
769 NULL. Adjust. Don't check INF is NULL.
770 (remote_notif_get_pending_events): Adjust.
771 (discard_pending_stop_replies_in_queue): New function.
772 (remote_wait_ns): Likewise.
773
774 2013-10-04 Yao Qi <yao@codesourcery.com>
775
776 * remote-notif.c (DECLARE_QUEUE_P): Remove.
777 (notif_queue): Remove.
778 (remote_notif_process): Add one parameter 'notif_queue'.
779 Update comments. Callers update.
780 (remote_async_get_pending_events_token): Remove.
781 (remote_notif_register_async_event_handler): Remove.
782 (remote_notif_unregister_async_event_handler): Remove.
783 (handle_notification): Add parameter 'notif_queue'. Update
784 comments. Callers update.
785 (notif_xfree): Remove.
786 (remote_notif_state_allocate): New function.
787 (remote_notif_state_xfree): New function.
788 (_initialize_notif): Remove code to allocate queue.
789 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
790 (struct remote_notif_state): New.
791 (handle_notification): Update declaration.
792 (remote_notif_process): Likewise.
793 (remote_notif_register_async_event_handler): Remove.
794 (remote_notif_unregister_async_event_handler): Remove.
795 (remote_notif_state_allocate): Declare.
796 (remote_notif_state_xfree): Declare.
797 * remote.c (struct remote_state) <notif_state>: New field.
798 (remote_close): Don't call
799 remote_notif_unregister_async_event_handler. Call
800 remote_notif_state_xfree.
801 (remote_open_1): Don't call
802 remote_notif_register_async_event_handler. Call
803 remote_notif_state_allocate.
804
805 2013-10-04 Yao Qi <yao@codesourcery.com>
806
807 * varobj.c (create_child_with_value): Remove 'const' from the
808 type of parameter 'name'.
809 (varobj_add_child): Likewise.
810 (install_dynamic_child): Remove 'const' from the type of
811 parameter 'name'.
812 (varobj_add_child): Likewise.
813 (create_child_with_value): Likewise. Update comments. Don't
814 duplicate 'name'.
815 (update_dynamic_varobj_children): Duplicate 'name'
816 and pass it to install_dynamic_child.
817
818 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
819
820 * python/py-value.c (convert_value_from_python): Move PyInt_Check
821 conversion logic to occur after PyLong_Check. Comment on order
822 change significance.
823 * python/py-arch.c (archpy_disassemble): Comment on order of
824 conversion for integers and longs.
825
826 2013-10-03 Pedro Alves <palves@redhat.com>
827
828 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
829 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
830 functions. Always test for PTRACE_O_TRACESYSGOOD even if
831 PTRACE_O_TRACEFORK is not supported.
832 (linux_test_for_tracesysgood): New function.
833 (linux_test_for_tracefork): New function, factored out from
834 linux_check_ptrace_features, and also don't kill child_pid here.
835
836 2013-10-03 Tristan Gingold <gingold@adacore.com>
837
838 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
839 Remove verbose error reporting. Use detected state to
840 thread_set_state call.
841 (i386_darwin_dr_get): Fix return type. Remove verbose error
842 report.
843 Remove trailing spaces.
844
845 2013-10-02 Pedro Alves <palves@redhat.com>
846
847 * cp-valprint.c (cp_print_value_fields): Adjust calls to
848 val_print_optimized_out.
849 * jv-valprint.c (java_print_value_fields): Likewise.
850 * p-valprint.c (pascal_object_print_value_fields): Likewise.
851 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
852 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
853 new optimized out value.
854 * findvar.c (address_from_register): Likewise.
855 * frame.c (put_frame_register): Tweak error string to say the
856 register was not saved, rather than optimized out.
857 * infcmd.c (default_print_one_register_info): Adjust call to
858 val_print_optimized_out. Use value_of_register instead of
859 get_frame_register_value.
860 * mi/mi-main.c (output_register): Use value_of_register instead of
861 get_frame_register_value.
862 * valprint.c (valprint_check_validity): Likewise.
863 (val_print_optimized_out): New value parameter. If the value is
864 lval_register, print <not saved> instead.
865 (value_check_printable, val_print_scalar_formatted): Adjust calls
866 to val_print_optimized_out.
867 * valprint.h (val_print_optimized_out): New value parameter.
868 * value.c (struct value) <optimized_out>: Extend comment.
869 (error_value_optimized_out): New function.
870 (require_not_optimized_out): Use it. Use a different string for
871 lval_register values.
872 * value.h (error_value_optimized_out): New declaration.
873 * NEWS: Mention <not saved>.
874
875 2013-10-02 Joel Brobecker <brobecker@adacore.com>
876
877 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
878 strcmp to compare two symtab filenames.
879
880 2013-10-02 Joel Brobecker <brobecker@adacore.com>
881
882 * symtab.c (search_symbols_equal): Delete.
883 (sort_search_symbols_remove_dups): Replace call to
884 search_symbols_equal by call to compare_search_syms,
885 adjusting as necessary.
886
887 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
888
889 PR python/15579
890
891 * python/python.c: Document gdb.execute command in Python help.
892
893 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
894
895 * python/py-frame.c (frame_info_to_frame_object): Use
896 gdbpy_convert_exception. Clean up Python object on failure.
897
898 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
899
900 * python/lib/gdb/command/frame_filters.py
901 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
902 (ShowFrameFilterPriority.invoke): Ditto.
903
904 2013-10-01 Keith Seitz <keiths@redhat.com>
905
906 * linespec.c (struct ls_parser): Make 'saved_arg' const.
907 (parse_linespec): Make 'argptr' const.
908 Remove temporary cast of 'argptr' to const char **.
909 (decode_line_full): Pass const pointer to parse_linespec.
910 (decode_line_1): Likewise.
911 (decode_objc): Make local variable 'new_argptr' const.
912 (find_function_symbols): Remove temporary cast to char *
913 to find_imps.
914 * objc-lang.c (find_imps): Make argument 'method' const.
915 Return const.
916 * objc-lang.h (find_imps): Likewise.
917
918 2013-10-01 Keith Seitz <keiths@redhat.com>
919
920 * completer.c (skip_quoted_chars): Make all arguments const.
921 Return const.
922 (skip_quoted): Likewise.
923 * completer.h (skip_quoted_chars): Likewise.
924 (skip_quoted): Likewise.
925 * defs.h (skip_quoted): Remove duplicate declaration.
926 * jv-exp.y: Include completer.h.
927 (yylex): Remove unneccessary cast to char * fro skip_quoted.
928 * p-exp.y: Include completer.h.
929
930 2013-10-01 Keith Seitz <keiths@redhat.com>
931
932 * c-exp.y (parse_number): Make first argument const.
933 Make a copy of the input to manipulate.
934 (c_parse_escape): Make first argument const.
935 Make local variable 'tokptr' const.
936 (parse_string_or_char): Make first two arguments const.
937 (macro_original_text): Make const.
938 (lex_one_token): Make local variable 'tokstart' const.
939 Likewise for local variables named 'p'.
940 Cast away const for struct stoken (temporary).
941 * c-lang.h (c_parse_escpae): Make first argument const.
942 * cli/cli-cmds.c (echo_command): Make local variable 'p'
943 const.
944 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
945 var_string case.
946 * f-exp.y (parse_number): Make first argument const.
947 (match_string_literal): Make local variable 'tokstart'
948 const.
949 (yylex): Make local variable 'p' const.
950 Cast away const for struct stoken (temporary).
951 * go-exp.y (parse_number): Make first argument const.
952 (parse_string_or_char): Likewise.
953 Make local variable 'tokstart' const.
954 (lex_one_token): Likewise for numerous locals called 'p'.
955 Cast away const for struct stoken (temporary).
956 * jv-exp.y (parse_number): Make first argument const.
957 Make local variables 'tokstart' and 'tokptr' const.
958 Cast away const for call to skip_quoted (temporary).
959 (yylex): Make local variable 'p' const.
960 Cast away const for struct stoken (temporary).
961 * m2-exp.y (parse_number): Make local variable 'p' const.
962 (yylex): Likewise for 'tokstart'.
963 Cast away const for struct stoken (temporary).
964 Make local variable 'p' const.
965 * macroexp.c (get_character_constant): Pass a const string
966 to c_parse_escape.
967 (get_string_literal): Likewise.
968 (macro_expand_next): Make first argument const.
969 Cast away const for init_shared_buffer.
970 * macroexp.h (macro_expand_next): Make first argument const.
971 * p-exp.y (yylex): Make a local copy of 'lexptr'.
972 Pass a const string to c_parse_escape.
973 Make local variables 'p' and 'namestart' const.
974 * parse.c (lexptr): Make const.
975 (prev_lexptr): Likewise.
976 (find_template_name_end): Return const.
977 Make argument const, too.
978 (parse_exp_in_context): Make first argument const.
979 Remove the entire const_hack.
980 (parse_exp_in_context_1): Make first argument const.
981 * parser-defs.h (find_template_name_end): Return const.
982 Make argument const, too.
983 (lexptr): Make const.
984 (prev_lexptr): Likewise.
985 * utils.c (parse_escape): Make second argument const.
986 * utils.h (parse_escape): Likewise.
987
988 2013-10-01 Keith Seitz <keiths@redhat.com>
989
990 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
991 is now const.
992 (block_lookup): Make 'raw_name' and 'name' const.
993 * ada-lex.l (processString): Update for struct stoken.ptr.
994 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
995 (operator_stoken): Likewise.
996 (lex_one_token): Remove temporary cast to char * for
997 'yylval.sval.ptr'.
998 * f-exp.y (yylex): Likewise.
999 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1000 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1001 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1002 'yylval.sval.ptr'.
1003 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1004 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1005 * linespec.c (struct ls_parser): Make 'stream' const.
1006 (find_parameter_list_end): Make argument 'input' and local
1007 variable 'p' const.
1008 (linespec_lexer_lex_string): Make local variables 'start' and
1009 'p' const.
1010 Use skip_spaces_const instead of skip_spaces.
1011 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1012 const.
1013 (parse_linespec): Temporarily cast 'argptr' to const for
1014 'parser->lexer.stream'.
1015 * m2-exp.y (yylex): Remove temporary cast to char * for
1016 'yylval.sval.ptr'.
1017 * objc-lang.c (add_msglist): Make local variable 'p' const.
1018 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1019 (exp : STRING): Make 'sp' const.
1020 (parse_number): Make argument 'p' const.
1021 * parser-defs.h (struct stoken): Make 'ptr' const.
1022
1023 2013-10-01 Doug Evans <dje@google.com>
1024
1025 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1026
1027 2013-10-01 Yao Qi <yao@codesourcery.com>
1028
1029 * varobj.c (c_value_of_root): Remove declaration.
1030 (cplus_value_of_root, java_value_of_root): Likewise.
1031 (ada_value_of_root): Likewise.
1032 (struct language_specific) <value_of_root>: Remove.
1033 (languages): Update initialization.
1034 (check_scope): Move earlier.
1035 (c_value_of_root): Move earlier and rename to ...
1036 (value_of_root_1): ... this.
1037 (value_of_root): Caller update.
1038 (cplus_value_of_root, java_value_of_root): Remove.
1039 (ada_value_of_root): Remove.
1040
1041 2013-10-01 Yao Qi <yao@codesourcery.com>
1042
1043 * varobj.c (varobj_format_string): Remove "unknown".
1044 (languages): Remove the first element.
1045 * varobj.h (enum varobj_languages): Remove vlang_c.
1046
1047 2013-10-01 Yao Qi <yao@codesourcery.com>
1048
1049 * varobj.c (struct language_specific) <language>: Remove.
1050 (languages): Update the initialization.
1051
1052 2013-10-01 Yao Qi <yao@codesourcery.com>
1053
1054 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1055 "solib-target.h". Include "windows-tdep.h".
1056 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1057 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1058 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1059 windows-tdep.o to gdb_target_obs.
1060
1061 2013-10-01 Yao Qi <yao@codesourcery.com>
1062
1063 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1064 "solib-target.h".
1065 (amd64_windows_init_abi): Don't call set_solib_ops and
1066 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1067 windows_init_abi instead.
1068 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1069 "solib-target.h".
1070 (i386_cygwin_init_abi): Don't call set_solib_ops,
1071 set_gdbarch_has_dos_based_file_system and
1072 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1073 windows_init_abi instead.
1074 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1075 (windows_init_abi): New function.
1076 (windows_iterate_over_objfiles_in_search_order): Make it
1077 static.
1078 * windows-tdep.h (windows_init_abi): Declare.
1079 (windows_iterate_over_objfiles_in_search_order): Remove
1080 declaration.
1081
1082 2013-10-01 Jerome Guitton <guitton@adacore.com>
1083
1084 Checked in by Joel Brobecker <brobecker@adacore.com>
1085 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1086 incomplete dictionnary instead of None in case of missing
1087 environment variables.
1088 (elinos_init): in case of an incomplete environment, best
1089 effort to load system libraries instead of abort.
1090
1091 2013-10-01 Joel Brobecker <brobecker@adacore.com>
1092
1093 * ada-lang.c (ada_has_this_exception_support): Ignore
1094 mst_solib_trampoline minimal symbols.
1095
1096 2013-09-30 Tristan Gingold <gingold@adacore.com>
1097
1098 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1099 hardware watchpoint.
1100 (i386_darwin_dr_set): Support 32 and 64 bit states.
1101 (i386_darwin_dr_get): Likewise.
1102 (i386_darwin_dr_set_control): Make static.
1103 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1104 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1105
1106 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
1107
1108 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1109 Replace TIDGET with ptid_get_lwp.
1110 Replace GET_LWP with ptid_get_lwp.
1111 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1112 Replace BUILD_THREAD with ptid_build.
1113 Replace BUILD_LWP with ptid_build.
1114 Replace PIDGET with ptid_get_pid.
1115 Replace TIDGET with ptid_get_lwp.
1116 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1117 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1118 Replace TIDGET with ptid_get_lwp.
1119 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1120 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1121 Replace TIDGET with ptid_get_lwp.
1122 Replace GET_LWP with ptid_get_lwp.
1123 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1124 * auxv.c: Likewise.
1125 * breakpoint.c: Likewise.
1126 * common/ptid.c (ptid_is_pid): Condense check for
1127 null_ptid and minus_one_ptid.
1128 (ptid_lwp_p): New function.
1129 (ptid_tid_p): New function.
1130 * common/ptid.h: Update comments for accessors.
1131 (ptid_lwp_p): New prototype.
1132 (ptid_tid_p): New prototype.
1133 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1134 * gcore.c: Replace PIDGET with ptid_get_pid.
1135 * gdbthread.h: Likewise.
1136 * gnu-nat.c: Likewise.
1137 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1138 Replace TIDGET with ptid_get_lwp.
1139 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1140 * hppanbsd-nat.c: Likewise.
1141 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1142 Replace TIDGET with ptid_get_lwp.
1143 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1144 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1145 * infcmd.c: Likewise.
1146 * inferior.h: Likewise.
1147 * inflow.c: Likewise.
1148 * infrun.c: Likewise.
1149 * linux-fork.c: Likewise.
1150 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1151 Replace GET_PID with ptid_get_pid.
1152 Replace is_lwp with ptid_lwp_p.
1153 Replace GET_LWP with ptid_get_lwp.
1154 Replace BUILD_LWP with ptid_build.
1155
1156 2013-09-28 Mike Frysinger <vapier@gentoo.org>
1157
1158 * common/linux-btrace.c: Move sys/syscall.h out of the
1159 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1160 Also check for SYS_perf_event_open before attempting to buid.
1161
1162 2013-09-27 Doug Evans <dje@google.com>
1163
1164 * dwarf2read.c (dwarf2_section_info): Add comment.
1165 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1166 All uses updated.
1167 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1168 (dwarf2_read_section): Delete unused local "header". Add section
1169 name to error message.
1170 (create_dwo_in_dwp): Tweak comment.
1171 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1172
1173 * dwarf2read.c (die_reader_specs): Tweak comment.
1174 (get_section_bfd_owner, get_section_bfd_section): New functions.
1175 (get_section_name, get_section_file_name): New functions.
1176 (get_section_id, get_section_flags): New functions.
1177 (*): Use new functions to access section fields.
1178
1179 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1180 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1181 arg "htab". All callers updated.
1182 (create_debug_types_hash_table): Remove redundant copy of
1183 abbrev_section.
1184 (create_dwo_in_dwp): Tweak comments.
1185 (read_str_index): Tweak comment. Record dwarf form name in static
1186 local.
1187
1188 2013-09-27 Pedro Alves <palves@redhat.com>
1189
1190 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1191 (remote_filename_p): Add comment.
1192 * remote.c (remote_filename_p): Adjust to use
1193 REMOTE_SYSROOT_PREFIX.
1194 * solib.c (solib_find): When deciding whether we need to add a
1195 directory separator, check whether the sysroot is "remote:"
1196 instead of checking whether the patch has a drive spec. Add
1197 comments.
1198
1199 2013-09-27 Pedro Alves <palves@redhat.com>
1200
1201 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1202 Delete fields.
1203 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1204 directly.
1205
1206 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1207
1208 Fix set debug frame output.
1209 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1210 SENTINEL_FRAME entry lower to match enum frame_type order.
1211
1212 2013-09-26 Pierre Muller <muller@sourceware.org>
1213
1214 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1215 AMD64_R15_REGNUM when a register index is expected.
1216 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1217 Substitute in array.
1218 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1219 (amd64_push_arguments): Substitute in integer_regnum array.
1220
1221 2013-09-25 Doug Evans <dje@google.com>
1222
1223 * objfiles.c (allocate_objfile): Move comment to better place.
1224
1225 New option "set debug symfile on".
1226 * NEWS: Mention "set debug symfile".
1227 * Makefile.in (SFILES): Add symfile-debug.c.
1228 (COMMON_OBS): Add symfile-debug.o.
1229 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1230 objfile's symbol functions.
1231 * objfiles.h (objfile_set_sym_fns): Declare.
1232 * symfile-debug.c: New file.
1233 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1234 objfile's symbol functions.
1235 (reread_symbols): Ditto.
1236
1237 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1238 All uses updated.
1239 (add_symtab_fns): Update prototype.
1240 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1241 (registered_sym_fns): ... this.
1242 (symtab_fns): Update.
1243 (add_symtab_fns): New arg "flavour". All callers updated.
1244 (find_sym_fns): Rewrite to use new sym_fns registry.
1245
1246 * symfile.h (struct sym_fns): Add "objfile" argument to
1247 sym_read_linetable. All uses updated.
1248
1249 * symtab.c (domain_name, search_domain_name): New functions.
1250 * symtab.h (domain_name, search_domain_name): Declare.
1251
1252 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1253 map_matching_symbols so objfile is first. All uses updated.
1254 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1255 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1256
1257 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1258
1259 PR shlibs/8882
1260 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1261 link map entries.
1262
1263 2013-09-24 Doug Evans <dje@google.com>
1264
1265 * objfiles.c (free_objfile): Move comment.
1266
1267 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1268
1269 * ada-exp.y (string_to_operator): Delete.
1270 (dummy_string_to_ada_operator): Delete.
1271
1272 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1273
1274 Revert:
1275 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1276 amd64-tdep.c.
1277 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1278 call_dummy_integer_regs, and classify.
1279 * amd64-tdep.h (amd64_classify): Add declaration.
1280 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1281 (amd64_reg_class): Delete, moved to i386-tdep.h.
1282 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1283 Replace call to amd64_classify by call to tdep->classify.
1284 (amd64_push_arguments): Get the list of registers to use for
1285 passing integer parameters from the gdbarch tdep structure,
1286 rather than using a hardcoded one. Replace calls to amd64_classify
1287 by calls to tdep->classify.
1288 (amd64_push_dummy_call): Get the register number used for
1289 the "hidden" argument from tdep->call_dummy_integer_regs.
1290 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1291 and tdep->call_dummy_integer_regs. Set tdep->classify.
1292
1293 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1294
1295 Revert:
1296 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1297 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1298 where tdep->memory_args_by_pointer is non-zero.
1299
1300 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1301
1302 Revert:
1303 * i386-tdep.h (struct gdbarch_tdep): Add new field
1304 integer_param_regs_saved_in_caller_frame.
1305 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1306 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1307
1308 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1309
1310 * amd64-windows-tdep.c: #include "value.h"
1311 (amd64_windows_classify): Delete.
1312 (amd64_windows_passed_by_integer_register)
1313 (amd64_windows_passed_by_xmm_register)
1314 (amd64_windows_passed_by_pointer)
1315 (amd64_windows_adjust_args_passed_by_pointer)
1316 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1317 (amd64_windows_push_dummy_call): New functions.
1318 (amd64_windows_init_abi): Remove setting of
1319 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1320 tdep->classify, tdep->memory_args_by_pointer and
1321 tdep->integer_param_regs_saved_in_caller_frame.
1322 Add call to set_gdbarch_push_dummy_call.
1323
1324 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1325
1326 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1327 objfile->original_name.
1328
1329 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1330
1331 Pass down original filename for objfile.
1332 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1333 * elfread.c (elf_symfile_read): Likewise.
1334 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1335 longer set ORIGINAL_NAME.
1336 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1337 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1338 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1339 symbol_file_add_from_bfd call.
1340 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1341 (macho_check_dsym): Add parameter filenamep. Change function comment.
1342 Set *filenamep.
1343 (macho_symfile_read): New variable dsym_filename. Update
1344 macho_check_dsym call. Use it for symbol_file_add_separate.
1345 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1346 it. Use it for objfile->original_name.
1347 (objfile_name): Return OBFD's filename, if available.
1348 * objfiles.h (allocate_objfile): Add new parameter name.
1349 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1350 * symfile-mem.c (symbol_file_add_from_memory): Update
1351 symbol_file_add_from_bfd call.
1352 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1353 comment for it.
1354 (symbol_file_add_with_addrs): New parameter name, add function comment
1355 for it. Remove variable name. Update allocate_objfile call.
1356 (symbol_file_add_separate): New parameter name, add function comment
1357 for it. Update symbol_file_add_with_addrs call.
1358 (symbol_file_add_from_bfd): New parameter name. Update
1359 symbol_file_add_with_addrs call.
1360 (symbol_file_add): Update symbol_file_add_from_bfd call.
1361 (reread_symbols): New variable original_name. Save
1362 objfile->original_name by it.
1363 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1364 second parameter.
1365
1366 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1367
1368 Code cleanup: Add objfile_name accessor function.
1369 * ada-lang.c (is_known_support_routine): Use objfile_name.
1370 * auto-load.c (source_gdb_script_for_objfile)
1371 (auto_load_objfile_script): Likewise.
1372 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1373 * dbxread.c (dbx_symfile_read): Likewise.
1374 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1375 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1376 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1377 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1378 (lookup_dwp_signatured_type, lookup_dwo_unit)
1379 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1380 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1381 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1382 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1383 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1384 (read_subrange_type, load_partial_dies, read_partial_die)
1385 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1386 (die_containing_type, build_error_marker_type, lookup_die_type)
1387 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1388 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1389 (get_DW_AT_signature_type, write_psymtabs_to_index)
1390 (save_gdb_index_command): Likewise.
1391 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1392 Likewise.
1393 * expprint.c (dump_subexp_body_standard): Likewise.
1394 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1395 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1396 original_name.
1397 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1398 obj_name, use objfile_name for it, use the variable.
1399 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1400 Use objfile_name.
1401 * machoread.c (macho_symtab_read, macho_check_dsym)
1402 (macho_symfile_relocate): Likewise.
1403 * maint.c (maintenance_translate_address): Likewise.
1404 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1405 * minsyms.c (install_minimal_symbols): Likewise.
1406 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1407 original_name.
1408 (filter_overlapping_sections): Use objfile_name.
1409 (objfile_name): New function.
1410 * objfiles.h (struct objfile): Rename field name to original_name.
1411 (objfile_name): New prototype.
1412 * printcmd.c (sym_info, address_info): Use objfile_name.
1413 * probe.c (parse_probes, collect_probes, compare_probes)
1414 (info_probes_for_ops): Likewise.
1415 * progspace.c (clone_program_space): Likewise.
1416 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1417 (maintenance_info_psymtabs): Likewise.
1418 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1419 (source_section_scripts): Likewise.
1420 * python/py-objfile.c (objfpy_get_filename): Likewise.
1421 * python/py-progspace.c (pspy_get_filename): Likewise.
1422 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1423 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1424 * solib.c (solib_read_symbols): Likewise.
1425 * stabsread.c (scan_file_globals): Likewise.
1426 * stap-probe.c (handle_stap_probe): Likewise.
1427 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1428 (find_separate_debug_file_by_debuglink): Likewise.
1429 (reread_symbols): Likewise. Use the objfile field name renamed to
1430 original_name.
1431 (allocate_symtab): Use objfile_name.
1432 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1433 (dump_objfile, dump_msymbols, dump_symtab_1)
1434 (maintenance_print_msymbols, maintenance_print_objfiles)
1435 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1436 * target.c (target_translate_tls_address, target_info): Likewise.
1437 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1438 objfile_name.
1439
1440 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1441
1442 Code cleanup.
1443 * probe.c (parse_probes): Rename variable objfile_name to
1444 objfile_namestr.
1445
1446 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1447
1448 Remove solib-sunos.c.
1449 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1450 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1451 * objfiles.c (rt_common_objfile): Remove.
1452 (free_objfile): Remove rt_common_objfile comparison.
1453 * objfiles.h (rt_common_objfile): Remove.
1454 * solib-sunos.c: Remove.
1455 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1456
1457 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1458
1459 Remove a.out NetBSD and OpenBSD hosts.
1460 * NEWS (Removed native configurations): New.
1461 * config/arm/nbsdaout.mh: Remove.
1462 * config/i386/nbsdaout.mh: Remove.
1463 * config/i386/obsdaout.mh: Remove.
1464 * config/m68k/nbsdaout.mh: Remove.
1465 * config/sparc/nbsdaout.mh: Remove.
1466 * config/vax/nbsdaout.mh: Remove.
1467 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1468 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1469 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1470 error.
1471 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1472 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1473 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1474
1475 2013-09-23 Tom Tromey <tromey@redhat.com>
1476
1477 * linespec.c (struct minsym_and_objfile): Remove.
1478 (minsym_and_objfile_d): Remove.
1479 (struct linespec, struct collect_info, linespec_parse_basic)
1480 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1481 (compare_msymbols, find_method, find_function_symbols)
1482 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1483 (add_minsym, search_minsyms_for_name): Update.
1484
1485 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1486
1487 * regcache.c: Add include of valprint.h.
1488 (dump_endian_bytes): Delete.
1489 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1490
1491 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1492
1493 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1494
1495 2013-09-19 Pedro Alves <palves@redhat.com>
1496
1497 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1498 breakpoints.
1499
1500 2013-09-19 Pedro Alves <palves@redhat.com>
1501 Thomas Schwinge <thomas@codesourcery.com>
1502 Yue Lu <hacklu.newborn@gmail.com>
1503
1504 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1505 Take a gdb_byte pointer instead of a char pointer.
1506
1507 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1508 gnu_xfer_partial helper.
1509 (gnu_xfer_partial): New function.
1510 (gnu_target): Don't install a deprecated_xfer_memory hook.
1511 Install a to_xfer_partial hook.
1512
1513 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1514
1515 Constification.
1516 * main.c (captured_main): Replace catch_command_errors by
1517 catch_command_errors_const. Twice.
1518 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1519 (symbol_file_add): Make name parameter const.
1520 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1521 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1522 variable name. Change their usage accordingly.
1523 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1524 const.
1525 (symbol_file_add_main): Make args parameter const.
1526
1527 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1528 Ulrich Weigand <uweigand@de.ibm.com>
1529
1530 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1531 of c_value member.
1532 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1533
1534 2013-09-18 Pedro Alves <palves@redhat.com>
1535 Yue Lu <hacklu.newborn@gmail.com>
1536
1537 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1538 (gnu_create_inferior)
1539 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1540 (set_sig_thread_cmd): Use the lwpid field of ptids to
1541 store/extract thread ids instead of the tid field.
1542 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1543
1544 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1545
1546 * infcmd.c (default_print_one_register_info): Add detection of
1547 optimized out values.
1548 (default_print_registers_info): Switch to using
1549 get_frame_register_value.
1550
1551 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1552
1553 * infrun.c (handle_inferior_event): Check if we know the
1554 function start address before setting a resume breakpoint.
1555
1556 2013-09-18 Pedro Alves <palves@redhat.com>
1557
1558 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1559 minus_one_ptid instead of looking at the ptid's tid field and
1560 comparing that to -1.
1561
1562 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1563
1564 * main.h (get_gdb_program_name): Remove extra whitespace.
1565
1566 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1567
1568 * main.h (get_gdb_program_name): Add declaration.
1569 * main.c (get_gdb_program_name): Add definition.
1570
1571 2013-09-17 Doug Evans <dje@google.com>
1572
1573 * dwarf2read.c: Move definitions of complaint functions to after
1574 forward declarations of local functions.
1575
1576 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1577 Pedro Alves <palves@redhat.com>
1578
1579 PR gdb/11568
1580 * breakpoint.c (remove_threaded_breakpoints): New function.
1581 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1582 as thread_exit observer.
1583
1584 2013-09-17 Pedro Alves <palves@redhat.com>
1585
1586 PR gdb/15911
1587 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1588 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1589 * corelow.c (core_open):
1590 * frame.h (print_stack_frame, print_frame_info): New
1591 'set_current_sal' parameter.
1592 * infcmd.c (finish_command, kill_command): Adjust call to
1593 print_stack_frame.
1594 * inferior.c (inferior_command): Likewise.
1595 * infrun.c (normal_stop): Likewise.
1596 * linux-fork.c (linux_fork_context): Likewise.
1597 * record-full.c (record_full_goto_entry, record_full_restore):
1598 Likewise.
1599 * remote-mips.c (common_open): Likewise.
1600 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1601 Use it.
1602 (print_frame_info): New 'set_current_sal' parameter. Set the last
1603 displayed sal depending on the new paremeter instead of looking at
1604 print_what.
1605 (backtrace_command_1, select_and_print_frame, frame_command)
1606 (current_frame_command, up_command, down_command): Adjust call to
1607 print_stack_frame.
1608 * thread.c (print_thread_info, restore_selected_frame)
1609 (do_captured_thread_select): Adjust call to print_stack_frame.
1610 * tracepoint.c (tfind_1): Likewise.
1611 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1612 (mi_cmd_stack_info_frame): Likewise.
1613 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1614 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1615
1616 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1617
1618 * value.c (isvoid_internal_fn): Replace "parameter" with
1619 "argument".
1620
1621 2013-09-16 Stan Shebs <stan@codesourcery.com>
1622
1623 * README: Update references to writing code for GDB.
1624 * configure.ac (build_warnings): Remove obsolete comment.
1625 * configure: Regenerate.
1626 * gdbarch.sh: Remove references to gdbint.texinfo.
1627 * gdbarch.h: Regenerate.
1628 * gdbtypes.c (objfile_type): Remove comments referencing internals
1629 manual and D10V.
1630
1631 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1632
1633 * NEWS: Mention new convenience function $_isvoid.
1634 * value.c (isvoid_internal_fn): New function.
1635 (_initialize_values): Add new convenience function $_isvoid.
1636
1637 2013-09-16 Pierre Muller <muller@sourceware.org>
1638
1639 * arm-linux-tdep.c: Add "elf/common.h" header.
1640 Remove AT_HWCAP macro definintion as it is provided in
1641 added include file.
1642 * s390-tdep.c: Remove system header <elf.h>
1643 Add "elf/common.h" header for AT_HWCAP definition.
1644 (s390_core_read_description): Use correct CORE_ADDR
1645 for hwcap local variable used as third parameter
1646 of function target_auxv_search.
1647
1648 2013-09-14 Pierre Muller <muller@sourceware.org>
1649 Tom Tromey <tromey@redhat.com>
1650 Pedro Alves <palves@redhat.com>
1651
1652 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1653 mode if operating system doesn't know O_CLOEXEC.
1654
1655 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1656
1657 Code cleanup.
1658 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1659 inner block.
1660
1661 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1662
1663 * NEWS: Mention TDB support.
1664 * features/s390-tdb.xml: New file.
1665 * features/s390-te-linux64.xml: New file.
1666 * features/s390x-te-linux64.xml: New file.
1667 * features/Makefile (WHICH): Add new tdescs above.
1668 (s390-te-linux64-expedite): Set.
1669 (s390x-te-linux64-expedite): Set.
1670 * features/s390-te-linux64.c: New file (generated).
1671 * features/s390x-te-linux64.c: New file (generated).
1672 * regformats/s390-te-linux64.dat: New file (generated).
1673 * regformats/s390x-te-linux64.dat: New file (generated).
1674 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1675 (HWCAP_S390_TE): Likewise.
1676 (S390_TDB_DWORD0_REGNUM): Likewise.
1677 (S390_TDB_DWORD0_REGNUM): Likewise.
1678 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1679 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1680 (S390_TDB_ATIA_REGNUM): Likewise.
1681 (S390_TDB_R0_REGNUM): Likewise.
1682 (S390_TDB_R1_REGNUM): Likewise.
1683 (S390_TDB_R2_REGNUM): Likewise.
1684 (S390_TDB_R3_REGNUM): Likewise.
1685 (S390_TDB_R4_REGNUM): Likewise.
1686 (S390_TDB_R5_REGNUM): Likewise.
1687 (S390_TDB_R6_REGNUM): Likewise.
1688 (S390_TDB_R7_REGNUM): Likewise.
1689 (S390_TDB_R8_REGNUM): Likewise.
1690 (S390_TDB_R9_REGNUM): Likewise.
1691 (S390_TDB_R10_REGNUM): Likewise.
1692 (S390_TDB_R11_REGNUM): Likewise.
1693 (S390_TDB_R12_REGNUM): Likewise.
1694 (S390_TDB_R13_REGNUM): Likewise.
1695 (S390_TDB_R14_REGNUM): Likewise.
1696 (S390_TDB_R15_REGNUM): Likewise.
1697 (S390_NUM_REGS): Increase.
1698 (S390_IS_TDBREGSET_REGNUM): New macro.
1699 (s390_regmap_tdb): Declare.
1700 (s390_sizeof_tdbregset): Define.
1701 (tdesc_s390_te_linux64): Declare.
1702 (tdesc_s390x_te_linux64): Likewise.
1703 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1704 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1705 (s390_regmap_tdb): New regmap.
1706 (s390_supply_tdb_regset): New function.
1707 (s390_tdb_regset): New regset.
1708 (s390_linux64v2_regset_sections): Add TDB regset to list.
1709 (s390x_linux64v2_regset_sections): Likewise.
1710 (s390_regset_from_core_section): Recognize TDB core note section.
1711 (s390_core_read_description): If HWCAP indicates TE support,
1712 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1713 (s390_gdbarch_init): Handle TDB regset.
1714 (_initialize_s390_tdep): Initialize new tdescs.
1715 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1716 (have_regset_tdb): New variable.
1717 (s390_native_supply): Support register invalidation.
1718 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1719 (check_regset): Treat ENODATA as "regset exists".
1720 (s390_linux_fetch_inferior_registers): Add TDB.
1721 (s390_read_description): Check for TDB existence and select
1722 appropriate tdesc.
1723 * gdbserver/Makefile.in (clean): Add removal of new makefile
1724 targets.
1725 (s390-te-linux64.c): New makefile target.
1726 (s390x-te-linux64.c): Likewise.
1727 * gdbserver/configure.srv (srv_regobj): Append new objects
1728 s390-te-linux64.o and s390x-te-linux64.o.
1729 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1730 s390x-te-linux64.xml, and s390-tdb.xml.
1731 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1732 declaration.
1733 (tdesc_s390_te_linux64): Likewise.
1734 (init_registers_s390x_te_linux64): Likewise.
1735 (tdesc_s390x_te_linux64): Likewise.
1736 (s390_check_regset): Treat ENODATA as "regset exists".
1737 (s390_arch_setup): Add TDB regset support.
1738 (initialize_low_arch): Initialize registers for new tdescs.
1739
1740 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1741
1742 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1743 (S390_IS_FPREGSET_REGNUM): New macro.
1744 * s390-tdep.c (s390_dwarf_regmap): Make const.
1745 (regnum_is_gpr_full): New function for replacing repeated code.
1746 (s390_pseudo_register_name): Use it.
1747 (s390_pseudo_register_type): Likewise.
1748 (s390_pseudo_register_read): Likewise.
1749 (s390_pseudo_register_write): Likewise.
1750 (s390_unwind_pseudo_register): Likewise.
1751 (s390_regmap_gregset): New format for regmap.
1752 (s390x_regmap_gregset): Likewise.
1753 (s390_regmap_fpregset): Likewise.
1754 (s390_regmap_upper): Likewise.
1755 (s390_regmap_last_break): Likewise.
1756 (s390_regmap_system_call): Likewise.
1757 (s390_supply_regset): Adjust to new regmap format.
1758 (s390_collect_regset): Likewise.
1759 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1760 (s390_native_collect): Likewise.
1761 (supply_gregset): Likewise.
1762 (fill_gregset): Likewise.
1763 (supply_fpregset): Likewise.
1764 (fill_fpregset): Likewise.
1765 (fetch_regset): Likewise.
1766 (store_regset): Likewise.
1767 (s390_linux_fetch_inferior_registers): Likewise.
1768 (s390_linux_fetch_inferior_registers): Likewise.
1769
1770 2013-09-12 Andrew Pinski <apinski@cavium.com>
1771
1772 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1773
1774 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1775
1776 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1777
1778 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
1779
1780 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1781
1782 2013-09-06 Pedro Alves <palves@redhat.com>
1783
1784 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1785 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1786 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1787 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1788 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1789 gdb_stdlog.
1790
1791 2013-09-06 Pedro Alves <palves@redhat.com>
1792
1793 * remote-sim.c (dump_mem): Constify buf parameter.
1794 gdbsim_xfer_inferior_memory): Rename to ...
1795 (gdbsim_xfer_memory): ... this. Adjust interface as
1796 target_xfer_partial helper.
1797 (gdbsim_xfer_partial): New function.
1798 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1799 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1800
1801 2013-09-06 Pedro Alves <palves@redhat.com>
1802
1803 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1804 host_address_to_string, and send debug output to gdb_stdlog.
1805
1806 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1807
1808 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1809 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1810 gdb_target_obs for cris target.
1811 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1812 (cris_gdbarch_init): Move calls to
1813 set_gdbarch_fetch_tls_load_module_address and
1814 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1815 Add call to gdbarch_init_osabi.
1816 * cris-linux-tdep.c: New file.
1817 * cris-tdep.h: New file.
1818
1819 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1820
1821 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1822 to deprecated_init_ui_hook.
1823
1824 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1825
1826 * cli/cli-interp.c (_initialize_cli_interp): Add a
1827 command_loop_proc to interp_procs.
1828 * event-top.c (cli_command_loop): Change signature to match
1829 interp_command_loop_ftype.
1830 * event-top.h (cli_command_loop): Same.
1831 * interps.c (interp_new): Require every interpreter to have a
1832 command_loop_proc.
1833 (current_interp_command_loop): Just call the command_loop_proc on
1834 the current interpreter.
1835 * tui/tui-interp.c (_initialize_tui_interp): Add a
1836 command_loop_proc to interp_procs.
1837
1838 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1839
1840 * cris-tdep.c (cris_gdbarch_init): Add call to
1841 get_gdbarch_fetch_tls_load_module_address.
1842
1843 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1844
1845 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1846 (cris_elf_gregset_t): Rename from elf_gregset_t.
1847 (crisv32_elf_gregset_t): Adjust.
1848 (cris_supply_gregset, fetch_core_registers): Adjust.
1849
1850 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1851
1852 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1853
1854 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
1855
1856 * defs.h (deprecated_command_loop_hook): Remove, including
1857 references in comments.
1858 * interps.c (current_interp_command_loop): No longer use
1859 deprecated_command_loop_hook.
1860 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1861 setup.
1862 * top.c (deprecated_command_loop_hook): Remove.
1863
1864 2013-09-05 Pedro Alves <palves@redhat.com>
1865
1866 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1867 local is now int instead of ULONGEST. Print it with %d
1868 instead of paddress.
1869
1870 2013-09-05 Tristan Gingold <gingold@adacore.com>
1871
1872 * MAINTAINERS: Remove avr maintainership.
1873
1874 2013-09-05 Pedro Alves <palves@redhat.com>
1875
1876 * findvar.c (value_of_register): Rework in terms of
1877 value_of_register_lazy.
1878
1879 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1880
1881 * symfile.c (add_symbol_file_command): Remove trailing
1882 whitespaces and blank line after comment.
1883
1884 2013-09-05 Pedro Alves <palves@redhat.com>
1885
1886 * tui/tui-regs.c (tui_register_format): Don't look at the
1887 register's name here. Return string representing register
1888 value instead of storing it in the data element.
1889 (tui_get_register): Compare register string representations
1890 instead of register value states and contents.
1891
1892 2013-09-05 Pedro Alves <palves@redhat.com>
1893
1894 PR tui/15933
1895 * tui/tui-regs.c (tui_show_registers): Show registers of the
1896 selected frame, not the current frame.
1897
1898 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
1899
1900 * MAINTAINERS (Write After Approval): Add myself to the list.
1901
1902 2013-09-04 Doug Evans <dje@google.com>
1903
1904 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1905 (queue_and_load_dwo_tu): New function.
1906 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1907 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1908 Make dependent_cu optional.
1909 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1910 and an older .gdb_index is in use, queue and load all its TUs too.
1911
1912 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1913
1914 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1915 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1916 variable search_flags.
1917 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1918 (OPF_RETURN_REALPATH): ... here.
1919 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1920 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1921 call. Twice.
1922 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1923 openp call.
1924 * solib.c (solib_find): Likewise. Four times.
1925 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1926 in the function comment and for the realpath_fptr variable.
1927 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1928 (find_and_open_source): Likewise. Twice.
1929 * symfile.c (symfile_bfd_open): Likewise, also twice.
1930
1931 2013-09-04 Doug Evans <dje@google.com>
1932
1933 * progspace.c (save_current_space_and_thread): Remove unnecessary
1934 call to save_current_inferior.
1935
1936 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
1937
1938 * sh64-tdep.c (sh64_do_register): Return after printing message
1939 about unavailable register contents.
1940
1941 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1942 Pedro Alves <palves@redhat.com>
1943
1944 * symfile.c (add_symbol_file_command): Error out on unknown
1945 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1946 options and collapse into single conditional branch.
1947
1948 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
1949
1950 * inf-child.c (inf_child_follow_fork): New parameter
1951 detach_fork.
1952 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1953 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1954 * inferior.h (detach_fork): Remove.
1955 * infrun.c (detach_fork): Adjust comment and make it
1956 static.
1957 (follow_fork): Pass detach_fork parameter to
1958 target_follow_fork.
1959 * linux-nat.c (linux_child_follow_fork): New parameter
1960 detach_fork.
1961 * target.c (target_follow_fork): New parameter detach_fork.
1962 Pass detach_fork as parameter and print its value.
1963 * target.h (struct target_ops) <to_follow_fork>: New int
1964 parameter.
1965 (target_follow_fork): New parameter detach_fork.
1966
1967 2013-09-03 Joel Brobecker <brobecker@adacore.com>
1968
1969 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1970 Replace sec->bfd by sec->the_bfd_section->owner.
1971
1972 2013-09-03 Yao Qi <yao@codesourcery.com>
1973
1974 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1975 from linux_has_shared_address_space.
1976 (linux_has_shared_address_space): Call linux_is_uclinux.
1977 * linux-tdep.h (linux_is_uclinux): Declare.
1978 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1979 linux_is_uclinux.
1980
1981 2013-09-03 Yao Qi <yao@codesourcery.com>
1982
1983 * config/djgpp/fnchange.lst: Remove entry of
1984 i386-interix-nat.c and i386-interix-tdep.c.
1985 * configure.ac: Remove '*-*-interix*'.
1986 * configure: Re-generated.
1987 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1988 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1989 obsolete comments.
1990 * osabi.c (gdb_osabi_names): Remove "Interix".
1991
1992 2013-09-03 Yao Qi <yao@codesourcery.com>
1993
1994 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1995
1996 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1997
1998 * record.h (record_print_flag) <record_print_src_line,
1999 record_print_insn_range>: Rename into ...
2000 (record_print_flag) <record_print_src_line,
2001 record_print_insn_range>: ... this. Update all users.
2002
2003 2013-09-02 Pierre Muller <muller@sourceware.org>
2004
2005 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2006 error code.
2007
2008 2013-09-02 Pierre Muller <muller@sourceware.org>
2009
2010 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2011 by use of plongest function.
2012
2013 2013-09-02 Tristan Gingold <gingold@adacore.com>
2014
2015 * NEWS: Add entry mentioning support for native Windows x64
2016 SEH data.
2017
2018 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2019 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2020 (struct amd64_windows_frame_cache): New struct.
2021 (amd64_windows_w2gdb_regnum): New global.
2022 (pc_in_range, amd64_windows_frame_decode_epilogue)
2023 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2024 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2025 (amd64_windows_frame_this_id): New functions.
2026 (amd64_windows_frame_unwind): New static global.
2027 (amd64_windows_skip_prologue): New function.
2028 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2029 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2030 with amd64_windows_skip_prologue.
2031
2032 2013-08-30 Joel Brobecker <brobecker@adacore.com>
2033
2034 GDB 7.6.1 released.
2035
2036 2013-08-30 Pedro Alves <palves@redhat.com>
2037
2038 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2039 SRC_AND_LOC.
2040
2041 2013-08-30 Pedro Alves <palves@redhat.com>
2042
2043 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2044 warning text.
2045
2046 2013-08-30 Pedro Alves <palves@redhat.com>
2047
2048 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2049 Adjust arguments to print_stack_frame.
2050
2051 2013-08-30 Pedro Alves <palves@redhat.com>
2052
2053 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2054
2055 2013-08-30 Pedro Alves <palves@redhat.com>
2056
2057 * frame.h (show_and_print_stack_frame): Delete declaration.
2058
2059 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2060
2061 PR python/15461
2062
2063 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2064 (archpy_name): Check for valid architecture.
2065 (archpy_disassemble): Ditto.
2066
2067 2013-08-29 Joel Brobecker <brobecker@adacore.com>
2068
2069 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2070 instead of "long long" in call to ptrace64.
2071
2072 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
2073
2074 * mi/mi-interp.c (mi_command_loop): Change signature to match
2075 interp_command_loop_ftype.
2076 (mi1_command_loop): Remove.
2077 (mi2_command_loop): Remove.
2078 (mi3_command_loop): Remove.
2079 (mi_interpreter_resume): Remove setting of
2080 deprecated_command_loop_hook.
2081 (_initialize_mi_interp): Set mi_command_loop as the command loop
2082 callback.
2083
2084 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2085
2086 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2087 value_type.
2088
2089 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2090
2091 * value.c (allocate_value_contents): Make static.
2092 * value.h (allocate_value_contents): Remove prototype.
2093
2094 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2095
2096 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2097 of assembling value via allocate_value_lazy and attribute setter.
2098 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2099 assembling value via allocate_value_lazy and attribute setter.
2100 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2101 assembling value via allocate_value_lazy and attribute setter.
2102
2103 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2104
2105 * value.c (value_from_contents_and_address): Replace allocate_value and
2106 memcpy with value_from_contents.
2107
2108 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2109
2110 * python/py-framefilter.c (py_print_frame): Remove usage of
2111 PyString_AsString. Use python_string_to_host_string instead.
2112 Refactor function to work with a string as a new allocation
2113 instead of a pointer.
2114 (py_print_frame): Ditto.
2115 * python/lib/gdb/frames.py (return_list): Cain iterators together
2116 instead of adding them as a list.
2117 (_sort_list): Call return_list, and remove duplicate code.
2118 (execute_frame_filters): Convert iterator to a list with list().
2119 * python/lib/gdb/command/frame_filters.py
2120 (SetFrameFilterPriority._set_filter_priority): Convert priority
2121 attribute to an integer.
2122 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2123 wrapper function __next__.
2124 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2125 define as "str".
2126
2127 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2128
2129 PR python/15752
2130 * python/py-framefilter.c (apply_frame_filter): Check
2131 gdb_python_initialized. Exit if the Python frame-filter code
2132 cannot be initialized.
2133
2134 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2135
2136 PR cli/15842
2137 * top.c (print_gdb_version): Remove erroneous newline after help
2138 text.
2139
2140 2013-08-29 Yao Qi <yao@codesourcery.com>
2141
2142 * varobj.c (install_dynamic_child): Remove trailing space.
2143 Add one blank line after variable declaration.
2144
2145 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2146
2147 PR gdb/15415
2148 * corefile.c (get_exec_file): Use exec_filename.
2149 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2150 * exec.c (exec_close): Free EXEC_FILENAME.
2151 (exec_file_attach): New variable canonical_pathname. Use
2152 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2153 EXEC_FILENAME.
2154 * exec.h (exec_filename): New.
2155 * inferior.c (print_inferior, inferior_command): Use
2156 PSPACE_EXEC_FILENAME.
2157 * mi/mi-main.c (print_one_inferior): Likewise.
2158 * progspace.c (clone_program_space, print_program_space): Likewise.
2159 * progspace.h (struct program_space): New field pspace_exec_filename.
2160 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2161 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2162
2163 2013-08-28 Will Newton <will.newton@linaro.org>
2164
2165 * common/linux-ptrace.c: Include stdint.h unconditionally.
2166
2167 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2168
2169 Code cleanup.
2170 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2171
2172 2013-08-28 Yao Qi <yao@codesourcery.com>
2173 Pedro Alves <palves@redhat.com>
2174
2175 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2176 instead of stdio_fileopen.
2177 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2178 .Call stderr_fileopen instead of stdio_fileopen.
2179 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2180 [__MINGW32__] (stderr_file_fputs): New function.
2181 (stderr_fileopen): New function.
2182 * ui-file.h (stderr_fileopen): Declare.
2183
2184 2013-08-27 Doug Evans <dje@google.com>
2185
2186 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2187 (struct dwarf2_per_cu_data): Ditto.
2188 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2189 (process_imported_unit_die): Ditto.
2190 (follow_die_sig_1): Simplify assert.
2191
2192 2013-08-27 Pedro Alves <palves@redhat.com>
2193
2194 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2195 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2196 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2197 windows_xfer_memory directly.
2198 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2199
2200 2013-08-27 Pedro Alves <palves@redhat.com>
2201
2202 * darwin-nat.c (darwin_xfer_memory): Delete.
2203 (_initialize_darwin_inferior): Don't install a
2204 deprecated_xfer_memory method.
2205
2206 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2207 Yao Qi <yao@codesourcery.com>
2208
2209 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2210 (parse_no_frames_option): Remove.
2211 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2212 (mi_cmd_stack_list_args): Adjust.
2213 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2214 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2215 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2216 Caller update.
2217 (list_args_or_locals): New parameter 'skip_unavailable'.
2218 Handle it.
2219 * valprint.c (scalar_type_p): Rename to ...
2220 (val_print_scalar_type_p): ... this. Make extern.
2221 (val_print, value_check_printable): Adjust.
2222 * valprint.h (val_print_scalar_type_p): Declare.
2223 * value.c (value_entirely_unavailable): New function.
2224 * value.h (value_entirely_unavailable): Declare.
2225
2226 * NEWS: Mention the new option "--skip-unavailable" to MI
2227 commands '-stack-list-locals', '-stack-list-arguments' and
2228 '-stack-list-variables'.
2229
2230 2013-08-27 Yao Qi <yao@codesourcery.com>
2231
2232 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2233 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2234 options.
2235 * mi/mi-getopt.c (mi_getopt): Remove.
2236 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2237 'error_on_unknown'.
2238 (mi_getopt): Call mi_getopt_1.
2239 (mi_getopt_silent): New.
2240 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2241
2242 2013-08-26 Doug Evans <dje@google.com>
2243
2244 PR symtab/15885
2245 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2246 .gdb_index is in use.
2247 * symfile.c (reread_symbols): Reset objfile->sf.
2248
2249 * NEWS: Document "mt print objfiles" now takes optional regexp.
2250 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2251 regexp of objfiles to print.
2252 (_initialize_symmisc): Update doc string for "mt print objfiles".
2253
2254 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2255 missing debug info checks.
2256
2257 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2258 Ulrich Weigand <uweigand@de.ibm.com>
2259
2260 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2261 line tables generated by XLC compiled binaries.
2262
2263 2013-08-23 Doug Evans <dje@google.com>
2264
2265 * symmisc.c (dump_symtab): Delete prototype.
2266 (dump_msymbols, dump_objfile): Ditto.
2267 (maintenance_info_symtabs): Mark as dont_repeat.
2268 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2269
2270 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2271 debugging printf to better location.
2272
2273 2013-08-23 Pedro Alves <palves@redhat.com>
2274
2275 * target.c (target_read_live_memory): Change type of 'ret' local
2276 to LONGEST.
2277
2278 2013-08-23 Pedro Alves <palves@redhat.com>
2279
2280 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2281 (remote_read_bytes): Change return type to LONGEST, and adjust to
2282 return a target_xfer_error on error.
2283 (remote_xfer_memory): Delete.
2284 (remote_flash_write): Change type of 'ret' local to LONGEST.
2285 (remote_xfer_partial, remote_xfer_partial): Adjust.
2286 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2287
2288 2013-08-23 Pierre Muller <muller@sourceware.org>
2289
2290 ARI fix: Push # directives to start of line.
2291 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2292
2293 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2294
2295 PR gdb/15501
2296 * breakpoint.c (enable_command, disable_command): Iterate over
2297 all specified breakpoint locations.
2298
2299 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2300
2301 * common/linux-ptrace.c (linux_fork_to_function): Push #
2302 directives to the start of the line.
2303 (linux_check_ptrace_features): Fix warning message to use
2304 the "_" markup.
2305
2306 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2307
2308 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2309 nat/linux-waitpid.h.
2310 (linux-waitpid.o): New object file rule.
2311 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2312 (current_ptrace_options): Moved from linux-nat.c.
2313 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2314 parameters.
2315 (linux_fork_to_function): New function.
2316 (linux_grandchild_function): Likewise.
2317 (linux_child_function): Likewise.
2318 (linux_check_ptrace_features): New function, heavily
2319 based on linux-nat.c:linux_test_for_tracefork.
2320 (linux_enable_event_reporting): New function.
2321 (ptrace_supports_feature): Likewise.
2322 (linux_supports_tracefork): Likewise.
2323 (linux_supports_traceclone): Likewise.
2324 (linux_supports_tracevforkdone): Likewise.
2325 (linux_supports_tracesysgood): Likewise.
2326 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2327 gdbserver/linux-low.c.
2328 (linux_enable_event_reporting): New declaration.
2329 (linux_supports_tracefork): Likewise.
2330 (linux_supports_traceclone): Likewise.
2331 (linux_supports_tracevforkdone): Likewise.
2332 (linux_supports_tracesysgood): Likewise.
2333 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2334 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2335 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2336 * config/arm/linux.mh (NATDEPFILES): Likewise.
2337 * config/i386/linux.mh (NATDEPFILES): Likewise.
2338 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2339 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2340 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2341 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2342 * config/mips/linux.mh (NATDEPFILES): Likewise.
2343 * config/pa/linux.mh (NATDEPFILES): Likewise..
2344 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2345 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2346 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2347 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2348 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2349 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2350 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2351 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2352 ptrace's 4th argument's types.
2353 Check the type of PTRACE_TYPE_ARG4.
2354 * configure: Regenerate.
2355 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2356 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2357 (linux_supports_tracefork_flag): Remove.
2358 (linux_supports_tracesysgood_flag): Likewise.
2359 (linux_supports_tracevforkdone_flag): Likewise.
2360 (current_ptrace_options): Moved to
2361 common/linux-ptrace.c.
2362 (linux_tracefork_child): Remove.
2363 (my_waitpid): Remove.
2364 (linux_test_for_tracefork): Renamed to
2365 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2366 (linux_test_for_tracesysgood): Remove.
2367 (linux_supports_tracesysgood): Remove.
2368 (linux_supports_tracefork): Remove.
2369 (linux_supports_tracevforkdone): Remove.
2370 (linux_enable_tracesysgood): Remove.
2371 (linux_enable_event_reporting): Remove.
2372 (linux_init_ptrace): New function.
2373 (linux_child_post_attach): Call linux_init_ptrace.
2374 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2375 (linux_child_follow_fork): Call linux_supports_tracefork
2376 and linux_supports_tracevforkdone.
2377 (linux_child_insert_fork_catchpoint): Call
2378 linux_supports_tracefork.
2379 (linux_child_insert_vfork_catchpoint): Likewise.
2380 (linux_child_set_syscall_catchpoint): Call
2381 linux_supports_tracesysgood.
2382 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2383 * nat/linux-nat.h: New file.
2384 * nat/linux-waitpid.c: New file.
2385 * nat/linux-waitpid.h: New file.
2386
2387 2013-08-22 Samuel Bronson <naesten@gmail.com>
2388
2389 ARM Linux support for `catch syscall'.
2390 * syscalls/arm-linux.py: New file.
2391 * syscalls/arm-linux.xml: Likewise.
2392 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2393 (arm_linux_init_abi): Register the new function and syscall xml file.
2394 * data-directory/Makefile.in: Install the new syscall xml file.
2395 * NEWS: Brag about this.
2396
2397 2013-08-22 Pedro Alves <palves@redhat.com>
2398
2399 PR gdb/15871
2400 * corefile.c (target_xfer_memory_error): New function.
2401 (memory_error): Defer EIO to target_memory_error.
2402 (read_memory): Use target_xfer_partial, and handle finer-grained
2403 target xfer errors.
2404 * target.c (target_xfer_error_to_string): New function.
2405 (memory_xfer_partial_1): If memory is known to be
2406 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2407 (target_xfer_partial): Make extern.
2408 * target.h (enum target_xfer_error): New enum.
2409 (target_xfer_error_to_string): Declare function.
2410 (target_xfer_partial): Declare function.
2411 (struct target_ops) <xfer_partial>: Adjust describing comment.
2412
2413 2013-08-22 Alan Modra <amodra@gmail.com>
2414
2415 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2416 * configure.tgt: Likewise as targets.
2417
2418 2013-08-20 Doug Evans <dje@google.com>
2419
2420 * buildsym.c (subfile_stack): Move here from buildsym.h.
2421 (pending_macros): Ditto.
2422 (get_macro_table): New function.
2423 (buildsym_init): Initialize subfile_stack.
2424 * coffread.c (type_vector,type_vector_length): Moved here from
2425 buildsym.h.
2426 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2427 (coff_symtab_read): Use it.
2428 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2429 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2430 with call to get_macro_table.
2431 * stabsread.c (type_vector,type_vector_length): Moved here from
2432 buildsym.h.
2433 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2434 * buildsym.h (get_macro_table): Declare.
2435
2436 2013-08-20 Tom Tromey <tromey@redhat.com>
2437
2438 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2439 Update.
2440 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2441
2442 2013-08-20 Doug Evans <dje@google.com>
2443
2444 * blockframe.c: Remove #include "psymtab.h".
2445 * cp-support.c: Ditto.
2446 * source.c: Ditto.
2447 * stack.c: Ditto.
2448
2449 2013-08-20 Tom Tromey <tromey@redhat.com>
2450
2451 PR python/15816:
2452 * exceptions.h (return_mask): Now an enum.
2453 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2454 enum constants.
2455
2456 2013-08-20 Tom Tromey <tromey@redhat.com>
2457
2458 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2459 get_objfile_arch.
2460 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2461 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2462 * jit.c (jit_object_close_impl): Update.
2463 * jv-lang.c (get_dynamics_objfile): Update.
2464 * linespec.c (add_minsym): Use get_dynamics_objfile.
2465 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2466 (allocate_objfile): Don't initialize 'gdbarch' field.
2467 (get_objfile_arch): Update.
2468 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2469 moved from...
2470 (struct objfile) <gdbarch>: ... here. Remove.
2471 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2472 get_objfile_arch.
2473 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2474
2475 2013-08-20 Alan Modra <amodra@gmail.com>
2476
2477 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2478 for IBM long double nan and inf.
2479 (floatformat_is_negative, floatformat_classify,
2480 floatformat_mantissa): Similarly.
2481 (floatformat_ieee_single, floatformat_ieee_double,
2482 floatformat_ieee_quad, floatformat_arm_ext,
2483 floatformat_ia64_spill): Delete unused vars.
2484 (_initialize_doublest): Delete unused function.
2485 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2486 little-endian variants of floatformat_ibm_long_double.
2487
2488 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2489
2490 * Makefile.in (SFILES): Remove common/target-common.c and
2491 add target/waitstatus.c.
2492 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2493 target/resume.h, target/wait.h and target/waitstatus.h.
2494 (COMMON_OBS): Remove target-common.o and add
2495 waitstatus.o.
2496 (target-common.o): Remove.
2497 (waitstatus.o): New target object file.
2498 * common/target-common.c: Move contents to
2499 target/waitstatus.c and remove.
2500 * common/target-common.h: Move contents to other files and
2501 remove.
2502 (enum resume_kind: Move to target/resume.h.
2503 (TARGET_WNOHANG): Move to target/wait.h.
2504 (enum target_waitkind): Move to target/waitstatus.h.
2505 (struct target_waitstatus): Likewise.
2506 * target.h: Do not include target-common.h and
2507 include target/resume.h, target/wait.h and
2508 target/waitstatus.h.
2509 * target/resume.h: New file.
2510 * target/wait.h: New file.
2511 * target/waitstatus.h: New file.
2512 * target/waitstatus.c: New file.
2513
2514 2013-08-19 Pedro Alves <palves@redhat.com>
2515
2516 * linux-nat.c (linux_test_for_tracefork)
2517 (linux_test_for_tracesysgood, linux_child_follow_fork)
2518 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2519 (linux_nat_wait_1): Extend comment.
2520 (linux_async_pipe): Add comment.
2521
2522 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2523
2524 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2525 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2526 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2527 Update to account for fact that PC is now a pseudo-register.
2528 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2529 cases for RL78_PC_REGNUM.
2530
2531 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2532
2533 PR cli/15841
2534 * top.c (quit_force): Skip writing history file
2535 if input is not from terminal.
2536
2537 2013-08-14 Tom Tromey <tromey@redhat.com>
2538
2539 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2540 resultthreadlist>: New fields.
2541 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2542 (remote_get_threadlist, remote_threadlist_iterator): Use
2543 new fields. Remove static variables.
2544
2545 2013-08-14 Tom Tromey <tromey@redhat.com>
2546
2547 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2548 remote_watch_data_address>: New fields.
2549 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2550 (process_stop_reply, remote_wait_as)
2551 (remote_check_watch_resources, remote_stopped_data_address): Update.
2552
2553 2013-08-14 Tom Tromey <tromey@redhat.com>
2554
2555 * remote.c (struct remote_state) <async_client_callback,
2556 async_client_context>: New fields.
2557 (async_client_callback, async_client_context): Remove.
2558 (remote_async_serial_handler, remote_async): Update.
2559
2560 2013-08-14 Tom Tromey <tromey@redhat.com>
2561
2562 * remote.c (sizeof_pkt): Remove.
2563 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2564
2565 2013-08-14 Tom Tromey <tromey@redhat.com>
2566
2567 * remote.c (struct remote_state) <use_threadinfo_query,
2568 use_threadextra_query>: New fields.
2569 (remote_threads_info, remote_threads_extra_info)
2570 (remote_open_1): Update.
2571
2572 2013-08-14 Tom Tromey <tromey@redhat.com>
2573
2574 * remote.c (struct remote_state) <finished_object,
2575 finished_annex, finished_offset>: New fields.
2576 (remote_read_qxfer): Use remote_state fields; remove static
2577 variables.
2578
2579 2013-08-14 Tom Tromey <tromey@redhat.com>
2580
2581 * remote.c (struct remote_state) <last_sent_step>:
2582 New field.
2583 (last_sent_step): Remove.
2584 (remote_resume, remote_wait_as): Update.
2585
2586 2013-08-14 Tom Tromey <tromey@redhat.com>
2587
2588 * remote.c (struct remote_state) <last_sent_signal>:
2589 New field.
2590 (last_sent_signal): Remove.
2591 (new_remote_state, remote_resume, remote_wait_as): Update.
2592
2593 2013-08-14 Tom Tromey <tromey@redhat.com>
2594
2595 * remote.c (struct remote_state) <last_program_signals_packet>:
2596 New field.
2597 (last_program_signals_packet): Remove.
2598 (remote_program_signals, remote_open_1): Update.
2599
2600 2013-08-14 Tom Tromey <tromey@redhat.com>
2601
2602 * remote.c (struct remote_state) <last_pass_packet>:
2603 New field.
2604 (last_pass_packet): Remove.
2605 (remote_pass_signals, remote_open_1): Update.
2606
2607 2013-08-14 Tom Tromey <tromey@redhat.com>
2608
2609 * remote.c (struct remote_state) <remote_traceframe_number>:
2610 New field.
2611 (remote_traceframe_number): Remove.
2612 (new_remote_state, remote_open_1, set_remote_traceframe)
2613 (remote_trace_find): Update.
2614
2615 2013-08-14 Tom Tromey <tromey@redhat.com>
2616
2617 * remote.c (struct remote_state) <general_thread, continue_thread>:
2618 New fields.
2619 (general_thread, continue_thread): Remove.
2620 (record_currthread, set_thread, set_general_process)
2621 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2622 (extended_remote_mourn_1): Update.
2623
2624 2013-08-14 Tom Tromey <tromey@redhat.com>
2625
2626 * remote.c (struct remote_state) <remote_desc>: New field.
2627 (remote_desc): Remove.
2628 (remote_threads_info, remote_threads_extra_info, remote_close)
2629 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2630 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2631 (remote_hostio_send_command, remote_file_put, remote_file_get)
2632 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2633 (remote_async, remote_new_objfile, set_range_stepping): Update.
2634
2635 2013-08-14 Tom Tromey <tromey@redhat.com>
2636
2637 * remote.c (remote_state): Now a pointer.
2638 (get_remote_state_raw): Update.
2639 (new_remote_state): New function.
2640 (_initialize_remote): Use new_remote_state.
2641
2642 2013-08-14 Tom Tromey <tromey@redhat.com>
2643
2644 * remote.c (remote_protocol_features): Now const.
2645
2646 2013-08-14 Tom Tromey <tromey@redhat.com>
2647
2648 * remote.c (crc32_table, crc32): Remove.
2649 (remote_verify_memory): Use xcrc32.
2650
2651 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2652
2653 * value.h (create_internalvar_type_lazy): Adjust prototype
2654 declaration.
2655
2656 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
2657
2658 * common/format.c (parse_format_string): Don't allow '#' flag for
2659 pointer arguments in format string.
2660
2661 2013-08-13 Pierre Muller <muller@sourceware.org>
2662
2663 * utils.c (init_page_info): Only call tgetnum function
2664 if rl_get_screen_size did not return useful values.
2665
2666 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2667
2668 PR breakpoints/15117
2669 * linespec.c (linespec_parse_basic): Check for convenience
2670 variable or history value while parsing.
2671
2672 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2673
2674 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2675 AVR.
2676 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2677 different signals between the generic Linux kernel implementation
2678 and AVR's.
2679 (avr_linux_gdb_signal_from_target): Delete.
2680 (avr_linux_gdb_signal_to_target): Delete.
2681 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2682
2683 2013-08-09 Doug Evans <dje@google.com>
2684
2685 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2686 entries.
2687
2688 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2689
2690 * linux-tdep.c: Define enum with generic signal numbers.
2691 (linux_gdb_signal_from_target): New function.
2692 (linux_gdb_signal_to_target): Likewise.
2693 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2694 methods to the functions above.
2695 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2696 (linux_gdb_signal_to_target): Likewise.
2697 * alpha-linux-tdep.c: Define new enum with signals different
2698 from generic Linux kernel.
2699 (alpha_linux_gdb_signal_from_target): New function.
2700 (alpha_linux_gdb_signal_to_target): Likewise.
2701 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2702 with the functions mentioned above.
2703 * avr-tdep.c: Define enum with differences between Linux kernel
2704 and AVR signals.
2705 (avr_linux_gdb_signal_from_target): New function.
2706 (avr_linux_gdb_signal_to_target): Likewise.
2707 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2708 the functions mentioned above.
2709 * sparc-linux-tdep.c: Define enum with differences between SPARC
2710 and generic Linux kernel signal numbers.
2711 (sparc32_linux_gdb_signal_from_target): New function.
2712 (sparc32_linux_gdb_signal_to_target): Likewise.
2713 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2714 to the functions defined above.
2715 * xtensa-linux-tdep.c: Define enum with differences between
2716 Xtensa and Linux kernel generic signals.
2717 (xtensa_linux_gdb_signal_from_target): New function.
2718 (xtensa_linux_gdb_signal_to_target): Likewise.
2719 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2720 to the functions defined above.
2721 * mips-linux-tdep.c: Define enum with differences between
2722 signals in MIPS and Linux kernel generic ones.
2723 (mips_gdb_signal_to_target): New function.
2724 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2725 only different signals from the Linux kernel generic.
2726 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2727 the functions defined above.
2728 * mips-linux-tdep.h (enum mips_signals): Remove.
2729
2730 2013-08-09 Pedro Alves <palves@redhat.com>
2731
2732 * avr-tdep.c (XMALLOC): Delete macro.
2733 * cli/cli-dump.c (XMALLOC): Delete macro.
2734
2735 2013-08-09 Pedro Alves <palves@redhat.com>
2736
2737 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2738 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2739 (fopen_with_cleanup, add_dump_command): Make static.
2740 * cli/cli-dump.h: Delete file.
2741 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2742 cli/cli-dump.h.
2743
2744 2013-08-09 Pedro Alves <palves@redhat.com>
2745
2746 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2747 error message.
2748
2749 2013-08-09 Pedro Alves <palves@redhat.com>
2750
2751 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2752 error message.
2753
2754 2013-08-09 Pedro Alves <palves@redhat.com>
2755
2756 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2757 (gcore_command): Use tilde_expand here, and when showing the
2758 filename to the user, show the expanded version.
2759
2760 2013-08-09 Yao Qi <yao@codesourcery.com>
2761
2762 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2763 'entryval' is set.
2764
2765 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2766
2767 * gcore.c (create_gcore_bfd): Use tilde_expand.
2768
2769 2013-08-08 Yao Qi <yao@codesourcery.com>
2770
2771 * frame.h (read_frame_local): Declare.
2772 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2773 read_frame_local.
2774 * stack.c (read_frame_local): New.
2775
2776 2013-08-08 Yao Qi <yao@codesourcery.com>
2777
2778 * mi/mi-cmd-stack.c: Update comments to function
2779 list_args_or_locals.
2780
2781 2013-08-07 Tom Tromey <tromey@redhat.com>
2782
2783 PR symtab/15028:
2784 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2785 (process_psymtab_comp_unit_reader): Use it.
2786 (process_psymtab_comp_unit): Update. Add "pretend_language"
2787 argument.
2788 (dwarf2_build_psymtabs_hard): Update.
2789 (scan_partial_symbols): Pass CU's language to
2790 process_psymtab_comp_unit.
2791
2792 2013-08-07 Tom Tromey <tromey@redhat.com>
2793
2794 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2795 (dwarf2_gdb_index_functions): Update.
2796 * psymtab.c (find_symbol_file_from_partial): Remove.
2797 (psym_functions): Update.
2798 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2799 Remove.
2800
2801 2013-08-07 Tom Tromey <tromey@redhat.com>
2802
2803 * symfile.c (set_initial_language): Look up "main" symbol
2804 and use its language.
2805 * symtab.c (find_main_filename): Remove.
2806 * symtab.h (find_main_filename): Remove.
2807
2808 2013-08-07 Tom Tromey <tromey@redhat.com>
2809
2810 * dwarf2read.c (recursively_compute_inclusions): Add
2811 "immediate_parent" argument. Set symtab's "user" field
2812 if not set.
2813 (compute_symtab_includes): Update.
2814
2815 2013-08-07 Tom Tromey <tromey@redhat.com>
2816
2817 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2818 when adding label symbols.
2819
2820 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2821 Ulrich Weigand <uweigand@de.ibm.com>
2822
2823 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2824 * configure.host (powerpc64-*-aix*): Likewise.
2825
2826 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2827 Ulrich Weigand <uweigand@de.ibm.com>
2828
2829 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2830 is defined.
2831 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2832 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2833 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2834 * configure.ac: Check for ptrace64.
2835 * configure, config.in: Regenerate.
2836
2837 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2838 Ulrich Weigand <uweigand@de.ibm.com>
2839
2840 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2841 Call ptrace64 instead of ptrace if defined.
2842 Add macro addr_ptr to take care of ptrace address argument.
2843 (pdc_read_regs): Likewise.
2844 (pdc_write_regs): Likewise.
2845 (aix_thread_resume): Likewise.
2846 (fetch_regs_kernel_thread): Likewise.
2847 (store_regs_kernel_thread): Likewise.
2848
2849 2013-08-07 Anton Blanchard <anton@samba.org>
2850
2851 * MAINTAINERS: Add myself to Write After Approval.
2852
2853 2013-08-05 Tom Tromey <tromey@redhat.com>
2854
2855 * aix-thread.c (_initialize_aix_thread): Use
2856 complete_target_initialization.
2857 * bsd-uthread.c (_initialize_bsd_uthread): Use
2858 complete_target_initialization.
2859 * dec-thread.c (_initialize_dec_thread): Use
2860 complete_target_initialization.
2861 * ravenscar-thread.c (_initialize_ravenscar): Use
2862 complete_target_initialization.
2863 * sol-thread.c (_initialize_sol_thread): Use
2864 complete_target_initialization.
2865 * spu-multiarch.c (_initialize_spu_multiarch): Use
2866 complete_target_initialization.
2867
2868 2013-08-05 Tom Tromey <tromey@redhat.com>
2869
2870 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2871 * ada-lang.c (ada_lookup_simple_minsym): Return
2872 bound_minimal_symbol.
2873 * ada-lang.h (ada_lookup_simple_minsym): Update.
2874 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2875 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2876 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2877 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2878 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2879 * minsyms.c (msymbol_objfile): Remove.
2880 (lookup_minimal_symbol_internal): New function, from
2881 lookup_minimal_symbol.
2882 (lookup_minimal_symbol): Rewrite using
2883 lookup_minimal_symbol_internal.
2884 (lookup_bound_minimal_symbol): New function.
2885 * minsyms.h (msymbol_objfile): Remove.
2886 (lookup_bound_minimal_symbol): Declare.
2887 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2888 * parse.c (write_exp_msymbol): Change parameter to a
2889 bound_minimal_symbol.
2890 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2891 * parser-defs.h (write_exp_msymbol): Update.
2892 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2893 * symfile.c (simple_read_overlay_table): Use
2894 lookup_bound_minimal_symbol.
2895 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2896 (search_symbols): Likewise.
2897 (print_msymbol_info): Take a bound_minimal_symbol argument.
2898 (symtab_symbol_info, rbreak_command): Update.
2899 * symtab.h (struct symbol_search) <msymbol>: Change type
2900 to bound_minimal_symbol.
2901 * valops.c (find_function_in_inferior): Use
2902 lookup_bound_minimal_symbol.
2903 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2904
2905 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2906
2907 Code cleanup.
2908 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2909 to ...
2910 (async_cleanup_sigint_signal_handler): ... this.
2911 (initialize_sigint_signal_handler): Remove declaration.
2912 (handle_remote_sigint): Rename the declaration to ...
2913 (async_handle_remote_sigint): ... this.
2914 (handle_remote_sigint_twice): Rename the declaration to ...
2915 (async_handle_remote_sigint_twice): ... this.
2916 (async_remote_interrupt, async_remote_interrupt_twice)
2917 (remote_interrupt): Remove the declarations.
2918 (remote_interrupt_twice): Rename the declaration ...
2919 (sync_remote_interrupt_twice): ... this.
2920 (sigint_remote_twice_token): Rename the variable to ...
2921 (async_sigint_remote_twice_token): ... this.
2922 (sigint_remote_token): Rename the variable to ...
2923 (async_sigint_remote_token): ... this.
2924 (initialize_sigint_signal_handler): Rename the function to ...
2925 (async_initialize_sigint_signal_handler): ... this. Update the name
2926 inside.
2927 (handle_remote_sigint): Rename the function to ...
2928 (async_handle_remote_sigint): ... this. Update the names inside.
2929 (handle_remote_sigint_twice): Rename the function to ...
2930 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2931 (cleanup_sigint_signal_handler): Rename the function to ...
2932 (async_cleanup_sigint_signal_handler): ... this.
2933 (remote_interrupt): Rename the function to ...
2934 (sync_remote_interrupt): this. Update the names inside.
2935 (remote_interrupt_twice): Rename the function to ...
2936 (sync_remote_interrupt_twice): this. Update the names inside.
2937 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2938 (_initialize_remote): Update the names inside.
2939
2940 2013-08-02 Tom Tromey <tromey@redhat.com>
2941
2942 PR symtab/15719:
2943 * breakpoint.c (update_watchpoint, watchpoint_check)
2944 (watch_command_1): Update.
2945 * eval.c (fetch_subexp_value): Add "preserve_errors"
2946 parameter.
2947 * ppc-linux-nat.c (check_condition): Update.
2948 * value.h (fetch_subexp_value): Update.
2949
2950 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
2951
2952 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2953 add_file_handler.
2954
2955 2013-08-01 Doug Evans <dje@google.com>
2956
2957 PR symtab/15691
2958 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2959 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2960 Add assert of sig_entry->dwo_unit == NULL.
2961 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2962 had already been read.
2963 (read_signatured_type): Set per_cu.tu_read.
2964
2965 PR symtab/15695
2966 * valops.c (value_struct_elt): Add missing call to check_typedef.
2967 (value_find_oload_method_list): Ditto.
2968
2969 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2970 effectively, struct symbol_search **.
2971 (make_cleanup_free_search_symbols): Change arg to struct
2972 symbol_search **. All callers updated.
2973 (compare_search_syms): Compare symtab file name and block as well.
2974 (search_symbols_equal): New function.
2975 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2976 New args new_head, new_tail. Result is now void. Remove dups after
2977 sorting the symbols.
2978 (search_symbols): Sort all found symbols once, after all have been
2979 found, and remove duplicates. Simplify cleanup tracking of result.
2980 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2981
2982 Further workarounds for binutils/15021.
2983 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2984 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2985 Watch for duplicate symtabs coming from type units.
2986 (compute_symtab_includes): Update call to
2987 recursively_compute_inclusions. Build vector of included symtabs
2988 instead of per_cus.
2989 * symtab.h (symtab_ptr): New typedef.
2990 (DEF_VEC_P (symtab_ptr)): New VEC type.
2991 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2992 instead.
2993
2994 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
2995
2996 * cli/cli-script.c (script_from_file): Remove use of
2997 error_pre_print.
2998 * main.c (captured_main): Remove use of error_pre_print and
2999 quit_pre_print.
3000 * utils.c (error_pre_print, quit_pre_print): Remove.
3001 * utils.h (error_pre_print, quit_pre_print): Likewise.
3002
3003 2013-08-01 Yao Qi <yao@codesourcery.com>
3004
3005 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3006 with mi_getopt.
3007 (mi_cmd_stack_list_variables): Likewise.
3008
3009 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3010
3011 * exceptions.c (deprecated_throw_reason): Remove.
3012 * exceptions.h (deprecated_throw_reason): Remove.
3013
3014 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3015
3016 * remote-mips.c (mips_error): Replace use of
3017 deprecated_throw_reason with throw_verror. Use the error message
3018 passed to mips_error as the error message for throw_verror.
3019
3020 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3021
3022 * monitor.c (monitor_interrupt_query): Replace use of
3023 deprecated_throw_reason with quit.
3024 * nto-procfs.c (interrupt_query): Likewise.
3025 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3026 * remote-mips.c (mips_kill): Likewise.
3027 * remote.c (interrupt_query): Likewise.
3028
3029 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3030
3031 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3032 with call to fatal.
3033
3034 2013-07-31 Pedro Alves <pedro@codesourcery.com>
3035 Yao Qi <yao@codesourcery.com>
3036
3037 * tracepoint.c (trace_dump_command): Select the current frame.
3038
3039 2013-07-30 Doug Evans <dje@google.com>
3040
3041 * dwarf2read.c (process_queue): Add type signature to debug output.
3042
3043 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3044
3045 * value.c (value_fetch_lazy): Mark optimized out values as such
3046 rather than raising an error.
3047
3048 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3049
3050 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3051 before checking which bits of the parent, not the child, value are
3052 valid.
3053
3054 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3055
3056 PR gdb/15715
3057 * top.c: Include "filenames.h".
3058 (set_history_filename): New function.
3059 (init_main): Install it as set hook of the "set history filename"
3060 command.
3061
3062 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3063
3064 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3065 attribute parameter.
3066 (dwarf2_const_value_data): Constify struct attribute parameter.
3067 (dwarf2_const_value): Constify struct attribute parameter.
3068 (dwarf2_const_value_attr): Constify struct attribute parameter.
3069 (lookup_die_type): Constify struct attribute parameter.
3070 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3071 (follow_die_ref_or_sig): Constify struct attribute parameter.
3072 (follow_die_ref): Constify struct attribute parameter.
3073 (follow_die_sig): Constify struct attribute parameter.
3074 (get_DW_AT_signature_type): Constify struct attribute parameter.
3075 (get_type_unit_group): Constify struct attribute parameter.
3076 (fill_in_loclist_baton): Constify struct attribute parameter.
3077 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3078 (type_unit_group): Constify struct attribute parameter.
3079
3080 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3081
3082 * dwarf2read.c (attr_form_is_block): Make argument const.
3083 (attr_form_is_section_offset): Make argument const.
3084 (attr_form_is_constant): Make argument const.
3085 (attr_form_is_ref): Make argument const.
3086
3087 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3088
3089 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3090 All uses updated.
3091 (attr_form_is_ref): Moved below attr_form_is_constant.
3092
3093 2013-07-29 Doug Evans <dje@google.com>
3094
3095 * main.c (captured_command_loop): Tweak comment.
3096
3097 * target.c (target_async_permitted_1): Fix comment.
3098
3099 * symtab.c (iterate_over_some_symtabs): Add comment.
3100
3101 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3102
3103 2013-07-27 Yao Qi <yao@codesourcery.com>
3104
3105 * NEWS: Mention that GDBserver now supports hardware
3106 watchpoints on the MIPS GNU/Linux target.
3107
3108 2013-07-27 Yao Qi <yao@codesourcery.com>
3109
3110 * Makefile.in (HFILES_NO_SRCDIR): Add
3111 common/mips-linux-watch.h.
3112 (mips-linux-watch.o): New rule.
3113 * common/mips-linux-watch.c: New.
3114 * common/mips-linux-watch.h: New.
3115 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3116 * mips-linux-nat.c: Include mips-linux-watch.h.
3117 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3118 to common/mips-linux-watch.h.
3119 (MAX_DEBUG_REGISTER): Likewise.
3120 (enum pt_watch_style): Likewise.
3121 (struct mips32_watch_regs): Likewise.
3122 (struct mips64_watch_regs): Likewise.
3123 (struct pt_watch_regs): Likewise.
3124 (struct mips_watchpoint): Likewise.
3125 (mips_linux_watch_get_irw_mask): Move to
3126 common/mips-linux-watch.c.
3127 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3128 (mips_linux_watch_get_watchlo): Likewise.
3129 (mips_linux_watch_set_watchlo): Likewise.
3130 (mips_linux_watch_get_watchhi): Likewise.
3131 (mips_linux_watch_set_watchhi): Likewise.
3132 (mips_linux_read_watch_registers): Likewise.
3133 (mips_linux_watch_type_to_irw): Likewise.
3134 (mips_linux_stopped_data_address, fill_mask): Likewise.
3135 (mips_linux_watch_try_one_watch): Likewise.
3136 (mips_linux_watch_populate_regs): Likewise.
3137
3138 2013-07-27 Yao Qi <yao@codesourcery.com>
3139
3140 * mips-linux-nat.c (get_irw_mask): Rename to ...
3141 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3142 'set' to 'n'. Update function comment. All callers changed.
3143 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3144 function comment. All callers changed.
3145 (get_num_valid): Rename to ...
3146 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3147 'set' to 'n'. Update function comment. All callers changed.
3148 (get_watchlo): Rename to ...
3149 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3150 'set' to 'n'. Update function comment. All callers changed.
3151 (set_watchlo): Rename to ...
3152 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3153 'set' to 'n'. Update function comment. All callers changed.
3154 (get_watchhi): Rename to ...
3155 (mips_linux_watch_get_watchhi): ... this. Update function
3156 comment. All callers changed.
3157 (set_watchhi): Rename to ...
3158 (mips_linux_watch_set_watchhi): ... this. Update function
3159 comment. All callers changed.
3160 (mips_linux_read_watch_registers): Update function comment.
3161 Add new parameters 'lwpid', 'watch_readback', and
3162 'watch_readback_valid'. Update.
3163 (type_to_irw): Rename to ...
3164 (mips_linux_watch_type_to_irw): ... this. Update function
3165 comment. All callers changed.
3166 (fill_mask): Update function comment.
3167 (try_one_watch): Rename to ...
3168 (mips_linux_watch_try_one_watch): ... this. Change the type
3169 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3170 (populate_regs_from_watches): Rename to ...
3171 (mips_linux_watch_populate_regs): ... this. Add parameter
3172 'current_watches'. All callers changed.
3173
3174 2013-07-27 Yao Qi <yao@codesourcery.com>
3175
3176 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3177 the code.
3178 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3179 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3180 (struct pt_watch_regs): Likewise.
3181 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3182 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3183 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3184 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3185 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3186
3187 2013-07-27 Yao Qi <yao@codesourcery.com>
3188
3189 * breakpoint.h: Include break-common.h.
3190 (enum target_hw_bp_type): Move to ...
3191 * common/break-common.h: ... here. New.
3192
3193 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3194
3195 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3196 process group regardless of having tty on stdin.
3197
3198 2013-07-25 Doug Evans <dje@google.com>
3199
3200 * linux-fork.h (detach_fork): Delete.
3201
3202 2013-07-25 Tom Tromey <tromey@redhat.com>
3203
3204 PR remote/15256, PR remote/15266:
3205 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3206 * monitor.c (monitor_detach): Use unpush_target.
3207 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3208 * remote-mips.c (mips_detach): Use unpush_target. Don't
3209 call mips_close.
3210 * remote-sim.c (gdbsim_detach): Use unpush_target.
3211 * target.c (pop_target): Remove.
3212 (pop_all_targets_above): Don't call target_close.
3213 (target_close): Assert that the target is unpushed.
3214 * target.h (pop_target): Don't declare.
3215 * tracepoint.c (tfile_open): Use unpush_target.
3216
3217 2013-07-25 Tom Tromey <tromey@redhat.com>
3218
3219 * linux-thread-db.c (init_thread_db_ops): Call
3220 complete_target_initialization.
3221 (_initialize_thread_db): Don't call add_target.
3222 * target.c (complete_target_initialization): New function.
3223 (add_target_with_completer): Call it.
3224 * target.h (complete_target_initialization): Declare.
3225
3226 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3227
3228 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3229 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3230 (HPPANBSD_SIZEOF_GREGS): New define.
3231 (hppaobsd_supply_gregset): Handle additional registers.
3232 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3233 we provide more registers now.
3234 (hppabsd_supply_gregset): Supply additional registers.
3235 (hppabsd_collect_gregset): Collect additional registers.
3236
3237 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3238
3239 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3240 (hppabsd_dwarf2_frame_init_reg): New function.
3241 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3242
3243 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3244
3245 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3246 'z' format code. Remove error for optimized out values, standard
3247 code will handle these fine.
3248
3249 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3250
3251 * NEWS: Mention new 'z' formatter.
3252 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3253 (_initialize_printcmd): Mention 'z' formatter in help text of the
3254 'x' command.
3255
3256 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3257
3258 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3259 formatting.
3260
3261 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3262
3263 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3264 interface can evaluate arguments. Fallback to the old mode if it
3265 cannot.
3266 (create_exception_master_breakpoint): Likewise.
3267 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3268 (struct sym_probe_fns elf_probe_fns): Export function above to the
3269 probe interface.
3270 * probe.c (can_evaluate_probe_arguments): New function.
3271 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3272 function pointer.
3273 (can_evaluate_probe_arguments): New function prototype.
3274 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3275 probe interface can evaluate arguments. Fallback to the old mode
3276 if it cannot.
3277 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3278 interface can evaluate arguments. Warning the user if it cannot.
3279 (stap_can_evaluate_probe_arguments): New function.
3280 (struct probe_ops stap_probe_ops): Export function above to the
3281 probe interface.
3282 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3283 New function pointer.
3284
3285 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3286
3287 * Makefile.in (SFILES): Add common/target-common.c.
3288 Add common/target-common.h to headers.
3289 (COMMON_OBS): Add target-common.o.
3290 (target-common.o): New target.
3291 * linux-nat.h (resume_kind): Move to common/target-common.h.
3292 * target.c (target_waitstatus_to_string): Move to
3293 common/target-common.c.
3294 * target.h: Include target-common.h.
3295 (target_waitkind): Move to common/target-common.h.
3296 (target_waitstatus): Likewise.
3297 (TARGET_WNOHANG): Likewise.
3298 * common/target-common.c: New file.
3299 * common/target-common.h: New file.
3300
3301 2013-07-24 Doug Evans <dje@google.com>
3302
3303 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3304 a warning.
3305
3306 2013-07-23 Yao Qi <yao@codesourcery.com>
3307
3308 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3309 parameter 'gdbarch'.
3310 (i386_stack_tramp_frame_sniffer): Caller update.
3311 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3312 parameter 'gdbarch' and 'target'.
3313 (i386_linux_core_read_description): Caller update.
3314 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3315 Likewise.
3316 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3317 declaration.
3318
3319 2013-07-23 Tom Tromey <tromey@redhat.com>
3320
3321 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3322 2013-07-22.
3323
3324 2013-07-22 Doug Evans <dje@google.com>
3325
3326 * exec.h (remove_target_sections): Delete arg abfd.
3327 * exec.c (exec_close): Update call to remove_target_sections.
3328 (remove_target_sections): Delete arg abfd.
3329 * solib.c (update_solib_list): Ditto.
3330 (reload_shared_libraries_1): Ditto.
3331 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3332 * target.h (struct target_section): Rename key to owner.
3333 All uses updated.
3334
3335 2013-07-22 Tom Tromey <tromey@redhat.com>
3336
3337 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3338
3339 2013-07-22 Tom Tromey <tromey@redhat.com>
3340
3341 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3342 Simplify cleanup handling.
3343
3344 2013-07-22 Tom Tromey <tromey@redhat.com>
3345
3346 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3347 on all return paths.
3348
3349 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3350
3351 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3352 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3353 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3354
3355 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3356
3357 * top.c (print_gdb_version): Add help, apropos description and
3358 url to online documentation.
3359
3360 2013-07-19 Hui Zhu <hui@codesourcery.com>
3361
3362 PR gdb/15692
3363 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3364
3365 2013-07-19 Yao Qi <yao@codesourcery.com>
3366
3367 * target.c (update_current_target): Change the default action
3368 of 'to_traceframe_info' from tcomplain to return_zero.
3369 * target.h (struct target_ops) <to_traceframe_info>: Add more
3370 comments.
3371 * valops.c (read_value_memory): Call
3372 traceframe_available_memory unconditionally.
3373
3374 2013-07-18 Yao Qi <yao@codesourcery.com>
3375
3376 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3377 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3378 symbol without prefix. If found, set its type to
3379 'mst_solib_trampoline'.
3380
3381 2013-07-17 Doug Evans <dje@google.com>
3382
3383 * NEWS: Mention "set print raw frame-arguments".
3384 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3385 * stack.c (print_raw_frame_arguments): New static global.
3386 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3387 (_initialize_stack): New command "set/show print raw frame-arguments".
3388 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3389 (set_print_raw, show_print_raw): New functions.
3390 (_initialize_valprint): New prefix command "set/show print raw".
3391 * valprint.h (value_print_options): Improve comments.
3392
3393 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3394 of all *list variables.
3395
3396 * gdbcmd.h (togglelist): Delete.
3397 * cli/cli-cmds.c (togglelist): Delete.
3398 (init_cmd_lists): Update.
3399 * cli/cli-cmds.h (togglelist): Delete.
3400
3401 2013-07-17 Tom Tromey <tromey@redhat.com>
3402
3403 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3404 dwarf2_per_objfile.
3405
3406 2013-07-16 Doug Evans <dje@google.com>
3407
3408 * nto-tdep.c (nto_relocate_section_addresses): Update,
3409 target_section.bfd deleted.
3410 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3411 * s390-tdep.c (s390_load): Ditto.
3412 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3413
3414 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3415
3416 * common/format.c (parse_format_string): Add checks for NULL
3417 character before calling strchr.
3418
3419 2013-07-16 Doug Evans <dje@google.com>
3420
3421 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3422 temp_pathname argument.
3423 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3424 when opening the file fails.
3425
3426 * target.h (struct target_section): Delete member bfd.
3427 All users updated to use the_bfd_section->owner instead.
3428 * exec.c (add_to_section_table): Assert bfd is expected value.
3429 Remove initialization of target_section.bfd.
3430 (remove_target_sections): Update.
3431 (section_table_available_memory): Update.
3432 (section_table_xfer_memory_partial): Update.
3433 (print_section_info): Update.
3434 (exec_set_section_address): Update.
3435 * record-full.c (record_full_core_xfer_partial): Update.
3436 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3437 * solib-target.c (solib_target_relocate_section_addresses): Update.
3438 * symfile.c (build_section_addr_info_from_section_table): Update.
3439 * target.c (memory_xfer_live_readonly_partial): Update.
3440 (memory_xfer_partial_1): Update.
3441
3442 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3443
3444 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3445 now available for embedded (BookE) and server (BookS) processors,
3446 correct mentions of 'booke' and adjust comments accordingly in order to
3447 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3448 (have_ptrace_booke_interface): Rename function and variable
3449 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3450 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3451 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3452 'hwdebug_point_cmp'. Update all uses.
3453 (booke_find_thread_points_by_tid): Rename function
3454 'booke_find_thread_points_by_tid' to
3455 'hwdebug_find_thread_points_by_tid'. Update all uses.
3456 (booke_insert_point): Rename function 'booke_insert_point' to
3457 'hwdebug_insert_point'. Update all uses.
3458 (booke_remove_point): Rename function 'booke_remove_point' to
3459 'hwdebug_remove_point'. Update all uses.
3460
3461 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3462
3463 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3464 numbers with enum values.
3465
3466 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3467
3468 PR threads/13217
3469 * thread.c (thread_apply_all_command): Check for valid threads
3470 and thread count.
3471 (thread_array_cleanup): New struct.
3472 (set_thread_refcount): New function.
3473
3474 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3475
3476 * infcmd.c (default_print_one_register_info): Reuse function
3477 print_hex_chars.
3478
3479 2013-07-10 Tom Tromey <tromey@redhat.com>
3480
3481 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3482 (ada-exp.o): New target.
3483
3484 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3485
3486 * mt-tdep.c (mt_registers_info): Call
3487 get_no_prettyformat_print_options instead of
3488 get_raw_print_options (regression by last patch from Doug
3489 Evans).
3490
3491 2013-07-09 Pedro Alves <palves@redhat.com>
3492
3493 Checked in by Joel Brobecker <brobecker@adacore.com>.
3494 * ada-lang.c (coerce_unspec_val_to_type): Use
3495 value_optimized_out_const.
3496 * value.c (value_optimized_out_const): New function.
3497 * value.h (value_optimized_out_const): New declaration.
3498
3499 2013-07-09 Doug Evans <dje@google.com>
3500
3501 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3502 Enum values rename as well. All uses updated.
3503 * valprint.h (value_print_options): Rename member pretty to
3504 pretty format. Rename member prettyprint_arrays to
3505 prettyformat_arrays. Rename member prettyprint_structs to
3506 prettyformat_structs. All uses updated.
3507 (get_no_prettyformat_print_options): Renamed from
3508 get_raw_print_options.
3509 * valprint.c (get_no_prettyformat_print_options): Renamed from
3510 get_raw_print_options. All callers updated.
3511 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3512 All callers updated.
3513 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3514 All callers updated.
3515 (_initialize_valprint): Improve help text for "set print pretty" and
3516 "set print arrays".
3517
3518 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3519
3520 * value.c (value_bits_valid): Revert previous change, and change
3521 by Pedro on 2013-07-04, due to regressions in
3522 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3523
3524 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3525 Pedro Alves <palves@redhat.com>
3526
3527 * value.c (value_bits_valid): If the value is not lval_computed
3528 or has no check validity handler then the answer is the
3529 optimized_out flag, otherwise defer to the handler.
3530
3531 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3532
3533 * top.c (print_gdb_configuration): Explain in output of
3534 --configuration what does "relocatable" mean.
3535
3536 * main.c (print_gdb_help): Regroup options in the --help text.
3537 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3538 the relevant discussions.
3539
3540 2013-07-06 Yao Qi <yao@codesourcery.com>
3541
3542 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3543 Remove parameter 'lsal'.
3544 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3545 to inner block. Caller update.
3546 (base_breakpoint_create_breakpoints_sal): Update.
3547 (bkpt_create_breakpoints_sal): Likewise.
3548 (tracepoint_create_breakpoints_sal): Likewise.
3549 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3550 element 0 of vector 'canonical->sals'.
3551
3552 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3553
3554 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3555 register number instead of the pseudo register one.
3556 (rs6000_dwarf2_reg_to_regnum): Likewise.
3557
3558 2013-07-04 Pedro Alves <palves@redhat.com>
3559
3560 * findvar.c (value_of_register): Use allocate_optimized_out_value
3561 if the register has been optimized out, instead of
3562 set_value_optimized_out.
3563 * frame-unwind.c (frame_unwind_got_optimized): Use
3564 allocate_optimized_out_value.
3565
3566 2013-07-04 Pedro Alves <palves@redhat.com>
3567
3568 * value.c (value_bits_valid): If the value is not lval_computed,
3569 or doesn't have a check_validity hook, assume the value is entirely
3570 valid.
3571
3572 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3573
3574 * stack.c (read_frame_arg): No longer fetch lazy values.
3575 * value.c (value_optimized_out): If the value is not already
3576 marked optimized out, and is lazy then fetch it.
3577 (value_primitive_field): Move optimized out check to later in the
3578 function, after we have loaded any lazy values.
3579 (value_fetch_lazy): Use optimized out flag directly rather than
3580 calling optimized_out method.
3581
3582 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3583
3584 * valops.c: Don't include "user-regs.h".
3585 (value_fetch_lazy): Moved to value.c.
3586 * value.c: Include "user-regs.h".
3587 (value_fetch_lazy): Moved from valops.c.
3588
3589 2013-07-04 Yao Qi <yao@codesourcery.com>
3590
3591 Revert:
3592 2013-06-27 Yao Qi <yao@codesourcery.com>
3593
3594 * common/create-version.sh: Update comments. Handle the case
3595 that TARGET_ALIAS is empty.
3596
3597 2013-07-03 Pedro Alves <palves@redhat.com>
3598
3599 * Makefile.in (config.status): Depend on development.sh.
3600 (aclocal_m4_deps): Add libmcheck.m4.
3601 * acinclude.m4: Include libmcheck.m4.
3602 * configure.ac: Source development.sh instead of setting
3603 'development' here. --enable-libmcheck/--disable-libmcheck code
3604 factored out to GDB_AC_LIBMCHECK. Run it.
3605 * development.sh: New file.
3606 * libmcheck.m4: New file.
3607 * configure: Regenerate.
3608
3609 2013-07-02 Tom Tromey <tromey@redhat.com>
3610
3611 * contrib/ari/update-web-ari.sh: Update for version.in change.
3612
3613 2013-07-02 Tom Tromey <tromey@redhat.com>
3614
3615 * common/ptid.h: Comment fixes.
3616
3617 2013-07-01 Tom Tromey <tromey@redhat.com>
3618
3619 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3620 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3621 (dwarf2_read_index, create_all_comp_units): Update.
3622
3623 2013-07-01 Tom Tromey <tromey@redhat.com>
3624
3625 * configure.ac (build_warnings): Add -Wold-style-definition.
3626 * configure: Rebuild.
3627 * machoread.c (_initialize_machoread): Use "(void)".
3628 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3629 use "(void)".
3630
3631 2013-07-01 Tom Tromey <tromey@redhat.com>
3632
3633 * configure.ac (build_warnings): Add -Wold-style-declaration.
3634 * configure: Rebuild.
3635 * dsrec.c (make_srec): Use "static const", not "const static".
3636 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3637 not "const static".
3638 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3639 Use "static const", not "const static".
3640 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3641 not "const static".
3642 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3643 not "const static".
3644 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3645 not "const static".
3646 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3647 not "const static".
3648 (v850_dbtrap_breakpoint_from_pc): Likewise.
3649 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3650 not "const static".
3651
3652 2013-07-01 Tom Tromey <tromey@redhat.com>
3653
3654 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3655 * configure: Rebuild.
3656
3657 2013-07-01 Pedro Alves <palves@redhat.com>
3658
3659 * defs.h: Include "pathmax.h".
3660 * utils.c: Don't include sys/param.h.
3661 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3662 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3663 instead of MAXPATHLEN.
3664 * solib-sunos.c: Don't include sys/param.h.
3665 * xcoffread.c: Don't include sys/param.h.
3666 * bsd-kvm.c: Don't include sys/param.h.
3667 * darwin-nat.c: Don't include sys/param.h.
3668 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3669 * darwin-nat-info.c: Don't include sys/param.h.
3670 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3671 MAXPATHLEN.
3672 * i386obsd-nat.c: Don't include sys/param.h.
3673 * inf-child.c: Don't include sys/param.h.
3674 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3675 * linux-fork.c: Don't include sys/param.h.
3676 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3677 * linux-nat.c: Don't include sys/param.h.
3678 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3679 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3680 * m68klinux-nat.c: Don't include sys/param.h.
3681 * nbsd-nat.c: Don't include sys/param.h.
3682 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3683 * ppc-linux-nat.c: Don't include sys/param.h.
3684 * rs6000-nat.c: Don't include sys/param.h.
3685 * spu-linux-nat.c. Don't include sys/param.h.
3686 * windows-nat.c: Don't include sys/param.h.
3687 * xtensa-linux-nat.c: Don't include sys/param.h.
3688 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3689
3690 2013-07-01 Pedro Alves <palves@redhat.com>
3691
3692 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3693 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3694 * gnulib/aclocal.m4: Regenerate.
3695 * gnulib/config.in: Regenerate.
3696 * gnulib/configure: Regenerate.
3697 * gnulib/import/pathmax.h: New file.
3698 * gnulib/import/Makefile.am: Regenerate.
3699 * gnulib/import/Makefile.in: Regenerate.
3700 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3701 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3702 * gnulib/import/m4/pathmax.m4: New file.
3703
3704 2013-07-01 Pedro Alves <palves@redhat.com>
3705
3706 * configure.ac (GDBINIT): Define, depending on host.
3707 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3708 * top.c (PATH_MAX): Delete fallback definition.
3709 (GDBINIT_FILENAME): Delete.
3710 (gdbinit): Reimplement as const char array set to the GDBINIT
3711 string constant.
3712 * top.h (gdbinit): Make const.
3713 * configure, config.in: Regenerate.
3714
3715 2013-07-01 Pedro Alves <palves@redhat.com>
3716
3717 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3718 * cli/cli-cmds.h (source_script): Likewise.
3719 * exceptions.c (catch_command_errors_const): New function.
3720 * exceptions.h (catch_command_errors_const): Declare.
3721 * main.c (get_init_files): Make parameters const, and adjust.
3722 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3723 'local_gdbinit' locals const. Adjust to use
3724 catch_command_errors_const.
3725 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3726 'local_gdbinit' locals const.
3727
3728 2013-07-01 Pedro Alves <palves@redhat.com>
3729
3730 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3731 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3732 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3733 <unistd.h>.
3734
3735 2013-07-01 Pedro Alves <palves@redhat.com>
3736
3737 Import the "unistd" gnulib module.
3738 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3739 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3740 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3741 import/m4/unistd_h.m4.
3742 * gnulib/aclocal.m4: Renenerate.
3743 * gnulib/config.in: Renenerate.
3744 * gnulib/configure: Renenerate.
3745 * gnulib/import/Makefile.am: Renenerate.
3746 * gnulib/import/Makefile.in: Renenerate.
3747 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3748 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3749 * gnulib/import/m4/off_t.m4: New file.
3750 * gnulib/import/m4/ssize_t.m4: New file.
3751 * gnulib/import/m4/sys_types_h.m4: New file.
3752 * gnulib/import/m4/unistd_h.m4: New file.
3753 * gnulib/import/sys_types.in.h: New file.
3754 * gnulib/import/unistd.c: New file.
3755 * gnulib/import/unistd.in.h: New file.
3756
3757 2013-07-01 Pedro Alves <palves@redhat.com>
3758
3759 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3760 defined instead of checking HAVE_UNISTD_H.
3761
3762 2013-07-01 Pedro Alves <palves@redhat.com>
3763
3764 Reimport gnulib from scratch.
3765 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3766 import/m4/onceonly.m4.
3767 * gnulib/aclocal.m4: Renegerate.
3768 * gnulib/config.in: Renegerate.
3769 * gnulib/configure: Renegerate.
3770 * gnulib/import/Makefile.in: Renegerate.
3771 * gnulib/import/extra/update-copyright: Renegerate.
3772 * gnulib/import/m4/onceonly.m4: Delete.
3773
3774 2013-07-01 Pedro Alves <palves@redhat.com>
3775
3776 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3777
3778 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3779
3780 Code cleanup.
3781 * remote.c (async_remote_interrupt_twice): Make it static.
3782 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3783
3784 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3785
3786 * ia64-linux-tdep.c: Include <ctype.h>.
3787 (ia64_linux_stap_is_single_operand): New function.
3788 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3789
3790 2013-06-28 Tom Tromey <tromey@redhat.com>
3791
3792 * Makefile.in (version.c): Use version.in, not
3793 common/version.in.
3794 * common/create-version.sh: Likewise.
3795 * common/version.in: Move...
3796 * version.in: ...here.
3797
3798 2013-06-28 Pedro Alves <palves@redhat.com>
3799
3800 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3801 here.
3802 * utils.h (pagination_enabled): Declare.
3803
3804 2013-06-28 Pedro Alves <palves@redhat.com>
3805
3806 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3807 Move higher up in file.
3808
3809 2013-06-28 Tom Tromey <tromey@redhat.com>
3810
3811 * tracepoint.c (deprecated_readline_begin_hook)
3812 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3813 declare.
3814
3815 2013-06-28 Pedro Alves <palves@redhat.com>
3816
3817 PR tui/14880
3818 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3819 checking if they're available.
3820 * value.c (value_available_contents_eq): Change comment.
3821 * value.h (value_available_contents_eq): Expand comment.
3822
3823 2013-06-27 Tom Tromey <tromey@redhat.com>
3824
3825 * target.c (find_run_target): Remove.
3826 * target.h (find_run_target): Remove.
3827
3828 2013-06-27 Tom Tromey <tromey@redhat.com>
3829
3830 * corelow.c (core_gdbarch): Now static.
3831
3832 2013-06-27 Tom Tromey <tromey@redhat.com>
3833
3834 * target.c (target_struct_index): Remove.
3835
3836 2013-06-27 Pedro Alves <palves@redhat.com>
3837
3838 * infrun.c: Remove comment describing the 'stepping over runtime
3839 loader dynamic symbol resolution code' mechanism; moved to
3840 gdbint.texinfo.
3841
3842 2013-06-27 Pedro Alves <palves@redhat.com>
3843
3844 * exceptions.c (catch_command_errors): Remove spurious space.
3845 * exceptions.h (catch_command_errors): Second parameter is "arg",
3846 not "command".
3847
3848 2013-06-27 Yao Qi <yao@codesourcery.com>
3849
3850 * common/create-version.sh: Update comments. Handle the case
3851 that TARGET_ALIAS is empty.
3852
3853 2013-06-26 Pedro Alves <palves@redhat.com>
3854
3855 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3856 comment.
3857
3858 2013-06-26 Pedro Alves <palves@redhat.com>
3859
3860 * infrun.c: Update comments on stepping over runtime loader
3861 dynamic symbol resolution code.
3862
3863 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3864
3865 * ax-gdb.h (union exp_element): Forward declare.
3866 * parser-defs.h: Include expression.h.
3867
3868 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3869
3870 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3871
3872 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3873
3874 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3875
3876 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3877
3878 Fix trace-status to output proper start-time and stop-time.
3879 * tracepoint.c (trace_status_command): Fix type of printf arg to
3880 prevent improper type conversion.
3881 (trace_status_mi): Likewise.
3882
3883 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3884
3885 * mips-tdep.c (mips_next_pc): Fix a typo.
3886
3887 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3888
3889 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3890
3891 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3892 Yao Qi <yao@codesourcery.com>
3893
3894 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3895 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3896 * mi/mi-main.c (print_variable_or_computed): New function.
3897 (mi_cmd_trace_frame_collected): New function.
3898 * tracepoint.c (find_trace_state_variable_by_number): New.
3899 (struct traceframe_info): Move to tracepoint.h
3900 (struct collection_list): Likewise.
3901 (do_collect_symbol): Include locals and arguments in the
3902 collected variables list.
3903 (clear_collection_list): Clear wholly collected variables list
3904 and computed variables list.
3905 (append_exp): New function.
3906 (encode_actions_1): Include variables in the wholly
3907 collected variables list. Include memory ranges and
3908 full-fledged expressions in the computed expressions list.
3909 (encode_actions): Move some code to ...
3910 Return the cleanup chain.
3911 (encode_actions_rsp): ... here. New function.
3912 (get_traceframe_location, get_traceframe_info): Remove static.
3913 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3914 (struct collection_list): Moved from tracepoint.c. Add two
3915 new fields 'wholly_collected' and 'computed'.
3916 (find_trace_state_variable_by_number): Declare.
3917 (encode_actions): Adjust declaration.
3918 (encode_actions_rsp): Declare.
3919 (get_traceframe_info, get_traceframe_location): Declare.
3920
3921 * NEWS: Mention new MI command -trace-frame-collected.
3922
3923 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3924 Yao Qi <yao@codesourcery.com>
3925
3926 * ctf.c (ctf_traceframe_info): Push trace state variables
3927 present in the trace data into the traceframe info object.
3928 * breakpoint.c (DEF_VEC_I): Remove.
3929 * common/filestuff.c (DEF_VEC_I): Likewise.
3930 * dwarf2loc.c (DEF_VEC_I): Likewise.
3931 * mi/mi-main.c (DEF_VEC_I): Likewise.
3932 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3933 * features/traceframe-info.dtd: Add tvar element and its
3934 attributes.
3935 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3936 (build_traceframe_info): Push trace state variables present in
3937 the trace data into the traceframe info object.
3938 (traceframe_info_start_tvar): New function.
3939 (tvar_attributes): New.
3940 (traceframe_info_children): Add "tvar" element.
3941 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3942
3943 * NEWS: Mention the change in GDB and GDBserver.
3944
3945 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3946 Yao Qi <yao@codesourcery.com>
3947
3948 * tracepoint.c (trace_dump_command): Move code to ...
3949 (get_traceframe_location): ... here. New.
3950
3951 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3952 Yao Qi <yao@codesourcery.com>
3953
3954 * tracepoint.c (trace_dump_command): GDB emits an error
3955 instead of a warning when a traceframe is not selected.
3956
3957 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3958 Yao Qi <yao@codesourcery.com>
3959
3960 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3961 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3962 in collection_list.
3963 (do_clear_collection_list, init_collection_list): New.
3964 (encode_actions): Add local variables 'tracepoint_list' and
3965 'stepping_list'. Call init_collection_list and make cleanup
3966 which calls do_clear_collection_list. Don't call
3967 clear_collection_list.
3968 (_initialize_tracepoint): Delete references to
3969 'tracepoint_list' and 'stepping_list'.
3970
3971 2013-06-25 Tom Tromey <tromey@redhat.com>
3972
3973 * common/create-version.sh (date): Use "$", not "$$" in sed
3974 expression.
3975
3976 2013-06-25 Kevin Buettner <kevinb@redhat.com>
3977
3978 * NEWS (New targets): Add entry for TI MSP430.
3979
3980 2013-06-25 Yao Qi <yao@codesourcery.com>
3981
3982 * remote.c (remote_start_remote): Move code to upload tsv
3983 earlier.
3984
3985 2013-06-25 Yao Qi <yao@codesourcery.com>
3986 Hui Zhu <hui@codesourcery.com>
3987 Pedro Alves <palves@redhat.com>
3988
3989 PR breakpoints/15075
3990 PR breakpoints/15434
3991 * breakpoint.c (bpstat_stop_status): Call
3992 b->ops->after_condition_true.
3993 (update_dprintf_command_list): Don't append "continue" command
3994 to the command list of dprintf breakpoint.
3995 (base_breakpoint_after_condition_true): New function.
3996 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3997 (dprintf_after_condition_true): New function.
3998 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3999 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4000
4001 2013-06-24 Kevin Buettner <kevinb@redhat.com>
4002
4003 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4004 (ALLDEPFILES): Add msp430-tdep.c.
4005 * configure.tgt (msp430*-*-elf): New target.
4006 * msp430-tdep.c: New file.
4007
4008 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4009
4010 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4011 microMIPS synthetic symbols.
4012
4013 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4014
4015 * objfiles.h (pc_in_section): New prototype.
4016 (in_plt_section): Remove name argument, replace prototype with
4017 static inline function.
4018 * mips-tdep.h: Include "objfiles.h".
4019 (in_mips_stubs_section): New function.
4020 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4021 in_solib_call_trampoline member.
4022 (hppa_in_solib_call_trampoline): Remove name argument.
4023 * objfiles.c (pc_in_section): New function.
4024 (in_plt_section): Remove function.
4025 * mips-linux-tdep.c: Include "objfiles.h".
4026 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4027 name argument. Return 1 rather than the low 16-bit halfword of
4028 any instruction examined.
4029 (mips_linux_in_dynsym_resolve_code): Update
4030 mips_linux_in_dynsym_stub call accordingly.
4031 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4032 rather than an equivalent hand-coded sequence.
4033 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4034 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4035 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4036 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4037 in_opd_section.
4038 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4039 on call to tdep->in_solib_call_trampoline.
4040 (hppa_in_solib_call_trampoline): Remove name argument, update
4041 according to in_plt_section change.
4042 (hppa_skip_trampoline_code): Update according to in_plt_section
4043 change.
4044 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4045 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4046 Likewise.
4047 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4048 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4049 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4050 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4051 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4052 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4053 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4054 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4055 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4056 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4057 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4058 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4059 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4060
4061 2013-06-24 Joel Brobecker <brobecker@adacore.com>
4062
4063 * common/create-version.sh: Fix expansion of $host_alias
4064 and $target_alias in generation of HOST_NAME and TARGET_NAME
4065 (resp.).
4066
4067 2013-06-24 Tom Tromey <tromey@redhat.com>
4068
4069 * common/create-version.sh: New file.
4070 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4071 create-version.sh.
4072 (HFILES_NO_SRCDIR): Use common/version.h.
4073 * version.in: Move to ...
4074 * common/version.in: ... here. Replace date with "DATE".
4075 * version.h: Move to ...
4076 * common/version.h: ... here.
4077
4078 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4079
4080 * gdb/gnulib/Makefile.in: Update date in copyright header.
4081 * gdb/gnulib/configure.ac: Ditto.
4082 * gdb/gnulib/update-gnulib.sh: Ditto.
4083
4084 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4085
4086 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4087 "gdb/gnulib/import".
4088
4089 2013-06-21 Will Newton <will.newton@linaro.org>
4090
4091 * doublest.c (ldfrexp): Remove function.
4092 (convert_doublest_to_floatformat): Call frexpl instead of
4093 ldfrexp.
4094
4095 2013-06-21 Will Newton <will.newton@linaro.org>
4096
4097 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4098 * gnulib/aclocal.m4: Regenerate.
4099 * gnulib/config.in: Regenerate.
4100 * gnulib/configure: Regenerate.
4101 * gnulib/import/Makefile.am: Update.
4102 * gnulib/import/Makefile.in: Update.
4103 * gnulib/import/m4/gnulib-cache.m4: Update.
4104 * gnulib/import/m4/gnulib-comp.m4: Update.
4105 * gnulib/import/float+.h: Import.
4106 * gnulib/import/float.c: Import.
4107 * gnulib/import/float.in.h: Import.
4108 * gnulib/import/fpucw.h: Import.
4109 * gnulib/import/frexp.c: Import.
4110 * gnulib/import/frexpl.c: Import.
4111 * gnulib/import/isnan.c: Import.
4112 * gnulib/import/isnand-nolibm.h: Import.
4113 * gnulib/import/isnand.c: Import.
4114 * gnulib/import/isnanl-nolibm.h: Import.
4115 * gnulib/import/isnanl.c: Import.
4116 * gnulib/import/itold.c: Import.
4117 * gnulib/import/m4/exponentd.m4: Import.
4118 * gnulib/import/m4/exponentl.m4: Import.
4119 * gnulib/import/m4/float_h.m4: Import.
4120 * gnulib/import/m4/fpieee.m4: Import.
4121 * gnulib/import/m4/frexp.m4: Import.
4122 * gnulib/import/m4/frexpl.m4: Import.
4123 * gnulib/import/m4/isnand.m4: Import.
4124 * gnulib/import/m4/isnanl.m4: Import.
4125 * gnulib/import/m4/math_h.m4: Import.
4126 * gnulib/import/math.c: Import.
4127 * gnulib/import/math.in.h: Import.
4128
4129 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4130
4131 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4132 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4133 signature_INTEL_edx comparisons.
4134
4135 2013-06-20 Doug Evans <dje@google.com>
4136
4137 symtab/15652
4138 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4139 All callers updated.
4140 (open_dwp_file): If we can't find the dwp file, search the basename
4141 in debug-file-directory.
4142
4143 * dwarf2read.c (struct dwp_file): Fix comment.
4144 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4145
4146 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4147 better.
4148
4149 2013-06-20 Yao Qi <yao@codesourcery.com>
4150
4151 * breakpoint.c (create_breakpoint): Fix code indentation.
4152
4153 2013-06-20 Yao Qi <yao@codesourcery.com>
4154
4155 * breakpoint.c (create_breakpoints_sal_default): Remove
4156 parameter 'lsal'. Update declaration.
4157 (bkpt_create_breakpoints_sal): Caller update.
4158 (tracepoint_create_breakpoints_sal): Likewise.
4159
4160 2013-06-20 Pedro Alves <pedro@codesourcery.com>
4161 Yao Qi <yao@codesourcery.com>
4162
4163 * NEWS: Mention the new option '--skip-unavailable' of command
4164 -data-list-register-values.
4165 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4166 --skip-unavailable option. Adjust to use output_register.
4167 (output_register): Add new 'skip_unavailable' parameter.
4168 Handle it.
4169
4170 2013-06-19 Mike Frysinger <vapier@gentoo.org>
4171
4172 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4173 common/i386-gcc-cpuid.h.
4174 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4175 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4176 Copy the latest version from upstream gcc.
4177 * common/linux-btrace.c: Include i386-cpuid.h.
4178 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4179 call to i386_cpuid.
4180 (cpu_supports_btrace): Likewise.
4181 * go32-nat.c: Include i386-cpuid.h.
4182 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4183
4184 2013-06-19 Doug Evans <dje@google.com>
4185
4186 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4187 (get_section_index): Ditto.
4188
4189 2013-06-19 Tom Tromey <tromey@redhat.com>
4190
4191 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4192 "dprintf" help.
4193
4194 2013-06-18 Doug Evans <dje@google.com>
4195
4196 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4197 before using it.
4198 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4199 Move test of cu_index closer to use. Print complaint if cu_index
4200 is bad.
4201
4202 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4203
4204 * machoread.c (oso_vector): Delete this global.
4205 (macho_register_oso): Add new parameter "oso_vector_ptr".
4206 Use it instead of the "oso_vector" global.
4207 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4208 (macho_symfile_read): Use a local oso_vector, to be free'ed
4209 at the end of this function, in place of the old "oso_vector"
4210 global. Update various function calls accordingly. Use one
4211 single cleanup chain for the entire function.
4212
4213 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4214
4215 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4216 DWARF2_PER_OBJFILE by uses of DATA instead.
4217
4218 2013-06-18 Tom Tromey <tromey@redhat.com>
4219
4220 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4221 argument.
4222 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4223 Special case signals other than GDB_SIGNAL_TRAP.
4224 (explains_signal_watchpoint): New function.
4225 (base_breakpoint_explains_signal): Add 'sig' argument.
4226 (initialize_breakpoint_ops): Set 'explains_signal' method for
4227 watchpoints.
4228 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4229 signal argument.
4230 (bpstat_explains_signal): Likewise.
4231 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4232
4233 2013-06-18 Tom Tromey <tromey@redhat.com>
4234
4235 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4236
4237 2013-06-18 Tom Tromey <tromey@redhat.com>
4238
4239 * python/python.c (finish_python_initialization): Decref
4240 'pythondir' on failure path as well.
4241
4242 2013-06-18 Tom Tromey <tromey@redhat.com>
4243
4244 PR symtab/15391:
4245 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4246 after taking bits_to_skip into account. Sign extend byte_offset.
4247 * utils.h (gdb_sign_extend): Declare.
4248 * utils.c (gdb_sign_extend): New function.
4249
4250 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4251
4252 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4253
4254 2013-06-17 Pierre Muller <muller@sourceware.org>
4255
4256 * corelow.c (core_open): Print GDB signal name instead of target
4257 signal number.
4258
4259 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4260
4261 * .gitignore: Add /gcore.
4262
4263 2013-06-13 Doug Evans <dje@google.com>
4264
4265 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4266 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4267
4268 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4269
4270 * stack.c (backtrace_command_1): Fix indentation.
4271
4272 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4273
4274 * window-nat.c (thread_rec): Add missing empty line after
4275 local variable declaration.
4276
4277 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4278
4279 * windows-nat.c (thread_rec): Revert format used to print
4280 error code returned by SuspendThread from %d back to %u.
4281
4282 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4283
4284 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4285 ID in debug trace.
4286 (get_windows_debug_event): Likewise, for all debug traces.
4287
4288 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4289
4290 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4291 warning message.
4292
4293 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4294 Yao Qi <yao@codesourcery.com>
4295
4296 * mi/mi-main.c (get_register): Remove declaration.
4297 (output_register): Declare.
4298 (mi_cmd_data_list_register_values): Remove local variable
4299 'tuple_cleanup'. Move some code into output_register.
4300 (get_register): Renamed to ...
4301 (output_register): ... this. Output the register's
4302 "number" ui_out tuple here.
4303
4304 2013-06-07 Pedro Alves <palves@redhat.com>
4305
4306 * darwin-nat.c: Fix formating in copyright header.
4307 * darwin-nat.h: Likewise.
4308 * gnu-nat.c: Likewise.
4309 * machoread.c: Likewise.
4310
4311 2013-06-07 Pedro Alves <palves@redhat.com>
4312
4313 PR server/14823
4314 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4315 static. Output a global target description pointer.
4316 (init_registers_${name}): Adjust to initialize a
4317 target description structure.
4318
4319 2013-06-07 Will Newton <will.newton@linaro.org>
4320
4321 * printcmd.c (build_address_symbolic): Call
4322 gdbarch_addr_bits_remove for text minimal symbols.
4323
4324 2013-06-07 Will Newton <will.newton@linaro.org>
4325
4326 * MAINTAINERS: Add myself to Write After Approval.
4327
4328 2013-06-07 Yao Qi <yao@codesourcery.com>
4329
4330 * tracepoint.c (start_tracing): Move code to ...
4331 (trace_reset_local_state): ... here. New.
4332 (disconnect_tracing): Don't call set_current_traceframe,
4333 set_tracepoint_num, and set_traceframe_context. Call
4334 trace_reset_local_state instead.
4335 (tfile_close): Call trace_reset_local_state.
4336 * ctf.c (ctf_close): Likewise.
4337 * remote.c (remote_close): Likewise.
4338 * tracepoint.h (trace_reset_local_state): Declare.
4339
4340 2013-06-06 Doug Evans <dje@google.com>
4341
4342 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4343 and fix header docs.
4344
4345 2013-06-05 Doug Evans <dje@google.com>
4346 Keith Seitz <keiths@redhat.com>
4347
4348 PR 15519
4349 * cp-namespace.c (find_symbol_in_baseclass): Call
4350 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4351 Check result of call to lookup_symbol_static.
4352 Call lookup_static_symbol_aux unconditionally.
4353 Call check_typedef on base types before accessing them.
4354 (cp_lookup_nested_symbol): Fix comment.
4355
4356 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4357
4358 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4359 minimal symbols pointing to function descriptors.
4360
4361 2013-06-05 Tom Tromey <tromey@redhat.com>
4362
4363 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4364
4365 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4366 Pedro Alves <palves@redhat.com>
4367
4368 * remote.c (remote_wait_as): Restore signal handler before returning
4369 when GDB gets a notification.
4370
4371 2013-06-04 Gary Benson <gbenson@redhat.com>
4372
4373 PR 2328
4374 * breakpoint.h (handle_solib_event): Moved function declaration
4375 to solib.h.
4376 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4377 (bpstat_stop_status): Pass new argument to handle_solib_event.
4378 * solib.h (update_solib_breakpoints): New function declaration.
4379 (handle_solib_event): Moved function declaration from
4380 breakpoint.h.
4381 * solib.c (update_solib_breakpoints): New function.
4382 (handle_solib_event): Moved function from breakpoint.c.
4383 Updated to call solib_ops->handle_event if not NULL.
4384 * solist.h (target_so_ops): New fields "update_breakpoints" and
4385 "handle_event".
4386 * infrun.c (set_stop_on_solib_events): New function.
4387 (_initialize_infrun): Use the above for "set
4388 stop-on-solib-events".
4389 (handle_inferior_event): Pass new argument to handle_solib_event.
4390 * solib-svr4.c (probe.h): New include.
4391 (svr4_free_library_list): New forward declaration.
4392 (probe_action): New enum.
4393 (probe_info): New struct.
4394 (probe_info): New static variable.
4395 (NUM_PROBES): New definition.
4396 (svr4_info): New fields "using_xfer", "probes_table" and
4397 "solib_list".
4398 (free_probes_table): New function.
4399 (free_solib_list): New function.
4400 (svr4_pspace_data_cleanup): Free probes table and solib list.
4401 (svr4_copy_library_list): New function.
4402 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4403 (svr4_read_so_list): New parameter "prev_lm".
4404 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4405 (svr4_current_sos): New function.
4406 (probe_and_action): New struct.
4407 (hash_probe_and_action): New function.
4408 (equal_probe_and_action): Likewise.
4409 (register_solib_event_probe): Likewise.
4410 (solib_event_probe_at): Likewise.
4411 (solib_event_probe_action): Likewise.
4412 (solist_update_full): Likewise.
4413 (solist_update_incremental): Likewise.
4414 (disable_probes_interface_cleanup): Likewise.
4415 (svr4_handle_solib_event): Likewise.
4416 (svr4_update_solib_event_breakpoint): Likewise.
4417 (svr4_update_solib_event_breakpoints): Likewise.
4418 (svr4_create_solib_event_breakpoints): Likewise.
4419 (enable_break): Free probes table before creating breakpoints.
4420 Use svr4_create_solib_event_breakpoints to create breakpoints.
4421 (svr4_solib_create_inferior_hook): Free the solib list.
4422 (_initialize_svr4_solib): Initialise
4423 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4424
4425 2013-06-04 Gary Benson <gbenson@redhat.com>
4426
4427 * target.h (target_ops): New field
4428 "to_augmented_libraries_svr4_read".
4429 (target_augmented_libraries_svr4_read): New macro.
4430 * target.c (update_current_target): Handle
4431 to_augmented_libraries_svr4_read.
4432 * remote.c (remote_state): New field
4433 "augmented_libraries_svr4_read".
4434 (remote_augmented_libraries_svr4_read_feature): New function.
4435 (remote_protocol_features): Add entry for
4436 "augmented-libraries-svr4-read".
4437 (remote_augmented_libraries_svr4_read): New function.
4438 (init_remote_ops): Initialize
4439 remote_ops.to_augmented_libraries_svr4_read.
4440
4441 2013-06-04 Gary Benson <gbenson@redhat.com>
4442
4443 * NEWS: Update.
4444
4445 2013-06-04 Gary Benson <gbenson@redhat.com>
4446
4447 * objfiles.h (inhibit_section_map_updates): New function
4448 declaration.
4449 (resume_section_map_updates): Likewise.
4450 (resume_section_map_updates_cleanup): Likewise.
4451 * objfiles.c (objfile_pspace_info): Removed field
4452 "objfiles_changed_p". New fields "new_objfiles_available",
4453 "section_map_dirty" and "inhibit_updates".
4454 (allocate_objfile): Set new_objfiles_available.
4455 (free_objfile): Set section_map_dirty.
4456 (objfile_relocate1): Likewise.
4457 (in_plt_section): Likewise.
4458 (find_pc_section): Update the conditions under which the
4459 section map will be updated.
4460 (inhibit_section_map_updates): New function.
4461 (resume_section_map_updates): Likewise.
4462 (resume_section_map_updates_cleanup): Likewise.
4463
4464 2013-06-04 Gary Benson <gbenson@redhat.com>
4465
4466 * probe.h (get_probe_argument_count): New declaration.
4467 (evaluate_probe_argument): Likewise.
4468 * probe.c (get_probe_argument_count): New function.
4469 (evaluate_probe_argument): Likewise.
4470 (probe_safe_evaluate_at_pc): Use the above new functions.
4471
4472 2013-06-04 Alan Modra <amodra@gmail.com>
4473
4474 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4475 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4476 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4477 target mem reads on optional insns.
4478 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4479 ppc_insns_match_pattern calls.
4480 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4481 Add match for power7 thread safety insns, and new order of
4482 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4483 invocation in comment, and update rest of comment.
4484 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4485 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4486 (ppc64_standard_linkage2_target): Update insn offsets.
4487 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4488 stubs first. Update calls.
4489
4490 2013-06-04 Yao Qi <yao@codesourcery.com>
4491
4492 * solib.c (solib_find): Don't need dir separator if path has
4493 drive spec.
4494
4495 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4496
4497 Revert (indirectly causes a SIGSEGV):
4498 * machoread.c (macho_symfile_read): Assign first cleanup to
4499 'back_to'.
4500
4501 2013-06-03 Yao Qi <yao@codesourcery.com>
4502
4503 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4504 mi-parse.c. Make them static.
4505 (mi_all_values): Likewise.
4506 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4507 mi_parse_print_values. Make it external.
4508 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4509 Remove the declarations.
4510 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4511 * mi/mi-parse.h (mi_parse_print_values): Declare.
4512 * mi/mi-cmd-stack.c: Include mi-parse.h.
4513 (parse_print_values): Remove
4514 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4515 of parse_print_values.
4516 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4517
4518 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4519 Yao Qi <yao@codesourcery.com>
4520
4521 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4522 (encode_actions): Move code to ...
4523 (all_tracepoint_actions_and_cleanup): ... here. New.
4524 (trace_dump_command): Likewise.
4525
4526 2013-05-30 Tom Tromey <tromey@redhat.com>
4527
4528 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4529
4530 2013-05-30 Tom Tromey <tromey@redhat.com>
4531
4532 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4533 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4534 'old_chain' argument. Add 'parser_result' argument.
4535 (gdb_xml_create_parser_and_cleanup): Remove old version.
4536 (gdb_xml_parse_quick): Update.
4537 (xml_process_xincludes): Update.
4538 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4539 declare.
4540
4541 2013-05-30 Tom Tromey <tromey@redhat.com>
4542
4543 * probe.c (collect_probes): Check arguments for NULL before
4544 calling compile_rx_or_error.
4545 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4546 Remove NULL return.
4547
4548 2013-05-30 Tom Tromey <tromey@redhat.com>
4549
4550 * infrun.c (adjust_pc_after_break): Introduce an outer null
4551 cleanup.
4552
4553 2013-05-30 Tom Tromey <tromey@redhat.com>
4554
4555 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4556
4557 2013-05-30 Tom Tromey <tromey@redhat.com>
4558
4559 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4560 for 'old_chain'. Do not check 'head' before processing
4561 cleanups.
4562
4563 2013-05-30 Tom Tromey <tromey@redhat.com>
4564
4565 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4566 "cleanup_tuple".
4567
4568 2013-05-30 Tom Tromey <tromey@redhat.com>
4569
4570 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4571 inner scope. Unconditionally call do_cleanups.
4572
4573 2013-05-30 Tom Tromey <tromey@redhat.com>
4574
4575 * source.c (find_and_open_source): Call do_cleanups.
4576
4577 2013-05-30 Tom Tromey <tromey@redhat.com>
4578
4579 * linux-thread-db.c (thread_db_load_search): Unconditionally
4580 call do_cleanups.
4581
4582 2013-05-30 Tom Tromey <tromey@redhat.com>
4583
4584 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4585 for 'cleanup'; instead use a later one.
4586
4587 2013-05-30 Tom Tromey <tromey@redhat.com>
4588
4589 * python/py-breakpoint.c (bppy_get_commands): Use
4590 explicit, unconditional return.
4591 * python/py-frame.c (frapy_read_var): Likewise.
4592 * python/python.c (gdbpy_decode_line): Likewise.
4593
4594 2013-05-30 Tom Tromey <tromey@redhat.com>
4595
4596 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4597 do_cleanups on all return paths.
4598
4599 2013-05-30 Tom Tromey <tromey@redhat.com>
4600
4601 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4602
4603 2013-05-30 Tom Tromey <tromey@redhat.com>
4604
4605 * stabsread.c (read_struct_type): Call do_cleanups along
4606 all return paths.
4607
4608 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4609
4610 * mips-linux-tdep.c: Adjust formatting throughout.
4611
4612 2013-05-30 Tom Tromey <tromey@redhat.com>
4613
4614 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4615 along all return paths.
4616
4617 2013-05-30 Tom Tromey <tromey@redhat.com>
4618
4619 * symfile.c (find_separate_debug_file): Call do_cleanups
4620 along all return paths.
4621
4622 2013-05-30 Tom Tromey <tromey@redhat.com>
4623
4624 * symtab.c (search_symbols): Introduce a null cleanup for
4625 'retval_chain'.
4626
4627 2013-05-30 Tom Tromey <tromey@redhat.com>
4628
4629 * python/py-value.c (valpy_binop): Call do_cleanups before
4630 exiting loop.
4631
4632 2013-05-30 Tom Tromey <tromey@redhat.com>
4633
4634 * python/py-prettyprint.c (print_children): Remove extra
4635 do_cleanups call.
4636
4637 2013-05-30 Tom Tromey <tromey@redhat.com>
4638
4639 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4640 all return paths.
4641
4642 2013-05-30 Tom Tromey <tromey@redhat.com>
4643
4644 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4645 along all return paths.
4646
4647 2013-05-30 Tom Tromey <tromey@redhat.com>
4648
4649 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4650 call do_cleanups.
4651
4652 2013-05-30 Tom Tromey <tromey@redhat.com>
4653
4654 * varobj.c (c_value_of_root): Call do_cleanups along all
4655 return paths.
4656
4657 2013-05-30 Tom Tromey <tromey@redhat.com>
4658
4659 * tracepoint.c (trace_dump_command): Unconditionally call
4660 do_cleanups.
4661
4662 2013-05-30 Tom Tromey <tromey@redhat.com>
4663
4664 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4665 do_cleanups earlier.
4666
4667 2013-05-30 Tom Tromey <tromey@redhat.com>
4668
4669 * machoread.c (macho_symfile_read): Assign first cleanup to
4670 'back_to'.
4671
4672 2013-05-30 Tom Tromey <tromey@redhat.com>
4673
4674 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4675
4676 2013-05-30 Tom Tromey <tromey@redhat.com>
4677
4678 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4679
4680 2013-05-30 Tom Tromey <tromey@redhat.com>
4681
4682 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4683 call discard_cleanups.
4684 (inf_ptrace_attach): Likewise.
4685
4686 2013-05-30 Tom Tromey <tromey@redhat.com>
4687
4688 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4689 return paths.
4690 (mips_initialize): Likewise.
4691 (common_open): Call do_cleanups.
4692
4693 2013-05-30 Tom Tromey <tromey@redhat.com>
4694
4695 * utils.c (internal_vproblem): Call do_cleanups.
4696
4697 2013-05-30 Tom Tromey <tromey@redhat.com>
4698
4699 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4700
4701 2013-05-30 Tom Tromey <tromey@redhat.com>
4702
4703 * cli/cli-script.c (setup_user_args): Don't return after error.
4704
4705 2013-05-30 Tom Tromey <tromey@redhat.com>
4706
4707 * somread.c (som_symtab_read): Call do_cleanups.
4708
4709 2013-05-30 Tom Tromey <tromey@redhat.com>
4710
4711 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4712
4713 2013-05-30 Tom Tromey <tromey@redhat.com>
4714
4715 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4716 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4717 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4718 * source.c (show_substitute_path_command): Call do_cleanups.
4719 (unset_substitute_path_command, set_substitute_path_command):
4720 Likewise.
4721 * symfile.c (load_command): Call do_cleanups.
4722
4723 2013-05-30 Tom Tromey <tromey@redhat.com>
4724
4725 * contrib/cleanup_check.py: New file.
4726 * contrib/gcc-with-excheck: Add option parsing.
4727
4728 2013-05-30 Joel Brobecker <brobecker@adacore.com>
4729
4730 * windows-nat.c (windows_delete_thread): Add missing space
4731 in cast expression.
4732
4733 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4734
4735 * inferior.c (top level): Include tilde.h.
4736 (add_inferior_command): Call tilde_expand on the value of 'exec'
4737 argument.
4738
4739 2013-05-30 Pedro Alves <pedro@codesourcery.com>
4740 Yao Qi <yao@codesourcery.com>
4741
4742 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4743 Caller update.
4744 (encode_actions): Likewise.
4745 * remote.c (remote_download_tracepoint): Caller update.
4746 * tracepoint.h (encode_actions): Update declaration.
4747
4748 2013-05-30 Pedro Alves <palves@redhat.com>
4749
4750 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4751 pointer.
4752
4753 2013-05-30 Yao Qi <yao@codesourcery.com>
4754
4755 * remote.c (remote_check_symbols): Remove unused parameter
4756 'objfile'.
4757 Declaration update.
4758 (remote_start_remote, remote_new_objfile): Caller update.
4759
4760 2013-05-30 Yao Qi <yao@codesourcery.com>
4761
4762 * mi/mi-cmds.c (mi_cmds): Define MI command
4763 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4764 DEF_MI_CMD_CLI.
4765
4766 2013-05-29 Pedro Alves <palves@redhat.com>
4767
4768 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4769 (remote_insert_watchpoint, remote_remove_watchpoint)
4770 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4771 (remote_verify_memory, compare_sections_command)
4772 (remote_search_memory): Set the general process/thread on the
4773 remote side.
4774
4775 2013-05-29 Pedro Alves <palves@redhat.com>
4776
4777 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4778 (_initialize_aarch64_tdep): Don't call
4779 initialize_tdesc_aarch64_without_fpu.
4780 * features/Makefile (WHICH): Remove reference to
4781 aarch64-without-fpu.
4782 * features/aarch64-without-fpu.c: Delete file.
4783 * regformats/aarch64-without-fpu.dat: Delete file.
4784
4785 2013-05-28 Yao Qi <yao@codesourcery.com>
4786
4787 * tracepoint.c (stringify_collection_list): Remove parameter
4788 'string'.
4789 (encode_actions): Caller update. Remove local variables.
4790
4791 2013-05-24 Yao Qi <yao@codesourcery.com>
4792
4793 * tracepoint.c (TFILE_PID): Remove.
4794 (tfile_open): Don't add thread and inferior.
4795 (tfile_close): Don't set 'inferior_ptid'. Don't call
4796 exit_inferior_silent.
4797 (tfile_thread_alive): Remove.
4798 (init_tfile_ops): Don't set field 'to_thread_alive' of
4799 tfile_ops.
4800
4801 2013-05-23 Doug Evans <dje@google.com>
4802
4803 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4804
4805 2013-05-23 Pedro Alves <palves@redhat.com>
4806
4807 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4808 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4809 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4810 Only define if HAVE_SOCKETS is defined.
4811 * configure.ac: Check for sys/socket.h.
4812 * config.in, configure: Regenerate.
4813
4814 2013-05-23 Pedro Alves <palves@redhat.com>
4815
4816 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4817 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4818 printing uint32_t variables.
4819
4820 2013-05-23 Pedro Alves <palves@redhat.com>
4821
4822 * NEWS: Mention GDBserver range stepping support.
4823
4824 2013-05-23 Yao Qi <yao@codesourcery.com>
4825 Pedro Alves <palves@redhat.com>
4826
4827 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4828 field.
4829 * infcmd.c (step_once, until_next_command): Enable range stepping.
4830 * infrun.c (displaced_step_prepare): Disable range stepping.
4831 (resume): Disable range stepping if stepping over a breakpoint or
4832 we have software watchpoints. If range stepping is enabled,
4833 assert the thread is in the stepping range.
4834 (clear_proceed_status_thread): Clear may_range_step.
4835 (handle_inferior_event): Disable range stepping as soon as we know
4836 the thread that hit the event. Re-enable it whenever we're going
4837 to step with a step range.
4838 * remote.c (struct vCont_action_support) <r>: New field.
4839 (use_range_stepping): New global.
4840 (remote_vcont_probe): Handle 'r' action.
4841 (append_resumption): Append an 'r' action if the thread may range
4842 step.
4843 (show_range_stepping): New function.
4844 (set_range_stepping): New function.
4845 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4846 'set range-stepping' and 'show range-stepping' commands.
4847 * NEWS: Mention range stepping, the new vCont;r action, and the
4848 new "set/show range-stepping" commands.
4849
4850 2013-05-23 Yao Qi <yao@codesourcery.com>
4851 Pedro Alves <palves@redhat.com>
4852
4853 * remote.c (struct vCont_action_support): New struct.
4854 (struct remote_state) <support_vCont_t>: Remove field.
4855 <vCont_actions_support>: New field.
4856 (remote_vcont_probe, remote_stop_ns): Update.
4857
4858 2013-05-23 Yao Qi <yao@codesourcery.com>
4859 Pedro Alves <palves@redhat.com>
4860
4861 * gdbthread.h (pc_in_thread_step_range): New declaration.
4862 * thread.c (pc_in_thread_step_range): New function.
4863 * infrun.c (handle_inferior_event): Use it.
4864
4865 2013-05-23 Joel Brobecker <brobecker@adacore.com>
4866
4867 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4868 of sprintf.
4869
4870 2013-05-22 Keith Seitz <keiths@redhat.com>
4871
4872 * ada-lang.c (is_known_support_routine): Add explicit free of
4873 'func_name' from find_frame_funname.
4874 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4875 for func_name from find_frame_funname.
4876 * python/py-frame.c (frapy_name): Add explicit free of
4877 'name' from find_frame_funname.
4878 * stack.c (find_frame_funname): Add comment explaining that
4879 funcp must be freed by the caller.
4880 Return copy of symbol names instead of pointers.
4881 (print_frame): Add a cleanup for 'funname' from
4882 find_frame_funname.
4883 * stack.h (find_frame_funname): Remove "const" from
4884 'funname' parameter.
4885
4886 2013-05-22 Tom Tromey <tromey@redhat.com>
4887
4888 PR c++/15401:
4889 * c-valprint.c (c_value_print): Use value_addr for
4890 references. Convert back to reference type with value_ref.
4891
4892 2013-05-22 Eli Zaretskii <eliz@gnu.org>
4893
4894 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4895 unloaded DLL, it will be done by handle_solib_event. See
4896 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4897 details.
4898
4899 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4900
4901 * ui-out.c: Create typedef ui_out_level_p and define vector
4902 operations for that type.
4903 (struct ui_out): Use a vector instead of an array.
4904 (current_level): Return level from a vector.
4905 (push_level): Create a level in a vector.
4906 (pop_level): Delete a level in a vector.
4907 (ui_out_new): Create initial level zero level, and store in a
4908 vector.
4909 (ui_out_destroy): Add vector cleanup.
4910
4911 2013-05-22 Pedro Alves <palves@redhat.com>
4912
4913 * python/python-internal.h (gdb_Py_DECREF): Tag with
4914 "ARI: editCase function".
4915
4916 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4917
4918 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4919
4920 2013-05-21 Pedro Alves <palves@redhat.com>
4921
4922 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4923 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4924 * python/py-utils.c (py_decref): Don't check for NULL before
4925 calling Py_DECREF.
4926
4927 2013-05-21 Pedro Alves <palves@redhat.com>
4928
4929 * python/py-utils.c (py_decref): Remove extra braces.
4930 (gdb_pymodule_addobject): Remove extra braces.
4931 * python-internal.h (gdb_Py_DECREF): New static inline function.
4932 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4933
4934 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4935
4936 * breakpoints.c (detach_breakpoints): Do not
4937 detach breakpoints locations with loc_type bp_loc_other.
4938
4939 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4940
4941 Workaround Python 2.6.
4942 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4943 a block.
4944
4945 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4946
4947 Code cleanup: constification.
4948 * solib.c (solib_ops): Make return type and ops variable type const.
4949 (set_solib_ops): Make the new_ops parameter and ops variable const.
4950 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4951 (solib_add, solib_keep_data_in_core, clear_solib)
4952 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4953 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4954 const.
4955 * solib.h (set_solib_ops): Make the new_ops parameter const.
4956
4957 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4958
4959 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4960 variable.
4961 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4962 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4963 (SYSTEM_GDBINIT_FILES): New variables.
4964 (all): Add stamp-system-gdbinit.
4965 (stamp-system-gdbinit): New rule.
4966 (clean-system-gdbinit, install-system-gdbinit)
4967 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4968 (install-only): Add dependency on install-system-gdbinit.
4969 (uninstall): Add dependency on uninstall-system-gdbinit.
4970 (clean): Add dependency on clean-system-gdbinit.
4971 * system-gdbinit/elinos.py: New file.
4972 * system-gdbinit/wrs-linux.py: New file.
4973
4974 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4975
4976 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4977
4978 2013-05-21 Hui Zhu <hui@codesourcery.com>
4979
4980 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4981 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4982 * mi/mi-cmd-break.c (ctype.h): New include.
4983 (gdb_obstack.h): New include.
4984 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4985 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4986 (mi_cmd_dprintf_insert): New.
4987 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4988 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4989
4990 2013-05-20 Tom Tromey <tromey@redhat.com>
4991
4992 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4993
4994 2013-05-20 Tom Tromey <tromey@redhat.com>
4995
4996 * python/py-value.c (valpy_get_dynamic_type): Simplify
4997 dynamic_type assignment. Use Py_XINCREF.
4998
4999 2013-05-20 Tom Tromey <tromey@redhat.com>
5000
5001 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5002
5003 2013-05-20 Tom Tromey <tromey@redhat.com>
5004
5005 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5006 (gdbpy_selected_frame): Move object-construction code
5007 out of TRY_CATCH.
5008
5009 2013-05-20 Tom Tromey <tromey@redhat.com>
5010
5011 * python/py-arch.c (gdbpy_initialize_arch): Use
5012 gdb_pymodule_addobject.
5013 * python/py-block.c (gdbpy_initialize_blocks): Use
5014 gdb_pymodule_addobject.
5015 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5016 gdb_pymodule_addobject.
5017 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5018 gdb_pymodule_addobject.
5019 * python/py-event.c (gdbpy_initialize_event_generic): Use
5020 gdb_pymodule_addobject.
5021 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5022 gdb_pymodule_addobject.
5023 * python/py-evts.c (add_new_registry): Use
5024 gdb_pymodule_addobject.
5025 (gdbpy_initialize_py_events): Likewise.
5026 * python/py-finishbreakpoint.c
5027 (gdbpy_initialize_finishbreakpoints): Use
5028 gdb_pymodule_addobject.
5029 * python/py-frame.c (gdbpy_initialize_frames): Use
5030 gdb_pymodule_addobject.
5031 * python/py-function.c (gdbpy_initialize_functions): Use
5032 gdb_pymodule_addobject.
5033 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5034 gdb_pymodule_addobject.
5035 * python/py-infthread.c (gdbpy_initialize_thread): Use
5036 gdb_pymodule_addobject.
5037 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5038 gdb_pymodule_addobject.
5039 * python/py-param.c (gdbpy_initialize_parameters): Use
5040 gdb_pymodule_addobject.
5041 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5042 gdb_pymodule_addobject.
5043 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5044 gdb_pymodule_addobject.
5045 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5046 gdb_pymodule_addobject.
5047 * python/py-type.c (gdbpy_initialize_types): Use
5048 gdb_pymodule_addobject.
5049 * python/py-utils.c (gdb_pymodule_addobject): New function.
5050 * python/py-value.c (gdbpy_initialize_values): Use
5051 gdb_pymodule_addobject.
5052 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5053 * python/python.c (_initialize_python): Use
5054 gdb_pymodule_addobject.
5055
5056 2013-05-20 Tom Tromey <tromey@redhat.com>
5057
5058 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5059 * python/py-param.c (get_set_value, get_show_value): Use
5060 explicit decrefs.
5061 * python/python.c (start_type_printers, apply_type_printers):
5062 Use explicit decrefs.
5063
5064 2013-05-20 Tom Tromey <tromey@redhat.com>
5065
5066 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5067 incref the module.
5068
5069 2013-05-20 Tom Tromey <tromey@redhat.com>
5070
5071 * python/python.c (gdbpy_run_events): Decref the result
5072 of PyObject_CallObject.
5073
5074 2013-05-20 Tom Tromey <tromey@redhat.com>
5075
5076 * python/py-symtab.c (set_sal): Use
5077 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5078 (symtab_and_line_to_sal_object): Update.
5079
5080 2013-05-20 Tom Tromey <tromey@redhat.com>
5081
5082 * python/py-param.c (compute_enum_values): Decref 'item'.
5083
5084 2013-05-20 Tom Tromey <tromey@redhat.com>
5085
5086 * mi/mi-main.c: Include python-internal.h.
5087 (mi_cmd_list_features): Check gdb_python_initialized.
5088 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5089 (python_inferior_exit, python_new_objfile, add_thread_object)
5090 (delete_thread_object, py_free_inferior): Check
5091 gdb_python_initialized.
5092 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5093 gdb_python_initialized.
5094 * python/py-type.c (save_objfile_types): Check
5095 gdb_python_initialized.
5096 * python/python-internal.h (gdb_python_initialized): Declare.
5097 * python/python.c (ensure_python_env): Throw exception if
5098 Python not initialized.
5099 (before_prompt_hook, source_python_script_for_objfile)
5100 (start_type_printers, apply_type_printers,
5101 free_type_printers): Check gdb_python_initialized.
5102 * varobj.c (varobj_get_display_hint)
5103 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5104 (install_new_value_visualizer, varobj_set_visualizer)
5105 (value_get_print_value): Check gdb_python_initialized.
5106
5107 2013-05-20 Tom Tromey <tromey@redhat.com>
5108
5109 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5110 Check errors.
5111 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5112 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5113 Check errors.
5114 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5115 Check errors.
5116 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5117 Check errors.
5118 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5119 Check errors.
5120 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5121 init function to return 'int'.
5122 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5123 Return 'int'. Check errors.
5124 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5125 Check errors.
5126 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5127 Return 'int'. Check errors.
5128 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5129 Check errors.
5130 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5131 Check errors.
5132 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5133 Check errors.
5134 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5135 Check errors.
5136 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5137 Check errors.
5138 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5139 Check errors.
5140 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5141 Check errors.
5142 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5143 Check errors.
5144 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5145 Check errors.
5146 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5147 Check errors.
5148 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5149 Check errors.
5150 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5151 Check errors.
5152 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5153 Check errors.
5154 * python/python-internal.h (gdbpy_initialize_auto_load,
5155 gdbpy_initialize_values, gdbpy_initialize_frames,
5156 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5157 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5158 gdbpy_initialize_blocks, gdbpy_initialize_types,
5159 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5160 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5161 gdbpy_initialize_finishbreakpoints,
5162 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5163 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5164 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5165 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5166 gdbpy_initialize_signal_event,
5167 gdbpy_initialize_breakpoint_event,
5168 gdbpy_initialize_continue_event,
5169 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5170 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5171 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5172 * python/python.c (gdb_python_initialized): New global.
5173 (gdbpy_initialize_events): Return 'int'. Check errors.
5174 (_initialize_python): Check errors. Set
5175 gdb_python_initialized.
5176
5177 2013-05-20 Tom Tromey <tromey@redhat.com>
5178
5179 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5180 Decref the reslut of PyObject_CallMethod.
5181
5182 2013-05-20 Tom Tromey <tromey@redhat.com>
5183
5184 * python/py-event.c (gdbpy_initialize_event_generic): Return
5185 early if PyType_Ready fails.
5186
5187 2013-05-20 Tom Tromey <tromey@redhat.com>
5188
5189 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5190 as 'default' in the switch.
5191
5192 2013-05-20 Tom Tromey <tromey@redhat.com>
5193
5194 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5195 get_addr_from_python calls out of TRY_CATCH.
5196 (infpy_write_memory, infpy_search_memory): Likewise.
5197 * python/py-utils.c (get_addr_from_python): Return negative
5198 value on error. Use TRY_CATCH.
5199 * python/python-internal.h (get_addr_from_python): Use
5200 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5201
5202 2013-05-20 Tom Tromey <tromey@redhat.com>
5203
5204 * python/py-event.c (evpy_emit_event): Decref the
5205 result of PyObject_CallFunctionObjArgs.
5206
5207 2013-05-20 Tom Tromey <tromey@redhat.com>
5208
5209 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5210 Correctly decref.
5211
5212 2013-05-20 Tom Tromey <tromey@redhat.com>
5213
5214 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5215
5216 2013-05-20 Tom Tromey <tromey@redhat.com>
5217
5218 * python/py-event.h (gdbpy_initialize_event_generic): Use
5219 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5220 * python/py-evts.c (add_new_registry): Use
5221 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5222 * python/python-internal.h
5223 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5224
5225 2013-05-20 Tom Tromey <tromey@redhat.com>
5226
5227 * python/py-arch.c (archpy_disassemble): Update.
5228 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5229 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5230 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5231 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5232 macro.
5233 (GDB_PY_HANDLE_EXCEPTION): Update.
5234 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5235
5236 2013-05-20 Tom Tromey <tromey@redhat.com>
5237
5238 * python/python-internal.h (events_object_type): Remove.
5239
5240 2013-05-20 Tom Tromey <tromey@redhat.com>
5241
5242 * python/py-event.h (evpy_emit_event): Use
5243 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5244 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5245 New macro.
5246
5247 2013-05-20 Tom Tromey <tromey@redhat.com>
5248
5249 * py-evtregistry.c (create_event_object): Decref
5250 eventregistry_object if PyList_New fails.
5251
5252 2013-05-20 Tom Tromey <tromey@redhat.com>
5253
5254 * py-cmd.c (gdbpy_string_to_argv): Check result of
5255 PyList_New.
5256
5257 2013-05-20 Tom Tromey <tromey@redhat.com>
5258
5259 * python/python.c (before_prompt_hook): Add cleanup to
5260 decref 'hook'.
5261
5262 2013-05-20 Tom Tromey <tromey@redhat.com>
5263
5264 * python/py-function.c (fnpy_init): Decref result of
5265 PyObject_GetAttrString.
5266
5267 2013-05-20 Tom Tromey <tromey@redhat.com>
5268
5269 * python/py-threadevent.c (get_event_thread): Use
5270 CPYCHECKER_RETURNS_BORROWED_REF.
5271 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5272 New define.
5273 (pspace_to_pspace_object, objfile_to_objfile_object)
5274 (find_thread_object): Use it.
5275
5276 2013-05-20 Tom Tromey <tromey@redhat.com>
5277
5278 * python/py-arch.c (arch_object_type): Use
5279 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5280 * python/py-block.c (block_syms_iterator_object_type):
5281 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5282 * python/py-bpevent.c (breakpoint_event_object_type):
5283 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5284 * python/py-cmd.c (cmdpy_object_type): Use
5285 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5286 * python/py-continueevent.c (continue_event_object_type):
5287 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5288 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5289 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5290 * python/py-events.h (thread_event_object_type):
5291 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5292 * python/py-evtregistry.c (eventregistry_object_type): Use
5293 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5294 * python/py-exitedevent.c (exited_event_object_type):
5295 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5296 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5297 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5298 * python/py-function.c (fnpy_object_type): Use
5299 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5300 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5301 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5302 * python/py-infthread.c (thread_object_type): Use
5303 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5304 * python/py-lazy-string.c (lazy_string_object_type):
5305 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5306 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5307 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5308 * python/py-objfile.c (objfile_object_type): Use
5309 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5310 * python/py-param.c (parmpy_object_type):
5311 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5312 * python/py-progspace.c (pspace_object_type):
5313 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5314 * python/py-signalevent.c (signal_event_object_type):
5315 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5316 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5317 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5318 * python/py-type.c (type_object_type, field_object_type)
5319 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5320 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5321 define.
5322 (value_object_type, block_object_type, symbol_object_type)
5323 (event_object_type, stop_event_object_type, breakpoint_object_type)
5324 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5325
5326 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5327
5328 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5329 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5330
5331 2013-05-20 Doug Evans <dje@google.com>
5332
5333 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5334 For Fission.
5335 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5336 reading_dwo_directly.
5337 (struct signatured_type): New member dwo_unit.
5338 (struct die_reader_specs): New member comp_dir.
5339 (create_signatured_type_table_from_index): Use malloc for
5340 all_type_units instead of objfile's obstack.
5341 (create_all_type_units): Ditto.
5342 (fill_in_sig_entry_from_dwo_entry): New function.
5343 (add_type_unit): New function.
5344 (lookup_dwo_signatured_type): New function.
5345 (lookup_dwp_signatured_type): New function.
5346 (lookup_signatured_type): New arg cu. All callers updated.
5347 (init_cu_die_reader): Initialize comp_dir.
5348 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5349 Change assert of matching type signatures to call error on mismatch.
5350 (lookup_dwo_unit): Add assert.
5351 (init_tu_and_read_dwo_dies): New function.
5352 (init_cutu_and_read_dies): Call it.
5353 (build_type_unit_groups): Handle case of no type unit groups created.
5354 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5355 (lookup_dwo_cutu): Tweak complaint.
5356 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5357 (dwarf2_per_objfile_free): Free all_type_units.
5358
5359 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5360
5361 * windows-nat.c (handle_unload_dll): Add missing empty line.
5362
5363 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5364
5365 * dwarf2read.c (prototyped_function_p): New function.
5366 (read_subroutine_type): Use it.
5367
5368 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5369
5370 * rs6000-aix-tdep.c: De-indent some example code provided
5371 as a comment.
5372
5373 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5374
5375 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5376 region is ok for a hardware watchpoint using the new ptrace interface
5377 on Power servers.
5378
5379 2013-05-17 Doug Evans <dje@google.com>
5380
5381 * NEWS: Mention new maintenance commands check-symtabs, and
5382 expand-symtabs, and renamed check-psymtabs.
5383 * psymtab.c (maintenance_check_psymtabs): Renamed from
5384 maintenance_check_symtabs. Only process already-expanded symbol
5385 tables.
5386 (_initialize_psymtab): Update.
5387 * symmisc.c (maintenance_check_symtabs): New function.
5388 (maintenance_expand_name_matcher): New function
5389 (maintenance_expand_file_matcher): New function
5390 (maintenance_expand_symtabs): New function.
5391 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5392 commands.
5393
5394 2013-05-17 Tom Tromey <tromey@redhat.com>
5395
5396 * python/py-inferior.c (infpy_read_memory): Don't call
5397 PyErr_SetString if PyObject_New fails.
5398 * python/py-frame.c (frame_info_to_frame_object): Don't call
5399 PyErr_SetString if PyObject_New fails.
5400
5401 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5402
5403 * acinclude.m4: Add check for dlopen in libdl.
5404 * configure.ac: Ditto.
5405 * configure: Regenerate.
5406
5407 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5408
5409 * frame.c (frame_stash): Convert to htab.
5410 (frame_addr_hash): New function.
5411 (frame_addr_hash_eq): New function.
5412 (frame_stash_create): Convert function to create
5413 a hash table.
5414 (frame_stash_add): Convert function to add an entry to a hash
5415 table.
5416 (frame_stash_find): Convert function to search the hash table.
5417 (frame_stash_invalidate): Convert function to empty the hash
5418 table.
5419 (get_frame_id): Only add to stash if a frame_id is created.
5420 (_initialize_frame): Call frame_stash_create.
5421
5422 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5423
5424 * configure.ac: Ensure MIG is available when building for GNU Hurd
5425 hosts.
5426 * configure: Regenerate.
5427
5428 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5429
5430 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5431
5432 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5433
5434 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5435 all cleanups are done before returning from this function.
5436
5437 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5438
5439 * utils.h: #include "exceptions.h".
5440 (enum errors): Remove partial declaration.
5441
5442 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5443
5444 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5445 * gdbarch.h, gdbarch.c: Regenerate.
5446 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5447 handling.
5448
5449 * rs6000-aix-tdep.h: New file.
5450 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5451 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5452 "xml-utils.h".
5453 (struct field_info, struct ld_info_desc): New types.
5454 (ld_info32_desc, ld_info64_desc): New static constants.
5455 (struct ld_info): New type.
5456 (rs6000_aix_extract_ld_info): New function.
5457 (rs6000_aix_shared_library_to_xml): Likewise.
5458 (rs6000_aix_ld_info_to_xml): Likewise.
5459 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5460 (rs6000_aix_init_osabi): Add call to
5461 set_gdbarch_core_xfer_shared_libraries_aix.
5462 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5463 Remove "xml-utils.h" include.
5464 (LdInfo): Delete typedef.
5465 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5466 Delete macros.
5467 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5468 Adjust code accordingly.
5469 (rs6000_core_ldinfo): Delete, folded into
5470 rs6000_aix_core_xfer_shared_libraries_aix.
5471 (rs6000_xfer_shared_library): Delete.
5472 (rs6000_xfer_shared_libraries): Reimplement.
5473
5474 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5475
5476 * record.c (record_goto_cmdlist): New.
5477 (cmd_record_goto): Split into this ...
5478 (cmd_record_goto_begin): ... this
5479 (cmd_record_goto_end): ... and this.
5480 (_initialize_record): Change "record goto" to prefix command.
5481 Add commands for "record goto begin" and "record goto end".
5482 Add an alias for "record goto start" to "record goto begin".
5483
5484 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5485
5486 * linespec.c (convert_linespec_to_sals): New comment for
5487 SOURCE_FILENAME assignment.
5488
5489 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5490
5491 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5492 internal_warning.
5493
5494 2013-05-14 Tom Tromey <tromey@redhat.com>
5495
5496 * eval.c (parse_and_eval_long): Make 'exp' const.
5497 * value.h (parse_and_eval_long): Update.
5498
5499 2013-05-14 Tom Tromey <tromey@redhat.com>
5500
5501 * ui-file.c (gdb_fopen): Make arguments const.
5502 * ui-file.h (gdb_fopen): Make arguments const.
5503
5504 2013-05-14 Tom Tromey <tromey@redhat.com>
5505
5506 * remote.c (remote_set_trace_notes): Make arguments const.
5507 * target.c (update_current_target): Update cast.
5508 * target.h (to_set_trace_notes): Make arguments const.
5509
5510 2013-05-14 Tom Tromey <tromey@redhat.com>
5511
5512 * go32-nat.c (go32_terminal_info): Make 'args' const.
5513 * inferior.h (child_terminal_info): Update.
5514 * inflow.c (child_terminal_info): Make 'args' const.
5515 * target.c (default_terminal_info): Make 'args' const.
5516 (debug_to_terminal_save_ours): Likewise.
5517 * target.h (struct target_ops) <to_terminal_info>: Make argument
5518 const.
5519
5520 2013-05-13 Tom Tromey <tromey@redhat.com>
5521
5522 * gcore.c (create_gcore_bfd): Make 'filename' const.
5523 * gcore.h (create_gcore_bfd): Make 'filename' const.
5524 * record-full.c (record_full_save): Make 'recfilename' const.
5525 * target.c (target_save_record): Make 'filename' const.
5526 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5527 const.
5528 (target_save_record): Likewise.
5529
5530 2013-05-13 Tom Tromey <tromey@redhat.com>
5531
5532 PR gdb/15338:
5533 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5534 ranges section has been read.
5535
5536 2013-05-13 Tom Tromey <tromey@redhat.com>
5537
5538 PR exp/15364:
5539 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5540 STRUCTOP_PTR>: Return a not_lval value for
5541 EVAL_AVOID_SIDE_EFFECTS.
5542 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5543 for EVAL_AVOID_SIDE_EFFECTS.
5544
5545 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5546
5547 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5548 floating point registers to register type before storing
5549 value.
5550 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5551 Likewise.
5552
5553 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5554 Tom Tromey <tromey@redhat.com>
5555
5556 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5557 New functions.
5558 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5559 Declare.
5560 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5561 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5562 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5563 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5564
5565 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5566 Tom Tromey <tromey@redhat.com>
5567
5568 PR build/15414:
5569 * configure: Rebuild.
5570 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5571 with -Wno-format.
5572
5573 2013-05-10 Pedro Alves <palves@redhat.com>
5574
5575 * remote.c (_initialize_remote): Fix spelling of
5576 qXfer:traceframe-info:read packet in packet config command.
5577
5578 2013-05-10 David Taylor <dtaylor@emc.com>
5579
5580 PR remote/15455
5581
5582 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5583 "QTro" at start of packet.
5584
5585 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5586
5587 * solib-aix.c (solib_aix_relocate_section_addresses):
5588 For the .bss section action, apply the same offset as
5589 the .data section.
5590
5591 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5592
5593 * solib-aix.c (solib_aix_relocate_section_addresses):
5594 Remove FIXME comment.
5595
5596 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5597
5598 PR tdep/15420:
5599 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5600 New functions, directly copied from sparc-sol-thread.c.
5601 * sparc-sol-thread.c: Delete.
5602 * configure.ac: Remove code handling sparc-solaris-thread.c.
5603 * configure: Regenerate.
5604
5605 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5606
5607 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5608 filter logic.
5609 (backtrace_command): Add "no-filters" option parsing.
5610 (_initialize_stack): Alter help to reflect "no-filters" option.
5611 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5612 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5613 (py-frame.o): Add target
5614 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5615 filter files.
5616 * python/python.h: Add new frame filter constants, and flag enum.
5617 (apply_frame_filter): Add definition.
5618 * python/python.c (apply_frame_filter): New non-Python
5619 enabled function.
5620 * python/py-utils.c (py_xdecref): New function.
5621 (make_cleanup_py_xdecref): Ditto.
5622 * python/py-objfile.c: Declare frame_filters dictionary.
5623 (objfpy_dealloc): Add frame_filters dealloc.
5624 (objfpy_new): Initialize frame_filters attribute.
5625 (objfile_to_objfile_object): Ditto.
5626 (objfpy_get_frame_filters): New function.
5627 (objfpy_set_frame_filters): New function.
5628 * python/py-progspace.c: Declare frame_filters dictionary.
5629 (pspy_dealloc): Add frame_filters dealloc.
5630 (pspy_new): Initialize frame_filters attribute.
5631 (pspacee_to_pspace_object): Ditto.
5632 (pspy_get_frame_filters): New function.
5633 (pspy_set_frame_filters): New function.
5634 * python/py-framefilter.c: New file.
5635 * python/lib/gdb/command/frame_filters.py: New file.
5636 * python/lib/gdb/frames.py: New file.
5637 * python/lib/gdb/__init__.py: Initialize global frame_filters
5638 dictionary
5639 * python/lib/gdb/FrameDecorator.py: New file.
5640 * python/lib/gdb/FrameIterator.py: New file.
5641 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5642 * mi/mi-cmds.h: Declare.
5643 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5644 --no-frame-filter logic, and Python frame filter logic.
5645 (stack_enable_frame_filters): New function.
5646 (parse_no_frame_option): Ditto.
5647 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5648 filter logic.
5649 (mi_cmd_stack_list_locals): Ditto.
5650 (mi_cmd_stack_list_args): Ditto.
5651 (mi_cmd_stack_list_variables): Ditto.
5652 * NEWS: Add frame filter note.
5653
5654 2013-05-09 Doug Evans <dje@google.com>
5655
5656 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5657 All callers updated.
5658 (syms_from_objfile): Ditto. Make static.
5659 (symbol_file_add_with_addrs): Renamed from
5660 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5661 num_offsets. All callers updated.
5662 * symfile.h (syms_from_objfile): Delete.
5663
5664 * symfile.c (decrement_reading_symtab): Add assert.
5665 (increment_reading_symtab): Ditto.
5666
5667 2013-05-09 Joel Brobecker <brobecker@adacore.com>
5668
5669 * source.c (forward_search_command): Replace call to getc
5670 by call to fgetc.
5671 (reverse_search_command): Likewise.
5672
5673 2013-05-08 Doug Evans <dje@google.com>
5674
5675 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5676 matching test.
5677
5678 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5679
5680 * sol-thread.c (info_cb): Factorize the code a little.
5681
5682 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5683
5684 * sol-thread.c (info_cb): Rework the output of the "maintenance
5685 info sol-threads" command a bit.
5686
5687 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5688
5689 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5690 Replace ti.ti_startfunc by ti.ti_pc.
5691
5692 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5693
5694 * solib-aix.c (solib_aix_free_library_list): New function
5695 for the case where HAVE_LIBEXPAT is not defined.
5696
5697 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5698
5699 PR breakpoints/15413:
5700 * breakpoint.c (condition_completer): Simplify the code to
5701 disconsider multiple locations of breakpoints when completing the
5702 "condition" command.
5703
5704 2013-05-07 Pierre Muller <muller@sourceware.org>
5705
5706 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5707 instead of <sys/wait.h>.
5708
5709 2013-05-07 Pierre Muller <muller@sourceware.org>
5710
5711 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5712 trailing new line from warning message.
5713
5714 2013-05-07 Pierre Muller <muller@sourceware.org>
5715
5716 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5717 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5718
5719 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5720
5721 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5722 error message (ARI fix).
5723
5724 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5725
5726 * features/library-list-aix.dtd: Replace library-list by
5727 library-list-aix.
5728 * rs6000-nat.c: Replace library-list by library-list-aix
5729 throughout.
5730 * solib-aix.c: Likewise.
5731
5732 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5733
5734 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5735 Renames TARGET_OBJECT_AIX_LIBRARIES.
5736 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5737 TARGET_OBJECT_LIBRARIES_AIX throughout.
5738 * solib-aix.c: Likwise.
5739
5740 2013-05-07 Yao Qi <yao@codesourcery.com>
5741
5742 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5743 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5744
5745 2013-05-07 Yao Qi <yao@codesourcery.com>
5746
5747 * solib-dsbt.c (enable_break): Declare.
5748 (dsbt_current_sos): Remove call to enable_break2.
5749 (enable_break2): Rename to enable_break. Set solib breakpoint
5750 on '_dl_debug_state'.
5751 (enable_break): Remove.
5752
5753 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
5754
5755 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5756 debug state prior to replicating existing hardware watchpoints or
5757 breakpoints.
5758
5759 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5760
5761 * gcore.c (gcore_create_callback): Ignore sections with
5762 separate_debug_objfile_backlink != NULL.
5763
5764 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5765 Andrew Jenner <andrew@codesourcery.com>
5766 Chung-Lin Tang <cltang@codesourcery.com>
5767 Julian Brown <julian@codesourcery.com>
5768
5769 Based on the nios2-elf port from Altera Corporation.
5770
5771 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5772 nios2-linux-tdep.o.
5773 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5774 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5775 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5776 * nios2-tdep.h: New.
5777 * nios2-tdep.c: New.
5778 * nios2-linux-tdep.c: New.
5779 * features/Makefile (WHICH): Add nios2-linux.
5780 (nios2-linux-expedite): Set.
5781 * features/nios2-cpu.xml: New.
5782 * features/nios2.xml: New.
5783 * features/nios2-linux.xml: New.
5784 * features/nios2.c: New (autogenerated).
5785 * features/nios2-linux.c: New (autogenerated).
5786 * regformats/nios2-linux.dat: New (autogenerated).
5787 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5788 and commands.
5789
5790 2013-05-06 Doug Evans <dje@google.com>
5791
5792 * symfile.c: Whitespace cleanup.
5793
5794 * solist.h (struct target_so_ops): New member clear_so.
5795 * solib-svr4.c (svr4_clear_so): New function.
5796 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5797 * solib.c (clear_so): Renamed from free_so_symbols.
5798 All callers updated. Call target clear_so if it exists.
5799
5800 2013-05-06 Tom Tromey <tromey@redhat.com>
5801
5802 * ada-lang.c (ada_value_primitive_packed_val): Don't
5803 call value_incref.
5804 * value.c (set_value_parent): Incref the new parent and decref
5805 the old parent.
5806 (value_copy, value_primitive_field): Use set_value_parent.
5807
5808 2013-05-06 Tom Tromey <tromey@redhat.com>
5809
5810 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5811 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5812 if needed.
5813 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5814 * dwarf2read.c (write_constant_as_bytes)
5815 (dwarf2_fetch_constant_bytes): New functions.
5816
5817 2013-05-06 Tom Tromey <tromey@redhat.com>
5818
5819 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5820 parameters.
5821 (dwarf2_const_value_attr): Update.
5822
5823 2013-05-06 Tom Tromey <tromey@redhat.com>
5824
5825 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5826 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5827 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5828 Remove declaration.
5829
5830 2013-05-06 Tom Tromey <tromey@redhat.com>
5831
5832 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5833 objfile's obstack.
5834
5835 2013-05-06 Doug Evans <dje@google.com>
5836
5837 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5838 * stabsread.h (process_one_symbol): Update declaration.
5839 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5840 * elfread.c (elf_symfile_relocate_probe): Ditto.
5841 * psymtab.c (relocate_psymtabs): Ditto.
5842 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5843 (objfile_relocate): Ditto.
5844 * objfiles.h (objfile_relocate): Update declaration.
5845 * symfile.c (relative_addr_info_to_section_offsets): Constify
5846 addrs parameter.
5847 (default_symfile_offsets): Ditto.
5848 (syms_from_objfile_1): Constify offsets parameter.
5849 (syms_from_objfile): Ditto.
5850 (symbol_file_add_with_addrs_or_offsets): Ditto.
5851 (symfile_map_offsets_to_segments): Constify data parameter.
5852 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5853 delta parameters of member relocate.
5854 (struct sym_probe_fns): Constify new_offsets,
5855 delta parameters of member sym_relocate_probe.
5856 (struct sym_fns): Constify section_addr_info parameter of member
5857 sym_offsets.
5858 (relative_addr_info_to_section_offsets): Update declaration.
5859 (default_symfile_offsets): Ditto.
5860 (syms_from_objfile): Ditto.
5861 (symfile_map_offsets_to_segments): Ditto.
5862
5863 * symfile.c (syms_from_objfile_1): Use correct section count when
5864 objfile->sf == NULL.
5865
5866 2013-05-06 Mike Frysinger <vapier@gentoo.org>
5867
5868 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5869
5870 2013-05-06 Doug Evans <dje@google.com>
5871
5872 * psympriv.h (struct partial_symtab): Augment comment for member
5873 section_offsets.
5874
5875 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5876
5877 Reimplement shared library support on ppc-aix...
5878 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5879 * features/library-list-aix.dtd: New file.
5880 * solib-aix.h, solib-aix.c: New file.
5881 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5882 (rs6000_find_toc_address_hook): Delete.
5883 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5884 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5885 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5886 "xml-utils.h".
5887 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5888 (vmap_symtab, fixup_breakpoints): Delete.
5889 (rs6000_xfer_shared_libraries): New function.
5890 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5891 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5892 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5893 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5894 (rs6000_xfer_shared_library): New function.
5895 (find_toc_address): Delete.
5896 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5897 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5898 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5899 before creating minimal symbol. Adjust function description
5900 accordingly.
5901 (scan_xcoff_symtab): Replace call to
5902 prim_record_minimal_symbol_and_info by call to
5903 record_minimal_symbol.
5904 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5905 around default_symfile_offsets.
5906 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5907 powerpc-aix targets.
5908 * config/rs6000/nm-rs6000.h: Delete.
5909 * config/powerpc/aix.mh (NAT_FILE): Delete.
5910 (NATDEPFILES): Remove xcoffsolib.o.
5911 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5912 (ALL_TARGET_OBS): Add solib-aix.o.
5913 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5914 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5915 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5916 * xcoffsolib.h, xcoffsolib.c: Delete.
5917
5918 * solib.c (reload_shared_libraries): Remove reference to
5919 SOLIB_CREATE_INFERIOR_HOOK.
5920 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5921 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5922 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5923 comment.
5924 * corelow.c (deprecated_core_resize_section_table): Delete.
5925 * exec.c: Remove include of xcoffsolib.h".
5926 (map_vmap, vmap): Delete.
5927 (exec_close_1): Remove references to vmap.
5928 (exec_file_attach): Remove vmap handling code, and reference
5929 to DEPRECATED_IBM6000_TARGET.
5930 (bfdsec_to_vmap): Delete.
5931 (exec_files_info): Remove block of code handling VMAP.
5932 * infcmd.c (post_create_inferior): Remove reference to
5933 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5934 * infrun.c (follow_exec): Remove reference to
5935 SOLIB_CREATE_INFERIOR_HOOK.
5936 * stack.c (print_frame): Remove reference to PC_SOLIB.
5937 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5938 (dsbt_relocate_main_executable): Likewise.
5939 * solib-frv.c (frv_current_sos): Likewise.
5940
5941 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5942
5943 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5944 to target_write_memory and target_read_memory.
5945
5946 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5947
5948 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5949 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5950
5951 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5952
5953 * darwin-nat.c: Replace all "%x" instances in format strings
5954 into "0x%x" throughout.
5955
5956 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5957
5958 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5959 gdb_assert by call to MACH_CHECK_ERROR.
5960 (darwin_attach_pid): Raise an error rather than a failed
5961 assertion when various system calls failed. Report a warning
5962 instead of raising a failed assertion when PREV_NOT is not NULL
5963 after call to mach_port_request_notification.
5964 (darwin_ptrace_me): Raise an error rather than a failed
5965 assertion when read returns nonzero.
5966
5967 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5968
5969 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5970
5971 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5972
5973 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5974
5975 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5976
5977 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5978 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5979 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5980 a stale cleanup. Fix double free of NAME.
5981
5982 2013-05-04 Eli Zaretskii <eliz@gnu.org>
5983
5984 * windows-nat.c (windows_delete_thread): Accept an additional
5985 argument, the thread's exit code, and announce thread death when
5986 print_thread_events is non-zero and we are deleting a thread that
5987 is not the main thread.
5988 (get_windows_debug_event): Pass thread exit code to
5989 windows_delete_thread.
5990
5991 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5992
5993 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5994 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5995 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5996 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5997 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5998 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5999 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6000 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6001 (gdbarch_tdep): New struct.
6002 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6003 E_NUM_REGS.
6004 (v850e3v5_register_name): New function.
6005 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6006 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6007 code handling the struct return conventions for the RH850 ABI.
6008 Update all callers.
6009 (v850_eight_byte_align_p): New function.
6010 (v850_push_call_dummy): Push structs by value, not by reference
6011 for the RH850 ABI. Add support for eight byte alignment.
6012 (v850_dbtrap_breakpoint_from_pc): New function.
6013 (v850_gdbarch_init): Add ABI detection code. Register
6014 v850e3v5_register_name for the v850e3v5 architecture. Set the
6015 number of registers for v850e3v5. Register
6016 v850_dbtrap_breakpoint_from_pc as appropriate.
6017 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6018
6019 2013-05-03 Doug Evans <dje@google.com>
6020
6021 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6022 of bfd_count_sections.
6023 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6024 * symfile.c (default_symfile_offsets): Ditto.
6025 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6026 one entry, not bfd_count_sections entries.
6027
6028 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6029
6030 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6031 `save' and `restore' register groups. Don't include SPL
6032 or SPH in these groups.
6033 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6034 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6035 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6036 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6037 dwarf2_append_unwinders().
6038
6039 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6040
6041 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6042 ignore SIGINT and SIGTRAP in case these internal signals are
6043 caught explicitely.
6044
6045 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6046
6047 * darwin-nat.c (darwin_read_write_inferior): Change types
6048 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6049 of copy_count to "mach_msg_type_number_t".
6050 (darwin_read_dyld_info): Change type of parameter
6051 rdaddr to "gdb_byte *".
6052
6053 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6054
6055 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6056 of &info->load_map from "char *" to "gdb_byte *".
6057
6058 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6059
6060 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6061 from "char *" to "gdb_byte *".
6062 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6063
6064 2013-04-30 Doug Evans <dje@google.com>
6065
6066 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6067 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6068 DWO stub. If DWO isn't found, just use stub.
6069 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6070
6071 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6072 calling init_cutu_and_read_dies.
6073
6074 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6075
6076 * target-descriptions.c (maint_print_c_tdesc_cmd):
6077 Add case to parse structures as register types and
6078 bitfields.
6079
6080 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6081
6082 * MAINTAINERS (Write After Approval): Add myself to the list.
6083
6084 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6085
6086 * sol-thread.c (rw_common): Change type of parameter "buf"
6087 to "gdb_byte *".
6088 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6089 rw_common to "gdb_byte *" instead of "char *".
6090
6091 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6092
6093 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6094 of local variable msym to const struct bound_minimal_symbol.
6095 Adjust use accordingly.
6096 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6097
6098 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6099
6100 * i386gnu-nat.c (CREG_OFFSET): New macro.
6101 (creg_offset): New array.
6102 (CREG_ADDR): Use creg_offset instead of reg_offset.
6103
6104 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6105
6106 * mep-tdep.c (mep_write_pc): Delete.
6107 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6108 Add call to set_gdbarch_pc_regnum.
6109
6110 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6111
6112 * common/filestuff.c: Replace #include <dirent.h> by
6113 #include "gdb_dirent.h".
6114
6115 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6116
6117 * common/filestuff.c: Replace #include <sys/stat.h> by
6118 #include "gdb_stat.h".
6119
6120 2013-04-29 Pierre Muller <muller@sourceware.org>
6121
6122 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6123 editCase function rule.
6124 (get_DW_AT_signature_type): Likewise.
6125
6126 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6127
6128 * m32r-tdep.c (m32r_write_pc): Delete.
6129 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6130 Add call to set_gdbarch_pc_regnum.
6131
6132 2013-04-29 Pierre Muller <muller@sourceware.org>
6133
6134 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6135
6136 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6137
6138 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6139
6140 2013-04-28 Yao Qi <yao@codesourcery.com>
6141
6142 * solib-dsbt.c (fetch_loadmap): Re-indent.
6143 (displacement_from_map, enable_break2): Likewise.
6144 (dsbt_relocate_section_addresses): Likewise.
6145
6146 2013-04-26 Joel Brobecker <brobecker@adacore.com>
6147
6148 GDB 7.6 released.
6149
6150 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6151
6152 PR corefiles/14983:
6153 * dwarf2read.c (process_full_comp_unit): Always create a static
6154 block.
6155
6156 2013-04-25 Hui Zhu <hui@codesourcery.com>
6157
6158 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6159 to loc->cmd_bytecode.
6160
6161 2013-04-24 Doug Evans <dje@google.com>
6162
6163 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6164
6165 2013-04-22 Keith Seitz <keiths@redhat.com>
6166
6167 * tracepoint.c (trace_save): Call the writer's start method.
6168
6169 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6170
6171 PR gdb/10462
6172 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6173 before argument.
6174
6175 2013-04-23 Tom Tromey <tromey@redhat.com>
6176
6177 * common/filestuff.c: Check USE_WIN32API before including
6178 sys/socket.h.
6179 (HAVE_F_GETFD): New define.
6180 (mark_cloexec): Check HAVE_F_GETFD.
6181 (gdb_open_cloexec): Change 'mode' to unsigned long.
6182 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6183 (gdb_pipe_cloexec): Check HAVE_PIPE.
6184 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6185 long.
6186
6187 2013-04-23 Hui Zhu <hui@codesourcery.com>
6188
6189 PR gdb/15293
6190 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6191
6192 2013-04-23 Hui Zhu <hui@codesourcery.com>
6193
6194 PR gdb/15165
6195 * breakpoint.c (dprintf_print_recreate): New.
6196 (save_breakpoints): Let it not save dprintf commands.
6197 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6198
6199 2013-04-22 Tom Tromey <tromey@redhat.com>
6200
6201 PR gdb/7912:
6202 * Makefile.in (SFILES): Add filestuff.c
6203 (COMMON_OBS): Add filestuff.o.
6204 (filestuff.o): New target.
6205 * auto-load.c (auto_load_objfile_script_1): Use
6206 gdb_fopen_cloexec.
6207 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6208 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6209 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6210 * common/agent.c (gdb_connect_sync_socket): Use
6211 gdb_socket_cloexec.
6212 * common/filestuff.c: New file.
6213 * common/filestuff.h: New file.
6214 * common/linux-osdata.c (linux_common_core_of_thread)
6215 (command_from_pid, commandline_from_pid, print_source_lines)
6216 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6217 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6218 gdb_fopen_cloexec.
6219 * common/linux-procfs.c (linux_proc_get_int)
6220 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6221 * config.in, configure: Rebuild.
6222 * configure.ac: Don't check for sys/socket.h. Check for
6223 fdwalk, pipe2.
6224 * corelow.c (core_open): Use gdb_open_cloexec.
6225 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6226 * fork-child.c (fork_inferior): Call close_most_fds.
6227 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6228 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6229 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6230 Use gdb_fopen_cloexec.
6231 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6232 gdb_open_cloexec.
6233 (linux_async_pipe): Use gdb_pipe_cloexec.
6234 * remote-fileio.c (remote_fileio_func_open): Use
6235 gdb_open_cloexec.
6236 * remote.c (remote_file_put, remote_file_get): Use
6237 gdb_fopen_cloexec.
6238 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6239 close_most_fds.
6240 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6241 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6242 * solib.c (solib_find): Use gdb_open_cloexec.
6243 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6244 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6245 (tfile_open): Use gdb_open_cloexec.
6246 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6247 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6248 * xml-support.c (xml_fetch_content_from_file): Use
6249 gdb_fopen_cloexec.
6250 * main.c (captured_main): Call notice_open_fds.
6251
6252 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6253
6254 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6255 'char *' to 'gdb_byte *'.
6256 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6257 'gdb_byte'.
6258
6259 2013-04-22 Yao Qi <yao@codesourcery.com>
6260
6261 * infrun.c: Fix typo in comment.
6262
6263 2013-04-22 Andrew Haley <aph@redhat.com>
6264
6265 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6266 instead of "long".
6267
6268 2013-04-20 Yao Qi <yao@codesourcery.com>
6269
6270 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6271 'char *' to 'gdb_byte *'. Cast the return value of
6272 'bt_ctf_get_char_array' to 'gdb_byte *'.
6273
6274 2013-04-19 Pedro Alves <palves@redhat.com>
6275
6276 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6277 -Wpointer-sign.
6278 * configure: Regenerate.
6279
6280 2013-04-19 Pedro Alves <palves@redhat.com>
6281
6282 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6283 'void *'.
6284
6285 2013-04-19 Pedro Alves <palves@redhat.com>
6286
6287 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6288 Change type of 'myaddr' parameter to gdb_byte pointer.
6289 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6290 to 'long long' pointer instead of to 'unsigned long long'.
6291 (monitor_write_memory_block, monitor_read_memory_single)
6292 (monitor_read_memory): Change type of 'myaddr' parameter to
6293 gdb_byte pointer.
6294
6295 2013-04-19 Pedro Alves <palves@redhat.com>
6296
6297 * record.c (validate_history_size): Make parameter 'setting'
6298 unsigned.
6299
6300 2013-04-19 Pedro Alves <palves@redhat.com>
6301
6302 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6303 to 'gdb_byte *'.
6304
6305 2013-04-19 Pedro Alves <palves@redhat.com>
6306
6307 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6308 local to int.
6309
6310 2013-04-19 Pedro Alves <palves@redhat.com>
6311
6312 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6313 * ada-tasks.c (read_fat_string_value): Likewise.
6314
6315 2013-04-19 Pedro Alves <palves@redhat.com>
6316
6317 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6318 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6319 'offset', and adjust.
6320
6321 2013-04-19 Pedro Alves <palves@redhat.com>
6322
6323 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6324 (read_index_from_section): Add cast to 'char *'.
6325
6326 2013-04-19 Pedro Alves <palves@redhat.com>
6327
6328 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6329
6330 2013-04-19 Pedro Alves <palves@redhat.com>
6331
6332 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6333
6334 2013-04-19 Pedro Alves <palves@redhat.com>
6335
6336 * record-full.c (record_full_get_bookmark): Change local 'ret'
6337 type to char * and add cast to gdb_byte *.
6338 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6339 string.
6340 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6341
6342 2013-04-19 Pedro Alves <palves@redhat.com>
6343
6344 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6345 * python/py-prettyprint.c (print_string_repr): Change type of
6346 'output' local to char *. Add cast to gdb_byte * in
6347 LA_PRINT_STRING call.
6348 (print_children): Change type of 'output' local to char *.
6349 * python/py-value.c (valpy_string): Add cast to const char * in
6350 PyUnicode_Decode call.
6351
6352 2013-04-19 Pedro Alves <palves@redhat.com>
6353
6354 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6355 and change its type to 'const char *'. Adjust.
6356 (mips_send_packet): Add cast to 'char *', and remove cast to
6357 'unsigned char *'.
6358 (mips_receive_packet): Remove cast to 'unsigned char *'.
6359 (mips_load_srec): Use bfd_byte.
6360 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6361 (pmon_checkset): Make 'value' parameter unsigned.
6362
6363 2013-04-19 Pedro Alves <palves@redhat.com>
6364
6365 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6366
6367 2013-04-19 Pedro Alves <palves@redhat.com>
6368
6369 * remote.c (remote_write_bytes_aux, compare_sections_command)
6370 (remote_read_qxfer)
6371 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6372 (remote_hostio_readlink, remote_bfd_iovec_pread)
6373 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6374 binary buffer, and char when buffer is used as string.
6375 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6376 (trace_save, tfile_open, traceframe_walk_blocks)
6377 (tfile_fetch_registers): Likewise.
6378
6379 2013-04-19 Pedro Alves <palves@redhat.com>
6380
6381 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6382 buffer and size_t size. Adjust.
6383 * ser-base.h (ser_base_write): Adjust.
6384 * ser-go32.c (cnts): Change type to size_t.
6385 (dos_write): Change prototype -- take 'void *'
6386 buffer and size_t size. Adjust.
6387 (dos_info): Print elements of 'cnts' as unsigned long.
6388 * serial.c (serial_write): Likewise.
6389 * serial.h (serial_write): Adjust.
6390 (struct serial_ops) <write>: Change prototype -- take 'void *'
6391 buffer and size_t size. Adjust.
6392
6393 2013-04-19 Pedro Alves <palves@redhat.com>
6394
6395 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6396 gdb_byte *.
6397 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6398
6399 2013-04-19 Pedro Alves <palves@redhat.com>
6400
6401 * alpha-tdep.c (alpha_extract_return_value): Use
6402 regcache_cooked_read_unsigned to read 'v0'.
6403
6404 2013-04-19 Pedro Alves <palves@redhat.com>
6405
6406 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6407 parameters 'at', 'as' and 'offset' to uint32_t.
6408
6409 2013-04-19 Pedro Alves <palves@redhat.com>
6410
6411 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6412 'is64' to signed 'int'.
6413
6414 2013-04-19 Pedro Alves <palves@redhat.com>
6415
6416 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6417 parameter to int *.
6418
6419 2013-04-19 Pedro Alves <palves@redhat.com>
6420
6421 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6422 'insnbuf' buffer type to unsigned int[].
6423
6424 2013-04-19 Pedro Alves <palves@redhat.com>
6425
6426 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6427
6428 2013-04-19 Pedro Alves <palves@redhat.com>
6429
6430 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6431 unsigned long *.
6432
6433 2013-04-19 Pedro Alves <palves@redhat.com>
6434
6435 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6436 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6437 UINT_MAX.
6438 * mips-tdep.c (heuristic_fence_post): Change type to int.
6439 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6440
6441 2013-04-19 Pedro Alves <palves@redhat.com>
6442
6443 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6444 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6445 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6446
6447 2013-04-19 Pedro Alves <palves@redhat.com>
6448
6449 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6450 it to get a string view of the byte buffer.
6451 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6452 type to gdb_byte *. Adjust.
6453 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6454 Change local to char *.
6455 * solib-darwin.c (find_program_interpreter): Change return type to
6456 char *. Adjust.
6457 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6458 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6459 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6460 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6461 * solib-svr4.c (find_program_interpreter): Change return type to
6462 char *. Adjust.
6463 (enable_break): Change local 'interp_name' to char *.
6464 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6465 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6466 (spu_pseudo_register_write_spu): Use char for string buffer.
6467 Adjust.
6468 (info_spu_event_command, info_spu_signal_command): Add casts to
6469 'char *'.
6470
6471 2013-04-19 Pedro Alves <palves@redhat.com>
6472
6473 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6474 gdb_byte[].
6475 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6476 * ada-lang.c (ada_value_assign): Use gdb_byte.
6477 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6478 (alphanbsd_sigtramp_offset): Use gdb_byte.
6479 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6480 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6481 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6482 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6483 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6484 * arm-tdep.c (arm_stub_unwind_sniffer)
6485 (arm_displaced_init_closure): Use gdb_byte.
6486 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6487 (arm_default_thumb_le_breakpoint)
6488 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6489 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6490 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6491 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6492 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6493 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6494 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6495 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6496 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6497 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6498 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6499 (cris_store_return_value, cris_extract_return_value): Use
6500 gdb_byte.
6501 (constraint): Change type of parameter to char * from signed
6502 char*. Use gdb_byte.
6503 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6504 of local buffer to gdb_byte *.
6505 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6506 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6507 (add_address_entry): Change type of local buffer to gdb_byte[].
6508 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6509 (frv_push_dummy_call): Use gdb_byte.
6510 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6511 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6512 (hppa_hpux_supply_save_state): Use gdb_byte.
6513 * hppa-tdep.c (hppa32_push_dummy_call)
6514 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6515 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6516 (slotN_contents, replace_slotN_contents): Change type of parameter
6517 to gdb_byte *.
6518 (fetch_instruction, ia64_pseudo_register_write)
6519 (ia64_register_to_value, ia64_value_to_register)
6520 (ia64_extract_return_value, ia64_store_return_value)
6521 (ia64_push_dummy_call): Use gdb_byte.
6522 * m32c-tdep.c (m32c_return_value): Remove cast.
6523 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6524 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6525 gdb_byte.
6526 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6527 * mn10300-tdep.c (mn10300_store_return_value)
6528 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6529 gdb_byte.
6530 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6531 (moxie_process_record): Remove casts.
6532 * ppc-ravenscar-thread.c (supply_register_at_address)
6533 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6534 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6535 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6536 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6537 * remote.c (compare_sections_command): Use gdb_byte.
6538 * score-tdep.c (score7_free_memblock): Change type of parameter to
6539 gdb_byte *.
6540 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6541 gdb_byte *. Use gdb_byte.
6542 (sh_push_dummy_call_fpu): Use gdb_byte.
6543 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6544 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6545 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6546 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6547 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6548 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6549 (sh64_store_return_value, sh64_register_convert_to_virtual):
6550 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6551 (sh64_pseudo_register_write): Use gdb_byte.
6552 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6553 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6554 buffer.
6555 (irix_current_sos): Use gdb_byte.
6556 * solib-som.c (som_current_sos): Use gdb_byte.
6557 * sparc-ravenscar-thread.c (supply_register_at_address)
6558 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6559 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6560 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6561 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6562 'gdb_byte *'.
6563 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6564 'gdb_byte *'.
6565 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6566 * xstormy16-tdep.c (xstormy16_extract_return_value)
6567 (xstormy16_store_return_value): Change parameter type to
6568 'gdb_byte *'. Adjust.
6569 (xstormy16_push_dummy_call): Use gdb_byte.
6570 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6571 (call0_analyze_prologue, execute_code): Use gdb_byte.
6572
6573 2013-04-19 Vladimir Kargov <kargov@gmail.com>
6574 Pedro Alves <palves@redhat.com>
6575
6576 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6577 value contents.
6578
6579 2013-04-17 Doug Evans <dje@google.com>
6580
6581 * dwarf2read.c (struct signatured_type): New member type.
6582 (struct attribute): Replace member signatured_type with signature.
6583 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6584 (read_call_site_scope): Call follow_die_ref instead of
6585 follow_die_ref_or_sig.
6586 (read_structure_type): Rewrite handling of signatured types.
6587 (read_enumeration_type): Ditto.
6588 (read_attribute_value): Update.
6589 (build_error_marker_type): New function.
6590 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6591 Don't call error for bad types, just build an error marker type.
6592 (dump_die_shallow): Update.
6593 (follow_die_sig_1): Renamed from follow_die_sig.
6594 Don't call error for bad types, instead return NULL.
6595 (follow_die_sig): New function.
6596 (get_signatured_type, get_DW_AT_signature_type): New functions.
6597
6598 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6599
6600 * aarch64-tdep.c (aarch64_write_pc): Removed.
6601 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6602 function.
6603
6604 2013-04-17 Yao Qi <yao@codesourcery.com>
6605
6606 * top.c (print_gdb_configuration): Print configure-time
6607 parameter on using libbabeltrace or not.
6608
6609 2013-04-16 Pedro Alves <palves@redhat.com>
6610
6611 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6612
6613 2013-04-16 Pedro Alves <palves@redhat.com>
6614
6615 * common/glibc_thread_db.h: Update from upstream glibc
6616 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6617
6618 2013-04-16 Pedro Alves <palves@redhat.com>
6619
6620 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6621 * common/glibc_thread_db.h: ... this new file ...
6622 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6623
6624 2013-04-16 Will Newton <will.newton@gmail.com>
6625 Pedro Alves <palves@redhat.com>
6626
6627 PR build/11881
6628
6629 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6630 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6631 HAVE_THREAD_DB_H.
6632
6633 2013-04-16 Pedro Alves <palves@redhat.com>
6634 Eli Zaretskii <eliz@gnu.org>
6635
6636 * NEWS: Mention "set foo unlimited".
6637
6638 2013-04-15 Doug Evans <dje@google.com>
6639
6640 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6641 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6642 (create_dwo_cu_reader): Renamed from
6643 create_dwo_debug_info_hash_table_reader.
6644 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6645 Remove support for multiple CUs in a DWO file.
6646 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6647
6648 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6649 instead of phex.
6650 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6651 (create_dwo_in_dwp): Ditto.
6652
6653 2013-04-15 Tom Tromey <tromey@redhat.com>
6654
6655 * NEWS: Move recent entries into "since 7.6" section.
6656
6657 2013-04-15 Tom Tromey <tromey@redhat.com>
6658
6659 PR c++/13588:
6660 * NEWS: Update.
6661 * break-catch-throw.c (struct exception_catchpoint)
6662 <exception_rx, pattern>: New fields.
6663 (fetch_probe_arguments, dtor_exception_catchpoint)
6664 (check_status_exception_catchpoint)
6665 (print_one_detail_exception_catchpoint): New functions.
6666 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6667 Compile regular expression if needed.
6668 (extract_exception_regexp): New function.
6669 (catch_exception_command_1): Use extract_exception_regexp.
6670 (compute_exception): Use fetch_probe_arguments.
6671 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6672 and check_status fields.
6673 * cp-abi.c (cplus_typename_from_type_info): New function.
6674 * cp-abi.h (cplus_typename_from_type_info): Declare.
6675 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6676 * gdb_regex.h (compile_rx_or_error): Declare.
6677 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6678 comment.
6679 (init_gnuv3_ops): Set get_type_from_type_info field.
6680 * probe.c (compile_rx_or_error): Move...
6681 * utils.c (compile_rx_or_error): ... here.
6682
6683 2013-04-15 Tom Tromey <tromey@redhat.com>
6684
6685 PR c++/15176:
6686 * NEWS: Update.
6687 * break-catch-throw.c (compute_exception): New function.
6688 (exception_funcs): New global.
6689 (_initialize_break_catch_throw): Create $_exception.
6690 * cp-abi.c (cplus_type_from_type_info): New function.
6691 * cp-abi.h (cplus_type_from_type_info): Declare.
6692 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6693 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6694 (gnuv3_get_type_from_type_info): New functions.
6695 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6696
6697 2013-04-15 Tom Tromey <tromey@redhat.com>
6698
6699 * break-catch-throw.c (struct exception_names): New.
6700 (exception_functions): Change type.
6701 (re_set_exception_catchpoint): Look for SDT probes.
6702
6703 2013-04-15 Tom Tromey <tromey@redhat.com>
6704
6705 PR c++/10119:
6706 * break-catch-throw.c (exception_functions): New global.
6707 (gnu_v3_exception_catchpoint_ops): Move earlier.
6708 (struct exception_catchpoint): New.
6709 (classify_exception_breakpoint): Rewrite.
6710 (re_set_exception_catchpoint): New function.
6711 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6712 Allocate a struct exception_catchpoint.
6713 (catch_exception_command_1): Update.
6714 (initialize_throw_catchpoint_ops): Set 're_set' method.
6715
6716 2013-04-15 Tom Tromey <tromey@redhat.com>
6717
6718 * Makefile.in (SFILES): Add break-catch-throw.c
6719 (COMMON_OBS): Add break-catch-throw.o.
6720 * break-catch-throw.c: New file.
6721 * breakpoint.c: Move exception-catching code to new file.
6722 (ep_parse_optional_if_clause): No longer static.
6723 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6724
6725 2013-04-15 Tom Tromey <tromey@redhat.com>
6726
6727 PR c++/9065:
6728 * NEWS: Update.
6729 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6730 * c-exp.y (TYPEID): New token.
6731 (exp): Add new TYPEID productions.
6732 (ident_tokens): Add "typeid".
6733 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6734 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6735 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6736 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6737 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6738 case.
6739 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6740 (build_std_type_info_type, gnuv3_get_typeid_type)
6741 (gnuv3_get_typeid): New functions.
6742 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6743 new fields on ABI object.
6744 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6745 * std-operator.def (OP_TYPEID): New.
6746
6747 2013-04-15 Tom Tromey <tromey@redhat.com>
6748
6749 * elfread.c (elf_symtab_read): Install versioned symbol under
6750 unversioned name as well.
6751
6752 2013-04-15 Tom Tromey <tromey@redhat.com>
6753
6754 PR c++/11990:
6755 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6756 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6757 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6758 (gdb_demangle): New function.
6759 * cp-support.h (gdb_demangle): Declare.
6760 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6761 (dwarf2_name): Use gdb_demangle.
6762 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6763 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6764 suffixes from name.
6765 (gnuv3_print_method_ptr): Use gdb_demangle.
6766 * jv-lang.c (java_demangle): Use gdb_demangle.
6767 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6768 * language.c (unk_lang_demangle): Use gdb_demangle.
6769 * symtab.c (symbol_find_demangled_name)
6770 (demangle_for_lookup): Use gdb_demangle.
6771
6772 2013-04-15 Tom Tromey <tromey@redhat.com>
6773
6774 PR c++/12824:
6775 * NEWS: Update.
6776 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6777 New constant.
6778 (classify_exception_breakpoint): New function.
6779 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6780 (print_mention_exception_catchpoint)
6781 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6782 (catch_exception_command_1): Handle "rethrow" catchpoint.
6783 (catch_rethrow_command): New function.
6784 (_initialize_breakpoint): Add "catch rethrow" command.
6785
6786 2013-04-15 Pierre Muller <muller@sourceware.org>
6787
6788 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6789 set_gdbarch_write_pc as deprecated anymore.
6790
6791 2013-04-15 Joel Brobecker <brobecker@adacore.com>
6792
6793 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6794 declarations.
6795
6796 2013-04-13 Yao Qi <yao@codesourcery.com>
6797
6798 * ctf.c (_initialize_ctf): Include "completer.h".
6799 Call add_target_with_completer instead of add_target.
6800
6801 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6802
6803 Fix GDB regression related to PR binutils/14813.
6804 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6805 * minidebug.c (lzma_close): Add return value comment.
6806 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6807 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6808 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6809
6810 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6811
6812 * config.in: Regenerate.
6813
6814 2013-04-12 Tom Tromey <tromey@redhat.com>
6815
6816 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6817 const.
6818 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6819 (struct die_reader_specs) <buffer>: Likewise.
6820 (die_reader_func_ftype): Make 'info_ptr' const.
6821 (struct line_header) <include_dirs, statement_program_start,
6822 statement_program_end>: Now const.
6823 (struct file_entry) <name>: Likewise.
6824 (struct partial_die_info) <sibling>: Likewise.
6825 (struct dwarf_block) <data>: Likewise.
6826 (dwarf2_read_section): Remove cast.
6827 (dwarf2_get_section_info): Make 'bufp' const.
6828 (read_index_from_section): Constify.
6829 (dw2_get_file_names_reader): Make 'info_ptr' const.
6830 (dw2_get_primary_filename_reader): Likewise.
6831 (read_comp_unit_head): Make 'info_ptr' and return type const.
6832 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6833 Likewise.
6834 (read_abbrev_offset): Constify.
6835 (dwarf2_create_include_psymtab): Make 'name' const.
6836 (create_debug_types_hash_table): Update.
6837 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6838 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6839 Constify.
6840 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6841 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6842 (read_comp_units_from_section): Constify.
6843 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6844 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6845 const.
6846 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6847 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6848 (create_dwp_hash_table, dwarf2_ranges_read)
6849 (dwarf2_record_block_ranges): Constify.
6850 (read_die_and_children, read_die_and_siblings_1)
6851 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6852 const.
6853 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6854 (abbrev_table_read_table): Constify.
6855 (load_partial_dies): Make 'info_ptr' const.
6856 (read_partial_die, read_attribute_value, read_attribute): Make
6857 'info_ptr' and return type const.
6858 (read_address, read_initial_length)
6859 (read_checked_initial_length_and_offset, read_offset)
6860 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6861 const.
6862 (read_direct_string): Make 'buf' and return type const.
6863 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6864 (read_indirect_string): Make return type const.
6865 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6866 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6867 'info_ptr' const.
6868 (read_str_index): Make return type const.
6869 (add_include_dir): Make 'include_dir' const.
6870 (add_file_name): Make 'name' const.
6871 (dwarf_decode_line_header): Constify.
6872 (psymtab_include_file_name): Make return type const.
6873 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6874 (dwarf2_start_subfile): Make 'filename' const.
6875 (dwarf2_const_value_attr): Make 'bytes' const.
6876 (read_signatured_type_reader): Make 'info_ptr' const.
6877 (decode_locdesc): Constify.
6878 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6879 const.
6880 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6881 'mac_end', and return type const.
6882 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6883 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6884 type const.
6885 (per_cu_header_read_in): Constify.
6886 * symfile.h (dwarf2_get_section_info): Update.
6887
6888 2013-04-12 Tom Tromey <tromey@redhat.com>
6889
6890 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6891
6892 2013-04-12 Eli Zaretskii <eliz@gnu.org>
6893
6894 * NEWS: Mention "show configuration", --configuration.
6895 * top.c (print_gdb_configuration): New function, displays the
6896 details about GDB configure-time parameters.
6897 (print_gdb_version): Mention "show configuration".
6898 * cli/cli-cmds.c (show_configuration): New function.
6899 (_initialize_cli_cmds): Add the "show configuration" command.
6900 * main.c (captured_main) <print_configuration>: New static var.
6901 <long_options>: Use it.
6902 If --configuration was given, call print_gdb_configuration.
6903
6904 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6905 Pedro Alves <palves@redhat.com>
6906
6907 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6908 (generated_files): Add gcore.
6909 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6910 HAVE_NATIVE_GCORE_HOST.
6911 (gcore): New.
6912 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6913 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6914 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6915 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6916 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6917 Add HAVE_NATIVE_GCORE_HOST.
6918 * configure: Regenerate.
6919 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6920 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6921 AC_CONFIG_FILES for gcore.
6922 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6923 gdb_have_gcore.
6924 * gdb_gcore.sh: Rename to ...
6925 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6926 and GCORE_TRANSFORM_NAME substitutions.
6927
6928 Fix parsing tabs in ${gdb_target_obs}.
6929 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6930
6931 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6932
6933 * remote.c (unpush_and_perror): Add output message final dot.
6934
6935 2013-04-11 Yao Qi <yao@codesourcery.com>
6936
6937 * tracepoint.c (tfile_interp_line): Fit parameters line and
6938 utpp in one line.
6939
6940 2013-04-10 Joel Brobecker <brobecker@adacore.com>
6941
6942 * solib.c (solib_map_sections): Remove code overwriting
6943 SO->SO_NAME with the bfd's filename.
6944
6945 2013-04-10 Pedro Alves <palves@redhat.com>
6946
6947 * cli/cli-decode.c (integer_unlimited_completer): New function.
6948 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6949 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6950 completer.
6951 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6952 (is_unlimited_literal): New function.
6953 (do_set_command): Handle literal "unlimited" arguments.
6954 * frame.c (_initialize_frame) <set backtrace limit>: Document
6955 "unlimited".
6956 * printcmd.c (_initialize_printcmd) <set print
6957 max-symbolic-offset>: Add help text.
6958 * record-full.c (_initialize_record_full) <set record full
6959 insn-number-max>: Likewise.
6960 * record.c (_initialize_record) <set record
6961 instruction-history-size, set record function-call-history-size>:
6962 Add help text.
6963 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6964 help text.
6965 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6966 Likewise.
6967 * source.c (_initialize_source) <set listsize>: Add help text.
6968 * utils.c (initialize_utils) <set height, set width>: Likewise.
6969 <set pagination>: Mention "set height unlimited".
6970 * valprint.c (_initialize_valprint) <set print elements, set print
6971 repeats>: Document "unlimited".
6972
6973 2013-04-10 Pedro Alves <palves@redhat.com>
6974
6975 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6976 instead of disconnect_tracing.
6977 * infcmd.c (detach_command, disconnect_command): Call
6978 query_if_trace_running. Adjust.
6979 * top.c: Include "tracepoint.h".
6980 (quit_target): Delete. Contents moved ...
6981 (quit_force): ... here. Wrap each stage of teardown in
6982 TRY_CATCH. Call disconnect_tracing before detaching.
6983
6984 2013-04-10 Hui Zhu <hui@codesourcery.com>
6985 Yao Qi <yao@codesourcery.com>
6986
6987 * configure.ac: Check libbabeltrace is installed.
6988 * config.in: Regenerate.
6989 * configure: Regenerate.
6990 * Makefile.in (LIBBABELTRACE): New.
6991 (CLIBS): Add LIBBABELTRACE.
6992 * ctf.c: Include "exec.h".
6993 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6994 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6995 (ctf_save_metadata_header): Define new type aliases in
6996 metadata.
6997 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6998 in metadata. Start a new faked packet for trace status.
6999 (ctf_write_status): Write trace status to CTF.
7000 (ctf_write_uploaded_tsv): Write TSV to CTF.
7001 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7002 (ctf_write_definition_end): End the faked packet.
7003
7004 (ctx, ctf_iter, trace_dirname): New.
7005 (start_pos): New variable.
7006 (ctf_destroy, ctf_open_dir, ctf_open): New.
7007 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7008 macros.
7009 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7010 (ctf_fetch_registers, ctf_xfer_partial): New.
7011 (ctf_get_trace_state_variable_value): New.
7012 (ctf_get_tpnum_from_frame_event): New.
7013 (ctf_get_traceframe_address): New.
7014 (ctf_trace_find, ctf_has_stack): New.
7015 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7016 (ctf_get_trace_status, ctf_read_status): New.
7017 (_initialize_ctf): New.
7018 * tracepoint.c (get_tracepoint_number): New
7019 (get_uploaded_tsv): Remove 'static'.
7020 (struct traceframe_info, trace_regblock_size): Move it to ...
7021 * tracepoint.h: ... here.
7022 (get_tracepoint_number): Declare it.
7023 (get_uploaded_tsv): Declare it.
7024
7025 * NEWS: Mention new configure option.
7026
7027 2013-04-10 Pedro Alves <palves@redhat.com>
7028 Hui Zhu <hui@codesourcery.com>
7029
7030 * breakpoint.c (dprintf_re_set): New.
7031 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7032 to dprintf_re_set.
7033
7034 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7035
7036 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7037 Remove solib-svr4.o from the list.
7038
7039 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7040
7041 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7042 Use gdb_assert_not_reached instead of invalid boolean expression.
7043
7044 2013-04-09 Pedro Alves <palves@redhat.com>
7045
7046 * remote.c (unpush_and_perror): New function.
7047 (readchar, remote_serial_write): Use it.
7048
7049 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7050
7051 * NEWS: Mention new btrace RSP packets.
7052
7053 2013-04-08 Tom Tromey <tromey@redhat.com>
7054
7055 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7056 long.
7057
7058 2013-04-08 Tom Tromey <tromey@redhat.com>
7059
7060 * maint.c (print_bfd_section_info): Print the section index.
7061 * symmisc.c (dump_msymbols): Print the section index.
7062
7063 2013-04-08 Tom Tromey <tromey@redhat.com>
7064
7065 PR symtab/8424:
7066 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7067 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7068 * breakpoint.c (resolve_sal_pc): Update.
7069 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7070 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7071 (minsym_lookup_iterator_cb): Use it.
7072 (default_read_var_value): Update.
7073 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7074 Update.
7075 * infcmd.c (jump_command): Update.
7076 * linespec.c (minsym_found): Update.
7077 * maint.c (maintenance_translate_address): Update.
7078 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7079 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7080 * parse.c (write_exp_msymbol): Update.
7081 * printcmd.c (address_info): Update.
7082 * psymtab.c (find_pc_sect_psymbol): Update.
7083 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7084 SYMBOL_OBJ_SECTION.
7085 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7086 Don't initialize SYMBOL_OBJ_SECTION.
7087 * spu-tdep.c (spu_catch_start): Update.
7088 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7089 * symmisc.c (dump_msymbols, print_symbol): Update.
7090 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7091 how fallback section is computed.
7092 (fixup_symbol_section): Update.
7093 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7094 Update.
7095 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7096 Initialize SYMBOL_SECTION.
7097 * symtab.h (struct general_symbol_info) <section>: Update comment.
7098 <obj_section>: Remove.
7099 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7100 (SYMBOL_OBJFILE): New macro.
7101
7102 2013-04-08 Tom Tromey <tromey@redhat.com>
7103
7104 * coffread.c (record_minimal_symbol): Update.
7105 * dbxread.c (record_minimal_symbol): Update.
7106 * elfread.c (record_minimal_symbol): Update.
7107 * machoread.c (macho_symtab_add_minsym): Update.
7108 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7109 Update.
7110 * minsyms.c (prim_record_minimal_symbol): Update.
7111 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7112 argument.
7113 (prim_record_minimal_symbol_and_info): Likewise.
7114 * minsyms.h (prim_record_minimal_symbol_full)
7115 (prim_record_minimal_symbol_and_info): Update.
7116 * symtab.c (allocate_symbol, initialize_symbol)
7117 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7118 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7119 Update.
7120
7121 2013-04-08 Tom Tromey <tromey@redhat.com>
7122
7123 PR symtab/8423:
7124 * solib-som.c (som_solib_section_offsets): Use BFD section
7125 indices. Set offsets for all sections.
7126 * somread.c (som_symtab_read): Compute BFD section for
7127 symbol. Use prim_record_minimal_symbol_and_info.
7128 (som_symfile_read): Fix comment.
7129 (struct find_section_offset_arg): New.
7130 (find_section_offset, set_section_index): New functions.
7131 (som_symfile_offsets): Use set_section_index to compute
7132 section indices.
7133
7134 2013-04-08 Tom Tromey <tromey@redhat.com>
7135
7136 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7137 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7138 gdb_bfd_section_index.
7139 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7140 New functions.
7141 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7142 Declare.
7143 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7144 Update.
7145 * objfiles.c (add_to_objfile_sections_full): New function.
7146 (add_to_objfile_sections): Use it.
7147 (build_section_table): Rewrite.
7148 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7149 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7150 (struct objfile) <sections>: Update comment.
7151 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7152 is NULL.
7153 (ALL_OBJSECTIONS): Use it.
7154 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7155 * solib-frv.c (frv_relocate_main_executable): Update.
7156 * solib-target.c (solib_target_relocate_section_addresses):
7157 Use gdb_bfd_section_index.
7158 * symfile.c (build_section_addr_info_from_section_table):
7159 Use gdb_bfd_section_index.
7160 (build_section_addr_info_from_bfd, place_section): Likewise.
7161 * symtab.c (fixup_section): Update.
7162 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7163
7164 2013-04-08 Tom Tromey <tromey@redhat.com>
7165
7166 * minsyms.h (struct bound_minimal_symbol): New.
7167 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7168 Remove objfile argument.
7169 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7170 Return bound_minimal_symbol.
7171 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7172 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7173 Return bound_minimal_symbol.
7174 (in_gnu_ifunc_stub): Update.
7175 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7176 Remove 'objfile_p' argument.
7177 (lookup_solib_trampoline_symbol_by_pc): Update.
7178 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7179 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7180 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7181 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7182 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7183 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7184 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7185 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7186 stack.c, symtab.c, tui/tui-disasm.c: Update.
7187
7188 2013-04-08 Tom Tromey <tromey@redhat.com>
7189
7190 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7191 Use symbol's obstack, not an objfile.
7192 * coffread.c (process_coff_symbol): Update.
7193 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7194 * jv-lang.c (add_class_symbol): Update.
7195 * mdebugread.c (new_symbol): Update.
7196 * minsyms.c (prim_record_minimal_symbol_full)
7197 (terminate_minimal_symbol_table): Update.
7198 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7199 * stabsread.c (define_symbol, read_enum_type): Update.
7200 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7201 Handle Ada specially.
7202 (symbol_set_language): Add 'obstack' argument.
7203 (symbol_set_names): Update.
7204 (symbol_natural_name, symbol_demangled_name): Always use
7205 ada_decode_symbol.
7206 * symtab.h (struct general_symbol_info)
7207 <language_specific::obstack>: New field.
7208 <ada_mangled>: New field.
7209 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7210 (symbol_set_language): Update.
7211
7212 2013-04-08 Tom Tromey <tromey@redhat.com>
7213
7214 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7215 Take an obstack, not an objfile.
7216 (symbol_set_names): Update.
7217 * symtab.h (symbol_set_demangled_name): Update.
7218
7219 2013-04-08 Tom Tromey <tromey@redhat.com>
7220
7221 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7222 allocate_symbol.
7223 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7224 (read_func_scope): Call allocate_template_symbol.
7225 (new_symbol_full): Call allocate_symbol.
7226 * jit.c (finalize_symtab): Call allocate_symbol.
7227 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7228 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7229 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7230 (common_block_end): Call allocate_symbol.
7231 * symtab.c (allocate_symbol, initialize_symbol)
7232 (allocate_template_symbol): New functions.
7233 * symtab.c (allocate_symbol, initialize_symbol)
7234 (allocate_template_symbol): Declare.
7235 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7236
7237 2013-04-08 Pedro Alves <palves@redhat.com>
7238 Keith Seitz <keiths@redhat.com>
7239
7240 * breakpoint.c (create_breakpoint): Rename
7241 "parse_condition_and_thread" parameter to "parse_arg". Update
7242 describing comment. If !PARSE_ARG, then error out if ARG is not
7243 the empty string after extracting the location.
7244 * breakpoint.h (create_breakpoint): Rename
7245 "parse_condition_and_thread" parameter to "parse_arg".
7246
7247 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7248
7249 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7250
7251 2013-04-07 Yao Qi <yao@codesourcery.com>
7252
7253 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7254 and 'addr2' to CORE_ADDR.
7255 * target.c (update_current_target): Update.
7256 * target.h (struct target_ops) <to_trace_find>: Change parameter
7257 type to CORE_ADDR.
7258 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7259 'addr2' to CORE_ADDR.
7260 (tfile_trace_find): Likewise.
7261 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7262 Change local variable 'addr' to type CORE_ADDR.
7263 * tracepoint.h (tfind_1): Update declaration.
7264
7265 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7266
7267 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7268 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7269 Include main.h.
7270
7271 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7272 here...
7273 * main.h (windows_get_absolute_argv0): ...to here.
7274
7275 2013-04-05 Doug Evans <dje@google.com>
7276
7277 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7278 (read_cutu_die_from_dwo): Add comments.
7279 (read_structure_type): Update comment.
7280 (read_enumeration_type, read_namespace_type): Update comment.
7281 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7282
7283 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7284
7285 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7286 * Makefile.in (gdb.z): Remove.
7287 (install-only): Remove $(man1dir) and gdb.1 installation.
7288 * gdb.1: Remove.
7289
7290 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7291
7292 Fix compatibility with Linux kernel 3.8.3.
7293 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7294 to more inner block. Remove parsing of NUMBER from outer block.
7295 Parse NUMBER only if KEYWORD has been identified.
7296
7297 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7298
7299 Fix variable name shadowing.
7300 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7301 filename to mapsfilename and update its uses.
7302
7303 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7304
7305 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7306 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7307 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7308 details of the problem.
7309
7310 2013-04-04 Pedro Alves <palves@redhat.com>
7311 Hui Zhu <hui@codesourcery.com>
7312
7313 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7314 tracepoint, reset its STEP_COUNT and call validate_actionline.
7315
7316 2013-04-03 Doug Evans <dje@google.com>
7317
7318 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7319 read_die_and_siblings.
7320 (read_die_and_siblings): New function.
7321 (read_cutu_die_from_dwo): Dump die if requested.
7322 (read_die_and_children): Call read_full_die_1 and
7323 read_die_and_siblings_1.
7324 (read_full_die): Dump die if requested.
7325
7326 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7327
7328 * dwarf2read.c (struct dwo_file): New member comp_dir.
7329 Rename member name to dwo_name. All uses updated.
7330 (hash_dwo_file): Include comp_dir in computation.
7331 (eq_dwo_file): Ditto.
7332 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7333 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7334
7335 * psymtab.c (read_psymtabs_with_fullname): Don't call
7336 psymtab_to_fullname if the basenames are different.
7337
7338 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7339
7340 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7341 New entry about "fullname" presence.
7342
7343 2013-04-03 Pedro Alves <palves@redhat.com>
7344
7345 * NEWS: Mention x86_64/Cygwin as new native configuration.
7346
7347 2013-04-02 Doug Evans <dje@google.com>
7348
7349 * dwarf2read.c (read_structure_type): Fix typo in comment.
7350
7351 2013-04-02 Pedro Alves <palves@redhat.com>
7352
7353 * NEWS: Mention "set/show debug aarch64", "set/show debug
7354 coff-pe-read" and "set/show debug mach-o".
7355
7356 2013-04-02 Pedro Alves <palves@redhat.com>
7357
7358 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7359
7360 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7361
7362 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7363 gdb_string.h is now in common/.
7364
7365 2013-04-02 Pedro Alves <palves@redhat.com>
7366
7367 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7368 under "New options".
7369
7370 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7371
7372 Revert this patch:
7373 PR gdb/15275
7374 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7375
7376 2013-04-02 Pedro Alves <palves@redhat.com>
7377
7378 PR gdb/15275
7379
7380 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7381 (remote_serial_write): New function.
7382 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7383
7384 2013-04-01 Jiong Wang <jiwang@tilera.com>
7385
7386 * NEWS: Mention TILE-Gx in "New native configurations" and
7387 "New targets" sections.
7388
7389 2013-04-01 Doug Evans <dje@google.com>
7390
7391 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7392 (process_enumeration_scope): Simplify.
7393
7394 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7395 type_unit_group ...
7396 (struct signatured_type): ... to here.
7397 (sig_type_ptr): New typedef.
7398 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7399 out of union 't'. All uses updated.
7400 (dw2_get_file_names_reader): Assert not called for a type unit.
7401 (dw2_get_file_names): Assert not called for a type unit or type
7402 unit group.
7403 (build_type_psymtabs_reader): Assert called for a type unit.
7404 (build_type_psymtab_dependencies): Assert called for a type unit group.
7405
7406 * dwarf2read.c (free_dwo_file): Add comment.
7407 (dwarf2_per_objfile_free): Unref dwp bfd.
7408
7409 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7410
7411 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7412 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7413 (read_pe_exported_syms): Remove unused 'exportix'.
7414 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7415 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7416 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7417
7418 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7419
7420 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7421 (print_it_watchpoint): Remove unused 'bl'.
7422 (say_where): Remove unused 'uiout'.
7423 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7424 (bkpt_breakpoint_hit): Remove unused 'b'.
7425 (internal_bkpt_print_it): Remove unused 'uiout'.
7426 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7427
7428 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7429
7430 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7431 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7432
7433 2013-03-29 Doug Evans <dje@google.com>
7434
7435 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7436 Delete arg is_dwp. All callers updated.
7437 (open_dwp_file): New function.
7438 (open_and_init_dwp_file): Call it.
7439 (get_dwp_file): New function.
7440 (lookup_dwo_cutu): Call it.
7441
7442 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7443 unnecessary, cleanup.
7444
7445 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7446
7447 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7448 (lookup_dwo_unit): New function.
7449 (init_cutu_and_read_dies): Move DWO handling to new functions.
7450
7451 * dwarf2read.c (struct signatured_type): Tweak comment.
7452 (struct dwo_unit): Tweak comment.
7453 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7454 (create_dwo_debug_info_hash_table): Tweak comment.
7455 (dwarf2_per_cu_offset_and_type): Tweak comment.
7456
7457 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7458 missing .debug_types section.
7459
7460 2013-03-29 Yao Qi <yao@codesourcery.com>
7461
7462 * corelow.c: Include "completer.h".
7463 (_initialize_corelow): Call add_target_with_completer with
7464 argument 'filename_completer'.
7465 * tracepoint.c: Likewise.
7466 * exec.c (_initialize_exec): Likewise.
7467 * target.c (add_target): Rename to ...
7468 (add_target_with_completer): ... this. Call set_cmd_completer
7469 if parameter completer is not NULL.
7470 (add_target): New.
7471 * target.h: Include "command.h".
7472 (add_target_with_completer): Declare it.
7473
7474 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7475
7476 * coffread.c (is_import_fixup_symbol): New function.
7477 (record_minimal_symbol): Use is_import_fixup_symbol to
7478 detect import fixup symbols, and discard them.
7479
7480 2013-03-28 Doug Evans <dje@google.com>
7481
7482 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7483 types hash table until we know we need it.
7484
7485 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7486 index numbers.
7487
7488 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7489 All callers updated.
7490 (dw2_print_stats): Print #read CUs too.
7491 (dump_die_shallow): Print signatured types better.
7492
7493 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7494 info_or_types_section to section. All uses updated.
7495 (struct dwo_unit): Ditto.
7496
7497 2013-03-28 Pedro Alves <palves@redhat.com>
7498
7499 * NEWS (New options): New section.
7500 (New options): Mention set/show remote trace-status-packet.
7501 * remote.c (PACKET_qTStatus): New enumeration value.
7502 (remote_get_trace_status): Skip sending qTStatus if the packet is
7503 disabled. Use packet_ok.
7504 (_initialize_remote): Register a configuration command for
7505 qTStatus packet.
7506
7507 2013-03-28 Doug Evans <dje@google.com>
7508
7509 * symfile.c (find_separate_debug_file): Add comment.
7510 (terminate_after_last_dir_separator): Tweak comment.
7511
7512 * dwarf2read.c (create_partial_symtab): Add forward decl.
7513 (create_partial_symtab): Move to be closer to other psymtab functions.
7514 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7515
7516 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7517 (compute_symtab_includes): Remove unnecessary forward declaration.
7518 (die_needs_namespace): Add comment marking group of functions for
7519 dwarf2 name computation.
7520
7521 * typeprint.c (_initialize_typeprint): Improve type help text.
7522
7523 * python/python.c (finish_python_initialization): Provide suggestion
7524 for how to tell gdb to find its python files.
7525
7526 2013-03-28 Pedro Alves <palves@redhat.com>
7527
7528 PR gdb/15294
7529
7530 * source.c (_initialize_source): Change back "set listsize" to an
7531 integer command.
7532
7533 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7534
7535 PR gdb/15275
7536 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7537
7538 2013-03-27 Pedro Alves <palves@redhat.com>
7539
7540 * top.c (history_size): Rename to ...
7541 (history_size_setshow_var): ... this. Add comment.
7542 (show_commands): Use readline's 'history_length' instead of
7543 computing the history length by calling history_get in a loop.
7544 (set_history_size_command): Error out for sizes over INT_MAX.
7545 Restore previous history size on invalid size.
7546 (init_history): If HISTSIZE is negative, leave the history size as
7547 zero. Add comments.
7548 (init_main): Adjust.
7549
7550 2013-03-27 Pedro Alves <palves@redhat.com>
7551
7552 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7553 coff_pe_read" command to "set debug coff-pe-read".
7554
7555 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7556
7557 * record.c (command_size_to_target_size): Fix size comparison.
7558 Change parameter type from pointer to integer to integer.
7559 Update all users.
7560
7561 2013-03-27 Pierre Muller <muller@sourceware.org>
7562
7563 * windows-nat.c (handle_output_debug_string): Avoid typecast
7564 from integer of different size warning.
7565
7566 2013-03-26 Joel Brobecker <brobecker@adacore.com>
7567
7568 * windows-nat.c (handle_output_debug_string): Add empty line
7569 after local block variable definition.
7570
7571 2013-03-26 Pedro Alves <palves@redhat.com>
7572
7573 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7574 (net_open): Make 'polls' local unsigned.
7575
7576 2013-03-26 Pedro Alves <palves@redhat.com>
7577
7578 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7579 a zuinteger command instead of uinteger.
7580
7581 2013-03-26 Pedro Alves <palves@redhat.com>
7582
7583 * record-full.c (record_full_insn_num): Make it unsigned.
7584 (record_full_check_insn_num, record_full_message)
7585 (record_full_registers_change, record_full_xfer_partial): Remove
7586 record_full_insn_max_num check (it's always != 0).
7587 (record_full_info, record_full_restore): Use %u as format string.
7588 (): Use %u as format string.
7589 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7590 check (it's always != 0).
7591
7592 2013-03-26 Pedro Alves <palves@redhat.com>
7593
7594 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7595 and "set dcache size" commands zuinteger instead of uinteger.
7596
7597 2013-03-26 Pedro Alves <palves@redhat.com>
7598
7599 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7600 command zuinteger instead of uinteger.
7601
7602 2013-03-26 Pedro Alves <palves@redhat.com>
7603
7604 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7605 zuinteger instead of uinteger.
7606
7607 2013-03-26 Pedro Alves <palves@redhat.com>
7608
7609 * record.c (record_insn_history_size_setshow_var)
7610 (record_call_history_size_setshow_var): New globals.
7611 (command_size_to_target_size): New function.
7612 (cmd_record_insn_history, cmd_record_call_history): Use
7613 command_size_to_target_size instead of cast.
7614 (validate_history_size, set_record_insn_history_size)
7615 (set_record_call_history_size): New functions.
7616 (_initialize_record): Install set_record_insn_history_size and
7617 set_record_call_history_size as "set" hooks of "set record
7618 instruction-history-size" and "set record
7619 function-call-history-size".
7620
7621 2013-03-26 Pedro Alves <palves@redhat.com>
7622
7623 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7624 use with history_max_entries use. Remove FIXME note.
7625
7626 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7627
7628 * record-btrace.c (record_btrace_close): Call
7629 record_btrace_auto_disable.
7630
7631 2013-03-25 Joel Brobecker <brobecker@adacore.com>
7632
7633 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7634
7635 2013-03-25 Doug Evans <dje@google.com>
7636
7637 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7638
7639 2013-03-25 Tom Tromey <tromey@redhat.com>
7640
7641 PR symtab/11462:
7642 * c-exp.y (exp): Add new productions for destructors after '.' and
7643 '->'.
7644 (write_destructor_name): New function.
7645
7646 2013-03-25 Tom Tromey <tromey@redhat.com>
7647
7648 PR c++/9197:
7649 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7650 value_struct_elt, not lookup_struct_elt_type.
7651 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7652 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7653 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7654
7655 2013-03-25 Yao Qi <yao@codesourcery.com>
7656
7657 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7658 instead of '_mkdir'.
7659
7660 2013-03-23 Eli Zaretskii <eliz@gnu.org>
7661
7662 * windows-nat.c (windows_get_absolute_argv0): New function.
7663 * windows-nat.h: Add its prototype.
7664
7665 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7666 Use IS_DIR_SEPARATOR instead of looking for a character inside
7667 SLASH_STRING. Include filenames.h.
7668 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7669 relocate_gdb_directory works when passed gdb_program_name.
7670 Include windows-nat.h.
7671
7672 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7673
7674 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7675 * remote.c (trace_error): Remove the special handling of '2'.
7676 (readchar) <SERIAL_EOF>
7677 (readchar) <SERIAL_ERROR>
7678 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7679 (remote_get_trace_status): Call throw_exception if EX is
7680 TARGET_CLOSE_ERROR.
7681 * utils.c (perror_with_name): Rename to ...
7682 (throw_perror_with_name): ... here. New parameter errcode, describe it
7683 in the function comment.
7684 (perror_with_name): New function wrapper.
7685 * utils.h (enum errors): New stub declaration.
7686 (throw_perror_with_name): New declaration.
7687
7688 2013-03-22 Pedro Alves <palves@redhat.com>
7689 Yao Qi <yao@codesourcery.com>
7690 Mark Kettenis <kettenis@gnu.org>
7691
7692 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7693 Don't let the user set the value to UINT_MAX directly.
7694 <var_integer>: Don't let the user set the value to INT_MAX
7695 directly.
7696
7697 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7698
7699 * remote.c (remote_unpush_target): New function.
7700 (remote_open_1): Remove two pop_target calls, update one comment, add
7701 comment to target_preopen call. Replace pop_target call by
7702 remote_unpush_target call.
7703 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7704 pop_target calls by remote_unpush_target calls.
7705
7706 2013-03-22 Pedro Alves <palves@redhat.com>
7707
7708 * linux-nat.c (linux_child_follow_fork): Don't call
7709 linux_enable_event_reporting.
7710 (linux_handle_extended_wait): Don't call
7711 linux_enable_event_reporting.
7712
7713 2013-03-22 Pedro Alves <palves@redhat.com>
7714
7715 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7716 use it to rewrite the trampoline buffers with type gdb_byte[], and
7717 undefine the macro. Remove char* cast.
7718
7719 2013-03-21 Doug Evans <dje@google.com>
7720
7721 New commands "mt set per-command {space,time,symtab} {on,off}".
7722 * NEWS: Add entry.
7723 * event-top.c: #include "maint.h".
7724 * main.c: #include "maint.h".
7725 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7726 timeval-utils.h, maint.h, cli/cli-setshow.h.
7727 (per_command_time, per_command_space): New static globals.
7728 (per_command_symtab): New static global.
7729 (per_command_setlist, per_command_showlist): New static globals.
7730 (struct cmd_stats): Move here from utils.c.
7731 (set_per_command_time): Renamed from set_display_time in utils.c
7732 and moved here. All callers updated.
7733 (set_per_command_space): Renamed from set_display_space in utils.c
7734 and moved here. All callers updated.
7735 (count_symtabs_and_blocks): New function.
7736 (report_command_stats): Moved here from utils.c. Add support for
7737 printing symtab stats. Only print data if enabled before command
7738 executed.
7739 (make_command_stats_cleanup): Ditto.
7740 (sert_per_command_cmd, show_per_command_cmd): New functions.
7741 (_initialize_maint_cmds): Add new commands
7742 mt set per-command {space,time,symtab} {on,off}.
7743 * maint.h: New file.
7744 * top.c: #include "maint.h".
7745 * utils.c (reset_prompt_for_continue_wait_time): New function.
7746 (get_prompt_for_continue_wait_time): New function.
7747 * utils.h (reset_prompt_for_continue_wait_time): Declare
7748 (get_prompt_for_continue_wait_time): Declare.
7749 (make_command_stats_cleanup): Moved to maint.h.
7750 (set_display_time, set_display_space): Moved to maint.h and renamed
7751 to set_per_command_time, set_per_command_space.
7752 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7753 parse_binary_operation and made non-static. Don't call error,
7754 just return an error marker. All callers updated.
7755 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7756
7757 2013-03-21 Tom Tromey <tromey@redhat.com>
7758
7759 * symfile.c (alloc_section_addr_info): Update header. Don't set
7760 'num_sections' field.
7761 (build_section_addr_info_from_section_table): Set 'num_sections'.
7762 (build_section_addr_info_from_bfd): Likewise.
7763 (build_section_addr_info_from_objfile): Remove dead loop
7764 condition.
7765 (free_section_addr_info): Unconditionally call xfree.
7766 (relative_addr_info_to_section_offsets, addrs_section_sort)
7767 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7768 condition.
7769 (syms_from_objfile_1): Remove dead 'if' condition. Check
7770 'num_sections'.
7771 (add_symbol_file_command): Set 'num_sections'.
7772 * symfile-mem.c (symbol_file_add_from_memory): Set
7773 'num_sections'.
7774 * somread.c (som_symfile_offsets): Remove dead loop condition.
7775 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7776 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7777
7778 2013-03-21 Tom Tromey <tromey@redhat.com>
7779
7780 * tracepoint.h (decode_agent_options): Add 'trace_string'
7781 argument.
7782 * tracepoint.c (decode_agent_options): Add 'trace_string'
7783 argument.
7784 (validate_actionline): Update.
7785 (collect_symbol): Add 'trace_string' argument.
7786 (struct add_local_symbols_data) <trace_string>: New field.
7787 (do_collect_symbol): Update.
7788 (add_local_symbols): Add 'trace_string' argument.
7789 (encode_actions_1): Update.
7790 (trace_dump_actions): Update.
7791 * dwarf2loc.c (access_memory): Update.
7792 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7793 * ax-general.c (new_agent_expr): Update.
7794 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7795 (gen_trace_for_return_address): Add argument.
7796 (trace_kludge, trace_string_kludge): Remove.
7797 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7798 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7799 (gen_trace_for_var): Add 'trace_string' argument.
7800 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7801 (gen_printf, agent_eval_command_one): Update.
7802
7803 2013-03-21 Tom Tromey <tromey@redhat.com>
7804
7805 PR exp/15109:
7806 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7807 Handle FILENAME token.
7808
7809 2013-03-21 Tom Tromey <tromey@redhat.com>
7810
7811 * c-exp.y (YYPRINT): Define.
7812 (c_print_token): New function.
7813
7814 2013-03-21 Tom Tromey <tromey@redhat.com>
7815
7816 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7817
7818 2013-03-21 Yao Qi <yao@codesourcery.com>
7819
7820 * ctf.c: Include "gdb_stat.h".
7821 [USE_WIN32API]: New macro 'mkdir'.
7822 (ctf_start): Use permission bits macros if they are defined.
7823
7824 2013-03-20 Keith Seitz <keiths@redhat.com>
7825
7826 * breakpoint.h (struct breakpoint): Add comment to
7827 extra_string indicating that this member is mallod'd.
7828 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7829
7830 2013-03-20 Pedro Alves <palves@redhat.com>
7831
7832 PR gdb/15289
7833
7834 * cli/cli-setshow.c (do_set_command)
7835 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7836 the result of parsing the command argument. Throw error if the
7837 value is greater than UINT_MAX. Print the invalid value with
7838 plongest.
7839 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7840 result of parsing the command argument. Throw error if the value
7841 is greater than INT_MAX, not greater or equal. Also throw error
7842 if the value is less than INT_MIN. Print the invalid value with
7843 plongest.
7844 <var_zuinteger_unlimited>: Throw error if the value is greater
7845 than INT_MAX, not greater or equal.
7846 (do_show_command) <var_integer, var_zinteger,
7847 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7848
7849 2013-03-20 Tom Tromey <tromey@redhat.com>
7850
7851 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7852 if possible.
7853 * dwarf2read.c (read_func_scope): Remove old FIXME.
7854 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7855 not LOC_COMPUTED.
7856 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7857 Unconditionally call via computed ops, if possible.
7858 * printcmd.c (address_info): Unconditionally call via computed ops,
7859 if possible.
7860 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7861 if possible.
7862 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7863 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7864 if possible.
7865
7866 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7867 Tom Tromey <tromey@redhat.com>
7868
7869 PR symtab/8421:
7870 * coffread.c (coff_register_index): New global.
7871 (process_coff_symbol, coff_read_enum_type): Set
7872 SYMBOL_ACLASS_INDEX.
7873 (_initialize_coffread): Initialize new global.
7874 * dwarf2loc.c (locexpr_find_frame_base_location)
7875 (dwarf2_block_frame_base_locexpr_funcs)
7876 (loclist_find_frame_base_location)
7877 (dwarf2_block_frame_base_loclist_funcs): New.
7878 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7879 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7880 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7881 (dwarf2_block_frame_base_loclist_funcs): New.
7882 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7883 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7884 globals.
7885 (read_func_scope): Update.
7886 (fixup_go_packaging, mark_common_block_symbol_computed)
7887 (var_decode_location, new_symbol_full, dwarf2_const_value):
7888 Set SYMBOL_ACLASS_INDEX.
7889 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7890 (_initialize_dwarf2_read): Initialize new globals.
7891 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7892 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7893 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7894 globals.
7895 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7896 (_initialize_mdebugread): Initialize new globals.
7897 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7898 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7899 (stab_register_index, stab_regparm_index): New globals.
7900 (define_symbol, read_enum_type, common_block_end): Set
7901 SYMBOL_ACLASS_INDEX.
7902 (_initialize_stabsread): Initialize new globals.
7903 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7904 globals.
7905 (MAX_SYMBOL_IMPLS): New define.
7906 (register_symbol_computed_impl, register_symbol_block_impl)
7907 (register_symbol_register_impl)
7908 (initialize_ordinary_address_classes): New functions.
7909 (_initialize_symtab): Call initialize_ordinary_address_classes.
7910 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7911 (struct symbol_impl): New.
7912 (SYMBOL_ACLASS_BITS): New define.
7913 (struct symbol) <aclass, ops>: Remove fields.
7914 <aclass_index>: New field.
7915 (symbol_impls): Declare.
7916 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7917 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7918 (register_symbol_computed_impl, register_symbol_block_impl)
7919 (register_symbol_register_impl): Declare.
7920 (struct symbol_computed_ops): Add location_has_loclist.
7921 (struct symbol_block_ops): New.
7922 (SYMBOL_BLOCK_OPS): New.
7923 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7924
7925 2013-03-20 Tom Tromey <tromey@redhat.com>
7926
7927 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7928 (print_partial_symbols, recursively_search_psymtabs): Use
7929 PSYMBOL_CLASS.
7930
7931 2013-03-20 Pierre Muller <muller@sourceware.org>
7932
7933 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7934 addtion, subtraction, multiplication and division binary operator.
7935
7936 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7937
7938 Code cleanup.
7939 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7940 * bsd-kvm.c (bsd_kvm_close): Likewise.
7941 * bsd-uthread.c (bsd_uthread_close): Likewise.
7942 * corelow.c (core_close): Likewise.
7943 (core_close_cleanup): Remove parameter quitting from a caller.
7944 * event-top.c (async_disconnect): Likewise.
7945 * exec.c (exec_close_1): Remove parameter quitting.
7946 * go32-nat.c (go32_close): Likewise.
7947 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7948 parameter quitting from a caller.
7949 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7950 variable.
7951 (mips_linux_close): Remove parameter quitting. Remove parameter
7952 quitting from a caller.
7953 * monitor.c (monitor_close): Remove parameter quitting.
7954 * monitor.h (monitor_close): Likewise.
7955 * record-btrace.c (record_btrace_close): Likewise.
7956 * record-full.c (record_full_close): Likewise.
7957 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7958 it also from fprintf_unfiltered.
7959 * remote-mips.c (mips_close): Remove parameter quitting.
7960 (mips_detach): Remove parameter quitting from a caller.
7961 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7962 (gdbsim_close): Remove duplicate function comment. Remove parameter
7963 quitting and remove it also from printf_filtered.
7964 * remote.c (remote_close): Remove parameter quitting.
7965 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7966 * target.c (update_current_target): Remove parameter int from to_close
7967 de_fault.
7968 (push_target, unpush_target, pop_target): Remove parameter quitting from
7969 a caller.
7970 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7971 Remove parameter quitting from a caller.
7972 (target_preopen): Remove parameter quitting from a caller.
7973 (target_close): Remove parameter quitting. Remove parameter quitting
7974 from a caller two times. Remove parameter quitting also from
7975 fprintf_unfiltered.
7976 * target.h (struct target_ops): Remove parameter quitting and as int
7977 from fields to_xclose and to_close.
7978 (extern struct target_ops current_target):
7979 (target_close, pop_all_targets): Remove parameter quitting. Update the
7980 comment.
7981 (pop_all_targets_above): Remove parameter quitting.
7982 * top.c (quit_target): Remove parameter quitting from a caller.
7983 * tracepoint.c (tfile_close): Remove parameter quitting.
7984 * windows-nat.c (windows_close): Remove parameter quitting.
7985
7986 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
7987
7988 * windows-nat.c (handle_output_debug_string): Replace call
7989 to string_to_core_addr with call to strtoull.
7990
7991 2013-03-20 Yao Qi <yao@codesourcery.com>
7992
7993 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7994 and write it to CTF metadata.
7995
7996 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
7997
7998 * windows-nat.c (handle_output_debug_string): Change type of n to
7999 SIZE_T to avoid crash on 64 bit systems.
8000
8001 2013-03-17 Eli Zaretskii <eliz@gnu.org>
8002
8003 * python/python-internal.h (HAVE_SNPRINTF)
8004 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8005 about redefinition of snprintf by pyerrors.h.
8006
8007 2013-03-15 Steve Ellcey <sellcey@mips.com>
8008
8009 * remote-sim.c (sim_command_completer): Make char arguments const.
8010
8011 2013-03-15 Tom Tromey <tromey@redhat.com>
8012
8013 PR c++/15116:
8014 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8015
8016 2013-03-14 Tom Tromey <tromey@redhat.com>
8017
8018 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8019 New fields.
8020 (get_file_crc): Move from symfile.c.
8021 (gdb_bfd_crc): New function.
8022 * gdb_bfd.h (gdb_bfd_crc): Declare.
8023 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8024 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8025 (separate_debug_file_exists): Use gdb_bfd_crc.
8026
8027 2013-03-14 Tom Tromey <tromey@redhat.com>
8028
8029 * symfile.c (get_debug_link_info): Remove.
8030 (find_separate_debug_file_by_debuglink): Use
8031 bfd_get_debug_link_info.
8032
8033 2013-03-14 Tom Tromey <tromey@redhat.com>
8034
8035 * symtab.c (error_in_psymtab_expansion): New function.
8036 (lookup_symbol_aux_quick)
8037 (basic_lookup_transparent_type_quick): Remove "last resort"
8038 code. Use error_in_psymtab_expansion.
8039
8040 2013-03-14 Doug Evans <dje@google.com>
8041 Jan Kratochvil <jan.kratochvil@redhat.com>
8042
8043 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8044 any successful compare_filenames_for_search or FILENAME_CMP.
8045 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8046 * symtab.c (iterate_over_some_symtabs): Likewise.
8047
8048 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8049
8050 * source.c (print_source_lines_base): Make a local copy of
8051 symtab_to_fullname.
8052
8053 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
8054 Jan Kratochvil <jan.kratochvil@redhat.com>
8055
8056 * source.c (print_source_lines_base): Suppress "file" for TUI.
8057
8058 2013-03-14 Keith Seitz <keiths@redhat.com>
8059 Alan Matsuoka <alanm@redhat.com>
8060
8061 PR c++/15203
8062 PR c++/15210
8063 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8064 TYPE_CODE_METHOD.
8065 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8066 symbols.
8067
8068 2013-03-14 Yao Qi <yao@codesourcery.com>
8069
8070 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8071 status to tfile if trace is stopped by command 'tstop'.
8072
8073 2013-03-14 Yao Qi <yao@codesourcery.com>
8074
8075 * tracepoint.c (tfile_write_status): Write trace notes and user
8076 name into tfile if they are not NULL.
8077
8078 2013-03-14 Hui Zhu <hui@codesourcery.com>
8079 Yao Qi <yao@codesourcery.com>
8080
8081 * Makefile.in (REMOTE_OBS): Add ctf.o.
8082 (SFILES): Add ctf.c.
8083 (HFILES_NO_SRCDIR): Add ctf.h.
8084 * ctf.c, ctf.h: New files.
8085 * tracepoint.c: Include 'ctf.h'.
8086 (collect_pseudocommand): Remove static.
8087 (trace_save_command): Parse option "-ctf".
8088 Produce different trace file writers per option.
8089 Adjust output message.
8090 (trace_save_tfile, trace_save_ctf): New.
8091 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8092 * mi/mi-main.c: Include 'ctf.h'.
8093 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8094 trace_save_tfile or trace_save_ctf.
8095 * NEWS: Mention these changes.
8096
8097 2013-03-14 Yao Qi <yao@codesourcery.com>
8098
8099 * tracepoint.c (trace_file_writer_xfree): New.
8100 (struct tfile_writer_data): New.
8101 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8102 (tfile_write_header, tfile_write_regblock_type): New.
8103 (tfile_write_status, tfile_write_uploaded_tsv): New.
8104 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8105 (tfile_write_raw_data, (tfile_end): New.
8106 (tfile_write_ops): New global variable.
8107 (TRACE_WRITE_R_BLOCK): New macro.
8108 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8109 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8110 (TRACE_WRITE_V_BLOCK): New macro.
8111 (trace_save): Add extra one parameter WRITER. Make it static.
8112 Use WRITER to writer trace.
8113 (tfile_trace_file_writer_new): New.
8114 (trace_save_command): Caller update.
8115 (trace_save_tfile): Write trace data in TFILE format.
8116 * tracepoint.h (struct trace_frame_write_ops): New.
8117 (struct trace_file_write_ops): New.
8118 (struct trace_file_writer): New.
8119 (trace_save): Remove its declaration.
8120 (trace_save_tfile): Declare it.
8121 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8122 instead of trace_save.
8123
8124 2013-03-13 Pedro Alves <palves@redhat.com>
8125
8126 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8127
8128 2013-03-13 Pedro Alves <palves@redhat.com>
8129
8130 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8131 commented out code.
8132 * demangle.c (current_demangling_style_string): Make it const.
8133 (set_demangling_command): Assert the demangling style is known.
8134 Remove all handling of unknown styles. Set
8135 'current_demangling_style_string' to an element of the
8136 demangling_style_names array.
8137 (set_demangling_style): Delete.
8138 (_initialize_demangler): Set current_demangling_style_string to the
8139 element of the demangling_style_names array that corresponds to
8140 the default demangling style. Remove FIXME note. Don't call
8141 set_demangling_style.
8142 * gdb-demangle.h (set_demangling_style): Remove declaration.
8143
8144 2013-03-13 Pedro Alves <palves@redhat.com>
8145
8146 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8147 fields const.
8148 (ada_make_symbol_completion_list): Make "text0" parameter const.
8149 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8150 * breakpoint.c (condition_completer): Make "text" and "word"
8151 parameters const. Adjust.
8152 (check_tracepoint_command): Adjust to validate_actionline
8153 prototype change.
8154 (catch_syscall_completer): Make "text" and "word" parameters
8155 const.
8156 * cli/cli-cmds.c (show_user): Make "comname" local const.
8157 (valid_command_p): Make "command" parameter const.
8158 (alias_command): Make "alias_prefix" and "command_prefix" locals
8159 const.
8160 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8161 (add_alias_cmd): Make "name" and "oldname" parameters const.
8162 Adjust. No longer make copy of OLDNAME.
8163 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8164 (add_setshow_cmd_full, add_setshow_enum_cmd)
8165 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8166 (add_setshow_filename_cmd, add_setshow_string_cmd)
8167 (add_setshow_string_noescape_cmd)
8168 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8169 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8170 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8171 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8172 Make "name" parameter const.
8173 (help_cmd): Rename "command" parameter to "arg". New const local
8174 "command".
8175 (find_cmd): Make "command" parameter const.
8176 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8177 deprecated_cmd_warning prototype change.
8178 (undef_cmd_error): Make "cmdtype" parameter const.
8179 (lookup_cmd): Make "line" parameter const.
8180 (deprecated_cmd_warning): Change type of "text" parameter to
8181 pointer to const char, from pointer to pointer to char. Adjust.
8182 (lookup_cmd_composition): Make "text" parameter const.
8183 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8184 parameters const.
8185 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8186 const.
8187 * cli/cli-script.c (validate_comname): Make "tem" local const.
8188 (define_command): New const local "tem_c". Use it in calls to
8189 lookup_cmd.
8190 (document_command): Make "tem" and "comfull" locals const.
8191 (show_user_1): Make "prefix" and "name" parameters const.
8192 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8193 const.
8194 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8195 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8196 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8197 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8198 (complete_on_enum, add_setshow_enum_cmd)
8199 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8200 (add_setshow_filename_cmd, add_setshow_string_cmd)
8201 (add_setshow_string_noescape_cmd)
8202 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8203 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8204 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8205 Change prototypes, constifying strings.
8206 * completer.c (noop_completer, filename_completer): Make "text"
8207 and "prefix" parameters const.
8208 (location_completer, expression_completer)
8209 (complete_line_internal): Make "text" and "prefix" parameters
8210 const and adjust.
8211 (command_completer, signal_completer): Make "text" and "prefix"
8212 parameters const.
8213 * completer.h (noop_completer, filename_completer)
8214 (expression_completer, location_completer, command_completer)
8215 (signal_completer): Change prototypes.
8216 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8217 parameters const.
8218 * cp-abi.c (cp_abi_completer): Likewise.
8219 * expression.h (parse_expression_for_completion): Change
8220 prototype.
8221 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8222 parameters const.
8223 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8224 * infrun.c (handle_completer): Make "text" and "word" parameters
8225 const.
8226 * interps.c (interpreter_completer): Make "text" and "word"
8227 parameters const.
8228 * language.h (struct language_defn)
8229 <la_make_symbol_completion_list>: Make "text" and "word"
8230 parameters const.
8231 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8232 (parse_exp_in_context): Rename to ...
8233 (parse_exp_in_context_1): ... this.
8234 (parse_exp_in_context): Reimplement, with const hack from
8235 parse_exp_1.
8236 (parse_expression_for_completion): Make "string" parameter const.
8237 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8238 to pointer to const char. Adjust.
8239 (print_command_1): Make "exp" parameter const.
8240 (output_command): Rename to ...
8241 (output_command_const): ... this. Make "exp" parameter const.
8242 (output_command): Reimplement.
8243 (x_command): Adjust.
8244 (display_command): Rename "exp" parameter to "arg". New "exp"
8245 local, const version of "arg".
8246 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8247 "cmd_name" local const.
8248 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8249 call.
8250 (cmdpy_completer): Make "text" and "word" parameters const.
8251 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8252 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8253 const.
8254 * remote.c (_initialize_remote): Make "cmd_name" local const.
8255 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8256 parameters const. Adjust.
8257 (completion_list_add_fields): Make "sym_text", "text" and "word"
8258 parameters const.
8259 (struct add_name_data) <sym_text, text, word>: Make fields const.
8260 (default_make_symbol_completion_list_break_on): Make "text" and
8261 "word" parameters const. Adjust locals.
8262 (default_make_symbol_completion_list)
8263 (make_symbol_completion_list, make_symbol_completion_type)
8264 (make_symbol_completion_list_fn): Make "text" and "word"
8265 parameters const.
8266 (make_file_symbol_completion_list): Make "text", "word" and
8267 "srcfile" parameters const. Adjust locals.
8268 (add_filename_to_list): Make "text" and "word" parameters const.
8269 (struct add_partial_filename_data) <text, word>: Make fields
8270 const.
8271 (make_source_files_completion_list): Make "text" and "word"
8272 parameters const.
8273 * symtab.h (default_make_symbol_completion_list_break_on)
8274 (default_make_symbol_completion_list, make_symbol_completion_list)
8275 (make_symbol_completion_type enum type_code)
8276 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8277 (make_source_files_completion_list): Change prototype.
8278 * top.c (execute_command): Adjust to pass pointer to pointer to
8279 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8280 change.
8281 (set_verbose): Make "cmdname" local const.
8282 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8283 and adjust.
8284 (validate_actionline): Make "line" parameter a pointer to const
8285 char, and adjust.
8286 (encode_actions_1): Make "action_exp" local const, and adjust.
8287 (encode_actions): Adjust.
8288 (replace_comma): Delete.
8289 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8290 const, and adjust. Don't frob the action string while splitting
8291 it at commas. Instead, make a copy of each split substring in
8292 turn.
8293 (trace_dump_command): Adjust to validate_actionline prototype
8294 change.
8295 * tracepoint.h (decode_agent_options, decode_agent_options)
8296 (encode_actions, validate_actionline): Change prototypes.
8297 * valprint.h (output_command): Delete declaration.
8298 (output_command_const): Declare.
8299 * value.c (function_destroyer): Cast const away in xfree call.
8300
8301 2013-03-13 Pedro Alves <palves@redhat.com>
8302
8303 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8304 rather than casting 'const char * const *' to 'const char **'.
8305 * ada-lex.l (processInt): Make "trailer" local const. Remove
8306 'const char **' cast.
8307 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8308 locals, and use those as strtol output pointer, instead than doing
8309 invalid casts to from 'const char **' to 'char **'.
8310 (_initialize_demangle): Remove cast.
8311 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8312 locals, and use those as strtol output pointer, instead than doing
8313 invalid casts to from 'const char **' to 'char **'.
8314 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8315 casts.
8316 * stap-probe.c (stap_parse_register_operand)
8317 (stap_parse_single_operand): Likewise.
8318
8319 2013-03-13 Yao Qi <yao@codesourcery.com>
8320
8321 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8322 the last matched 'V' blcok in trace frame.
8323
8324 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8325
8326 * NEWS: Create a new section for the next release branch.
8327 Rename the section of the current branch, now that it has
8328 been cut.
8329
8330 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8331
8332 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8333 * version.in: Bump version to 7.6.50.20130312-cvs.
8334
8335 2013-03-12 Keith Seitz <keiths@redhat.com>
8336
8337 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8338 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8339 Remove temporary copy of input string.
8340 (mi_execute_command_wrapper): Make "cmd" const.
8341 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8342 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8343 Use const strings.
8344 (mi_parse): Make "cmd" const.
8345 Use const strings.
8346 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8347
8348 2013-03-12 Keith Seitz <keiths@redhat.com>
8349
8350 * ada-lang.c (ada_read_renaming_var_value): Pass const
8351 pointer to expression string to parse_exp_1.
8352 (create_excep_cond_exprs): Likewise.
8353 * ax-gdb.c (agent_eval_command_one): Likewise.
8354 (maint_agent_printf_command): Likewise.
8355 Constify much of the string handling/parsing.
8356 * breakpoint.c (set_breakpoint_condition): Pass const
8357 pointer to expression string to parse_exp_1.
8358 (update_watchpoint): Likewise.
8359 (parse_cmd_to_aexpr): Constify string handling.
8360 Pass const pointer to parse_exp_1.
8361 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8362 (find_condition_and_thread): Likewise.
8363 Make TOK const.
8364 (watch_command_1): Make "arg" const.
8365 Constify string handling.
8366 Copy the expression string instead of changing the input
8367 string.
8368 (update_breakpoint_location): Pass const pointer to
8369 parse_exp_1.
8370 * eval.c (parse_and_eval_address): Make "exp" const.
8371 (parse_to_comma_and_eval): Make "expp" const.
8372 (parse_and_eval): Make "exp" const.
8373 * expression.h (parse_expression): Make argument const.
8374 (parse_exp_1): Make first argument const.
8375 * findcmd.c (parse_find_args): Treat "args" as const.
8376 * linespec.c (parse_linespec): Pass const pointer to
8377 linespec_expression_to_pc.
8378 (linespec_expression_to_pc): Make "exp_ptr" const.
8379 * parse.c (parse_exp_1): Make "stringptr" const.
8380 Make a copy of the expression to pass to parse_exp_in_context until
8381 this whole interface can be constified.
8382 (parse_expression): Make "string" const.
8383 * printcmd.c (ui_printf): Treat "arg" as const.
8384 Handle const strings.
8385 * tracepoint.c (validate_actionline): Pass const pointer to
8386 all calls to parse_exp_1.
8387 (encode_actions_1): Likewise.
8388 * value.h (parse_to_comma_and_eval): Make argument const.
8389 (parse_and_eval_address): Likewise.
8390 (parse_and_eval): Likewise.
8391 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8392 (varobj_set_value): Likewise.
8393 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8394 constify string handling.
8395 Pass const pointers to parse_and_eval_address and
8396 parse_to_comman_and_eval.
8397 * cli/cli-utils.c (skip_to_space): Rename to ...
8398 (skip_to_space_const): ... this. Handle const strings.
8399 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8400 skip_to_space_const.
8401 (skip_to_space_const): Declare.
8402 * common/format.c (parse_format_string): Make "arg" const.
8403 Handle const strings.
8404 * common/format.h (parse_format_string): Make "arg" const.
8405 * gdbserver/ax.c (ax_printf): Make "format" const.
8406 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8407 of the expression string.
8408
8409 2013-03-12 Hui Zhu <hui@codesourcery.com>
8410
8411 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8412
8413 2013-03-12 Yao Qi <yao@codesourcery.com>
8414 Hui Zhu <hui@codesourcery.com>
8415
8416 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8417 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8418 DW_OP_deref_size.
8419
8420 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8421
8422 * ada-lex.l (rules): Only recognize 'thread' as a
8423 delimiter when followed by numerals, as for c-exp.y.
8424 Use new rewind_to_char function to rewind the input for
8425 expression-delimiting tokens.
8426 (rewind_to_char): New function.
8427
8428 2013-03-11 Pedro Alves <palves@redhat.com>
8429 Jan Kratochvil <jan.kratochvil@redhat.com>
8430
8431 * configure: Regenerate.
8432 * configure.ac (check dynamic export flag): Link python test with
8433 $PYTHON_LIBS.
8434
8435 2013-03-11 Doug Evans <dje@google.com>
8436 Keith Seitz <keiths@redhat.com>
8437
8438 * linespec.c (find_linespec_symbols): Call find_function_symbols
8439 first, and then call lookup_prefix_sym/find_method.
8440
8441 2013-03-11 Pedro Alves <palves@redhat.com>
8442
8443 * charset.c (convert_between_encodings): Don't cast between
8444 different pointer to pointer types. Instead, make the 'inp' local
8445 be of the type iconv expects.
8446 (wchar_iterate): Don't cast between different pointer to pointer
8447 types. Instead, use new pointer local of the type iconv expects.
8448 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8449 Add new local of type char pointer, and use it to get a
8450 char/string view of the byte buffer, instead of casting between
8451 pointer to pointer types.
8452
8453 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8454
8455 * remote.c (remote_set_trace_buffer_size): Move != operator
8456 to the start of next line to fix an ARI warning.
8457
8458 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8459
8460 * NEWS: Add record changes.
8461
8462 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8463
8464 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8465 the instruction history disassembly.
8466 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8467 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8468
8469 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8470
8471 * Makefile.in (SFILES): Add record-btrace.c
8472 (COMMON_OBS): Add record-btrace.o
8473 * record-btrace.c: New.
8474 * objfiles.c: Include btrace.h.
8475 (free_objfile): call btrace_free_objfile.
8476
8477 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8478
8479 * target.c (target_call_history, target_call_history_from,
8480 target_call_history_range): New.
8481 * target.h (target_ops) <to_call_history, to_call_history_from,
8482 to_call_history_range>: New fields.
8483 (target_call_history, target_call_history_from,
8484 target_call_history_range): New declaration.
8485 * record.c (get_call_history_modifiers, cmd_record_call_history,
8486 record_call_history_size): New.
8487 (_initialize_record): Add the "record function-call-history" command.
8488 Add "set/show record function-call-history-size" commands.
8489 * record.h (record_print_flag): New.
8490
8491 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8492
8493 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8494 to_insn_history_range>: New fields.
8495 (target_insn_history): New.
8496 (target_insn_history_from): New.
8497 (target_insn_history_range): New.
8498 * target.c (target_insn_history): New.
8499 (target_insn_history_from): New.
8500 (target_insn_history_range): New.
8501 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8502 (record_insn_history_size): New.
8503 (get_insn_number): New.
8504 (get_context_size): New.
8505 (no_chunk): New.
8506 (get_insn_history_modifiers): New.
8507 (cmd_record_insn_history): New.
8508 (_initialize_record): Add "set/show record instruction-history-size"
8509 command. Add "record instruction-history" command.
8510
8511 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8512
8513 * record.h (record_disconnect): New.
8514 (record_detach): New.
8515 (record_mourn_inferior): New.
8516 (record_kill): New.
8517 * record-full.c (record_disconnect, record_detach,
8518 record_mourn_inferior, record_kill): Move to...
8519 * record.c: ...here.
8520 (DEBUG): New.
8521 (record_stop): New.
8522 (record_unpush): New.
8523 (cmd_record_stop): Call record_stop. Replace unpush_target
8524 call with record_unpush call.
8525 (record_disconnect, record_detach): Assert that the target
8526 is of record stratum. Call record_unpush, record_stop, and
8527 DEBUG.
8528 (record_mourn_inferior, record_kill): Assert that the target
8529 is of record stratum. Call record_unpush and DEBUG.
8530
8531 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8532
8533 * record-full.h, record-full.c (record_memory_query): Rename
8534 to ...
8535 (record_full_memory_query): ...this. Update all users.
8536 (record_arch_list_add_reg): Rename to ...
8537 (record_full_arch_list_add_reg): ...this. Update all users.
8538 (record_arch_list_add_mem): Rename to ...
8539 (record_full_arch_list_add_mem): ...this. Update all users.
8540 (record_arch_list_add_end): Rename to ...
8541 (record_full_arch_list_add_end): ...this. Update all users.
8542 (record_gdb_operation_disable_set): Rename to ...
8543 (record_full_gdb_operation_disable_set): ...this.
8544 Update all users.
8545
8546 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8547
8548 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8549 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8550 (RECORD_IS_REPLAY): Renamed to ...
8551 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8552 (RECORD_FILE_MAGIC): Renamed to ...
8553 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8554 (record_mem_entry): Renamed to ...
8555 (record_full_mem_entry): ... this. Updated all users.
8556 (record_reg_entry): Renamed to ...
8557 (record_full_reg_entry): ... this. Updated all users.
8558 (record_end_entry): Renamed to ...
8559 (record_full_end_entry): ... this. Updated all users.
8560 (record_type) <record_end, record_reg, record_mem>: Renamed
8561 to ...
8562 (record_full_type) <record_full_end, record_full_reg,
8563 record_full_mem>: ... this. Updated all users.
8564 (record_entry): Renamed to ...
8565 (record_full_entry): ... this. Updated all users.
8566 (record_core_buf_entry): Renamed to ...
8567 (record_full_core_buf_entry): ... this. Updated all users.
8568 (record_core_regbuf): Renamed to ...
8569 (record_full_core_regbuf): ... this. Updated all users.
8570 (record_core_start): Renamed to ...
8571 (record_full_core_start): ... this. Updated all users.
8572 (record_core_end): Renamed to ...
8573 (record_full_core_end): ... this. Updated all users.
8574 (record_core_buf_list): Renamed to ...
8575 (record_full_core_buf_list): ... this. Updated all users.
8576 (record_first): Renamed to ...
8577 (record_full_first): ... this. Updated all users.
8578 (record_list): Renamed to ...
8579 (record_full_list): ... this. Updated all users.
8580 (record_arch_list_head): Renamed to ...
8581 (record_full_arch_list_head): ... this. Updated all users.
8582 (record_arch_list_tail): Renamed to ...
8583 (record_full_arch_list_tail): ... this. Updated all users.
8584 (record_stop_at_limit): Renamed to ...
8585 (record_full_stop_at_limit): ... this. Updated all users.
8586 (record_insn_max_num): Renamed to ...
8587 (record_full_insn_max_num): ... this. Updated all users.
8588 (record_insn_num): Renamed to ...
8589 (record_full_insn_num): ... this. Updated all users.
8590 (record_insn_count): Renamed to ...
8591 (record_full_insn_count): ... this. Updated all users.
8592 (record_ops): Renamed to ...
8593 (record_full_ops): ... this. Updated all users.
8594 (record_core_ops): Renamed to ...
8595 (record_full_core_ops): ... this. Updated all users.
8596 (set_record_cmdlist): Renamed to ...
8597 (set_record_full_cmdlist): ... this. Updated all users.
8598 (show_record_cmdlist): Renamed to ...
8599 (show_record_full_cmdlist): ... this. Updated all users.
8600 (record_cmdlist): Renamed to ...
8601 (record_full_cmdlist): ... this. Updated all users.
8602 (record_beneath_to_resume_ops): Renamed to ...
8603 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8604 (record_beneath_to_resume): Renamed to ...
8605 (record_full_beneath_to_resume): ... this. Updated all users.
8606 (record_beneath_to_wait_ops): Renamed to ...
8607 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8608 (record_beneath_to_wait): Renamed to ...
8609 (record_full_beneath_to_wait): ... this. Updated all users.
8610 (record_beneath_to_store_registers_ops): Renamed to ...
8611 (record_full_beneath_to_store_registers_ops): ... this.
8612 Updated all users.
8613 (record_beneath_to_store_registers): Renamed to ...
8614 (record_full_beneath_to_store_registers): ... this.
8615 Updated all users.
8616 (record_beneath_to_xfer_partial_ops): Renamed to ...
8617 (record_full_beneath_to_xfer_partial_ops): ... this.
8618 Updated all users.
8619 (record_beneath_to_xfer_partial): Renamed to ...
8620 (record_full_beneath_to_xfer_partial): ... this.
8621 Updated all users.
8622 (record_beneath_to_insert_breakpoint): Renamed to ...
8623 (record_full_beneath_to_insert_breakpoint): ... this.
8624 Updated all users.
8625 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8626 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8627 Updated all users.
8628 (record_beneath_to_stopped_data_address): Renamed to ...
8629 (record_full_beneath_to_stopped_data_address): ... this.
8630 Updated all users.
8631 (record_beneath_to_async): Renamed to ...
8632 (record_full_beneath_to_async): ... this. Updated all users.
8633 (record_goto_insn): Renamed to ...
8634 (record_full_goto_insn): ... this. Updated all users.
8635 (record_save): Renamed to ...
8636 (record_full_save): ... this. Updated all users.
8637 (record_reg_alloc): Renamed to ...
8638 (record_full_reg_alloc): ... this. Updated all users.
8639 (record_reg_release): Renamed to ...
8640 (record_full_reg_release): ... this. Updated all users.
8641 (record_mem_alloc): Renamed to ...
8642 (record_full_mem_alloc): ... this. Updated all users.
8643 (record_mem_release): Renamed to ...
8644 (record_full_mem_release): ... this. Updated all users.
8645 (record_end_alloc): Renamed to ...
8646 (record_full_end_alloc): ... this. Updated all users.
8647 (record_end_release): Renamed to ...
8648 (record_full_end_release): ... this. Updated all users.
8649 (record_entry_release): Renamed to ...
8650 (record_full_entry_release): ... this. Updated all users.
8651 (record_list_release): Renamed to ...
8652 (record_full_list_release): ... this. Updated all users.
8653 (record_list_release_following): Renamed to ...
8654 (record_full_list_release_following): ... this.
8655 Updated all users.
8656 (record_list_release_first): Renamed to ...
8657 (record_full_list_release_first): ... this. Updated all users.
8658 (record_arch_list_add): Renamed to ...
8659 (record_full_arch_list_add): ... this. Updated all users.
8660 (record_get_loc): Renamed to ...
8661 (record_full_get_loc): ... this. Updated all users.
8662 (record_check_insn_num): Renamed to ...
8663 (record_full_check_insn_num): ... this. Updated all users.
8664 (record_arch_list_cleanups): Renamed to ...
8665 (record_full_arch_list_cleanups): ... this. Updated all users.
8666 (record_message): Renamed to ...
8667 (record_full_message): ... this. Updated all users.
8668 (record_message_wrapper): Renamed to ...
8669 (record_full_message_wrapper): ... this. Updated all users.
8670 (record_message_wrapper_safe): Renamed to ...
8671 (record_full_message_wrapper_safe): ... this. Updated all users.
8672 (record_gdb_operation_disable): Renamed to ...
8673 (record_full_gdb_operation_disable): ... this. Updated all users.
8674 (record_hw_watchpoint): Renamed to ...
8675 (record_full_hw_watchpoint): ... this. Updated all users.
8676 (record_exec_insn): Renamed to ...
8677 (record_full_exec_insn): ... this. Updated all users.
8678 (record_restore): Renamed to ...
8679 (record_full_restore): ... this. Updated all users.
8680 (record_async_inferior_event_token): Renamed to ...
8681 (record_full_async_inferior_event_token): ... this.
8682 Updated all users.
8683 (record_async_inferior_event_handler): Renamed to ...
8684 (record_full_async_inferior_event_handler): ... this.
8685 Updated all users.
8686 (record_core_open_1): Renamed to ...
8687 (record_full_core_open_1): ... this. Updated all users.
8688 (record_open_1): Renamed to ...
8689 (record_full_open_1): ... this. Updated all users.
8690 (record_open): Renamed to ...
8691 (record_full_open): ... this. Updated all users.
8692 (record_close): Renamed to ...
8693 (record_full_close): ... this. Updated all users.
8694 (record_resume_step): Renamed to ...
8695 (record_full_resume_step): ... this. Updated all users.
8696 (record_resumed): Renamed to ...
8697 (record_full_resumed): ... this. Updated all users.
8698 (record_execution_dir): Renamed to ...
8699 (record_full_execution_dir): ... this. Updated all users.
8700 (record_resume): Renamed to ...
8701 (record_full_resume): ... this. Updated all users.
8702 (record_get_sig): Renamed to ...
8703 (record_full_get_sig): ... this. Updated all users.
8704 (record_sig_handler): Renamed to ...
8705 (record_full_sig_handler): ... this. Updated all users.
8706 (record_wait_cleanups): Renamed to ...
8707 (record_full_wait_cleanups): ... this. Updated all users.
8708 (record_wait_1): Renamed to ...
8709 (record_full_wait_1): ... this. Updated all users.
8710 (record_wait): Renamed to ...
8711 (record_full_wait): ... this. Updated all users.
8712 (record_stopped_by_watchpoint): Renamed to ...
8713 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8714 (record_disconnect): Renamed to ...
8715 (record_full_disconnect): ... this. Updated all users.
8716 (record_detach): Renamed to ...
8717 (record_full_detach): ... this. Updated all users.
8718 (record_mourn_inferior): Renamed to ...
8719 (record_full_mourn_inferior): ... this. Updated all users.
8720 (record_kill): Renamed to ...
8721 (record_full_kill): ... this. Updated all users.
8722 (record_stopped_data_address): Renamed to ...
8723 (record_full_stopped_data_address): ... this. Updated all users.
8724 (record_registers_change): Renamed to ...
8725 (record_full_registers_change): ... this. Updated all users.
8726 (record_store_registers): Renamed to ...
8727 (record_full_store_registers): ... this. Updated all users.
8728 (record_xfer_partial): Renamed to ...
8729 (record_full_xfer_partial): ... this. Updated all users.
8730 (record_breakpoint): Renamed to ...
8731 (record_full_breakpoint): ... this. Updated all users.
8732 (record_breakpoint_p): Renamed to ...
8733 (record_full_breakpoint_p): ... this. Updated all users.
8734 (record_breakpoints): Renamed to ...
8735 (record_full_breakpoints): ... this. Updated all users.
8736 (record_sync_record_breakpoints): Renamed to ...
8737 (record_full_sync_record_breakpoints): ... this.
8738 Updated all users.
8739 (record_init_record_breakpoints): Renamed to ...
8740 (record_full_init_record_breakpoints): ... this.
8741 Updated all users.
8742 (record_insert_breakpoint): Renamed to ...
8743 (record_full_insert_breakpoint): ... this. Updated all users.
8744 (record_remove_breakpoint): Renamed to ...
8745 (record_full_remove_breakpoint): ... this. Updated all users.
8746 (record_can_execute_reverse): Renamed to ...
8747 (record_full_can_execute_reverse): ... this. Updated all users.
8748 (record_get_bookmark): Renamed to ...
8749 (record_full_get_bookmark): ... this. Updated all users.
8750 (record_goto_bookmark): Renamed to ...
8751 (record_full_goto_bookmark): ... this. Updated all users.
8752 (record_async): Renamed to ...
8753 (record_full_async): ... this. Updated all users.
8754 (record_can_async_p): Renamed to ...
8755 (record_full_can_async_p): ... this. Updated all users.
8756 (record_is_async_p): Renamed to ...
8757 (record_full_is_async_p): ... this. Updated all users.
8758 (record_execution_direction): Renamed to ...
8759 (record_full_execution_direction): ... this. Updated all users.
8760 (record_info): Renamed to ...
8761 (record_full_info): ... this. Updated all users.
8762 (record_delete): Renamed to ...
8763 (record_full_delete): ... this. Updated all users.
8764 (record_is_replaying): Renamed to ...
8765 (record_full_is_replaying): ... this. Updated all users.
8766 (record_goto_entry): Renamed to ...
8767 (record_full_goto_entry): ... this. Updated all users.
8768 (record_goto_begin): Renamed to ...
8769 (record_full_goto_begin): ... this. Updated all users.
8770 (record_goto_end): Renamed to ...
8771 (record_full_goto_end): ... this. Updated all users.
8772 (record_goto): Renamed to ...
8773 (record_full_goto): ... this. Updated all users.
8774 (init_record_ops): Renamed to ...
8775 (init_record_full_ops): ... this. Updated all users.
8776 (record_core_resume): Renamed to ...
8777 (record_full_core_resume): ... this. Updated all users.
8778 (record_core_kill): Renamed to ...
8779 (record_full_core_kill): ... this. Updated all users.
8780 (record_core_fetch_registers): Renamed to ...
8781 (record_full_core_fetch_registers): ... this. Updated all users.
8782 (record_core_prepare_to_store): Renamed to ...
8783 (record_full_core_prepare_to_store): ... this. Updated all users.
8784 (record_core_store_registers): Renamed to ...
8785 (record_full_core_store_registers): ... this. Updated all users.
8786 (record_core_xfer_partial): Renamed to ...
8787 (record_full_core_xfer_partial): ... this. Updated all users.
8788 (record_core_insert_breakpoint): Renamed to ...
8789 (record_full_core_insert_breakpoint): ... this. Updated all users.
8790 (record_core_remove_breakpoint): Renamed to ...
8791 (record_full_core_remove_breakpoint): ... this. Updated all users.
8792 (record_core_has_execution): Renamed to ...
8793 (record_full_core_has_execution): ... this. Updated all users.
8794 (init_record_core_ops): Renamed to ...
8795 (init_record_full_core_ops): ... this. Updated all users.
8796 (cmd_record_restore): Renamed to ...
8797 (cmd_record_full_restore): ... this. Updated all users.
8798 (record_save_cleanups): Renamed to ...
8799 (record_full_save_cleanups): ... this. Updated all users.
8800 (cmd_record_start): Renamed to ...
8801 (cmd_record_full_start): ... this. Updated all users.
8802 (set_record_insn_max_num): Renamed to ...
8803 (set_record_full_insn_max_num): ... this. Updated all users.
8804 (set_record_command): Renamed to ...
8805 (set_record_full_command): ... this. Updated all users.
8806 (show_record_command): Renamed to ...
8807 (show_record_full_command): ... this. Updated all users.
8808 (_initialize_record): Renamed to ...
8809 (_initialize_record_full): ... this. Updated all users.
8810
8811 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8812
8813 * record.h: Split into this and ...
8814 * record-full.h: ... this.
8815 * record.c: Split into this and ...
8816 * record-full.c: ... this.
8817 * target.h (target_ops): Add new fields to_info_record,
8818 to_save_record, to_delete_record, to_record_is_replaying,
8819 to_goto_record_begin, to_goto_record_end, to_goto_record.
8820 (target_info_record): New.
8821 (target_save_record): New.
8822 (target_supports_delete_record): New.
8823 (target_delete_record): New.
8824 (target_record_is_replaying): New.
8825 (target_goto_record_begin): New.
8826 (target_goto_record_end): New.
8827 (target_goto_record): New.
8828 * target.c (target_info_record): New.
8829 (target_save_record): New.
8830 (target_supports_delete_record): New.
8831 (target_delete_record): New.
8832 (target_record_is_replaying): New.
8833 (target_goto_record_begin): New.
8834 (target_goto_record_end): New.
8835 (target_goto_record): New.
8836 * record.h: Declare struct cmd_list_element.
8837 (record_cmdlist): New declaration.
8838 (set_record_cmdlist): New declaration.
8839 (show_record_cmdlist): New declaration.
8840 (info_record_cmdlist): New declaration.
8841 (cmd_record_goto): New declaration.
8842 * record.c: Remove unnecessary includes.
8843 Include inferior.h.
8844 (cmd_record_goto): Remove declaration.
8845 (record_cmdlist): Now extern. Initialize.
8846 (set_record_cmdlist): Now extern. Initialize.
8847 (show_record_cmdlist): Now extern. Initialize.
8848 (info_record_cmdlist): Now extern. Initialize.
8849 (find_record_target): New.
8850 (require_record_target): New.
8851 (cmd_record_start): Update.
8852 (cmd_record_delete): Remove target-specific code.
8853 Call target_delete_record.
8854 (cmd_record_stop): Unpush any record target.
8855 (set_record_insn_max_num): Move to record-full.c
8856 (set_record_command): Add comment.
8857 (show_record_command): Add comment.
8858 (info_record_command): Update comment.
8859 Remove target-specific code.
8860 Call the record target's to_info_record.
8861 (cmd_record_start): New.
8862 (cmd_record_goto): Now extern.
8863 Remove target-specific code.
8864 Call target_goto_begin, target_goto_end, or target_goto.
8865 (_initialize_record): Move record target ops initialization to
8866 record-full.c.
8867 Change "record" command help text.
8868 Move "record restore", "record set", and "record show" commands to
8869 record-full.c.
8870 * Makefile.in (SFILES): Add record-full.c.
8871 (HFILES_NO_SRCDIR): Add record-full.h.
8872 (COMMON_OBS): Add record-full.o.
8873 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8874 * arm-tdep.c: Include record-full.h.
8875 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8876 * i386-tdep.c: Include record-full.h.
8877 * infrun.c: Include record-full.h.
8878 * linux-record.c: Include record-full.h.
8879 * moxie-tdep.c: Include record-full.h.
8880 * record-full.c: Include record-full.h.
8881 Change module comment.
8882 (set_record_full_cmdlist): New.
8883 (show_record_full_cmdlist): New.
8884 (record_full_cmdlist): New.
8885 (record_goto_insn): New declaration.
8886 (record_save): New declaration.
8887 (record_check_insn_num): Change query string.
8888 (record_info): New.
8889 (record_delete): New.
8890 (record_is_replaying): New.
8891 (record_goto_entry): New.
8892 (record_goto_begin): New.
8893 (record_goto_end): New.
8894 (record_goto): New.
8895 (init_record_ops): Update.
8896 (init_record_core_ops): Update.
8897 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8898 (cmd_record_start): New.
8899 (set_record_insn_max_num): Moved from record.c
8900 (set_record_full_command): New.
8901 (show_record_full_command): New.
8902 (_initialize_record_full): New.
8903
8904 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8905
8906 * target.h (add_deprecated_target_alias): New.
8907 * target.c (add_deprecated_target_alias): New.
8908
8909 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8910
8911 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8912 and signal.h.
8913 (linux_supports_btrace): Add kernel and
8914 cpuid check.
8915 (kernel_supports_btrace): New function.
8916 (cpu_supports_btrace): New function.
8917 (intel_supports_btrace): New function.
8918
8919 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8920
8921 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8922 * remote.c: Include btrace.h.
8923 (struct btrace_target_info): New struct.
8924 (remote_supports_btrace): New function.
8925 (send_Qbtrace): New function.
8926 (remote_enable_btrace): New function.
8927 (remote_disable_btrace): New function.
8928 (remote_teardown_btrace): New function.
8929 (remote_read_btrace): New function.
8930 (init_remote_ops): Add btrace ops.
8931 (enum <unnamed>): Add btrace packets.
8932 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8933 (_initialize_remote): Add packet configuration for branch tracing.
8934
8935 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8936
8937 * features/btrace.dtd: New file.
8938 * Makefile.in (XMLFILES): Add btrace.dtd.
8939 * btrace.h (parse_xml_btrace): New declaration.
8940 * btrace.c: Include xml-support.h.
8941 (parse_xml_btrace): New function.
8942 (parse_xml_btrace_block): New function.
8943 (block_attributes): New struct.
8944 (btrace_attributes): New struct.
8945 (btrace_children): New struct.
8946 (btrace_elements): New struct.
8947
8948 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8949
8950 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8951 (amd64_linux_enable_btrace): New.
8952 (amd64_linux_disable_btrace): New.
8953 (amd64_linux_teardown_btrace): New.
8954 (_initialize_amd64_linux_nat): Initialize btrace ops.
8955 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8956 (i386_linux_enable_btrace): New.
8957 (i386_linux_disable_btrace): New.
8958 (i386_linux_teardown_btrace): New.
8959 (_initialize_i386_linux_nat): Initialize btrace ops.
8960 * config/i386/linux.mh: Add linux-btrace.o.
8961 * config/i386/linux64.mh: Add linux-btrace.o.
8962
8963 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8964
8965 * common/linux_btrace.h: New file.
8966 * common/linux_btrace.c: New file.
8967 * Makefile.in (SFILES): Add btrace.c.
8968 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8969 (COMMON_OBS): Add btrace.o.
8970 (linux-btrace.o): New rule.
8971
8972 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8973
8974 * target.h: Include btrace.h.
8975 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8976 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8977 * target.c (target_supports_btrace): New function.
8978 (target_enable_btrace): New function.
8979 (target_disable_btrace): New function.
8980 (target_teardown_btrace): New function.
8981 (target_read_btrace): New function.
8982 * btrace.h: New file.
8983 * btrace.c: New file.
8984 * Makefile.in: Add btrace.c.
8985 * gdbthread.h: Include btrace.h.
8986 (struct thread_info): Add btrace field.
8987 * thread.c: Include btrace.h.
8988 (clear_thread_inferior_resources): Call target_teardown_btrace.
8989 * common/btrace-common.h: New file.
8990
8991 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8992
8993 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8994 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8995 kill_status to outer block.
8996
8997 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8998
8999 Fix entry-values if the callee called a noreturn function.
9000 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9001 get_frame_address_in_block. Add new comment.
9002
9003 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9004
9005 Fix entry-values in C++ across CUs.
9006 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9007 lookup_minimal_symbol. Add a comment.
9008 * dwarf2read.c
9009 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9010 DW_AT_linkage_name.
9011
9012 2013-03-08 Yao Qi <yao@codesourcery.com>
9013
9014 * tracepoint.c (_initialize_tracepoint): Indent the code.
9015
9016 2013-03-08 Pedro Alves <palves@redhat.com>
9017
9018 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9019 (parse_find_args, find_command): Change type of pattern buffer
9020 locals to 'gdb_byte *'.
9021
9022 2013-03-08 Stan Shebs <stan@codesourcery.com>
9023 Hafiz Abid Qadeer <abidh@codesourcery.com>
9024
9025 * NEWS: Mention set and show trace-buffer-size commands.
9026 Mention new packet.
9027 * target.h (struct target_ops): New method
9028 to_set_trace_buffer_size.
9029 (target_set_trace_buffer_size): New macro.
9030 * target.c (update_current_target): Set up new method.
9031 * tracepoint.c (trace_buffer_size): New global.
9032 (start_tracing): Send it to the target.
9033 (set_trace_buffer_size): New function.
9034 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9035 * remote.c (remote_set_trace_buffer_size): New function.
9036 (_initialize_remote): Use it.
9037 (QTBuffer:size) New remote command.
9038 (PACKET_QTBuffer_size): New enum.
9039 (remote_protocol_features): Add an entry for
9040 PACKET_QTBuffer_size.
9041
9042 2013-03-08 Tom Tromey <tromey@redhat.com>
9043
9044 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9045 variable.
9046
9047 2013-03-07 Pedro Alves <palves@redhat.com>
9048
9049 * target.c (target_read_stralloc, target_fileio_read_alloc):
9050 *Cast pointer to 'gdb_byte *' in target call.
9051
9052 2013-03-07 Pedro Alves <palves@redhat.com>
9053
9054 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9055 call.
9056
9057 2013-03-07 Keith Seitz <keiths@redhat.com>
9058
9059 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9060 (trace_pass_command): Likewise.
9061 * cli/cli-cmds.c: Include cli/cli-utils.h.
9062 (source_command): Use skip-spaces.
9063 (disassemble_command): Likewise.
9064 * findcmd.c: Include cli/cli-utils.h.
9065 (parse_find_args): Use skip_spaces.
9066 * go32-nat.c: Include cli/cli-utils.h.
9067 (go32_sldt): Use skip_spaces.
9068 (go32_sgdt): Likewise.
9069 (go32_sidt): Likewise.
9070 (go32_pde): Likewise.
9071 (go32_pte): Likewise.
9072 (go32_pte_for_address): Likewise.
9073 * infcmd.c: Include cli/cli-utils.h.
9074 (registers_info): Use skip_spaces.
9075 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9076 (linux_info_proc): Likewise.
9077 * linux-thread-db.c: Include cli/cli-utils.h.
9078 (info_auto_load_libthread_db): Use skip_spaces_const.
9079 * m32r-rom.c: Include cli/cli-utils.h.
9080 (m32r_upload_command): Use skip_spaces.
9081 * maint.c: Include cli/cli-utils.h.
9082 (maintenance_translate_address): Use skip_spaces.
9083 * mi/mi-parse.c: Include cli/cli-utils.h.
9084 (mi_parse_argv): Use skip_spaces.
9085 (mi_parse): Likewise.
9086 * minsyms.c: Include cli/cli-utils.h.
9087 (msymbol_hash_iw): Use skip_spaces_const.
9088 * objc-lang.c: Include cli/cli-utils.h.
9089 (parse_selector): Use skip_spaces.
9090 (parse_method): Likewise.
9091 * python/python.c: Include cli/cli-utils.h.
9092 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9093 (python_command)[HAVE_PYTHON]: Likewise.
9094 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9095 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9096 (m32r_load): Use skip_spaces.
9097 * serial.c: Include cli/cli-utils.h.
9098 (serial_open): Use skip_spaces_const.
9099 * stack.c: Include cli/cli-utils.h.
9100 (parse_frame_specification_1): Use skip_spaces_const.
9101 * symfile.c: Include cli/cli-utils.h.
9102 (set_ext_lang_command): Use skip_spaces.
9103 * symtab.c: Include cli/cli-utils.h.
9104 (rbreak_command): Use skip_spaces.
9105 * thread.c (thread_name_command): Use skip_spaces.
9106 * tracepoint.c (validate_actionline): Use skip_spaces.
9107 (encode_actions_1): Likewise.
9108 (trace_find_range_command): Likewise.
9109 (trace_find_outside_command): Likewise.
9110 (trace_dump_actions): Likewise.
9111
9112 2013-03-07 Pedro Alves <palves@redhat.com>
9113
9114 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9115 * expprint.c (print_subexp_standard): Likewise.
9116 * utils.c (host_char_to_target): Likewise.
9117 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9118 * varobj.c (value_get_print_value): Change type of local to char*.
9119 Cast it gdb_byte * in call to language printer.
9120
9121 2013-03-07 Pedro Alves <palves@redhat.com>
9122
9123 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9124 gdb_byte *'.
9125 (make_wchar_iterator): Remove cast to char*.
9126 (wchar_iterate): Change type of local.
9127
9128 2013-03-07 Pedro Alves <palves@redhat.com>
9129
9130 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9131 for 'regcache->register_status'.
9132
9133 2013-03-07 Pedro Alves <palves@redhat.com>
9134
9135 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9136 int.
9137
9138 2013-03-07 Pedro Alves <palves@redhat.com>
9139
9140 * stap-probe.c (handle_stap_probe): Add cast to char*.
9141
9142 2013-03-07 Pedro Alves <palves@redhat.com>
9143
9144 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9145 RECORD_MSGRCV>: Pass a signed variable to
9146 regcache_raw_read_signed, instead of an unsigned one.
9147
9148 2013-03-07 Pedro Alves <palves@redhat.com>
9149
9150 * remote-notif.c (notif_debug): Change type to int.
9151 * remote-notif.h (notif_debug): Likewise.
9152
9153 2013-03-07 Pedro Alves <palves@redhat.com>
9154
9155 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9156
9157 2013-03-07 Pedro Alves <palves@redhat.com>
9158
9159 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9160 * remote.h (hex2bin, bin2hex): ... here.
9161 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9162
9163 2013-03-07 Eli Zaretskii <eliz@gnu.org>
9164
9165 * utils.c (initialize_utils): Improve doc strings of "set/show
9166 width", "set/show height", and "set/show pagination".
9167
9168 2013-03-06 Keith Seitz <keiths@redhat.com>
9169
9170 * ax-gdb.c (gen_printf): Make FORMAT const.
9171 * ax-gdb.h (gen_printf): Likewise.
9172 * ax-general.c (ax_string): Make STR const.
9173 * ax.h (ax_string): Likewise.
9174
9175 2013-03-06 Doug Evans <dje@google.com>
9176
9177 * elfread.c (elf_symfile_read): Move debugging printf to more
9178 logical location.
9179
9180 2013-03-06 Pedro Alves <palves@redhat.com>
9181
9182 * python/py-utils.c (target_string_to_unicode): Delete function.
9183 * python/python-internal.h (target_string_to_unicode): Delete
9184 declaration.
9185
9186 2013-03-06 Pierre Muller <muller@sourceware.org>
9187
9188 * linespec.c (get_current_search_block): ARI fix, use (void)
9189 for empty parameter list.
9190
9191 2013-03-05 Doug Evans <dje@google.com>
9192
9193 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9194 of old ada_lookup_symbol_list. In !full_search case, don't
9195 search superblocks.
9196 (ada_lookup_symbol_list): Delete arg full_search, all callers
9197 updated. Call ada_lookup_symbol_list_worker.
9198 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9199 * ada-lang.h (ada_lookup_symbol_list): Update.
9200 * language.h (language_defn): Update comment for
9201 la_iterate_over_symbols.
9202 * linespec.c (iterate_over_file_blocks): New function.
9203 (iterate_over_all_matching_symtabs): Call it.
9204 (lookup_prefix_sym): Ditto.
9205 (get_current_search_block): New function.
9206 (get_search_block): Delete.
9207 (find_label_symbols): Call get_current_search_block.
9208 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9209 * symtab.c (iterate_over_symbols): Don't search superblocks.
9210
9211 2013-03-05 Yao Qi <yao@codesourcery.com>
9212
9213 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9214 parameter VAR's type from "unsigned int" to "int".
9215 * command.h (var_zuinteger_unlimited): Update its comments.
9216 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9217
9218 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9219
9220 * NEWS: Mention new target x86_64-*-cygwin*.
9221
9222 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9223
9224 * configure.host: Add x86_64-*-cygwin* as host.
9225 * configure.tgt: Add x86_64-*-cygwin* as target.
9226 * config/i386/cygwin64.mh: New file.
9227
9228 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9229
9230 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9231
9232 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9233
9234 * linespec.c (struct linespec_canonical_name): New.
9235 (struct linespec_state): Change canonical_names type to it.
9236 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9237 xrealloc element size. Initialize the different CANONICAL fields.
9238 (canonical_to_fullform): New.
9239 (filter_results): Use it. Add variables canonical, fullform and
9240 cleanup.
9241 (struct decode_line_2_item, decode_line_2_compare_items): New.
9242 (decode_line_2): Remove variables iter and item_names, add variables
9243 items and items_count. Modify the code for these new variables.
9244
9245 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9246
9247 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9248 calling do_cleanup.
9249
9250 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9251
9252 * tracepoint.c (build_traceframe_info): Add code for byte order.
9253
9254 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9255
9256 * v850-tdep.c: (v850e2_register_name): Revise system register
9257 names to match current V850E2M architecture specifications.
9258 Update register number enum comments too.
9259
9260 2013-03-01 Jiong Wang <jiwang@tilera.com>
9261 Pedro Alves <palves@redhat.com>
9262
9263 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9264 to END_ADDR.
9265 (tilegx_skip_prologue): Limit prologue analysis to section end.
9266
9267 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9268
9269 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9270 use it.
9271
9272 2013-03-01 Pedro Alves <palves@redhat.com>
9273
9274 Use gdb_byte for bytes from the program being debugged.
9275
9276 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9277 Change type of local 'buf' to gdb_byte.
9278 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9279 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9280 * cris-tdep.c (cris_sigcontext_addr)
9281 (cris_sigtramp_frame_unwind_cache): Likewise.
9282 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9283 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9284 Likewise.
9285 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9286 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9287 (hppa32_hpux_search_dummy_call_sequence)
9288 (hppa_hpux_supply_save_state): Likewise.
9289 * hppa-linux-tdep.c (insns_match_pattern)
9290 (hppa_linux_find_global_pointer): Likewise.
9291 * hppa-tdep.c (hppa_in_function_epilogue_p)
9292 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9293 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9294 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9295 (i386fbsd_collect_uthread): Likewise.
9296 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9297 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9298 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9299 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9300 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9301 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9302 (ia64_libunwind_frame_prev_register)
9303 (ia64_libunwind_sigtramp_frame_this_id)
9304 (ia64_find_global_pointer_from_dynamic_section)
9305 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9306 (ia64_unwind_pc): Likewise.
9307 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9308 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9309 (m68hc11_extract_return_value): Likewise.
9310 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9311 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9312 (mep_get_insn, mep_push_dummy_call): Likewise.
9313 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9314 (mips_linux_in_dynsym_stub): Likewise.
9315 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9316 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9317 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9318 to gdb_byte.
9319 * remote-mips.c (mips_set_register): Likewise.
9320 * remote-sim.c (gdbsim_fetch_register): Likewise.
9321 * score-tdep.c (score7_fetch_inst): Change type of parameter
9322 'memblock' and local 'buf' to gdb_byte.
9323 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9324 Change type of local 'buf' to gdb_byte. Adjust.
9325 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9326 to gdb_byte**.
9327 (score7_analyze_prologue): Change type of 'memblock' and
9328 'memblock_ptr' locals to gdb_byte*.
9329 * sh64-tdep.c (sh64_extract_return_value)
9330 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9331 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9332 * solib-pa64.c (pa64_solib_create_inferior_hook)
9333 (pa64_open_symbol_file_object): Remove local 'buf'.
9334 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9335 (som_open_symbol_file_object): Likewise.
9336 * solib-spu.c (spu_current_sos): Likewise.
9337 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9338 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9339 (spu_store_registers): Likewise.
9340 * target.c (debug_print_register): Likewise.
9341 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9342 * xstormy16-tdep.c (xstormy16_store_return_value)
9343 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9344 (xstormy16_find_jmp_table_entry): Likewise.
9345
9346 2013-03-01 Jiong Wang <jiwang@tilera.com>
9347
9348 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9349 (tilegx_gdbarch_init): Install it.
9350
9351 2013-02-28 Tom Tromey <tromey@redhat.com>
9352
9353 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9354 PyLong_Check.
9355
9356 2013-02-28 Doug Evans <dje@google.com>
9357
9358 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9359 * python/python.c (gdbpy_find_pc_line): Ditto.
9360
9361 2013-02-28 Tom Tromey <tromey@redhat.com>
9362
9363 * contrib/excheck.py: New file.
9364 * contrib/exsummary.py: New file.
9365 * contrib/gcc-with-excheck: New file.
9366
9367 2013-02-28 Tom Tromey <tromey@redhat.com>
9368
9369 * python/python.c (gdbpy_print_stack): Call begin_line and
9370 fprintf_filtered inside TRY_CATCH.
9371
9372 2013-02-28 Tom Tromey <tromey@redhat.com>
9373
9374 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9375 inside TRY_CATCH.
9376
9377 2013-02-28 Tom Tromey <tromey@redhat.com>
9378
9379 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9380 frame_object_to_frame_info inside TRY_CATCH.
9381
9382 2013-02-28 Tom Tromey <tromey@redhat.com>
9383
9384 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9385 TRY_CATCH.
9386
9387 2013-02-28 Tom Tromey <tromey@redhat.com>
9388
9389 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9390
9391 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9392
9393 * windows-nat.c: Throughout, fix format strings and casts of
9394 printf-like functions to avoid type related warnings on all
9395 platforms.
9396 (handle_output_debug_string): Fetch context information address
9397 from debug string using string_to_core_addr.
9398
9399 2013-02-27 Jiong Wang <jiwang@tilera.com>
9400
9401 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9402 * regformats/reg-tilegx32.dat: New.
9403
9404 2013-02-27 Jiong Wang <jiwang@tilera.com>
9405
9406 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9407
9408 2013-02-27 Jiong Wang <jiwang@tilera.com>
9409
9410 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9411
9412 2013-02-27 Yao Qi <yao@codesourcery.com>
9413 Pedro Alves <palves@redhat.com>
9414
9415 * tracepoint.c (tfile_trace_find): For tfind
9416 pc/tp/range/outside, look for the next trace frame instead of
9417 always starting from frame 0.
9418
9419 2013-02-26 Anthony Green <green@moxielogic.com>
9420
9421 * configure.tgt: Add support for moxie-*-rtems* target.
9422
9423 2013-02-25 Pedro Alves <palves@redhat.com>
9424
9425 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9426 warning text.
9427
9428 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9429
9430 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9431 if $fp is used as the virtual frame pointer.
9432
9433 2013-02-23 Alan Modra <amodra@gmail.com>
9434
9435 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9436 symbol size.
9437 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9438 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9439 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9440 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9441
9442 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9443
9444 Code cleanup.
9445 * elfread.c (build_id_bfd_get): Make the return type const.
9446 (build_id_verify): Make the check parameter const.
9447 (build_id_to_debug_filename): Make the build_id parameter and variable
9448 data const.
9449 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9450
9451 2013-02-21 Alan Modra <amodra@gmail.com>
9452
9453 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9454
9455 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9456
9457 Add a new method 'disassemble' to gdb.Architecture class.
9458 * python/py-arch.c (archpy_disassmble): Implementation of the
9459 new method gdb.Architecture.disassemble.
9460 (arch_object_methods): Add entry for the new method.
9461
9462 2013-02-20 Jiong Wang <jiwang@tilera.com>
9463
9464 * MAINTAINERS (Write After Approval): Add myself to the list.
9465
9466 2013-02-19 Pedro Alves <palves@redhat.com>
9467
9468 Garbage collect 'struct monitor_ops'::load_routine.
9469
9470 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9471 * monitor.c (monitor_load): No longer call
9472 current_monitor->load_routine.
9473 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9474 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9475 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9476
9477 2013-02-19 Pedro Alves <palves@redhat.com>
9478
9479 PR gdb/15161
9480
9481 Harmonize with generic_load.
9482
9483 * monitor.c: Include "readline/readline.h".
9484 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9485 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9486 long/strtol for the 'load_offset' local. Error out if no argument
9487 is given or if too many arguments are given. Tilde expand the
9488 passed in file name.
9489
9490 2013-02-19 Kai Tietz <ktietz@redhat.com>
9491
9492 PR gdb/15161
9493 * symfile.c (load_section_data): Change type of load_offset
9494 to CORE_ADDR.
9495 (generic_load): User strtoulst instead of strtoul for conversion
9496 of load_offset.
9497
9498 2013-02-19 Jiong Wang <jiwang@tilera.com>
9499
9500 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9501 for return address, "lr" register, saved on stack.
9502 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9503 after we invoke tilegx_analyze_prologue.
9504
9505 2013-02-19 Jiong Wang <jiwang@tilera.com>
9506
9507 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9508
9509 2013-02-19 Jiong Wang <jiwang@tilera.com>
9510
9511 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9512
9513 2013-02-19 Jiong Wang <jiwang@tilera.com>
9514
9515 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9516 (tilegx_write_pc): New function.
9517 (tilegx_cannot_reference_register): Return zero if REGNO
9518 is TILEGX_FAULTNUM_REGNUM.
9519 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9520 (tilegx_register_name): Add handling of "faultnum" register.
9521 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9522 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9523 handling of TILEGX_FAULTNUM_REGNUM.
9524 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9525
9526 2013-02-19 Jiong Wang <jiwang@tilera.com>
9527
9528 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9529 should be aligned to 64bit.
9530
9531 2013-02-19 Kai Tietz <ktietz@redhat.com>
9532
9533 * windows-nat.c (windows_xfer_memory): Fix debug-output
9534 for LLP64.
9535
9536 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9537
9538 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9539 Don't check DSP register number if HAVE_DSP is not set.
9540
9541 2013-02-19 Alan Modra <amodra@gmail.com>
9542
9543 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9544 throughout file instead.
9545 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9546 Don't xmalloc return value.
9547 (build_id_verify): Similarly. Don't xfree.
9548 (build_id_to_debug_filename): Update.
9549 (find_separate_debug_file_by_buildid): Update, don't xfree.
9550
9551 2013-02-18 Tom Tromey <tromey@redhat.com>
9552
9553 PR gdb/15102:
9554 * dwarf2read.c (read_subrange_type): Use result of
9555 'check_typedef'.
9556
9557 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9558
9559 * frame.c: Remove one extra white space after #include
9560 directive.
9561
9562 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9563
9564 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9565
9566 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9567
9568 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9569 and dir commands into an if block.
9570
9571 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9572
9573 * python/py-breakpoint (struct pybp_code): Use int instead of
9574 enum type_code.
9575
9576 2013-02-15 Pedro Alves <pedro@codesourcery.com>
9577 Hafiz Abid Qadeer <abidh@codesourcery.com>
9578
9579 * NEWS: Mention new field "trace-file".
9580 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9581 (tfile_open): Record the trace file's filename in the trace
9582 status.
9583 (tfile_files_info): Mention the name of the trace file.
9584 Check the "filename" field explicitely.
9585 (trace_status_command): Explicitely check "filename" field.
9586 (trace_find_command): Ditto.
9587 (trace_find_pc_command): Ditto.
9588 (trace_find_tracepoint_command): Ditto.
9589 (trace_find_line_command): Ditto.
9590 (trace_find_range_command): Ditto.
9591 (trace_find_outside_command): Ditto.
9592 * tracepoint.h (struct trace_status) <from_file>: Rename it
9593 to "filename" and make it hold the trace file's filename
9594 instead of a boolean.
9595 * remote.c (remote_get_trace_status): Initialize "filename"
9596 field with NULL instead of 0.
9597
9598 2013-02-15 Yao Qi <yao@codesourcery.com>
9599
9600 * remote.c: Fix a typo.
9601
9602 2013-02-14 Pierre Muller <muller@sourceware.org>
9603
9604 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9605
9606 2013-02-14 Pedro Alves <palves@redhat.com>
9607
9608 * utils.c (savestring): Don't #undef it. Move function to
9609 common/common-utils.c.
9610 * common/common-utils.c: Include gdb_string.h.
9611 (savestring): Move here from utils.c.
9612 * common/common-utils.h (savestring): Declare.
9613
9614 2013-02-14 Pedro Alves <palves@redhat.com>
9615
9616 * utils.c (savestring): Rename parameter 'size' to 'len'.
9617
9618 2013-02-14 Pedro Alves <palves@redhat.com>
9619 Yufeng Zhang <yufeng.zhang@arm.com>
9620
9621 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9622 (aarch64_inferior_data, struct aarch64_inferior_data):
9623 Delete.
9624 (struct aarch64_process_info): New.
9625 (aarch64_process_list): New global.
9626 (aarch64_find_process_pid, aarch64_add_process)
9627 (aarch64_process_info_get): New functions.
9628 (aarch64_inferior_data_get): Delete.
9629 (aarch64_process_info_get): New function.
9630 (aarch64_forget_process): New function.
9631 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9632 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9633 aarch64_get_debug_reg_state.
9634 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9635 instead of linux_nat_iterate_watchpoint_lwps.
9636 (aarch64_linux_new_fork): New function.
9637 (aarch64_linux_child_post_startup_inferior): Use
9638 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9639 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9640 (aarch64_linux_remove_hw_breakpoint)
9641 (aarch64_handle_aligned_watchpoint)
9642 (aarch64_handle_unaligned_watchpoint)
9643 (aarch64_linux_insert_watchpoint)
9644 (aarch64_linux_remove_watchpoint)
9645 (aarch64_linux_stopped_data_address): Adjust to pass the current
9646 process id to aarch64_debug_reg_state.
9647 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9648 linux_nat_new_fork hook, and aarch64_forget_process as
9649 linux_nat_forget_process hook; remove the call to
9650 register_inferior_data_with_cleanup.
9651
9652 2013-02-14 Pedro Alves <palves@redhat.com>
9653
9654 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9655 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9656 lval_memory.
9657
9658 2013-02-14 Pedro Alves <pedro@codesourcery.com>
9659 Hafiz Abid Qadeer <abidh@codesourcery.com>
9660
9661 * tracepoint.h (validate_trace_state_variable_name): Declare.
9662 * tracepoint.c (validate_trace_state_variable_name): New.
9663 (trace_variable_command): Parse the trace state variable's name
9664 without using parse_expression. Do several validations.
9665 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9666 trace state variable's name with parse_expression. Validate it.
9667
9668 2013-02-14 Yao Qi <yao@codesourcery.com>
9669
9670 * infcmd.c (breakpoint_proceeded): Remove it.
9671
9672 2013-02-14 Yao Qi <yao@codesourcery.com>
9673
9674 * tracepoint.c (end_actions_pseudocommand): Make it static.
9675 (while_stepping_pseudocommand): Likewise.
9676 * tracepoint.h (end_actions_pseudocommand): Remove the
9677 declaration.
9678 (while_stepping_pseudocommand): Likewise.
9679
9680 2013-02-14 Yao Qi <yao@codesourcery.com>
9681
9682 * cli/cli-decode.c (help_cmd): Remove the declaration of
9683 "cmdlist".
9684 (help_all): Likewise.
9685
9686 2013-02-13 Pedro Alves <palves@redhat.com>
9687
9688 * amd64-linux-nat.c (update_debug_registers_callback):
9689 Update comment.
9690 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9691 iterate_over_lwps.
9692 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9693 i386_debug_reg_state.
9694 (amd64_linux_new_fork): New function.
9695 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9696 linux_nat_new_fork hook, and i386_forget_process as
9697 linux_nat_forget_process hook.
9698 * i386-linux-nat.c (update_debug_registers_callback):
9699 Update comment.
9700 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9701 iterate_over_lwps.
9702 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9703 i386_debug_reg_state.
9704 (i386_linux_new_fork): New function.
9705 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9706 linux_nat_new_fork hook, and i386_forget_process as
9707 linux_nat_forget_process hook.
9708 * i386-nat.c (i386_init_dregs): Delete.
9709 (i386_inferior_data, struct i386_inferior_data):
9710 Delete.
9711 (struct i386_process_info): New.
9712 (i386_process_list): New global.
9713 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9714 New functions.
9715 (i386_inferior_data_get): Delete.
9716 (i386_process_info_get): New function.
9717 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9718 (i386_forget_process): New function.
9719 (i386_cleanup_dregs): Rewrite.
9720 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9721 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9722 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9723 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9724 to i386_debug_reg_state.
9725 (i386_use_watchpoints): Don't register inferior data.
9726 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9727 adjust comment.
9728 (i386_forget_process): Declare.
9729 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9730 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9731 New static globals.
9732 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9733 (add_initial_lwp): New, factored out from ...
9734 (add_lwp): ... this. Don't check the number of lwps before
9735 calling linux_nat_new_thread.
9736 (linux_nat_iterate_watchpoint_lwps): Delete.
9737 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9738 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9739 forks and vforks.
9740 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9741 initial lwp.
9742 (linux_nat_kill, linux_nat_mourn_inferior): Call
9743 linux_nat_forget_process.
9744 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9745 (linux_nat_forget_process): New functions.
9746 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9747 type.
9748 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9749 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9750 types.
9751 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9752 (linux_nat_forget_process): New declarations.
9753
9754 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9755 (amd64fbsd_mourn_inferior): New function.
9756 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9757 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9758
9759 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9760
9761 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9762 Adding _().
9763
9764 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9765
9766 * aarch64-linux-nat.c (debug_reg_change_callback)
9767 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9768 %s and phex().
9769
9770 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9771
9772 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9773 with LONGEST.
9774
9775 2013-02-13 Pedro Alves <palves@redhat.com>
9776 Hafiz Abid Qadeer <abidh@codesourcery.com>
9777
9778 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9779
9780 2013-02-12 Tom Tromey <tromey@redhat.com>
9781
9782 PR symtab/11464:
9783 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9784 NAME return.
9785 (classify_inner_name): Remove 'first_name' argument, add
9786 'context'. Remove unused variable.
9787 (yylex): Explicitly maintain the context type. Exit loop earlier
9788 if NAME result is seen.
9789
9790 2013-02-12 Pedro Alves <palves@redhat.com>
9791
9792 * amd64-darwin-tdep.c: Add (C) after Copyright.
9793 * cli/cli-cmds.h: Ditto.
9794 * cli/cli-decode.c: Ditto.
9795 * cli/cli-decode.h: Ditto.
9796 * cli/cli-dump.c: Ditto.
9797 * cli/cli-dump.h: Ditto.
9798 * cli/cli-interp.c: Ditto.
9799 * cli/cli-logging.c: Ditto.
9800 * cli/cli-script.c: Ditto.
9801 * cli/cli-script.h: Ditto.
9802 * cli/cli-setshow.c: Ditto.
9803 * cli/cli-setshow.h: Ditto.
9804 * cli/cli-utils.c: Ditto.
9805 * cli/cli-utils.h: Ditto.
9806 * config/alpha/nm-osf3.h: Ditto.
9807 * config/djgpp/djconfig.sh: Ditto.
9808 * config/i386/nm-fbsd.h: Ditto.
9809 * config/i386/nm-i386gnu.h: Ditto.
9810 * config/nm-linux.h: Ditto.
9811 * config/nm-nto.h: Ditto.
9812 * config/rs6000/nm-rs6000.h: Ditto.
9813 * config/sparc/nm-sol2.h: Ditto.
9814 * darwin-nat-info.c: Ditto.
9815 * dfp.c: Ditto.
9816 * dfp.h: Ditto.
9817 * gdb-demangle.h: Ditto.
9818 * i386-darwin-nat.c: Ditto.
9819 * i386-darwin-tdep.c: Ditto.
9820 * linux-fork.h: Ditto.
9821 * m32c-tdep.c: Ditto.
9822 * microblaze-linux-tdep.c: Ditto.
9823 * microblaze-rom.c: Ditto.
9824 * microblaze-tdep.c: Ditto.
9825 * microblaze-tdep.h: Ditto.
9826 * mips-linux-tdep.h: Ditto.
9827 * ppc-ravenscar-thread.c: Ditto.
9828 * ppc-ravenscar-thread.h: Ditto.
9829 * prologue-value.c: Ditto.
9830 * prologue-value.h: Ditto.
9831 * ravenscar-thread.c: Ditto.
9832 * ravenscar-thread.h: Ditto.
9833 * sparc-ravenscar-thread.c: Ditto.
9834 * sparc-ravenscar-thread.h: Ditto.
9835 * tilegx-linux-tdep.c: Ditto.
9836 * unwind_stop_reasons.def: Ditto.
9837 * windows-nat.h: Ditto.
9838 * xtensa-linux-tdep.c: Ditto.
9839 * xtensa-xtregs.c: Ditto.
9840 * regformats/regdat.sh: Ditto.
9841 * regformats/regdef.h: Ditto.
9842
9843 2013-02-12 Pedro Alves <palves@redhat.com>
9844
9845 * break-catch-sig.c: Update copyright years.
9846
9847 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9848
9849 Add support for a destructor for ui_out data and use it to
9850 provide a ui_out destructor.
9851 * ui-out.h: Declare the new ui_out destructor.
9852 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9853 * ui-out.c (default_data_destroy): Add a default data destructor
9854 which does nothing.
9855 (default_ui_out_impl): Set the new data_destroy field to
9856 default_data_destroy
9857 (uo_data_destroy): Local function which invokes the data
9858 destructor if present.
9859 (clear_table): Local function which clears the table data of a
9860 ui_out object.
9861 (ui_out_destroy): Public function which frees a ui_out object.
9862 (ui_out_table_end): Use the new clear_table function.
9863 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9864 NULL.
9865 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9866 to NULL.
9867
9868 2013-02-11 Doug Evans <dje@google.com>
9869
9870 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9871 (printf_decfloat): New function. Broken out from ui_printf.
9872 Remove unnecessary code to shift the entire format string down.
9873 (printf_pointer): New function.
9874 (ui_printf): Code to print C strings, wide C strings, decfloats,
9875 and pointers moved to separate functions.
9876
9877 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9878
9879 * valops.c (value_assign): Handling bitfield offset in
9880 `lval_internalvar_component' case.
9881
9882 2013-02-08 Doug Evans <dje@google.com>
9883
9884 * common/format.c (parse_format_string): Fix whitespace.
9885
9886 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9887
9888 * stack.c (return_command): Work around uninitialized variable
9889 warning.
9890
9891 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9892
9893 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9894 number of the registers from 36 to 34.
9895
9896 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9897
9898 * NEWS: Mention new AArch64 native and target support.
9899
9900 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9901
9902 * MAINTAINERS (Write After Approval): Add myself.
9903
9904 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9905 Marcus Shawcroft <marcus.shawcroft@arm.com>
9906 Nigel Stephens <nigel.stephens@arm.com>
9907 Yufeng Zhang <yufeng.zhang@arm.com>
9908
9909 * aarch64-linux-nat.c: New file.
9910 * config/aarch64/linux.mh: New file.
9911 * configure.host: Add AArch64.
9912 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9913
9914 2013-02-07 Doug Evans <dje@google.com>
9915
9916 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9917 disassemble command.
9918
9919 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9920
9921 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9922 set_gdbarch_fetch_tls_load_module_address.
9923
9924 2013-02-06 David S. Miller <davem@davemloft.net>
9925
9926 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9927 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9928 * value.c (struct_return_convention): New function.
9929 (using_struct_return): Implement in terms of struct_return_convention.
9930 * value.h (struct_return_convention): Declare.
9931 * stack.c (return_command): Allow successful overriding of the return
9932 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9933
9934 2013-02-06 Tom Tromey <tromey@redhat.com>
9935
9936 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9937 outside of TRY_CATCH.
9938
9939 2013-02-06 Yao Qi <yao@codesourcery.com>
9940
9941 * mi/mi-interp.c: Include "tracepoint.h".
9942 (mi_tsv_modified): Declare.
9943 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9944 (mi_interpreter_init): Call observer_attach_tsv_modified.
9945 (mi_tsv_modified): New.
9946 (mi_tsv_created, mi_tsv_deleted): Update.
9947 * tracepoint.c (trace_variable_command): Call
9948 observer_notify_tsv_modified if the initial value of tsv is
9949 changed.
9950 (delete_trace_state_variable): Call
9951 observer_notify_tsv_deleted earlier.
9952 (trace_variable_command): Caller update.
9953 (create_tsv_from_upload): Likewise.
9954 * observer.sh: Declare "struct trace_state_variable".
9955
9956 * NEWS: Mention the new MI notification "=tsv-modified".
9957
9958 2013-02-05 Doug Evans <dje@google.com>
9959
9960 * completer.c (location_completer): Fix typo in comment.
9961
9962 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9963
9964 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9965 ADDRESS sorted.
9966
9967 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9968
9969 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9970 Refactor if statement to avoid trailing || operator.
9971
9972 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
9973
9974 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9975
9976 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
9977
9978 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9979 * configure.host: Add powerpc*-*-freebsd* target.
9980 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9981 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9982 * config/powerpc/fbsd.mh: New file.
9983
9984 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9985 Denys Vlasenko <dvlasenk@redhat.com>
9986 Pedro Alves <palves@redhat.com>
9987
9988 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9989 (struct elf_internal_linux_prpsinfo): Forward declare.
9990 * gdbarch.h, gdbarch.c: Regenerate.
9991 * linux-tdep.c: Include `cli/cli-utils.h'.
9992 (linux_fill_prpsinfo): New function.
9993 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9994 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9995 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9996 depending on gdbarch pointer bitness.
9997 * ppc-linux-tdep.c: Include elf-bfd.h.
9998 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9999 on 32-bit.
10000
10001 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10002 Marcus Shawcroft <marcus.shawcroft@arm.com>
10003 Nigel Stephens <nigel.stephens@arm.com>
10004 Yufeng Zhang <yufeng.zhang@arm.com>
10005
10006 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10007
10008 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10009 Marcus Shawcroft <marcus.shawcroft@arm.com>
10010 Nigel Stephens <nigel.stephens@arm.com>
10011 Yufeng Zhang <yufeng.zhang@arm.com>
10012
10013 * aarch64-newlib-tdep.c: New file.
10014 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10015 aarch64*-*-elf.
10016 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10017 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10018 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10019 * osabi.c (gdb_osabi_names): Add "Newlib".
10020
10021 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10022 Marcus Shawcroft <marcus.shawcroft@arm.com>
10023 Nigel Stephens <nigel.stephens@arm.com>
10024 Yufeng Zhang <yufeng.zhang@arm.com>
10025
10026 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10027 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10028 * aarch64-linux-tdep.c: New file.
10029 * aarch64-linux-tdep.h: New file.
10030 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10031 * configure.tgt: Add aarch64-none-linux-gnu.
10032
10033 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10034 Marcus Shawcroft <marcus.shawcroft@arm.com>
10035 Nigel Stephens <nigel.stephens@arm.com>
10036 Yufeng Zhang <yufeng.zhang@arm.com>
10037
10038 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10039 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10040 (ALLDEPFILES): Add aarch64-tdep.c.
10041 * aarch64-tdep.c: New file.
10042 * aarch64-tdep.h: New file.
10043 * configure.tgt: Add AArch64.
10044 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10045 (aarch64-expedite): New definition.
10046 * features/aarch64-core.xml: New file.
10047 * features/aarch64-fpu.xml: New file.
10048 * features/aarch64-without-fpu.c: New file (generated).
10049 * features/aarch64-without-fpu.xml: New file.
10050 * features/aarch64.c: New file (generated).
10051 * features/aarch64.xml: New file.
10052 * regformats/aarch64-without-fpu.dat: New file (generated).
10053 * regformats/aarch64.dat: New file (generated).
10054
10055 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10056
10057 * contrib/expect-read1.c: New file.
10058 * contrib/expect-read1.sh: New file.
10059
10060 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10061
10062 * dwarf2read.c (file_file_name): New function with code from
10063 file_full_name.
10064 (file_full_name): Move most of the code to file_file_name.
10065 (macro_start_file): Rename variable full_name to file_name and use
10066 file_file_name for it. Add comp_dir parameter to new_macro_table.
10067 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10068 macro_source_file->filename access by macro_source_fullname call.
10069 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10070 caller.
10071 * macrotab.c (struct macro_table): New field comp_dir.
10072 (macro_include): New variables link_fullname and source_fullname.
10073 Replace any macro_source_file->filename access by macro_source_fullname
10074 call.
10075 (macro_lookup_inclusion): Remove the partial filenames checking code.
10076 (check_for_redefinition): New variables source_fullname and
10077 found_key_fullname. Replace any macro_source_file->filename access by
10078 macro_source_fullname call.
10079 (macro_undef): New variables source_fullname and key_fullname. Replace
10080 any macro_source_file->filename access by macro_source_fullname call.
10081 (macro_lookup_definition): New variables retval and source_fullname.
10082 Replace any macro_source_file->filename access by macro_source_fullname
10083 call.
10084 (foreach_macro): New variable key_fullname. Replace any
10085 macro_source_file->filename access by macro_source_fullname call.
10086 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10087 macro_source_file->filename access by macro_source_fullname call.
10088 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10089 (macro_source_fullname): New function.
10090 * macrotab.h (struct macro_source_file): Extent the filename field
10091 comment.
10092 (new_macro_table): New parameter comp_dir, add a comment for it.
10093 (macro_source_fullname): new declaration.
10094
10095 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10096
10097 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10098 this_real_name to outer block. Use it also for
10099 compare_filenames_for_search.
10100 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10101 with dw2_get_real_path for file_matcher, considering also
10102 BASENAMES_MAY_DIFFER.
10103 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10104
10105 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10106
10107 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10108 to the file_matcher parameter. Pass 0 to it.
10109 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10110 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10111 NULL psymtab_to_fullname result.
10112 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10113 an expected filename instead.
10114 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10115 file_matcher parameter. Call also psymtab_to_fullname, after newly
10116 considering BASENAMES_MAY_DIFFER.
10117 * source.c (rewrite_source_path): Remove static.
10118 * source.h (rewrite_source_path): New declaration.
10119 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10120 the expand_symtabs_matching field. Comment it.
10121 * symtab.c (file_matches): New function comment. Add parameter
10122 basenames, implement it.
10123 (search_symbols_file_matches): Add basenames parameter. Update the
10124 file_matches caller.
10125 (search_symbols): Match FILES also against symtab_to_fullname.
10126 Optimize it for BASENAMES_MAY_DIFFER.
10127
10128 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10129
10130 * source.c (print_source_lines_base): Print for TUI also "fullname".
10131 * tui/tui-data.c (init_content_element): Change tui_locator_element
10132 field to full_name.
10133 * tui/tui-data.h (struct tui_locator_element): Likewise.
10134 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10135 tui_update_locator_filename calls to tui_update_locator_fullname.
10136 Replace symtab->filename refererence by symtab_to_fullname call.
10137 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10138 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10139 field to full_name. Replace symtab->filename refererence by
10140 symtab_to_fullname call.
10141 (tui_show_symtab_source): Rename parameter to fullname. Change
10142 tui_locator_element field to full_name.
10143 * tui/tui-stack.c: Include source.h.
10144 (tui_set_locator_filename): Rename the declaration to ...
10145 (tui_set_locator_fullname): ... here. Rename its parameter to
10146 fullname, updates its comment.
10147 (tui_set_locator_info): Rename its parameter to fullname.
10148 (tui_set_locator_filename): Rename the definition to ...
10149 (tui_set_locator_fullname): ... here. Rename its parameter to
10150 fullname, updates its comment. Change tui_locator_element field to
10151 full_name.
10152 (tui_set_locator_info): Rename its parameter to fullname.
10153 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10154 (tui_update_locator_filename): Rename to ...
10155 (tui_update_locator_fullname): ... here. Rename callee to
10156 tui_set_locator_fullname.
10157 (tui_show_frame_info): Replace symtab->filename refererence by
10158 symtab_to_fullname call.
10159 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10160 (tui_update_locator_fullname): ... here.
10161 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10162 tui_update_locator_fullname. Replace symtab->filename refererence by
10163 symtab_to_fullname call.
10164 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10165 Rename the callee to tui_update_locator_fullname.
10166 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10167
10168 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10169
10170 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10171 by symtab_to_filename_for_display calls.
10172 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10173 (clear_command): New variable sal_fullname, initialize it. Replace
10174 compare_filenames_for_search by filename_cmp with sal_fullname.
10175 (say_where, update_static_tracepoint): Replace symtab->filename
10176 refererences by symtab_to_filename_for_display calls.
10177 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10178 Likewise.
10179 * dwarf2read.c: Include source.h.
10180 (fixup_go_packaging): Replace symtab->filename refererences by
10181 symtab_to_filename_for_display calls.
10182 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10183 Replace symtab->filename refererences by symtab_to_filename_for_display
10184 calls.
10185 (create_sals_line_offset, convert_linespec_to_sals): New variable
10186 fullname, initialize it, replace symtab->filename reference by the
10187 variable.
10188 * linux-fork.c: Include source.h.
10189 (info_checkpoints_command): Replace symtab->filename refererences by
10190 symtab_to_filename_for_display calls.
10191 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10192 by symtab_to_filename_for_display calls.
10193 * mdebugread.c: Include source.h.
10194 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10195 symtab_to_filename_for_display calls.
10196 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10197 (mi_cmd_file_list_exec_source_files): Likewise.
10198 * printcmd.c: Include source.h.
10199 (build_address_symbolic): Replace symtab->filename refererences by
10200 symtab_to_filename_for_display calls.
10201 * psymtab.c (partial_map_symtabs_matching_filename)
10202 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10203 with psymtab_to_fullname.
10204 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10205 by symtab_to_filename_for_display calls.
10206 (stpy_get_filename): New variable filename, initialize it, use instead
10207 of symtab->filename refererences.
10208 (salpy_str): Make variable filename const char *. Replace
10209 symtab->filename refererences by symtab_to_filename_for_display calls.
10210 * skip.c: Include source.h and filenames.h.
10211 (skip_file_command): Remove const from the symtab variable. Replace
10212 symtab->filename refererences by symtab_to_fullname call.
10213 (function_name_is_marked_for_skip): New variables searched_for_fullname
10214 and fullname. Use them to search also with symtab's fullname.
10215 * source.c (find_source_lines): Replace symtab->filename refererences
10216 by symtab_to_filename_for_display calls.
10217 (print_source_lines_base): New variable filename, use it instead of
10218 symtab->filename. Replace symtab->filename refererences by
10219 symtab_to_filename_for_display calls.
10220 (line_info, forward_search_command): Replace symtab->filename
10221 refererences by symtab_to_filename_for_display calls.
10222 (reverse_search_command): Replace symtab->filename refererences by
10223 symtab_to_filename_for_display calls. New variable filename for it.
10224 * stack.c (frame_info): Likewise.
10225 * symmisc.c: Include source.h.
10226 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10227 (maintenance_info_symtabs): Replace symtab->filename refererences by
10228 symtab_to_filename_for_display calls.
10229 * symtab.c (iterate_over_some_symtabs): Call
10230 compare_filenames_for_search also with symtab_to_fullname.
10231 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10232 symtab->filename refererences by symtab_to_filename_for_display calls.
10233 (find_line_symtab): Replace symtab->filename refererences by
10234 symtab_to_filename_for_display calls.
10235 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10236 (print_symbol_info): Make the last parameter const char *. New
10237 variable s_filename. Use it in the function.
10238 (symtab_symbol_info): Make the last_filename variable const char *.
10239 Replace symtab->filename refererences by symtab_to_filename_for_display
10240 calls.
10241 (rbreak_command): New variable fullname. Use it. Replace
10242 symtab->filename refererence by symtab_to_filename_for_display call.
10243 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10244 (print_one_static_tracepoint_marker): Replace symtab->filename
10245 refererences by symtab_to_filename_for_display calls.
10246 * tui/tui-source.c (tui_set_source_content): New variables filename and
10247 s_filename. Replace symtab->filename refererences by this variable.
10248 Replace other symtab->filename refererences by
10249 symtab_to_filename_for_display calls.
10250
10251 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10252 Jan Kratochvil <jan.kratochvil@redhat.com>
10253
10254 Add a new variable that controls a way in which filenames are
10255 displayed.
10256 * NEWS (set filename-display): New entry.
10257 * source.c (filename_display_basename, filename_display_relative)
10258 (filename_display_absolute, filename_display_kind_names)
10259 (filename_display_string, show_filename_display_string)
10260 (symtab_to_filename_for_display): New.
10261 (_initialize_source): Added initialization of 'filename-display'
10262 variable.
10263 * source.h (symtab_to_filename_for_display): Added declaration.
10264 * stack.c (print_frame): Added new variable and calling of a new
10265 function and condition with this variable. Changed third argument of
10266 calling of a function.
10267
10268 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10269
10270 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10271 Rename field reference filename to fullname.
10272 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10273 fullname. New comment for it.
10274 * tui/tui-source.c (tui_set_source_content): Rename field reference
10275 filename to fullname. Initialize field by symtab_to_fullname now.
10276 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10277 reference filename to fullname. Use symtab_to_fullname during
10278 comparison.
10279
10280 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10281
10282 Code cleanup.
10283 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10284 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10285 filename to fullname. Rename variable this_name to this_fullname.
10286 Lowercase FILENAME_CMP call.
10287 (dw2_find_symbol_file): New comment for the returned string.
10288 (dwarf2_gdb_index_functions): Rename the function to
10289 dw2_expand_symtabs_with_fullname.
10290 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10291 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10292 fullname.
10293 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10294 * symfile.h (struct quick_symbol_functions): Rename field
10295 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10296 parameter filename to fullname. Document returned string meaning for
10297 find_symbol_file.
10298 * symtab.c (find_line_symtab): Rename the called function to
10299 expand_symtabs_with_fullname.
10300
10301 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10302
10303 Code cleanup.
10304 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10305 call of filename_cmp with compare_filenames_for_search.
10306 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10307 is_abs, unify the call of FILENAME_CMP with
10308 compare_filenames_for_search. New gdb_asserts for real_path and name.
10309 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10310 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10311 * symfile.h (struct quick_symbol_functions): Extend the comment for
10312 map_symtabs_matching_filename.
10313 * symtab.c (compare_filenames_for_search): Remove the function comment
10314 relative path requirement. Handle absolute filenames, with a comment.
10315 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10316 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10317 real_path and name. Unify the call of compare_filenames_for_search
10318 with FILENAME_CMP.
10319 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10320
10321 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10322
10323 Code cleanup.
10324 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10325 source_file references by symtab field references. Remove variables
10326 sal and fullname.
10327 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10328 (clear_command, say_where): Replace bp_location field source_file
10329 references by symtab field references.
10330 (bp_location_dtor): Remove the source_file reference.
10331 (update_static_tracepoint): Replace bp_location field source_file
10332 references by symtab field references.
10333 (breakpoint_free_objfile): New function.
10334 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10335 Replace the field source_file by field symtab, extend its comment.
10336 (breakpoint_free_objfile): New declaration.
10337 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10338 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10339 field source_file references by symtab field references.
10340
10341 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10342
10343 Replace xfullpath calls by gdb_realpath calls.
10344 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10345 function comment.
10346 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10347 Remove it from the iterate_over_some_symtabs call.
10348 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10349 Remove it from the dw2_map_expand_apply calls, remove a block handling
10350 it.
10351 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10352 Remove it from the iterate_over_some_symtabs call.
10353 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10354 Remove it from the partial_map_expand_apply calls, remove a block
10355 handling it. Drop gdb_realpath call and cleanups from the real_path
10356 handling.
10357 * source.c (openp): Drop the comment part about xfullpath. Replace
10358 xfullpath calls by gdb_realpath calls.
10359 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10360 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10361 from method map_symtabs_matching_filename and its comment.
10362 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10363 gdb_realpath call.
10364 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10365 remove it also from the function comment, remove a block handling it.
10366 Drop gdb_realpath call and cleanups from the real_path handling.
10367 (iterate_over_symtabs): Drop variable full_path and its use.
10368 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10369 * utils.c (xfullpath): Remove.
10370 * utils.h (xfullpath): Remove.
10371
10372 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10373
10374 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10375 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10376 (ALLDEPFILES): Add ppc64-tdep.c.
10377 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10378 ppc64-tdep.o to gdb_target_obs.
10379 * ppc64-tdep.h: New file.
10380 * ppc64-tdep.c: New file.
10381 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10382 ppc-linux-tdep.c to here.
10383 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10384 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10385 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10386 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10387 from ppc-linux-tdep.c to here.
10388 (ppc64_convert_from_func_ptr_addr): Rename from
10389 ppc64_linux_convert_from_func_ptr_addr to
10390 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10391 here.
10392 * rs6000-tdep.c:
10393 (read_insn): Move from ppc-linux-tdep.c to here.
10394 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10395 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10396 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10397 Removed above functions.
10398 (ppc_linux_init_abi): Adjust.
10399
10400 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10401
10402 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10403
10404 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10405
10406 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10407
10408 2013-02-01 Pedro Alves <palves@redhat.com>
10409
10410 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10411 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10412
10413 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10414
10415 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10416 files with no separate debug info.
10417 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10418 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10419 only for files with no separate debug info.
10420
10421 2013-01-31 Tom Tromey <tromey@redhat.com>
10422
10423 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10424 change type.
10425 (struct jit_program_space_data): Rename from jit_inferior_data.
10426 Update comments.
10427 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10428 Change return type. Attach data to program space.
10429 (jit_program_space_data_cleanup): Rename from
10430 jit_inferior_data_cleanup; change argument type.
10431 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10432 change type.
10433 (jit_register_code): Update.
10434 (jit_update_inferior_cache): Remove.
10435 (jit_breakpoint_deleted): Get jit data from the location's program
10436 space.
10437 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10438 'ps_data', change type.
10439 (jit_inferior_init, jit_breakpoint_re_set_internal)
10440 (jit_event_handler): Update.
10441 (free_objfile_data): Get data from objfile's program space.
10442 (_initialize_jit): Update.
10443
10444 2013-01-31 Tom Tromey <tromey@redhat.com>
10445
10446 PR gdb/13987:
10447 * jit.c (struct jit_inferior_data) <cached_code_address,
10448 jit_breakpoint>: New fields.
10449 (jit_breakpoint_re_set_internal): Fix logging. Only create
10450 breakpoint if cached address has changed.
10451 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10452 functions.
10453 (_initialize_jit): Register breakpoint deleted observer.
10454
10455 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10456
10457 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10458 (save_infcall_suspend_state): Ifdef out unused inf.
10459 (restore_infcall_suspend_state): Ifdef out unused inf.
10460 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10461 (jit_frame_sniffer): Remove unused inf_data.
10462
10463 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10464
10465 * c-exp.y (classify_inner_name): Remove unused type.
10466 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10467 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10468 need_escape.
10469 (c_get_string): Remove unused kind.
10470 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10471
10472 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10473
10474 * charset.c (intermediate_encoding): Remove unused i.
10475 * completer.c (signal_completer): Remove unused i.
10476 * continuations.c (discard_my_continuations_1): Remove unused
10477 continuation_ptr.
10478 * corelow.c (core_close): Remove unuseD name.
10479 (get_core_siginfo): Remove unused pid.
10480 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10481 i, cps.
10482 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10483 (loclist_describe_location): Remove unused first.
10484 * event-top.c (command_line_handler): Remove unused got_eof.
10485 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10486 (resize_section_table): Remove unused old_value.
10487 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10488 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10489 * i386-tdep.c (i386_process_record): Remove unused rex.
10490 * infcmd.c (get_return_value): Remove unused uiout.
10491 * jv-lang.c (type_from_class): Remove unused is_array.
10492 * jv-valprint.c (java_val_print): Remove unused i.
10493 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10494 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10495 * m2-typeprint.c (m2_print_type): Remove unused code.
10496 * macroexp.c (get_character_constant): Remove unused body_start.
10497 (macro_stringify): Remove unused result.
10498 * objc-lang.c (find_methods): Remove unused gdbarch.
10499 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10500 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10501 * stack.c (print_frame_args): Remove unused summary.
10502 * thread.c (thread_apply_command): Remove unused p.
10503 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10504 * valops.c (search_struct_method): Remove unused skip.
10505 * valprint.c (generic_val_print): Remove unused byte_order.
10506 * varobj.c (varobj_update): Remove unused changed.
10507 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10508 (alias_command): Remove unused c.
10509 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10510 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10511 format.
10512 (mi_cmd_data_write_memory): Remove unused word_format.
10513 (mi_cmd_data_write_memory_bytes): Remove unused r.
10514 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10515 p_start, p_end.
10516 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10517 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10518 line_width.
10519
10520 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10521
10522 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10523 * symtab.c (iterate_over_symtabs): Remove unused s.
10524 (find_pc_sect_symtab): Remove unused pspAce.
10525 (find_pc_sect_line): Remove unused alt_symtab.
10526 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10527 (completion_list_add_name): Remove unused newsize.
10528
10529 2013-01-31 Tom Tromey <tromey@redhat.com>
10530
10531 PR c++/14998:
10532 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10533 TYPE_CODE_FUNC.
10534
10535 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10536
10537 * target.c (target_read_string): Remove unused origlen.
10538
10539 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10540
10541 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10542 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10543 * ax-general.c (ax_print): Remove unused is_float.
10544 * blockframe.c (block_innermost_frame): Remove unused start, end.
10545 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10546
10547 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10548
10549 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10550 (svr4_read_so_list): Remove unused lmo.
10551 * solib-target.c (solib_target_relocate_section_addresses): Remove
10552 unused flags.
10553
10554 2013-01-30 Tom Tromey <tromey@redhat.com>
10555
10556 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10557
10558 2013-01-30 Tom Tromey <tromey@redhat.com>
10559
10560 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10561 * utils.c (gnu_debuglink_crc32): Remove.
10562 * utils.h (gnu_debuglink_crc32): Don't declare.
10563
10564 2013-01-30 Tom Tromey <tromey@redhat.com>
10565
10566 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10567 (read_structure_type, read_enumeration_type): Remove cast.
10568
10569 2013-01-30 Tom Tromey <tromey@redhat.com>
10570
10571 * dwarf2read.c (read_namespace_type): Remove cast.
10572 (read_typedef): Likewise.
10573
10574 2013-01-29 Tom Tromey <tromey@redhat.com>
10575
10576 * dwarf2read.c (free_dwo_file): Remove assert.
10577
10578 2013-01-29 Tom Tromey <tromey@redhat.com>
10579
10580 * value.c (deprecated_set_value_modifiable): Remove.
10581 * value.h (deprecated_set_value_modifiable): Remove.
10582
10583 2013-01-28 Doug Evans <dje@google.com>
10584
10585 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10586 to addresses from dwo files.
10587
10588 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10589
10590 * valops.c (find_overload_match): Remove unused argument 'lax'.
10591 * value.h: Remove unused argument 'lax' from the declaration of
10592 find_overload_match.
10593 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10594 to find_overload_match.
10595 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10596 argument to find_overload_match.
10597
10598 2013-01-25 Tom Tromey <tromey@redhat.com>
10599
10600 * dwarf2read.c (processing_has_namespace_info): Remove.
10601 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10602 (process_die, read_func_scope, dwarf2_start_symtab)
10603 (new_symbol_full): Update.
10604
10605 2013-01-25 Tom Tromey <tromey@redhat.com>
10606
10607 * cp-namespace.c (cp_set_block_scope): Remove.
10608 * cp-support.h (cp_set_block_scope): Remove.
10609 * dbxread.c: Include block.h.
10610 (cp_set_block_scope): New function.
10611 (process_one_symbol): Update.
10612 * dwarf2read.c (read_func_scope): Use block_set_scope.
10613
10614 2013-01-25 Pedro Alves <palves@redhat.com>
10615
10616 * remote.c (add_current_inferior_and_thread): Tweak comment.
10617
10618 2013-01-25 Tom Tromey <tromey@redhat.com>
10619
10620 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10621 (cp_add_using_directive): Add 'copy_names' argument.
10622 * cp-support.h (cp_add_using_directive): Update.
10623 (struct using_direct) <import_src, import_dest, alias,
10624 declaration>: Now const.
10625 * dwarf2read.c (read_import_statement): Use obconcat.
10626 Don't copy names passed to cp_add_using_directive.
10627
10628 2013-01-25 Tom Tromey <tromey@redhat.com>
10629
10630 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10631
10632 2013-01-25 Pedro Alves <palves@redhat.com>
10633
10634 * remote.c (stop_reply_extract_thread): New.
10635 (add_current_inferior_and_thread): New parameter 'wait_status'.
10636 Handle it.
10637 (remote_start_remote): Pass wait status to
10638 add_current_inferior_and_thread.
10639 (extended_remote_run): Update comment.
10640 (extended_remote_create_inferior_1): Pass wait status to
10641 add_current_inferior_and_thread.
10642
10643 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
10644 Ulrich Weigand <uweigand@de.ibm.com>
10645
10646 * valarith.c (value_vector_widen): New function for replicating a
10647 scalar into a vector.
10648 (value_binop): Use value_vector_widen to widen scalar to vector
10649 rather than casting, this better matches gcc C behaviour.
10650 * valops.c (value_casst): Update logic for casting between vector
10651 types, and for casting from scalar to vector, try to match gcc C
10652 behaviour.
10653 * value.h (value_vector_widen): Declare.
10654 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10655 function, handle special case for casting scalar to vector.
10656 (opencl_relop): Use opencl_value_cast.
10657 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10658 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10659 in order to use opencl_value_cast.
10660
10661 2013-01-25 Yao Qi <yao@codesourcery.com>
10662
10663 * event-loop.c: Include "queue.h".
10664 (gdb_event_p): New typedef.
10665 (DECLARE_QUEUE_P): Use.
10666 (DEFINE_QUEUE_P): Use.
10667 (async_queue_event): Remove.
10668 (gdb_event_xfree): New.
10669 (initialize_event_loop): New.
10670 (process_event): Use QUEUE macros.
10671 (event_queue): Remove.
10672 (gdb_wait_for_event): Caller update.
10673 (check_async_event_handlers): Likewise.
10674 (poll_timers): Likewise.
10675 * event-loop.h (initialize_event_loop): Declare.
10676 * event-loop.c (gdb_event_xfree): New.
10677 * top.c (gdb_init): Call initialize_event_loop.
10678
10679 2013-01-25 Yao Qi <yao@codesourcery.com>
10680
10681 * event-loop.c (async_queue_event): Remove one parameter
10682 'position'. Remove code handling 'position' == TAIL.
10683 (gdb_wait_for_event): Caller update.
10684 (check_async_event_handlers): Caller update.
10685 (poll_timers): Caller update.
10686 * event-loop.h (enum queue_position): Remove.
10687
10688 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10689
10690 * MAINTAINERS: Update my email.
10691
10692 2013-01-25 Yao Qi <yao@codesourcery.com>
10693
10694 * main.c (print_gdb_help): Remove "--epoch" from the help
10695 message.
10696
10697 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10698
10699 * symtab.c (skip_prologue_using_sal): Consider a file
10700 change the same as an increased line number
10701
10702 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10703
10704 * MAINTAINERS (Write After Approval): Add myself to the list.
10705
10706 2013-01-24 Tom Tromey <tromey@redhat.com>
10707
10708 * ada-lang.h (ada_decode_symbol): Make return type const.
10709 * ada-lang.c (ada_decode_symbol): Likewise.
10710
10711 2013-01-23 Doug Evans <dje@google.com>
10712
10713 * linespec.c (find_linespec_symbols): Make static.
10714
10715 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10716
10717 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10718 type on float conversion for complex type.
10719
10720 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10721
10722 Add a new class gdb.Architecture which exposes GDB's
10723 internal representation of architecture via GDB Python API.
10724 * Makefile.in: Add entries corresponding to the new file
10725 python/py-arch.c.
10726 * NEWS (Python Scripting): Add entries for the new class
10727 gdb.Architecture and the new method gdb.Frame.architecture.
10728 * python/py-arch.c: Implement gdb.Architecture class.
10729 * python/py-frame.c (frapy_arch): Implement the method
10730 gdb.Frame.architecture().
10731 (frame_object_methods): Add 'architecture' to the method table.
10732 * python/python-internal.h: Add declarations of new utility
10733 functions.
10734 * python/python.c (_initialize_python): Initialize
10735 gdb.Architecture class.
10736
10737 2013-01-23 Doug Evans <dje@google.com>
10738
10739 Work around binutils/15021.
10740 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10741 type_unit_group out of union s. All uses updated.
10742 (read_index_from_section): Watch for index version 8.
10743 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10744 an imported symtab.
10745 (write_psymtabs_to_index): Increment version number to 8.
10746
10747 2013-01-22 Pedro Alves <palves@redhat.com>
10748
10749 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10750 user-visible.
10751
10752 2013-01-22 Pedro Alves <palves@redhat.com>
10753
10754 * annotate.c (annotate_breakpoints_changed): Rename to ...
10755 (annotate_breakpoints_invalid): ... this. Make static.
10756 (breakpoint_changed): Adjust.
10757 (_initialize_annotate): Always install the observers. Install a
10758 "breakpoint_created" observer.
10759 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10760 * breakpoint.c (set_breakpoint_condition)
10761 (breakpoint_set_commands, do_map_commands_command)
10762 (init_raw_breakpoint, clear_command, set_ignore_count)
10763 (enable_breakpoint_disp): No longer call
10764 annotate_breakpoints_changed.
10765
10766 2013-01-22 Pedro Alves <palves@redhat.com>
10767
10768 * annotate.c: Include "inferior.h".
10769 (frames_invalid_emitted)
10770 (breakpoints_invalid_emitted): New globals.
10771 (async_background_execution_p): New function.
10772 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10773 emitting the annotation if it has already been emitted.
10774 (annotate_display_prompt): New function.
10775 * annotate.h (annotate_display_prompt): New declaration.
10776 * event-top.c: Include annotate.h.
10777 (display_gdb_prompt): Call annotate_display_prompt.
10778
10779 2013-01-22 Pedro Alves <palves@redhat.com>
10780
10781 * annotate.c (ignore_count_changed): Delete.
10782 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10783 (annotate_ignore_count_change): Delete.
10784 (annotate_stopped): Don't emit a delayed breakpoints-changed
10785 annotation.
10786 * annotate.h (annotate_ignore_count_change): Delete.
10787 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10788 annotate_ignore_count_change.
10789
10790 2013-01-22 Tom Tromey <tromey@redhat.com>
10791
10792 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10793 require_rvalue for a register location.
10794
10795 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10796
10797 * breakpoint.c (print_one_breakpoint_location): Add MI
10798 field 'thread-groups' when printing a breakpoint.
10799 (output_thread_groups): New function.
10800
10801 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10802
10803 * python/lib/gdb/commands/explore.py
10804 (CompoundExplorer.explore_expr): Correct the name of a method
10805 being invoked.
10806 (ExploreTypeCommand.invoke): Add a missing 'return'.
10807
10808 2013-01-21 Tom Tromey <tromey@redhat.com>
10809
10810 * gdb_obstack.h (obconcat): Move declaration here, from...
10811 * symfile.h (obconcat): ... here.
10812 * gdb_obstack.c: New file.
10813 (obconcat): Move from...
10814 * symfile.c (obconcat): ... here.
10815 * Makefile.in (SFILES): Add gdb_obstack.c.
10816 (COMMON_OBS): Add gdb_obstack.o.
10817
10818 2013-01-21 Tom Tromey <tromey@redhat.com>
10819
10820 * symfile.h (obsavestring): Don't declare.
10821 * symfile.c (obsavestring): Remove.
10822 * ada-exp.y: Use obstack_copy0, not obsavestring.
10823 * ada-lang.c: Use obstack_copy0, not obsavestring.
10824 * coffread.c: Use obstack_copy0, not obsavestring.
10825 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10826 * dbxread.c: Use obstack_copy0, not obsavestring.
10827 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10828 * jit.c: Use obstack_copy0, not obsavestring.
10829 * mdebugread.c: Use obstack_copy0, not obsavestring.
10830 * psymtab.c: Use obstack_copy0, not obsavestring.
10831 * stabsread.c: Use obstack_copy0, not obsavestring.
10832 * xcoffread.c: Use obstack_copy0, not obsavestring.
10833
10834 2013-01-21 Tom Tromey <tromey@redhat.com>
10835
10836 * dwarf2read.c (fixup_go_packaging): Save package name
10837 on objfile obstack.
10838 * gdbtypes.c (init_type): Don't copy name.
10839
10840 2013-01-21 Tom Tromey <tromey@redhat.com>
10841
10842 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10843 const.
10844 (struct attribute) <u.str>: Now const.
10845 (struct fnfieldlist) <name>: Now const.
10846 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10847 (partial_die_parent_scope): Make return type const.
10848 (partial_die_full_name, add_partial_symbol): Update.
10849 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10850 'name' const.
10851 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10852 (read_file_scope, read_func_scope, dwarf2_add_field)
10853 (dwarf2_add_member_fn, read_structure_type)
10854 (process_enumeration_scope, read_array_type, read_module_type)
10855 (read_base_type, read_subrange_type): Update.
10856 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10857 (new_symbol_full, guess_full_die_structure_name): Update.
10858 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10859 (dwarf2_name): Return const type.
10860 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10861 const.
10862
10863 2013-01-21 Tom Tromey <tromey@redhat.com>
10864
10865 * gdbtypes.c (init_type): Make 'name' const.
10866 * gdbtypes.h (init_type): Update.
10867
10868 2013-01-21 Tom Tromey <tromey@redhat.com>
10869
10870 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10871 (start_symtab): Make 'name' and 'dirname' const. Use
10872 set_last_source_file.
10873 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10874 (last_source_file): Define. Now static.
10875 (set_last_source_file, get_last_source_file): New functions.
10876 * buildsym.h (last_source_file): Don't declare.
10877 (start_symtab): Update.
10878 (set_last_source_file, get_last_source_file): Declare.
10879 * coffread.c (complete_symtab): Use set_last_source_file.
10880 (coff_end_symtab): Likewise.
10881 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10882 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10883 set_last_source_file.
10884 (process_one_symbol): Use get_last_source_file.
10885 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10886 (psymtab_to_symtab_1): Use get_last_source_file.
10887 * xcoffread.c (process_linenos): Use get_last_source_file.
10888 (complete_symtab): Use set_last_source_file.
10889 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10890 (scan_xcoff_symtab): Use set_last_source_file.
10891
10892 2013-01-21 Tom Tromey <tromey@redhat.com>
10893
10894 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10895 (symbol_set_names): Remove casts. Handle field const-ness.
10896
10897 2013-01-21 Tom Tromey <tromey@redhat.com>
10898
10899 * dwarf2read.c (new_symbol_full): Remove cast.
10900 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10901 * symtab.h (symbol_set_demangled_name): Update.
10902
10903 2013-01-21 Tom Tromey <tromey@redhat.com>
10904
10905 * main.c (captured_main): Call bfd_init.
10906
10907 2013-01-21 Tom Tromey <tromey@redhat.com>
10908
10909 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10910 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10911 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10912 * NEWS: Update.
10913
10914 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10915
10916 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10917
10918 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10919
10920 Fix gdb.fortran/common-block.exp crash in PIE mode.
10921 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10922 LOC_COMMON_BLOCK.
10923 * f-valprint.c (info_common_command_for_block): Expect
10924 LOC_COMMON_BLOCK in gdb_assert.
10925 * symtab.h (struct general_symbol_info): Update comment for the
10926 common_block member.
10927 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10928 (enum address_class): New member LOC_COMMON_BLOCK.
10929
10930 2013-01-18 David Blaikie <dblaikie@gmail.com>
10931
10932 * MAINTAINERS (Write After Approval): Add "David Blaikie".
10933
10934 2013-01-18 Tom Tromey <tromey@redhat.com>
10935
10936 PR c++/14999:
10937 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10938 Call require_rvalue.
10939
10940 2013-01-18 Yao Qi <yao@codesourcery.com>
10941
10942 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10943 (dbx_read_symtab): New declaration.
10944 (dbx_psymtab_to_symtab): Delete.
10945 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10946 Rename parameter PST to SELF. Exchanged two parameters.
10947 (start_psymtab): Caller update.
10948 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10949 (dwarf2_read_symtab): New declaration.
10950 (dwarf2_psymtab_to_symtab): Delete.
10951 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10952 Rename parameter PST to SELF. Exchanged two parameters.
10953 (create_partial_symtab): Caller update.
10954 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10955 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10956 Rename parameter PST to SELF. Exchanged two parameters.
10957 (parse_partial_symbols, new_psymtab): Caller update.
10958 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10959 two parameters.
10960 * psymtab.c (psymtab_to_symtab): Caller update.
10961 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10962 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10963 Rename parameter PST to SELF. Exchanged two parameters.
10964 (xcoff_start_psymtab): Caller update.
10965
10966 2013-01-18 Yao Qi <yao@codesourcery.com>
10967
10968 * infrun.c (proceed): Rename local variable 'oneproc' to
10969 'force_step'.
10970
10971 2013-01-17 Doug Evans <dje@google.com>
10972
10973 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10974 (dw2_build_type_unit_groups): Delete. All uses updated.
10975
10976 * symtab.h (struct symbol_search): Add comment.
10977
10978 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10979
10980 * symtab.c (compare_filenames_for_search): New comment for
10981 HAS_DRIVE_SPEC.
10982
10983 2013-01-17 Tom Tromey <tromey@redhat.com>
10984
10985 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10986
10987 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10988
10989 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10990 initialize it by existing make_cleanup. Call new do_cleanups.
10991
10992 2013-01-17 Tom Tromey <tromey@redhat.com>
10993
10994 * cp-abi.c (cp_abi_completer): New function.
10995 (_initialize_cp_abi): Set completer for "set cp-abi".
10996
10997 2013-01-17 Tom Tromey <tromey@redhat.com>
10998
10999 * mem-break.c: Remove obsolete comment.
11000 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11001
11002 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11003
11004 * jit.c (jit_reader_load_command): Interpret the jit reader name
11005 as an absolute path if it begins with a forward slash.
11006
11007 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11008
11009 PR gdb/14550
11010
11011 * jit.c (finalize_symtab): Ensure that only the global block has a
11012 NULL superblock.
11013
11014 2013-01-17 Pedro Alves <palves@redhat.com>
11015
11016 * acinclude.m4: Include ../config/plugins.m4,
11017 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11018 * Makefile.in (aclocal_m4_deps): Update.
11019 * aclocal.m4: Renegerate.
11020
11021 2013-01-16 Doug Evans <dje@google.com>
11022
11023 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11024
11025 2013-01-16 Pedro Alves <palves@redhat.com>
11026 Tom Tromey <tromey@redhat.com>
11027
11028 PR cli/7221:
11029 * NEWS: Add "catch signal".
11030 * breakpoint.c (base_breakpoint_ops): No longer static.
11031 (bpstat_explains_signal): New function.
11032 (init_catchpoint): No longer static.
11033 (base_breakpoint_explains_signal): New function.
11034 (base_breakpoint_ops): Initialize new field.
11035 * breakpoint.h (enum bpstat_signal_value): New.
11036 (struct breakpoint_ops) <explains_signal>: New field.
11037 (bpstat_explains_signal): Remove macro, declare as function.
11038 (base_breakpoint_ops, init_catchpoint): Declare.
11039 * break-catch-sig.c: New file.
11040 * inferior.h (signal_catch_update): Declare.
11041 * infrun.c (signal_catch): New global.
11042 (handle_syscall_event): Update for change to
11043 bpstat_explains_signal.
11044 (handle_inferior_event): Likewise. Always handle random signals
11045 via bpstats.
11046 (signal_cache_update): Check signal_catch.
11047 (signal_catch_update): New function.
11048 (_initialize_infrun): Initialize signal_catch.
11049 * Makefile.in (SFILES): Add break-catch-sig.c.
11050 (COMMON_OBS): Add break-catch-sig.o.
11051
11052 2013-01-16 Tom Tromey <tromey@redhat.com>
11053
11054 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11055 (print_one_catch_solib, print_one_catch_syscall)
11056 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11057 "catch-type".
11058
11059 2013-01-16 Yao Qi <yao@codesourcery.com>
11060
11061 * printcmd.c (current_display_number): Make it static.
11062
11063 2013-01-16 Yao Qi <yao@codesourcery.com>
11064
11065 * infcmd.c (step_once): Don't check '!single_inst' as it was
11066 checked before.
11067
11068 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11069
11070 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11071
11072 2013-01-14 Tom Tromey <tromey@redhat.com>
11073
11074 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11075 set command.
11076 * command.h (add_setshow_string_noescape_cmd): Update.
11077 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11078 (complete_set_gnutarget): New function.
11079 (_initialize_core): Set the "set gnutarget" completer.
11080
11081 2013-01-14 Tom Tromey <tromey@redhat.com>
11082
11083 PR symtab/14442:
11084 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11085 (c_type_print_modifier): Likewise.
11086 * dwarf2read.c (read_tag_restrict_type): New function.
11087 (read_type_die_1): Handle DW_TAG_restrict_type.
11088 * gdbtypes.c (make_restrict_type): New function.
11089 (recursive_dump_type): Handle TYPE_RESTRICT.
11090 * gdbtypes.h (enum type_flag_values): Renumber.
11091 (enum type_instance_flag_value): Add
11092 TYPE_INSTANCE_FLAG_RESTRICT.
11093 (TYPE_RESTRICT): New macro.
11094 (make_restrict_type): Declare.
11095
11096 2013-01-14 Tom Tromey <tromey@redhat.com>
11097
11098 PR symtab/14931:
11099 * psymtab.c (struct psymtab_state): New.
11100 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11101 functions.
11102 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11103 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11104
11105 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
11106 Pedro Alves <palves@redhat.com>
11107
11108 PR remote/14786
11109
11110 * remote.c (remote_threads_info): Make a copy of the reply from
11111 qfThreadInfo and use that instead of rs->buf.
11112
11113 2013-01-14 Yao Qi <yao@codesourcery.com>
11114
11115 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11116 (dbx_psymtab_to_symtab): Likewise.
11117 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11118 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11119 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11120
11121 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11122
11123 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11124 make_cleanup_restore_current_language. Call set_language. Move
11125 OLD_CHAIN and INNER_CHAIN cleanups.
11126 * utils.c (do_restore_current_language)
11127 (make_cleanup_restore_current_language): New functions.
11128 * utils.h (make_cleanup_restore_current_language): New declaration.
11129
11130 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11131
11132 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11133 non-existing files.
11134
11135 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11136 non-existing files if FILENAME is already absolute.
11137
11138 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11139
11140 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11141 fputs_filtered. Append trailing newline.
11142
11143 2013-01-11 Yao Qi <yao@codesourcery.com>
11144 Stan Shebs <stan@codesourcery.com>
11145
11146 * psymtab.c (init_psymbol_list): Clarify the comment.
11147
11148 2013-01-11 Yao Qi <yao@codesourcery.com>
11149
11150 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11151 (update_dprintf_command_list): Assert that 'printf_line' is
11152 non-null. Remove condition check.
11153
11154 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11155
11156 Code cleanup.
11157 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11158 type const char *.
11159 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11160 const char *.
11161 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11162
11163 2013-01-09 Anthony Green <green@moxielogic.com>
11164
11165 * cp-abi.c (cplus_print_vtable): Don't return value from void
11166 function.
11167 * ada-lang.c (re_set_catch_assert): Ditto.
11168
11169 2013-01-09 Doug Evans <dje@google.com>
11170
11171 * symfile.h (quick_symbol_functions): Delete member
11172 pre_expand_symtabs_matching. All uses removed.
11173 * dwarf2read.c (dw2_lookup_symbol): Implement.
11174 (dw2_do_expand_symtabs_matching): Delete.
11175 (dw2_pre_expand_symtabs_matching): Delete.
11176 (struct dw2_symtab_iterator): New type.
11177 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11178 (dw2_expand_symtabs_for_function): Rewrite.
11179 (dwarf2_gdb_index_functions): Update.
11180 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11181 (psym_functions): Update.
11182
11183 2013-01-09 Tom Tromey <tromey@redhat.com>
11184
11185 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11186 * configure: Rebuild.
11187 * configure.ac: Add somread.o to the build if BFD has SOM
11188 support.
11189 * somread.c: Include som/aout.h, not syms.h.
11190 (som_symtab_read): Use som_external_symbol_dictionary_record.
11191 Unpack records manually.
11192 (_initialize_somread): Declare.
11193
11194 2012-01-08 Mike Frysinger <vapier@gentoo.org>
11195
11196 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11197 Cast return_address to 64bits.
11198
11199 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
11200
11201 * printcmd.c: Remove define of function output_command.
11202 * tracepoint.c: Remove extern of function output_command.
11203 * valprint.h: (output_command): New extern.
11204
11205 2013-01-07 Tom Tromey <tromey@redhat.com>
11206
11207 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11208 Remove.
11209 (objc_language_defn): Use c_printchar, c_printstr,
11210 c_emit_char.
11211
11212 2013-01-07 Tom Tromey <tromey@redhat.com>
11213
11214 PR cli/7719:
11215 * NEWS: Update.
11216 * ada-valprint.c (printstr, print_field_values): Remove
11217 "inspect_it" code.
11218 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11219 code.
11220 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11221 code.
11222 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11223 * main.c (captured_main): Remove "epoch" argument.
11224 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11225 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11226 * p-valprint.c (pascal_object_print_value_fields): Remove
11227 "inspect_it" code.
11228 * printcmd.c (print_command_1): Remove 'inspect' argument.
11229 (print_command, call_command): Update.
11230 (inspect_command): Remove.
11231 (_initialize_printcmd): Make "inspect" an alias for "print".
11232 * top.c (epoch_interface): Remove.
11233 * top.h (epoch_interface): Remove.
11234 * valprint.c (user_print_options): Update.
11235 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11236 * valprint.h (struct value_print_options) <inspect_it>: Remove
11237 field.
11238
11239 2013-01-04 Tom Tromey <tromey@redhat.com>
11240
11241 * valprint.h (read_string): Add 'extern'.
11242
11243 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11244
11245 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11246 used to decide whether to define darwin_read_dyld_info or not.
11247
11248 2013-01-03 Pierre Muller <muller@sourceware.org>
11249
11250 * main.c (relocate_gdb_directory): Avoid calling stat function
11251 if DIR is empty.
11252
11253 2013-01-03 Yao Qi <yao@codesourcery.com>
11254
11255 * psymtab.c (fixup_psymbol_section): Update declaration.
11256 (fixup_psymbol_section): Remove code returning value.
11257
11258 2013-01-03 Yao Qi <yao@codesourcery.com>
11259
11260 * symtab.h: Remove some out of date comments.
11261 (enum exception_event_kind): Move it ...
11262 * breakpoint.c: ... here.
11263
11264 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11265
11266 PR gdb/14405
11267 * darwin-nat.c (darwin_read_dyld_info): Only build if
11268 TASK_DYLD_INFO_COUNT is defined.
11269 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11270 TASK_DYLD_INFO_COUNT is defined.
11271
11272 2013-01-02 Tom Tromey <tromey@redhat.com>
11273
11274 * symfile.h (struct ecoff_debug_hack): Remove.
11275 * objfiles.c: Don't include mdebugread.h.
11276
11277 2013-01-02 Tom Tromey <tromey@redhat.com>
11278
11279 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11280 * configure.ac: Check for Mach-O support in BFD. Update
11281 CONFIG_OBS.
11282 * configure: Rebuild.
11283
11284 2013-01-02 Tom Tromey <tromey@redhat.com>
11285
11286 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11287 * configure.ac: Use GDB_AC_CHECK_BFD.
11288 * configure: Rebuild.
11289
11290 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11291
11292 * MAINTAINERS: Update my email.
11293
11294 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11295
11296 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11297
11298 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11299
11300 * rs6000-nat.c (bss_data_overlap): New function.
11301 (vmap_symtab): Use it to adjust the .bss section's offset.
11302
11303 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11304
11305 Update year range in copyright notice of all files.
11306
11307 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11308
11309 * top.c (print_gdb_version): Update copyright year.
11310
11311 For older changes see ChangeLog-2012.
11312 \f
11313 Local Variables:
11314 mode: change-log
11315 left-margin: 8
11316 fill-column: 74
11317 version-control: never
11318 coding: utf-8
11319 End:
This page took 1.531646 seconds and 4 git commands to generate.