Print <unavailable> for unavailable registers in info register output.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
2
3 * infcmd.c (default_print_one_register_info): Use val_print to
4 print all values even optimized out or unavailable ones. Don't
5 try to print a raw form of optimized out or unavailable values.
6
7 2013-10-29 Yao Qi <yao@codesourcery.com>
8
9 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
10 parameter 'arg' instead of from program_space_data.
11 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
12 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
13 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
14 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
15 * inflow.c (inflow_inferior_data_cleanup): Get data from
16 parameter 'arg' instead of inferior_data.
17 * registry.h: Add comments.
18
19 2013-10-28 Pedro Alves <palves@redhat.com>
20
21 * breakpoint.c (watchpoints_triggered)
22 <!target_stopped_data_address>: Hardcode return 1.
23
24 2013-10-28 Pedro Alves <palves@redhat.com>
25
26 * infrun.c (process_event_stop_test): Remove unnecessary scoping
27 level and reindent.
28
29 2013-10-28 Pedro Alves <palves@redhat.com>
30
31 * infrun.c (process_event_stop_test): New function, factored out
32 from handle_inferior_event.
33 (handle_inferior_event): 'process_event_stop_test' is now a
34 function instead of a goto label -- adjust.
35
36 2013-10-28 Pedro Alves <palves@redhat.com>
37
38 * infrun.c (handle_inferior_event): Move process_event_stop_test
39 goto label to the else branch of the ecs->random_signal check,
40 along with FRAME and GDBARCH re-fetching.
41
42 2013-10-28 Pedro Alves <palves@redhat.com>
43
44 * infrun.c (switch_back_to_stepped_thread): New function, factored
45 out from handle_inferior_event.
46 (handle_inferior_event): Adjust to call
47 switch_back_to_stepped_thread. Call it also at the tail of the
48 random signal handling, and return, instead of also handling
49 random signals just before the stepping tests.
50
51 2013-10-28 Pedro Alves <palves@redhat.com>
52
53 * infrun.c (clear_stop_func): Delete.
54 (handle_inferior_event): Don't call clear_stop_func and don't
55 clear 'ecs->random_signal'.
56
57 2013-10-27 Yao Qi <yao@codesourcery.com>
58
59 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
60 (varobj_create, varobj_get_path_expr): Update.
61 (varobj_value_has_mutated, varobj_update): Likewise.
62 (create_child_with_value, new_root_variable): Likewise.
63 (number_of_children, name_of_variable): Likewise.
64 (value_of_child, my_value_of_variable): Likewise.
65 (varobj_value_is_changeable_p): Likewise.
66
67 2013-10-25 Yao Qi <yao@codesourcery.com>
68
69 * language.h (struct lang_varobj_ops): Declare.
70 (struct language_defn) <la_varobj_ops>: New field.
71 * ada-lang.c: Include "varobj.h"
72 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
73 ada_varobj_ops.
74 * c-lang.c: Include "varobj.h"
75 (c_language_defn): Initialize field 'la_varobj_ops' with
76 c_varobj_ops.
77 (cplus_language_defn): Initialize field 'la_varobj_ops' with
78 cplus_varobj_ops.
79 (asm_language_defn): Initialize field 'la_varobj_ops' with
80 default_varobj_ops.
81 (minimal_language_defn): Likewise.
82 * d-lang.c (d_language_defn): Likewise.
83 * f-lang.c (f_language_defn): Likewise.
84 * go-lang.c (go_language_defn): Likewise.
85 * m2-lang.c (m2_language_defn): Likewise.
86 * objc-lang.c (objc_language_defn): Likewise.
87 * opencl-lang.c (opencl_language_defn): Likewise.
88 * p-lang.c (pascal_language_defn): Likewise.
89 * language.c (unknown_language_defn): Likewise.
90 (auto_language_defn): Likewise.
91 (local_language_defn): Likewise.
92 * jv-lang.c (java_language_defn): Initialize field
93 'la_varobj_ops' with java_varobj_ops.
94 * varobj.c (varobj_create): Update.
95 * varobj.h (default_varobj_ops): Define macro.
96
97 2013-10-25 Pedro Alves <palves@redhat.com>
98
99 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
100 static field value.
101 (cp_print_static_field): If the value is entirely optimized out,
102 print <optimized out> here.
103 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
104 static field value.
105 * p-valprint.c (pascal_object_print_static_field): If the value is
106 entirely optimized out, print <optimized out> here.
107 * valops.c (do_search_struct_field)
108 (value_struct_elt_for_reference): No longer handle a NULL static
109 field value.
110 * value.c (value_static_field): Return an optimized out value
111 instead of NULL.
112
113 2013-10-25 Yao Qi <yao@codesourcery.com>
114
115 * remote.c (remote_traceframe_info): Return early if
116 traceframe is not selected.
117
118 2013-10-25 Yao Qi <yao@codesourcery.com>
119
120 * tracepoint.c (traceframe_fun): Remove.
121 (traceframe_sal): Remove.
122 (set_traceframe_context): Add local variables.
123
124 2013-10-25 Joel Brobecker <brobecker@adacore.com>
125
126 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
127 and parameter name.
128
129 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
130
131 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
132 failure from register information collection.
133
134 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
135
136 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
137 member.
138 (linux_corefile_thread_callback): Update accordingly.
139 (linux_make_corefile_notes): Likewise.
140
141 2013-10-24 Pedro Alves <palves@redhat.com>
142
143 * NEWS (New options): Mention set/show startup-with-shell.
144 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
145 instead of 3.
146 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
147 startup-with-shell'.
148 (show_startup_with_shell): New function.
149 (_initialize_fork_child): Register the set/show startup-with-shell
150 commands.
151 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
152 * inf-ttrace.c (inf_ttrace_him): Remove comment.
153 * procfs.c (procfs_init_inferior): Remove comment.
154 * infcmd.c (startup_with_shell): New global.
155 * inferior.h (startup_with_shell): Declare global.
156 (STARTUP_WITH_SHELL): Delete.
157 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
158
159 2013-10-23 Pedro Alves <palves@redhat.com>
160
161 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
162 * common/signals.c: Include "gdb_assert.h".
163 (signals): New field 'symbol'.
164 (SET): Use the 'symbol' parameter.
165 (gdb_signal_to_symbol_string): New function.
166 * infrun.c (handle_inferior_event) <random signal>: In debug
167 output, print the random signal enum as string in addition to its
168 number.
169 * target/waitstatus.c (target_waitstatus_to_string): Print the
170 signal's enum value as string instead of the (POSIX) signal name.
171
172 2013-10-23 Gary Benson <gbenson@redhat.com>
173
174 PR 16013
175 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
176 from 32 to 18. Adjusted fscanf format string accordingly.
177 (Avoids leaving cmd unterminated.)
178 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
179 trun, retn or extra. (Avoids leaving extra unterminated.) Check
180 that local_address and remote_address will not overflow.
181 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
182 leaving dependencies unterminated. Parse size as "%u" to match
183 definition.
184
185 2013-10-22 Pedro Alves <palves@redhat.com>
186
187 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
188 set ecs->random signal.
189
190 2013-10-22 Pedro Alves <palves@redhat.com>
191
192 * infrun.c (keep_going): Update comments.
193
194 2013-10-22 Pedro Alves <palves@redhat.com>
195
196 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
197 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
198
199 2013-10-22 Pedro Alves <palves@redhat.com>
200
201 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
202 GDB_EXC_BAD_ACCESS.
203 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
204 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
205 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
206 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
207 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
208 (GDB_SIGNAL_LAST): Change description string.
209 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
210 Adjust to signal renaming.
211 * darwin-nat.c (darwin_decode_message): Likewise.
212
213 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
214
215 * MAINTAINERS (Write After Approval): Add myself to the list.
216
217 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
218
219 * breakpoint.c (update_watchpoint): If hardware watchpoints are
220 forced off, downgrade them to software watchpoints if possible,
221 and error out if not possible.
222 (watch_command_1): Move watchpoint type selection closer to
223 watchpoint creation, and extend the comments.
224
225 2013-10-18 Pedro Alves <palves@redhat.com>
226
227 PR gdb/16062
228 * infrun.c (handle_inferior_event): Keep going if we got a random
229 signal we should not stop for, instead of falling through to the
230 step tests.
231
232 2013-10-18 Yao Qi <yao@codesourcery.com>
233
234 * c-varobj.c (cplus_number_of_children): Fix indentation.
235
236 2013-10-17 Tom Tromey <tromey@redhat.com>
237
238 PR gdb/15995:
239 * printcmd.c (printcmd): Call gdb_flush.
240
241 2013-10-17 Tom Tromey <tromey@redhat.com>
242
243 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
244 (elf_locate_sections): Update.
245
246 2013-10-17 Yao Qi <yao@codesourcery.com>
247
248 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
249 * ada-varobj.c: Remove the include of ada-varobj.h.
250 (ada_varobj_get_number_of_children): Declare.
251 (ada_varobj_get_name_of_child): Make it static.
252 (ada_varobj_get_path_expr_of_child): Likewise.
253 (ada_varobj_get_value_of_child): Likewise.
254 (ada_varobj_get_type_of_child): Likewise.
255 (ada_varobj_get_value_of_array_variable): Likewise.
256 * ada-varobj.h: Remove.
257
258 2013-10-17 Yao Qi <yao@codesourcery.com>
259
260 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
261 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
262 * ada-varobj.c: Include "varobj.h".
263 (ada_number_of_children): New. Moved from varobj.c.
264 (ada_name_of_variable, ada_name_of_child): Likewise.
265 (ada_path_expr_of_child, ada_value_of_child): Likewise.
266 (ada_type_of_child, ada_value_of_variable): Likewise.
267 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
268 (ada_varobj_ops): New.
269 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
270 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
271 * gdbtypes.h (get_target_type): Declare.
272 * varobj.c: Remove the inclusion of "ada-varobj.h" and
273 "ada-lang.h".
274 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
275 (ANONYMOUS_UNION_NAME): Likewise.
276 (get_type, get_value_type, get_target_type): Remove declarations.
277 (value_get_print_value, varobj_value_get_print_value): Likewise.
278 (c_number_of_children, c_name_of_variable): Likewise.
279 (c_name_of_child, c_path_expr_of_child): Likewise.
280 (c_value_of_child, c_type_of_child): Likewise.
281 (c_value_of_variable, cplus_number_of_children): Likewise.
282 (cplus_class_num_children, cplus_name_of_variable): Likewise.
283 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
284 (cplus_value_of_child, cplus_type_of_child): Likewise.
285 (cplus_value_of_variable, java_number_of_children): Likewise.
286 (java_name_of_variable, java_name_of_child): Likewise.
287 (java_path_expr_of_child, java_value_of_child): Likewise.
288 (java_type_of_child, java_value_of_variable): Likewise.
289 (ada_number_of_children, ada_name_of_variable): Likewise.
290 (ada_name_of_child, ada_path_expr_of_child): Likewise.
291 (ada_value_of_child, ada_type_of_child): Likewise.
292 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
293 (ada_value_has_mutated): Likewise.
294 (struct language_specific): Move it to varobj.h.
295 (CPLUS_FAKE_CHILD): Move it to varobj.h.
296 (restrict_range): Rename it varobj_restrict_range. Make it extern.
297 Callers update.
298 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
299 Make it extern.
300 (is_anonymous_child): Move it to c-varobj.c and rename to
301 varobj_is_anonymous_child. Caller update.
302 (get_type): Move it to c-varobj.c.
303 (get_value_type): Rename it varobj_get_value_type. Make it
304 extern.
305 (get_target_type): Move it gdbtypes.c.
306 (varobj_formatted_print_options): New function.
307 (value_get_print_value): Rename it to
308 varobj_value_get_print_value and make it extern.
309 (varobj_value_is_changeable_p): Make it extern.
310 (adjust_value_for_child_access): Move it to c-varobj.c.
311 (default_value_is_changeable_p): Rename it to
312 varobj_default_value_is_changeable_p. Make it extern.
313 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
314 (c_name_of_child, c_path_expr_of_child): Likewise.
315 (c_value_of_child, c_type_of_child): Likewise.
316 (c_value_of_variable, cplus_number_of_children): Likewise.
317 (cplus_class_num_children, cplus_name_of_variable): Likewise.
318 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
319 (cplus_value_of_child, cplus_type_of_child): Likewise.
320 (cplus_value_of_variable): Likewise.
321 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
322 (java_name_of_child, java_path_expr_of_child): Likewise.
323 (java_value_of_child, java_type_of_child): Likewise.
324 (java_value_of_variable): Likewise.
325 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
326 (ada_name_of_child, ada_path_expr_of_child): Likewise.
327 (ada_value_of_child, ada_type_of_child): Likewise.
328 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
329 (ada_value_has_mutated): Likewise.
330 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
331 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
332 (c_varobj_ops, cplus_varobj_ops): Declare.
333 (java_varobj_ops, ada_varobj_ops): Declare.
334 (varobj_default_value_is_changeable_p): Declare.
335 (varobj_value_is_changeable_p): Declare.
336 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
337 (varobj_get_path_expr_parent): Declare.
338 (varobj_value_get_print_value): Declare.
339 (varobj_formatted_print_options): Declare.
340 (varobj_restrict_range): Declare.
341
342 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
343
344 * target/waitstatus.h (target_waitkind): Remove spurious
345 character from the comments.
346
347 2013-10-17 Joel Brobecker <brobecker@adacore.com>
348
349 * gdbarch.sh (get_longjmp_target): Add method documentation.
350 * gdbarch.h: Regenerate.
351
352 2013-10-16 Tom Tromey <tromey@redhat.com>
353
354 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
355 label.
356
357 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
358
359 * gcore.in: Call GDB using the full path to the gcore script.
360 Error out if the GDB binary is not found.
361
362 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
363
364 PR gdb/16014
365 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
366 sizeof.
367
368 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
369
370 PR gdb/16042
371 * target.c (target_disable_btrace): Fix invalid return value for
372 void function.
373 (target_teardown_btrace): Likewise.
374
375 2013-10-14 Yao Qi <yao@codesourcery.com>
376
377 * varobj.c (struct varobj): Move most of the fields to
378 varobj.h.
379 (struct varobj_dynamic): New struct.
380 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
381 (varobj_has_more): Likewise.
382 (dynamic_varobj_has_child_method): Likewise.
383 (update_dynamic_varobj_children): Likewise.
384 (varobj_get_num_children): Likewise.
385 (varobj_list_children, varobj_pretty_printed_p): Likewise.
386 (install_new_value_visualizer): Likewise.
387 (install_new_value_visualizer, install_new_value): Likewise.
388 (varobj_update, new_variable, free_variable): Likewise.
389 (my_value_of_variable, value_get_print_value): Likewise.
390 (install_visualizer): Change the type of parameter 'var' to
391 'struct varobjd_dynamic *'. Callers update.
392 * varobj.h (struct varobj): Moved from varobj.c.
393 (struct varobj) <dynamic>: New field.
394
395 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
396
397 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
398 as the preferred name of r30.
399 * nios2-linux-tdep.c (reg_offsets): Likewise.
400 * features/nios2-cpu.xml: Likewise.
401 * features/nios2-linux.c: Regenerated.
402 * features/nios2.c: Regenerated.
403 * regformats/nios2-linux.dat: Regenerated.
404
405 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
406
407 Canonicalize directories for EXEC_FILENAME.
408 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
409 exec_filename.
410 * utils.c (gdb_realpath_keepfile): New function.
411 * utils.h (gdb_realpath_keepfile): New declaration.
412
413 2013-10-11 Doug Evans <dje@google.com>
414
415 * Makefile.in (GDBFLAGS): New variable.
416 (run): New rule.
417
418 2013-10-11 Joel Brobecker <brobecker@adacore.com>
419
420 * NEWS: Add entry documenting the new "-catch-assert" and
421 "-catch-exception" GDB/MI commands.
422
423 2013-10-11 Joel Brobecker <brobecker@adacore.com>
424
425 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
426 "enabled".
427 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
428 "enabled". Set B->ENABLE_STATE accordingly.
429 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
430 ada-lang.c.
431 (create_ada_exception_catchpoint): Add declaration.
432 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
433 (create_ada_exception_catchpoint): Make non-static. Add new
434 parameter "disabled". Use it in call to
435 init_ada_exception_breakpoint.
436 (catch_ada_exception_command): Add parameter "enabled" in call
437 to create_ada_exception_catchpoint.
438 (catch_assert_command): Likewise.
439
440 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
441 Add declarations.
442 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
443 "catch-exception" commands.
444 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
445 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
446
447 2013-10-11 Joel Brobecker <brobecker@adacore.com>
448
449 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
450 "enum exception_catchpoint_kind". Replace the "ex_" prefix
451 of all its enumerates with "ada_". Update the rest of this
452 file throughout.
453
454 2013-10-11 Joel Brobecker <brobecker@adacore.com>
455
456 * ada-lang.c (ada_decode_exception_location): Delete.
457 (create_ada_exception_catchpoint): Remove arguments "sal",
458 "addr_string" and "ops". Add argument "ex_kind" instead.
459 Adjust implementation accordingly, calling ada_exception_sal
460 to get the entities it no longer gets passed as arguments.
461 Document the function's arguments.
462 (catch_ada_exception_command): Use catch_ada_exception_command_split
463 instead of ada_decode_exception_location, and update call to
464 create_ada_exception_catchpoint.
465 (catch_ada_assert_command_split): Renames
466 ada_decode_assert_location. Remove parameters "addr_string" and
467 "ops", and now returns void. Adjust implementation accordingly.
468 Update the function documentation.
469 (catch_assert_command): Use catch_ada_assert_command_split
470 instead of ada_decode_assert_location. Update call to
471 create_ada_exception_catchpoint.
472
473 2013-10-11 Joel Brobecker <brobecker@adacore.com>
474
475 * utils.h (perror_warning_with_name): Add declaration.
476 * utils.c (perror_warning_with_name): New function.
477 * cli/cli-cmds.c (source_script_with_search): Add call to
478 perror_warning_with_name if from_tty is nul.
479
480 2013-10-11 Joel Brobecker <brobecker@adacore.com>
481
482 * utils.c (perror_string): New function, extracted out of
483 throw_perror_with_name.
484 (throw_perror_with_name): Rework to use perror_string.
485
486 2013-10-11 Yao Qi <yao@codesourcery.com>
487
488 * remote.c (discard_pending_stop_replies_in_queue): Update
489 declaration.
490 (struct stop_reply) <rs>: New field.
491 (remove_stop_reply_of_remote_state): New function.
492 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
493 Callers update. Pass remove_stop_reply_of_remote_state to
494 QUEUE_iterate.
495 (remote_parse_stop_reply): Initialize field 'rs'.
496
497 2013-10-10 Will Newton <will.newton@linaro.org>
498
499 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
500 linux_init_abi.
501
502 2013-10-10 Joel Brobecker <brobecker@adacore.com>
503
504 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
505 serial_baud_show_cmd.
506 (_initialize_cli_cmds): Delete the code creating the
507 "set/show remotebaud" commands.
508 * serial.c (baud_rate): Move here from top.c.
509 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
510 (_initialize_serial): Create "set/show serial baud" commands.
511 Add "set/show remotebaud" command aliases.
512 * top.c (baud_rate): Moved to serial.c.
513 * NEWS: Document the new "set/show serial baud" commands,
514 replacing "set/show remotebaud".
515
516 2013-10-09 Pedro Alves <palves@redhat.com>
517
518 * breakpoint.c (insert_bp_location): Use memory_error_message to
519 build the memory error string.
520 * c-lang.c: Include "gdbcore.h".
521 (c_get_string): Use memory_error to throw error.
522 (target_xfer_memory_error): Delete.
523 (memory_error_message): New, factored out from
524 target_xfer_memory_error.
525 (memory_error): Change parameter type to target_xfer_error.
526 Rewrite.
527 (read_memory): Use memory_error instead of
528 target_xfer_memory_error.
529 * gdbcore.h: Include "target.h".
530 (memory_error): Change parameter type to target_xfer_error.
531 (memory_error_message): Declare function.
532 * target.c (target_read_memory, target_read_stack)
533 (target_write_memory, target_write_raw_memory): Return
534 TARGET_XFER_E_IO on error. Adjust comments.
535 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
536 instead of EIO.
537 * target.h (target_read, target_insert_breakpoint)
538 (target_remove_breakpoint): Adjust comments.
539 * valprint.c (partial_memory_read): Rename parameter, and adjust
540 comment.
541 (val_print_string): Use memory_error_message to build the memory
542 error string.
543
544 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
545
546 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
547 result variable. Rename variable fopen_e_ever_failed to
548 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
549
550 2013-10-09 Pedro Alves <palves@redhat.com>
551
552 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
553 (monitor_write_memory_longlongs, monitor_write_memory_block):
554 Constify 'myaddr' parameter.
555 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
556 helper.
557 (monitor_xfer_partial): New function.
558 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
559 hook. Install a to_xfer_partial hook.
560
561 2013-10-09 Tom Tromey <tromey@redhat.com>
562
563 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
564 bfd_get_alt_debug_link_info.
565
566 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
567
568 New flag OBJF_NOT_FILENAME.
569 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
570 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
571 allocate_objfile.
572 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
573 symbol_file_add_from_bfd.
574 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
575 allocate_objfile.
576 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
577 NULL.
578 * objfiles.h (OBJF_NOT_FILENAME): New.
579
580 2013-10-08 Tom Tromey <tromey@redhat.com>
581
582 * Makefile.in (SFILES): Add build-id.c.
583 (HFILES_NO_SRCDIR): Add build-id.h.
584 * build-id.c: New file, largely from elfread.c. Modified
585 most functions.
586 * build-id.h: New file.
587 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
588 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
589 Search for dwz file using build-id.
590 * elfread.c (build_id_bfd_get, build_id_verify)
591 (build_id_to_debug_filename, find_separate_debug_file): Remove.
592
593 2013-10-08 Joel Brobecker <brobecker@adacore.com>
594
595 * ada-lang.c (compare_names_with_case): Renamed from
596 compare_names, adding a new parameter "casing" and its handling.
597 New function documentation.
598 (compare_names): New function, implemented using
599 compare_names_with_case.
600
601 2013-10-08 Joel Brobecker <brobecker@adacore.com>
602
603 * ada-lang.c (ada_exception_sal): Remove advance declaration.
604
605 2013-10-07 Tom Tromey <tromey@redhat.com>
606
607 * objfiles.c (free_objfile_per_bfd_storage): Delete the
608 demangled_names_hash.
609 (free_objfile): Don't delete the demangled_names_hash.
610 * objfiles.h (struct objfile_per_bfd_storage)
611 <demangled_names_hash>: New field.
612 (struct objfile) <demangled_names_hash>: Move to
613 objfile_per_bfd_storage.
614 * symfile.c (reread_symbols): Don't delete the
615 demangled_names_hash.
616 * symtab.c (create_demangled_names_hash): Update.
617 (symbol_set_names): Update.
618
619 2013-10-07 Tom Tromey <tromey@redhat.com>
620
621 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
622 needs_relocations>: New fields.
623 (gdb_bfd_requires_relocations): New function.
624 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
625 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
626 the BFD needs relocations applied.
627
628 2013-10-07 Pedro Alves <palves@redhat.com>
629
630 PR breakpoints/11568
631 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
632 the thread list" instead of "gone".
633
634 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
635
636 * NEWS: Mention new convenience variable $_exitsignal.
637 * corelow.c (core_open): Reset exit convenience variables. Set
638 $_exitsignal to the uncaught signal which generated the corefile.
639 * infrun.c (handle_inferior_event): Reset exit convenience
640 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
641 (clear_exit_convenience_vars): New function.
642 * inferior.h (clear_exit_convenience_vars): New prototype.
643
644 2013-10-06 Yao Qi <yao@codesourcery.com>
645
646 * varobj.h: Add comments to enum varobj_languages.
647
648 2013-10-04 Doug Evans <dje@google.com>
649
650 Add support for DWP file format version 2.
651 * NEWS: Mention support for DWP file format version 2.
652 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
653 union of asection, containing_section. New fields virtual_offset
654 and is_virtual. Change type of readin filed from int to char.
655 (dwo_sections, dwo_file): Tweak comments.
656 (dwp_v2_section_ids): New enum.
657 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
658 str_offsets, types.
659 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
660 All uses updated.
661 (virtual_v2_dwo_sections): New struct.
662 (dwp_hash_table): New fields version, nr_columns. Change type of
663 section_pool field to a union.
664 (dwp_file): New field version.
665 (dwarf2_has_info): Check for virtual sections.
666 (get_containing_section): New function.
667 (get_section_bfd_owner, get_section_bfd_section): Call it.
668 (dwarf2_locate_sections): Update.
669 (dwarf2_section_empty_p): Update.
670 (dwarf2_read_section): Handle virtual sections.
671 (locate_dwz_sections): Update.
672 (create_dwp_hash_table): Document and handle V2 format.
673 (locate_v1_virtual_dwo_sections): Renamed from
674 locate_virtual_dwo_sections and update. All callers updated.
675 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
676 Delete arg htab. Rename arg section_index to unit_index.
677 All callers updated.
678 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
679 All uses updated.
680 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
681 (lookup_dwo_unit_in_dwp): Add V2 support.
682 (dwarf2_locate_dwo_sections): Update.
683 (dwarf2_locate_common_dwp_sections): Renamed from
684 dwarf2_locate_dwp_sections and update. All callers updated.
685 (dwarf2_locate_v2_dwp_sections): New function.
686 (open_and_init_dwp_file): Add V2 support.
687 (read_str_index): New locals str_section, str_offsets_section.
688
689 2013-10-04 Pedro Alves <palves@redhat.com>
690
691 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
692 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
693 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
694 describing comments with references to ptid.h.
695 * common/ptid.h: Remove intro description of constructors,
696 accessors and predicates.
697 (struct ptid): Reformat.
698 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
699 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
700 describing comments.
701
702 2013-10-04 Joel Brobecker <brobecker@adacore.com>
703
704 * aix-thread.c (sync_threadlists): Add missing ')' in call
705 to ptid_build.
706
707 2013-10-04 Joel Brobecker <brobecker@adacore.com>
708
709 * procfs.c (procfs_init_inferior): Fix typo causing the build
710 to fail.
711
712 2013-10-04 Joel Brobecker <brobecker@adacore.com>
713
714 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
715
716 2013-10-04 Joel Brobecker <brobecker@adacore.com>
717
718 * mi/mi-main.c (run_one_inferior): Add function description.
719 Make ARG a pointer to an integer whose value determines whether
720 we should "run" or "start" the program.
721 (mi_cmd_exec_run): Add handling of the "--start" option.
722 Reject all other command-line options.
723 * NEWS: Add entry for "-exec-run"'s new "--start" option.
724
725 2013-10-04 Yao Qi <yao@codesourcery.com>
726
727 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
728 (struct notif_client) <pending_event>: Moved
729 to struct remote_notif_state.
730 <id>: New field.
731 (struct remote_notif_state) <pending_event>: New field.
732 (notif_event_xfree): Declare.
733 * remote-notif.c (handle_notification): Adjust.
734 (notif_event_xfree): New function.
735 (do_notif_event_xfree): Call notif_event_xfree.
736 (remote_notif_state_xfree): Call notif_event_xfree to free
737 each element in field pending_event.
738 * remote.c (discard_pending_stop_replies): Remove declaration.
739 (discard_pending_stop_replies_in_queue): Declare.
740 (remote_close): Call discard_pending_stop_replies_in_queue
741 instead of discard_pending_stop_replies.
742 (remote_start_remote): Adjust.
743 (stop_reply_xfree): Call notif_event_xfree.
744 (notif_client_stop): Adjust initialization.
745 (remote_notif_remove_all): Rename it to ...
746 (remove_stop_reply_for_inferior): ... this. Update comments.
747 Don't check INF is NULL.
748 (discard_pending_stop_replies): Return early if notif_state is
749 NULL. Adjust. Don't check INF is NULL.
750 (remote_notif_get_pending_events): Adjust.
751 (discard_pending_stop_replies_in_queue): New function.
752 (remote_wait_ns): Likewise.
753
754 2013-10-04 Yao Qi <yao@codesourcery.com>
755
756 * remote-notif.c (DECLARE_QUEUE_P): Remove.
757 (notif_queue): Remove.
758 (remote_notif_process): Add one parameter 'notif_queue'.
759 Update comments. Callers update.
760 (remote_async_get_pending_events_token): Remove.
761 (remote_notif_register_async_event_handler): Remove.
762 (remote_notif_unregister_async_event_handler): Remove.
763 (handle_notification): Add parameter 'notif_queue'. Update
764 comments. Callers update.
765 (notif_xfree): Remove.
766 (remote_notif_state_allocate): New function.
767 (remote_notif_state_xfree): New function.
768 (_initialize_notif): Remove code to allocate queue.
769 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
770 (struct remote_notif_state): New.
771 (handle_notification): Update declaration.
772 (remote_notif_process): Likewise.
773 (remote_notif_register_async_event_handler): Remove.
774 (remote_notif_unregister_async_event_handler): Remove.
775 (remote_notif_state_allocate): Declare.
776 (remote_notif_state_xfree): Declare.
777 * remote.c (struct remote_state) <notif_state>: New field.
778 (remote_close): Don't call
779 remote_notif_unregister_async_event_handler. Call
780 remote_notif_state_xfree.
781 (remote_open_1): Don't call
782 remote_notif_register_async_event_handler. Call
783 remote_notif_state_allocate.
784
785 2013-10-04 Yao Qi <yao@codesourcery.com>
786
787 * varobj.c (create_child_with_value): Remove 'const' from the
788 type of parameter 'name'.
789 (varobj_add_child): Likewise.
790 (install_dynamic_child): Remove 'const' from the type of
791 parameter 'name'.
792 (varobj_add_child): Likewise.
793 (create_child_with_value): Likewise. Update comments. Don't
794 duplicate 'name'.
795 (update_dynamic_varobj_children): Duplicate 'name'
796 and pass it to install_dynamic_child.
797
798 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
799
800 * python/py-value.c (convert_value_from_python): Move PyInt_Check
801 conversion logic to occur after PyLong_Check. Comment on order
802 change significance.
803 * python/py-arch.c (archpy_disassemble): Comment on order of
804 conversion for integers and longs.
805
806 2013-10-03 Pedro Alves <palves@redhat.com>
807
808 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
809 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
810 functions. Always test for PTRACE_O_TRACESYSGOOD even if
811 PTRACE_O_TRACEFORK is not supported.
812 (linux_test_for_tracesysgood): New function.
813 (linux_test_for_tracefork): New function, factored out from
814 linux_check_ptrace_features, and also don't kill child_pid here.
815
816 2013-10-03 Tristan Gingold <gingold@adacore.com>
817
818 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
819 Remove verbose error reporting. Use detected state to
820 thread_set_state call.
821 (i386_darwin_dr_get): Fix return type. Remove verbose error
822 report.
823 Remove trailing spaces.
824
825 2013-10-02 Pedro Alves <palves@redhat.com>
826
827 * cp-valprint.c (cp_print_value_fields): Adjust calls to
828 val_print_optimized_out.
829 * jv-valprint.c (java_print_value_fields): Likewise.
830 * p-valprint.c (pascal_object_print_value_fields): Likewise.
831 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
832 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
833 new optimized out value.
834 * findvar.c (address_from_register): Likewise.
835 * frame.c (put_frame_register): Tweak error string to say the
836 register was not saved, rather than optimized out.
837 * infcmd.c (default_print_one_register_info): Adjust call to
838 val_print_optimized_out. Use value_of_register instead of
839 get_frame_register_value.
840 * mi/mi-main.c (output_register): Use value_of_register instead of
841 get_frame_register_value.
842 * valprint.c (valprint_check_validity): Likewise.
843 (val_print_optimized_out): New value parameter. If the value is
844 lval_register, print <not saved> instead.
845 (value_check_printable, val_print_scalar_formatted): Adjust calls
846 to val_print_optimized_out.
847 * valprint.h (val_print_optimized_out): New value parameter.
848 * value.c (struct value) <optimized_out>: Extend comment.
849 (error_value_optimized_out): New function.
850 (require_not_optimized_out): Use it. Use a different string for
851 lval_register values.
852 * value.h (error_value_optimized_out): New declaration.
853 * NEWS: Mention <not saved>.
854
855 2013-10-02 Joel Brobecker <brobecker@adacore.com>
856
857 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
858 strcmp to compare two symtab filenames.
859
860 2013-10-02 Joel Brobecker <brobecker@adacore.com>
861
862 * symtab.c (search_symbols_equal): Delete.
863 (sort_search_symbols_remove_dups): Replace call to
864 search_symbols_equal by call to compare_search_syms,
865 adjusting as necessary.
866
867 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
868
869 PR python/15579
870
871 * python/python.c: Document gdb.execute command in Python help.
872
873 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
874
875 * python/py-frame.c (frame_info_to_frame_object): Use
876 gdbpy_convert_exception. Clean up Python object on failure.
877
878 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
879
880 * python/lib/gdb/command/frame_filters.py
881 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
882 (ShowFrameFilterPriority.invoke): Ditto.
883
884 2013-10-01 Keith Seitz <keiths@redhat.com>
885
886 * linespec.c (struct ls_parser): Make 'saved_arg' const.
887 (parse_linespec): Make 'argptr' const.
888 Remove temporary cast of 'argptr' to const char **.
889 (decode_line_full): Pass const pointer to parse_linespec.
890 (decode_line_1): Likewise.
891 (decode_objc): Make local variable 'new_argptr' const.
892 (find_function_symbols): Remove temporary cast to char *
893 to find_imps.
894 * objc-lang.c (find_imps): Make argument 'method' const.
895 Return const.
896 * objc-lang.h (find_imps): Likewise.
897
898 2013-10-01 Keith Seitz <keiths@redhat.com>
899
900 * completer.c (skip_quoted_chars): Make all arguments const.
901 Return const.
902 (skip_quoted): Likewise.
903 * completer.h (skip_quoted_chars): Likewise.
904 (skip_quoted): Likewise.
905 * defs.h (skip_quoted): Remove duplicate declaration.
906 * jv-exp.y: Include completer.h.
907 (yylex): Remove unneccessary cast to char * fro skip_quoted.
908 * p-exp.y: Include completer.h.
909
910 2013-10-01 Keith Seitz <keiths@redhat.com>
911
912 * c-exp.y (parse_number): Make first argument const.
913 Make a copy of the input to manipulate.
914 (c_parse_escape): Make first argument const.
915 Make local variable 'tokptr' const.
916 (parse_string_or_char): Make first two arguments const.
917 (macro_original_text): Make const.
918 (lex_one_token): Make local variable 'tokstart' const.
919 Likewise for local variables named 'p'.
920 Cast away const for struct stoken (temporary).
921 * c-lang.h (c_parse_escpae): Make first argument const.
922 * cli/cli-cmds.c (echo_command): Make local variable 'p'
923 const.
924 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
925 var_string case.
926 * f-exp.y (parse_number): Make first argument const.
927 (match_string_literal): Make local variable 'tokstart'
928 const.
929 (yylex): Make local variable 'p' const.
930 Cast away const for struct stoken (temporary).
931 * go-exp.y (parse_number): Make first argument const.
932 (parse_string_or_char): Likewise.
933 Make local variable 'tokstart' const.
934 (lex_one_token): Likewise for numerous locals called 'p'.
935 Cast away const for struct stoken (temporary).
936 * jv-exp.y (parse_number): Make first argument const.
937 Make local variables 'tokstart' and 'tokptr' const.
938 Cast away const for call to skip_quoted (temporary).
939 (yylex): Make local variable 'p' const.
940 Cast away const for struct stoken (temporary).
941 * m2-exp.y (parse_number): Make local variable 'p' const.
942 (yylex): Likewise for 'tokstart'.
943 Cast away const for struct stoken (temporary).
944 Make local variable 'p' const.
945 * macroexp.c (get_character_constant): Pass a const string
946 to c_parse_escape.
947 (get_string_literal): Likewise.
948 (macro_expand_next): Make first argument const.
949 Cast away const for init_shared_buffer.
950 * macroexp.h (macro_expand_next): Make first argument const.
951 * p-exp.y (yylex): Make a local copy of 'lexptr'.
952 Pass a const string to c_parse_escape.
953 Make local variables 'p' and 'namestart' const.
954 * parse.c (lexptr): Make const.
955 (prev_lexptr): Likewise.
956 (find_template_name_end): Return const.
957 Make argument const, too.
958 (parse_exp_in_context): Make first argument const.
959 Remove the entire const_hack.
960 (parse_exp_in_context_1): Make first argument const.
961 * parser-defs.h (find_template_name_end): Return const.
962 Make argument const, too.
963 (lexptr): Make const.
964 (prev_lexptr): Likewise.
965 * utils.c (parse_escape): Make second argument const.
966 * utils.h (parse_escape): Likewise.
967
968 2013-10-01 Keith Seitz <keiths@redhat.com>
969
970 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
971 is now const.
972 (block_lookup): Make 'raw_name' and 'name' const.
973 * ada-lex.l (processString): Update for struct stoken.ptr.
974 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
975 (operator_stoken): Likewise.
976 (lex_one_token): Remove temporary cast to char * for
977 'yylval.sval.ptr'.
978 * f-exp.y (yylex): Likewise.
979 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
980 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
981 * go-exp.y (lex_one_token): Remove temporary cast to char * for
982 'yylval.sval.ptr'.
983 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
984 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
985 * linespec.c (struct ls_parser): Make 'stream' const.
986 (find_parameter_list_end): Make argument 'input' and local
987 variable 'p' const.
988 (linespec_lexer_lex_string): Make local variables 'start' and
989 'p' const.
990 Use skip_spaces_const instead of skip_spaces.
991 (linespec_lexer_peek_token): Make local variable 'saved_stream'
992 const.
993 (parse_linespec): Temporarily cast 'argptr' to const for
994 'parser->lexer.stream'.
995 * m2-exp.y (yylex): Remove temporary cast to char * for
996 'yylval.sval.ptr'.
997 * objc-lang.c (add_msglist): Make local variable 'p' const.
998 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
999 (exp : STRING): Make 'sp' const.
1000 (parse_number): Make argument 'p' const.
1001 * parser-defs.h (struct stoken): Make 'ptr' const.
1002
1003 2013-10-01 Doug Evans <dje@google.com>
1004
1005 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1006
1007 2013-10-01 Yao Qi <yao@codesourcery.com>
1008
1009 * varobj.c (c_value_of_root): Remove declaration.
1010 (cplus_value_of_root, java_value_of_root): Likewise.
1011 (ada_value_of_root): Likewise.
1012 (struct language_specific) <value_of_root>: Remove.
1013 (languages): Update initialization.
1014 (check_scope): Move earlier.
1015 (c_value_of_root): Move earlier and rename to ...
1016 (value_of_root_1): ... this.
1017 (value_of_root): Caller update.
1018 (cplus_value_of_root, java_value_of_root): Remove.
1019 (ada_value_of_root): Remove.
1020
1021 2013-10-01 Yao Qi <yao@codesourcery.com>
1022
1023 * varobj.c (varobj_format_string): Remove "unknown".
1024 (languages): Remove the first element.
1025 * varobj.h (enum varobj_languages): Remove vlang_c.
1026
1027 2013-10-01 Yao Qi <yao@codesourcery.com>
1028
1029 * varobj.c (struct language_specific) <language>: Remove.
1030 (languages): Update the initialization.
1031
1032 2013-10-01 Yao Qi <yao@codesourcery.com>
1033
1034 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1035 "solib-target.h". Include "windows-tdep.h".
1036 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1037 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1038 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1039 windows-tdep.o to gdb_target_obs.
1040
1041 2013-10-01 Yao Qi <yao@codesourcery.com>
1042
1043 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1044 "solib-target.h".
1045 (amd64_windows_init_abi): Don't call set_solib_ops and
1046 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1047 windows_init_abi instead.
1048 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1049 "solib-target.h".
1050 (i386_cygwin_init_abi): Don't call set_solib_ops,
1051 set_gdbarch_has_dos_based_file_system and
1052 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1053 windows_init_abi instead.
1054 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1055 (windows_init_abi): New function.
1056 (windows_iterate_over_objfiles_in_search_order): Make it
1057 static.
1058 * windows-tdep.h (windows_init_abi): Declare.
1059 (windows_iterate_over_objfiles_in_search_order): Remove
1060 declaration.
1061
1062 2013-10-01 Jerome Guitton <guitton@adacore.com>
1063
1064 Checked in by Joel Brobecker <brobecker@adacore.com>
1065 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1066 incomplete dictionnary instead of None in case of missing
1067 environment variables.
1068 (elinos_init): in case of an incomplete environment, best
1069 effort to load system libraries instead of abort.
1070
1071 2013-10-01 Joel Brobecker <brobecker@adacore.com>
1072
1073 * ada-lang.c (ada_has_this_exception_support): Ignore
1074 mst_solib_trampoline minimal symbols.
1075
1076 2013-09-30 Tristan Gingold <gingold@adacore.com>
1077
1078 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1079 hardware watchpoint.
1080 (i386_darwin_dr_set): Support 32 and 64 bit states.
1081 (i386_darwin_dr_get): Likewise.
1082 (i386_darwin_dr_set_control): Make static.
1083 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1084 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1085
1086 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
1087
1088 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1089 Replace TIDGET with ptid_get_lwp.
1090 Replace GET_LWP with ptid_get_lwp.
1091 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1092 Replace BUILD_THREAD with ptid_build.
1093 Replace BUILD_LWP with ptid_build.
1094 Replace PIDGET with ptid_get_pid.
1095 Replace TIDGET with ptid_get_lwp.
1096 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1097 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1098 Replace TIDGET with ptid_get_lwp.
1099 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1100 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1101 Replace TIDGET with ptid_get_lwp.
1102 Replace GET_LWP with ptid_get_lwp.
1103 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1104 * auxv.c: Likewise.
1105 * breakpoint.c: Likewise.
1106 * common/ptid.c (ptid_is_pid): Condense check for
1107 null_ptid and minus_one_ptid.
1108 (ptid_lwp_p): New function.
1109 (ptid_tid_p): New function.
1110 * common/ptid.h: Update comments for accessors.
1111 (ptid_lwp_p): New prototype.
1112 (ptid_tid_p): New prototype.
1113 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1114 * gcore.c: Replace PIDGET with ptid_get_pid.
1115 * gdbthread.h: Likewise.
1116 * gnu-nat.c: Likewise.
1117 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1118 Replace TIDGET with ptid_get_lwp.
1119 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1120 * hppanbsd-nat.c: Likewise.
1121 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1122 Replace TIDGET with ptid_get_lwp.
1123 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1124 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1125 * infcmd.c: Likewise.
1126 * inferior.h: Likewise.
1127 * inflow.c: Likewise.
1128 * infrun.c: Likewise.
1129 * linux-fork.c: Likewise.
1130 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1131 Replace GET_PID with ptid_get_pid.
1132 Replace is_lwp with ptid_lwp_p.
1133 Replace GET_LWP with ptid_get_lwp.
1134 Replace BUILD_LWP with ptid_build.
1135
1136 2013-09-28 Mike Frysinger <vapier@gentoo.org>
1137
1138 * common/linux-btrace.c: Move sys/syscall.h out of the
1139 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1140 Also check for SYS_perf_event_open before attempting to buid.
1141
1142 2013-09-27 Doug Evans <dje@google.com>
1143
1144 * dwarf2read.c (dwarf2_section_info): Add comment.
1145 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1146 All uses updated.
1147 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1148 (dwarf2_read_section): Delete unused local "header". Add section
1149 name to error message.
1150 (create_dwo_in_dwp): Tweak comment.
1151 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1152
1153 * dwarf2read.c (die_reader_specs): Tweak comment.
1154 (get_section_bfd_owner, get_section_bfd_section): New functions.
1155 (get_section_name, get_section_file_name): New functions.
1156 (get_section_id, get_section_flags): New functions.
1157 (*): Use new functions to access section fields.
1158
1159 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1160 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1161 arg "htab". All callers updated.
1162 (create_debug_types_hash_table): Remove redundant copy of
1163 abbrev_section.
1164 (create_dwo_in_dwp): Tweak comments.
1165 (read_str_index): Tweak comment. Record dwarf form name in static
1166 local.
1167
1168 2013-09-27 Pedro Alves <palves@redhat.com>
1169
1170 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1171 (remote_filename_p): Add comment.
1172 * remote.c (remote_filename_p): Adjust to use
1173 REMOTE_SYSROOT_PREFIX.
1174 * solib.c (solib_find): When deciding whether we need to add a
1175 directory separator, check whether the sysroot is "remote:"
1176 instead of checking whether the patch has a drive spec. Add
1177 comments.
1178
1179 2013-09-27 Pedro Alves <palves@redhat.com>
1180
1181 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1182 Delete fields.
1183 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1184 directly.
1185
1186 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1187
1188 Fix set debug frame output.
1189 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1190 SENTINEL_FRAME entry lower to match enum frame_type order.
1191
1192 2013-09-26 Pierre Muller <muller@sourceware.org>
1193
1194 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1195 AMD64_R15_REGNUM when a register index is expected.
1196 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1197 Substitute in array.
1198 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1199 (amd64_push_arguments): Substitute in integer_regnum array.
1200
1201 2013-09-25 Doug Evans <dje@google.com>
1202
1203 * objfiles.c (allocate_objfile): Move comment to better place.
1204
1205 New option "set debug symfile on".
1206 * NEWS: Mention "set debug symfile".
1207 * Makefile.in (SFILES): Add symfile-debug.c.
1208 (COMMON_OBS): Add symfile-debug.o.
1209 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1210 objfile's symbol functions.
1211 * objfiles.h (objfile_set_sym_fns): Declare.
1212 * symfile-debug.c: New file.
1213 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1214 objfile's symbol functions.
1215 (reread_symbols): Ditto.
1216
1217 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1218 All uses updated.
1219 (add_symtab_fns): Update prototype.
1220 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1221 (registered_sym_fns): ... this.
1222 (symtab_fns): Update.
1223 (add_symtab_fns): New arg "flavour". All callers updated.
1224 (find_sym_fns): Rewrite to use new sym_fns registry.
1225
1226 * symfile.h (struct sym_fns): Add "objfile" argument to
1227 sym_read_linetable. All uses updated.
1228
1229 * symtab.c (domain_name, search_domain_name): New functions.
1230 * symtab.h (domain_name, search_domain_name): Declare.
1231
1232 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1233 map_matching_symbols so objfile is first. All uses updated.
1234 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1235 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1236
1237 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1238
1239 PR shlibs/8882
1240 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1241 link map entries.
1242
1243 2013-09-24 Doug Evans <dje@google.com>
1244
1245 * objfiles.c (free_objfile): Move comment.
1246
1247 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1248
1249 * ada-exp.y (string_to_operator): Delete.
1250 (dummy_string_to_ada_operator): Delete.
1251
1252 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1253
1254 Revert:
1255 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1256 amd64-tdep.c.
1257 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1258 call_dummy_integer_regs, and classify.
1259 * amd64-tdep.h (amd64_classify): Add declaration.
1260 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1261 (amd64_reg_class): Delete, moved to i386-tdep.h.
1262 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1263 Replace call to amd64_classify by call to tdep->classify.
1264 (amd64_push_arguments): Get the list of registers to use for
1265 passing integer parameters from the gdbarch tdep structure,
1266 rather than using a hardcoded one. Replace calls to amd64_classify
1267 by calls to tdep->classify.
1268 (amd64_push_dummy_call): Get the register number used for
1269 the "hidden" argument from tdep->call_dummy_integer_regs.
1270 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1271 and tdep->call_dummy_integer_regs. Set tdep->classify.
1272
1273 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1274
1275 Revert:
1276 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1277 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1278 where tdep->memory_args_by_pointer is non-zero.
1279
1280 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1281
1282 Revert:
1283 * i386-tdep.h (struct gdbarch_tdep): Add new field
1284 integer_param_regs_saved_in_caller_frame.
1285 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1286 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1287
1288 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1289
1290 * amd64-windows-tdep.c: #include "value.h"
1291 (amd64_windows_classify): Delete.
1292 (amd64_windows_passed_by_integer_register)
1293 (amd64_windows_passed_by_xmm_register)
1294 (amd64_windows_passed_by_pointer)
1295 (amd64_windows_adjust_args_passed_by_pointer)
1296 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1297 (amd64_windows_push_dummy_call): New functions.
1298 (amd64_windows_init_abi): Remove setting of
1299 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1300 tdep->classify, tdep->memory_args_by_pointer and
1301 tdep->integer_param_regs_saved_in_caller_frame.
1302 Add call to set_gdbarch_push_dummy_call.
1303
1304 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1305
1306 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1307 objfile->original_name.
1308
1309 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1310
1311 Pass down original filename for objfile.
1312 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1313 * elfread.c (elf_symfile_read): Likewise.
1314 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1315 longer set ORIGINAL_NAME.
1316 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1317 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1318 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1319 symbol_file_add_from_bfd call.
1320 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1321 (macho_check_dsym): Add parameter filenamep. Change function comment.
1322 Set *filenamep.
1323 (macho_symfile_read): New variable dsym_filename. Update
1324 macho_check_dsym call. Use it for symbol_file_add_separate.
1325 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1326 it. Use it for objfile->original_name.
1327 (objfile_name): Return OBFD's filename, if available.
1328 * objfiles.h (allocate_objfile): Add new parameter name.
1329 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1330 * symfile-mem.c (symbol_file_add_from_memory): Update
1331 symbol_file_add_from_bfd call.
1332 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1333 comment for it.
1334 (symbol_file_add_with_addrs): New parameter name, add function comment
1335 for it. Remove variable name. Update allocate_objfile call.
1336 (symbol_file_add_separate): New parameter name, add function comment
1337 for it. Update symbol_file_add_with_addrs call.
1338 (symbol_file_add_from_bfd): New parameter name. Update
1339 symbol_file_add_with_addrs call.
1340 (symbol_file_add): Update symbol_file_add_from_bfd call.
1341 (reread_symbols): New variable original_name. Save
1342 objfile->original_name by it.
1343 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1344 second parameter.
1345
1346 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1347
1348 Code cleanup: Add objfile_name accessor function.
1349 * ada-lang.c (is_known_support_routine): Use objfile_name.
1350 * auto-load.c (source_gdb_script_for_objfile)
1351 (auto_load_objfile_script): Likewise.
1352 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1353 * dbxread.c (dbx_symfile_read): Likewise.
1354 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1355 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1356 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1357 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1358 (lookup_dwp_signatured_type, lookup_dwo_unit)
1359 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1360 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1361 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1362 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1363 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1364 (read_subrange_type, load_partial_dies, read_partial_die)
1365 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1366 (die_containing_type, build_error_marker_type, lookup_die_type)
1367 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1368 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1369 (get_DW_AT_signature_type, write_psymtabs_to_index)
1370 (save_gdb_index_command): Likewise.
1371 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1372 Likewise.
1373 * expprint.c (dump_subexp_body_standard): Likewise.
1374 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1375 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1376 original_name.
1377 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1378 obj_name, use objfile_name for it, use the variable.
1379 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1380 Use objfile_name.
1381 * machoread.c (macho_symtab_read, macho_check_dsym)
1382 (macho_symfile_relocate): Likewise.
1383 * maint.c (maintenance_translate_address): Likewise.
1384 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1385 * minsyms.c (install_minimal_symbols): Likewise.
1386 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1387 original_name.
1388 (filter_overlapping_sections): Use objfile_name.
1389 (objfile_name): New function.
1390 * objfiles.h (struct objfile): Rename field name to original_name.
1391 (objfile_name): New prototype.
1392 * printcmd.c (sym_info, address_info): Use objfile_name.
1393 * probe.c (parse_probes, collect_probes, compare_probes)
1394 (info_probes_for_ops): Likewise.
1395 * progspace.c (clone_program_space): Likewise.
1396 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1397 (maintenance_info_psymtabs): Likewise.
1398 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1399 (source_section_scripts): Likewise.
1400 * python/py-objfile.c (objfpy_get_filename): Likewise.
1401 * python/py-progspace.c (pspy_get_filename): Likewise.
1402 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1403 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1404 * solib.c (solib_read_symbols): Likewise.
1405 * stabsread.c (scan_file_globals): Likewise.
1406 * stap-probe.c (handle_stap_probe): Likewise.
1407 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1408 (find_separate_debug_file_by_debuglink): Likewise.
1409 (reread_symbols): Likewise. Use the objfile field name renamed to
1410 original_name.
1411 (allocate_symtab): Use objfile_name.
1412 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1413 (dump_objfile, dump_msymbols, dump_symtab_1)
1414 (maintenance_print_msymbols, maintenance_print_objfiles)
1415 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1416 * target.c (target_translate_tls_address, target_info): Likewise.
1417 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1418 objfile_name.
1419
1420 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1421
1422 Code cleanup.
1423 * probe.c (parse_probes): Rename variable objfile_name to
1424 objfile_namestr.
1425
1426 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1427
1428 Remove solib-sunos.c.
1429 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1430 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1431 * objfiles.c (rt_common_objfile): Remove.
1432 (free_objfile): Remove rt_common_objfile comparison.
1433 * objfiles.h (rt_common_objfile): Remove.
1434 * solib-sunos.c: Remove.
1435 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1436
1437 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1438
1439 Remove a.out NetBSD and OpenBSD hosts.
1440 * NEWS (Removed native configurations): New.
1441 * config/arm/nbsdaout.mh: Remove.
1442 * config/i386/nbsdaout.mh: Remove.
1443 * config/i386/obsdaout.mh: Remove.
1444 * config/m68k/nbsdaout.mh: Remove.
1445 * config/sparc/nbsdaout.mh: Remove.
1446 * config/vax/nbsdaout.mh: Remove.
1447 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1448 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1449 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1450 error.
1451 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1452 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1453 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1454
1455 2013-09-23 Tom Tromey <tromey@redhat.com>
1456
1457 * linespec.c (struct minsym_and_objfile): Remove.
1458 (minsym_and_objfile_d): Remove.
1459 (struct linespec, struct collect_info, linespec_parse_basic)
1460 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1461 (compare_msymbols, find_method, find_function_symbols)
1462 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1463 (add_minsym, search_minsyms_for_name): Update.
1464
1465 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1466
1467 * regcache.c: Add include of valprint.h.
1468 (dump_endian_bytes): Delete.
1469 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1470
1471 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1472
1473 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1474
1475 2013-09-19 Pedro Alves <palves@redhat.com>
1476
1477 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1478 breakpoints.
1479
1480 2013-09-19 Pedro Alves <palves@redhat.com>
1481 Thomas Schwinge <thomas@codesourcery.com>
1482 Yue Lu <hacklu.newborn@gmail.com>
1483
1484 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1485 Take a gdb_byte pointer instead of a char pointer.
1486
1487 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1488 gnu_xfer_partial helper.
1489 (gnu_xfer_partial): New function.
1490 (gnu_target): Don't install a deprecated_xfer_memory hook.
1491 Install a to_xfer_partial hook.
1492
1493 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1494
1495 Constification.
1496 * main.c (captured_main): Replace catch_command_errors by
1497 catch_command_errors_const. Twice.
1498 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1499 (symbol_file_add): Make name parameter const.
1500 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1501 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1502 variable name. Change their usage accordingly.
1503 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1504 const.
1505 (symbol_file_add_main): Make args parameter const.
1506
1507 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1508 Ulrich Weigand <uweigand@de.ibm.com>
1509
1510 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1511 of c_value member.
1512 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1513
1514 2013-09-18 Pedro Alves <palves@redhat.com>
1515 Yue Lu <hacklu.newborn@gmail.com>
1516
1517 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1518 (gnu_create_inferior)
1519 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1520 (set_sig_thread_cmd): Use the lwpid field of ptids to
1521 store/extract thread ids instead of the tid field.
1522 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1523
1524 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1525
1526 * infcmd.c (default_print_one_register_info): Add detection of
1527 optimized out values.
1528 (default_print_registers_info): Switch to using
1529 get_frame_register_value.
1530
1531 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1532
1533 * infrun.c (handle_inferior_event): Check if we know the
1534 function start address before setting a resume breakpoint.
1535
1536 2013-09-18 Pedro Alves <palves@redhat.com>
1537
1538 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1539 minus_one_ptid instead of looking at the ptid's tid field and
1540 comparing that to -1.
1541
1542 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1543
1544 * main.h (get_gdb_program_name): Remove extra whitespace.
1545
1546 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1547
1548 * main.h (get_gdb_program_name): Add declaration.
1549 * main.c (get_gdb_program_name): Add definition.
1550
1551 2013-09-17 Doug Evans <dje@google.com>
1552
1553 * dwarf2read.c: Move definitions of complaint functions to after
1554 forward declarations of local functions.
1555
1556 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1557 Pedro Alves <palves@redhat.com>
1558
1559 PR gdb/11568
1560 * breakpoint.c (remove_threaded_breakpoints): New function.
1561 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1562 as thread_exit observer.
1563
1564 2013-09-17 Pedro Alves <palves@redhat.com>
1565
1566 PR gdb/15911
1567 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1568 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1569 * corelow.c (core_open):
1570 * frame.h (print_stack_frame, print_frame_info): New
1571 'set_current_sal' parameter.
1572 * infcmd.c (finish_command, kill_command): Adjust call to
1573 print_stack_frame.
1574 * inferior.c (inferior_command): Likewise.
1575 * infrun.c (normal_stop): Likewise.
1576 * linux-fork.c (linux_fork_context): Likewise.
1577 * record-full.c (record_full_goto_entry, record_full_restore):
1578 Likewise.
1579 * remote-mips.c (common_open): Likewise.
1580 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1581 Use it.
1582 (print_frame_info): New 'set_current_sal' parameter. Set the last
1583 displayed sal depending on the new paremeter instead of looking at
1584 print_what.
1585 (backtrace_command_1, select_and_print_frame, frame_command)
1586 (current_frame_command, up_command, down_command): Adjust call to
1587 print_stack_frame.
1588 * thread.c (print_thread_info, restore_selected_frame)
1589 (do_captured_thread_select): Adjust call to print_stack_frame.
1590 * tracepoint.c (tfind_1): Likewise.
1591 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1592 (mi_cmd_stack_info_frame): Likewise.
1593 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1594 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1595
1596 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1597
1598 * value.c (isvoid_internal_fn): Replace "parameter" with
1599 "argument".
1600
1601 2013-09-16 Stan Shebs <stan@codesourcery.com>
1602
1603 * README: Update references to writing code for GDB.
1604 * configure.ac (build_warnings): Remove obsolete comment.
1605 * configure: Regenerate.
1606 * gdbarch.sh: Remove references to gdbint.texinfo.
1607 * gdbarch.h: Regenerate.
1608 * gdbtypes.c (objfile_type): Remove comments referencing internals
1609 manual and D10V.
1610
1611 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1612
1613 * NEWS: Mention new convenience function $_isvoid.
1614 * value.c (isvoid_internal_fn): New function.
1615 (_initialize_values): Add new convenience function $_isvoid.
1616
1617 2013-09-16 Pierre Muller <muller@sourceware.org>
1618
1619 * arm-linux-tdep.c: Add "elf/common.h" header.
1620 Remove AT_HWCAP macro definintion as it is provided in
1621 added include file.
1622 * s390-tdep.c: Remove system header <elf.h>
1623 Add "elf/common.h" header for AT_HWCAP definition.
1624 (s390_core_read_description): Use correct CORE_ADDR
1625 for hwcap local variable used as third parameter
1626 of function target_auxv_search.
1627
1628 2013-09-14 Pierre Muller <muller@sourceware.org>
1629 Tom Tromey <tromey@redhat.com>
1630 Pedro Alves <palves@redhat.com>
1631
1632 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1633 mode if operating system doesn't know O_CLOEXEC.
1634
1635 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1636
1637 Code cleanup.
1638 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1639 inner block.
1640
1641 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1642
1643 * NEWS: Mention TDB support.
1644 * features/s390-tdb.xml: New file.
1645 * features/s390-te-linux64.xml: New file.
1646 * features/s390x-te-linux64.xml: New file.
1647 * features/Makefile (WHICH): Add new tdescs above.
1648 (s390-te-linux64-expedite): Set.
1649 (s390x-te-linux64-expedite): Set.
1650 * features/s390-te-linux64.c: New file (generated).
1651 * features/s390x-te-linux64.c: New file (generated).
1652 * regformats/s390-te-linux64.dat: New file (generated).
1653 * regformats/s390x-te-linux64.dat: New file (generated).
1654 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1655 (HWCAP_S390_TE): Likewise.
1656 (S390_TDB_DWORD0_REGNUM): Likewise.
1657 (S390_TDB_DWORD0_REGNUM): Likewise.
1658 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1659 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1660 (S390_TDB_ATIA_REGNUM): Likewise.
1661 (S390_TDB_R0_REGNUM): Likewise.
1662 (S390_TDB_R1_REGNUM): Likewise.
1663 (S390_TDB_R2_REGNUM): Likewise.
1664 (S390_TDB_R3_REGNUM): Likewise.
1665 (S390_TDB_R4_REGNUM): Likewise.
1666 (S390_TDB_R5_REGNUM): Likewise.
1667 (S390_TDB_R6_REGNUM): Likewise.
1668 (S390_TDB_R7_REGNUM): Likewise.
1669 (S390_TDB_R8_REGNUM): Likewise.
1670 (S390_TDB_R9_REGNUM): Likewise.
1671 (S390_TDB_R10_REGNUM): Likewise.
1672 (S390_TDB_R11_REGNUM): Likewise.
1673 (S390_TDB_R12_REGNUM): Likewise.
1674 (S390_TDB_R13_REGNUM): Likewise.
1675 (S390_TDB_R14_REGNUM): Likewise.
1676 (S390_TDB_R15_REGNUM): Likewise.
1677 (S390_NUM_REGS): Increase.
1678 (S390_IS_TDBREGSET_REGNUM): New macro.
1679 (s390_regmap_tdb): Declare.
1680 (s390_sizeof_tdbregset): Define.
1681 (tdesc_s390_te_linux64): Declare.
1682 (tdesc_s390x_te_linux64): Likewise.
1683 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1684 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1685 (s390_regmap_tdb): New regmap.
1686 (s390_supply_tdb_regset): New function.
1687 (s390_tdb_regset): New regset.
1688 (s390_linux64v2_regset_sections): Add TDB regset to list.
1689 (s390x_linux64v2_regset_sections): Likewise.
1690 (s390_regset_from_core_section): Recognize TDB core note section.
1691 (s390_core_read_description): If HWCAP indicates TE support,
1692 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1693 (s390_gdbarch_init): Handle TDB regset.
1694 (_initialize_s390_tdep): Initialize new tdescs.
1695 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1696 (have_regset_tdb): New variable.
1697 (s390_native_supply): Support register invalidation.
1698 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1699 (check_regset): Treat ENODATA as "regset exists".
1700 (s390_linux_fetch_inferior_registers): Add TDB.
1701 (s390_read_description): Check for TDB existence and select
1702 appropriate tdesc.
1703 * gdbserver/Makefile.in (clean): Add removal of new makefile
1704 targets.
1705 (s390-te-linux64.c): New makefile target.
1706 (s390x-te-linux64.c): Likewise.
1707 * gdbserver/configure.srv (srv_regobj): Append new objects
1708 s390-te-linux64.o and s390x-te-linux64.o.
1709 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1710 s390x-te-linux64.xml, and s390-tdb.xml.
1711 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1712 declaration.
1713 (tdesc_s390_te_linux64): Likewise.
1714 (init_registers_s390x_te_linux64): Likewise.
1715 (tdesc_s390x_te_linux64): Likewise.
1716 (s390_check_regset): Treat ENODATA as "regset exists".
1717 (s390_arch_setup): Add TDB regset support.
1718 (initialize_low_arch): Initialize registers for new tdescs.
1719
1720 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1721
1722 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1723 (S390_IS_FPREGSET_REGNUM): New macro.
1724 * s390-tdep.c (s390_dwarf_regmap): Make const.
1725 (regnum_is_gpr_full): New function for replacing repeated code.
1726 (s390_pseudo_register_name): Use it.
1727 (s390_pseudo_register_type): Likewise.
1728 (s390_pseudo_register_read): Likewise.
1729 (s390_pseudo_register_write): Likewise.
1730 (s390_unwind_pseudo_register): Likewise.
1731 (s390_regmap_gregset): New format for regmap.
1732 (s390x_regmap_gregset): Likewise.
1733 (s390_regmap_fpregset): Likewise.
1734 (s390_regmap_upper): Likewise.
1735 (s390_regmap_last_break): Likewise.
1736 (s390_regmap_system_call): Likewise.
1737 (s390_supply_regset): Adjust to new regmap format.
1738 (s390_collect_regset): Likewise.
1739 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1740 (s390_native_collect): Likewise.
1741 (supply_gregset): Likewise.
1742 (fill_gregset): Likewise.
1743 (supply_fpregset): Likewise.
1744 (fill_fpregset): Likewise.
1745 (fetch_regset): Likewise.
1746 (store_regset): Likewise.
1747 (s390_linux_fetch_inferior_registers): Likewise.
1748 (s390_linux_fetch_inferior_registers): Likewise.
1749
1750 2013-09-12 Andrew Pinski <apinski@cavium.com>
1751
1752 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1753
1754 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1755
1756 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1757
1758 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
1759
1760 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1761
1762 2013-09-06 Pedro Alves <palves@redhat.com>
1763
1764 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1765 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1766 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1767 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1768 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1769 gdb_stdlog.
1770
1771 2013-09-06 Pedro Alves <palves@redhat.com>
1772
1773 * remote-sim.c (dump_mem): Constify buf parameter.
1774 gdbsim_xfer_inferior_memory): Rename to ...
1775 (gdbsim_xfer_memory): ... this. Adjust interface as
1776 target_xfer_partial helper.
1777 (gdbsim_xfer_partial): New function.
1778 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1779 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1780
1781 2013-09-06 Pedro Alves <palves@redhat.com>
1782
1783 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1784 host_address_to_string, and send debug output to gdb_stdlog.
1785
1786 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1787
1788 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1789 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1790 gdb_target_obs for cris target.
1791 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1792 (cris_gdbarch_init): Move calls to
1793 set_gdbarch_fetch_tls_load_module_address and
1794 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1795 Add call to gdbarch_init_osabi.
1796 * cris-linux-tdep.c: New file.
1797 * cris-tdep.h: New file.
1798
1799 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1800
1801 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1802 to deprecated_init_ui_hook.
1803
1804 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1805
1806 * cli/cli-interp.c (_initialize_cli_interp): Add a
1807 command_loop_proc to interp_procs.
1808 * event-top.c (cli_command_loop): Change signature to match
1809 interp_command_loop_ftype.
1810 * event-top.h (cli_command_loop): Same.
1811 * interps.c (interp_new): Require every interpreter to have a
1812 command_loop_proc.
1813 (current_interp_command_loop): Just call the command_loop_proc on
1814 the current interpreter.
1815 * tui/tui-interp.c (_initialize_tui_interp): Add a
1816 command_loop_proc to interp_procs.
1817
1818 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1819
1820 * cris-tdep.c (cris_gdbarch_init): Add call to
1821 get_gdbarch_fetch_tls_load_module_address.
1822
1823 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1824
1825 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1826 (cris_elf_gregset_t): Rename from elf_gregset_t.
1827 (crisv32_elf_gregset_t): Adjust.
1828 (cris_supply_gregset, fetch_core_registers): Adjust.
1829
1830 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1831
1832 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1833
1834 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
1835
1836 * defs.h (deprecated_command_loop_hook): Remove, including
1837 references in comments.
1838 * interps.c (current_interp_command_loop): No longer use
1839 deprecated_command_loop_hook.
1840 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1841 setup.
1842 * top.c (deprecated_command_loop_hook): Remove.
1843
1844 2013-09-05 Pedro Alves <palves@redhat.com>
1845
1846 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1847 local is now int instead of ULONGEST. Print it with %d
1848 instead of paddress.
1849
1850 2013-09-05 Tristan Gingold <gingold@adacore.com>
1851
1852 * MAINTAINERS: Remove avr maintainership.
1853
1854 2013-09-05 Pedro Alves <palves@redhat.com>
1855
1856 * findvar.c (value_of_register): Rework in terms of
1857 value_of_register_lazy.
1858
1859 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1860
1861 * symfile.c (add_symbol_file_command): Remove trailing
1862 whitespaces and blank line after comment.
1863
1864 2013-09-05 Pedro Alves <palves@redhat.com>
1865
1866 * tui/tui-regs.c (tui_register_format): Don't look at the
1867 register's name here. Return string representing register
1868 value instead of storing it in the data element.
1869 (tui_get_register): Compare register string representations
1870 instead of register value states and contents.
1871
1872 2013-09-05 Pedro Alves <palves@redhat.com>
1873
1874 PR tui/15933
1875 * tui/tui-regs.c (tui_show_registers): Show registers of the
1876 selected frame, not the current frame.
1877
1878 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
1879
1880 * MAINTAINERS (Write After Approval): Add myself to the list.
1881
1882 2013-09-04 Doug Evans <dje@google.com>
1883
1884 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1885 (queue_and_load_dwo_tu): New function.
1886 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1887 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1888 Make dependent_cu optional.
1889 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1890 and an older .gdb_index is in use, queue and load all its TUs too.
1891
1892 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1893
1894 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1895 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1896 variable search_flags.
1897 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1898 (OPF_RETURN_REALPATH): ... here.
1899 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1900 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1901 call. Twice.
1902 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1903 openp call.
1904 * solib.c (solib_find): Likewise. Four times.
1905 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1906 in the function comment and for the realpath_fptr variable.
1907 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1908 (find_and_open_source): Likewise. Twice.
1909 * symfile.c (symfile_bfd_open): Likewise, also twice.
1910
1911 2013-09-04 Doug Evans <dje@google.com>
1912
1913 * progspace.c (save_current_space_and_thread): Remove unnecessary
1914 call to save_current_inferior.
1915
1916 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
1917
1918 * sh64-tdep.c (sh64_do_register): Return after printing message
1919 about unavailable register contents.
1920
1921 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1922 Pedro Alves <palves@redhat.com>
1923
1924 * symfile.c (add_symbol_file_command): Error out on unknown
1925 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1926 options and collapse into single conditional branch.
1927
1928 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
1929
1930 * inf-child.c (inf_child_follow_fork): New parameter
1931 detach_fork.
1932 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1933 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1934 * inferior.h (detach_fork): Remove.
1935 * infrun.c (detach_fork): Adjust comment and make it
1936 static.
1937 (follow_fork): Pass detach_fork parameter to
1938 target_follow_fork.
1939 * linux-nat.c (linux_child_follow_fork): New parameter
1940 detach_fork.
1941 * target.c (target_follow_fork): New parameter detach_fork.
1942 Pass detach_fork as parameter and print its value.
1943 * target.h (struct target_ops) <to_follow_fork>: New int
1944 parameter.
1945 (target_follow_fork): New parameter detach_fork.
1946
1947 2013-09-03 Joel Brobecker <brobecker@adacore.com>
1948
1949 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1950 Replace sec->bfd by sec->the_bfd_section->owner.
1951
1952 2013-09-03 Yao Qi <yao@codesourcery.com>
1953
1954 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1955 from linux_has_shared_address_space.
1956 (linux_has_shared_address_space): Call linux_is_uclinux.
1957 * linux-tdep.h (linux_is_uclinux): Declare.
1958 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1959 linux_is_uclinux.
1960
1961 2013-09-03 Yao Qi <yao@codesourcery.com>
1962
1963 * config/djgpp/fnchange.lst: Remove entry of
1964 i386-interix-nat.c and i386-interix-tdep.c.
1965 * configure.ac: Remove '*-*-interix*'.
1966 * configure: Re-generated.
1967 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1968 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1969 obsolete comments.
1970 * osabi.c (gdb_osabi_names): Remove "Interix".
1971
1972 2013-09-03 Yao Qi <yao@codesourcery.com>
1973
1974 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1975
1976 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1977
1978 * record.h (record_print_flag) <record_print_src_line,
1979 record_print_insn_range>: Rename into ...
1980 (record_print_flag) <record_print_src_line,
1981 record_print_insn_range>: ... this. Update all users.
1982
1983 2013-09-02 Pierre Muller <muller@sourceware.org>
1984
1985 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1986 error code.
1987
1988 2013-09-02 Pierre Muller <muller@sourceware.org>
1989
1990 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1991 by use of plongest function.
1992
1993 2013-09-02 Tristan Gingold <gingold@adacore.com>
1994
1995 * NEWS: Add entry mentioning support for native Windows x64
1996 SEH data.
1997
1998 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1999 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2000 (struct amd64_windows_frame_cache): New struct.
2001 (amd64_windows_w2gdb_regnum): New global.
2002 (pc_in_range, amd64_windows_frame_decode_epilogue)
2003 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2004 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2005 (amd64_windows_frame_this_id): New functions.
2006 (amd64_windows_frame_unwind): New static global.
2007 (amd64_windows_skip_prologue): New function.
2008 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2009 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2010 with amd64_windows_skip_prologue.
2011
2012 2013-08-30 Joel Brobecker <brobecker@adacore.com>
2013
2014 GDB 7.6.1 released.
2015
2016 2013-08-30 Pedro Alves <palves@redhat.com>
2017
2018 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2019 SRC_AND_LOC.
2020
2021 2013-08-30 Pedro Alves <palves@redhat.com>
2022
2023 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2024 warning text.
2025
2026 2013-08-30 Pedro Alves <palves@redhat.com>
2027
2028 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2029 Adjust arguments to print_stack_frame.
2030
2031 2013-08-30 Pedro Alves <palves@redhat.com>
2032
2033 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2034
2035 2013-08-30 Pedro Alves <palves@redhat.com>
2036
2037 * frame.h (show_and_print_stack_frame): Delete declaration.
2038
2039 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2040
2041 PR python/15461
2042
2043 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2044 (archpy_name): Check for valid architecture.
2045 (archpy_disassemble): Ditto.
2046
2047 2013-08-29 Joel Brobecker <brobecker@adacore.com>
2048
2049 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2050 instead of "long long" in call to ptrace64.
2051
2052 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
2053
2054 * mi/mi-interp.c (mi_command_loop): Change signature to match
2055 interp_command_loop_ftype.
2056 (mi1_command_loop): Remove.
2057 (mi2_command_loop): Remove.
2058 (mi3_command_loop): Remove.
2059 (mi_interpreter_resume): Remove setting of
2060 deprecated_command_loop_hook.
2061 (_initialize_mi_interp): Set mi_command_loop as the command loop
2062 callback.
2063
2064 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2065
2066 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2067 value_type.
2068
2069 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2070
2071 * value.c (allocate_value_contents): Make static.
2072 * value.h (allocate_value_contents): Remove prototype.
2073
2074 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2075
2076 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2077 of assembling value via allocate_value_lazy and attribute setter.
2078 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2079 assembling value via allocate_value_lazy and attribute setter.
2080 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2081 assembling value via allocate_value_lazy and attribute setter.
2082
2083 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2084
2085 * value.c (value_from_contents_and_address): Replace allocate_value and
2086 memcpy with value_from_contents.
2087
2088 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2089
2090 * python/py-framefilter.c (py_print_frame): Remove usage of
2091 PyString_AsString. Use python_string_to_host_string instead.
2092 Refactor function to work with a string as a new allocation
2093 instead of a pointer.
2094 (py_print_frame): Ditto.
2095 * python/lib/gdb/frames.py (return_list): Cain iterators together
2096 instead of adding them as a list.
2097 (_sort_list): Call return_list, and remove duplicate code.
2098 (execute_frame_filters): Convert iterator to a list with list().
2099 * python/lib/gdb/command/frame_filters.py
2100 (SetFrameFilterPriority._set_filter_priority): Convert priority
2101 attribute to an integer.
2102 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2103 wrapper function __next__.
2104 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2105 define as "str".
2106
2107 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2108
2109 PR python/15752
2110 * python/py-framefilter.c (apply_frame_filter): Check
2111 gdb_python_initialized. Exit if the Python frame-filter code
2112 cannot be initialized.
2113
2114 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2115
2116 PR cli/15842
2117 * top.c (print_gdb_version): Remove erroneous newline after help
2118 text.
2119
2120 2013-08-29 Yao Qi <yao@codesourcery.com>
2121
2122 * varobj.c (install_dynamic_child): Remove trailing space.
2123 Add one blank line after variable declaration.
2124
2125 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2126
2127 PR gdb/15415
2128 * corefile.c (get_exec_file): Use exec_filename.
2129 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2130 * exec.c (exec_close): Free EXEC_FILENAME.
2131 (exec_file_attach): New variable canonical_pathname. Use
2132 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2133 EXEC_FILENAME.
2134 * exec.h (exec_filename): New.
2135 * inferior.c (print_inferior, inferior_command): Use
2136 PSPACE_EXEC_FILENAME.
2137 * mi/mi-main.c (print_one_inferior): Likewise.
2138 * progspace.c (clone_program_space, print_program_space): Likewise.
2139 * progspace.h (struct program_space): New field pspace_exec_filename.
2140 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2141 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2142
2143 2013-08-28 Will Newton <will.newton@linaro.org>
2144
2145 * common/linux-ptrace.c: Include stdint.h unconditionally.
2146
2147 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2148
2149 Code cleanup.
2150 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2151
2152 2013-08-28 Yao Qi <yao@codesourcery.com>
2153 Pedro Alves <palves@redhat.com>
2154
2155 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2156 instead of stdio_fileopen.
2157 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2158 .Call stderr_fileopen instead of stdio_fileopen.
2159 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2160 [__MINGW32__] (stderr_file_fputs): New function.
2161 (stderr_fileopen): New function.
2162 * ui-file.h (stderr_fileopen): Declare.
2163
2164 2013-08-27 Doug Evans <dje@google.com>
2165
2166 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2167 (struct dwarf2_per_cu_data): Ditto.
2168 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2169 (process_imported_unit_die): Ditto.
2170 (follow_die_sig_1): Simplify assert.
2171
2172 2013-08-27 Pedro Alves <palves@redhat.com>
2173
2174 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2175 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2176 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2177 windows_xfer_memory directly.
2178 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2179
2180 2013-08-27 Pedro Alves <palves@redhat.com>
2181
2182 * darwin-nat.c (darwin_xfer_memory): Delete.
2183 (_initialize_darwin_inferior): Don't install a
2184 deprecated_xfer_memory method.
2185
2186 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2187 Yao Qi <yao@codesourcery.com>
2188
2189 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2190 (parse_no_frames_option): Remove.
2191 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2192 (mi_cmd_stack_list_args): Adjust.
2193 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2194 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2195 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2196 Caller update.
2197 (list_args_or_locals): New parameter 'skip_unavailable'.
2198 Handle it.
2199 * valprint.c (scalar_type_p): Rename to ...
2200 (val_print_scalar_type_p): ... this. Make extern.
2201 (val_print, value_check_printable): Adjust.
2202 * valprint.h (val_print_scalar_type_p): Declare.
2203 * value.c (value_entirely_unavailable): New function.
2204 * value.h (value_entirely_unavailable): Declare.
2205
2206 * NEWS: Mention the new option "--skip-unavailable" to MI
2207 commands '-stack-list-locals', '-stack-list-arguments' and
2208 '-stack-list-variables'.
2209
2210 2013-08-27 Yao Qi <yao@codesourcery.com>
2211
2212 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2213 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2214 options.
2215 * mi/mi-getopt.c (mi_getopt): Remove.
2216 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2217 'error_on_unknown'.
2218 (mi_getopt): Call mi_getopt_1.
2219 (mi_getopt_silent): New.
2220 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2221
2222 2013-08-26 Doug Evans <dje@google.com>
2223
2224 PR symtab/15885
2225 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2226 .gdb_index is in use.
2227 * symfile.c (reread_symbols): Reset objfile->sf.
2228
2229 * NEWS: Document "mt print objfiles" now takes optional regexp.
2230 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2231 regexp of objfiles to print.
2232 (_initialize_symmisc): Update doc string for "mt print objfiles".
2233
2234 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2235 missing debug info checks.
2236
2237 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2238 Ulrich Weigand <uweigand@de.ibm.com>
2239
2240 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2241 line tables generated by XLC compiled binaries.
2242
2243 2013-08-23 Doug Evans <dje@google.com>
2244
2245 * symmisc.c (dump_symtab): Delete prototype.
2246 (dump_msymbols, dump_objfile): Ditto.
2247 (maintenance_info_symtabs): Mark as dont_repeat.
2248 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2249
2250 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2251 debugging printf to better location.
2252
2253 2013-08-23 Pedro Alves <palves@redhat.com>
2254
2255 * target.c (target_read_live_memory): Change type of 'ret' local
2256 to LONGEST.
2257
2258 2013-08-23 Pedro Alves <palves@redhat.com>
2259
2260 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2261 (remote_read_bytes): Change return type to LONGEST, and adjust to
2262 return a target_xfer_error on error.
2263 (remote_xfer_memory): Delete.
2264 (remote_flash_write): Change type of 'ret' local to LONGEST.
2265 (remote_xfer_partial, remote_xfer_partial): Adjust.
2266 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2267
2268 2013-08-23 Pierre Muller <muller@sourceware.org>
2269
2270 ARI fix: Push # directives to start of line.
2271 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2272
2273 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2274
2275 PR gdb/15501
2276 * breakpoint.c (enable_command, disable_command): Iterate over
2277 all specified breakpoint locations.
2278
2279 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2280
2281 * common/linux-ptrace.c (linux_fork_to_function): Push #
2282 directives to the start of the line.
2283 (linux_check_ptrace_features): Fix warning message to use
2284 the "_" markup.
2285
2286 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2287
2288 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2289 nat/linux-waitpid.h.
2290 (linux-waitpid.o): New object file rule.
2291 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2292 (current_ptrace_options): Moved from linux-nat.c.
2293 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2294 parameters.
2295 (linux_fork_to_function): New function.
2296 (linux_grandchild_function): Likewise.
2297 (linux_child_function): Likewise.
2298 (linux_check_ptrace_features): New function, heavily
2299 based on linux-nat.c:linux_test_for_tracefork.
2300 (linux_enable_event_reporting): New function.
2301 (ptrace_supports_feature): Likewise.
2302 (linux_supports_tracefork): Likewise.
2303 (linux_supports_traceclone): Likewise.
2304 (linux_supports_tracevforkdone): Likewise.
2305 (linux_supports_tracesysgood): Likewise.
2306 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2307 gdbserver/linux-low.c.
2308 (linux_enable_event_reporting): New declaration.
2309 (linux_supports_tracefork): Likewise.
2310 (linux_supports_traceclone): Likewise.
2311 (linux_supports_tracevforkdone): Likewise.
2312 (linux_supports_tracesysgood): Likewise.
2313 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2314 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2315 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2316 * config/arm/linux.mh (NATDEPFILES): Likewise.
2317 * config/i386/linux.mh (NATDEPFILES): Likewise.
2318 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2319 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2320 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2321 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2322 * config/mips/linux.mh (NATDEPFILES): Likewise.
2323 * config/pa/linux.mh (NATDEPFILES): Likewise..
2324 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2325 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2326 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2327 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2328 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2329 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2330 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2331 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2332 ptrace's 4th argument's types.
2333 Check the type of PTRACE_TYPE_ARG4.
2334 * configure: Regenerate.
2335 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2336 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2337 (linux_supports_tracefork_flag): Remove.
2338 (linux_supports_tracesysgood_flag): Likewise.
2339 (linux_supports_tracevforkdone_flag): Likewise.
2340 (current_ptrace_options): Moved to
2341 common/linux-ptrace.c.
2342 (linux_tracefork_child): Remove.
2343 (my_waitpid): Remove.
2344 (linux_test_for_tracefork): Renamed to
2345 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2346 (linux_test_for_tracesysgood): Remove.
2347 (linux_supports_tracesysgood): Remove.
2348 (linux_supports_tracefork): Remove.
2349 (linux_supports_tracevforkdone): Remove.
2350 (linux_enable_tracesysgood): Remove.
2351 (linux_enable_event_reporting): Remove.
2352 (linux_init_ptrace): New function.
2353 (linux_child_post_attach): Call linux_init_ptrace.
2354 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2355 (linux_child_follow_fork): Call linux_supports_tracefork
2356 and linux_supports_tracevforkdone.
2357 (linux_child_insert_fork_catchpoint): Call
2358 linux_supports_tracefork.
2359 (linux_child_insert_vfork_catchpoint): Likewise.
2360 (linux_child_set_syscall_catchpoint): Call
2361 linux_supports_tracesysgood.
2362 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2363 * nat/linux-nat.h: New file.
2364 * nat/linux-waitpid.c: New file.
2365 * nat/linux-waitpid.h: New file.
2366
2367 2013-08-22 Samuel Bronson <naesten@gmail.com>
2368
2369 ARM Linux support for `catch syscall'.
2370 * syscalls/arm-linux.py: New file.
2371 * syscalls/arm-linux.xml: Likewise.
2372 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2373 (arm_linux_init_abi): Register the new function and syscall xml file.
2374 * data-directory/Makefile.in: Install the new syscall xml file.
2375 * NEWS: Brag about this.
2376
2377 2013-08-22 Pedro Alves <palves@redhat.com>
2378
2379 PR gdb/15871
2380 * corefile.c (target_xfer_memory_error): New function.
2381 (memory_error): Defer EIO to target_memory_error.
2382 (read_memory): Use target_xfer_partial, and handle finer-grained
2383 target xfer errors.
2384 * target.c (target_xfer_error_to_string): New function.
2385 (memory_xfer_partial_1): If memory is known to be
2386 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2387 (target_xfer_partial): Make extern.
2388 * target.h (enum target_xfer_error): New enum.
2389 (target_xfer_error_to_string): Declare function.
2390 (target_xfer_partial): Declare function.
2391 (struct target_ops) <xfer_partial>: Adjust describing comment.
2392
2393 2013-08-22 Alan Modra <amodra@gmail.com>
2394
2395 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2396 * configure.tgt: Likewise as targets.
2397
2398 2013-08-20 Doug Evans <dje@google.com>
2399
2400 * buildsym.c (subfile_stack): Move here from buildsym.h.
2401 (pending_macros): Ditto.
2402 (get_macro_table): New function.
2403 (buildsym_init): Initialize subfile_stack.
2404 * coffread.c (type_vector,type_vector_length): Moved here from
2405 buildsym.h.
2406 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2407 (coff_symtab_read): Use it.
2408 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2409 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2410 with call to get_macro_table.
2411 * stabsread.c (type_vector,type_vector_length): Moved here from
2412 buildsym.h.
2413 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2414 * buildsym.h (get_macro_table): Declare.
2415
2416 2013-08-20 Tom Tromey <tromey@redhat.com>
2417
2418 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2419 Update.
2420 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2421
2422 2013-08-20 Doug Evans <dje@google.com>
2423
2424 * blockframe.c: Remove #include "psymtab.h".
2425 * cp-support.c: Ditto.
2426 * source.c: Ditto.
2427 * stack.c: Ditto.
2428
2429 2013-08-20 Tom Tromey <tromey@redhat.com>
2430
2431 PR python/15816:
2432 * exceptions.h (return_mask): Now an enum.
2433 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2434 enum constants.
2435
2436 2013-08-20 Tom Tromey <tromey@redhat.com>
2437
2438 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2439 get_objfile_arch.
2440 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2441 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2442 * jit.c (jit_object_close_impl): Update.
2443 * jv-lang.c (get_dynamics_objfile): Update.
2444 * linespec.c (add_minsym): Use get_dynamics_objfile.
2445 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2446 (allocate_objfile): Don't initialize 'gdbarch' field.
2447 (get_objfile_arch): Update.
2448 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2449 moved from...
2450 (struct objfile) <gdbarch>: ... here. Remove.
2451 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2452 get_objfile_arch.
2453 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2454
2455 2013-08-20 Alan Modra <amodra@gmail.com>
2456
2457 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2458 for IBM long double nan and inf.
2459 (floatformat_is_negative, floatformat_classify,
2460 floatformat_mantissa): Similarly.
2461 (floatformat_ieee_single, floatformat_ieee_double,
2462 floatformat_ieee_quad, floatformat_arm_ext,
2463 floatformat_ia64_spill): Delete unused vars.
2464 (_initialize_doublest): Delete unused function.
2465 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2466 little-endian variants of floatformat_ibm_long_double.
2467
2468 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2469
2470 * Makefile.in (SFILES): Remove common/target-common.c and
2471 add target/waitstatus.c.
2472 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2473 target/resume.h, target/wait.h and target/waitstatus.h.
2474 (COMMON_OBS): Remove target-common.o and add
2475 waitstatus.o.
2476 (target-common.o): Remove.
2477 (waitstatus.o): New target object file.
2478 * common/target-common.c: Move contents to
2479 target/waitstatus.c and remove.
2480 * common/target-common.h: Move contents to other files and
2481 remove.
2482 (enum resume_kind: Move to target/resume.h.
2483 (TARGET_WNOHANG): Move to target/wait.h.
2484 (enum target_waitkind): Move to target/waitstatus.h.
2485 (struct target_waitstatus): Likewise.
2486 * target.h: Do not include target-common.h and
2487 include target/resume.h, target/wait.h and
2488 target/waitstatus.h.
2489 * target/resume.h: New file.
2490 * target/wait.h: New file.
2491 * target/waitstatus.h: New file.
2492 * target/waitstatus.c: New file.
2493
2494 2013-08-19 Pedro Alves <palves@redhat.com>
2495
2496 * linux-nat.c (linux_test_for_tracefork)
2497 (linux_test_for_tracesysgood, linux_child_follow_fork)
2498 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2499 (linux_nat_wait_1): Extend comment.
2500 (linux_async_pipe): Add comment.
2501
2502 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2503
2504 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2505 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2506 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2507 Update to account for fact that PC is now a pseudo-register.
2508 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2509 cases for RL78_PC_REGNUM.
2510
2511 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2512
2513 PR cli/15841
2514 * top.c (quit_force): Skip writing history file
2515 if input is not from terminal.
2516
2517 2013-08-14 Tom Tromey <tromey@redhat.com>
2518
2519 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2520 resultthreadlist>: New fields.
2521 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2522 (remote_get_threadlist, remote_threadlist_iterator): Use
2523 new fields. Remove static variables.
2524
2525 2013-08-14 Tom Tromey <tromey@redhat.com>
2526
2527 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2528 remote_watch_data_address>: New fields.
2529 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2530 (process_stop_reply, remote_wait_as)
2531 (remote_check_watch_resources, remote_stopped_data_address): Update.
2532
2533 2013-08-14 Tom Tromey <tromey@redhat.com>
2534
2535 * remote.c (struct remote_state) <async_client_callback,
2536 async_client_context>: New fields.
2537 (async_client_callback, async_client_context): Remove.
2538 (remote_async_serial_handler, remote_async): Update.
2539
2540 2013-08-14 Tom Tromey <tromey@redhat.com>
2541
2542 * remote.c (sizeof_pkt): Remove.
2543 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2544
2545 2013-08-14 Tom Tromey <tromey@redhat.com>
2546
2547 * remote.c (struct remote_state) <use_threadinfo_query,
2548 use_threadextra_query>: New fields.
2549 (remote_threads_info, remote_threads_extra_info)
2550 (remote_open_1): Update.
2551
2552 2013-08-14 Tom Tromey <tromey@redhat.com>
2553
2554 * remote.c (struct remote_state) <finished_object,
2555 finished_annex, finished_offset>: New fields.
2556 (remote_read_qxfer): Use remote_state fields; remove static
2557 variables.
2558
2559 2013-08-14 Tom Tromey <tromey@redhat.com>
2560
2561 * remote.c (struct remote_state) <last_sent_step>:
2562 New field.
2563 (last_sent_step): Remove.
2564 (remote_resume, remote_wait_as): Update.
2565
2566 2013-08-14 Tom Tromey <tromey@redhat.com>
2567
2568 * remote.c (struct remote_state) <last_sent_signal>:
2569 New field.
2570 (last_sent_signal): Remove.
2571 (new_remote_state, remote_resume, remote_wait_as): Update.
2572
2573 2013-08-14 Tom Tromey <tromey@redhat.com>
2574
2575 * remote.c (struct remote_state) <last_program_signals_packet>:
2576 New field.
2577 (last_program_signals_packet): Remove.
2578 (remote_program_signals, remote_open_1): Update.
2579
2580 2013-08-14 Tom Tromey <tromey@redhat.com>
2581
2582 * remote.c (struct remote_state) <last_pass_packet>:
2583 New field.
2584 (last_pass_packet): Remove.
2585 (remote_pass_signals, remote_open_1): Update.
2586
2587 2013-08-14 Tom Tromey <tromey@redhat.com>
2588
2589 * remote.c (struct remote_state) <remote_traceframe_number>:
2590 New field.
2591 (remote_traceframe_number): Remove.
2592 (new_remote_state, remote_open_1, set_remote_traceframe)
2593 (remote_trace_find): Update.
2594
2595 2013-08-14 Tom Tromey <tromey@redhat.com>
2596
2597 * remote.c (struct remote_state) <general_thread, continue_thread>:
2598 New fields.
2599 (general_thread, continue_thread): Remove.
2600 (record_currthread, set_thread, set_general_process)
2601 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2602 (extended_remote_mourn_1): Update.
2603
2604 2013-08-14 Tom Tromey <tromey@redhat.com>
2605
2606 * remote.c (struct remote_state) <remote_desc>: New field.
2607 (remote_desc): Remove.
2608 (remote_threads_info, remote_threads_extra_info, remote_close)
2609 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2610 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2611 (remote_hostio_send_command, remote_file_put, remote_file_get)
2612 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2613 (remote_async, remote_new_objfile, set_range_stepping): Update.
2614
2615 2013-08-14 Tom Tromey <tromey@redhat.com>
2616
2617 * remote.c (remote_state): Now a pointer.
2618 (get_remote_state_raw): Update.
2619 (new_remote_state): New function.
2620 (_initialize_remote): Use new_remote_state.
2621
2622 2013-08-14 Tom Tromey <tromey@redhat.com>
2623
2624 * remote.c (remote_protocol_features): Now const.
2625
2626 2013-08-14 Tom Tromey <tromey@redhat.com>
2627
2628 * remote.c (crc32_table, crc32): Remove.
2629 (remote_verify_memory): Use xcrc32.
2630
2631 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2632
2633 * value.h (create_internalvar_type_lazy): Adjust prototype
2634 declaration.
2635
2636 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
2637
2638 * common/format.c (parse_format_string): Don't allow '#' flag for
2639 pointer arguments in format string.
2640
2641 2013-08-13 Pierre Muller <muller@sourceware.org>
2642
2643 * utils.c (init_page_info): Only call tgetnum function
2644 if rl_get_screen_size did not return useful values.
2645
2646 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2647
2648 PR breakpoints/15117
2649 * linespec.c (linespec_parse_basic): Check for convenience
2650 variable or history value while parsing.
2651
2652 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2653
2654 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2655 AVR.
2656 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2657 different signals between the generic Linux kernel implementation
2658 and AVR's.
2659 (avr_linux_gdb_signal_from_target): Delete.
2660 (avr_linux_gdb_signal_to_target): Delete.
2661 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2662
2663 2013-08-09 Doug Evans <dje@google.com>
2664
2665 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2666 entries.
2667
2668 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2669
2670 * linux-tdep.c: Define enum with generic signal numbers.
2671 (linux_gdb_signal_from_target): New function.
2672 (linux_gdb_signal_to_target): Likewise.
2673 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2674 methods to the functions above.
2675 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2676 (linux_gdb_signal_to_target): Likewise.
2677 * alpha-linux-tdep.c: Define new enum with signals different
2678 from generic Linux kernel.
2679 (alpha_linux_gdb_signal_from_target): New function.
2680 (alpha_linux_gdb_signal_to_target): Likewise.
2681 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2682 with the functions mentioned above.
2683 * avr-tdep.c: Define enum with differences between Linux kernel
2684 and AVR signals.
2685 (avr_linux_gdb_signal_from_target): New function.
2686 (avr_linux_gdb_signal_to_target): Likewise.
2687 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2688 the functions mentioned above.
2689 * sparc-linux-tdep.c: Define enum with differences between SPARC
2690 and generic Linux kernel signal numbers.
2691 (sparc32_linux_gdb_signal_from_target): New function.
2692 (sparc32_linux_gdb_signal_to_target): Likewise.
2693 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2694 to the functions defined above.
2695 * xtensa-linux-tdep.c: Define enum with differences between
2696 Xtensa and Linux kernel generic signals.
2697 (xtensa_linux_gdb_signal_from_target): New function.
2698 (xtensa_linux_gdb_signal_to_target): Likewise.
2699 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2700 to the functions defined above.
2701 * mips-linux-tdep.c: Define enum with differences between
2702 signals in MIPS and Linux kernel generic ones.
2703 (mips_gdb_signal_to_target): New function.
2704 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2705 only different signals from the Linux kernel generic.
2706 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2707 the functions defined above.
2708 * mips-linux-tdep.h (enum mips_signals): Remove.
2709
2710 2013-08-09 Pedro Alves <palves@redhat.com>
2711
2712 * avr-tdep.c (XMALLOC): Delete macro.
2713 * cli/cli-dump.c (XMALLOC): Delete macro.
2714
2715 2013-08-09 Pedro Alves <palves@redhat.com>
2716
2717 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2718 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2719 (fopen_with_cleanup, add_dump_command): Make static.
2720 * cli/cli-dump.h: Delete file.
2721 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2722 cli/cli-dump.h.
2723
2724 2013-08-09 Pedro Alves <palves@redhat.com>
2725
2726 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2727 error message.
2728
2729 2013-08-09 Pedro Alves <palves@redhat.com>
2730
2731 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2732 error message.
2733
2734 2013-08-09 Pedro Alves <palves@redhat.com>
2735
2736 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2737 (gcore_command): Use tilde_expand here, and when showing the
2738 filename to the user, show the expanded version.
2739
2740 2013-08-09 Yao Qi <yao@codesourcery.com>
2741
2742 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2743 'entryval' is set.
2744
2745 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2746
2747 * gcore.c (create_gcore_bfd): Use tilde_expand.
2748
2749 2013-08-08 Yao Qi <yao@codesourcery.com>
2750
2751 * frame.h (read_frame_local): Declare.
2752 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2753 read_frame_local.
2754 * stack.c (read_frame_local): New.
2755
2756 2013-08-08 Yao Qi <yao@codesourcery.com>
2757
2758 * mi/mi-cmd-stack.c: Update comments to function
2759 list_args_or_locals.
2760
2761 2013-08-07 Tom Tromey <tromey@redhat.com>
2762
2763 PR symtab/15028:
2764 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2765 (process_psymtab_comp_unit_reader): Use it.
2766 (process_psymtab_comp_unit): Update. Add "pretend_language"
2767 argument.
2768 (dwarf2_build_psymtabs_hard): Update.
2769 (scan_partial_symbols): Pass CU's language to
2770 process_psymtab_comp_unit.
2771
2772 2013-08-07 Tom Tromey <tromey@redhat.com>
2773
2774 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2775 (dwarf2_gdb_index_functions): Update.
2776 * psymtab.c (find_symbol_file_from_partial): Remove.
2777 (psym_functions): Update.
2778 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2779 Remove.
2780
2781 2013-08-07 Tom Tromey <tromey@redhat.com>
2782
2783 * symfile.c (set_initial_language): Look up "main" symbol
2784 and use its language.
2785 * symtab.c (find_main_filename): Remove.
2786 * symtab.h (find_main_filename): Remove.
2787
2788 2013-08-07 Tom Tromey <tromey@redhat.com>
2789
2790 * dwarf2read.c (recursively_compute_inclusions): Add
2791 "immediate_parent" argument. Set symtab's "user" field
2792 if not set.
2793 (compute_symtab_includes): Update.
2794
2795 2013-08-07 Tom Tromey <tromey@redhat.com>
2796
2797 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2798 when adding label symbols.
2799
2800 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2801 Ulrich Weigand <uweigand@de.ibm.com>
2802
2803 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2804 * configure.host (powerpc64-*-aix*): Likewise.
2805
2806 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2807 Ulrich Weigand <uweigand@de.ibm.com>
2808
2809 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2810 is defined.
2811 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2812 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2813 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2814 * configure.ac: Check for ptrace64.
2815 * configure, config.in: Regenerate.
2816
2817 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2818 Ulrich Weigand <uweigand@de.ibm.com>
2819
2820 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2821 Call ptrace64 instead of ptrace if defined.
2822 Add macro addr_ptr to take care of ptrace address argument.
2823 (pdc_read_regs): Likewise.
2824 (pdc_write_regs): Likewise.
2825 (aix_thread_resume): Likewise.
2826 (fetch_regs_kernel_thread): Likewise.
2827 (store_regs_kernel_thread): Likewise.
2828
2829 2013-08-07 Anton Blanchard <anton@samba.org>
2830
2831 * MAINTAINERS: Add myself to Write After Approval.
2832
2833 2013-08-05 Tom Tromey <tromey@redhat.com>
2834
2835 * aix-thread.c (_initialize_aix_thread): Use
2836 complete_target_initialization.
2837 * bsd-uthread.c (_initialize_bsd_uthread): Use
2838 complete_target_initialization.
2839 * dec-thread.c (_initialize_dec_thread): Use
2840 complete_target_initialization.
2841 * ravenscar-thread.c (_initialize_ravenscar): Use
2842 complete_target_initialization.
2843 * sol-thread.c (_initialize_sol_thread): Use
2844 complete_target_initialization.
2845 * spu-multiarch.c (_initialize_spu_multiarch): Use
2846 complete_target_initialization.
2847
2848 2013-08-05 Tom Tromey <tromey@redhat.com>
2849
2850 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2851 * ada-lang.c (ada_lookup_simple_minsym): Return
2852 bound_minimal_symbol.
2853 * ada-lang.h (ada_lookup_simple_minsym): Update.
2854 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2855 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2856 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2857 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2858 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2859 * minsyms.c (msymbol_objfile): Remove.
2860 (lookup_minimal_symbol_internal): New function, from
2861 lookup_minimal_symbol.
2862 (lookup_minimal_symbol): Rewrite using
2863 lookup_minimal_symbol_internal.
2864 (lookup_bound_minimal_symbol): New function.
2865 * minsyms.h (msymbol_objfile): Remove.
2866 (lookup_bound_minimal_symbol): Declare.
2867 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2868 * parse.c (write_exp_msymbol): Change parameter to a
2869 bound_minimal_symbol.
2870 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2871 * parser-defs.h (write_exp_msymbol): Update.
2872 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2873 * symfile.c (simple_read_overlay_table): Use
2874 lookup_bound_minimal_symbol.
2875 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2876 (search_symbols): Likewise.
2877 (print_msymbol_info): Take a bound_minimal_symbol argument.
2878 (symtab_symbol_info, rbreak_command): Update.
2879 * symtab.h (struct symbol_search) <msymbol>: Change type
2880 to bound_minimal_symbol.
2881 * valops.c (find_function_in_inferior): Use
2882 lookup_bound_minimal_symbol.
2883 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2884
2885 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2886
2887 Code cleanup.
2888 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2889 to ...
2890 (async_cleanup_sigint_signal_handler): ... this.
2891 (initialize_sigint_signal_handler): Remove declaration.
2892 (handle_remote_sigint): Rename the declaration to ...
2893 (async_handle_remote_sigint): ... this.
2894 (handle_remote_sigint_twice): Rename the declaration to ...
2895 (async_handle_remote_sigint_twice): ... this.
2896 (async_remote_interrupt, async_remote_interrupt_twice)
2897 (remote_interrupt): Remove the declarations.
2898 (remote_interrupt_twice): Rename the declaration ...
2899 (sync_remote_interrupt_twice): ... this.
2900 (sigint_remote_twice_token): Rename the variable to ...
2901 (async_sigint_remote_twice_token): ... this.
2902 (sigint_remote_token): Rename the variable to ...
2903 (async_sigint_remote_token): ... this.
2904 (initialize_sigint_signal_handler): Rename the function to ...
2905 (async_initialize_sigint_signal_handler): ... this. Update the name
2906 inside.
2907 (handle_remote_sigint): Rename the function to ...
2908 (async_handle_remote_sigint): ... this. Update the names inside.
2909 (handle_remote_sigint_twice): Rename the function to ...
2910 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2911 (cleanup_sigint_signal_handler): Rename the function to ...
2912 (async_cleanup_sigint_signal_handler): ... this.
2913 (remote_interrupt): Rename the function to ...
2914 (sync_remote_interrupt): this. Update the names inside.
2915 (remote_interrupt_twice): Rename the function to ...
2916 (sync_remote_interrupt_twice): this. Update the names inside.
2917 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2918 (_initialize_remote): Update the names inside.
2919
2920 2013-08-02 Tom Tromey <tromey@redhat.com>
2921
2922 PR symtab/15719:
2923 * breakpoint.c (update_watchpoint, watchpoint_check)
2924 (watch_command_1): Update.
2925 * eval.c (fetch_subexp_value): Add "preserve_errors"
2926 parameter.
2927 * ppc-linux-nat.c (check_condition): Update.
2928 * value.h (fetch_subexp_value): Update.
2929
2930 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
2931
2932 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2933 add_file_handler.
2934
2935 2013-08-01 Doug Evans <dje@google.com>
2936
2937 PR symtab/15691
2938 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2939 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2940 Add assert of sig_entry->dwo_unit == NULL.
2941 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2942 had already been read.
2943 (read_signatured_type): Set per_cu.tu_read.
2944
2945 PR symtab/15695
2946 * valops.c (value_struct_elt): Add missing call to check_typedef.
2947 (value_find_oload_method_list): Ditto.
2948
2949 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2950 effectively, struct symbol_search **.
2951 (make_cleanup_free_search_symbols): Change arg to struct
2952 symbol_search **. All callers updated.
2953 (compare_search_syms): Compare symtab file name and block as well.
2954 (search_symbols_equal): New function.
2955 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2956 New args new_head, new_tail. Result is now void. Remove dups after
2957 sorting the symbols.
2958 (search_symbols): Sort all found symbols once, after all have been
2959 found, and remove duplicates. Simplify cleanup tracking of result.
2960 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2961
2962 Further workarounds for binutils/15021.
2963 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2964 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2965 Watch for duplicate symtabs coming from type units.
2966 (compute_symtab_includes): Update call to
2967 recursively_compute_inclusions. Build vector of included symtabs
2968 instead of per_cus.
2969 * symtab.h (symtab_ptr): New typedef.
2970 (DEF_VEC_P (symtab_ptr)): New VEC type.
2971 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2972 instead.
2973
2974 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
2975
2976 * cli/cli-script.c (script_from_file): Remove use of
2977 error_pre_print.
2978 * main.c (captured_main): Remove use of error_pre_print and
2979 quit_pre_print.
2980 * utils.c (error_pre_print, quit_pre_print): Remove.
2981 * utils.h (error_pre_print, quit_pre_print): Likewise.
2982
2983 2013-08-01 Yao Qi <yao@codesourcery.com>
2984
2985 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2986 with mi_getopt.
2987 (mi_cmd_stack_list_variables): Likewise.
2988
2989 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2990
2991 * exceptions.c (deprecated_throw_reason): Remove.
2992 * exceptions.h (deprecated_throw_reason): Remove.
2993
2994 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2995
2996 * remote-mips.c (mips_error): Replace use of
2997 deprecated_throw_reason with throw_verror. Use the error message
2998 passed to mips_error as the error message for throw_verror.
2999
3000 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3001
3002 * monitor.c (monitor_interrupt_query): Replace use of
3003 deprecated_throw_reason with quit.
3004 * nto-procfs.c (interrupt_query): Likewise.
3005 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3006 * remote-mips.c (mips_kill): Likewise.
3007 * remote.c (interrupt_query): Likewise.
3008
3009 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3010
3011 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3012 with call to fatal.
3013
3014 2013-07-31 Pedro Alves <pedro@codesourcery.com>
3015 Yao Qi <yao@codesourcery.com>
3016
3017 * tracepoint.c (trace_dump_command): Select the current frame.
3018
3019 2013-07-30 Doug Evans <dje@google.com>
3020
3021 * dwarf2read.c (process_queue): Add type signature to debug output.
3022
3023 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3024
3025 * value.c (value_fetch_lazy): Mark optimized out values as such
3026 rather than raising an error.
3027
3028 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3029
3030 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3031 before checking which bits of the parent, not the child, value are
3032 valid.
3033
3034 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3035
3036 PR gdb/15715
3037 * top.c: Include "filenames.h".
3038 (set_history_filename): New function.
3039 (init_main): Install it as set hook of the "set history filename"
3040 command.
3041
3042 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3043
3044 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3045 attribute parameter.
3046 (dwarf2_const_value_data): Constify struct attribute parameter.
3047 (dwarf2_const_value): Constify struct attribute parameter.
3048 (dwarf2_const_value_attr): Constify struct attribute parameter.
3049 (lookup_die_type): Constify struct attribute parameter.
3050 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3051 (follow_die_ref_or_sig): Constify struct attribute parameter.
3052 (follow_die_ref): Constify struct attribute parameter.
3053 (follow_die_sig): Constify struct attribute parameter.
3054 (get_DW_AT_signature_type): Constify struct attribute parameter.
3055 (get_type_unit_group): Constify struct attribute parameter.
3056 (fill_in_loclist_baton): Constify struct attribute parameter.
3057 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3058 (type_unit_group): Constify struct attribute parameter.
3059
3060 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3061
3062 * dwarf2read.c (attr_form_is_block): Make argument const.
3063 (attr_form_is_section_offset): Make argument const.
3064 (attr_form_is_constant): Make argument const.
3065 (attr_form_is_ref): Make argument const.
3066
3067 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3068
3069 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3070 All uses updated.
3071 (attr_form_is_ref): Moved below attr_form_is_constant.
3072
3073 2013-07-29 Doug Evans <dje@google.com>
3074
3075 * main.c (captured_command_loop): Tweak comment.
3076
3077 * target.c (target_async_permitted_1): Fix comment.
3078
3079 * symtab.c (iterate_over_some_symtabs): Add comment.
3080
3081 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3082
3083 2013-07-27 Yao Qi <yao@codesourcery.com>
3084
3085 * NEWS: Mention that GDBserver now supports hardware
3086 watchpoints on the MIPS GNU/Linux target.
3087
3088 2013-07-27 Yao Qi <yao@codesourcery.com>
3089
3090 * Makefile.in (HFILES_NO_SRCDIR): Add
3091 common/mips-linux-watch.h.
3092 (mips-linux-watch.o): New rule.
3093 * common/mips-linux-watch.c: New.
3094 * common/mips-linux-watch.h: New.
3095 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3096 * mips-linux-nat.c: Include mips-linux-watch.h.
3097 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3098 to common/mips-linux-watch.h.
3099 (MAX_DEBUG_REGISTER): Likewise.
3100 (enum pt_watch_style): Likewise.
3101 (struct mips32_watch_regs): Likewise.
3102 (struct mips64_watch_regs): Likewise.
3103 (struct pt_watch_regs): Likewise.
3104 (struct mips_watchpoint): Likewise.
3105 (mips_linux_watch_get_irw_mask): Move to
3106 common/mips-linux-watch.c.
3107 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3108 (mips_linux_watch_get_watchlo): Likewise.
3109 (mips_linux_watch_set_watchlo): Likewise.
3110 (mips_linux_watch_get_watchhi): Likewise.
3111 (mips_linux_watch_set_watchhi): Likewise.
3112 (mips_linux_read_watch_registers): Likewise.
3113 (mips_linux_watch_type_to_irw): Likewise.
3114 (mips_linux_stopped_data_address, fill_mask): Likewise.
3115 (mips_linux_watch_try_one_watch): Likewise.
3116 (mips_linux_watch_populate_regs): Likewise.
3117
3118 2013-07-27 Yao Qi <yao@codesourcery.com>
3119
3120 * mips-linux-nat.c (get_irw_mask): Rename to ...
3121 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3122 'set' to 'n'. Update function comment. All callers changed.
3123 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3124 function comment. All callers changed.
3125 (get_num_valid): Rename to ...
3126 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3127 'set' to 'n'. Update function comment. All callers changed.
3128 (get_watchlo): Rename to ...
3129 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3130 'set' to 'n'. Update function comment. All callers changed.
3131 (set_watchlo): Rename to ...
3132 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3133 'set' to 'n'. Update function comment. All callers changed.
3134 (get_watchhi): Rename to ...
3135 (mips_linux_watch_get_watchhi): ... this. Update function
3136 comment. All callers changed.
3137 (set_watchhi): Rename to ...
3138 (mips_linux_watch_set_watchhi): ... this. Update function
3139 comment. All callers changed.
3140 (mips_linux_read_watch_registers): Update function comment.
3141 Add new parameters 'lwpid', 'watch_readback', and
3142 'watch_readback_valid'. Update.
3143 (type_to_irw): Rename to ...
3144 (mips_linux_watch_type_to_irw): ... this. Update function
3145 comment. All callers changed.
3146 (fill_mask): Update function comment.
3147 (try_one_watch): Rename to ...
3148 (mips_linux_watch_try_one_watch): ... this. Change the type
3149 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3150 (populate_regs_from_watches): Rename to ...
3151 (mips_linux_watch_populate_regs): ... this. Add parameter
3152 'current_watches'. All callers changed.
3153
3154 2013-07-27 Yao Qi <yao@codesourcery.com>
3155
3156 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3157 the code.
3158 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3159 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3160 (struct pt_watch_regs): Likewise.
3161 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3162 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3163 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3164 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3165 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3166
3167 2013-07-27 Yao Qi <yao@codesourcery.com>
3168
3169 * breakpoint.h: Include break-common.h.
3170 (enum target_hw_bp_type): Move to ...
3171 * common/break-common.h: ... here. New.
3172
3173 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3174
3175 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3176 process group regardless of having tty on stdin.
3177
3178 2013-07-25 Doug Evans <dje@google.com>
3179
3180 * linux-fork.h (detach_fork): Delete.
3181
3182 2013-07-25 Tom Tromey <tromey@redhat.com>
3183
3184 PR remote/15256, PR remote/15266:
3185 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3186 * monitor.c (monitor_detach): Use unpush_target.
3187 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3188 * remote-mips.c (mips_detach): Use unpush_target. Don't
3189 call mips_close.
3190 * remote-sim.c (gdbsim_detach): Use unpush_target.
3191 * target.c (pop_target): Remove.
3192 (pop_all_targets_above): Don't call target_close.
3193 (target_close): Assert that the target is unpushed.
3194 * target.h (pop_target): Don't declare.
3195 * tracepoint.c (tfile_open): Use unpush_target.
3196
3197 2013-07-25 Tom Tromey <tromey@redhat.com>
3198
3199 * linux-thread-db.c (init_thread_db_ops): Call
3200 complete_target_initialization.
3201 (_initialize_thread_db): Don't call add_target.
3202 * target.c (complete_target_initialization): New function.
3203 (add_target_with_completer): Call it.
3204 * target.h (complete_target_initialization): Declare.
3205
3206 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3207
3208 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3209 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3210 (HPPANBSD_SIZEOF_GREGS): New define.
3211 (hppaobsd_supply_gregset): Handle additional registers.
3212 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3213 we provide more registers now.
3214 (hppabsd_supply_gregset): Supply additional registers.
3215 (hppabsd_collect_gregset): Collect additional registers.
3216
3217 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3218
3219 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3220 (hppabsd_dwarf2_frame_init_reg): New function.
3221 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3222
3223 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3224
3225 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3226 'z' format code. Remove error for optimized out values, standard
3227 code will handle these fine.
3228
3229 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3230
3231 * NEWS: Mention new 'z' formatter.
3232 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3233 (_initialize_printcmd): Mention 'z' formatter in help text of the
3234 'x' command.
3235
3236 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3237
3238 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3239 formatting.
3240
3241 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3242
3243 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3244 interface can evaluate arguments. Fallback to the old mode if it
3245 cannot.
3246 (create_exception_master_breakpoint): Likewise.
3247 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3248 (struct sym_probe_fns elf_probe_fns): Export function above to the
3249 probe interface.
3250 * probe.c (can_evaluate_probe_arguments): New function.
3251 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3252 function pointer.
3253 (can_evaluate_probe_arguments): New function prototype.
3254 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3255 probe interface can evaluate arguments. Fallback to the old mode
3256 if it cannot.
3257 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3258 interface can evaluate arguments. Warning the user if it cannot.
3259 (stap_can_evaluate_probe_arguments): New function.
3260 (struct probe_ops stap_probe_ops): Export function above to the
3261 probe interface.
3262 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3263 New function pointer.
3264
3265 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3266
3267 * Makefile.in (SFILES): Add common/target-common.c.
3268 Add common/target-common.h to headers.
3269 (COMMON_OBS): Add target-common.o.
3270 (target-common.o): New target.
3271 * linux-nat.h (resume_kind): Move to common/target-common.h.
3272 * target.c (target_waitstatus_to_string): Move to
3273 common/target-common.c.
3274 * target.h: Include target-common.h.
3275 (target_waitkind): Move to common/target-common.h.
3276 (target_waitstatus): Likewise.
3277 (TARGET_WNOHANG): Likewise.
3278 * common/target-common.c: New file.
3279 * common/target-common.h: New file.
3280
3281 2013-07-24 Doug Evans <dje@google.com>
3282
3283 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3284 a warning.
3285
3286 2013-07-23 Yao Qi <yao@codesourcery.com>
3287
3288 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3289 parameter 'gdbarch'.
3290 (i386_stack_tramp_frame_sniffer): Caller update.
3291 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3292 parameter 'gdbarch' and 'target'.
3293 (i386_linux_core_read_description): Caller update.
3294 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3295 Likewise.
3296 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3297 declaration.
3298
3299 2013-07-23 Tom Tromey <tromey@redhat.com>
3300
3301 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3302 2013-07-22.
3303
3304 2013-07-22 Doug Evans <dje@google.com>
3305
3306 * exec.h (remove_target_sections): Delete arg abfd.
3307 * exec.c (exec_close): Update call to remove_target_sections.
3308 (remove_target_sections): Delete arg abfd.
3309 * solib.c (update_solib_list): Ditto.
3310 (reload_shared_libraries_1): Ditto.
3311 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3312 * target.h (struct target_section): Rename key to owner.
3313 All uses updated.
3314
3315 2013-07-22 Tom Tromey <tromey@redhat.com>
3316
3317 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3318
3319 2013-07-22 Tom Tromey <tromey@redhat.com>
3320
3321 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3322 Simplify cleanup handling.
3323
3324 2013-07-22 Tom Tromey <tromey@redhat.com>
3325
3326 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3327 on all return paths.
3328
3329 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3330
3331 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3332 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3333 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3334
3335 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3336
3337 * top.c (print_gdb_version): Add help, apropos description and
3338 url to online documentation.
3339
3340 2013-07-19 Hui Zhu <hui@codesourcery.com>
3341
3342 PR gdb/15692
3343 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3344
3345 2013-07-19 Yao Qi <yao@codesourcery.com>
3346
3347 * target.c (update_current_target): Change the default action
3348 of 'to_traceframe_info' from tcomplain to return_zero.
3349 * target.h (struct target_ops) <to_traceframe_info>: Add more
3350 comments.
3351 * valops.c (read_value_memory): Call
3352 traceframe_available_memory unconditionally.
3353
3354 2013-07-18 Yao Qi <yao@codesourcery.com>
3355
3356 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3357 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3358 symbol without prefix. If found, set its type to
3359 'mst_solib_trampoline'.
3360
3361 2013-07-17 Doug Evans <dje@google.com>
3362
3363 * NEWS: Mention "set print raw frame-arguments".
3364 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3365 * stack.c (print_raw_frame_arguments): New static global.
3366 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3367 (_initialize_stack): New command "set/show print raw frame-arguments".
3368 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3369 (set_print_raw, show_print_raw): New functions.
3370 (_initialize_valprint): New prefix command "set/show print raw".
3371 * valprint.h (value_print_options): Improve comments.
3372
3373 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3374 of all *list variables.
3375
3376 * gdbcmd.h (togglelist): Delete.
3377 * cli/cli-cmds.c (togglelist): Delete.
3378 (init_cmd_lists): Update.
3379 * cli/cli-cmds.h (togglelist): Delete.
3380
3381 2013-07-17 Tom Tromey <tromey@redhat.com>
3382
3383 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3384 dwarf2_per_objfile.
3385
3386 2013-07-16 Doug Evans <dje@google.com>
3387
3388 * nto-tdep.c (nto_relocate_section_addresses): Update,
3389 target_section.bfd deleted.
3390 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3391 * s390-tdep.c (s390_load): Ditto.
3392 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3393
3394 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3395
3396 * common/format.c (parse_format_string): Add checks for NULL
3397 character before calling strchr.
3398
3399 2013-07-16 Doug Evans <dje@google.com>
3400
3401 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3402 temp_pathname argument.
3403 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3404 when opening the file fails.
3405
3406 * target.h (struct target_section): Delete member bfd.
3407 All users updated to use the_bfd_section->owner instead.
3408 * exec.c (add_to_section_table): Assert bfd is expected value.
3409 Remove initialization of target_section.bfd.
3410 (remove_target_sections): Update.
3411 (section_table_available_memory): Update.
3412 (section_table_xfer_memory_partial): Update.
3413 (print_section_info): Update.
3414 (exec_set_section_address): Update.
3415 * record-full.c (record_full_core_xfer_partial): Update.
3416 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3417 * solib-target.c (solib_target_relocate_section_addresses): Update.
3418 * symfile.c (build_section_addr_info_from_section_table): Update.
3419 * target.c (memory_xfer_live_readonly_partial): Update.
3420 (memory_xfer_partial_1): Update.
3421
3422 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3423
3424 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3425 now available for embedded (BookE) and server (BookS) processors,
3426 correct mentions of 'booke' and adjust comments accordingly in order to
3427 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3428 (have_ptrace_booke_interface): Rename function and variable
3429 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3430 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3431 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3432 'hwdebug_point_cmp'. Update all uses.
3433 (booke_find_thread_points_by_tid): Rename function
3434 'booke_find_thread_points_by_tid' to
3435 'hwdebug_find_thread_points_by_tid'. Update all uses.
3436 (booke_insert_point): Rename function 'booke_insert_point' to
3437 'hwdebug_insert_point'. Update all uses.
3438 (booke_remove_point): Rename function 'booke_remove_point' to
3439 'hwdebug_remove_point'. Update all uses.
3440
3441 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3442
3443 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3444 numbers with enum values.
3445
3446 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3447
3448 PR threads/13217
3449 * thread.c (thread_apply_all_command): Check for valid threads
3450 and thread count.
3451 (thread_array_cleanup): New struct.
3452 (set_thread_refcount): New function.
3453
3454 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3455
3456 * infcmd.c (default_print_one_register_info): Reuse function
3457 print_hex_chars.
3458
3459 2013-07-10 Tom Tromey <tromey@redhat.com>
3460
3461 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3462 (ada-exp.o): New target.
3463
3464 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3465
3466 * mt-tdep.c (mt_registers_info): Call
3467 get_no_prettyformat_print_options instead of
3468 get_raw_print_options (regression by last patch from Doug
3469 Evans).
3470
3471 2013-07-09 Pedro Alves <palves@redhat.com>
3472
3473 Checked in by Joel Brobecker <brobecker@adacore.com>.
3474 * ada-lang.c (coerce_unspec_val_to_type): Use
3475 value_optimized_out_const.
3476 * value.c (value_optimized_out_const): New function.
3477 * value.h (value_optimized_out_const): New declaration.
3478
3479 2013-07-09 Doug Evans <dje@google.com>
3480
3481 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3482 Enum values rename as well. All uses updated.
3483 * valprint.h (value_print_options): Rename member pretty to
3484 pretty format. Rename member prettyprint_arrays to
3485 prettyformat_arrays. Rename member prettyprint_structs to
3486 prettyformat_structs. All uses updated.
3487 (get_no_prettyformat_print_options): Renamed from
3488 get_raw_print_options.
3489 * valprint.c (get_no_prettyformat_print_options): Renamed from
3490 get_raw_print_options. All callers updated.
3491 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3492 All callers updated.
3493 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3494 All callers updated.
3495 (_initialize_valprint): Improve help text for "set print pretty" and
3496 "set print arrays".
3497
3498 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3499
3500 * value.c (value_bits_valid): Revert previous change, and change
3501 by Pedro on 2013-07-04, due to regressions in
3502 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3503
3504 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3505 Pedro Alves <palves@redhat.com>
3506
3507 * value.c (value_bits_valid): If the value is not lval_computed
3508 or has no check validity handler then the answer is the
3509 optimized_out flag, otherwise defer to the handler.
3510
3511 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3512
3513 * top.c (print_gdb_configuration): Explain in output of
3514 --configuration what does "relocatable" mean.
3515
3516 * main.c (print_gdb_help): Regroup options in the --help text.
3517 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3518 the relevant discussions.
3519
3520 2013-07-06 Yao Qi <yao@codesourcery.com>
3521
3522 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3523 Remove parameter 'lsal'.
3524 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3525 to inner block. Caller update.
3526 (base_breakpoint_create_breakpoints_sal): Update.
3527 (bkpt_create_breakpoints_sal): Likewise.
3528 (tracepoint_create_breakpoints_sal): Likewise.
3529 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3530 element 0 of vector 'canonical->sals'.
3531
3532 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3533
3534 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3535 register number instead of the pseudo register one.
3536 (rs6000_dwarf2_reg_to_regnum): Likewise.
3537
3538 2013-07-04 Pedro Alves <palves@redhat.com>
3539
3540 * findvar.c (value_of_register): Use allocate_optimized_out_value
3541 if the register has been optimized out, instead of
3542 set_value_optimized_out.
3543 * frame-unwind.c (frame_unwind_got_optimized): Use
3544 allocate_optimized_out_value.
3545
3546 2013-07-04 Pedro Alves <palves@redhat.com>
3547
3548 * value.c (value_bits_valid): If the value is not lval_computed,
3549 or doesn't have a check_validity hook, assume the value is entirely
3550 valid.
3551
3552 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3553
3554 * stack.c (read_frame_arg): No longer fetch lazy values.
3555 * value.c (value_optimized_out): If the value is not already
3556 marked optimized out, and is lazy then fetch it.
3557 (value_primitive_field): Move optimized out check to later in the
3558 function, after we have loaded any lazy values.
3559 (value_fetch_lazy): Use optimized out flag directly rather than
3560 calling optimized_out method.
3561
3562 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3563
3564 * valops.c: Don't include "user-regs.h".
3565 (value_fetch_lazy): Moved to value.c.
3566 * value.c: Include "user-regs.h".
3567 (value_fetch_lazy): Moved from valops.c.
3568
3569 2013-07-04 Yao Qi <yao@codesourcery.com>
3570
3571 Revert:
3572 2013-06-27 Yao Qi <yao@codesourcery.com>
3573
3574 * common/create-version.sh: Update comments. Handle the case
3575 that TARGET_ALIAS is empty.
3576
3577 2013-07-03 Pedro Alves <palves@redhat.com>
3578
3579 * Makefile.in (config.status): Depend on development.sh.
3580 (aclocal_m4_deps): Add libmcheck.m4.
3581 * acinclude.m4: Include libmcheck.m4.
3582 * configure.ac: Source development.sh instead of setting
3583 'development' here. --enable-libmcheck/--disable-libmcheck code
3584 factored out to GDB_AC_LIBMCHECK. Run it.
3585 * development.sh: New file.
3586 * libmcheck.m4: New file.
3587 * configure: Regenerate.
3588
3589 2013-07-02 Tom Tromey <tromey@redhat.com>
3590
3591 * contrib/ari/update-web-ari.sh: Update for version.in change.
3592
3593 2013-07-02 Tom Tromey <tromey@redhat.com>
3594
3595 * common/ptid.h: Comment fixes.
3596
3597 2013-07-01 Tom Tromey <tromey@redhat.com>
3598
3599 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3600 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3601 (dwarf2_read_index, create_all_comp_units): Update.
3602
3603 2013-07-01 Tom Tromey <tromey@redhat.com>
3604
3605 * configure.ac (build_warnings): Add -Wold-style-definition.
3606 * configure: Rebuild.
3607 * machoread.c (_initialize_machoread): Use "(void)".
3608 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3609 use "(void)".
3610
3611 2013-07-01 Tom Tromey <tromey@redhat.com>
3612
3613 * configure.ac (build_warnings): Add -Wold-style-declaration.
3614 * configure: Rebuild.
3615 * dsrec.c (make_srec): Use "static const", not "const static".
3616 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3617 not "const static".
3618 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3619 Use "static const", not "const static".
3620 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3621 not "const static".
3622 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3623 not "const static".
3624 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3625 not "const static".
3626 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3627 not "const static".
3628 (v850_dbtrap_breakpoint_from_pc): Likewise.
3629 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3630 not "const static".
3631
3632 2013-07-01 Tom Tromey <tromey@redhat.com>
3633
3634 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3635 * configure: Rebuild.
3636
3637 2013-07-01 Pedro Alves <palves@redhat.com>
3638
3639 * defs.h: Include "pathmax.h".
3640 * utils.c: Don't include sys/param.h.
3641 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3642 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3643 instead of MAXPATHLEN.
3644 * solib-sunos.c: Don't include sys/param.h.
3645 * xcoffread.c: Don't include sys/param.h.
3646 * bsd-kvm.c: Don't include sys/param.h.
3647 * darwin-nat.c: Don't include sys/param.h.
3648 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3649 * darwin-nat-info.c: Don't include sys/param.h.
3650 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3651 MAXPATHLEN.
3652 * i386obsd-nat.c: Don't include sys/param.h.
3653 * inf-child.c: Don't include sys/param.h.
3654 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3655 * linux-fork.c: Don't include sys/param.h.
3656 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3657 * linux-nat.c: Don't include sys/param.h.
3658 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3659 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3660 * m68klinux-nat.c: Don't include sys/param.h.
3661 * nbsd-nat.c: Don't include sys/param.h.
3662 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3663 * ppc-linux-nat.c: Don't include sys/param.h.
3664 * rs6000-nat.c: Don't include sys/param.h.
3665 * spu-linux-nat.c. Don't include sys/param.h.
3666 * windows-nat.c: Don't include sys/param.h.
3667 * xtensa-linux-nat.c: Don't include sys/param.h.
3668 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3669
3670 2013-07-01 Pedro Alves <palves@redhat.com>
3671
3672 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3673 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3674 * gnulib/aclocal.m4: Regenerate.
3675 * gnulib/config.in: Regenerate.
3676 * gnulib/configure: Regenerate.
3677 * gnulib/import/pathmax.h: New file.
3678 * gnulib/import/Makefile.am: Regenerate.
3679 * gnulib/import/Makefile.in: Regenerate.
3680 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3681 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3682 * gnulib/import/m4/pathmax.m4: New file.
3683
3684 2013-07-01 Pedro Alves <palves@redhat.com>
3685
3686 * configure.ac (GDBINIT): Define, depending on host.
3687 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3688 * top.c (PATH_MAX): Delete fallback definition.
3689 (GDBINIT_FILENAME): Delete.
3690 (gdbinit): Reimplement as const char array set to the GDBINIT
3691 string constant.
3692 * top.h (gdbinit): Make const.
3693 * configure, config.in: Regenerate.
3694
3695 2013-07-01 Pedro Alves <palves@redhat.com>
3696
3697 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3698 * cli/cli-cmds.h (source_script): Likewise.
3699 * exceptions.c (catch_command_errors_const): New function.
3700 * exceptions.h (catch_command_errors_const): Declare.
3701 * main.c (get_init_files): Make parameters const, and adjust.
3702 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3703 'local_gdbinit' locals const. Adjust to use
3704 catch_command_errors_const.
3705 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3706 'local_gdbinit' locals const.
3707
3708 2013-07-01 Pedro Alves <palves@redhat.com>
3709
3710 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3711 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3712 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3713 <unistd.h>.
3714
3715 2013-07-01 Pedro Alves <palves@redhat.com>
3716
3717 Import the "unistd" gnulib module.
3718 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3719 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3720 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3721 import/m4/unistd_h.m4.
3722 * gnulib/aclocal.m4: Renenerate.
3723 * gnulib/config.in: Renenerate.
3724 * gnulib/configure: Renenerate.
3725 * gnulib/import/Makefile.am: Renenerate.
3726 * gnulib/import/Makefile.in: Renenerate.
3727 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3728 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3729 * gnulib/import/m4/off_t.m4: New file.
3730 * gnulib/import/m4/ssize_t.m4: New file.
3731 * gnulib/import/m4/sys_types_h.m4: New file.
3732 * gnulib/import/m4/unistd_h.m4: New file.
3733 * gnulib/import/sys_types.in.h: New file.
3734 * gnulib/import/unistd.c: New file.
3735 * gnulib/import/unistd.in.h: New file.
3736
3737 2013-07-01 Pedro Alves <palves@redhat.com>
3738
3739 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3740 defined instead of checking HAVE_UNISTD_H.
3741
3742 2013-07-01 Pedro Alves <palves@redhat.com>
3743
3744 Reimport gnulib from scratch.
3745 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3746 import/m4/onceonly.m4.
3747 * gnulib/aclocal.m4: Renegerate.
3748 * gnulib/config.in: Renegerate.
3749 * gnulib/configure: Renegerate.
3750 * gnulib/import/Makefile.in: Renegerate.
3751 * gnulib/import/extra/update-copyright: Renegerate.
3752 * gnulib/import/m4/onceonly.m4: Delete.
3753
3754 2013-07-01 Pedro Alves <palves@redhat.com>
3755
3756 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3757
3758 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3759
3760 Code cleanup.
3761 * remote.c (async_remote_interrupt_twice): Make it static.
3762 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3763
3764 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3765
3766 * ia64-linux-tdep.c: Include <ctype.h>.
3767 (ia64_linux_stap_is_single_operand): New function.
3768 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3769
3770 2013-06-28 Tom Tromey <tromey@redhat.com>
3771
3772 * Makefile.in (version.c): Use version.in, not
3773 common/version.in.
3774 * common/create-version.sh: Likewise.
3775 * common/version.in: Move...
3776 * version.in: ...here.
3777
3778 2013-06-28 Pedro Alves <palves@redhat.com>
3779
3780 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3781 here.
3782 * utils.h (pagination_enabled): Declare.
3783
3784 2013-06-28 Pedro Alves <palves@redhat.com>
3785
3786 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3787 Move higher up in file.
3788
3789 2013-06-28 Tom Tromey <tromey@redhat.com>
3790
3791 * tracepoint.c (deprecated_readline_begin_hook)
3792 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3793 declare.
3794
3795 2013-06-28 Pedro Alves <palves@redhat.com>
3796
3797 PR tui/14880
3798 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3799 checking if they're available.
3800 * value.c (value_available_contents_eq): Change comment.
3801 * value.h (value_available_contents_eq): Expand comment.
3802
3803 2013-06-27 Tom Tromey <tromey@redhat.com>
3804
3805 * target.c (find_run_target): Remove.
3806 * target.h (find_run_target): Remove.
3807
3808 2013-06-27 Tom Tromey <tromey@redhat.com>
3809
3810 * corelow.c (core_gdbarch): Now static.
3811
3812 2013-06-27 Tom Tromey <tromey@redhat.com>
3813
3814 * target.c (target_struct_index): Remove.
3815
3816 2013-06-27 Pedro Alves <palves@redhat.com>
3817
3818 * infrun.c: Remove comment describing the 'stepping over runtime
3819 loader dynamic symbol resolution code' mechanism; moved to
3820 gdbint.texinfo.
3821
3822 2013-06-27 Pedro Alves <palves@redhat.com>
3823
3824 * exceptions.c (catch_command_errors): Remove spurious space.
3825 * exceptions.h (catch_command_errors): Second parameter is "arg",
3826 not "command".
3827
3828 2013-06-27 Yao Qi <yao@codesourcery.com>
3829
3830 * common/create-version.sh: Update comments. Handle the case
3831 that TARGET_ALIAS is empty.
3832
3833 2013-06-26 Pedro Alves <palves@redhat.com>
3834
3835 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3836 comment.
3837
3838 2013-06-26 Pedro Alves <palves@redhat.com>
3839
3840 * infrun.c: Update comments on stepping over runtime loader
3841 dynamic symbol resolution code.
3842
3843 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3844
3845 * ax-gdb.h (union exp_element): Forward declare.
3846 * parser-defs.h: Include expression.h.
3847
3848 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3849
3850 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3851
3852 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3853
3854 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3855
3856 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3857
3858 Fix trace-status to output proper start-time and stop-time.
3859 * tracepoint.c (trace_status_command): Fix type of printf arg to
3860 prevent improper type conversion.
3861 (trace_status_mi): Likewise.
3862
3863 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3864
3865 * mips-tdep.c (mips_next_pc): Fix a typo.
3866
3867 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3868
3869 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3870
3871 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3872 Yao Qi <yao@codesourcery.com>
3873
3874 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3875 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3876 * mi/mi-main.c (print_variable_or_computed): New function.
3877 (mi_cmd_trace_frame_collected): New function.
3878 * tracepoint.c (find_trace_state_variable_by_number): New.
3879 (struct traceframe_info): Move to tracepoint.h
3880 (struct collection_list): Likewise.
3881 (do_collect_symbol): Include locals and arguments in the
3882 collected variables list.
3883 (clear_collection_list): Clear wholly collected variables list
3884 and computed variables list.
3885 (append_exp): New function.
3886 (encode_actions_1): Include variables in the wholly
3887 collected variables list. Include memory ranges and
3888 full-fledged expressions in the computed expressions list.
3889 (encode_actions): Move some code to ...
3890 Return the cleanup chain.
3891 (encode_actions_rsp): ... here. New function.
3892 (get_traceframe_location, get_traceframe_info): Remove static.
3893 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3894 (struct collection_list): Moved from tracepoint.c. Add two
3895 new fields 'wholly_collected' and 'computed'.
3896 (find_trace_state_variable_by_number): Declare.
3897 (encode_actions): Adjust declaration.
3898 (encode_actions_rsp): Declare.
3899 (get_traceframe_info, get_traceframe_location): Declare.
3900
3901 * NEWS: Mention new MI command -trace-frame-collected.
3902
3903 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3904 Yao Qi <yao@codesourcery.com>
3905
3906 * ctf.c (ctf_traceframe_info): Push trace state variables
3907 present in the trace data into the traceframe info object.
3908 * breakpoint.c (DEF_VEC_I): Remove.
3909 * common/filestuff.c (DEF_VEC_I): Likewise.
3910 * dwarf2loc.c (DEF_VEC_I): Likewise.
3911 * mi/mi-main.c (DEF_VEC_I): Likewise.
3912 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3913 * features/traceframe-info.dtd: Add tvar element and its
3914 attributes.
3915 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3916 (build_traceframe_info): Push trace state variables present in
3917 the trace data into the traceframe info object.
3918 (traceframe_info_start_tvar): New function.
3919 (tvar_attributes): New.
3920 (traceframe_info_children): Add "tvar" element.
3921 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3922
3923 * NEWS: Mention the change in GDB and GDBserver.
3924
3925 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3926 Yao Qi <yao@codesourcery.com>
3927
3928 * tracepoint.c (trace_dump_command): Move code to ...
3929 (get_traceframe_location): ... here. New.
3930
3931 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3932 Yao Qi <yao@codesourcery.com>
3933
3934 * tracepoint.c (trace_dump_command): GDB emits an error
3935 instead of a warning when a traceframe is not selected.
3936
3937 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3938 Yao Qi <yao@codesourcery.com>
3939
3940 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3941 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3942 in collection_list.
3943 (do_clear_collection_list, init_collection_list): New.
3944 (encode_actions): Add local variables 'tracepoint_list' and
3945 'stepping_list'. Call init_collection_list and make cleanup
3946 which calls do_clear_collection_list. Don't call
3947 clear_collection_list.
3948 (_initialize_tracepoint): Delete references to
3949 'tracepoint_list' and 'stepping_list'.
3950
3951 2013-06-25 Tom Tromey <tromey@redhat.com>
3952
3953 * common/create-version.sh (date): Use "$", not "$$" in sed
3954 expression.
3955
3956 2013-06-25 Kevin Buettner <kevinb@redhat.com>
3957
3958 * NEWS (New targets): Add entry for TI MSP430.
3959
3960 2013-06-25 Yao Qi <yao@codesourcery.com>
3961
3962 * remote.c (remote_start_remote): Move code to upload tsv
3963 earlier.
3964
3965 2013-06-25 Yao Qi <yao@codesourcery.com>
3966 Hui Zhu <hui@codesourcery.com>
3967 Pedro Alves <palves@redhat.com>
3968
3969 PR breakpoints/15075
3970 PR breakpoints/15434
3971 * breakpoint.c (bpstat_stop_status): Call
3972 b->ops->after_condition_true.
3973 (update_dprintf_command_list): Don't append "continue" command
3974 to the command list of dprintf breakpoint.
3975 (base_breakpoint_after_condition_true): New function.
3976 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3977 (dprintf_after_condition_true): New function.
3978 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3979 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3980
3981 2013-06-24 Kevin Buettner <kevinb@redhat.com>
3982
3983 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3984 (ALLDEPFILES): Add msp430-tdep.c.
3985 * configure.tgt (msp430*-*-elf): New target.
3986 * msp430-tdep.c: New file.
3987
3988 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3989
3990 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3991 microMIPS synthetic symbols.
3992
3993 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3994
3995 * objfiles.h (pc_in_section): New prototype.
3996 (in_plt_section): Remove name argument, replace prototype with
3997 static inline function.
3998 * mips-tdep.h: Include "objfiles.h".
3999 (in_mips_stubs_section): New function.
4000 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4001 in_solib_call_trampoline member.
4002 (hppa_in_solib_call_trampoline): Remove name argument.
4003 * objfiles.c (pc_in_section): New function.
4004 (in_plt_section): Remove function.
4005 * mips-linux-tdep.c: Include "objfiles.h".
4006 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4007 name argument. Return 1 rather than the low 16-bit halfword of
4008 any instruction examined.
4009 (mips_linux_in_dynsym_resolve_code): Update
4010 mips_linux_in_dynsym_stub call accordingly.
4011 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4012 rather than an equivalent hand-coded sequence.
4013 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4014 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4015 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4016 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4017 in_opd_section.
4018 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4019 on call to tdep->in_solib_call_trampoline.
4020 (hppa_in_solib_call_trampoline): Remove name argument, update
4021 according to in_plt_section change.
4022 (hppa_skip_trampoline_code): Update according to in_plt_section
4023 change.
4024 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4025 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4026 Likewise.
4027 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4028 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4029 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4030 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4031 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4032 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4033 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4034 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4035 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4036 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4037 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4038 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4039 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4040
4041 2013-06-24 Joel Brobecker <brobecker@adacore.com>
4042
4043 * common/create-version.sh: Fix expansion of $host_alias
4044 and $target_alias in generation of HOST_NAME and TARGET_NAME
4045 (resp.).
4046
4047 2013-06-24 Tom Tromey <tromey@redhat.com>
4048
4049 * common/create-version.sh: New file.
4050 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4051 create-version.sh.
4052 (HFILES_NO_SRCDIR): Use common/version.h.
4053 * version.in: Move to ...
4054 * common/version.in: ... here. Replace date with "DATE".
4055 * version.h: Move to ...
4056 * common/version.h: ... here.
4057
4058 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4059
4060 * gdb/gnulib/Makefile.in: Update date in copyright header.
4061 * gdb/gnulib/configure.ac: Ditto.
4062 * gdb/gnulib/update-gnulib.sh: Ditto.
4063
4064 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4065
4066 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4067 "gdb/gnulib/import".
4068
4069 2013-06-21 Will Newton <will.newton@linaro.org>
4070
4071 * doublest.c (ldfrexp): Remove function.
4072 (convert_doublest_to_floatformat): Call frexpl instead of
4073 ldfrexp.
4074
4075 2013-06-21 Will Newton <will.newton@linaro.org>
4076
4077 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4078 * gnulib/aclocal.m4: Regenerate.
4079 * gnulib/config.in: Regenerate.
4080 * gnulib/configure: Regenerate.
4081 * gnulib/import/Makefile.am: Update.
4082 * gnulib/import/Makefile.in: Update.
4083 * gnulib/import/m4/gnulib-cache.m4: Update.
4084 * gnulib/import/m4/gnulib-comp.m4: Update.
4085 * gnulib/import/float+.h: Import.
4086 * gnulib/import/float.c: Import.
4087 * gnulib/import/float.in.h: Import.
4088 * gnulib/import/fpucw.h: Import.
4089 * gnulib/import/frexp.c: Import.
4090 * gnulib/import/frexpl.c: Import.
4091 * gnulib/import/isnan.c: Import.
4092 * gnulib/import/isnand-nolibm.h: Import.
4093 * gnulib/import/isnand.c: Import.
4094 * gnulib/import/isnanl-nolibm.h: Import.
4095 * gnulib/import/isnanl.c: Import.
4096 * gnulib/import/itold.c: Import.
4097 * gnulib/import/m4/exponentd.m4: Import.
4098 * gnulib/import/m4/exponentl.m4: Import.
4099 * gnulib/import/m4/float_h.m4: Import.
4100 * gnulib/import/m4/fpieee.m4: Import.
4101 * gnulib/import/m4/frexp.m4: Import.
4102 * gnulib/import/m4/frexpl.m4: Import.
4103 * gnulib/import/m4/isnand.m4: Import.
4104 * gnulib/import/m4/isnanl.m4: Import.
4105 * gnulib/import/m4/math_h.m4: Import.
4106 * gnulib/import/math.c: Import.
4107 * gnulib/import/math.in.h: Import.
4108
4109 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4110
4111 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4112 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4113 signature_INTEL_edx comparisons.
4114
4115 2013-06-20 Doug Evans <dje@google.com>
4116
4117 symtab/15652
4118 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4119 All callers updated.
4120 (open_dwp_file): If we can't find the dwp file, search the basename
4121 in debug-file-directory.
4122
4123 * dwarf2read.c (struct dwp_file): Fix comment.
4124 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4125
4126 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4127 better.
4128
4129 2013-06-20 Yao Qi <yao@codesourcery.com>
4130
4131 * breakpoint.c (create_breakpoint): Fix code indentation.
4132
4133 2013-06-20 Yao Qi <yao@codesourcery.com>
4134
4135 * breakpoint.c (create_breakpoints_sal_default): Remove
4136 parameter 'lsal'. Update declaration.
4137 (bkpt_create_breakpoints_sal): Caller update.
4138 (tracepoint_create_breakpoints_sal): Likewise.
4139
4140 2013-06-20 Pedro Alves <pedro@codesourcery.com>
4141 Yao Qi <yao@codesourcery.com>
4142
4143 * NEWS: Mention the new option '--skip-unavailable' of command
4144 -data-list-register-values.
4145 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4146 --skip-unavailable option. Adjust to use output_register.
4147 (output_register): Add new 'skip_unavailable' parameter.
4148 Handle it.
4149
4150 2013-06-19 Mike Frysinger <vapier@gentoo.org>
4151
4152 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4153 common/i386-gcc-cpuid.h.
4154 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4155 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4156 Copy the latest version from upstream gcc.
4157 * common/linux-btrace.c: Include i386-cpuid.h.
4158 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4159 call to i386_cpuid.
4160 (cpu_supports_btrace): Likewise.
4161 * go32-nat.c: Include i386-cpuid.h.
4162 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4163
4164 2013-06-19 Doug Evans <dje@google.com>
4165
4166 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4167 (get_section_index): Ditto.
4168
4169 2013-06-19 Tom Tromey <tromey@redhat.com>
4170
4171 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4172 "dprintf" help.
4173
4174 2013-06-18 Doug Evans <dje@google.com>
4175
4176 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4177 before using it.
4178 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4179 Move test of cu_index closer to use. Print complaint if cu_index
4180 is bad.
4181
4182 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4183
4184 * machoread.c (oso_vector): Delete this global.
4185 (macho_register_oso): Add new parameter "oso_vector_ptr".
4186 Use it instead of the "oso_vector" global.
4187 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4188 (macho_symfile_read): Use a local oso_vector, to be free'ed
4189 at the end of this function, in place of the old "oso_vector"
4190 global. Update various function calls accordingly. Use one
4191 single cleanup chain for the entire function.
4192
4193 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4194
4195 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4196 DWARF2_PER_OBJFILE by uses of DATA instead.
4197
4198 2013-06-18 Tom Tromey <tromey@redhat.com>
4199
4200 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4201 argument.
4202 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4203 Special case signals other than GDB_SIGNAL_TRAP.
4204 (explains_signal_watchpoint): New function.
4205 (base_breakpoint_explains_signal): Add 'sig' argument.
4206 (initialize_breakpoint_ops): Set 'explains_signal' method for
4207 watchpoints.
4208 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4209 signal argument.
4210 (bpstat_explains_signal): Likewise.
4211 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4212
4213 2013-06-18 Tom Tromey <tromey@redhat.com>
4214
4215 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4216
4217 2013-06-18 Tom Tromey <tromey@redhat.com>
4218
4219 * python/python.c (finish_python_initialization): Decref
4220 'pythondir' on failure path as well.
4221
4222 2013-06-18 Tom Tromey <tromey@redhat.com>
4223
4224 PR symtab/15391:
4225 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4226 after taking bits_to_skip into account. Sign extend byte_offset.
4227 * utils.h (gdb_sign_extend): Declare.
4228 * utils.c (gdb_sign_extend): New function.
4229
4230 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4231
4232 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4233
4234 2013-06-17 Pierre Muller <muller@sourceware.org>
4235
4236 * corelow.c (core_open): Print GDB signal name instead of target
4237 signal number.
4238
4239 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4240
4241 * .gitignore: Add /gcore.
4242
4243 2013-06-13 Doug Evans <dje@google.com>
4244
4245 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4246 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4247
4248 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4249
4250 * stack.c (backtrace_command_1): Fix indentation.
4251
4252 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4253
4254 * window-nat.c (thread_rec): Add missing empty line after
4255 local variable declaration.
4256
4257 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4258
4259 * windows-nat.c (thread_rec): Revert format used to print
4260 error code returned by SuspendThread from %d back to %u.
4261
4262 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4263
4264 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4265 ID in debug trace.
4266 (get_windows_debug_event): Likewise, for all debug traces.
4267
4268 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4269
4270 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4271 warning message.
4272
4273 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4274 Yao Qi <yao@codesourcery.com>
4275
4276 * mi/mi-main.c (get_register): Remove declaration.
4277 (output_register): Declare.
4278 (mi_cmd_data_list_register_values): Remove local variable
4279 'tuple_cleanup'. Move some code into output_register.
4280 (get_register): Renamed to ...
4281 (output_register): ... this. Output the register's
4282 "number" ui_out tuple here.
4283
4284 2013-06-07 Pedro Alves <palves@redhat.com>
4285
4286 * darwin-nat.c: Fix formating in copyright header.
4287 * darwin-nat.h: Likewise.
4288 * gnu-nat.c: Likewise.
4289 * machoread.c: Likewise.
4290
4291 2013-06-07 Pedro Alves <palves@redhat.com>
4292
4293 PR server/14823
4294 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4295 static. Output a global target description pointer.
4296 (init_registers_${name}): Adjust to initialize a
4297 target description structure.
4298
4299 2013-06-07 Will Newton <will.newton@linaro.org>
4300
4301 * printcmd.c (build_address_symbolic): Call
4302 gdbarch_addr_bits_remove for text minimal symbols.
4303
4304 2013-06-07 Will Newton <will.newton@linaro.org>
4305
4306 * MAINTAINERS: Add myself to Write After Approval.
4307
4308 2013-06-07 Yao Qi <yao@codesourcery.com>
4309
4310 * tracepoint.c (start_tracing): Move code to ...
4311 (trace_reset_local_state): ... here. New.
4312 (disconnect_tracing): Don't call set_current_traceframe,
4313 set_tracepoint_num, and set_traceframe_context. Call
4314 trace_reset_local_state instead.
4315 (tfile_close): Call trace_reset_local_state.
4316 * ctf.c (ctf_close): Likewise.
4317 * remote.c (remote_close): Likewise.
4318 * tracepoint.h (trace_reset_local_state): Declare.
4319
4320 2013-06-06 Doug Evans <dje@google.com>
4321
4322 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4323 and fix header docs.
4324
4325 2013-06-05 Doug Evans <dje@google.com>
4326 Keith Seitz <keiths@redhat.com>
4327
4328 PR 15519
4329 * cp-namespace.c (find_symbol_in_baseclass): Call
4330 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4331 Check result of call to lookup_symbol_static.
4332 Call lookup_static_symbol_aux unconditionally.
4333 Call check_typedef on base types before accessing them.
4334 (cp_lookup_nested_symbol): Fix comment.
4335
4336 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4337
4338 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4339 minimal symbols pointing to function descriptors.
4340
4341 2013-06-05 Tom Tromey <tromey@redhat.com>
4342
4343 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4344
4345 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4346 Pedro Alves <palves@redhat.com>
4347
4348 * remote.c (remote_wait_as): Restore signal handler before returning
4349 when GDB gets a notification.
4350
4351 2013-06-04 Gary Benson <gbenson@redhat.com>
4352
4353 PR 2328
4354 * breakpoint.h (handle_solib_event): Moved function declaration
4355 to solib.h.
4356 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4357 (bpstat_stop_status): Pass new argument to handle_solib_event.
4358 * solib.h (update_solib_breakpoints): New function declaration.
4359 (handle_solib_event): Moved function declaration from
4360 breakpoint.h.
4361 * solib.c (update_solib_breakpoints): New function.
4362 (handle_solib_event): Moved function from breakpoint.c.
4363 Updated to call solib_ops->handle_event if not NULL.
4364 * solist.h (target_so_ops): New fields "update_breakpoints" and
4365 "handle_event".
4366 * infrun.c (set_stop_on_solib_events): New function.
4367 (_initialize_infrun): Use the above for "set
4368 stop-on-solib-events".
4369 (handle_inferior_event): Pass new argument to handle_solib_event.
4370 * solib-svr4.c (probe.h): New include.
4371 (svr4_free_library_list): New forward declaration.
4372 (probe_action): New enum.
4373 (probe_info): New struct.
4374 (probe_info): New static variable.
4375 (NUM_PROBES): New definition.
4376 (svr4_info): New fields "using_xfer", "probes_table" and
4377 "solib_list".
4378 (free_probes_table): New function.
4379 (free_solib_list): New function.
4380 (svr4_pspace_data_cleanup): Free probes table and solib list.
4381 (svr4_copy_library_list): New function.
4382 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4383 (svr4_read_so_list): New parameter "prev_lm".
4384 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4385 (svr4_current_sos): New function.
4386 (probe_and_action): New struct.
4387 (hash_probe_and_action): New function.
4388 (equal_probe_and_action): Likewise.
4389 (register_solib_event_probe): Likewise.
4390 (solib_event_probe_at): Likewise.
4391 (solib_event_probe_action): Likewise.
4392 (solist_update_full): Likewise.
4393 (solist_update_incremental): Likewise.
4394 (disable_probes_interface_cleanup): Likewise.
4395 (svr4_handle_solib_event): Likewise.
4396 (svr4_update_solib_event_breakpoint): Likewise.
4397 (svr4_update_solib_event_breakpoints): Likewise.
4398 (svr4_create_solib_event_breakpoints): Likewise.
4399 (enable_break): Free probes table before creating breakpoints.
4400 Use svr4_create_solib_event_breakpoints to create breakpoints.
4401 (svr4_solib_create_inferior_hook): Free the solib list.
4402 (_initialize_svr4_solib): Initialise
4403 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4404
4405 2013-06-04 Gary Benson <gbenson@redhat.com>
4406
4407 * target.h (target_ops): New field
4408 "to_augmented_libraries_svr4_read".
4409 (target_augmented_libraries_svr4_read): New macro.
4410 * target.c (update_current_target): Handle
4411 to_augmented_libraries_svr4_read.
4412 * remote.c (remote_state): New field
4413 "augmented_libraries_svr4_read".
4414 (remote_augmented_libraries_svr4_read_feature): New function.
4415 (remote_protocol_features): Add entry for
4416 "augmented-libraries-svr4-read".
4417 (remote_augmented_libraries_svr4_read): New function.
4418 (init_remote_ops): Initialize
4419 remote_ops.to_augmented_libraries_svr4_read.
4420
4421 2013-06-04 Gary Benson <gbenson@redhat.com>
4422
4423 * NEWS: Update.
4424
4425 2013-06-04 Gary Benson <gbenson@redhat.com>
4426
4427 * objfiles.h (inhibit_section_map_updates): New function
4428 declaration.
4429 (resume_section_map_updates): Likewise.
4430 (resume_section_map_updates_cleanup): Likewise.
4431 * objfiles.c (objfile_pspace_info): Removed field
4432 "objfiles_changed_p". New fields "new_objfiles_available",
4433 "section_map_dirty" and "inhibit_updates".
4434 (allocate_objfile): Set new_objfiles_available.
4435 (free_objfile): Set section_map_dirty.
4436 (objfile_relocate1): Likewise.
4437 (in_plt_section): Likewise.
4438 (find_pc_section): Update the conditions under which the
4439 section map will be updated.
4440 (inhibit_section_map_updates): New function.
4441 (resume_section_map_updates): Likewise.
4442 (resume_section_map_updates_cleanup): Likewise.
4443
4444 2013-06-04 Gary Benson <gbenson@redhat.com>
4445
4446 * probe.h (get_probe_argument_count): New declaration.
4447 (evaluate_probe_argument): Likewise.
4448 * probe.c (get_probe_argument_count): New function.
4449 (evaluate_probe_argument): Likewise.
4450 (probe_safe_evaluate_at_pc): Use the above new functions.
4451
4452 2013-06-04 Alan Modra <amodra@gmail.com>
4453
4454 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4455 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4456 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4457 target mem reads on optional insns.
4458 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4459 ppc_insns_match_pattern calls.
4460 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4461 Add match for power7 thread safety insns, and new order of
4462 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4463 invocation in comment, and update rest of comment.
4464 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4465 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4466 (ppc64_standard_linkage2_target): Update insn offsets.
4467 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4468 stubs first. Update calls.
4469
4470 2013-06-04 Yao Qi <yao@codesourcery.com>
4471
4472 * solib.c (solib_find): Don't need dir separator if path has
4473 drive spec.
4474
4475 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4476
4477 Revert (indirectly causes a SIGSEGV):
4478 * machoread.c (macho_symfile_read): Assign first cleanup to
4479 'back_to'.
4480
4481 2013-06-03 Yao Qi <yao@codesourcery.com>
4482
4483 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4484 mi-parse.c. Make them static.
4485 (mi_all_values): Likewise.
4486 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4487 mi_parse_print_values. Make it external.
4488 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4489 Remove the declarations.
4490 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4491 * mi/mi-parse.h (mi_parse_print_values): Declare.
4492 * mi/mi-cmd-stack.c: Include mi-parse.h.
4493 (parse_print_values): Remove
4494 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4495 of parse_print_values.
4496 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4497
4498 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4499 Yao Qi <yao@codesourcery.com>
4500
4501 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4502 (encode_actions): Move code to ...
4503 (all_tracepoint_actions_and_cleanup): ... here. New.
4504 (trace_dump_command): Likewise.
4505
4506 2013-05-30 Tom Tromey <tromey@redhat.com>
4507
4508 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4509
4510 2013-05-30 Tom Tromey <tromey@redhat.com>
4511
4512 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4513 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4514 'old_chain' argument. Add 'parser_result' argument.
4515 (gdb_xml_create_parser_and_cleanup): Remove old version.
4516 (gdb_xml_parse_quick): Update.
4517 (xml_process_xincludes): Update.
4518 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4519 declare.
4520
4521 2013-05-30 Tom Tromey <tromey@redhat.com>
4522
4523 * probe.c (collect_probes): Check arguments for NULL before
4524 calling compile_rx_or_error.
4525 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4526 Remove NULL return.
4527
4528 2013-05-30 Tom Tromey <tromey@redhat.com>
4529
4530 * infrun.c (adjust_pc_after_break): Introduce an outer null
4531 cleanup.
4532
4533 2013-05-30 Tom Tromey <tromey@redhat.com>
4534
4535 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4536
4537 2013-05-30 Tom Tromey <tromey@redhat.com>
4538
4539 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4540 for 'old_chain'. Do not check 'head' before processing
4541 cleanups.
4542
4543 2013-05-30 Tom Tromey <tromey@redhat.com>
4544
4545 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4546 "cleanup_tuple".
4547
4548 2013-05-30 Tom Tromey <tromey@redhat.com>
4549
4550 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4551 inner scope. Unconditionally call do_cleanups.
4552
4553 2013-05-30 Tom Tromey <tromey@redhat.com>
4554
4555 * source.c (find_and_open_source): Call do_cleanups.
4556
4557 2013-05-30 Tom Tromey <tromey@redhat.com>
4558
4559 * linux-thread-db.c (thread_db_load_search): Unconditionally
4560 call do_cleanups.
4561
4562 2013-05-30 Tom Tromey <tromey@redhat.com>
4563
4564 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4565 for 'cleanup'; instead use a later one.
4566
4567 2013-05-30 Tom Tromey <tromey@redhat.com>
4568
4569 * python/py-breakpoint.c (bppy_get_commands): Use
4570 explicit, unconditional return.
4571 * python/py-frame.c (frapy_read_var): Likewise.
4572 * python/python.c (gdbpy_decode_line): Likewise.
4573
4574 2013-05-30 Tom Tromey <tromey@redhat.com>
4575
4576 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4577 do_cleanups on all return paths.
4578
4579 2013-05-30 Tom Tromey <tromey@redhat.com>
4580
4581 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4582
4583 2013-05-30 Tom Tromey <tromey@redhat.com>
4584
4585 * stabsread.c (read_struct_type): Call do_cleanups along
4586 all return paths.
4587
4588 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4589
4590 * mips-linux-tdep.c: Adjust formatting throughout.
4591
4592 2013-05-30 Tom Tromey <tromey@redhat.com>
4593
4594 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4595 along all return paths.
4596
4597 2013-05-30 Tom Tromey <tromey@redhat.com>
4598
4599 * symfile.c (find_separate_debug_file): Call do_cleanups
4600 along all return paths.
4601
4602 2013-05-30 Tom Tromey <tromey@redhat.com>
4603
4604 * symtab.c (search_symbols): Introduce a null cleanup for
4605 'retval_chain'.
4606
4607 2013-05-30 Tom Tromey <tromey@redhat.com>
4608
4609 * python/py-value.c (valpy_binop): Call do_cleanups before
4610 exiting loop.
4611
4612 2013-05-30 Tom Tromey <tromey@redhat.com>
4613
4614 * python/py-prettyprint.c (print_children): Remove extra
4615 do_cleanups call.
4616
4617 2013-05-30 Tom Tromey <tromey@redhat.com>
4618
4619 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4620 all return paths.
4621
4622 2013-05-30 Tom Tromey <tromey@redhat.com>
4623
4624 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4625 along all return paths.
4626
4627 2013-05-30 Tom Tromey <tromey@redhat.com>
4628
4629 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4630 call do_cleanups.
4631
4632 2013-05-30 Tom Tromey <tromey@redhat.com>
4633
4634 * varobj.c (c_value_of_root): Call do_cleanups along all
4635 return paths.
4636
4637 2013-05-30 Tom Tromey <tromey@redhat.com>
4638
4639 * tracepoint.c (trace_dump_command): Unconditionally call
4640 do_cleanups.
4641
4642 2013-05-30 Tom Tromey <tromey@redhat.com>
4643
4644 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4645 do_cleanups earlier.
4646
4647 2013-05-30 Tom Tromey <tromey@redhat.com>
4648
4649 * machoread.c (macho_symfile_read): Assign first cleanup to
4650 'back_to'.
4651
4652 2013-05-30 Tom Tromey <tromey@redhat.com>
4653
4654 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4655
4656 2013-05-30 Tom Tromey <tromey@redhat.com>
4657
4658 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4659
4660 2013-05-30 Tom Tromey <tromey@redhat.com>
4661
4662 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4663 call discard_cleanups.
4664 (inf_ptrace_attach): Likewise.
4665
4666 2013-05-30 Tom Tromey <tromey@redhat.com>
4667
4668 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4669 return paths.
4670 (mips_initialize): Likewise.
4671 (common_open): Call do_cleanups.
4672
4673 2013-05-30 Tom Tromey <tromey@redhat.com>
4674
4675 * utils.c (internal_vproblem): Call do_cleanups.
4676
4677 2013-05-30 Tom Tromey <tromey@redhat.com>
4678
4679 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4680
4681 2013-05-30 Tom Tromey <tromey@redhat.com>
4682
4683 * cli/cli-script.c (setup_user_args): Don't return after error.
4684
4685 2013-05-30 Tom Tromey <tromey@redhat.com>
4686
4687 * somread.c (som_symtab_read): Call do_cleanups.
4688
4689 2013-05-30 Tom Tromey <tromey@redhat.com>
4690
4691 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4692
4693 2013-05-30 Tom Tromey <tromey@redhat.com>
4694
4695 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4696 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4697 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4698 * source.c (show_substitute_path_command): Call do_cleanups.
4699 (unset_substitute_path_command, set_substitute_path_command):
4700 Likewise.
4701 * symfile.c (load_command): Call do_cleanups.
4702
4703 2013-05-30 Tom Tromey <tromey@redhat.com>
4704
4705 * contrib/cleanup_check.py: New file.
4706 * contrib/gcc-with-excheck: Add option parsing.
4707
4708 2013-05-30 Joel Brobecker <brobecker@adacore.com>
4709
4710 * windows-nat.c (windows_delete_thread): Add missing space
4711 in cast expression.
4712
4713 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4714
4715 * inferior.c (top level): Include tilde.h.
4716 (add_inferior_command): Call tilde_expand on the value of 'exec'
4717 argument.
4718
4719 2013-05-30 Pedro Alves <pedro@codesourcery.com>
4720 Yao Qi <yao@codesourcery.com>
4721
4722 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4723 Caller update.
4724 (encode_actions): Likewise.
4725 * remote.c (remote_download_tracepoint): Caller update.
4726 * tracepoint.h (encode_actions): Update declaration.
4727
4728 2013-05-30 Pedro Alves <palves@redhat.com>
4729
4730 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4731 pointer.
4732
4733 2013-05-30 Yao Qi <yao@codesourcery.com>
4734
4735 * remote.c (remote_check_symbols): Remove unused parameter
4736 'objfile'.
4737 Declaration update.
4738 (remote_start_remote, remote_new_objfile): Caller update.
4739
4740 2013-05-30 Yao Qi <yao@codesourcery.com>
4741
4742 * mi/mi-cmds.c (mi_cmds): Define MI command
4743 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4744 DEF_MI_CMD_CLI.
4745
4746 2013-05-29 Pedro Alves <palves@redhat.com>
4747
4748 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4749 (remote_insert_watchpoint, remote_remove_watchpoint)
4750 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4751 (remote_verify_memory, compare_sections_command)
4752 (remote_search_memory): Set the general process/thread on the
4753 remote side.
4754
4755 2013-05-29 Pedro Alves <palves@redhat.com>
4756
4757 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4758 (_initialize_aarch64_tdep): Don't call
4759 initialize_tdesc_aarch64_without_fpu.
4760 * features/Makefile (WHICH): Remove reference to
4761 aarch64-without-fpu.
4762 * features/aarch64-without-fpu.c: Delete file.
4763 * regformats/aarch64-without-fpu.dat: Delete file.
4764
4765 2013-05-28 Yao Qi <yao@codesourcery.com>
4766
4767 * tracepoint.c (stringify_collection_list): Remove parameter
4768 'string'.
4769 (encode_actions): Caller update. Remove local variables.
4770
4771 2013-05-24 Yao Qi <yao@codesourcery.com>
4772
4773 * tracepoint.c (TFILE_PID): Remove.
4774 (tfile_open): Don't add thread and inferior.
4775 (tfile_close): Don't set 'inferior_ptid'. Don't call
4776 exit_inferior_silent.
4777 (tfile_thread_alive): Remove.
4778 (init_tfile_ops): Don't set field 'to_thread_alive' of
4779 tfile_ops.
4780
4781 2013-05-23 Doug Evans <dje@google.com>
4782
4783 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4784
4785 2013-05-23 Pedro Alves <palves@redhat.com>
4786
4787 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4788 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4789 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4790 Only define if HAVE_SOCKETS is defined.
4791 * configure.ac: Check for sys/socket.h.
4792 * config.in, configure: Regenerate.
4793
4794 2013-05-23 Pedro Alves <palves@redhat.com>
4795
4796 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4797 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4798 printing uint32_t variables.
4799
4800 2013-05-23 Pedro Alves <palves@redhat.com>
4801
4802 * NEWS: Mention GDBserver range stepping support.
4803
4804 2013-05-23 Yao Qi <yao@codesourcery.com>
4805 Pedro Alves <palves@redhat.com>
4806
4807 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4808 field.
4809 * infcmd.c (step_once, until_next_command): Enable range stepping.
4810 * infrun.c (displaced_step_prepare): Disable range stepping.
4811 (resume): Disable range stepping if stepping over a breakpoint or
4812 we have software watchpoints. If range stepping is enabled,
4813 assert the thread is in the stepping range.
4814 (clear_proceed_status_thread): Clear may_range_step.
4815 (handle_inferior_event): Disable range stepping as soon as we know
4816 the thread that hit the event. Re-enable it whenever we're going
4817 to step with a step range.
4818 * remote.c (struct vCont_action_support) <r>: New field.
4819 (use_range_stepping): New global.
4820 (remote_vcont_probe): Handle 'r' action.
4821 (append_resumption): Append an 'r' action if the thread may range
4822 step.
4823 (show_range_stepping): New function.
4824 (set_range_stepping): New function.
4825 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4826 'set range-stepping' and 'show range-stepping' commands.
4827 * NEWS: Mention range stepping, the new vCont;r action, and the
4828 new "set/show range-stepping" commands.
4829
4830 2013-05-23 Yao Qi <yao@codesourcery.com>
4831 Pedro Alves <palves@redhat.com>
4832
4833 * remote.c (struct vCont_action_support): New struct.
4834 (struct remote_state) <support_vCont_t>: Remove field.
4835 <vCont_actions_support>: New field.
4836 (remote_vcont_probe, remote_stop_ns): Update.
4837
4838 2013-05-23 Yao Qi <yao@codesourcery.com>
4839 Pedro Alves <palves@redhat.com>
4840
4841 * gdbthread.h (pc_in_thread_step_range): New declaration.
4842 * thread.c (pc_in_thread_step_range): New function.
4843 * infrun.c (handle_inferior_event): Use it.
4844
4845 2013-05-23 Joel Brobecker <brobecker@adacore.com>
4846
4847 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4848 of sprintf.
4849
4850 2013-05-22 Keith Seitz <keiths@redhat.com>
4851
4852 * ada-lang.c (is_known_support_routine): Add explicit free of
4853 'func_name' from find_frame_funname.
4854 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4855 for func_name from find_frame_funname.
4856 * python/py-frame.c (frapy_name): Add explicit free of
4857 'name' from find_frame_funname.
4858 * stack.c (find_frame_funname): Add comment explaining that
4859 funcp must be freed by the caller.
4860 Return copy of symbol names instead of pointers.
4861 (print_frame): Add a cleanup for 'funname' from
4862 find_frame_funname.
4863 * stack.h (find_frame_funname): Remove "const" from
4864 'funname' parameter.
4865
4866 2013-05-22 Tom Tromey <tromey@redhat.com>
4867
4868 PR c++/15401:
4869 * c-valprint.c (c_value_print): Use value_addr for
4870 references. Convert back to reference type with value_ref.
4871
4872 2013-05-22 Eli Zaretskii <eliz@gnu.org>
4873
4874 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4875 unloaded DLL, it will be done by handle_solib_event. See
4876 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4877 details.
4878
4879 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4880
4881 * ui-out.c: Create typedef ui_out_level_p and define vector
4882 operations for that type.
4883 (struct ui_out): Use a vector instead of an array.
4884 (current_level): Return level from a vector.
4885 (push_level): Create a level in a vector.
4886 (pop_level): Delete a level in a vector.
4887 (ui_out_new): Create initial level zero level, and store in a
4888 vector.
4889 (ui_out_destroy): Add vector cleanup.
4890
4891 2013-05-22 Pedro Alves <palves@redhat.com>
4892
4893 * python/python-internal.h (gdb_Py_DECREF): Tag with
4894 "ARI: editCase function".
4895
4896 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4897
4898 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4899
4900 2013-05-21 Pedro Alves <palves@redhat.com>
4901
4902 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4903 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4904 * python/py-utils.c (py_decref): Don't check for NULL before
4905 calling Py_DECREF.
4906
4907 2013-05-21 Pedro Alves <palves@redhat.com>
4908
4909 * python/py-utils.c (py_decref): Remove extra braces.
4910 (gdb_pymodule_addobject): Remove extra braces.
4911 * python-internal.h (gdb_Py_DECREF): New static inline function.
4912 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4913
4914 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4915
4916 * breakpoints.c (detach_breakpoints): Do not
4917 detach breakpoints locations with loc_type bp_loc_other.
4918
4919 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4920
4921 Workaround Python 2.6.
4922 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4923 a block.
4924
4925 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4926
4927 Code cleanup: constification.
4928 * solib.c (solib_ops): Make return type and ops variable type const.
4929 (set_solib_ops): Make the new_ops parameter and ops variable const.
4930 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4931 (solib_add, solib_keep_data_in_core, clear_solib)
4932 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4933 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4934 const.
4935 * solib.h (set_solib_ops): Make the new_ops parameter const.
4936
4937 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4938
4939 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4940 variable.
4941 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4942 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4943 (SYSTEM_GDBINIT_FILES): New variables.
4944 (all): Add stamp-system-gdbinit.
4945 (stamp-system-gdbinit): New rule.
4946 (clean-system-gdbinit, install-system-gdbinit)
4947 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4948 (install-only): Add dependency on install-system-gdbinit.
4949 (uninstall): Add dependency on uninstall-system-gdbinit.
4950 (clean): Add dependency on clean-system-gdbinit.
4951 * system-gdbinit/elinos.py: New file.
4952 * system-gdbinit/wrs-linux.py: New file.
4953
4954 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4955
4956 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4957
4958 2013-05-21 Hui Zhu <hui@codesourcery.com>
4959
4960 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4961 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4962 * mi/mi-cmd-break.c (ctype.h): New include.
4963 (gdb_obstack.h): New include.
4964 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4965 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4966 (mi_cmd_dprintf_insert): New.
4967 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4968 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4969
4970 2013-05-20 Tom Tromey <tromey@redhat.com>
4971
4972 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4973
4974 2013-05-20 Tom Tromey <tromey@redhat.com>
4975
4976 * python/py-value.c (valpy_get_dynamic_type): Simplify
4977 dynamic_type assignment. Use Py_XINCREF.
4978
4979 2013-05-20 Tom Tromey <tromey@redhat.com>
4980
4981 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4982
4983 2013-05-20 Tom Tromey <tromey@redhat.com>
4984
4985 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4986 (gdbpy_selected_frame): Move object-construction code
4987 out of TRY_CATCH.
4988
4989 2013-05-20 Tom Tromey <tromey@redhat.com>
4990
4991 * python/py-arch.c (gdbpy_initialize_arch): Use
4992 gdb_pymodule_addobject.
4993 * python/py-block.c (gdbpy_initialize_blocks): Use
4994 gdb_pymodule_addobject.
4995 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4996 gdb_pymodule_addobject.
4997 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4998 gdb_pymodule_addobject.
4999 * python/py-event.c (gdbpy_initialize_event_generic): Use
5000 gdb_pymodule_addobject.
5001 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5002 gdb_pymodule_addobject.
5003 * python/py-evts.c (add_new_registry): Use
5004 gdb_pymodule_addobject.
5005 (gdbpy_initialize_py_events): Likewise.
5006 * python/py-finishbreakpoint.c
5007 (gdbpy_initialize_finishbreakpoints): Use
5008 gdb_pymodule_addobject.
5009 * python/py-frame.c (gdbpy_initialize_frames): Use
5010 gdb_pymodule_addobject.
5011 * python/py-function.c (gdbpy_initialize_functions): Use
5012 gdb_pymodule_addobject.
5013 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5014 gdb_pymodule_addobject.
5015 * python/py-infthread.c (gdbpy_initialize_thread): Use
5016 gdb_pymodule_addobject.
5017 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5018 gdb_pymodule_addobject.
5019 * python/py-param.c (gdbpy_initialize_parameters): Use
5020 gdb_pymodule_addobject.
5021 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5022 gdb_pymodule_addobject.
5023 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5024 gdb_pymodule_addobject.
5025 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5026 gdb_pymodule_addobject.
5027 * python/py-type.c (gdbpy_initialize_types): Use
5028 gdb_pymodule_addobject.
5029 * python/py-utils.c (gdb_pymodule_addobject): New function.
5030 * python/py-value.c (gdbpy_initialize_values): Use
5031 gdb_pymodule_addobject.
5032 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5033 * python/python.c (_initialize_python): Use
5034 gdb_pymodule_addobject.
5035
5036 2013-05-20 Tom Tromey <tromey@redhat.com>
5037
5038 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5039 * python/py-param.c (get_set_value, get_show_value): Use
5040 explicit decrefs.
5041 * python/python.c (start_type_printers, apply_type_printers):
5042 Use explicit decrefs.
5043
5044 2013-05-20 Tom Tromey <tromey@redhat.com>
5045
5046 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5047 incref the module.
5048
5049 2013-05-20 Tom Tromey <tromey@redhat.com>
5050
5051 * python/python.c (gdbpy_run_events): Decref the result
5052 of PyObject_CallObject.
5053
5054 2013-05-20 Tom Tromey <tromey@redhat.com>
5055
5056 * python/py-symtab.c (set_sal): Use
5057 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5058 (symtab_and_line_to_sal_object): Update.
5059
5060 2013-05-20 Tom Tromey <tromey@redhat.com>
5061
5062 * python/py-param.c (compute_enum_values): Decref 'item'.
5063
5064 2013-05-20 Tom Tromey <tromey@redhat.com>
5065
5066 * mi/mi-main.c: Include python-internal.h.
5067 (mi_cmd_list_features): Check gdb_python_initialized.
5068 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5069 (python_inferior_exit, python_new_objfile, add_thread_object)
5070 (delete_thread_object, py_free_inferior): Check
5071 gdb_python_initialized.
5072 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5073 gdb_python_initialized.
5074 * python/py-type.c (save_objfile_types): Check
5075 gdb_python_initialized.
5076 * python/python-internal.h (gdb_python_initialized): Declare.
5077 * python/python.c (ensure_python_env): Throw exception if
5078 Python not initialized.
5079 (before_prompt_hook, source_python_script_for_objfile)
5080 (start_type_printers, apply_type_printers,
5081 free_type_printers): Check gdb_python_initialized.
5082 * varobj.c (varobj_get_display_hint)
5083 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5084 (install_new_value_visualizer, varobj_set_visualizer)
5085 (value_get_print_value): Check gdb_python_initialized.
5086
5087 2013-05-20 Tom Tromey <tromey@redhat.com>
5088
5089 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5090 Check errors.
5091 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5092 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5093 Check errors.
5094 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5095 Check errors.
5096 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5097 Check errors.
5098 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5099 Check errors.
5100 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5101 init function to return 'int'.
5102 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5103 Return 'int'. Check errors.
5104 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5105 Check errors.
5106 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5107 Return 'int'. Check errors.
5108 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5109 Check errors.
5110 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5111 Check errors.
5112 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5113 Check errors.
5114 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5115 Check errors.
5116 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5117 Check errors.
5118 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5119 Check errors.
5120 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5121 Check errors.
5122 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5123 Check errors.
5124 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5125 Check errors.
5126 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5127 Check errors.
5128 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5129 Check errors.
5130 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5131 Check errors.
5132 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5133 Check errors.
5134 * python/python-internal.h (gdbpy_initialize_auto_load,
5135 gdbpy_initialize_values, gdbpy_initialize_frames,
5136 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5137 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5138 gdbpy_initialize_blocks, gdbpy_initialize_types,
5139 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5140 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5141 gdbpy_initialize_finishbreakpoints,
5142 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5143 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5144 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5145 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5146 gdbpy_initialize_signal_event,
5147 gdbpy_initialize_breakpoint_event,
5148 gdbpy_initialize_continue_event,
5149 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5150 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5151 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5152 * python/python.c (gdb_python_initialized): New global.
5153 (gdbpy_initialize_events): Return 'int'. Check errors.
5154 (_initialize_python): Check errors. Set
5155 gdb_python_initialized.
5156
5157 2013-05-20 Tom Tromey <tromey@redhat.com>
5158
5159 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5160 Decref the reslut of PyObject_CallMethod.
5161
5162 2013-05-20 Tom Tromey <tromey@redhat.com>
5163
5164 * python/py-event.c (gdbpy_initialize_event_generic): Return
5165 early if PyType_Ready fails.
5166
5167 2013-05-20 Tom Tromey <tromey@redhat.com>
5168
5169 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5170 as 'default' in the switch.
5171
5172 2013-05-20 Tom Tromey <tromey@redhat.com>
5173
5174 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5175 get_addr_from_python calls out of TRY_CATCH.
5176 (infpy_write_memory, infpy_search_memory): Likewise.
5177 * python/py-utils.c (get_addr_from_python): Return negative
5178 value on error. Use TRY_CATCH.
5179 * python/python-internal.h (get_addr_from_python): Use
5180 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5181
5182 2013-05-20 Tom Tromey <tromey@redhat.com>
5183
5184 * python/py-event.c (evpy_emit_event): Decref the
5185 result of PyObject_CallFunctionObjArgs.
5186
5187 2013-05-20 Tom Tromey <tromey@redhat.com>
5188
5189 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5190 Correctly decref.
5191
5192 2013-05-20 Tom Tromey <tromey@redhat.com>
5193
5194 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5195
5196 2013-05-20 Tom Tromey <tromey@redhat.com>
5197
5198 * python/py-event.h (gdbpy_initialize_event_generic): Use
5199 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5200 * python/py-evts.c (add_new_registry): Use
5201 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5202 * python/python-internal.h
5203 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5204
5205 2013-05-20 Tom Tromey <tromey@redhat.com>
5206
5207 * python/py-arch.c (archpy_disassemble): Update.
5208 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5209 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5210 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5211 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5212 macro.
5213 (GDB_PY_HANDLE_EXCEPTION): Update.
5214 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5215
5216 2013-05-20 Tom Tromey <tromey@redhat.com>
5217
5218 * python/python-internal.h (events_object_type): Remove.
5219
5220 2013-05-20 Tom Tromey <tromey@redhat.com>
5221
5222 * python/py-event.h (evpy_emit_event): Use
5223 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5224 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5225 New macro.
5226
5227 2013-05-20 Tom Tromey <tromey@redhat.com>
5228
5229 * py-evtregistry.c (create_event_object): Decref
5230 eventregistry_object if PyList_New fails.
5231
5232 2013-05-20 Tom Tromey <tromey@redhat.com>
5233
5234 * py-cmd.c (gdbpy_string_to_argv): Check result of
5235 PyList_New.
5236
5237 2013-05-20 Tom Tromey <tromey@redhat.com>
5238
5239 * python/python.c (before_prompt_hook): Add cleanup to
5240 decref 'hook'.
5241
5242 2013-05-20 Tom Tromey <tromey@redhat.com>
5243
5244 * python/py-function.c (fnpy_init): Decref result of
5245 PyObject_GetAttrString.
5246
5247 2013-05-20 Tom Tromey <tromey@redhat.com>
5248
5249 * python/py-threadevent.c (get_event_thread): Use
5250 CPYCHECKER_RETURNS_BORROWED_REF.
5251 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5252 New define.
5253 (pspace_to_pspace_object, objfile_to_objfile_object)
5254 (find_thread_object): Use it.
5255
5256 2013-05-20 Tom Tromey <tromey@redhat.com>
5257
5258 * python/py-arch.c (arch_object_type): Use
5259 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5260 * python/py-block.c (block_syms_iterator_object_type):
5261 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5262 * python/py-bpevent.c (breakpoint_event_object_type):
5263 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5264 * python/py-cmd.c (cmdpy_object_type): Use
5265 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5266 * python/py-continueevent.c (continue_event_object_type):
5267 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5268 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5269 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5270 * python/py-events.h (thread_event_object_type):
5271 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5272 * python/py-evtregistry.c (eventregistry_object_type): Use
5273 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5274 * python/py-exitedevent.c (exited_event_object_type):
5275 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5276 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5277 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5278 * python/py-function.c (fnpy_object_type): Use
5279 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5280 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5281 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5282 * python/py-infthread.c (thread_object_type): Use
5283 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5284 * python/py-lazy-string.c (lazy_string_object_type):
5285 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5286 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5287 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5288 * python/py-objfile.c (objfile_object_type): Use
5289 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5290 * python/py-param.c (parmpy_object_type):
5291 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5292 * python/py-progspace.c (pspace_object_type):
5293 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5294 * python/py-signalevent.c (signal_event_object_type):
5295 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5296 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5297 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5298 * python/py-type.c (type_object_type, field_object_type)
5299 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5300 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5301 define.
5302 (value_object_type, block_object_type, symbol_object_type)
5303 (event_object_type, stop_event_object_type, breakpoint_object_type)
5304 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5305
5306 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5307
5308 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5309 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5310
5311 2013-05-20 Doug Evans <dje@google.com>
5312
5313 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5314 For Fission.
5315 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5316 reading_dwo_directly.
5317 (struct signatured_type): New member dwo_unit.
5318 (struct die_reader_specs): New member comp_dir.
5319 (create_signatured_type_table_from_index): Use malloc for
5320 all_type_units instead of objfile's obstack.
5321 (create_all_type_units): Ditto.
5322 (fill_in_sig_entry_from_dwo_entry): New function.
5323 (add_type_unit): New function.
5324 (lookup_dwo_signatured_type): New function.
5325 (lookup_dwp_signatured_type): New function.
5326 (lookup_signatured_type): New arg cu. All callers updated.
5327 (init_cu_die_reader): Initialize comp_dir.
5328 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5329 Change assert of matching type signatures to call error on mismatch.
5330 (lookup_dwo_unit): Add assert.
5331 (init_tu_and_read_dwo_dies): New function.
5332 (init_cutu_and_read_dies): Call it.
5333 (build_type_unit_groups): Handle case of no type unit groups created.
5334 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5335 (lookup_dwo_cutu): Tweak complaint.
5336 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5337 (dwarf2_per_objfile_free): Free all_type_units.
5338
5339 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5340
5341 * windows-nat.c (handle_unload_dll): Add missing empty line.
5342
5343 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5344
5345 * dwarf2read.c (prototyped_function_p): New function.
5346 (read_subroutine_type): Use it.
5347
5348 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5349
5350 * rs6000-aix-tdep.c: De-indent some example code provided
5351 as a comment.
5352
5353 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5354
5355 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5356 region is ok for a hardware watchpoint using the new ptrace interface
5357 on Power servers.
5358
5359 2013-05-17 Doug Evans <dje@google.com>
5360
5361 * NEWS: Mention new maintenance commands check-symtabs, and
5362 expand-symtabs, and renamed check-psymtabs.
5363 * psymtab.c (maintenance_check_psymtabs): Renamed from
5364 maintenance_check_symtabs. Only process already-expanded symbol
5365 tables.
5366 (_initialize_psymtab): Update.
5367 * symmisc.c (maintenance_check_symtabs): New function.
5368 (maintenance_expand_name_matcher): New function
5369 (maintenance_expand_file_matcher): New function
5370 (maintenance_expand_symtabs): New function.
5371 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5372 commands.
5373
5374 2013-05-17 Tom Tromey <tromey@redhat.com>
5375
5376 * python/py-inferior.c (infpy_read_memory): Don't call
5377 PyErr_SetString if PyObject_New fails.
5378 * python/py-frame.c (frame_info_to_frame_object): Don't call
5379 PyErr_SetString if PyObject_New fails.
5380
5381 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5382
5383 * acinclude.m4: Add check for dlopen in libdl.
5384 * configure.ac: Ditto.
5385 * configure: Regenerate.
5386
5387 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5388
5389 * frame.c (frame_stash): Convert to htab.
5390 (frame_addr_hash): New function.
5391 (frame_addr_hash_eq): New function.
5392 (frame_stash_create): Convert function to create
5393 a hash table.
5394 (frame_stash_add): Convert function to add an entry to a hash
5395 table.
5396 (frame_stash_find): Convert function to search the hash table.
5397 (frame_stash_invalidate): Convert function to empty the hash
5398 table.
5399 (get_frame_id): Only add to stash if a frame_id is created.
5400 (_initialize_frame): Call frame_stash_create.
5401
5402 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5403
5404 * configure.ac: Ensure MIG is available when building for GNU Hurd
5405 hosts.
5406 * configure: Regenerate.
5407
5408 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5409
5410 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5411
5412 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5413
5414 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5415 all cleanups are done before returning from this function.
5416
5417 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5418
5419 * utils.h: #include "exceptions.h".
5420 (enum errors): Remove partial declaration.
5421
5422 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5423
5424 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5425 * gdbarch.h, gdbarch.c: Regenerate.
5426 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5427 handling.
5428
5429 * rs6000-aix-tdep.h: New file.
5430 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5431 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5432 "xml-utils.h".
5433 (struct field_info, struct ld_info_desc): New types.
5434 (ld_info32_desc, ld_info64_desc): New static constants.
5435 (struct ld_info): New type.
5436 (rs6000_aix_extract_ld_info): New function.
5437 (rs6000_aix_shared_library_to_xml): Likewise.
5438 (rs6000_aix_ld_info_to_xml): Likewise.
5439 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5440 (rs6000_aix_init_osabi): Add call to
5441 set_gdbarch_core_xfer_shared_libraries_aix.
5442 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5443 Remove "xml-utils.h" include.
5444 (LdInfo): Delete typedef.
5445 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5446 Delete macros.
5447 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5448 Adjust code accordingly.
5449 (rs6000_core_ldinfo): Delete, folded into
5450 rs6000_aix_core_xfer_shared_libraries_aix.
5451 (rs6000_xfer_shared_library): Delete.
5452 (rs6000_xfer_shared_libraries): Reimplement.
5453
5454 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5455
5456 * record.c (record_goto_cmdlist): New.
5457 (cmd_record_goto): Split into this ...
5458 (cmd_record_goto_begin): ... this
5459 (cmd_record_goto_end): ... and this.
5460 (_initialize_record): Change "record goto" to prefix command.
5461 Add commands for "record goto begin" and "record goto end".
5462 Add an alias for "record goto start" to "record goto begin".
5463
5464 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5465
5466 * linespec.c (convert_linespec_to_sals): New comment for
5467 SOURCE_FILENAME assignment.
5468
5469 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5470
5471 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5472 internal_warning.
5473
5474 2013-05-14 Tom Tromey <tromey@redhat.com>
5475
5476 * eval.c (parse_and_eval_long): Make 'exp' const.
5477 * value.h (parse_and_eval_long): Update.
5478
5479 2013-05-14 Tom Tromey <tromey@redhat.com>
5480
5481 * ui-file.c (gdb_fopen): Make arguments const.
5482 * ui-file.h (gdb_fopen): Make arguments const.
5483
5484 2013-05-14 Tom Tromey <tromey@redhat.com>
5485
5486 * remote.c (remote_set_trace_notes): Make arguments const.
5487 * target.c (update_current_target): Update cast.
5488 * target.h (to_set_trace_notes): Make arguments const.
5489
5490 2013-05-14 Tom Tromey <tromey@redhat.com>
5491
5492 * go32-nat.c (go32_terminal_info): Make 'args' const.
5493 * inferior.h (child_terminal_info): Update.
5494 * inflow.c (child_terminal_info): Make 'args' const.
5495 * target.c (default_terminal_info): Make 'args' const.
5496 (debug_to_terminal_save_ours): Likewise.
5497 * target.h (struct target_ops) <to_terminal_info>: Make argument
5498 const.
5499
5500 2013-05-13 Tom Tromey <tromey@redhat.com>
5501
5502 * gcore.c (create_gcore_bfd): Make 'filename' const.
5503 * gcore.h (create_gcore_bfd): Make 'filename' const.
5504 * record-full.c (record_full_save): Make 'recfilename' const.
5505 * target.c (target_save_record): Make 'filename' const.
5506 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5507 const.
5508 (target_save_record): Likewise.
5509
5510 2013-05-13 Tom Tromey <tromey@redhat.com>
5511
5512 PR gdb/15338:
5513 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5514 ranges section has been read.
5515
5516 2013-05-13 Tom Tromey <tromey@redhat.com>
5517
5518 PR exp/15364:
5519 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5520 STRUCTOP_PTR>: Return a not_lval value for
5521 EVAL_AVOID_SIDE_EFFECTS.
5522 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5523 for EVAL_AVOID_SIDE_EFFECTS.
5524
5525 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5526
5527 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5528 floating point registers to register type before storing
5529 value.
5530 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5531 Likewise.
5532
5533 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5534 Tom Tromey <tromey@redhat.com>
5535
5536 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5537 New functions.
5538 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5539 Declare.
5540 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5541 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5542 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5543 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5544
5545 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5546 Tom Tromey <tromey@redhat.com>
5547
5548 PR build/15414:
5549 * configure: Rebuild.
5550 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5551 with -Wno-format.
5552
5553 2013-05-10 Pedro Alves <palves@redhat.com>
5554
5555 * remote.c (_initialize_remote): Fix spelling of
5556 qXfer:traceframe-info:read packet in packet config command.
5557
5558 2013-05-10 David Taylor <dtaylor@emc.com>
5559
5560 PR remote/15455
5561
5562 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5563 "QTro" at start of packet.
5564
5565 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5566
5567 * solib-aix.c (solib_aix_relocate_section_addresses):
5568 For the .bss section action, apply the same offset as
5569 the .data section.
5570
5571 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5572
5573 * solib-aix.c (solib_aix_relocate_section_addresses):
5574 Remove FIXME comment.
5575
5576 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5577
5578 PR tdep/15420:
5579 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5580 New functions, directly copied from sparc-sol-thread.c.
5581 * sparc-sol-thread.c: Delete.
5582 * configure.ac: Remove code handling sparc-solaris-thread.c.
5583 * configure: Regenerate.
5584
5585 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5586
5587 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5588 filter logic.
5589 (backtrace_command): Add "no-filters" option parsing.
5590 (_initialize_stack): Alter help to reflect "no-filters" option.
5591 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5592 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5593 (py-frame.o): Add target
5594 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5595 filter files.
5596 * python/python.h: Add new frame filter constants, and flag enum.
5597 (apply_frame_filter): Add definition.
5598 * python/python.c (apply_frame_filter): New non-Python
5599 enabled function.
5600 * python/py-utils.c (py_xdecref): New function.
5601 (make_cleanup_py_xdecref): Ditto.
5602 * python/py-objfile.c: Declare frame_filters dictionary.
5603 (objfpy_dealloc): Add frame_filters dealloc.
5604 (objfpy_new): Initialize frame_filters attribute.
5605 (objfile_to_objfile_object): Ditto.
5606 (objfpy_get_frame_filters): New function.
5607 (objfpy_set_frame_filters): New function.
5608 * python/py-progspace.c: Declare frame_filters dictionary.
5609 (pspy_dealloc): Add frame_filters dealloc.
5610 (pspy_new): Initialize frame_filters attribute.
5611 (pspacee_to_pspace_object): Ditto.
5612 (pspy_get_frame_filters): New function.
5613 (pspy_set_frame_filters): New function.
5614 * python/py-framefilter.c: New file.
5615 * python/lib/gdb/command/frame_filters.py: New file.
5616 * python/lib/gdb/frames.py: New file.
5617 * python/lib/gdb/__init__.py: Initialize global frame_filters
5618 dictionary
5619 * python/lib/gdb/FrameDecorator.py: New file.
5620 * python/lib/gdb/FrameIterator.py: New file.
5621 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5622 * mi/mi-cmds.h: Declare.
5623 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5624 --no-frame-filter logic, and Python frame filter logic.
5625 (stack_enable_frame_filters): New function.
5626 (parse_no_frame_option): Ditto.
5627 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5628 filter logic.
5629 (mi_cmd_stack_list_locals): Ditto.
5630 (mi_cmd_stack_list_args): Ditto.
5631 (mi_cmd_stack_list_variables): Ditto.
5632 * NEWS: Add frame filter note.
5633
5634 2013-05-09 Doug Evans <dje@google.com>
5635
5636 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5637 All callers updated.
5638 (syms_from_objfile): Ditto. Make static.
5639 (symbol_file_add_with_addrs): Renamed from
5640 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5641 num_offsets. All callers updated.
5642 * symfile.h (syms_from_objfile): Delete.
5643
5644 * symfile.c (decrement_reading_symtab): Add assert.
5645 (increment_reading_symtab): Ditto.
5646
5647 2013-05-09 Joel Brobecker <brobecker@adacore.com>
5648
5649 * source.c (forward_search_command): Replace call to getc
5650 by call to fgetc.
5651 (reverse_search_command): Likewise.
5652
5653 2013-05-08 Doug Evans <dje@google.com>
5654
5655 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5656 matching test.
5657
5658 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5659
5660 * sol-thread.c (info_cb): Factorize the code a little.
5661
5662 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5663
5664 * sol-thread.c (info_cb): Rework the output of the "maintenance
5665 info sol-threads" command a bit.
5666
5667 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5668
5669 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5670 Replace ti.ti_startfunc by ti.ti_pc.
5671
5672 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5673
5674 * solib-aix.c (solib_aix_free_library_list): New function
5675 for the case where HAVE_LIBEXPAT is not defined.
5676
5677 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5678
5679 PR breakpoints/15413:
5680 * breakpoint.c (condition_completer): Simplify the code to
5681 disconsider multiple locations of breakpoints when completing the
5682 "condition" command.
5683
5684 2013-05-07 Pierre Muller <muller@sourceware.org>
5685
5686 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5687 instead of <sys/wait.h>.
5688
5689 2013-05-07 Pierre Muller <muller@sourceware.org>
5690
5691 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5692 trailing new line from warning message.
5693
5694 2013-05-07 Pierre Muller <muller@sourceware.org>
5695
5696 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5697 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5698
5699 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5700
5701 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5702 error message (ARI fix).
5703
5704 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5705
5706 * features/library-list-aix.dtd: Replace library-list by
5707 library-list-aix.
5708 * rs6000-nat.c: Replace library-list by library-list-aix
5709 throughout.
5710 * solib-aix.c: Likewise.
5711
5712 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5713
5714 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5715 Renames TARGET_OBJECT_AIX_LIBRARIES.
5716 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5717 TARGET_OBJECT_LIBRARIES_AIX throughout.
5718 * solib-aix.c: Likwise.
5719
5720 2013-05-07 Yao Qi <yao@codesourcery.com>
5721
5722 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5723 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5724
5725 2013-05-07 Yao Qi <yao@codesourcery.com>
5726
5727 * solib-dsbt.c (enable_break): Declare.
5728 (dsbt_current_sos): Remove call to enable_break2.
5729 (enable_break2): Rename to enable_break. Set solib breakpoint
5730 on '_dl_debug_state'.
5731 (enable_break): Remove.
5732
5733 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
5734
5735 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5736 debug state prior to replicating existing hardware watchpoints or
5737 breakpoints.
5738
5739 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5740
5741 * gcore.c (gcore_create_callback): Ignore sections with
5742 separate_debug_objfile_backlink != NULL.
5743
5744 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5745 Andrew Jenner <andrew@codesourcery.com>
5746 Chung-Lin Tang <cltang@codesourcery.com>
5747 Julian Brown <julian@codesourcery.com>
5748
5749 Based on the nios2-elf port from Altera Corporation.
5750
5751 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5752 nios2-linux-tdep.o.
5753 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5754 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5755 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5756 * nios2-tdep.h: New.
5757 * nios2-tdep.c: New.
5758 * nios2-linux-tdep.c: New.
5759 * features/Makefile (WHICH): Add nios2-linux.
5760 (nios2-linux-expedite): Set.
5761 * features/nios2-cpu.xml: New.
5762 * features/nios2.xml: New.
5763 * features/nios2-linux.xml: New.
5764 * features/nios2.c: New (autogenerated).
5765 * features/nios2-linux.c: New (autogenerated).
5766 * regformats/nios2-linux.dat: New (autogenerated).
5767 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5768 and commands.
5769
5770 2013-05-06 Doug Evans <dje@google.com>
5771
5772 * symfile.c: Whitespace cleanup.
5773
5774 * solist.h (struct target_so_ops): New member clear_so.
5775 * solib-svr4.c (svr4_clear_so): New function.
5776 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5777 * solib.c (clear_so): Renamed from free_so_symbols.
5778 All callers updated. Call target clear_so if it exists.
5779
5780 2013-05-06 Tom Tromey <tromey@redhat.com>
5781
5782 * ada-lang.c (ada_value_primitive_packed_val): Don't
5783 call value_incref.
5784 * value.c (set_value_parent): Incref the new parent and decref
5785 the old parent.
5786 (value_copy, value_primitive_field): Use set_value_parent.
5787
5788 2013-05-06 Tom Tromey <tromey@redhat.com>
5789
5790 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5791 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5792 if needed.
5793 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5794 * dwarf2read.c (write_constant_as_bytes)
5795 (dwarf2_fetch_constant_bytes): New functions.
5796
5797 2013-05-06 Tom Tromey <tromey@redhat.com>
5798
5799 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5800 parameters.
5801 (dwarf2_const_value_attr): Update.
5802
5803 2013-05-06 Tom Tromey <tromey@redhat.com>
5804
5805 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5806 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5807 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5808 Remove declaration.
5809
5810 2013-05-06 Tom Tromey <tromey@redhat.com>
5811
5812 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5813 objfile's obstack.
5814
5815 2013-05-06 Doug Evans <dje@google.com>
5816
5817 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5818 * stabsread.h (process_one_symbol): Update declaration.
5819 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5820 * elfread.c (elf_symfile_relocate_probe): Ditto.
5821 * psymtab.c (relocate_psymtabs): Ditto.
5822 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5823 (objfile_relocate): Ditto.
5824 * objfiles.h (objfile_relocate): Update declaration.
5825 * symfile.c (relative_addr_info_to_section_offsets): Constify
5826 addrs parameter.
5827 (default_symfile_offsets): Ditto.
5828 (syms_from_objfile_1): Constify offsets parameter.
5829 (syms_from_objfile): Ditto.
5830 (symbol_file_add_with_addrs_or_offsets): Ditto.
5831 (symfile_map_offsets_to_segments): Constify data parameter.
5832 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5833 delta parameters of member relocate.
5834 (struct sym_probe_fns): Constify new_offsets,
5835 delta parameters of member sym_relocate_probe.
5836 (struct sym_fns): Constify section_addr_info parameter of member
5837 sym_offsets.
5838 (relative_addr_info_to_section_offsets): Update declaration.
5839 (default_symfile_offsets): Ditto.
5840 (syms_from_objfile): Ditto.
5841 (symfile_map_offsets_to_segments): Ditto.
5842
5843 * symfile.c (syms_from_objfile_1): Use correct section count when
5844 objfile->sf == NULL.
5845
5846 2013-05-06 Mike Frysinger <vapier@gentoo.org>
5847
5848 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5849
5850 2013-05-06 Doug Evans <dje@google.com>
5851
5852 * psympriv.h (struct partial_symtab): Augment comment for member
5853 section_offsets.
5854
5855 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5856
5857 Reimplement shared library support on ppc-aix...
5858 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5859 * features/library-list-aix.dtd: New file.
5860 * solib-aix.h, solib-aix.c: New file.
5861 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5862 (rs6000_find_toc_address_hook): Delete.
5863 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5864 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5865 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5866 "xml-utils.h".
5867 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5868 (vmap_symtab, fixup_breakpoints): Delete.
5869 (rs6000_xfer_shared_libraries): New function.
5870 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5871 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5872 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5873 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5874 (rs6000_xfer_shared_library): New function.
5875 (find_toc_address): Delete.
5876 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5877 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5878 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5879 before creating minimal symbol. Adjust function description
5880 accordingly.
5881 (scan_xcoff_symtab): Replace call to
5882 prim_record_minimal_symbol_and_info by call to
5883 record_minimal_symbol.
5884 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5885 around default_symfile_offsets.
5886 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5887 powerpc-aix targets.
5888 * config/rs6000/nm-rs6000.h: Delete.
5889 * config/powerpc/aix.mh (NAT_FILE): Delete.
5890 (NATDEPFILES): Remove xcoffsolib.o.
5891 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5892 (ALL_TARGET_OBS): Add solib-aix.o.
5893 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5894 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5895 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5896 * xcoffsolib.h, xcoffsolib.c: Delete.
5897
5898 * solib.c (reload_shared_libraries): Remove reference to
5899 SOLIB_CREATE_INFERIOR_HOOK.
5900 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5901 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5902 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5903 comment.
5904 * corelow.c (deprecated_core_resize_section_table): Delete.
5905 * exec.c: Remove include of xcoffsolib.h".
5906 (map_vmap, vmap): Delete.
5907 (exec_close_1): Remove references to vmap.
5908 (exec_file_attach): Remove vmap handling code, and reference
5909 to DEPRECATED_IBM6000_TARGET.
5910 (bfdsec_to_vmap): Delete.
5911 (exec_files_info): Remove block of code handling VMAP.
5912 * infcmd.c (post_create_inferior): Remove reference to
5913 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5914 * infrun.c (follow_exec): Remove reference to
5915 SOLIB_CREATE_INFERIOR_HOOK.
5916 * stack.c (print_frame): Remove reference to PC_SOLIB.
5917 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5918 (dsbt_relocate_main_executable): Likewise.
5919 * solib-frv.c (frv_current_sos): Likewise.
5920
5921 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5922
5923 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5924 to target_write_memory and target_read_memory.
5925
5926 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5927
5928 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5929 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5930
5931 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5932
5933 * darwin-nat.c: Replace all "%x" instances in format strings
5934 into "0x%x" throughout.
5935
5936 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5937
5938 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5939 gdb_assert by call to MACH_CHECK_ERROR.
5940 (darwin_attach_pid): Raise an error rather than a failed
5941 assertion when various system calls failed. Report a warning
5942 instead of raising a failed assertion when PREV_NOT is not NULL
5943 after call to mach_port_request_notification.
5944 (darwin_ptrace_me): Raise an error rather than a failed
5945 assertion when read returns nonzero.
5946
5947 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5948
5949 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5950
5951 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5952
5953 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5954
5955 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5956
5957 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5958 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5959 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5960 a stale cleanup. Fix double free of NAME.
5961
5962 2013-05-04 Eli Zaretskii <eliz@gnu.org>
5963
5964 * windows-nat.c (windows_delete_thread): Accept an additional
5965 argument, the thread's exit code, and announce thread death when
5966 print_thread_events is non-zero and we are deleting a thread that
5967 is not the main thread.
5968 (get_windows_debug_event): Pass thread exit code to
5969 windows_delete_thread.
5970
5971 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5972
5973 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5974 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5975 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5976 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5977 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5978 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5979 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5980 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5981 (gdbarch_tdep): New struct.
5982 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5983 E_NUM_REGS.
5984 (v850e3v5_register_name): New function.
5985 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5986 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5987 code handling the struct return conventions for the RH850 ABI.
5988 Update all callers.
5989 (v850_eight_byte_align_p): New function.
5990 (v850_push_call_dummy): Push structs by value, not by reference
5991 for the RH850 ABI. Add support for eight byte alignment.
5992 (v850_dbtrap_breakpoint_from_pc): New function.
5993 (v850_gdbarch_init): Add ABI detection code. Register
5994 v850e3v5_register_name for the v850e3v5 architecture. Set the
5995 number of registers for v850e3v5. Register
5996 v850_dbtrap_breakpoint_from_pc as appropriate.
5997 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5998
5999 2013-05-03 Doug Evans <dje@google.com>
6000
6001 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6002 of bfd_count_sections.
6003 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6004 * symfile.c (default_symfile_offsets): Ditto.
6005 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6006 one entry, not bfd_count_sections entries.
6007
6008 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6009
6010 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6011 `save' and `restore' register groups. Don't include SPL
6012 or SPH in these groups.
6013 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6014 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6015 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6016 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6017 dwarf2_append_unwinders().
6018
6019 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6020
6021 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6022 ignore SIGINT and SIGTRAP in case these internal signals are
6023 caught explicitely.
6024
6025 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6026
6027 * darwin-nat.c (darwin_read_write_inferior): Change types
6028 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6029 of copy_count to "mach_msg_type_number_t".
6030 (darwin_read_dyld_info): Change type of parameter
6031 rdaddr to "gdb_byte *".
6032
6033 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6034
6035 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6036 of &info->load_map from "char *" to "gdb_byte *".
6037
6038 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6039
6040 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6041 from "char *" to "gdb_byte *".
6042 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6043
6044 2013-04-30 Doug Evans <dje@google.com>
6045
6046 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6047 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6048 DWO stub. If DWO isn't found, just use stub.
6049 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6050
6051 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6052 calling init_cutu_and_read_dies.
6053
6054 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6055
6056 * target-descriptions.c (maint_print_c_tdesc_cmd):
6057 Add case to parse structures as register types and
6058 bitfields.
6059
6060 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6061
6062 * MAINTAINERS (Write After Approval): Add myself to the list.
6063
6064 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6065
6066 * sol-thread.c (rw_common): Change type of parameter "buf"
6067 to "gdb_byte *".
6068 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6069 rw_common to "gdb_byte *" instead of "char *".
6070
6071 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6072
6073 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6074 of local variable msym to const struct bound_minimal_symbol.
6075 Adjust use accordingly.
6076 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6077
6078 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6079
6080 * i386gnu-nat.c (CREG_OFFSET): New macro.
6081 (creg_offset): New array.
6082 (CREG_ADDR): Use creg_offset instead of reg_offset.
6083
6084 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6085
6086 * mep-tdep.c (mep_write_pc): Delete.
6087 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6088 Add call to set_gdbarch_pc_regnum.
6089
6090 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6091
6092 * common/filestuff.c: Replace #include <dirent.h> by
6093 #include "gdb_dirent.h".
6094
6095 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6096
6097 * common/filestuff.c: Replace #include <sys/stat.h> by
6098 #include "gdb_stat.h".
6099
6100 2013-04-29 Pierre Muller <muller@sourceware.org>
6101
6102 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6103 editCase function rule.
6104 (get_DW_AT_signature_type): Likewise.
6105
6106 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6107
6108 * m32r-tdep.c (m32r_write_pc): Delete.
6109 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6110 Add call to set_gdbarch_pc_regnum.
6111
6112 2013-04-29 Pierre Muller <muller@sourceware.org>
6113
6114 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6115
6116 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6117
6118 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6119
6120 2013-04-28 Yao Qi <yao@codesourcery.com>
6121
6122 * solib-dsbt.c (fetch_loadmap): Re-indent.
6123 (displacement_from_map, enable_break2): Likewise.
6124 (dsbt_relocate_section_addresses): Likewise.
6125
6126 2013-04-26 Joel Brobecker <brobecker@adacore.com>
6127
6128 GDB 7.6 released.
6129
6130 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6131
6132 PR corefiles/14983:
6133 * dwarf2read.c (process_full_comp_unit): Always create a static
6134 block.
6135
6136 2013-04-25 Hui Zhu <hui@codesourcery.com>
6137
6138 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6139 to loc->cmd_bytecode.
6140
6141 2013-04-24 Doug Evans <dje@google.com>
6142
6143 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6144
6145 2013-04-22 Keith Seitz <keiths@redhat.com>
6146
6147 * tracepoint.c (trace_save): Call the writer's start method.
6148
6149 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6150
6151 PR gdb/10462
6152 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6153 before argument.
6154
6155 2013-04-23 Tom Tromey <tromey@redhat.com>
6156
6157 * common/filestuff.c: Check USE_WIN32API before including
6158 sys/socket.h.
6159 (HAVE_F_GETFD): New define.
6160 (mark_cloexec): Check HAVE_F_GETFD.
6161 (gdb_open_cloexec): Change 'mode' to unsigned long.
6162 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6163 (gdb_pipe_cloexec): Check HAVE_PIPE.
6164 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6165 long.
6166
6167 2013-04-23 Hui Zhu <hui@codesourcery.com>
6168
6169 PR gdb/15293
6170 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6171
6172 2013-04-23 Hui Zhu <hui@codesourcery.com>
6173
6174 PR gdb/15165
6175 * breakpoint.c (dprintf_print_recreate): New.
6176 (save_breakpoints): Let it not save dprintf commands.
6177 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6178
6179 2013-04-22 Tom Tromey <tromey@redhat.com>
6180
6181 PR gdb/7912:
6182 * Makefile.in (SFILES): Add filestuff.c
6183 (COMMON_OBS): Add filestuff.o.
6184 (filestuff.o): New target.
6185 * auto-load.c (auto_load_objfile_script_1): Use
6186 gdb_fopen_cloexec.
6187 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6188 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6189 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6190 * common/agent.c (gdb_connect_sync_socket): Use
6191 gdb_socket_cloexec.
6192 * common/filestuff.c: New file.
6193 * common/filestuff.h: New file.
6194 * common/linux-osdata.c (linux_common_core_of_thread)
6195 (command_from_pid, commandline_from_pid, print_source_lines)
6196 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6197 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6198 gdb_fopen_cloexec.
6199 * common/linux-procfs.c (linux_proc_get_int)
6200 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6201 * config.in, configure: Rebuild.
6202 * configure.ac: Don't check for sys/socket.h. Check for
6203 fdwalk, pipe2.
6204 * corelow.c (core_open): Use gdb_open_cloexec.
6205 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6206 * fork-child.c (fork_inferior): Call close_most_fds.
6207 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6208 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6209 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6210 Use gdb_fopen_cloexec.
6211 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6212 gdb_open_cloexec.
6213 (linux_async_pipe): Use gdb_pipe_cloexec.
6214 * remote-fileio.c (remote_fileio_func_open): Use
6215 gdb_open_cloexec.
6216 * remote.c (remote_file_put, remote_file_get): Use
6217 gdb_fopen_cloexec.
6218 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6219 close_most_fds.
6220 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6221 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6222 * solib.c (solib_find): Use gdb_open_cloexec.
6223 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6224 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6225 (tfile_open): Use gdb_open_cloexec.
6226 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6227 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6228 * xml-support.c (xml_fetch_content_from_file): Use
6229 gdb_fopen_cloexec.
6230 * main.c (captured_main): Call notice_open_fds.
6231
6232 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6233
6234 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6235 'char *' to 'gdb_byte *'.
6236 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6237 'gdb_byte'.
6238
6239 2013-04-22 Yao Qi <yao@codesourcery.com>
6240
6241 * infrun.c: Fix typo in comment.
6242
6243 2013-04-22 Andrew Haley <aph@redhat.com>
6244
6245 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6246 instead of "long".
6247
6248 2013-04-20 Yao Qi <yao@codesourcery.com>
6249
6250 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6251 'char *' to 'gdb_byte *'. Cast the return value of
6252 'bt_ctf_get_char_array' to 'gdb_byte *'.
6253
6254 2013-04-19 Pedro Alves <palves@redhat.com>
6255
6256 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6257 -Wpointer-sign.
6258 * configure: Regenerate.
6259
6260 2013-04-19 Pedro Alves <palves@redhat.com>
6261
6262 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6263 'void *'.
6264
6265 2013-04-19 Pedro Alves <palves@redhat.com>
6266
6267 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6268 Change type of 'myaddr' parameter to gdb_byte pointer.
6269 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6270 to 'long long' pointer instead of to 'unsigned long long'.
6271 (monitor_write_memory_block, monitor_read_memory_single)
6272 (monitor_read_memory): Change type of 'myaddr' parameter to
6273 gdb_byte pointer.
6274
6275 2013-04-19 Pedro Alves <palves@redhat.com>
6276
6277 * record.c (validate_history_size): Make parameter 'setting'
6278 unsigned.
6279
6280 2013-04-19 Pedro Alves <palves@redhat.com>
6281
6282 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6283 to 'gdb_byte *'.
6284
6285 2013-04-19 Pedro Alves <palves@redhat.com>
6286
6287 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6288 local to int.
6289
6290 2013-04-19 Pedro Alves <palves@redhat.com>
6291
6292 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6293 * ada-tasks.c (read_fat_string_value): Likewise.
6294
6295 2013-04-19 Pedro Alves <palves@redhat.com>
6296
6297 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6298 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6299 'offset', and adjust.
6300
6301 2013-04-19 Pedro Alves <palves@redhat.com>
6302
6303 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6304 (read_index_from_section): Add cast to 'char *'.
6305
6306 2013-04-19 Pedro Alves <palves@redhat.com>
6307
6308 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6309
6310 2013-04-19 Pedro Alves <palves@redhat.com>
6311
6312 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6313
6314 2013-04-19 Pedro Alves <palves@redhat.com>
6315
6316 * record-full.c (record_full_get_bookmark): Change local 'ret'
6317 type to char * and add cast to gdb_byte *.
6318 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6319 string.
6320 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6321
6322 2013-04-19 Pedro Alves <palves@redhat.com>
6323
6324 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6325 * python/py-prettyprint.c (print_string_repr): Change type of
6326 'output' local to char *. Add cast to gdb_byte * in
6327 LA_PRINT_STRING call.
6328 (print_children): Change type of 'output' local to char *.
6329 * python/py-value.c (valpy_string): Add cast to const char * in
6330 PyUnicode_Decode call.
6331
6332 2013-04-19 Pedro Alves <palves@redhat.com>
6333
6334 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6335 and change its type to 'const char *'. Adjust.
6336 (mips_send_packet): Add cast to 'char *', and remove cast to
6337 'unsigned char *'.
6338 (mips_receive_packet): Remove cast to 'unsigned char *'.
6339 (mips_load_srec): Use bfd_byte.
6340 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6341 (pmon_checkset): Make 'value' parameter unsigned.
6342
6343 2013-04-19 Pedro Alves <palves@redhat.com>
6344
6345 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6346
6347 2013-04-19 Pedro Alves <palves@redhat.com>
6348
6349 * remote.c (remote_write_bytes_aux, compare_sections_command)
6350 (remote_read_qxfer)
6351 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6352 (remote_hostio_readlink, remote_bfd_iovec_pread)
6353 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6354 binary buffer, and char when buffer is used as string.
6355 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6356 (trace_save, tfile_open, traceframe_walk_blocks)
6357 (tfile_fetch_registers): Likewise.
6358
6359 2013-04-19 Pedro Alves <palves@redhat.com>
6360
6361 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6362 buffer and size_t size. Adjust.
6363 * ser-base.h (ser_base_write): Adjust.
6364 * ser-go32.c (cnts): Change type to size_t.
6365 (dos_write): Change prototype -- take 'void *'
6366 buffer and size_t size. Adjust.
6367 (dos_info): Print elements of 'cnts' as unsigned long.
6368 * serial.c (serial_write): Likewise.
6369 * serial.h (serial_write): Adjust.
6370 (struct serial_ops) <write>: Change prototype -- take 'void *'
6371 buffer and size_t size. Adjust.
6372
6373 2013-04-19 Pedro Alves <palves@redhat.com>
6374
6375 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6376 gdb_byte *.
6377 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6378
6379 2013-04-19 Pedro Alves <palves@redhat.com>
6380
6381 * alpha-tdep.c (alpha_extract_return_value): Use
6382 regcache_cooked_read_unsigned to read 'v0'.
6383
6384 2013-04-19 Pedro Alves <palves@redhat.com>
6385
6386 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6387 parameters 'at', 'as' and 'offset' to uint32_t.
6388
6389 2013-04-19 Pedro Alves <palves@redhat.com>
6390
6391 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6392 'is64' to signed 'int'.
6393
6394 2013-04-19 Pedro Alves <palves@redhat.com>
6395
6396 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6397 parameter to int *.
6398
6399 2013-04-19 Pedro Alves <palves@redhat.com>
6400
6401 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6402 'insnbuf' buffer type to unsigned int[].
6403
6404 2013-04-19 Pedro Alves <palves@redhat.com>
6405
6406 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6407
6408 2013-04-19 Pedro Alves <palves@redhat.com>
6409
6410 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6411 unsigned long *.
6412
6413 2013-04-19 Pedro Alves <palves@redhat.com>
6414
6415 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6416 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6417 UINT_MAX.
6418 * mips-tdep.c (heuristic_fence_post): Change type to int.
6419 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6420
6421 2013-04-19 Pedro Alves <palves@redhat.com>
6422
6423 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6424 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6425 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6426
6427 2013-04-19 Pedro Alves <palves@redhat.com>
6428
6429 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6430 it to get a string view of the byte buffer.
6431 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6432 type to gdb_byte *. Adjust.
6433 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6434 Change local to char *.
6435 * solib-darwin.c (find_program_interpreter): Change return type to
6436 char *. Adjust.
6437 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6438 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6439 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6440 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6441 * solib-svr4.c (find_program_interpreter): Change return type to
6442 char *. Adjust.
6443 (enable_break): Change local 'interp_name' to char *.
6444 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6445 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6446 (spu_pseudo_register_write_spu): Use char for string buffer.
6447 Adjust.
6448 (info_spu_event_command, info_spu_signal_command): Add casts to
6449 'char *'.
6450
6451 2013-04-19 Pedro Alves <palves@redhat.com>
6452
6453 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6454 gdb_byte[].
6455 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6456 * ada-lang.c (ada_value_assign): Use gdb_byte.
6457 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6458 (alphanbsd_sigtramp_offset): Use gdb_byte.
6459 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6460 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6461 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6462 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6463 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6464 * arm-tdep.c (arm_stub_unwind_sniffer)
6465 (arm_displaced_init_closure): Use gdb_byte.
6466 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6467 (arm_default_thumb_le_breakpoint)
6468 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6469 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6470 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6471 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6472 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6473 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6474 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6475 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6476 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6477 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6478 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6479 (cris_store_return_value, cris_extract_return_value): Use
6480 gdb_byte.
6481 (constraint): Change type of parameter to char * from signed
6482 char*. Use gdb_byte.
6483 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6484 of local buffer to gdb_byte *.
6485 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6486 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6487 (add_address_entry): Change type of local buffer to gdb_byte[].
6488 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6489 (frv_push_dummy_call): Use gdb_byte.
6490 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6491 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6492 (hppa_hpux_supply_save_state): Use gdb_byte.
6493 * hppa-tdep.c (hppa32_push_dummy_call)
6494 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6495 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6496 (slotN_contents, replace_slotN_contents): Change type of parameter
6497 to gdb_byte *.
6498 (fetch_instruction, ia64_pseudo_register_write)
6499 (ia64_register_to_value, ia64_value_to_register)
6500 (ia64_extract_return_value, ia64_store_return_value)
6501 (ia64_push_dummy_call): Use gdb_byte.
6502 * m32c-tdep.c (m32c_return_value): Remove cast.
6503 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6504 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6505 gdb_byte.
6506 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6507 * mn10300-tdep.c (mn10300_store_return_value)
6508 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6509 gdb_byte.
6510 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6511 (moxie_process_record): Remove casts.
6512 * ppc-ravenscar-thread.c (supply_register_at_address)
6513 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6514 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6515 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6516 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6517 * remote.c (compare_sections_command): Use gdb_byte.
6518 * score-tdep.c (score7_free_memblock): Change type of parameter to
6519 gdb_byte *.
6520 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6521 gdb_byte *. Use gdb_byte.
6522 (sh_push_dummy_call_fpu): Use gdb_byte.
6523 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6524 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6525 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6526 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6527 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6528 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6529 (sh64_store_return_value, sh64_register_convert_to_virtual):
6530 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6531 (sh64_pseudo_register_write): Use gdb_byte.
6532 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6533 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6534 buffer.
6535 (irix_current_sos): Use gdb_byte.
6536 * solib-som.c (som_current_sos): Use gdb_byte.
6537 * sparc-ravenscar-thread.c (supply_register_at_address)
6538 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6539 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6540 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6541 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6542 'gdb_byte *'.
6543 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6544 'gdb_byte *'.
6545 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6546 * xstormy16-tdep.c (xstormy16_extract_return_value)
6547 (xstormy16_store_return_value): Change parameter type to
6548 'gdb_byte *'. Adjust.
6549 (xstormy16_push_dummy_call): Use gdb_byte.
6550 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6551 (call0_analyze_prologue, execute_code): Use gdb_byte.
6552
6553 2013-04-19 Vladimir Kargov <kargov@gmail.com>
6554 Pedro Alves <palves@redhat.com>
6555
6556 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6557 value contents.
6558
6559 2013-04-17 Doug Evans <dje@google.com>
6560
6561 * dwarf2read.c (struct signatured_type): New member type.
6562 (struct attribute): Replace member signatured_type with signature.
6563 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6564 (read_call_site_scope): Call follow_die_ref instead of
6565 follow_die_ref_or_sig.
6566 (read_structure_type): Rewrite handling of signatured types.
6567 (read_enumeration_type): Ditto.
6568 (read_attribute_value): Update.
6569 (build_error_marker_type): New function.
6570 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6571 Don't call error for bad types, just build an error marker type.
6572 (dump_die_shallow): Update.
6573 (follow_die_sig_1): Renamed from follow_die_sig.
6574 Don't call error for bad types, instead return NULL.
6575 (follow_die_sig): New function.
6576 (get_signatured_type, get_DW_AT_signature_type): New functions.
6577
6578 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6579
6580 * aarch64-tdep.c (aarch64_write_pc): Removed.
6581 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6582 function.
6583
6584 2013-04-17 Yao Qi <yao@codesourcery.com>
6585
6586 * top.c (print_gdb_configuration): Print configure-time
6587 parameter on using libbabeltrace or not.
6588
6589 2013-04-16 Pedro Alves <palves@redhat.com>
6590
6591 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6592
6593 2013-04-16 Pedro Alves <palves@redhat.com>
6594
6595 * common/glibc_thread_db.h: Update from upstream glibc
6596 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6597
6598 2013-04-16 Pedro Alves <palves@redhat.com>
6599
6600 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6601 * common/glibc_thread_db.h: ... this new file ...
6602 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6603
6604 2013-04-16 Will Newton <will.newton@gmail.com>
6605 Pedro Alves <palves@redhat.com>
6606
6607 PR build/11881
6608
6609 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6610 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6611 HAVE_THREAD_DB_H.
6612
6613 2013-04-16 Pedro Alves <palves@redhat.com>
6614 Eli Zaretskii <eliz@gnu.org>
6615
6616 * NEWS: Mention "set foo unlimited".
6617
6618 2013-04-15 Doug Evans <dje@google.com>
6619
6620 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6621 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6622 (create_dwo_cu_reader): Renamed from
6623 create_dwo_debug_info_hash_table_reader.
6624 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6625 Remove support for multiple CUs in a DWO file.
6626 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6627
6628 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6629 instead of phex.
6630 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6631 (create_dwo_in_dwp): Ditto.
6632
6633 2013-04-15 Tom Tromey <tromey@redhat.com>
6634
6635 * NEWS: Move recent entries into "since 7.6" section.
6636
6637 2013-04-15 Tom Tromey <tromey@redhat.com>
6638
6639 PR c++/13588:
6640 * NEWS: Update.
6641 * break-catch-throw.c (struct exception_catchpoint)
6642 <exception_rx, pattern>: New fields.
6643 (fetch_probe_arguments, dtor_exception_catchpoint)
6644 (check_status_exception_catchpoint)
6645 (print_one_detail_exception_catchpoint): New functions.
6646 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6647 Compile regular expression if needed.
6648 (extract_exception_regexp): New function.
6649 (catch_exception_command_1): Use extract_exception_regexp.
6650 (compute_exception): Use fetch_probe_arguments.
6651 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6652 and check_status fields.
6653 * cp-abi.c (cplus_typename_from_type_info): New function.
6654 * cp-abi.h (cplus_typename_from_type_info): Declare.
6655 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6656 * gdb_regex.h (compile_rx_or_error): Declare.
6657 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6658 comment.
6659 (init_gnuv3_ops): Set get_type_from_type_info field.
6660 * probe.c (compile_rx_or_error): Move...
6661 * utils.c (compile_rx_or_error): ... here.
6662
6663 2013-04-15 Tom Tromey <tromey@redhat.com>
6664
6665 PR c++/15176:
6666 * NEWS: Update.
6667 * break-catch-throw.c (compute_exception): New function.
6668 (exception_funcs): New global.
6669 (_initialize_break_catch_throw): Create $_exception.
6670 * cp-abi.c (cplus_type_from_type_info): New function.
6671 * cp-abi.h (cplus_type_from_type_info): Declare.
6672 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6673 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6674 (gnuv3_get_type_from_type_info): New functions.
6675 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6676
6677 2013-04-15 Tom Tromey <tromey@redhat.com>
6678
6679 * break-catch-throw.c (struct exception_names): New.
6680 (exception_functions): Change type.
6681 (re_set_exception_catchpoint): Look for SDT probes.
6682
6683 2013-04-15 Tom Tromey <tromey@redhat.com>
6684
6685 PR c++/10119:
6686 * break-catch-throw.c (exception_functions): New global.
6687 (gnu_v3_exception_catchpoint_ops): Move earlier.
6688 (struct exception_catchpoint): New.
6689 (classify_exception_breakpoint): Rewrite.
6690 (re_set_exception_catchpoint): New function.
6691 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6692 Allocate a struct exception_catchpoint.
6693 (catch_exception_command_1): Update.
6694 (initialize_throw_catchpoint_ops): Set 're_set' method.
6695
6696 2013-04-15 Tom Tromey <tromey@redhat.com>
6697
6698 * Makefile.in (SFILES): Add break-catch-throw.c
6699 (COMMON_OBS): Add break-catch-throw.o.
6700 * break-catch-throw.c: New file.
6701 * breakpoint.c: Move exception-catching code to new file.
6702 (ep_parse_optional_if_clause): No longer static.
6703 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6704
6705 2013-04-15 Tom Tromey <tromey@redhat.com>
6706
6707 PR c++/9065:
6708 * NEWS: Update.
6709 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6710 * c-exp.y (TYPEID): New token.
6711 (exp): Add new TYPEID productions.
6712 (ident_tokens): Add "typeid".
6713 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6714 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6715 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6716 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6717 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6718 case.
6719 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6720 (build_std_type_info_type, gnuv3_get_typeid_type)
6721 (gnuv3_get_typeid): New functions.
6722 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6723 new fields on ABI object.
6724 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6725 * std-operator.def (OP_TYPEID): New.
6726
6727 2013-04-15 Tom Tromey <tromey@redhat.com>
6728
6729 * elfread.c (elf_symtab_read): Install versioned symbol under
6730 unversioned name as well.
6731
6732 2013-04-15 Tom Tromey <tromey@redhat.com>
6733
6734 PR c++/11990:
6735 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6736 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6737 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6738 (gdb_demangle): New function.
6739 * cp-support.h (gdb_demangle): Declare.
6740 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6741 (dwarf2_name): Use gdb_demangle.
6742 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6743 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6744 suffixes from name.
6745 (gnuv3_print_method_ptr): Use gdb_demangle.
6746 * jv-lang.c (java_demangle): Use gdb_demangle.
6747 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6748 * language.c (unk_lang_demangle): Use gdb_demangle.
6749 * symtab.c (symbol_find_demangled_name)
6750 (demangle_for_lookup): Use gdb_demangle.
6751
6752 2013-04-15 Tom Tromey <tromey@redhat.com>
6753
6754 PR c++/12824:
6755 * NEWS: Update.
6756 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6757 New constant.
6758 (classify_exception_breakpoint): New function.
6759 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6760 (print_mention_exception_catchpoint)
6761 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6762 (catch_exception_command_1): Handle "rethrow" catchpoint.
6763 (catch_rethrow_command): New function.
6764 (_initialize_breakpoint): Add "catch rethrow" command.
6765
6766 2013-04-15 Pierre Muller <muller@sourceware.org>
6767
6768 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6769 set_gdbarch_write_pc as deprecated anymore.
6770
6771 2013-04-15 Joel Brobecker <brobecker@adacore.com>
6772
6773 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6774 declarations.
6775
6776 2013-04-13 Yao Qi <yao@codesourcery.com>
6777
6778 * ctf.c (_initialize_ctf): Include "completer.h".
6779 Call add_target_with_completer instead of add_target.
6780
6781 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6782
6783 Fix GDB regression related to PR binutils/14813.
6784 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6785 * minidebug.c (lzma_close): Add return value comment.
6786 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6787 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6788 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6789
6790 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6791
6792 * config.in: Regenerate.
6793
6794 2013-04-12 Tom Tromey <tromey@redhat.com>
6795
6796 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6797 const.
6798 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6799 (struct die_reader_specs) <buffer>: Likewise.
6800 (die_reader_func_ftype): Make 'info_ptr' const.
6801 (struct line_header) <include_dirs, statement_program_start,
6802 statement_program_end>: Now const.
6803 (struct file_entry) <name>: Likewise.
6804 (struct partial_die_info) <sibling>: Likewise.
6805 (struct dwarf_block) <data>: Likewise.
6806 (dwarf2_read_section): Remove cast.
6807 (dwarf2_get_section_info): Make 'bufp' const.
6808 (read_index_from_section): Constify.
6809 (dw2_get_file_names_reader): Make 'info_ptr' const.
6810 (dw2_get_primary_filename_reader): Likewise.
6811 (read_comp_unit_head): Make 'info_ptr' and return type const.
6812 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6813 Likewise.
6814 (read_abbrev_offset): Constify.
6815 (dwarf2_create_include_psymtab): Make 'name' const.
6816 (create_debug_types_hash_table): Update.
6817 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6818 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6819 Constify.
6820 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6821 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6822 (read_comp_units_from_section): Constify.
6823 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6824 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6825 const.
6826 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6827 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6828 (create_dwp_hash_table, dwarf2_ranges_read)
6829 (dwarf2_record_block_ranges): Constify.
6830 (read_die_and_children, read_die_and_siblings_1)
6831 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6832 const.
6833 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6834 (abbrev_table_read_table): Constify.
6835 (load_partial_dies): Make 'info_ptr' const.
6836 (read_partial_die, read_attribute_value, read_attribute): Make
6837 'info_ptr' and return type const.
6838 (read_address, read_initial_length)
6839 (read_checked_initial_length_and_offset, read_offset)
6840 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6841 const.
6842 (read_direct_string): Make 'buf' and return type const.
6843 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6844 (read_indirect_string): Make return type const.
6845 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6846 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6847 'info_ptr' const.
6848 (read_str_index): Make return type const.
6849 (add_include_dir): Make 'include_dir' const.
6850 (add_file_name): Make 'name' const.
6851 (dwarf_decode_line_header): Constify.
6852 (psymtab_include_file_name): Make return type const.
6853 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6854 (dwarf2_start_subfile): Make 'filename' const.
6855 (dwarf2_const_value_attr): Make 'bytes' const.
6856 (read_signatured_type_reader): Make 'info_ptr' const.
6857 (decode_locdesc): Constify.
6858 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6859 const.
6860 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6861 'mac_end', and return type const.
6862 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6863 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6864 type const.
6865 (per_cu_header_read_in): Constify.
6866 * symfile.h (dwarf2_get_section_info): Update.
6867
6868 2013-04-12 Tom Tromey <tromey@redhat.com>
6869
6870 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6871
6872 2013-04-12 Eli Zaretskii <eliz@gnu.org>
6873
6874 * NEWS: Mention "show configuration", --configuration.
6875 * top.c (print_gdb_configuration): New function, displays the
6876 details about GDB configure-time parameters.
6877 (print_gdb_version): Mention "show configuration".
6878 * cli/cli-cmds.c (show_configuration): New function.
6879 (_initialize_cli_cmds): Add the "show configuration" command.
6880 * main.c (captured_main) <print_configuration>: New static var.
6881 <long_options>: Use it.
6882 If --configuration was given, call print_gdb_configuration.
6883
6884 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6885 Pedro Alves <palves@redhat.com>
6886
6887 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6888 (generated_files): Add gcore.
6889 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6890 HAVE_NATIVE_GCORE_HOST.
6891 (gcore): New.
6892 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6893 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6894 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6895 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6896 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6897 Add HAVE_NATIVE_GCORE_HOST.
6898 * configure: Regenerate.
6899 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6900 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6901 AC_CONFIG_FILES for gcore.
6902 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6903 gdb_have_gcore.
6904 * gdb_gcore.sh: Rename to ...
6905 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6906 and GCORE_TRANSFORM_NAME substitutions.
6907
6908 Fix parsing tabs in ${gdb_target_obs}.
6909 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6910
6911 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6912
6913 * remote.c (unpush_and_perror): Add output message final dot.
6914
6915 2013-04-11 Yao Qi <yao@codesourcery.com>
6916
6917 * tracepoint.c (tfile_interp_line): Fit parameters line and
6918 utpp in one line.
6919
6920 2013-04-10 Joel Brobecker <brobecker@adacore.com>
6921
6922 * solib.c (solib_map_sections): Remove code overwriting
6923 SO->SO_NAME with the bfd's filename.
6924
6925 2013-04-10 Pedro Alves <palves@redhat.com>
6926
6927 * cli/cli-decode.c (integer_unlimited_completer): New function.
6928 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6929 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6930 completer.
6931 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6932 (is_unlimited_literal): New function.
6933 (do_set_command): Handle literal "unlimited" arguments.
6934 * frame.c (_initialize_frame) <set backtrace limit>: Document
6935 "unlimited".
6936 * printcmd.c (_initialize_printcmd) <set print
6937 max-symbolic-offset>: Add help text.
6938 * record-full.c (_initialize_record_full) <set record full
6939 insn-number-max>: Likewise.
6940 * record.c (_initialize_record) <set record
6941 instruction-history-size, set record function-call-history-size>:
6942 Add help text.
6943 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6944 help text.
6945 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6946 Likewise.
6947 * source.c (_initialize_source) <set listsize>: Add help text.
6948 * utils.c (initialize_utils) <set height, set width>: Likewise.
6949 <set pagination>: Mention "set height unlimited".
6950 * valprint.c (_initialize_valprint) <set print elements, set print
6951 repeats>: Document "unlimited".
6952
6953 2013-04-10 Pedro Alves <palves@redhat.com>
6954
6955 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6956 instead of disconnect_tracing.
6957 * infcmd.c (detach_command, disconnect_command): Call
6958 query_if_trace_running. Adjust.
6959 * top.c: Include "tracepoint.h".
6960 (quit_target): Delete. Contents moved ...
6961 (quit_force): ... here. Wrap each stage of teardown in
6962 TRY_CATCH. Call disconnect_tracing before detaching.
6963
6964 2013-04-10 Hui Zhu <hui@codesourcery.com>
6965 Yao Qi <yao@codesourcery.com>
6966
6967 * configure.ac: Check libbabeltrace is installed.
6968 * config.in: Regenerate.
6969 * configure: Regenerate.
6970 * Makefile.in (LIBBABELTRACE): New.
6971 (CLIBS): Add LIBBABELTRACE.
6972 * ctf.c: Include "exec.h".
6973 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6974 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6975 (ctf_save_metadata_header): Define new type aliases in
6976 metadata.
6977 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6978 in metadata. Start a new faked packet for trace status.
6979 (ctf_write_status): Write trace status to CTF.
6980 (ctf_write_uploaded_tsv): Write TSV to CTF.
6981 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6982 (ctf_write_definition_end): End the faked packet.
6983
6984 (ctx, ctf_iter, trace_dirname): New.
6985 (start_pos): New variable.
6986 (ctf_destroy, ctf_open_dir, ctf_open): New.
6987 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6988 macros.
6989 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6990 (ctf_fetch_registers, ctf_xfer_partial): New.
6991 (ctf_get_trace_state_variable_value): New.
6992 (ctf_get_tpnum_from_frame_event): New.
6993 (ctf_get_traceframe_address): New.
6994 (ctf_trace_find, ctf_has_stack): New.
6995 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6996 (ctf_get_trace_status, ctf_read_status): New.
6997 (_initialize_ctf): New.
6998 * tracepoint.c (get_tracepoint_number): New
6999 (get_uploaded_tsv): Remove 'static'.
7000 (struct traceframe_info, trace_regblock_size): Move it to ...
7001 * tracepoint.h: ... here.
7002 (get_tracepoint_number): Declare it.
7003 (get_uploaded_tsv): Declare it.
7004
7005 * NEWS: Mention new configure option.
7006
7007 2013-04-10 Pedro Alves <palves@redhat.com>
7008 Hui Zhu <hui@codesourcery.com>
7009
7010 * breakpoint.c (dprintf_re_set): New.
7011 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7012 to dprintf_re_set.
7013
7014 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7015
7016 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7017 Remove solib-svr4.o from the list.
7018
7019 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7020
7021 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7022 Use gdb_assert_not_reached instead of invalid boolean expression.
7023
7024 2013-04-09 Pedro Alves <palves@redhat.com>
7025
7026 * remote.c (unpush_and_perror): New function.
7027 (readchar, remote_serial_write): Use it.
7028
7029 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7030
7031 * NEWS: Mention new btrace RSP packets.
7032
7033 2013-04-08 Tom Tromey <tromey@redhat.com>
7034
7035 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7036 long.
7037
7038 2013-04-08 Tom Tromey <tromey@redhat.com>
7039
7040 * maint.c (print_bfd_section_info): Print the section index.
7041 * symmisc.c (dump_msymbols): Print the section index.
7042
7043 2013-04-08 Tom Tromey <tromey@redhat.com>
7044
7045 PR symtab/8424:
7046 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7047 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7048 * breakpoint.c (resolve_sal_pc): Update.
7049 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7050 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7051 (minsym_lookup_iterator_cb): Use it.
7052 (default_read_var_value): Update.
7053 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7054 Update.
7055 * infcmd.c (jump_command): Update.
7056 * linespec.c (minsym_found): Update.
7057 * maint.c (maintenance_translate_address): Update.
7058 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7059 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7060 * parse.c (write_exp_msymbol): Update.
7061 * printcmd.c (address_info): Update.
7062 * psymtab.c (find_pc_sect_psymbol): Update.
7063 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7064 SYMBOL_OBJ_SECTION.
7065 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7066 Don't initialize SYMBOL_OBJ_SECTION.
7067 * spu-tdep.c (spu_catch_start): Update.
7068 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7069 * symmisc.c (dump_msymbols, print_symbol): Update.
7070 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7071 how fallback section is computed.
7072 (fixup_symbol_section): Update.
7073 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7074 Update.
7075 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7076 Initialize SYMBOL_SECTION.
7077 * symtab.h (struct general_symbol_info) <section>: Update comment.
7078 <obj_section>: Remove.
7079 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7080 (SYMBOL_OBJFILE): New macro.
7081
7082 2013-04-08 Tom Tromey <tromey@redhat.com>
7083
7084 * coffread.c (record_minimal_symbol): Update.
7085 * dbxread.c (record_minimal_symbol): Update.
7086 * elfread.c (record_minimal_symbol): Update.
7087 * machoread.c (macho_symtab_add_minsym): Update.
7088 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7089 Update.
7090 * minsyms.c (prim_record_minimal_symbol): Update.
7091 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7092 argument.
7093 (prim_record_minimal_symbol_and_info): Likewise.
7094 * minsyms.h (prim_record_minimal_symbol_full)
7095 (prim_record_minimal_symbol_and_info): Update.
7096 * symtab.c (allocate_symbol, initialize_symbol)
7097 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7098 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7099 Update.
7100
7101 2013-04-08 Tom Tromey <tromey@redhat.com>
7102
7103 PR symtab/8423:
7104 * solib-som.c (som_solib_section_offsets): Use BFD section
7105 indices. Set offsets for all sections.
7106 * somread.c (som_symtab_read): Compute BFD section for
7107 symbol. Use prim_record_minimal_symbol_and_info.
7108 (som_symfile_read): Fix comment.
7109 (struct find_section_offset_arg): New.
7110 (find_section_offset, set_section_index): New functions.
7111 (som_symfile_offsets): Use set_section_index to compute
7112 section indices.
7113
7114 2013-04-08 Tom Tromey <tromey@redhat.com>
7115
7116 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7117 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7118 gdb_bfd_section_index.
7119 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7120 New functions.
7121 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7122 Declare.
7123 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7124 Update.
7125 * objfiles.c (add_to_objfile_sections_full): New function.
7126 (add_to_objfile_sections): Use it.
7127 (build_section_table): Rewrite.
7128 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7129 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7130 (struct objfile) <sections>: Update comment.
7131 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7132 is NULL.
7133 (ALL_OBJSECTIONS): Use it.
7134 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7135 * solib-frv.c (frv_relocate_main_executable): Update.
7136 * solib-target.c (solib_target_relocate_section_addresses):
7137 Use gdb_bfd_section_index.
7138 * symfile.c (build_section_addr_info_from_section_table):
7139 Use gdb_bfd_section_index.
7140 (build_section_addr_info_from_bfd, place_section): Likewise.
7141 * symtab.c (fixup_section): Update.
7142 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7143
7144 2013-04-08 Tom Tromey <tromey@redhat.com>
7145
7146 * minsyms.h (struct bound_minimal_symbol): New.
7147 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7148 Remove objfile argument.
7149 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7150 Return bound_minimal_symbol.
7151 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7152 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7153 Return bound_minimal_symbol.
7154 (in_gnu_ifunc_stub): Update.
7155 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7156 Remove 'objfile_p' argument.
7157 (lookup_solib_trampoline_symbol_by_pc): Update.
7158 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7159 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7160 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7161 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7162 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7163 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7164 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7165 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7166 stack.c, symtab.c, tui/tui-disasm.c: Update.
7167
7168 2013-04-08 Tom Tromey <tromey@redhat.com>
7169
7170 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7171 Use symbol's obstack, not an objfile.
7172 * coffread.c (process_coff_symbol): Update.
7173 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7174 * jv-lang.c (add_class_symbol): Update.
7175 * mdebugread.c (new_symbol): Update.
7176 * minsyms.c (prim_record_minimal_symbol_full)
7177 (terminate_minimal_symbol_table): Update.
7178 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7179 * stabsread.c (define_symbol, read_enum_type): Update.
7180 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7181 Handle Ada specially.
7182 (symbol_set_language): Add 'obstack' argument.
7183 (symbol_set_names): Update.
7184 (symbol_natural_name, symbol_demangled_name): Always use
7185 ada_decode_symbol.
7186 * symtab.h (struct general_symbol_info)
7187 <language_specific::obstack>: New field.
7188 <ada_mangled>: New field.
7189 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7190 (symbol_set_language): Update.
7191
7192 2013-04-08 Tom Tromey <tromey@redhat.com>
7193
7194 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7195 Take an obstack, not an objfile.
7196 (symbol_set_names): Update.
7197 * symtab.h (symbol_set_demangled_name): Update.
7198
7199 2013-04-08 Tom Tromey <tromey@redhat.com>
7200
7201 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7202 allocate_symbol.
7203 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7204 (read_func_scope): Call allocate_template_symbol.
7205 (new_symbol_full): Call allocate_symbol.
7206 * jit.c (finalize_symtab): Call allocate_symbol.
7207 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7208 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7209 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7210 (common_block_end): Call allocate_symbol.
7211 * symtab.c (allocate_symbol, initialize_symbol)
7212 (allocate_template_symbol): New functions.
7213 * symtab.c (allocate_symbol, initialize_symbol)
7214 (allocate_template_symbol): Declare.
7215 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7216
7217 2013-04-08 Pedro Alves <palves@redhat.com>
7218 Keith Seitz <keiths@redhat.com>
7219
7220 * breakpoint.c (create_breakpoint): Rename
7221 "parse_condition_and_thread" parameter to "parse_arg". Update
7222 describing comment. If !PARSE_ARG, then error out if ARG is not
7223 the empty string after extracting the location.
7224 * breakpoint.h (create_breakpoint): Rename
7225 "parse_condition_and_thread" parameter to "parse_arg".
7226
7227 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7228
7229 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7230
7231 2013-04-07 Yao Qi <yao@codesourcery.com>
7232
7233 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7234 and 'addr2' to CORE_ADDR.
7235 * target.c (update_current_target): Update.
7236 * target.h (struct target_ops) <to_trace_find>: Change parameter
7237 type to CORE_ADDR.
7238 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7239 'addr2' to CORE_ADDR.
7240 (tfile_trace_find): Likewise.
7241 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7242 Change local variable 'addr' to type CORE_ADDR.
7243 * tracepoint.h (tfind_1): Update declaration.
7244
7245 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7246
7247 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7248 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7249 Include main.h.
7250
7251 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7252 here...
7253 * main.h (windows_get_absolute_argv0): ...to here.
7254
7255 2013-04-05 Doug Evans <dje@google.com>
7256
7257 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7258 (read_cutu_die_from_dwo): Add comments.
7259 (read_structure_type): Update comment.
7260 (read_enumeration_type, read_namespace_type): Update comment.
7261 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7262
7263 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7264
7265 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7266 * Makefile.in (gdb.z): Remove.
7267 (install-only): Remove $(man1dir) and gdb.1 installation.
7268 * gdb.1: Remove.
7269
7270 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7271
7272 Fix compatibility with Linux kernel 3.8.3.
7273 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7274 to more inner block. Remove parsing of NUMBER from outer block.
7275 Parse NUMBER only if KEYWORD has been identified.
7276
7277 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7278
7279 Fix variable name shadowing.
7280 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7281 filename to mapsfilename and update its uses.
7282
7283 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7284
7285 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7286 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7287 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7288 details of the problem.
7289
7290 2013-04-04 Pedro Alves <palves@redhat.com>
7291 Hui Zhu <hui@codesourcery.com>
7292
7293 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7294 tracepoint, reset its STEP_COUNT and call validate_actionline.
7295
7296 2013-04-03 Doug Evans <dje@google.com>
7297
7298 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7299 read_die_and_siblings.
7300 (read_die_and_siblings): New function.
7301 (read_cutu_die_from_dwo): Dump die if requested.
7302 (read_die_and_children): Call read_full_die_1 and
7303 read_die_and_siblings_1.
7304 (read_full_die): Dump die if requested.
7305
7306 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7307
7308 * dwarf2read.c (struct dwo_file): New member comp_dir.
7309 Rename member name to dwo_name. All uses updated.
7310 (hash_dwo_file): Include comp_dir in computation.
7311 (eq_dwo_file): Ditto.
7312 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7313 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7314
7315 * psymtab.c (read_psymtabs_with_fullname): Don't call
7316 psymtab_to_fullname if the basenames are different.
7317
7318 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7319
7320 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7321 New entry about "fullname" presence.
7322
7323 2013-04-03 Pedro Alves <palves@redhat.com>
7324
7325 * NEWS: Mention x86_64/Cygwin as new native configuration.
7326
7327 2013-04-02 Doug Evans <dje@google.com>
7328
7329 * dwarf2read.c (read_structure_type): Fix typo in comment.
7330
7331 2013-04-02 Pedro Alves <palves@redhat.com>
7332
7333 * NEWS: Mention "set/show debug aarch64", "set/show debug
7334 coff-pe-read" and "set/show debug mach-o".
7335
7336 2013-04-02 Pedro Alves <palves@redhat.com>
7337
7338 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7339
7340 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7341
7342 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7343 gdb_string.h is now in common/.
7344
7345 2013-04-02 Pedro Alves <palves@redhat.com>
7346
7347 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7348 under "New options".
7349
7350 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7351
7352 Revert this patch:
7353 PR gdb/15275
7354 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7355
7356 2013-04-02 Pedro Alves <palves@redhat.com>
7357
7358 PR gdb/15275
7359
7360 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7361 (remote_serial_write): New function.
7362 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7363
7364 2013-04-01 Jiong Wang <jiwang@tilera.com>
7365
7366 * NEWS: Mention TILE-Gx in "New native configurations" and
7367 "New targets" sections.
7368
7369 2013-04-01 Doug Evans <dje@google.com>
7370
7371 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7372 (process_enumeration_scope): Simplify.
7373
7374 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7375 type_unit_group ...
7376 (struct signatured_type): ... to here.
7377 (sig_type_ptr): New typedef.
7378 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7379 out of union 't'. All uses updated.
7380 (dw2_get_file_names_reader): Assert not called for a type unit.
7381 (dw2_get_file_names): Assert not called for a type unit or type
7382 unit group.
7383 (build_type_psymtabs_reader): Assert called for a type unit.
7384 (build_type_psymtab_dependencies): Assert called for a type unit group.
7385
7386 * dwarf2read.c (free_dwo_file): Add comment.
7387 (dwarf2_per_objfile_free): Unref dwp bfd.
7388
7389 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7390
7391 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7392 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7393 (read_pe_exported_syms): Remove unused 'exportix'.
7394 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7395 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7396 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7397
7398 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7399
7400 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7401 (print_it_watchpoint): Remove unused 'bl'.
7402 (say_where): Remove unused 'uiout'.
7403 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7404 (bkpt_breakpoint_hit): Remove unused 'b'.
7405 (internal_bkpt_print_it): Remove unused 'uiout'.
7406 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7407
7408 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7409
7410 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7411 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7412
7413 2013-03-29 Doug Evans <dje@google.com>
7414
7415 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7416 Delete arg is_dwp. All callers updated.
7417 (open_dwp_file): New function.
7418 (open_and_init_dwp_file): Call it.
7419 (get_dwp_file): New function.
7420 (lookup_dwo_cutu): Call it.
7421
7422 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7423 unnecessary, cleanup.
7424
7425 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7426
7427 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7428 (lookup_dwo_unit): New function.
7429 (init_cutu_and_read_dies): Move DWO handling to new functions.
7430
7431 * dwarf2read.c (struct signatured_type): Tweak comment.
7432 (struct dwo_unit): Tweak comment.
7433 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7434 (create_dwo_debug_info_hash_table): Tweak comment.
7435 (dwarf2_per_cu_offset_and_type): Tweak comment.
7436
7437 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7438 missing .debug_types section.
7439
7440 2013-03-29 Yao Qi <yao@codesourcery.com>
7441
7442 * corelow.c: Include "completer.h".
7443 (_initialize_corelow): Call add_target_with_completer with
7444 argument 'filename_completer'.
7445 * tracepoint.c: Likewise.
7446 * exec.c (_initialize_exec): Likewise.
7447 * target.c (add_target): Rename to ...
7448 (add_target_with_completer): ... this. Call set_cmd_completer
7449 if parameter completer is not NULL.
7450 (add_target): New.
7451 * target.h: Include "command.h".
7452 (add_target_with_completer): Declare it.
7453
7454 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7455
7456 * coffread.c (is_import_fixup_symbol): New function.
7457 (record_minimal_symbol): Use is_import_fixup_symbol to
7458 detect import fixup symbols, and discard them.
7459
7460 2013-03-28 Doug Evans <dje@google.com>
7461
7462 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7463 types hash table until we know we need it.
7464
7465 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7466 index numbers.
7467
7468 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7469 All callers updated.
7470 (dw2_print_stats): Print #read CUs too.
7471 (dump_die_shallow): Print signatured types better.
7472
7473 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7474 info_or_types_section to section. All uses updated.
7475 (struct dwo_unit): Ditto.
7476
7477 2013-03-28 Pedro Alves <palves@redhat.com>
7478
7479 * NEWS (New options): New section.
7480 (New options): Mention set/show remote trace-status-packet.
7481 * remote.c (PACKET_qTStatus): New enumeration value.
7482 (remote_get_trace_status): Skip sending qTStatus if the packet is
7483 disabled. Use packet_ok.
7484 (_initialize_remote): Register a configuration command for
7485 qTStatus packet.
7486
7487 2013-03-28 Doug Evans <dje@google.com>
7488
7489 * symfile.c (find_separate_debug_file): Add comment.
7490 (terminate_after_last_dir_separator): Tweak comment.
7491
7492 * dwarf2read.c (create_partial_symtab): Add forward decl.
7493 (create_partial_symtab): Move to be closer to other psymtab functions.
7494 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7495
7496 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7497 (compute_symtab_includes): Remove unnecessary forward declaration.
7498 (die_needs_namespace): Add comment marking group of functions for
7499 dwarf2 name computation.
7500
7501 * typeprint.c (_initialize_typeprint): Improve type help text.
7502
7503 * python/python.c (finish_python_initialization): Provide suggestion
7504 for how to tell gdb to find its python files.
7505
7506 2013-03-28 Pedro Alves <palves@redhat.com>
7507
7508 PR gdb/15294
7509
7510 * source.c (_initialize_source): Change back "set listsize" to an
7511 integer command.
7512
7513 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7514
7515 PR gdb/15275
7516 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7517
7518 2013-03-27 Pedro Alves <palves@redhat.com>
7519
7520 * top.c (history_size): Rename to ...
7521 (history_size_setshow_var): ... this. Add comment.
7522 (show_commands): Use readline's 'history_length' instead of
7523 computing the history length by calling history_get in a loop.
7524 (set_history_size_command): Error out for sizes over INT_MAX.
7525 Restore previous history size on invalid size.
7526 (init_history): If HISTSIZE is negative, leave the history size as
7527 zero. Add comments.
7528 (init_main): Adjust.
7529
7530 2013-03-27 Pedro Alves <palves@redhat.com>
7531
7532 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7533 coff_pe_read" command to "set debug coff-pe-read".
7534
7535 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7536
7537 * record.c (command_size_to_target_size): Fix size comparison.
7538 Change parameter type from pointer to integer to integer.
7539 Update all users.
7540
7541 2013-03-27 Pierre Muller <muller@sourceware.org>
7542
7543 * windows-nat.c (handle_output_debug_string): Avoid typecast
7544 from integer of different size warning.
7545
7546 2013-03-26 Joel Brobecker <brobecker@adacore.com>
7547
7548 * windows-nat.c (handle_output_debug_string): Add empty line
7549 after local block variable definition.
7550
7551 2013-03-26 Pedro Alves <palves@redhat.com>
7552
7553 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7554 (net_open): Make 'polls' local unsigned.
7555
7556 2013-03-26 Pedro Alves <palves@redhat.com>
7557
7558 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7559 a zuinteger command instead of uinteger.
7560
7561 2013-03-26 Pedro Alves <palves@redhat.com>
7562
7563 * record-full.c (record_full_insn_num): Make it unsigned.
7564 (record_full_check_insn_num, record_full_message)
7565 (record_full_registers_change, record_full_xfer_partial): Remove
7566 record_full_insn_max_num check (it's always != 0).
7567 (record_full_info, record_full_restore): Use %u as format string.
7568 (): Use %u as format string.
7569 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7570 check (it's always != 0).
7571
7572 2013-03-26 Pedro Alves <palves@redhat.com>
7573
7574 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7575 and "set dcache size" commands zuinteger instead of uinteger.
7576
7577 2013-03-26 Pedro Alves <palves@redhat.com>
7578
7579 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7580 command zuinteger instead of uinteger.
7581
7582 2013-03-26 Pedro Alves <palves@redhat.com>
7583
7584 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7585 zuinteger instead of uinteger.
7586
7587 2013-03-26 Pedro Alves <palves@redhat.com>
7588
7589 * record.c (record_insn_history_size_setshow_var)
7590 (record_call_history_size_setshow_var): New globals.
7591 (command_size_to_target_size): New function.
7592 (cmd_record_insn_history, cmd_record_call_history): Use
7593 command_size_to_target_size instead of cast.
7594 (validate_history_size, set_record_insn_history_size)
7595 (set_record_call_history_size): New functions.
7596 (_initialize_record): Install set_record_insn_history_size and
7597 set_record_call_history_size as "set" hooks of "set record
7598 instruction-history-size" and "set record
7599 function-call-history-size".
7600
7601 2013-03-26 Pedro Alves <palves@redhat.com>
7602
7603 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7604 use with history_max_entries use. Remove FIXME note.
7605
7606 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7607
7608 * record-btrace.c (record_btrace_close): Call
7609 record_btrace_auto_disable.
7610
7611 2013-03-25 Joel Brobecker <brobecker@adacore.com>
7612
7613 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7614
7615 2013-03-25 Doug Evans <dje@google.com>
7616
7617 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7618
7619 2013-03-25 Tom Tromey <tromey@redhat.com>
7620
7621 PR symtab/11462:
7622 * c-exp.y (exp): Add new productions for destructors after '.' and
7623 '->'.
7624 (write_destructor_name): New function.
7625
7626 2013-03-25 Tom Tromey <tromey@redhat.com>
7627
7628 PR c++/9197:
7629 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7630 value_struct_elt, not lookup_struct_elt_type.
7631 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7632 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7633 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7634
7635 2013-03-25 Yao Qi <yao@codesourcery.com>
7636
7637 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7638 instead of '_mkdir'.
7639
7640 2013-03-23 Eli Zaretskii <eliz@gnu.org>
7641
7642 * windows-nat.c (windows_get_absolute_argv0): New function.
7643 * windows-nat.h: Add its prototype.
7644
7645 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7646 Use IS_DIR_SEPARATOR instead of looking for a character inside
7647 SLASH_STRING. Include filenames.h.
7648 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7649 relocate_gdb_directory works when passed gdb_program_name.
7650 Include windows-nat.h.
7651
7652 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7653
7654 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7655 * remote.c (trace_error): Remove the special handling of '2'.
7656 (readchar) <SERIAL_EOF>
7657 (readchar) <SERIAL_ERROR>
7658 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7659 (remote_get_trace_status): Call throw_exception if EX is
7660 TARGET_CLOSE_ERROR.
7661 * utils.c (perror_with_name): Rename to ...
7662 (throw_perror_with_name): ... here. New parameter errcode, describe it
7663 in the function comment.
7664 (perror_with_name): New function wrapper.
7665 * utils.h (enum errors): New stub declaration.
7666 (throw_perror_with_name): New declaration.
7667
7668 2013-03-22 Pedro Alves <palves@redhat.com>
7669 Yao Qi <yao@codesourcery.com>
7670 Mark Kettenis <kettenis@gnu.org>
7671
7672 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7673 Don't let the user set the value to UINT_MAX directly.
7674 <var_integer>: Don't let the user set the value to INT_MAX
7675 directly.
7676
7677 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7678
7679 * remote.c (remote_unpush_target): New function.
7680 (remote_open_1): Remove two pop_target calls, update one comment, add
7681 comment to target_preopen call. Replace pop_target call by
7682 remote_unpush_target call.
7683 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7684 pop_target calls by remote_unpush_target calls.
7685
7686 2013-03-22 Pedro Alves <palves@redhat.com>
7687
7688 * linux-nat.c (linux_child_follow_fork): Don't call
7689 linux_enable_event_reporting.
7690 (linux_handle_extended_wait): Don't call
7691 linux_enable_event_reporting.
7692
7693 2013-03-22 Pedro Alves <palves@redhat.com>
7694
7695 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7696 use it to rewrite the trampoline buffers with type gdb_byte[], and
7697 undefine the macro. Remove char* cast.
7698
7699 2013-03-21 Doug Evans <dje@google.com>
7700
7701 New commands "mt set per-command {space,time,symtab} {on,off}".
7702 * NEWS: Add entry.
7703 * event-top.c: #include "maint.h".
7704 * main.c: #include "maint.h".
7705 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7706 timeval-utils.h, maint.h, cli/cli-setshow.h.
7707 (per_command_time, per_command_space): New static globals.
7708 (per_command_symtab): New static global.
7709 (per_command_setlist, per_command_showlist): New static globals.
7710 (struct cmd_stats): Move here from utils.c.
7711 (set_per_command_time): Renamed from set_display_time in utils.c
7712 and moved here. All callers updated.
7713 (set_per_command_space): Renamed from set_display_space in utils.c
7714 and moved here. All callers updated.
7715 (count_symtabs_and_blocks): New function.
7716 (report_command_stats): Moved here from utils.c. Add support for
7717 printing symtab stats. Only print data if enabled before command
7718 executed.
7719 (make_command_stats_cleanup): Ditto.
7720 (sert_per_command_cmd, show_per_command_cmd): New functions.
7721 (_initialize_maint_cmds): Add new commands
7722 mt set per-command {space,time,symtab} {on,off}.
7723 * maint.h: New file.
7724 * top.c: #include "maint.h".
7725 * utils.c (reset_prompt_for_continue_wait_time): New function.
7726 (get_prompt_for_continue_wait_time): New function.
7727 * utils.h (reset_prompt_for_continue_wait_time): Declare
7728 (get_prompt_for_continue_wait_time): Declare.
7729 (make_command_stats_cleanup): Moved to maint.h.
7730 (set_display_time, set_display_space): Moved to maint.h and renamed
7731 to set_per_command_time, set_per_command_space.
7732 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7733 parse_binary_operation and made non-static. Don't call error,
7734 just return an error marker. All callers updated.
7735 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7736
7737 2013-03-21 Tom Tromey <tromey@redhat.com>
7738
7739 * symfile.c (alloc_section_addr_info): Update header. Don't set
7740 'num_sections' field.
7741 (build_section_addr_info_from_section_table): Set 'num_sections'.
7742 (build_section_addr_info_from_bfd): Likewise.
7743 (build_section_addr_info_from_objfile): Remove dead loop
7744 condition.
7745 (free_section_addr_info): Unconditionally call xfree.
7746 (relative_addr_info_to_section_offsets, addrs_section_sort)
7747 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7748 condition.
7749 (syms_from_objfile_1): Remove dead 'if' condition. Check
7750 'num_sections'.
7751 (add_symbol_file_command): Set 'num_sections'.
7752 * symfile-mem.c (symbol_file_add_from_memory): Set
7753 'num_sections'.
7754 * somread.c (som_symfile_offsets): Remove dead loop condition.
7755 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7756 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7757
7758 2013-03-21 Tom Tromey <tromey@redhat.com>
7759
7760 * tracepoint.h (decode_agent_options): Add 'trace_string'
7761 argument.
7762 * tracepoint.c (decode_agent_options): Add 'trace_string'
7763 argument.
7764 (validate_actionline): Update.
7765 (collect_symbol): Add 'trace_string' argument.
7766 (struct add_local_symbols_data) <trace_string>: New field.
7767 (do_collect_symbol): Update.
7768 (add_local_symbols): Add 'trace_string' argument.
7769 (encode_actions_1): Update.
7770 (trace_dump_actions): Update.
7771 * dwarf2loc.c (access_memory): Update.
7772 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7773 * ax-general.c (new_agent_expr): Update.
7774 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7775 (gen_trace_for_return_address): Add argument.
7776 (trace_kludge, trace_string_kludge): Remove.
7777 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7778 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7779 (gen_trace_for_var): Add 'trace_string' argument.
7780 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7781 (gen_printf, agent_eval_command_one): Update.
7782
7783 2013-03-21 Tom Tromey <tromey@redhat.com>
7784
7785 PR exp/15109:
7786 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7787 Handle FILENAME token.
7788
7789 2013-03-21 Tom Tromey <tromey@redhat.com>
7790
7791 * c-exp.y (YYPRINT): Define.
7792 (c_print_token): New function.
7793
7794 2013-03-21 Tom Tromey <tromey@redhat.com>
7795
7796 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7797
7798 2013-03-21 Yao Qi <yao@codesourcery.com>
7799
7800 * ctf.c: Include "gdb_stat.h".
7801 [USE_WIN32API]: New macro 'mkdir'.
7802 (ctf_start): Use permission bits macros if they are defined.
7803
7804 2013-03-20 Keith Seitz <keiths@redhat.com>
7805
7806 * breakpoint.h (struct breakpoint): Add comment to
7807 extra_string indicating that this member is mallod'd.
7808 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7809
7810 2013-03-20 Pedro Alves <palves@redhat.com>
7811
7812 PR gdb/15289
7813
7814 * cli/cli-setshow.c (do_set_command)
7815 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7816 the result of parsing the command argument. Throw error if the
7817 value is greater than UINT_MAX. Print the invalid value with
7818 plongest.
7819 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7820 result of parsing the command argument. Throw error if the value
7821 is greater than INT_MAX, not greater or equal. Also throw error
7822 if the value is less than INT_MIN. Print the invalid value with
7823 plongest.
7824 <var_zuinteger_unlimited>: Throw error if the value is greater
7825 than INT_MAX, not greater or equal.
7826 (do_show_command) <var_integer, var_zinteger,
7827 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7828
7829 2013-03-20 Tom Tromey <tromey@redhat.com>
7830
7831 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7832 if possible.
7833 * dwarf2read.c (read_func_scope): Remove old FIXME.
7834 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7835 not LOC_COMPUTED.
7836 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7837 Unconditionally call via computed ops, if possible.
7838 * printcmd.c (address_info): Unconditionally call via computed ops,
7839 if possible.
7840 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7841 if possible.
7842 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7843 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7844 if possible.
7845
7846 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7847 Tom Tromey <tromey@redhat.com>
7848
7849 PR symtab/8421:
7850 * coffread.c (coff_register_index): New global.
7851 (process_coff_symbol, coff_read_enum_type): Set
7852 SYMBOL_ACLASS_INDEX.
7853 (_initialize_coffread): Initialize new global.
7854 * dwarf2loc.c (locexpr_find_frame_base_location)
7855 (dwarf2_block_frame_base_locexpr_funcs)
7856 (loclist_find_frame_base_location)
7857 (dwarf2_block_frame_base_loclist_funcs): New.
7858 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7859 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7860 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7861 (dwarf2_block_frame_base_loclist_funcs): New.
7862 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7863 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7864 globals.
7865 (read_func_scope): Update.
7866 (fixup_go_packaging, mark_common_block_symbol_computed)
7867 (var_decode_location, new_symbol_full, dwarf2_const_value):
7868 Set SYMBOL_ACLASS_INDEX.
7869 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7870 (_initialize_dwarf2_read): Initialize new globals.
7871 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7872 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7873 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7874 globals.
7875 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7876 (_initialize_mdebugread): Initialize new globals.
7877 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7878 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7879 (stab_register_index, stab_regparm_index): New globals.
7880 (define_symbol, read_enum_type, common_block_end): Set
7881 SYMBOL_ACLASS_INDEX.
7882 (_initialize_stabsread): Initialize new globals.
7883 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7884 globals.
7885 (MAX_SYMBOL_IMPLS): New define.
7886 (register_symbol_computed_impl, register_symbol_block_impl)
7887 (register_symbol_register_impl)
7888 (initialize_ordinary_address_classes): New functions.
7889 (_initialize_symtab): Call initialize_ordinary_address_classes.
7890 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7891 (struct symbol_impl): New.
7892 (SYMBOL_ACLASS_BITS): New define.
7893 (struct symbol) <aclass, ops>: Remove fields.
7894 <aclass_index>: New field.
7895 (symbol_impls): Declare.
7896 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7897 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7898 (register_symbol_computed_impl, register_symbol_block_impl)
7899 (register_symbol_register_impl): Declare.
7900 (struct symbol_computed_ops): Add location_has_loclist.
7901 (struct symbol_block_ops): New.
7902 (SYMBOL_BLOCK_OPS): New.
7903 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7904
7905 2013-03-20 Tom Tromey <tromey@redhat.com>
7906
7907 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7908 (print_partial_symbols, recursively_search_psymtabs): Use
7909 PSYMBOL_CLASS.
7910
7911 2013-03-20 Pierre Muller <muller@sourceware.org>
7912
7913 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7914 addtion, subtraction, multiplication and division binary operator.
7915
7916 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7917
7918 Code cleanup.
7919 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7920 * bsd-kvm.c (bsd_kvm_close): Likewise.
7921 * bsd-uthread.c (bsd_uthread_close): Likewise.
7922 * corelow.c (core_close): Likewise.
7923 (core_close_cleanup): Remove parameter quitting from a caller.
7924 * event-top.c (async_disconnect): Likewise.
7925 * exec.c (exec_close_1): Remove parameter quitting.
7926 * go32-nat.c (go32_close): Likewise.
7927 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7928 parameter quitting from a caller.
7929 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7930 variable.
7931 (mips_linux_close): Remove parameter quitting. Remove parameter
7932 quitting from a caller.
7933 * monitor.c (monitor_close): Remove parameter quitting.
7934 * monitor.h (monitor_close): Likewise.
7935 * record-btrace.c (record_btrace_close): Likewise.
7936 * record-full.c (record_full_close): Likewise.
7937 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7938 it also from fprintf_unfiltered.
7939 * remote-mips.c (mips_close): Remove parameter quitting.
7940 (mips_detach): Remove parameter quitting from a caller.
7941 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7942 (gdbsim_close): Remove duplicate function comment. Remove parameter
7943 quitting and remove it also from printf_filtered.
7944 * remote.c (remote_close): Remove parameter quitting.
7945 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7946 * target.c (update_current_target): Remove parameter int from to_close
7947 de_fault.
7948 (push_target, unpush_target, pop_target): Remove parameter quitting from
7949 a caller.
7950 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7951 Remove parameter quitting from a caller.
7952 (target_preopen): Remove parameter quitting from a caller.
7953 (target_close): Remove parameter quitting. Remove parameter quitting
7954 from a caller two times. Remove parameter quitting also from
7955 fprintf_unfiltered.
7956 * target.h (struct target_ops): Remove parameter quitting and as int
7957 from fields to_xclose and to_close.
7958 (extern struct target_ops current_target):
7959 (target_close, pop_all_targets): Remove parameter quitting. Update the
7960 comment.
7961 (pop_all_targets_above): Remove parameter quitting.
7962 * top.c (quit_target): Remove parameter quitting from a caller.
7963 * tracepoint.c (tfile_close): Remove parameter quitting.
7964 * windows-nat.c (windows_close): Remove parameter quitting.
7965
7966 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
7967
7968 * windows-nat.c (handle_output_debug_string): Replace call
7969 to string_to_core_addr with call to strtoull.
7970
7971 2013-03-20 Yao Qi <yao@codesourcery.com>
7972
7973 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7974 and write it to CTF metadata.
7975
7976 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
7977
7978 * windows-nat.c (handle_output_debug_string): Change type of n to
7979 SIZE_T to avoid crash on 64 bit systems.
7980
7981 2013-03-17 Eli Zaretskii <eliz@gnu.org>
7982
7983 * python/python-internal.h (HAVE_SNPRINTF)
7984 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7985 about redefinition of snprintf by pyerrors.h.
7986
7987 2013-03-15 Steve Ellcey <sellcey@mips.com>
7988
7989 * remote-sim.c (sim_command_completer): Make char arguments const.
7990
7991 2013-03-15 Tom Tromey <tromey@redhat.com>
7992
7993 PR c++/15116:
7994 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7995
7996 2013-03-14 Tom Tromey <tromey@redhat.com>
7997
7998 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7999 New fields.
8000 (get_file_crc): Move from symfile.c.
8001 (gdb_bfd_crc): New function.
8002 * gdb_bfd.h (gdb_bfd_crc): Declare.
8003 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8004 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8005 (separate_debug_file_exists): Use gdb_bfd_crc.
8006
8007 2013-03-14 Tom Tromey <tromey@redhat.com>
8008
8009 * symfile.c (get_debug_link_info): Remove.
8010 (find_separate_debug_file_by_debuglink): Use
8011 bfd_get_debug_link_info.
8012
8013 2013-03-14 Tom Tromey <tromey@redhat.com>
8014
8015 * symtab.c (error_in_psymtab_expansion): New function.
8016 (lookup_symbol_aux_quick)
8017 (basic_lookup_transparent_type_quick): Remove "last resort"
8018 code. Use error_in_psymtab_expansion.
8019
8020 2013-03-14 Doug Evans <dje@google.com>
8021 Jan Kratochvil <jan.kratochvil@redhat.com>
8022
8023 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8024 any successful compare_filenames_for_search or FILENAME_CMP.
8025 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8026 * symtab.c (iterate_over_some_symtabs): Likewise.
8027
8028 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8029
8030 * source.c (print_source_lines_base): Make a local copy of
8031 symtab_to_fullname.
8032
8033 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
8034 Jan Kratochvil <jan.kratochvil@redhat.com>
8035
8036 * source.c (print_source_lines_base): Suppress "file" for TUI.
8037
8038 2013-03-14 Keith Seitz <keiths@redhat.com>
8039 Alan Matsuoka <alanm@redhat.com>
8040
8041 PR c++/15203
8042 PR c++/15210
8043 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8044 TYPE_CODE_METHOD.
8045 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8046 symbols.
8047
8048 2013-03-14 Yao Qi <yao@codesourcery.com>
8049
8050 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8051 status to tfile if trace is stopped by command 'tstop'.
8052
8053 2013-03-14 Yao Qi <yao@codesourcery.com>
8054
8055 * tracepoint.c (tfile_write_status): Write trace notes and user
8056 name into tfile if they are not NULL.
8057
8058 2013-03-14 Hui Zhu <hui@codesourcery.com>
8059 Yao Qi <yao@codesourcery.com>
8060
8061 * Makefile.in (REMOTE_OBS): Add ctf.o.
8062 (SFILES): Add ctf.c.
8063 (HFILES_NO_SRCDIR): Add ctf.h.
8064 * ctf.c, ctf.h: New files.
8065 * tracepoint.c: Include 'ctf.h'.
8066 (collect_pseudocommand): Remove static.
8067 (trace_save_command): Parse option "-ctf".
8068 Produce different trace file writers per option.
8069 Adjust output message.
8070 (trace_save_tfile, trace_save_ctf): New.
8071 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8072 * mi/mi-main.c: Include 'ctf.h'.
8073 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8074 trace_save_tfile or trace_save_ctf.
8075 * NEWS: Mention these changes.
8076
8077 2013-03-14 Yao Qi <yao@codesourcery.com>
8078
8079 * tracepoint.c (trace_file_writer_xfree): New.
8080 (struct tfile_writer_data): New.
8081 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8082 (tfile_write_header, tfile_write_regblock_type): New.
8083 (tfile_write_status, tfile_write_uploaded_tsv): New.
8084 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8085 (tfile_write_raw_data, (tfile_end): New.
8086 (tfile_write_ops): New global variable.
8087 (TRACE_WRITE_R_BLOCK): New macro.
8088 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8089 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8090 (TRACE_WRITE_V_BLOCK): New macro.
8091 (trace_save): Add extra one parameter WRITER. Make it static.
8092 Use WRITER to writer trace.
8093 (tfile_trace_file_writer_new): New.
8094 (trace_save_command): Caller update.
8095 (trace_save_tfile): Write trace data in TFILE format.
8096 * tracepoint.h (struct trace_frame_write_ops): New.
8097 (struct trace_file_write_ops): New.
8098 (struct trace_file_writer): New.
8099 (trace_save): Remove its declaration.
8100 (trace_save_tfile): Declare it.
8101 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8102 instead of trace_save.
8103
8104 2013-03-13 Pedro Alves <palves@redhat.com>
8105
8106 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8107
8108 2013-03-13 Pedro Alves <palves@redhat.com>
8109
8110 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8111 commented out code.
8112 * demangle.c (current_demangling_style_string): Make it const.
8113 (set_demangling_command): Assert the demangling style is known.
8114 Remove all handling of unknown styles. Set
8115 'current_demangling_style_string' to an element of the
8116 demangling_style_names array.
8117 (set_demangling_style): Delete.
8118 (_initialize_demangler): Set current_demangling_style_string to the
8119 element of the demangling_style_names array that corresponds to
8120 the default demangling style. Remove FIXME note. Don't call
8121 set_demangling_style.
8122 * gdb-demangle.h (set_demangling_style): Remove declaration.
8123
8124 2013-03-13 Pedro Alves <palves@redhat.com>
8125
8126 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8127 fields const.
8128 (ada_make_symbol_completion_list): Make "text0" parameter const.
8129 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8130 * breakpoint.c (condition_completer): Make "text" and "word"
8131 parameters const. Adjust.
8132 (check_tracepoint_command): Adjust to validate_actionline
8133 prototype change.
8134 (catch_syscall_completer): Make "text" and "word" parameters
8135 const.
8136 * cli/cli-cmds.c (show_user): Make "comname" local const.
8137 (valid_command_p): Make "command" parameter const.
8138 (alias_command): Make "alias_prefix" and "command_prefix" locals
8139 const.
8140 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8141 (add_alias_cmd): Make "name" and "oldname" parameters const.
8142 Adjust. No longer make copy of OLDNAME.
8143 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8144 (add_setshow_cmd_full, add_setshow_enum_cmd)
8145 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8146 (add_setshow_filename_cmd, add_setshow_string_cmd)
8147 (add_setshow_string_noescape_cmd)
8148 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8149 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8150 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8151 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8152 Make "name" parameter const.
8153 (help_cmd): Rename "command" parameter to "arg". New const local
8154 "command".
8155 (find_cmd): Make "command" parameter const.
8156 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8157 deprecated_cmd_warning prototype change.
8158 (undef_cmd_error): Make "cmdtype" parameter const.
8159 (lookup_cmd): Make "line" parameter const.
8160 (deprecated_cmd_warning): Change type of "text" parameter to
8161 pointer to const char, from pointer to pointer to char. Adjust.
8162 (lookup_cmd_composition): Make "text" parameter const.
8163 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8164 parameters const.
8165 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8166 const.
8167 * cli/cli-script.c (validate_comname): Make "tem" local const.
8168 (define_command): New const local "tem_c". Use it in calls to
8169 lookup_cmd.
8170 (document_command): Make "tem" and "comfull" locals const.
8171 (show_user_1): Make "prefix" and "name" parameters const.
8172 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8173 const.
8174 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8175 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8176 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8177 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8178 (complete_on_enum, add_setshow_enum_cmd)
8179 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8180 (add_setshow_filename_cmd, add_setshow_string_cmd)
8181 (add_setshow_string_noescape_cmd)
8182 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8183 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8184 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8185 Change prototypes, constifying strings.
8186 * completer.c (noop_completer, filename_completer): Make "text"
8187 and "prefix" parameters const.
8188 (location_completer, expression_completer)
8189 (complete_line_internal): Make "text" and "prefix" parameters
8190 const and adjust.
8191 (command_completer, signal_completer): Make "text" and "prefix"
8192 parameters const.
8193 * completer.h (noop_completer, filename_completer)
8194 (expression_completer, location_completer, command_completer)
8195 (signal_completer): Change prototypes.
8196 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8197 parameters const.
8198 * cp-abi.c (cp_abi_completer): Likewise.
8199 * expression.h (parse_expression_for_completion): Change
8200 prototype.
8201 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8202 parameters const.
8203 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8204 * infrun.c (handle_completer): Make "text" and "word" parameters
8205 const.
8206 * interps.c (interpreter_completer): Make "text" and "word"
8207 parameters const.
8208 * language.h (struct language_defn)
8209 <la_make_symbol_completion_list>: Make "text" and "word"
8210 parameters const.
8211 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8212 (parse_exp_in_context): Rename to ...
8213 (parse_exp_in_context_1): ... this.
8214 (parse_exp_in_context): Reimplement, with const hack from
8215 parse_exp_1.
8216 (parse_expression_for_completion): Make "string" parameter const.
8217 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8218 to pointer to const char. Adjust.
8219 (print_command_1): Make "exp" parameter const.
8220 (output_command): Rename to ...
8221 (output_command_const): ... this. Make "exp" parameter const.
8222 (output_command): Reimplement.
8223 (x_command): Adjust.
8224 (display_command): Rename "exp" parameter to "arg". New "exp"
8225 local, const version of "arg".
8226 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8227 "cmd_name" local const.
8228 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8229 call.
8230 (cmdpy_completer): Make "text" and "word" parameters const.
8231 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8232 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8233 const.
8234 * remote.c (_initialize_remote): Make "cmd_name" local const.
8235 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8236 parameters const. Adjust.
8237 (completion_list_add_fields): Make "sym_text", "text" and "word"
8238 parameters const.
8239 (struct add_name_data) <sym_text, text, word>: Make fields const.
8240 (default_make_symbol_completion_list_break_on): Make "text" and
8241 "word" parameters const. Adjust locals.
8242 (default_make_symbol_completion_list)
8243 (make_symbol_completion_list, make_symbol_completion_type)
8244 (make_symbol_completion_list_fn): Make "text" and "word"
8245 parameters const.
8246 (make_file_symbol_completion_list): Make "text", "word" and
8247 "srcfile" parameters const. Adjust locals.
8248 (add_filename_to_list): Make "text" and "word" parameters const.
8249 (struct add_partial_filename_data) <text, word>: Make fields
8250 const.
8251 (make_source_files_completion_list): Make "text" and "word"
8252 parameters const.
8253 * symtab.h (default_make_symbol_completion_list_break_on)
8254 (default_make_symbol_completion_list, make_symbol_completion_list)
8255 (make_symbol_completion_type enum type_code)
8256 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8257 (make_source_files_completion_list): Change prototype.
8258 * top.c (execute_command): Adjust to pass pointer to pointer to
8259 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8260 change.
8261 (set_verbose): Make "cmdname" local const.
8262 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8263 and adjust.
8264 (validate_actionline): Make "line" parameter a pointer to const
8265 char, and adjust.
8266 (encode_actions_1): Make "action_exp" local const, and adjust.
8267 (encode_actions): Adjust.
8268 (replace_comma): Delete.
8269 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8270 const, and adjust. Don't frob the action string while splitting
8271 it at commas. Instead, make a copy of each split substring in
8272 turn.
8273 (trace_dump_command): Adjust to validate_actionline prototype
8274 change.
8275 * tracepoint.h (decode_agent_options, decode_agent_options)
8276 (encode_actions, validate_actionline): Change prototypes.
8277 * valprint.h (output_command): Delete declaration.
8278 (output_command_const): Declare.
8279 * value.c (function_destroyer): Cast const away in xfree call.
8280
8281 2013-03-13 Pedro Alves <palves@redhat.com>
8282
8283 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8284 rather than casting 'const char * const *' to 'const char **'.
8285 * ada-lex.l (processInt): Make "trailer" local const. Remove
8286 'const char **' cast.
8287 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8288 locals, and use those as strtol output pointer, instead than doing
8289 invalid casts to from 'const char **' to 'char **'.
8290 (_initialize_demangle): Remove cast.
8291 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8292 locals, and use those as strtol output pointer, instead than doing
8293 invalid casts to from 'const char **' to 'char **'.
8294 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8295 casts.
8296 * stap-probe.c (stap_parse_register_operand)
8297 (stap_parse_single_operand): Likewise.
8298
8299 2013-03-13 Yao Qi <yao@codesourcery.com>
8300
8301 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8302 the last matched 'V' blcok in trace frame.
8303
8304 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8305
8306 * NEWS: Create a new section for the next release branch.
8307 Rename the section of the current branch, now that it has
8308 been cut.
8309
8310 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8311
8312 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8313 * version.in: Bump version to 7.6.50.20130312-cvs.
8314
8315 2013-03-12 Keith Seitz <keiths@redhat.com>
8316
8317 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8318 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8319 Remove temporary copy of input string.
8320 (mi_execute_command_wrapper): Make "cmd" const.
8321 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8322 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8323 Use const strings.
8324 (mi_parse): Make "cmd" const.
8325 Use const strings.
8326 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8327
8328 2013-03-12 Keith Seitz <keiths@redhat.com>
8329
8330 * ada-lang.c (ada_read_renaming_var_value): Pass const
8331 pointer to expression string to parse_exp_1.
8332 (create_excep_cond_exprs): Likewise.
8333 * ax-gdb.c (agent_eval_command_one): Likewise.
8334 (maint_agent_printf_command): Likewise.
8335 Constify much of the string handling/parsing.
8336 * breakpoint.c (set_breakpoint_condition): Pass const
8337 pointer to expression string to parse_exp_1.
8338 (update_watchpoint): Likewise.
8339 (parse_cmd_to_aexpr): Constify string handling.
8340 Pass const pointer to parse_exp_1.
8341 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8342 (find_condition_and_thread): Likewise.
8343 Make TOK const.
8344 (watch_command_1): Make "arg" const.
8345 Constify string handling.
8346 Copy the expression string instead of changing the input
8347 string.
8348 (update_breakpoint_location): Pass const pointer to
8349 parse_exp_1.
8350 * eval.c (parse_and_eval_address): Make "exp" const.
8351 (parse_to_comma_and_eval): Make "expp" const.
8352 (parse_and_eval): Make "exp" const.
8353 * expression.h (parse_expression): Make argument const.
8354 (parse_exp_1): Make first argument const.
8355 * findcmd.c (parse_find_args): Treat "args" as const.
8356 * linespec.c (parse_linespec): Pass const pointer to
8357 linespec_expression_to_pc.
8358 (linespec_expression_to_pc): Make "exp_ptr" const.
8359 * parse.c (parse_exp_1): Make "stringptr" const.
8360 Make a copy of the expression to pass to parse_exp_in_context until
8361 this whole interface can be constified.
8362 (parse_expression): Make "string" const.
8363 * printcmd.c (ui_printf): Treat "arg" as const.
8364 Handle const strings.
8365 * tracepoint.c (validate_actionline): Pass const pointer to
8366 all calls to parse_exp_1.
8367 (encode_actions_1): Likewise.
8368 * value.h (parse_to_comma_and_eval): Make argument const.
8369 (parse_and_eval_address): Likewise.
8370 (parse_and_eval): Likewise.
8371 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8372 (varobj_set_value): Likewise.
8373 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8374 constify string handling.
8375 Pass const pointers to parse_and_eval_address and
8376 parse_to_comman_and_eval.
8377 * cli/cli-utils.c (skip_to_space): Rename to ...
8378 (skip_to_space_const): ... this. Handle const strings.
8379 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8380 skip_to_space_const.
8381 (skip_to_space_const): Declare.
8382 * common/format.c (parse_format_string): Make "arg" const.
8383 Handle const strings.
8384 * common/format.h (parse_format_string): Make "arg" const.
8385 * gdbserver/ax.c (ax_printf): Make "format" const.
8386 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8387 of the expression string.
8388
8389 2013-03-12 Hui Zhu <hui@codesourcery.com>
8390
8391 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8392
8393 2013-03-12 Yao Qi <yao@codesourcery.com>
8394 Hui Zhu <hui@codesourcery.com>
8395
8396 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8397 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8398 DW_OP_deref_size.
8399
8400 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8401
8402 * ada-lex.l (rules): Only recognize 'thread' as a
8403 delimiter when followed by numerals, as for c-exp.y.
8404 Use new rewind_to_char function to rewind the input for
8405 expression-delimiting tokens.
8406 (rewind_to_char): New function.
8407
8408 2013-03-11 Pedro Alves <palves@redhat.com>
8409 Jan Kratochvil <jan.kratochvil@redhat.com>
8410
8411 * configure: Regenerate.
8412 * configure.ac (check dynamic export flag): Link python test with
8413 $PYTHON_LIBS.
8414
8415 2013-03-11 Doug Evans <dje@google.com>
8416 Keith Seitz <keiths@redhat.com>
8417
8418 * linespec.c (find_linespec_symbols): Call find_function_symbols
8419 first, and then call lookup_prefix_sym/find_method.
8420
8421 2013-03-11 Pedro Alves <palves@redhat.com>
8422
8423 * charset.c (convert_between_encodings): Don't cast between
8424 different pointer to pointer types. Instead, make the 'inp' local
8425 be of the type iconv expects.
8426 (wchar_iterate): Don't cast between different pointer to pointer
8427 types. Instead, use new pointer local of the type iconv expects.
8428 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8429 Add new local of type char pointer, and use it to get a
8430 char/string view of the byte buffer, instead of casting between
8431 pointer to pointer types.
8432
8433 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8434
8435 * remote.c (remote_set_trace_buffer_size): Move != operator
8436 to the start of next line to fix an ARI warning.
8437
8438 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8439
8440 * NEWS: Add record changes.
8441
8442 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8443
8444 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8445 the instruction history disassembly.
8446 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8447 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8448
8449 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8450
8451 * Makefile.in (SFILES): Add record-btrace.c
8452 (COMMON_OBS): Add record-btrace.o
8453 * record-btrace.c: New.
8454 * objfiles.c: Include btrace.h.
8455 (free_objfile): call btrace_free_objfile.
8456
8457 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8458
8459 * target.c (target_call_history, target_call_history_from,
8460 target_call_history_range): New.
8461 * target.h (target_ops) <to_call_history, to_call_history_from,
8462 to_call_history_range>: New fields.
8463 (target_call_history, target_call_history_from,
8464 target_call_history_range): New declaration.
8465 * record.c (get_call_history_modifiers, cmd_record_call_history,
8466 record_call_history_size): New.
8467 (_initialize_record): Add the "record function-call-history" command.
8468 Add "set/show record function-call-history-size" commands.
8469 * record.h (record_print_flag): New.
8470
8471 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8472
8473 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8474 to_insn_history_range>: New fields.
8475 (target_insn_history): New.
8476 (target_insn_history_from): New.
8477 (target_insn_history_range): New.
8478 * target.c (target_insn_history): New.
8479 (target_insn_history_from): New.
8480 (target_insn_history_range): New.
8481 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8482 (record_insn_history_size): New.
8483 (get_insn_number): New.
8484 (get_context_size): New.
8485 (no_chunk): New.
8486 (get_insn_history_modifiers): New.
8487 (cmd_record_insn_history): New.
8488 (_initialize_record): Add "set/show record instruction-history-size"
8489 command. Add "record instruction-history" command.
8490
8491 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8492
8493 * record.h (record_disconnect): New.
8494 (record_detach): New.
8495 (record_mourn_inferior): New.
8496 (record_kill): New.
8497 * record-full.c (record_disconnect, record_detach,
8498 record_mourn_inferior, record_kill): Move to...
8499 * record.c: ...here.
8500 (DEBUG): New.
8501 (record_stop): New.
8502 (record_unpush): New.
8503 (cmd_record_stop): Call record_stop. Replace unpush_target
8504 call with record_unpush call.
8505 (record_disconnect, record_detach): Assert that the target
8506 is of record stratum. Call record_unpush, record_stop, and
8507 DEBUG.
8508 (record_mourn_inferior, record_kill): Assert that the target
8509 is of record stratum. Call record_unpush and DEBUG.
8510
8511 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8512
8513 * record-full.h, record-full.c (record_memory_query): Rename
8514 to ...
8515 (record_full_memory_query): ...this. Update all users.
8516 (record_arch_list_add_reg): Rename to ...
8517 (record_full_arch_list_add_reg): ...this. Update all users.
8518 (record_arch_list_add_mem): Rename to ...
8519 (record_full_arch_list_add_mem): ...this. Update all users.
8520 (record_arch_list_add_end): Rename to ...
8521 (record_full_arch_list_add_end): ...this. Update all users.
8522 (record_gdb_operation_disable_set): Rename to ...
8523 (record_full_gdb_operation_disable_set): ...this.
8524 Update all users.
8525
8526 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8527
8528 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8529 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8530 (RECORD_IS_REPLAY): Renamed to ...
8531 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8532 (RECORD_FILE_MAGIC): Renamed to ...
8533 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8534 (record_mem_entry): Renamed to ...
8535 (record_full_mem_entry): ... this. Updated all users.
8536 (record_reg_entry): Renamed to ...
8537 (record_full_reg_entry): ... this. Updated all users.
8538 (record_end_entry): Renamed to ...
8539 (record_full_end_entry): ... this. Updated all users.
8540 (record_type) <record_end, record_reg, record_mem>: Renamed
8541 to ...
8542 (record_full_type) <record_full_end, record_full_reg,
8543 record_full_mem>: ... this. Updated all users.
8544 (record_entry): Renamed to ...
8545 (record_full_entry): ... this. Updated all users.
8546 (record_core_buf_entry): Renamed to ...
8547 (record_full_core_buf_entry): ... this. Updated all users.
8548 (record_core_regbuf): Renamed to ...
8549 (record_full_core_regbuf): ... this. Updated all users.
8550 (record_core_start): Renamed to ...
8551 (record_full_core_start): ... this. Updated all users.
8552 (record_core_end): Renamed to ...
8553 (record_full_core_end): ... this. Updated all users.
8554 (record_core_buf_list): Renamed to ...
8555 (record_full_core_buf_list): ... this. Updated all users.
8556 (record_first): Renamed to ...
8557 (record_full_first): ... this. Updated all users.
8558 (record_list): Renamed to ...
8559 (record_full_list): ... this. Updated all users.
8560 (record_arch_list_head): Renamed to ...
8561 (record_full_arch_list_head): ... this. Updated all users.
8562 (record_arch_list_tail): Renamed to ...
8563 (record_full_arch_list_tail): ... this. Updated all users.
8564 (record_stop_at_limit): Renamed to ...
8565 (record_full_stop_at_limit): ... this. Updated all users.
8566 (record_insn_max_num): Renamed to ...
8567 (record_full_insn_max_num): ... this. Updated all users.
8568 (record_insn_num): Renamed to ...
8569 (record_full_insn_num): ... this. Updated all users.
8570 (record_insn_count): Renamed to ...
8571 (record_full_insn_count): ... this. Updated all users.
8572 (record_ops): Renamed to ...
8573 (record_full_ops): ... this. Updated all users.
8574 (record_core_ops): Renamed to ...
8575 (record_full_core_ops): ... this. Updated all users.
8576 (set_record_cmdlist): Renamed to ...
8577 (set_record_full_cmdlist): ... this. Updated all users.
8578 (show_record_cmdlist): Renamed to ...
8579 (show_record_full_cmdlist): ... this. Updated all users.
8580 (record_cmdlist): Renamed to ...
8581 (record_full_cmdlist): ... this. Updated all users.
8582 (record_beneath_to_resume_ops): Renamed to ...
8583 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8584 (record_beneath_to_resume): Renamed to ...
8585 (record_full_beneath_to_resume): ... this. Updated all users.
8586 (record_beneath_to_wait_ops): Renamed to ...
8587 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8588 (record_beneath_to_wait): Renamed to ...
8589 (record_full_beneath_to_wait): ... this. Updated all users.
8590 (record_beneath_to_store_registers_ops): Renamed to ...
8591 (record_full_beneath_to_store_registers_ops): ... this.
8592 Updated all users.
8593 (record_beneath_to_store_registers): Renamed to ...
8594 (record_full_beneath_to_store_registers): ... this.
8595 Updated all users.
8596 (record_beneath_to_xfer_partial_ops): Renamed to ...
8597 (record_full_beneath_to_xfer_partial_ops): ... this.
8598 Updated all users.
8599 (record_beneath_to_xfer_partial): Renamed to ...
8600 (record_full_beneath_to_xfer_partial): ... this.
8601 Updated all users.
8602 (record_beneath_to_insert_breakpoint): Renamed to ...
8603 (record_full_beneath_to_insert_breakpoint): ... this.
8604 Updated all users.
8605 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8606 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8607 Updated all users.
8608 (record_beneath_to_stopped_data_address): Renamed to ...
8609 (record_full_beneath_to_stopped_data_address): ... this.
8610 Updated all users.
8611 (record_beneath_to_async): Renamed to ...
8612 (record_full_beneath_to_async): ... this. Updated all users.
8613 (record_goto_insn): Renamed to ...
8614 (record_full_goto_insn): ... this. Updated all users.
8615 (record_save): Renamed to ...
8616 (record_full_save): ... this. Updated all users.
8617 (record_reg_alloc): Renamed to ...
8618 (record_full_reg_alloc): ... this. Updated all users.
8619 (record_reg_release): Renamed to ...
8620 (record_full_reg_release): ... this. Updated all users.
8621 (record_mem_alloc): Renamed to ...
8622 (record_full_mem_alloc): ... this. Updated all users.
8623 (record_mem_release): Renamed to ...
8624 (record_full_mem_release): ... this. Updated all users.
8625 (record_end_alloc): Renamed to ...
8626 (record_full_end_alloc): ... this. Updated all users.
8627 (record_end_release): Renamed to ...
8628 (record_full_end_release): ... this. Updated all users.
8629 (record_entry_release): Renamed to ...
8630 (record_full_entry_release): ... this. Updated all users.
8631 (record_list_release): Renamed to ...
8632 (record_full_list_release): ... this. Updated all users.
8633 (record_list_release_following): Renamed to ...
8634 (record_full_list_release_following): ... this.
8635 Updated all users.
8636 (record_list_release_first): Renamed to ...
8637 (record_full_list_release_first): ... this. Updated all users.
8638 (record_arch_list_add): Renamed to ...
8639 (record_full_arch_list_add): ... this. Updated all users.
8640 (record_get_loc): Renamed to ...
8641 (record_full_get_loc): ... this. Updated all users.
8642 (record_check_insn_num): Renamed to ...
8643 (record_full_check_insn_num): ... this. Updated all users.
8644 (record_arch_list_cleanups): Renamed to ...
8645 (record_full_arch_list_cleanups): ... this. Updated all users.
8646 (record_message): Renamed to ...
8647 (record_full_message): ... this. Updated all users.
8648 (record_message_wrapper): Renamed to ...
8649 (record_full_message_wrapper): ... this. Updated all users.
8650 (record_message_wrapper_safe): Renamed to ...
8651 (record_full_message_wrapper_safe): ... this. Updated all users.
8652 (record_gdb_operation_disable): Renamed to ...
8653 (record_full_gdb_operation_disable): ... this. Updated all users.
8654 (record_hw_watchpoint): Renamed to ...
8655 (record_full_hw_watchpoint): ... this. Updated all users.
8656 (record_exec_insn): Renamed to ...
8657 (record_full_exec_insn): ... this. Updated all users.
8658 (record_restore): Renamed to ...
8659 (record_full_restore): ... this. Updated all users.
8660 (record_async_inferior_event_token): Renamed to ...
8661 (record_full_async_inferior_event_token): ... this.
8662 Updated all users.
8663 (record_async_inferior_event_handler): Renamed to ...
8664 (record_full_async_inferior_event_handler): ... this.
8665 Updated all users.
8666 (record_core_open_1): Renamed to ...
8667 (record_full_core_open_1): ... this. Updated all users.
8668 (record_open_1): Renamed to ...
8669 (record_full_open_1): ... this. Updated all users.
8670 (record_open): Renamed to ...
8671 (record_full_open): ... this. Updated all users.
8672 (record_close): Renamed to ...
8673 (record_full_close): ... this. Updated all users.
8674 (record_resume_step): Renamed to ...
8675 (record_full_resume_step): ... this. Updated all users.
8676 (record_resumed): Renamed to ...
8677 (record_full_resumed): ... this. Updated all users.
8678 (record_execution_dir): Renamed to ...
8679 (record_full_execution_dir): ... this. Updated all users.
8680 (record_resume): Renamed to ...
8681 (record_full_resume): ... this. Updated all users.
8682 (record_get_sig): Renamed to ...
8683 (record_full_get_sig): ... this. Updated all users.
8684 (record_sig_handler): Renamed to ...
8685 (record_full_sig_handler): ... this. Updated all users.
8686 (record_wait_cleanups): Renamed to ...
8687 (record_full_wait_cleanups): ... this. Updated all users.
8688 (record_wait_1): Renamed to ...
8689 (record_full_wait_1): ... this. Updated all users.
8690 (record_wait): Renamed to ...
8691 (record_full_wait): ... this. Updated all users.
8692 (record_stopped_by_watchpoint): Renamed to ...
8693 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8694 (record_disconnect): Renamed to ...
8695 (record_full_disconnect): ... this. Updated all users.
8696 (record_detach): Renamed to ...
8697 (record_full_detach): ... this. Updated all users.
8698 (record_mourn_inferior): Renamed to ...
8699 (record_full_mourn_inferior): ... this. Updated all users.
8700 (record_kill): Renamed to ...
8701 (record_full_kill): ... this. Updated all users.
8702 (record_stopped_data_address): Renamed to ...
8703 (record_full_stopped_data_address): ... this. Updated all users.
8704 (record_registers_change): Renamed to ...
8705 (record_full_registers_change): ... this. Updated all users.
8706 (record_store_registers): Renamed to ...
8707 (record_full_store_registers): ... this. Updated all users.
8708 (record_xfer_partial): Renamed to ...
8709 (record_full_xfer_partial): ... this. Updated all users.
8710 (record_breakpoint): Renamed to ...
8711 (record_full_breakpoint): ... this. Updated all users.
8712 (record_breakpoint_p): Renamed to ...
8713 (record_full_breakpoint_p): ... this. Updated all users.
8714 (record_breakpoints): Renamed to ...
8715 (record_full_breakpoints): ... this. Updated all users.
8716 (record_sync_record_breakpoints): Renamed to ...
8717 (record_full_sync_record_breakpoints): ... this.
8718 Updated all users.
8719 (record_init_record_breakpoints): Renamed to ...
8720 (record_full_init_record_breakpoints): ... this.
8721 Updated all users.
8722 (record_insert_breakpoint): Renamed to ...
8723 (record_full_insert_breakpoint): ... this. Updated all users.
8724 (record_remove_breakpoint): Renamed to ...
8725 (record_full_remove_breakpoint): ... this. Updated all users.
8726 (record_can_execute_reverse): Renamed to ...
8727 (record_full_can_execute_reverse): ... this. Updated all users.
8728 (record_get_bookmark): Renamed to ...
8729 (record_full_get_bookmark): ... this. Updated all users.
8730 (record_goto_bookmark): Renamed to ...
8731 (record_full_goto_bookmark): ... this. Updated all users.
8732 (record_async): Renamed to ...
8733 (record_full_async): ... this. Updated all users.
8734 (record_can_async_p): Renamed to ...
8735 (record_full_can_async_p): ... this. Updated all users.
8736 (record_is_async_p): Renamed to ...
8737 (record_full_is_async_p): ... this. Updated all users.
8738 (record_execution_direction): Renamed to ...
8739 (record_full_execution_direction): ... this. Updated all users.
8740 (record_info): Renamed to ...
8741 (record_full_info): ... this. Updated all users.
8742 (record_delete): Renamed to ...
8743 (record_full_delete): ... this. Updated all users.
8744 (record_is_replaying): Renamed to ...
8745 (record_full_is_replaying): ... this. Updated all users.
8746 (record_goto_entry): Renamed to ...
8747 (record_full_goto_entry): ... this. Updated all users.
8748 (record_goto_begin): Renamed to ...
8749 (record_full_goto_begin): ... this. Updated all users.
8750 (record_goto_end): Renamed to ...
8751 (record_full_goto_end): ... this. Updated all users.
8752 (record_goto): Renamed to ...
8753 (record_full_goto): ... this. Updated all users.
8754 (init_record_ops): Renamed to ...
8755 (init_record_full_ops): ... this. Updated all users.
8756 (record_core_resume): Renamed to ...
8757 (record_full_core_resume): ... this. Updated all users.
8758 (record_core_kill): Renamed to ...
8759 (record_full_core_kill): ... this. Updated all users.
8760 (record_core_fetch_registers): Renamed to ...
8761 (record_full_core_fetch_registers): ... this. Updated all users.
8762 (record_core_prepare_to_store): Renamed to ...
8763 (record_full_core_prepare_to_store): ... this. Updated all users.
8764 (record_core_store_registers): Renamed to ...
8765 (record_full_core_store_registers): ... this. Updated all users.
8766 (record_core_xfer_partial): Renamed to ...
8767 (record_full_core_xfer_partial): ... this. Updated all users.
8768 (record_core_insert_breakpoint): Renamed to ...
8769 (record_full_core_insert_breakpoint): ... this. Updated all users.
8770 (record_core_remove_breakpoint): Renamed to ...
8771 (record_full_core_remove_breakpoint): ... this. Updated all users.
8772 (record_core_has_execution): Renamed to ...
8773 (record_full_core_has_execution): ... this. Updated all users.
8774 (init_record_core_ops): Renamed to ...
8775 (init_record_full_core_ops): ... this. Updated all users.
8776 (cmd_record_restore): Renamed to ...
8777 (cmd_record_full_restore): ... this. Updated all users.
8778 (record_save_cleanups): Renamed to ...
8779 (record_full_save_cleanups): ... this. Updated all users.
8780 (cmd_record_start): Renamed to ...
8781 (cmd_record_full_start): ... this. Updated all users.
8782 (set_record_insn_max_num): Renamed to ...
8783 (set_record_full_insn_max_num): ... this. Updated all users.
8784 (set_record_command): Renamed to ...
8785 (set_record_full_command): ... this. Updated all users.
8786 (show_record_command): Renamed to ...
8787 (show_record_full_command): ... this. Updated all users.
8788 (_initialize_record): Renamed to ...
8789 (_initialize_record_full): ... this. Updated all users.
8790
8791 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8792
8793 * record.h: Split into this and ...
8794 * record-full.h: ... this.
8795 * record.c: Split into this and ...
8796 * record-full.c: ... this.
8797 * target.h (target_ops): Add new fields to_info_record,
8798 to_save_record, to_delete_record, to_record_is_replaying,
8799 to_goto_record_begin, to_goto_record_end, to_goto_record.
8800 (target_info_record): New.
8801 (target_save_record): New.
8802 (target_supports_delete_record): New.
8803 (target_delete_record): New.
8804 (target_record_is_replaying): New.
8805 (target_goto_record_begin): New.
8806 (target_goto_record_end): New.
8807 (target_goto_record): New.
8808 * target.c (target_info_record): New.
8809 (target_save_record): New.
8810 (target_supports_delete_record): New.
8811 (target_delete_record): New.
8812 (target_record_is_replaying): New.
8813 (target_goto_record_begin): New.
8814 (target_goto_record_end): New.
8815 (target_goto_record): New.
8816 * record.h: Declare struct cmd_list_element.
8817 (record_cmdlist): New declaration.
8818 (set_record_cmdlist): New declaration.
8819 (show_record_cmdlist): New declaration.
8820 (info_record_cmdlist): New declaration.
8821 (cmd_record_goto): New declaration.
8822 * record.c: Remove unnecessary includes.
8823 Include inferior.h.
8824 (cmd_record_goto): Remove declaration.
8825 (record_cmdlist): Now extern. Initialize.
8826 (set_record_cmdlist): Now extern. Initialize.
8827 (show_record_cmdlist): Now extern. Initialize.
8828 (info_record_cmdlist): Now extern. Initialize.
8829 (find_record_target): New.
8830 (require_record_target): New.
8831 (cmd_record_start): Update.
8832 (cmd_record_delete): Remove target-specific code.
8833 Call target_delete_record.
8834 (cmd_record_stop): Unpush any record target.
8835 (set_record_insn_max_num): Move to record-full.c
8836 (set_record_command): Add comment.
8837 (show_record_command): Add comment.
8838 (info_record_command): Update comment.
8839 Remove target-specific code.
8840 Call the record target's to_info_record.
8841 (cmd_record_start): New.
8842 (cmd_record_goto): Now extern.
8843 Remove target-specific code.
8844 Call target_goto_begin, target_goto_end, or target_goto.
8845 (_initialize_record): Move record target ops initialization to
8846 record-full.c.
8847 Change "record" command help text.
8848 Move "record restore", "record set", and "record show" commands to
8849 record-full.c.
8850 * Makefile.in (SFILES): Add record-full.c.
8851 (HFILES_NO_SRCDIR): Add record-full.h.
8852 (COMMON_OBS): Add record-full.o.
8853 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8854 * arm-tdep.c: Include record-full.h.
8855 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8856 * i386-tdep.c: Include record-full.h.
8857 * infrun.c: Include record-full.h.
8858 * linux-record.c: Include record-full.h.
8859 * moxie-tdep.c: Include record-full.h.
8860 * record-full.c: Include record-full.h.
8861 Change module comment.
8862 (set_record_full_cmdlist): New.
8863 (show_record_full_cmdlist): New.
8864 (record_full_cmdlist): New.
8865 (record_goto_insn): New declaration.
8866 (record_save): New declaration.
8867 (record_check_insn_num): Change query string.
8868 (record_info): New.
8869 (record_delete): New.
8870 (record_is_replaying): New.
8871 (record_goto_entry): New.
8872 (record_goto_begin): New.
8873 (record_goto_end): New.
8874 (record_goto): New.
8875 (init_record_ops): Update.
8876 (init_record_core_ops): Update.
8877 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8878 (cmd_record_start): New.
8879 (set_record_insn_max_num): Moved from record.c
8880 (set_record_full_command): New.
8881 (show_record_full_command): New.
8882 (_initialize_record_full): New.
8883
8884 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8885
8886 * target.h (add_deprecated_target_alias): New.
8887 * target.c (add_deprecated_target_alias): New.
8888
8889 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8890
8891 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8892 and signal.h.
8893 (linux_supports_btrace): Add kernel and
8894 cpuid check.
8895 (kernel_supports_btrace): New function.
8896 (cpu_supports_btrace): New function.
8897 (intel_supports_btrace): New function.
8898
8899 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8900
8901 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8902 * remote.c: Include btrace.h.
8903 (struct btrace_target_info): New struct.
8904 (remote_supports_btrace): New function.
8905 (send_Qbtrace): New function.
8906 (remote_enable_btrace): New function.
8907 (remote_disable_btrace): New function.
8908 (remote_teardown_btrace): New function.
8909 (remote_read_btrace): New function.
8910 (init_remote_ops): Add btrace ops.
8911 (enum <unnamed>): Add btrace packets.
8912 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8913 (_initialize_remote): Add packet configuration for branch tracing.
8914
8915 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8916
8917 * features/btrace.dtd: New file.
8918 * Makefile.in (XMLFILES): Add btrace.dtd.
8919 * btrace.h (parse_xml_btrace): New declaration.
8920 * btrace.c: Include xml-support.h.
8921 (parse_xml_btrace): New function.
8922 (parse_xml_btrace_block): New function.
8923 (block_attributes): New struct.
8924 (btrace_attributes): New struct.
8925 (btrace_children): New struct.
8926 (btrace_elements): New struct.
8927
8928 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8929
8930 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8931 (amd64_linux_enable_btrace): New.
8932 (amd64_linux_disable_btrace): New.
8933 (amd64_linux_teardown_btrace): New.
8934 (_initialize_amd64_linux_nat): Initialize btrace ops.
8935 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8936 (i386_linux_enable_btrace): New.
8937 (i386_linux_disable_btrace): New.
8938 (i386_linux_teardown_btrace): New.
8939 (_initialize_i386_linux_nat): Initialize btrace ops.
8940 * config/i386/linux.mh: Add linux-btrace.o.
8941 * config/i386/linux64.mh: Add linux-btrace.o.
8942
8943 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8944
8945 * common/linux_btrace.h: New file.
8946 * common/linux_btrace.c: New file.
8947 * Makefile.in (SFILES): Add btrace.c.
8948 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8949 (COMMON_OBS): Add btrace.o.
8950 (linux-btrace.o): New rule.
8951
8952 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8953
8954 * target.h: Include btrace.h.
8955 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8956 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8957 * target.c (target_supports_btrace): New function.
8958 (target_enable_btrace): New function.
8959 (target_disable_btrace): New function.
8960 (target_teardown_btrace): New function.
8961 (target_read_btrace): New function.
8962 * btrace.h: New file.
8963 * btrace.c: New file.
8964 * Makefile.in: Add btrace.c.
8965 * gdbthread.h: Include btrace.h.
8966 (struct thread_info): Add btrace field.
8967 * thread.c: Include btrace.h.
8968 (clear_thread_inferior_resources): Call target_teardown_btrace.
8969 * common/btrace-common.h: New file.
8970
8971 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8972
8973 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8974 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8975 kill_status to outer block.
8976
8977 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8978
8979 Fix entry-values if the callee called a noreturn function.
8980 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8981 get_frame_address_in_block. Add new comment.
8982
8983 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8984
8985 Fix entry-values in C++ across CUs.
8986 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8987 lookup_minimal_symbol. Add a comment.
8988 * dwarf2read.c
8989 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8990 DW_AT_linkage_name.
8991
8992 2013-03-08 Yao Qi <yao@codesourcery.com>
8993
8994 * tracepoint.c (_initialize_tracepoint): Indent the code.
8995
8996 2013-03-08 Pedro Alves <palves@redhat.com>
8997
8998 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8999 (parse_find_args, find_command): Change type of pattern buffer
9000 locals to 'gdb_byte *'.
9001
9002 2013-03-08 Stan Shebs <stan@codesourcery.com>
9003 Hafiz Abid Qadeer <abidh@codesourcery.com>
9004
9005 * NEWS: Mention set and show trace-buffer-size commands.
9006 Mention new packet.
9007 * target.h (struct target_ops): New method
9008 to_set_trace_buffer_size.
9009 (target_set_trace_buffer_size): New macro.
9010 * target.c (update_current_target): Set up new method.
9011 * tracepoint.c (trace_buffer_size): New global.
9012 (start_tracing): Send it to the target.
9013 (set_trace_buffer_size): New function.
9014 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9015 * remote.c (remote_set_trace_buffer_size): New function.
9016 (_initialize_remote): Use it.
9017 (QTBuffer:size) New remote command.
9018 (PACKET_QTBuffer_size): New enum.
9019 (remote_protocol_features): Add an entry for
9020 PACKET_QTBuffer_size.
9021
9022 2013-03-08 Tom Tromey <tromey@redhat.com>
9023
9024 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9025 variable.
9026
9027 2013-03-07 Pedro Alves <palves@redhat.com>
9028
9029 * target.c (target_read_stralloc, target_fileio_read_alloc):
9030 *Cast pointer to 'gdb_byte *' in target call.
9031
9032 2013-03-07 Pedro Alves <palves@redhat.com>
9033
9034 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9035 call.
9036
9037 2013-03-07 Keith Seitz <keiths@redhat.com>
9038
9039 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9040 (trace_pass_command): Likewise.
9041 * cli/cli-cmds.c: Include cli/cli-utils.h.
9042 (source_command): Use skip-spaces.
9043 (disassemble_command): Likewise.
9044 * findcmd.c: Include cli/cli-utils.h.
9045 (parse_find_args): Use skip_spaces.
9046 * go32-nat.c: Include cli/cli-utils.h.
9047 (go32_sldt): Use skip_spaces.
9048 (go32_sgdt): Likewise.
9049 (go32_sidt): Likewise.
9050 (go32_pde): Likewise.
9051 (go32_pte): Likewise.
9052 (go32_pte_for_address): Likewise.
9053 * infcmd.c: Include cli/cli-utils.h.
9054 (registers_info): Use skip_spaces.
9055 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9056 (linux_info_proc): Likewise.
9057 * linux-thread-db.c: Include cli/cli-utils.h.
9058 (info_auto_load_libthread_db): Use skip_spaces_const.
9059 * m32r-rom.c: Include cli/cli-utils.h.
9060 (m32r_upload_command): Use skip_spaces.
9061 * maint.c: Include cli/cli-utils.h.
9062 (maintenance_translate_address): Use skip_spaces.
9063 * mi/mi-parse.c: Include cli/cli-utils.h.
9064 (mi_parse_argv): Use skip_spaces.
9065 (mi_parse): Likewise.
9066 * minsyms.c: Include cli/cli-utils.h.
9067 (msymbol_hash_iw): Use skip_spaces_const.
9068 * objc-lang.c: Include cli/cli-utils.h.
9069 (parse_selector): Use skip_spaces.
9070 (parse_method): Likewise.
9071 * python/python.c: Include cli/cli-utils.h.
9072 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9073 (python_command)[HAVE_PYTHON]: Likewise.
9074 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9075 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9076 (m32r_load): Use skip_spaces.
9077 * serial.c: Include cli/cli-utils.h.
9078 (serial_open): Use skip_spaces_const.
9079 * stack.c: Include cli/cli-utils.h.
9080 (parse_frame_specification_1): Use skip_spaces_const.
9081 * symfile.c: Include cli/cli-utils.h.
9082 (set_ext_lang_command): Use skip_spaces.
9083 * symtab.c: Include cli/cli-utils.h.
9084 (rbreak_command): Use skip_spaces.
9085 * thread.c (thread_name_command): Use skip_spaces.
9086 * tracepoint.c (validate_actionline): Use skip_spaces.
9087 (encode_actions_1): Likewise.
9088 (trace_find_range_command): Likewise.
9089 (trace_find_outside_command): Likewise.
9090 (trace_dump_actions): Likewise.
9091
9092 2013-03-07 Pedro Alves <palves@redhat.com>
9093
9094 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9095 * expprint.c (print_subexp_standard): Likewise.
9096 * utils.c (host_char_to_target): Likewise.
9097 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9098 * varobj.c (value_get_print_value): Change type of local to char*.
9099 Cast it gdb_byte * in call to language printer.
9100
9101 2013-03-07 Pedro Alves <palves@redhat.com>
9102
9103 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9104 gdb_byte *'.
9105 (make_wchar_iterator): Remove cast to char*.
9106 (wchar_iterate): Change type of local.
9107
9108 2013-03-07 Pedro Alves <palves@redhat.com>
9109
9110 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9111 for 'regcache->register_status'.
9112
9113 2013-03-07 Pedro Alves <palves@redhat.com>
9114
9115 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9116 int.
9117
9118 2013-03-07 Pedro Alves <palves@redhat.com>
9119
9120 * stap-probe.c (handle_stap_probe): Add cast to char*.
9121
9122 2013-03-07 Pedro Alves <palves@redhat.com>
9123
9124 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9125 RECORD_MSGRCV>: Pass a signed variable to
9126 regcache_raw_read_signed, instead of an unsigned one.
9127
9128 2013-03-07 Pedro Alves <palves@redhat.com>
9129
9130 * remote-notif.c (notif_debug): Change type to int.
9131 * remote-notif.h (notif_debug): Likewise.
9132
9133 2013-03-07 Pedro Alves <palves@redhat.com>
9134
9135 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9136
9137 2013-03-07 Pedro Alves <palves@redhat.com>
9138
9139 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9140 * remote.h (hex2bin, bin2hex): ... here.
9141 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9142
9143 2013-03-07 Eli Zaretskii <eliz@gnu.org>
9144
9145 * utils.c (initialize_utils): Improve doc strings of "set/show
9146 width", "set/show height", and "set/show pagination".
9147
9148 2013-03-06 Keith Seitz <keiths@redhat.com>
9149
9150 * ax-gdb.c (gen_printf): Make FORMAT const.
9151 * ax-gdb.h (gen_printf): Likewise.
9152 * ax-general.c (ax_string): Make STR const.
9153 * ax.h (ax_string): Likewise.
9154
9155 2013-03-06 Doug Evans <dje@google.com>
9156
9157 * elfread.c (elf_symfile_read): Move debugging printf to more
9158 logical location.
9159
9160 2013-03-06 Pedro Alves <palves@redhat.com>
9161
9162 * python/py-utils.c (target_string_to_unicode): Delete function.
9163 * python/python-internal.h (target_string_to_unicode): Delete
9164 declaration.
9165
9166 2013-03-06 Pierre Muller <muller@sourceware.org>
9167
9168 * linespec.c (get_current_search_block): ARI fix, use (void)
9169 for empty parameter list.
9170
9171 2013-03-05 Doug Evans <dje@google.com>
9172
9173 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9174 of old ada_lookup_symbol_list. In !full_search case, don't
9175 search superblocks.
9176 (ada_lookup_symbol_list): Delete arg full_search, all callers
9177 updated. Call ada_lookup_symbol_list_worker.
9178 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9179 * ada-lang.h (ada_lookup_symbol_list): Update.
9180 * language.h (language_defn): Update comment for
9181 la_iterate_over_symbols.
9182 * linespec.c (iterate_over_file_blocks): New function.
9183 (iterate_over_all_matching_symtabs): Call it.
9184 (lookup_prefix_sym): Ditto.
9185 (get_current_search_block): New function.
9186 (get_search_block): Delete.
9187 (find_label_symbols): Call get_current_search_block.
9188 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9189 * symtab.c (iterate_over_symbols): Don't search superblocks.
9190
9191 2013-03-05 Yao Qi <yao@codesourcery.com>
9192
9193 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9194 parameter VAR's type from "unsigned int" to "int".
9195 * command.h (var_zuinteger_unlimited): Update its comments.
9196 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9197
9198 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9199
9200 * NEWS: Mention new target x86_64-*-cygwin*.
9201
9202 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9203
9204 * configure.host: Add x86_64-*-cygwin* as host.
9205 * configure.tgt: Add x86_64-*-cygwin* as target.
9206 * config/i386/cygwin64.mh: New file.
9207
9208 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9209
9210 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9211
9212 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9213
9214 * linespec.c (struct linespec_canonical_name): New.
9215 (struct linespec_state): Change canonical_names type to it.
9216 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9217 xrealloc element size. Initialize the different CANONICAL fields.
9218 (canonical_to_fullform): New.
9219 (filter_results): Use it. Add variables canonical, fullform and
9220 cleanup.
9221 (struct decode_line_2_item, decode_line_2_compare_items): New.
9222 (decode_line_2): Remove variables iter and item_names, add variables
9223 items and items_count. Modify the code for these new variables.
9224
9225 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9226
9227 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9228 calling do_cleanup.
9229
9230 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9231
9232 * tracepoint.c (build_traceframe_info): Add code for byte order.
9233
9234 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9235
9236 * v850-tdep.c: (v850e2_register_name): Revise system register
9237 names to match current V850E2M architecture specifications.
9238 Update register number enum comments too.
9239
9240 2013-03-01 Jiong Wang <jiwang@tilera.com>
9241 Pedro Alves <palves@redhat.com>
9242
9243 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9244 to END_ADDR.
9245 (tilegx_skip_prologue): Limit prologue analysis to section end.
9246
9247 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9248
9249 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9250 use it.
9251
9252 2013-03-01 Pedro Alves <palves@redhat.com>
9253
9254 Use gdb_byte for bytes from the program being debugged.
9255
9256 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9257 Change type of local 'buf' to gdb_byte.
9258 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9259 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9260 * cris-tdep.c (cris_sigcontext_addr)
9261 (cris_sigtramp_frame_unwind_cache): Likewise.
9262 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9263 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9264 Likewise.
9265 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9266 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9267 (hppa32_hpux_search_dummy_call_sequence)
9268 (hppa_hpux_supply_save_state): Likewise.
9269 * hppa-linux-tdep.c (insns_match_pattern)
9270 (hppa_linux_find_global_pointer): Likewise.
9271 * hppa-tdep.c (hppa_in_function_epilogue_p)
9272 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9273 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9274 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9275 (i386fbsd_collect_uthread): Likewise.
9276 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9277 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9278 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9279 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9280 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9281 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9282 (ia64_libunwind_frame_prev_register)
9283 (ia64_libunwind_sigtramp_frame_this_id)
9284 (ia64_find_global_pointer_from_dynamic_section)
9285 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9286 (ia64_unwind_pc): Likewise.
9287 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9288 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9289 (m68hc11_extract_return_value): Likewise.
9290 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9291 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9292 (mep_get_insn, mep_push_dummy_call): Likewise.
9293 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9294 (mips_linux_in_dynsym_stub): Likewise.
9295 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9296 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9297 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9298 to gdb_byte.
9299 * remote-mips.c (mips_set_register): Likewise.
9300 * remote-sim.c (gdbsim_fetch_register): Likewise.
9301 * score-tdep.c (score7_fetch_inst): Change type of parameter
9302 'memblock' and local 'buf' to gdb_byte.
9303 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9304 Change type of local 'buf' to gdb_byte. Adjust.
9305 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9306 to gdb_byte**.
9307 (score7_analyze_prologue): Change type of 'memblock' and
9308 'memblock_ptr' locals to gdb_byte*.
9309 * sh64-tdep.c (sh64_extract_return_value)
9310 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9311 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9312 * solib-pa64.c (pa64_solib_create_inferior_hook)
9313 (pa64_open_symbol_file_object): Remove local 'buf'.
9314 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9315 (som_open_symbol_file_object): Likewise.
9316 * solib-spu.c (spu_current_sos): Likewise.
9317 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9318 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9319 (spu_store_registers): Likewise.
9320 * target.c (debug_print_register): Likewise.
9321 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9322 * xstormy16-tdep.c (xstormy16_store_return_value)
9323 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9324 (xstormy16_find_jmp_table_entry): Likewise.
9325
9326 2013-03-01 Jiong Wang <jiwang@tilera.com>
9327
9328 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9329 (tilegx_gdbarch_init): Install it.
9330
9331 2013-02-28 Tom Tromey <tromey@redhat.com>
9332
9333 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9334 PyLong_Check.
9335
9336 2013-02-28 Doug Evans <dje@google.com>
9337
9338 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9339 * python/python.c (gdbpy_find_pc_line): Ditto.
9340
9341 2013-02-28 Tom Tromey <tromey@redhat.com>
9342
9343 * contrib/excheck.py: New file.
9344 * contrib/exsummary.py: New file.
9345 * contrib/gcc-with-excheck: New file.
9346
9347 2013-02-28 Tom Tromey <tromey@redhat.com>
9348
9349 * python/python.c (gdbpy_print_stack): Call begin_line and
9350 fprintf_filtered inside TRY_CATCH.
9351
9352 2013-02-28 Tom Tromey <tromey@redhat.com>
9353
9354 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9355 inside TRY_CATCH.
9356
9357 2013-02-28 Tom Tromey <tromey@redhat.com>
9358
9359 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9360 frame_object_to_frame_info inside TRY_CATCH.
9361
9362 2013-02-28 Tom Tromey <tromey@redhat.com>
9363
9364 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9365 TRY_CATCH.
9366
9367 2013-02-28 Tom Tromey <tromey@redhat.com>
9368
9369 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9370
9371 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9372
9373 * windows-nat.c: Throughout, fix format strings and casts of
9374 printf-like functions to avoid type related warnings on all
9375 platforms.
9376 (handle_output_debug_string): Fetch context information address
9377 from debug string using string_to_core_addr.
9378
9379 2013-02-27 Jiong Wang <jiwang@tilera.com>
9380
9381 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9382 * regformats/reg-tilegx32.dat: New.
9383
9384 2013-02-27 Jiong Wang <jiwang@tilera.com>
9385
9386 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9387
9388 2013-02-27 Jiong Wang <jiwang@tilera.com>
9389
9390 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9391
9392 2013-02-27 Yao Qi <yao@codesourcery.com>
9393 Pedro Alves <palves@redhat.com>
9394
9395 * tracepoint.c (tfile_trace_find): For tfind
9396 pc/tp/range/outside, look for the next trace frame instead of
9397 always starting from frame 0.
9398
9399 2013-02-26 Anthony Green <green@moxielogic.com>
9400
9401 * configure.tgt: Add support for moxie-*-rtems* target.
9402
9403 2013-02-25 Pedro Alves <palves@redhat.com>
9404
9405 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9406 warning text.
9407
9408 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9409
9410 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9411 if $fp is used as the virtual frame pointer.
9412
9413 2013-02-23 Alan Modra <amodra@gmail.com>
9414
9415 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9416 symbol size.
9417 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9418 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9419 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9420 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9421
9422 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9423
9424 Code cleanup.
9425 * elfread.c (build_id_bfd_get): Make the return type const.
9426 (build_id_verify): Make the check parameter const.
9427 (build_id_to_debug_filename): Make the build_id parameter and variable
9428 data const.
9429 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9430
9431 2013-02-21 Alan Modra <amodra@gmail.com>
9432
9433 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9434
9435 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9436
9437 Add a new method 'disassemble' to gdb.Architecture class.
9438 * python/py-arch.c (archpy_disassmble): Implementation of the
9439 new method gdb.Architecture.disassemble.
9440 (arch_object_methods): Add entry for the new method.
9441
9442 2013-02-20 Jiong Wang <jiwang@tilera.com>
9443
9444 * MAINTAINERS (Write After Approval): Add myself to the list.
9445
9446 2013-02-19 Pedro Alves <palves@redhat.com>
9447
9448 Garbage collect 'struct monitor_ops'::load_routine.
9449
9450 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9451 * monitor.c (monitor_load): No longer call
9452 current_monitor->load_routine.
9453 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9454 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9455 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9456
9457 2013-02-19 Pedro Alves <palves@redhat.com>
9458
9459 PR gdb/15161
9460
9461 Harmonize with generic_load.
9462
9463 * monitor.c: Include "readline/readline.h".
9464 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9465 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9466 long/strtol for the 'load_offset' local. Error out if no argument
9467 is given or if too many arguments are given. Tilde expand the
9468 passed in file name.
9469
9470 2013-02-19 Kai Tietz <ktietz@redhat.com>
9471
9472 PR gdb/15161
9473 * symfile.c (load_section_data): Change type of load_offset
9474 to CORE_ADDR.
9475 (generic_load): User strtoulst instead of strtoul for conversion
9476 of load_offset.
9477
9478 2013-02-19 Jiong Wang <jiwang@tilera.com>
9479
9480 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9481 for return address, "lr" register, saved on stack.
9482 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9483 after we invoke tilegx_analyze_prologue.
9484
9485 2013-02-19 Jiong Wang <jiwang@tilera.com>
9486
9487 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9488
9489 2013-02-19 Jiong Wang <jiwang@tilera.com>
9490
9491 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9492
9493 2013-02-19 Jiong Wang <jiwang@tilera.com>
9494
9495 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9496 (tilegx_write_pc): New function.
9497 (tilegx_cannot_reference_register): Return zero if REGNO
9498 is TILEGX_FAULTNUM_REGNUM.
9499 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9500 (tilegx_register_name): Add handling of "faultnum" register.
9501 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9502 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9503 handling of TILEGX_FAULTNUM_REGNUM.
9504 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9505
9506 2013-02-19 Jiong Wang <jiwang@tilera.com>
9507
9508 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9509 should be aligned to 64bit.
9510
9511 2013-02-19 Kai Tietz <ktietz@redhat.com>
9512
9513 * windows-nat.c (windows_xfer_memory): Fix debug-output
9514 for LLP64.
9515
9516 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9517
9518 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9519 Don't check DSP register number if HAVE_DSP is not set.
9520
9521 2013-02-19 Alan Modra <amodra@gmail.com>
9522
9523 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9524 throughout file instead.
9525 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9526 Don't xmalloc return value.
9527 (build_id_verify): Similarly. Don't xfree.
9528 (build_id_to_debug_filename): Update.
9529 (find_separate_debug_file_by_buildid): Update, don't xfree.
9530
9531 2013-02-18 Tom Tromey <tromey@redhat.com>
9532
9533 PR gdb/15102:
9534 * dwarf2read.c (read_subrange_type): Use result of
9535 'check_typedef'.
9536
9537 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9538
9539 * frame.c: Remove one extra white space after #include
9540 directive.
9541
9542 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9543
9544 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9545
9546 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9547
9548 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9549 and dir commands into an if block.
9550
9551 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9552
9553 * python/py-breakpoint (struct pybp_code): Use int instead of
9554 enum type_code.
9555
9556 2013-02-15 Pedro Alves <pedro@codesourcery.com>
9557 Hafiz Abid Qadeer <abidh@codesourcery.com>
9558
9559 * NEWS: Mention new field "trace-file".
9560 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9561 (tfile_open): Record the trace file's filename in the trace
9562 status.
9563 (tfile_files_info): Mention the name of the trace file.
9564 Check the "filename" field explicitely.
9565 (trace_status_command): Explicitely check "filename" field.
9566 (trace_find_command): Ditto.
9567 (trace_find_pc_command): Ditto.
9568 (trace_find_tracepoint_command): Ditto.
9569 (trace_find_line_command): Ditto.
9570 (trace_find_range_command): Ditto.
9571 (trace_find_outside_command): Ditto.
9572 * tracepoint.h (struct trace_status) <from_file>: Rename it
9573 to "filename" and make it hold the trace file's filename
9574 instead of a boolean.
9575 * remote.c (remote_get_trace_status): Initialize "filename"
9576 field with NULL instead of 0.
9577
9578 2013-02-15 Yao Qi <yao@codesourcery.com>
9579
9580 * remote.c: Fix a typo.
9581
9582 2013-02-14 Pierre Muller <muller@sourceware.org>
9583
9584 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9585
9586 2013-02-14 Pedro Alves <palves@redhat.com>
9587
9588 * utils.c (savestring): Don't #undef it. Move function to
9589 common/common-utils.c.
9590 * common/common-utils.c: Include gdb_string.h.
9591 (savestring): Move here from utils.c.
9592 * common/common-utils.h (savestring): Declare.
9593
9594 2013-02-14 Pedro Alves <palves@redhat.com>
9595
9596 * utils.c (savestring): Rename parameter 'size' to 'len'.
9597
9598 2013-02-14 Pedro Alves <palves@redhat.com>
9599 Yufeng Zhang <yufeng.zhang@arm.com>
9600
9601 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9602 (aarch64_inferior_data, struct aarch64_inferior_data):
9603 Delete.
9604 (struct aarch64_process_info): New.
9605 (aarch64_process_list): New global.
9606 (aarch64_find_process_pid, aarch64_add_process)
9607 (aarch64_process_info_get): New functions.
9608 (aarch64_inferior_data_get): Delete.
9609 (aarch64_process_info_get): New function.
9610 (aarch64_forget_process): New function.
9611 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9612 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9613 aarch64_get_debug_reg_state.
9614 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9615 instead of linux_nat_iterate_watchpoint_lwps.
9616 (aarch64_linux_new_fork): New function.
9617 (aarch64_linux_child_post_startup_inferior): Use
9618 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9619 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9620 (aarch64_linux_remove_hw_breakpoint)
9621 (aarch64_handle_aligned_watchpoint)
9622 (aarch64_handle_unaligned_watchpoint)
9623 (aarch64_linux_insert_watchpoint)
9624 (aarch64_linux_remove_watchpoint)
9625 (aarch64_linux_stopped_data_address): Adjust to pass the current
9626 process id to aarch64_debug_reg_state.
9627 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9628 linux_nat_new_fork hook, and aarch64_forget_process as
9629 linux_nat_forget_process hook; remove the call to
9630 register_inferior_data_with_cleanup.
9631
9632 2013-02-14 Pedro Alves <palves@redhat.com>
9633
9634 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9635 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9636 lval_memory.
9637
9638 2013-02-14 Pedro Alves <pedro@codesourcery.com>
9639 Hafiz Abid Qadeer <abidh@codesourcery.com>
9640
9641 * tracepoint.h (validate_trace_state_variable_name): Declare.
9642 * tracepoint.c (validate_trace_state_variable_name): New.
9643 (trace_variable_command): Parse the trace state variable's name
9644 without using parse_expression. Do several validations.
9645 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9646 trace state variable's name with parse_expression. Validate it.
9647
9648 2013-02-14 Yao Qi <yao@codesourcery.com>
9649
9650 * infcmd.c (breakpoint_proceeded): Remove it.
9651
9652 2013-02-14 Yao Qi <yao@codesourcery.com>
9653
9654 * tracepoint.c (end_actions_pseudocommand): Make it static.
9655 (while_stepping_pseudocommand): Likewise.
9656 * tracepoint.h (end_actions_pseudocommand): Remove the
9657 declaration.
9658 (while_stepping_pseudocommand): Likewise.
9659
9660 2013-02-14 Yao Qi <yao@codesourcery.com>
9661
9662 * cli/cli-decode.c (help_cmd): Remove the declaration of
9663 "cmdlist".
9664 (help_all): Likewise.
9665
9666 2013-02-13 Pedro Alves <palves@redhat.com>
9667
9668 * amd64-linux-nat.c (update_debug_registers_callback):
9669 Update comment.
9670 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9671 iterate_over_lwps.
9672 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9673 i386_debug_reg_state.
9674 (amd64_linux_new_fork): New function.
9675 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9676 linux_nat_new_fork hook, and i386_forget_process as
9677 linux_nat_forget_process hook.
9678 * i386-linux-nat.c (update_debug_registers_callback):
9679 Update comment.
9680 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9681 iterate_over_lwps.
9682 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9683 i386_debug_reg_state.
9684 (i386_linux_new_fork): New function.
9685 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9686 linux_nat_new_fork hook, and i386_forget_process as
9687 linux_nat_forget_process hook.
9688 * i386-nat.c (i386_init_dregs): Delete.
9689 (i386_inferior_data, struct i386_inferior_data):
9690 Delete.
9691 (struct i386_process_info): New.
9692 (i386_process_list): New global.
9693 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9694 New functions.
9695 (i386_inferior_data_get): Delete.
9696 (i386_process_info_get): New function.
9697 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9698 (i386_forget_process): New function.
9699 (i386_cleanup_dregs): Rewrite.
9700 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9701 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9702 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9703 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9704 to i386_debug_reg_state.
9705 (i386_use_watchpoints): Don't register inferior data.
9706 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9707 adjust comment.
9708 (i386_forget_process): Declare.
9709 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9710 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9711 New static globals.
9712 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9713 (add_initial_lwp): New, factored out from ...
9714 (add_lwp): ... this. Don't check the number of lwps before
9715 calling linux_nat_new_thread.
9716 (linux_nat_iterate_watchpoint_lwps): Delete.
9717 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9718 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9719 forks and vforks.
9720 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9721 initial lwp.
9722 (linux_nat_kill, linux_nat_mourn_inferior): Call
9723 linux_nat_forget_process.
9724 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9725 (linux_nat_forget_process): New functions.
9726 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9727 type.
9728 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9729 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9730 types.
9731 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9732 (linux_nat_forget_process): New declarations.
9733
9734 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9735 (amd64fbsd_mourn_inferior): New function.
9736 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9737 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9738
9739 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9740
9741 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9742 Adding _().
9743
9744 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9745
9746 * aarch64-linux-nat.c (debug_reg_change_callback)
9747 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9748 %s and phex().
9749
9750 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9751
9752 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9753 with LONGEST.
9754
9755 2013-02-13 Pedro Alves <palves@redhat.com>
9756 Hafiz Abid Qadeer <abidh@codesourcery.com>
9757
9758 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9759
9760 2013-02-12 Tom Tromey <tromey@redhat.com>
9761
9762 PR symtab/11464:
9763 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9764 NAME return.
9765 (classify_inner_name): Remove 'first_name' argument, add
9766 'context'. Remove unused variable.
9767 (yylex): Explicitly maintain the context type. Exit loop earlier
9768 if NAME result is seen.
9769
9770 2013-02-12 Pedro Alves <palves@redhat.com>
9771
9772 * amd64-darwin-tdep.c: Add (C) after Copyright.
9773 * cli/cli-cmds.h: Ditto.
9774 * cli/cli-decode.c: Ditto.
9775 * cli/cli-decode.h: Ditto.
9776 * cli/cli-dump.c: Ditto.
9777 * cli/cli-dump.h: Ditto.
9778 * cli/cli-interp.c: Ditto.
9779 * cli/cli-logging.c: Ditto.
9780 * cli/cli-script.c: Ditto.
9781 * cli/cli-script.h: Ditto.
9782 * cli/cli-setshow.c: Ditto.
9783 * cli/cli-setshow.h: Ditto.
9784 * cli/cli-utils.c: Ditto.
9785 * cli/cli-utils.h: Ditto.
9786 * config/alpha/nm-osf3.h: Ditto.
9787 * config/djgpp/djconfig.sh: Ditto.
9788 * config/i386/nm-fbsd.h: Ditto.
9789 * config/i386/nm-i386gnu.h: Ditto.
9790 * config/nm-linux.h: Ditto.
9791 * config/nm-nto.h: Ditto.
9792 * config/rs6000/nm-rs6000.h: Ditto.
9793 * config/sparc/nm-sol2.h: Ditto.
9794 * darwin-nat-info.c: Ditto.
9795 * dfp.c: Ditto.
9796 * dfp.h: Ditto.
9797 * gdb-demangle.h: Ditto.
9798 * i386-darwin-nat.c: Ditto.
9799 * i386-darwin-tdep.c: Ditto.
9800 * linux-fork.h: Ditto.
9801 * m32c-tdep.c: Ditto.
9802 * microblaze-linux-tdep.c: Ditto.
9803 * microblaze-rom.c: Ditto.
9804 * microblaze-tdep.c: Ditto.
9805 * microblaze-tdep.h: Ditto.
9806 * mips-linux-tdep.h: Ditto.
9807 * ppc-ravenscar-thread.c: Ditto.
9808 * ppc-ravenscar-thread.h: Ditto.
9809 * prologue-value.c: Ditto.
9810 * prologue-value.h: Ditto.
9811 * ravenscar-thread.c: Ditto.
9812 * ravenscar-thread.h: Ditto.
9813 * sparc-ravenscar-thread.c: Ditto.
9814 * sparc-ravenscar-thread.h: Ditto.
9815 * tilegx-linux-tdep.c: Ditto.
9816 * unwind_stop_reasons.def: Ditto.
9817 * windows-nat.h: Ditto.
9818 * xtensa-linux-tdep.c: Ditto.
9819 * xtensa-xtregs.c: Ditto.
9820 * regformats/regdat.sh: Ditto.
9821 * regformats/regdef.h: Ditto.
9822
9823 2013-02-12 Pedro Alves <palves@redhat.com>
9824
9825 * break-catch-sig.c: Update copyright years.
9826
9827 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9828
9829 Add support for a destructor for ui_out data and use it to
9830 provide a ui_out destructor.
9831 * ui-out.h: Declare the new ui_out destructor.
9832 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9833 * ui-out.c (default_data_destroy): Add a default data destructor
9834 which does nothing.
9835 (default_ui_out_impl): Set the new data_destroy field to
9836 default_data_destroy
9837 (uo_data_destroy): Local function which invokes the data
9838 destructor if present.
9839 (clear_table): Local function which clears the table data of a
9840 ui_out object.
9841 (ui_out_destroy): Public function which frees a ui_out object.
9842 (ui_out_table_end): Use the new clear_table function.
9843 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9844 NULL.
9845 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9846 to NULL.
9847
9848 2013-02-11 Doug Evans <dje@google.com>
9849
9850 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9851 (printf_decfloat): New function. Broken out from ui_printf.
9852 Remove unnecessary code to shift the entire format string down.
9853 (printf_pointer): New function.
9854 (ui_printf): Code to print C strings, wide C strings, decfloats,
9855 and pointers moved to separate functions.
9856
9857 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9858
9859 * valops.c (value_assign): Handling bitfield offset in
9860 `lval_internalvar_component' case.
9861
9862 2013-02-08 Doug Evans <dje@google.com>
9863
9864 * common/format.c (parse_format_string): Fix whitespace.
9865
9866 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9867
9868 * stack.c (return_command): Work around uninitialized variable
9869 warning.
9870
9871 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9872
9873 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9874 number of the registers from 36 to 34.
9875
9876 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9877
9878 * NEWS: Mention new AArch64 native and target support.
9879
9880 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9881
9882 * MAINTAINERS (Write After Approval): Add myself.
9883
9884 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9885 Marcus Shawcroft <marcus.shawcroft@arm.com>
9886 Nigel Stephens <nigel.stephens@arm.com>
9887 Yufeng Zhang <yufeng.zhang@arm.com>
9888
9889 * aarch64-linux-nat.c: New file.
9890 * config/aarch64/linux.mh: New file.
9891 * configure.host: Add AArch64.
9892 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9893
9894 2013-02-07 Doug Evans <dje@google.com>
9895
9896 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9897 disassemble command.
9898
9899 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9900
9901 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9902 set_gdbarch_fetch_tls_load_module_address.
9903
9904 2013-02-06 David S. Miller <davem@davemloft.net>
9905
9906 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9907 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9908 * value.c (struct_return_convention): New function.
9909 (using_struct_return): Implement in terms of struct_return_convention.
9910 * value.h (struct_return_convention): Declare.
9911 * stack.c (return_command): Allow successful overriding of the return
9912 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9913
9914 2013-02-06 Tom Tromey <tromey@redhat.com>
9915
9916 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9917 outside of TRY_CATCH.
9918
9919 2013-02-06 Yao Qi <yao@codesourcery.com>
9920
9921 * mi/mi-interp.c: Include "tracepoint.h".
9922 (mi_tsv_modified): Declare.
9923 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9924 (mi_interpreter_init): Call observer_attach_tsv_modified.
9925 (mi_tsv_modified): New.
9926 (mi_tsv_created, mi_tsv_deleted): Update.
9927 * tracepoint.c (trace_variable_command): Call
9928 observer_notify_tsv_modified if the initial value of tsv is
9929 changed.
9930 (delete_trace_state_variable): Call
9931 observer_notify_tsv_deleted earlier.
9932 (trace_variable_command): Caller update.
9933 (create_tsv_from_upload): Likewise.
9934 * observer.sh: Declare "struct trace_state_variable".
9935
9936 * NEWS: Mention the new MI notification "=tsv-modified".
9937
9938 2013-02-05 Doug Evans <dje@google.com>
9939
9940 * completer.c (location_completer): Fix typo in comment.
9941
9942 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9943
9944 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9945 ADDRESS sorted.
9946
9947 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9948
9949 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9950 Refactor if statement to avoid trailing || operator.
9951
9952 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
9953
9954 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9955
9956 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
9957
9958 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9959 * configure.host: Add powerpc*-*-freebsd* target.
9960 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9961 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9962 * config/powerpc/fbsd.mh: New file.
9963
9964 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9965 Denys Vlasenko <dvlasenk@redhat.com>
9966 Pedro Alves <palves@redhat.com>
9967
9968 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9969 (struct elf_internal_linux_prpsinfo): Forward declare.
9970 * gdbarch.h, gdbarch.c: Regenerate.
9971 * linux-tdep.c: Include `cli/cli-utils.h'.
9972 (linux_fill_prpsinfo): New function.
9973 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9974 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9975 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9976 depending on gdbarch pointer bitness.
9977 * ppc-linux-tdep.c: Include elf-bfd.h.
9978 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9979 on 32-bit.
9980
9981 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9982 Marcus Shawcroft <marcus.shawcroft@arm.com>
9983 Nigel Stephens <nigel.stephens@arm.com>
9984 Yufeng Zhang <yufeng.zhang@arm.com>
9985
9986 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9987
9988 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9989 Marcus Shawcroft <marcus.shawcroft@arm.com>
9990 Nigel Stephens <nigel.stephens@arm.com>
9991 Yufeng Zhang <yufeng.zhang@arm.com>
9992
9993 * aarch64-newlib-tdep.c: New file.
9994 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9995 aarch64*-*-elf.
9996 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9997 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9998 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9999 * osabi.c (gdb_osabi_names): Add "Newlib".
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 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10007 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10008 * aarch64-linux-tdep.c: New file.
10009 * aarch64-linux-tdep.h: New file.
10010 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10011 * configure.tgt: Add aarch64-none-linux-gnu.
10012
10013 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10014 Marcus Shawcroft <marcus.shawcroft@arm.com>
10015 Nigel Stephens <nigel.stephens@arm.com>
10016 Yufeng Zhang <yufeng.zhang@arm.com>
10017
10018 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10019 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10020 (ALLDEPFILES): Add aarch64-tdep.c.
10021 * aarch64-tdep.c: New file.
10022 * aarch64-tdep.h: New file.
10023 * configure.tgt: Add AArch64.
10024 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10025 (aarch64-expedite): New definition.
10026 * features/aarch64-core.xml: New file.
10027 * features/aarch64-fpu.xml: New file.
10028 * features/aarch64-without-fpu.c: New file (generated).
10029 * features/aarch64-without-fpu.xml: New file.
10030 * features/aarch64.c: New file (generated).
10031 * features/aarch64.xml: New file.
10032 * regformats/aarch64-without-fpu.dat: New file (generated).
10033 * regformats/aarch64.dat: New file (generated).
10034
10035 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10036
10037 * contrib/expect-read1.c: New file.
10038 * contrib/expect-read1.sh: New file.
10039
10040 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10041
10042 * dwarf2read.c (file_file_name): New function with code from
10043 file_full_name.
10044 (file_full_name): Move most of the code to file_file_name.
10045 (macro_start_file): Rename variable full_name to file_name and use
10046 file_file_name for it. Add comp_dir parameter to new_macro_table.
10047 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10048 macro_source_file->filename access by macro_source_fullname call.
10049 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10050 caller.
10051 * macrotab.c (struct macro_table): New field comp_dir.
10052 (macro_include): New variables link_fullname and source_fullname.
10053 Replace any macro_source_file->filename access by macro_source_fullname
10054 call.
10055 (macro_lookup_inclusion): Remove the partial filenames checking code.
10056 (check_for_redefinition): New variables source_fullname and
10057 found_key_fullname. Replace any macro_source_file->filename access by
10058 macro_source_fullname call.
10059 (macro_undef): New variables source_fullname and key_fullname. Replace
10060 any macro_source_file->filename access by macro_source_fullname call.
10061 (macro_lookup_definition): New variables retval and source_fullname.
10062 Replace any macro_source_file->filename access by macro_source_fullname
10063 call.
10064 (foreach_macro): New variable key_fullname. Replace any
10065 macro_source_file->filename access by macro_source_fullname call.
10066 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10067 macro_source_file->filename access by macro_source_fullname call.
10068 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10069 (macro_source_fullname): New function.
10070 * macrotab.h (struct macro_source_file): Extent the filename field
10071 comment.
10072 (new_macro_table): New parameter comp_dir, add a comment for it.
10073 (macro_source_fullname): new declaration.
10074
10075 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10076
10077 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10078 this_real_name to outer block. Use it also for
10079 compare_filenames_for_search.
10080 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10081 with dw2_get_real_path for file_matcher, considering also
10082 BASENAMES_MAY_DIFFER.
10083 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10084
10085 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10086
10087 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10088 to the file_matcher parameter. Pass 0 to it.
10089 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10090 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10091 NULL psymtab_to_fullname result.
10092 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10093 an expected filename instead.
10094 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10095 file_matcher parameter. Call also psymtab_to_fullname, after newly
10096 considering BASENAMES_MAY_DIFFER.
10097 * source.c (rewrite_source_path): Remove static.
10098 * source.h (rewrite_source_path): New declaration.
10099 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10100 the expand_symtabs_matching field. Comment it.
10101 * symtab.c (file_matches): New function comment. Add parameter
10102 basenames, implement it.
10103 (search_symbols_file_matches): Add basenames parameter. Update the
10104 file_matches caller.
10105 (search_symbols): Match FILES also against symtab_to_fullname.
10106 Optimize it for BASENAMES_MAY_DIFFER.
10107
10108 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10109
10110 * source.c (print_source_lines_base): Print for TUI also "fullname".
10111 * tui/tui-data.c (init_content_element): Change tui_locator_element
10112 field to full_name.
10113 * tui/tui-data.h (struct tui_locator_element): Likewise.
10114 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10115 tui_update_locator_filename calls to tui_update_locator_fullname.
10116 Replace symtab->filename refererence by symtab_to_fullname call.
10117 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10118 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10119 field to full_name. Replace symtab->filename refererence by
10120 symtab_to_fullname call.
10121 (tui_show_symtab_source): Rename parameter to fullname. Change
10122 tui_locator_element field to full_name.
10123 * tui/tui-stack.c: Include source.h.
10124 (tui_set_locator_filename): Rename the declaration to ...
10125 (tui_set_locator_fullname): ... here. Rename its parameter to
10126 fullname, updates its comment.
10127 (tui_set_locator_info): Rename its parameter to fullname.
10128 (tui_set_locator_filename): Rename the definition to ...
10129 (tui_set_locator_fullname): ... here. Rename its parameter to
10130 fullname, updates its comment. Change tui_locator_element field to
10131 full_name.
10132 (tui_set_locator_info): Rename its parameter to fullname.
10133 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10134 (tui_update_locator_filename): Rename to ...
10135 (tui_update_locator_fullname): ... here. Rename callee to
10136 tui_set_locator_fullname.
10137 (tui_show_frame_info): Replace symtab->filename refererence by
10138 symtab_to_fullname call.
10139 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10140 (tui_update_locator_fullname): ... here.
10141 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10142 tui_update_locator_fullname. Replace symtab->filename refererence by
10143 symtab_to_fullname call.
10144 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10145 Rename the callee to tui_update_locator_fullname.
10146 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10147
10148 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10149
10150 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10151 by symtab_to_filename_for_display calls.
10152 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10153 (clear_command): New variable sal_fullname, initialize it. Replace
10154 compare_filenames_for_search by filename_cmp with sal_fullname.
10155 (say_where, update_static_tracepoint): Replace symtab->filename
10156 refererences by symtab_to_filename_for_display calls.
10157 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10158 Likewise.
10159 * dwarf2read.c: Include source.h.
10160 (fixup_go_packaging): Replace symtab->filename refererences by
10161 symtab_to_filename_for_display calls.
10162 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10163 Replace symtab->filename refererences by symtab_to_filename_for_display
10164 calls.
10165 (create_sals_line_offset, convert_linespec_to_sals): New variable
10166 fullname, initialize it, replace symtab->filename reference by the
10167 variable.
10168 * linux-fork.c: Include source.h.
10169 (info_checkpoints_command): Replace symtab->filename refererences by
10170 symtab_to_filename_for_display calls.
10171 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10172 by symtab_to_filename_for_display calls.
10173 * mdebugread.c: Include source.h.
10174 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10175 symtab_to_filename_for_display calls.
10176 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10177 (mi_cmd_file_list_exec_source_files): Likewise.
10178 * printcmd.c: Include source.h.
10179 (build_address_symbolic): Replace symtab->filename refererences by
10180 symtab_to_filename_for_display calls.
10181 * psymtab.c (partial_map_symtabs_matching_filename)
10182 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10183 with psymtab_to_fullname.
10184 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10185 by symtab_to_filename_for_display calls.
10186 (stpy_get_filename): New variable filename, initialize it, use instead
10187 of symtab->filename refererences.
10188 (salpy_str): Make variable filename const char *. Replace
10189 symtab->filename refererences by symtab_to_filename_for_display calls.
10190 * skip.c: Include source.h and filenames.h.
10191 (skip_file_command): Remove const from the symtab variable. Replace
10192 symtab->filename refererences by symtab_to_fullname call.
10193 (function_name_is_marked_for_skip): New variables searched_for_fullname
10194 and fullname. Use them to search also with symtab's fullname.
10195 * source.c (find_source_lines): Replace symtab->filename refererences
10196 by symtab_to_filename_for_display calls.
10197 (print_source_lines_base): New variable filename, use it instead of
10198 symtab->filename. Replace symtab->filename refererences by
10199 symtab_to_filename_for_display calls.
10200 (line_info, forward_search_command): Replace symtab->filename
10201 refererences by symtab_to_filename_for_display calls.
10202 (reverse_search_command): Replace symtab->filename refererences by
10203 symtab_to_filename_for_display calls. New variable filename for it.
10204 * stack.c (frame_info): Likewise.
10205 * symmisc.c: Include source.h.
10206 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10207 (maintenance_info_symtabs): Replace symtab->filename refererences by
10208 symtab_to_filename_for_display calls.
10209 * symtab.c (iterate_over_some_symtabs): Call
10210 compare_filenames_for_search also with symtab_to_fullname.
10211 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10212 symtab->filename refererences by symtab_to_filename_for_display calls.
10213 (find_line_symtab): Replace symtab->filename refererences by
10214 symtab_to_filename_for_display calls.
10215 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10216 (print_symbol_info): Make the last parameter const char *. New
10217 variable s_filename. Use it in the function.
10218 (symtab_symbol_info): Make the last_filename variable const char *.
10219 Replace symtab->filename refererences by symtab_to_filename_for_display
10220 calls.
10221 (rbreak_command): New variable fullname. Use it. Replace
10222 symtab->filename refererence by symtab_to_filename_for_display call.
10223 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10224 (print_one_static_tracepoint_marker): Replace symtab->filename
10225 refererences by symtab_to_filename_for_display calls.
10226 * tui/tui-source.c (tui_set_source_content): New variables filename and
10227 s_filename. Replace symtab->filename refererences by this variable.
10228 Replace other symtab->filename refererences by
10229 symtab_to_filename_for_display calls.
10230
10231 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10232 Jan Kratochvil <jan.kratochvil@redhat.com>
10233
10234 Add a new variable that controls a way in which filenames are
10235 displayed.
10236 * NEWS (set filename-display): New entry.
10237 * source.c (filename_display_basename, filename_display_relative)
10238 (filename_display_absolute, filename_display_kind_names)
10239 (filename_display_string, show_filename_display_string)
10240 (symtab_to_filename_for_display): New.
10241 (_initialize_source): Added initialization of 'filename-display'
10242 variable.
10243 * source.h (symtab_to_filename_for_display): Added declaration.
10244 * stack.c (print_frame): Added new variable and calling of a new
10245 function and condition with this variable. Changed third argument of
10246 calling of a function.
10247
10248 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10249
10250 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10251 Rename field reference filename to fullname.
10252 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10253 fullname. New comment for it.
10254 * tui/tui-source.c (tui_set_source_content): Rename field reference
10255 filename to fullname. Initialize field by symtab_to_fullname now.
10256 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10257 reference filename to fullname. Use symtab_to_fullname during
10258 comparison.
10259
10260 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10261
10262 Code cleanup.
10263 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10264 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10265 filename to fullname. Rename variable this_name to this_fullname.
10266 Lowercase FILENAME_CMP call.
10267 (dw2_find_symbol_file): New comment for the returned string.
10268 (dwarf2_gdb_index_functions): Rename the function to
10269 dw2_expand_symtabs_with_fullname.
10270 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10271 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10272 fullname.
10273 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10274 * symfile.h (struct quick_symbol_functions): Rename field
10275 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10276 parameter filename to fullname. Document returned string meaning for
10277 find_symbol_file.
10278 * symtab.c (find_line_symtab): Rename the called function to
10279 expand_symtabs_with_fullname.
10280
10281 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10282
10283 Code cleanup.
10284 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10285 call of filename_cmp with compare_filenames_for_search.
10286 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10287 is_abs, unify the call of FILENAME_CMP with
10288 compare_filenames_for_search. New gdb_asserts for real_path and name.
10289 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10290 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10291 * symfile.h (struct quick_symbol_functions): Extend the comment for
10292 map_symtabs_matching_filename.
10293 * symtab.c (compare_filenames_for_search): Remove the function comment
10294 relative path requirement. Handle absolute filenames, with a comment.
10295 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10296 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10297 real_path and name. Unify the call of compare_filenames_for_search
10298 with FILENAME_CMP.
10299 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10300
10301 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10302
10303 Code cleanup.
10304 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10305 source_file references by symtab field references. Remove variables
10306 sal and fullname.
10307 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10308 (clear_command, say_where): Replace bp_location field source_file
10309 references by symtab field references.
10310 (bp_location_dtor): Remove the source_file reference.
10311 (update_static_tracepoint): Replace bp_location field source_file
10312 references by symtab field references.
10313 (breakpoint_free_objfile): New function.
10314 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10315 Replace the field source_file by field symtab, extend its comment.
10316 (breakpoint_free_objfile): New declaration.
10317 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10318 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10319 field source_file references by symtab field references.
10320
10321 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10322
10323 Replace xfullpath calls by gdb_realpath calls.
10324 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10325 function comment.
10326 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10327 Remove it from the iterate_over_some_symtabs call.
10328 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10329 Remove it from the dw2_map_expand_apply calls, remove a block handling
10330 it.
10331 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10332 Remove it from the iterate_over_some_symtabs call.
10333 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10334 Remove it from the partial_map_expand_apply calls, remove a block
10335 handling it. Drop gdb_realpath call and cleanups from the real_path
10336 handling.
10337 * source.c (openp): Drop the comment part about xfullpath. Replace
10338 xfullpath calls by gdb_realpath calls.
10339 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10340 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10341 from method map_symtabs_matching_filename and its comment.
10342 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10343 gdb_realpath call.
10344 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10345 remove it also from the function comment, remove a block handling it.
10346 Drop gdb_realpath call and cleanups from the real_path handling.
10347 (iterate_over_symtabs): Drop variable full_path and its use.
10348 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10349 * utils.c (xfullpath): Remove.
10350 * utils.h (xfullpath): Remove.
10351
10352 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10353
10354 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10355 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10356 (ALLDEPFILES): Add ppc64-tdep.c.
10357 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10358 ppc64-tdep.o to gdb_target_obs.
10359 * ppc64-tdep.h: New file.
10360 * ppc64-tdep.c: New file.
10361 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10362 ppc-linux-tdep.c to here.
10363 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10364 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10365 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10366 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10367 from ppc-linux-tdep.c to here.
10368 (ppc64_convert_from_func_ptr_addr): Rename from
10369 ppc64_linux_convert_from_func_ptr_addr to
10370 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10371 here.
10372 * rs6000-tdep.c:
10373 (read_insn): Move from ppc-linux-tdep.c to here.
10374 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10375 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10376 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10377 Removed above functions.
10378 (ppc_linux_init_abi): Adjust.
10379
10380 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10381
10382 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10383
10384 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10385
10386 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10387
10388 2013-02-01 Pedro Alves <palves@redhat.com>
10389
10390 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10391 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10392
10393 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10394
10395 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10396 files with no separate debug info.
10397 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10398 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10399 only for files with no separate debug info.
10400
10401 2013-01-31 Tom Tromey <tromey@redhat.com>
10402
10403 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10404 change type.
10405 (struct jit_program_space_data): Rename from jit_inferior_data.
10406 Update comments.
10407 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10408 Change return type. Attach data to program space.
10409 (jit_program_space_data_cleanup): Rename from
10410 jit_inferior_data_cleanup; change argument type.
10411 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10412 change type.
10413 (jit_register_code): Update.
10414 (jit_update_inferior_cache): Remove.
10415 (jit_breakpoint_deleted): Get jit data from the location's program
10416 space.
10417 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10418 'ps_data', change type.
10419 (jit_inferior_init, jit_breakpoint_re_set_internal)
10420 (jit_event_handler): Update.
10421 (free_objfile_data): Get data from objfile's program space.
10422 (_initialize_jit): Update.
10423
10424 2013-01-31 Tom Tromey <tromey@redhat.com>
10425
10426 PR gdb/13987:
10427 * jit.c (struct jit_inferior_data) <cached_code_address,
10428 jit_breakpoint>: New fields.
10429 (jit_breakpoint_re_set_internal): Fix logging. Only create
10430 breakpoint if cached address has changed.
10431 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10432 functions.
10433 (_initialize_jit): Register breakpoint deleted observer.
10434
10435 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10436
10437 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10438 (save_infcall_suspend_state): Ifdef out unused inf.
10439 (restore_infcall_suspend_state): Ifdef out unused inf.
10440 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10441 (jit_frame_sniffer): Remove unused inf_data.
10442
10443 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10444
10445 * c-exp.y (classify_inner_name): Remove unused type.
10446 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10447 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10448 need_escape.
10449 (c_get_string): Remove unused kind.
10450 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10451
10452 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10453
10454 * charset.c (intermediate_encoding): Remove unused i.
10455 * completer.c (signal_completer): Remove unused i.
10456 * continuations.c (discard_my_continuations_1): Remove unused
10457 continuation_ptr.
10458 * corelow.c (core_close): Remove unuseD name.
10459 (get_core_siginfo): Remove unused pid.
10460 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10461 i, cps.
10462 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10463 (loclist_describe_location): Remove unused first.
10464 * event-top.c (command_line_handler): Remove unused got_eof.
10465 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10466 (resize_section_table): Remove unused old_value.
10467 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10468 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10469 * i386-tdep.c (i386_process_record): Remove unused rex.
10470 * infcmd.c (get_return_value): Remove unused uiout.
10471 * jv-lang.c (type_from_class): Remove unused is_array.
10472 * jv-valprint.c (java_val_print): Remove unused i.
10473 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10474 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10475 * m2-typeprint.c (m2_print_type): Remove unused code.
10476 * macroexp.c (get_character_constant): Remove unused body_start.
10477 (macro_stringify): Remove unused result.
10478 * objc-lang.c (find_methods): Remove unused gdbarch.
10479 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10480 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10481 * stack.c (print_frame_args): Remove unused summary.
10482 * thread.c (thread_apply_command): Remove unused p.
10483 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10484 * valops.c (search_struct_method): Remove unused skip.
10485 * valprint.c (generic_val_print): Remove unused byte_order.
10486 * varobj.c (varobj_update): Remove unused changed.
10487 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10488 (alias_command): Remove unused c.
10489 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10490 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10491 format.
10492 (mi_cmd_data_write_memory): Remove unused word_format.
10493 (mi_cmd_data_write_memory_bytes): Remove unused r.
10494 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10495 p_start, p_end.
10496 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10497 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10498 line_width.
10499
10500 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10501
10502 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10503 * symtab.c (iterate_over_symtabs): Remove unused s.
10504 (find_pc_sect_symtab): Remove unused pspAce.
10505 (find_pc_sect_line): Remove unused alt_symtab.
10506 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10507 (completion_list_add_name): Remove unused newsize.
10508
10509 2013-01-31 Tom Tromey <tromey@redhat.com>
10510
10511 PR c++/14998:
10512 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10513 TYPE_CODE_FUNC.
10514
10515 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10516
10517 * target.c (target_read_string): Remove unused origlen.
10518
10519 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10520
10521 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10522 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10523 * ax-general.c (ax_print): Remove unused is_float.
10524 * blockframe.c (block_innermost_frame): Remove unused start, end.
10525 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10526
10527 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10528
10529 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10530 (svr4_read_so_list): Remove unused lmo.
10531 * solib-target.c (solib_target_relocate_section_addresses): Remove
10532 unused flags.
10533
10534 2013-01-30 Tom Tromey <tromey@redhat.com>
10535
10536 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10537
10538 2013-01-30 Tom Tromey <tromey@redhat.com>
10539
10540 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10541 * utils.c (gnu_debuglink_crc32): Remove.
10542 * utils.h (gnu_debuglink_crc32): Don't declare.
10543
10544 2013-01-30 Tom Tromey <tromey@redhat.com>
10545
10546 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10547 (read_structure_type, read_enumeration_type): Remove cast.
10548
10549 2013-01-30 Tom Tromey <tromey@redhat.com>
10550
10551 * dwarf2read.c (read_namespace_type): Remove cast.
10552 (read_typedef): Likewise.
10553
10554 2013-01-29 Tom Tromey <tromey@redhat.com>
10555
10556 * dwarf2read.c (free_dwo_file): Remove assert.
10557
10558 2013-01-29 Tom Tromey <tromey@redhat.com>
10559
10560 * value.c (deprecated_set_value_modifiable): Remove.
10561 * value.h (deprecated_set_value_modifiable): Remove.
10562
10563 2013-01-28 Doug Evans <dje@google.com>
10564
10565 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10566 to addresses from dwo files.
10567
10568 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10569
10570 * valops.c (find_overload_match): Remove unused argument 'lax'.
10571 * value.h: Remove unused argument 'lax' from the declaration of
10572 find_overload_match.
10573 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10574 to find_overload_match.
10575 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10576 argument to find_overload_match.
10577
10578 2013-01-25 Tom Tromey <tromey@redhat.com>
10579
10580 * dwarf2read.c (processing_has_namespace_info): Remove.
10581 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10582 (process_die, read_func_scope, dwarf2_start_symtab)
10583 (new_symbol_full): Update.
10584
10585 2013-01-25 Tom Tromey <tromey@redhat.com>
10586
10587 * cp-namespace.c (cp_set_block_scope): Remove.
10588 * cp-support.h (cp_set_block_scope): Remove.
10589 * dbxread.c: Include block.h.
10590 (cp_set_block_scope): New function.
10591 (process_one_symbol): Update.
10592 * dwarf2read.c (read_func_scope): Use block_set_scope.
10593
10594 2013-01-25 Pedro Alves <palves@redhat.com>
10595
10596 * remote.c (add_current_inferior_and_thread): Tweak comment.
10597
10598 2013-01-25 Tom Tromey <tromey@redhat.com>
10599
10600 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10601 (cp_add_using_directive): Add 'copy_names' argument.
10602 * cp-support.h (cp_add_using_directive): Update.
10603 (struct using_direct) <import_src, import_dest, alias,
10604 declaration>: Now const.
10605 * dwarf2read.c (read_import_statement): Use obconcat.
10606 Don't copy names passed to cp_add_using_directive.
10607
10608 2013-01-25 Tom Tromey <tromey@redhat.com>
10609
10610 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10611
10612 2013-01-25 Pedro Alves <palves@redhat.com>
10613
10614 * remote.c (stop_reply_extract_thread): New.
10615 (add_current_inferior_and_thread): New parameter 'wait_status'.
10616 Handle it.
10617 (remote_start_remote): Pass wait status to
10618 add_current_inferior_and_thread.
10619 (extended_remote_run): Update comment.
10620 (extended_remote_create_inferior_1): Pass wait status to
10621 add_current_inferior_and_thread.
10622
10623 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
10624 Ulrich Weigand <uweigand@de.ibm.com>
10625
10626 * valarith.c (value_vector_widen): New function for replicating a
10627 scalar into a vector.
10628 (value_binop): Use value_vector_widen to widen scalar to vector
10629 rather than casting, this better matches gcc C behaviour.
10630 * valops.c (value_casst): Update logic for casting between vector
10631 types, and for casting from scalar to vector, try to match gcc C
10632 behaviour.
10633 * value.h (value_vector_widen): Declare.
10634 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10635 function, handle special case for casting scalar to vector.
10636 (opencl_relop): Use opencl_value_cast.
10637 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10638 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10639 in order to use opencl_value_cast.
10640
10641 2013-01-25 Yao Qi <yao@codesourcery.com>
10642
10643 * event-loop.c: Include "queue.h".
10644 (gdb_event_p): New typedef.
10645 (DECLARE_QUEUE_P): Use.
10646 (DEFINE_QUEUE_P): Use.
10647 (async_queue_event): Remove.
10648 (gdb_event_xfree): New.
10649 (initialize_event_loop): New.
10650 (process_event): Use QUEUE macros.
10651 (event_queue): Remove.
10652 (gdb_wait_for_event): Caller update.
10653 (check_async_event_handlers): Likewise.
10654 (poll_timers): Likewise.
10655 * event-loop.h (initialize_event_loop): Declare.
10656 * event-loop.c (gdb_event_xfree): New.
10657 * top.c (gdb_init): Call initialize_event_loop.
10658
10659 2013-01-25 Yao Qi <yao@codesourcery.com>
10660
10661 * event-loop.c (async_queue_event): Remove one parameter
10662 'position'. Remove code handling 'position' == TAIL.
10663 (gdb_wait_for_event): Caller update.
10664 (check_async_event_handlers): Caller update.
10665 (poll_timers): Caller update.
10666 * event-loop.h (enum queue_position): Remove.
10667
10668 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10669
10670 * MAINTAINERS: Update my email.
10671
10672 2013-01-25 Yao Qi <yao@codesourcery.com>
10673
10674 * main.c (print_gdb_help): Remove "--epoch" from the help
10675 message.
10676
10677 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10678
10679 * symtab.c (skip_prologue_using_sal): Consider a file
10680 change the same as an increased line number
10681
10682 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10683
10684 * MAINTAINERS (Write After Approval): Add myself to the list.
10685
10686 2013-01-24 Tom Tromey <tromey@redhat.com>
10687
10688 * ada-lang.h (ada_decode_symbol): Make return type const.
10689 * ada-lang.c (ada_decode_symbol): Likewise.
10690
10691 2013-01-23 Doug Evans <dje@google.com>
10692
10693 * linespec.c (find_linespec_symbols): Make static.
10694
10695 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10696
10697 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10698 type on float conversion for complex type.
10699
10700 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10701
10702 Add a new class gdb.Architecture which exposes GDB's
10703 internal representation of architecture via GDB Python API.
10704 * Makefile.in: Add entries corresponding to the new file
10705 python/py-arch.c.
10706 * NEWS (Python Scripting): Add entries for the new class
10707 gdb.Architecture and the new method gdb.Frame.architecture.
10708 * python/py-arch.c: Implement gdb.Architecture class.
10709 * python/py-frame.c (frapy_arch): Implement the method
10710 gdb.Frame.architecture().
10711 (frame_object_methods): Add 'architecture' to the method table.
10712 * python/python-internal.h: Add declarations of new utility
10713 functions.
10714 * python/python.c (_initialize_python): Initialize
10715 gdb.Architecture class.
10716
10717 2013-01-23 Doug Evans <dje@google.com>
10718
10719 Work around binutils/15021.
10720 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10721 type_unit_group out of union s. All uses updated.
10722 (read_index_from_section): Watch for index version 8.
10723 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10724 an imported symtab.
10725 (write_psymtabs_to_index): Increment version number to 8.
10726
10727 2013-01-22 Pedro Alves <palves@redhat.com>
10728
10729 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10730 user-visible.
10731
10732 2013-01-22 Pedro Alves <palves@redhat.com>
10733
10734 * annotate.c (annotate_breakpoints_changed): Rename to ...
10735 (annotate_breakpoints_invalid): ... this. Make static.
10736 (breakpoint_changed): Adjust.
10737 (_initialize_annotate): Always install the observers. Install a
10738 "breakpoint_created" observer.
10739 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10740 * breakpoint.c (set_breakpoint_condition)
10741 (breakpoint_set_commands, do_map_commands_command)
10742 (init_raw_breakpoint, clear_command, set_ignore_count)
10743 (enable_breakpoint_disp): No longer call
10744 annotate_breakpoints_changed.
10745
10746 2013-01-22 Pedro Alves <palves@redhat.com>
10747
10748 * annotate.c: Include "inferior.h".
10749 (frames_invalid_emitted)
10750 (breakpoints_invalid_emitted): New globals.
10751 (async_background_execution_p): New function.
10752 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10753 emitting the annotation if it has already been emitted.
10754 (annotate_display_prompt): New function.
10755 * annotate.h (annotate_display_prompt): New declaration.
10756 * event-top.c: Include annotate.h.
10757 (display_gdb_prompt): Call annotate_display_prompt.
10758
10759 2013-01-22 Pedro Alves <palves@redhat.com>
10760
10761 * annotate.c (ignore_count_changed): Delete.
10762 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10763 (annotate_ignore_count_change): Delete.
10764 (annotate_stopped): Don't emit a delayed breakpoints-changed
10765 annotation.
10766 * annotate.h (annotate_ignore_count_change): Delete.
10767 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10768 annotate_ignore_count_change.
10769
10770 2013-01-22 Tom Tromey <tromey@redhat.com>
10771
10772 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10773 require_rvalue for a register location.
10774
10775 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10776
10777 * breakpoint.c (print_one_breakpoint_location): Add MI
10778 field 'thread-groups' when printing a breakpoint.
10779 (output_thread_groups): New function.
10780
10781 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10782
10783 * python/lib/gdb/commands/explore.py
10784 (CompoundExplorer.explore_expr): Correct the name of a method
10785 being invoked.
10786 (ExploreTypeCommand.invoke): Add a missing 'return'.
10787
10788 2013-01-21 Tom Tromey <tromey@redhat.com>
10789
10790 * gdb_obstack.h (obconcat): Move declaration here, from...
10791 * symfile.h (obconcat): ... here.
10792 * gdb_obstack.c: New file.
10793 (obconcat): Move from...
10794 * symfile.c (obconcat): ... here.
10795 * Makefile.in (SFILES): Add gdb_obstack.c.
10796 (COMMON_OBS): Add gdb_obstack.o.
10797
10798 2013-01-21 Tom Tromey <tromey@redhat.com>
10799
10800 * symfile.h (obsavestring): Don't declare.
10801 * symfile.c (obsavestring): Remove.
10802 * ada-exp.y: Use obstack_copy0, not obsavestring.
10803 * ada-lang.c: Use obstack_copy0, not obsavestring.
10804 * coffread.c: Use obstack_copy0, not obsavestring.
10805 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10806 * dbxread.c: Use obstack_copy0, not obsavestring.
10807 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10808 * jit.c: Use obstack_copy0, not obsavestring.
10809 * mdebugread.c: Use obstack_copy0, not obsavestring.
10810 * psymtab.c: Use obstack_copy0, not obsavestring.
10811 * stabsread.c: Use obstack_copy0, not obsavestring.
10812 * xcoffread.c: Use obstack_copy0, not obsavestring.
10813
10814 2013-01-21 Tom Tromey <tromey@redhat.com>
10815
10816 * dwarf2read.c (fixup_go_packaging): Save package name
10817 on objfile obstack.
10818 * gdbtypes.c (init_type): Don't copy name.
10819
10820 2013-01-21 Tom Tromey <tromey@redhat.com>
10821
10822 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10823 const.
10824 (struct attribute) <u.str>: Now const.
10825 (struct fnfieldlist) <name>: Now const.
10826 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10827 (partial_die_parent_scope): Make return type const.
10828 (partial_die_full_name, add_partial_symbol): Update.
10829 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10830 'name' const.
10831 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10832 (read_file_scope, read_func_scope, dwarf2_add_field)
10833 (dwarf2_add_member_fn, read_structure_type)
10834 (process_enumeration_scope, read_array_type, read_module_type)
10835 (read_base_type, read_subrange_type): Update.
10836 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10837 (new_symbol_full, guess_full_die_structure_name): Update.
10838 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10839 (dwarf2_name): Return const type.
10840 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10841 const.
10842
10843 2013-01-21 Tom Tromey <tromey@redhat.com>
10844
10845 * gdbtypes.c (init_type): Make 'name' const.
10846 * gdbtypes.h (init_type): Update.
10847
10848 2013-01-21 Tom Tromey <tromey@redhat.com>
10849
10850 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10851 (start_symtab): Make 'name' and 'dirname' const. Use
10852 set_last_source_file.
10853 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10854 (last_source_file): Define. Now static.
10855 (set_last_source_file, get_last_source_file): New functions.
10856 * buildsym.h (last_source_file): Don't declare.
10857 (start_symtab): Update.
10858 (set_last_source_file, get_last_source_file): Declare.
10859 * coffread.c (complete_symtab): Use set_last_source_file.
10860 (coff_end_symtab): Likewise.
10861 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10862 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10863 set_last_source_file.
10864 (process_one_symbol): Use get_last_source_file.
10865 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10866 (psymtab_to_symtab_1): Use get_last_source_file.
10867 * xcoffread.c (process_linenos): Use get_last_source_file.
10868 (complete_symtab): Use set_last_source_file.
10869 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10870 (scan_xcoff_symtab): Use set_last_source_file.
10871
10872 2013-01-21 Tom Tromey <tromey@redhat.com>
10873
10874 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10875 (symbol_set_names): Remove casts. Handle field const-ness.
10876
10877 2013-01-21 Tom Tromey <tromey@redhat.com>
10878
10879 * dwarf2read.c (new_symbol_full): Remove cast.
10880 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10881 * symtab.h (symbol_set_demangled_name): Update.
10882
10883 2013-01-21 Tom Tromey <tromey@redhat.com>
10884
10885 * main.c (captured_main): Call bfd_init.
10886
10887 2013-01-21 Tom Tromey <tromey@redhat.com>
10888
10889 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10890 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10891 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10892 * NEWS: Update.
10893
10894 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10895
10896 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10897
10898 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10899
10900 Fix gdb.fortran/common-block.exp crash in PIE mode.
10901 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10902 LOC_COMMON_BLOCK.
10903 * f-valprint.c (info_common_command_for_block): Expect
10904 LOC_COMMON_BLOCK in gdb_assert.
10905 * symtab.h (struct general_symbol_info): Update comment for the
10906 common_block member.
10907 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10908 (enum address_class): New member LOC_COMMON_BLOCK.
10909
10910 2013-01-18 David Blaikie <dblaikie@gmail.com>
10911
10912 * MAINTAINERS (Write After Approval): Add "David Blaikie".
10913
10914 2013-01-18 Tom Tromey <tromey@redhat.com>
10915
10916 PR c++/14999:
10917 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10918 Call require_rvalue.
10919
10920 2013-01-18 Yao Qi <yao@codesourcery.com>
10921
10922 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10923 (dbx_read_symtab): New declaration.
10924 (dbx_psymtab_to_symtab): Delete.
10925 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10926 Rename parameter PST to SELF. Exchanged two parameters.
10927 (start_psymtab): Caller update.
10928 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10929 (dwarf2_read_symtab): New declaration.
10930 (dwarf2_psymtab_to_symtab): Delete.
10931 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10932 Rename parameter PST to SELF. Exchanged two parameters.
10933 (create_partial_symtab): Caller update.
10934 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10935 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10936 Rename parameter PST to SELF. Exchanged two parameters.
10937 (parse_partial_symbols, new_psymtab): Caller update.
10938 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10939 two parameters.
10940 * psymtab.c (psymtab_to_symtab): Caller update.
10941 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10942 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10943 Rename parameter PST to SELF. Exchanged two parameters.
10944 (xcoff_start_psymtab): Caller update.
10945
10946 2013-01-18 Yao Qi <yao@codesourcery.com>
10947
10948 * infrun.c (proceed): Rename local variable 'oneproc' to
10949 'force_step'.
10950
10951 2013-01-17 Doug Evans <dje@google.com>
10952
10953 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10954 (dw2_build_type_unit_groups): Delete. All uses updated.
10955
10956 * symtab.h (struct symbol_search): Add comment.
10957
10958 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10959
10960 * symtab.c (compare_filenames_for_search): New comment for
10961 HAS_DRIVE_SPEC.
10962
10963 2013-01-17 Tom Tromey <tromey@redhat.com>
10964
10965 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10966
10967 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10968
10969 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10970 initialize it by existing make_cleanup. Call new do_cleanups.
10971
10972 2013-01-17 Tom Tromey <tromey@redhat.com>
10973
10974 * cp-abi.c (cp_abi_completer): New function.
10975 (_initialize_cp_abi): Set completer for "set cp-abi".
10976
10977 2013-01-17 Tom Tromey <tromey@redhat.com>
10978
10979 * mem-break.c: Remove obsolete comment.
10980 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10981
10982 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10983
10984 * jit.c (jit_reader_load_command): Interpret the jit reader name
10985 as an absolute path if it begins with a forward slash.
10986
10987 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10988
10989 PR gdb/14550
10990
10991 * jit.c (finalize_symtab): Ensure that only the global block has a
10992 NULL superblock.
10993
10994 2013-01-17 Pedro Alves <palves@redhat.com>
10995
10996 * acinclude.m4: Include ../config/plugins.m4,
10997 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10998 * Makefile.in (aclocal_m4_deps): Update.
10999 * aclocal.m4: Renegerate.
11000
11001 2013-01-16 Doug Evans <dje@google.com>
11002
11003 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11004
11005 2013-01-16 Pedro Alves <palves@redhat.com>
11006 Tom Tromey <tromey@redhat.com>
11007
11008 PR cli/7221:
11009 * NEWS: Add "catch signal".
11010 * breakpoint.c (base_breakpoint_ops): No longer static.
11011 (bpstat_explains_signal): New function.
11012 (init_catchpoint): No longer static.
11013 (base_breakpoint_explains_signal): New function.
11014 (base_breakpoint_ops): Initialize new field.
11015 * breakpoint.h (enum bpstat_signal_value): New.
11016 (struct breakpoint_ops) <explains_signal>: New field.
11017 (bpstat_explains_signal): Remove macro, declare as function.
11018 (base_breakpoint_ops, init_catchpoint): Declare.
11019 * break-catch-sig.c: New file.
11020 * inferior.h (signal_catch_update): Declare.
11021 * infrun.c (signal_catch): New global.
11022 (handle_syscall_event): Update for change to
11023 bpstat_explains_signal.
11024 (handle_inferior_event): Likewise. Always handle random signals
11025 via bpstats.
11026 (signal_cache_update): Check signal_catch.
11027 (signal_catch_update): New function.
11028 (_initialize_infrun): Initialize signal_catch.
11029 * Makefile.in (SFILES): Add break-catch-sig.c.
11030 (COMMON_OBS): Add break-catch-sig.o.
11031
11032 2013-01-16 Tom Tromey <tromey@redhat.com>
11033
11034 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11035 (print_one_catch_solib, print_one_catch_syscall)
11036 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11037 "catch-type".
11038
11039 2013-01-16 Yao Qi <yao@codesourcery.com>
11040
11041 * printcmd.c (current_display_number): Make it static.
11042
11043 2013-01-16 Yao Qi <yao@codesourcery.com>
11044
11045 * infcmd.c (step_once): Don't check '!single_inst' as it was
11046 checked before.
11047
11048 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11049
11050 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11051
11052 2013-01-14 Tom Tromey <tromey@redhat.com>
11053
11054 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11055 set command.
11056 * command.h (add_setshow_string_noescape_cmd): Update.
11057 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11058 (complete_set_gnutarget): New function.
11059 (_initialize_core): Set the "set gnutarget" completer.
11060
11061 2013-01-14 Tom Tromey <tromey@redhat.com>
11062
11063 PR symtab/14442:
11064 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11065 (c_type_print_modifier): Likewise.
11066 * dwarf2read.c (read_tag_restrict_type): New function.
11067 (read_type_die_1): Handle DW_TAG_restrict_type.
11068 * gdbtypes.c (make_restrict_type): New function.
11069 (recursive_dump_type): Handle TYPE_RESTRICT.
11070 * gdbtypes.h (enum type_flag_values): Renumber.
11071 (enum type_instance_flag_value): Add
11072 TYPE_INSTANCE_FLAG_RESTRICT.
11073 (TYPE_RESTRICT): New macro.
11074 (make_restrict_type): Declare.
11075
11076 2013-01-14 Tom Tromey <tromey@redhat.com>
11077
11078 PR symtab/14931:
11079 * psymtab.c (struct psymtab_state): New.
11080 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11081 functions.
11082 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11083 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11084
11085 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
11086 Pedro Alves <palves@redhat.com>
11087
11088 PR remote/14786
11089
11090 * remote.c (remote_threads_info): Make a copy of the reply from
11091 qfThreadInfo and use that instead of rs->buf.
11092
11093 2013-01-14 Yao Qi <yao@codesourcery.com>
11094
11095 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11096 (dbx_psymtab_to_symtab): Likewise.
11097 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11098 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11099 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11100
11101 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11102
11103 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11104 make_cleanup_restore_current_language. Call set_language. Move
11105 OLD_CHAIN and INNER_CHAIN cleanups.
11106 * utils.c (do_restore_current_language)
11107 (make_cleanup_restore_current_language): New functions.
11108 * utils.h (make_cleanup_restore_current_language): New declaration.
11109
11110 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11111
11112 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11113 non-existing files.
11114
11115 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11116 non-existing files if FILENAME is already absolute.
11117
11118 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11119
11120 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11121 fputs_filtered. Append trailing newline.
11122
11123 2013-01-11 Yao Qi <yao@codesourcery.com>
11124 Stan Shebs <stan@codesourcery.com>
11125
11126 * psymtab.c (init_psymbol_list): Clarify the comment.
11127
11128 2013-01-11 Yao Qi <yao@codesourcery.com>
11129
11130 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11131 (update_dprintf_command_list): Assert that 'printf_line' is
11132 non-null. Remove condition check.
11133
11134 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11135
11136 Code cleanup.
11137 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11138 type const char *.
11139 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11140 const char *.
11141 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11142
11143 2013-01-09 Anthony Green <green@moxielogic.com>
11144
11145 * cp-abi.c (cplus_print_vtable): Don't return value from void
11146 function.
11147 * ada-lang.c (re_set_catch_assert): Ditto.
11148
11149 2013-01-09 Doug Evans <dje@google.com>
11150
11151 * symfile.h (quick_symbol_functions): Delete member
11152 pre_expand_symtabs_matching. All uses removed.
11153 * dwarf2read.c (dw2_lookup_symbol): Implement.
11154 (dw2_do_expand_symtabs_matching): Delete.
11155 (dw2_pre_expand_symtabs_matching): Delete.
11156 (struct dw2_symtab_iterator): New type.
11157 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11158 (dw2_expand_symtabs_for_function): Rewrite.
11159 (dwarf2_gdb_index_functions): Update.
11160 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11161 (psym_functions): Update.
11162
11163 2013-01-09 Tom Tromey <tromey@redhat.com>
11164
11165 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11166 * configure: Rebuild.
11167 * configure.ac: Add somread.o to the build if BFD has SOM
11168 support.
11169 * somread.c: Include som/aout.h, not syms.h.
11170 (som_symtab_read): Use som_external_symbol_dictionary_record.
11171 Unpack records manually.
11172 (_initialize_somread): Declare.
11173
11174 2012-01-08 Mike Frysinger <vapier@gentoo.org>
11175
11176 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11177 Cast return_address to 64bits.
11178
11179 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
11180
11181 * printcmd.c: Remove define of function output_command.
11182 * tracepoint.c: Remove extern of function output_command.
11183 * valprint.h: (output_command): New extern.
11184
11185 2013-01-07 Tom Tromey <tromey@redhat.com>
11186
11187 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11188 Remove.
11189 (objc_language_defn): Use c_printchar, c_printstr,
11190 c_emit_char.
11191
11192 2013-01-07 Tom Tromey <tromey@redhat.com>
11193
11194 PR cli/7719:
11195 * NEWS: Update.
11196 * ada-valprint.c (printstr, print_field_values): Remove
11197 "inspect_it" code.
11198 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11199 code.
11200 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11201 code.
11202 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11203 * main.c (captured_main): Remove "epoch" argument.
11204 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11205 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11206 * p-valprint.c (pascal_object_print_value_fields): Remove
11207 "inspect_it" code.
11208 * printcmd.c (print_command_1): Remove 'inspect' argument.
11209 (print_command, call_command): Update.
11210 (inspect_command): Remove.
11211 (_initialize_printcmd): Make "inspect" an alias for "print".
11212 * top.c (epoch_interface): Remove.
11213 * top.h (epoch_interface): Remove.
11214 * valprint.c (user_print_options): Update.
11215 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11216 * valprint.h (struct value_print_options) <inspect_it>: Remove
11217 field.
11218
11219 2013-01-04 Tom Tromey <tromey@redhat.com>
11220
11221 * valprint.h (read_string): Add 'extern'.
11222
11223 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11224
11225 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11226 used to decide whether to define darwin_read_dyld_info or not.
11227
11228 2013-01-03 Pierre Muller <muller@sourceware.org>
11229
11230 * main.c (relocate_gdb_directory): Avoid calling stat function
11231 if DIR is empty.
11232
11233 2013-01-03 Yao Qi <yao@codesourcery.com>
11234
11235 * psymtab.c (fixup_psymbol_section): Update declaration.
11236 (fixup_psymbol_section): Remove code returning value.
11237
11238 2013-01-03 Yao Qi <yao@codesourcery.com>
11239
11240 * symtab.h: Remove some out of date comments.
11241 (enum exception_event_kind): Move it ...
11242 * breakpoint.c: ... here.
11243
11244 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11245
11246 PR gdb/14405
11247 * darwin-nat.c (darwin_read_dyld_info): Only build if
11248 TASK_DYLD_INFO_COUNT is defined.
11249 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11250 TASK_DYLD_INFO_COUNT is defined.
11251
11252 2013-01-02 Tom Tromey <tromey@redhat.com>
11253
11254 * symfile.h (struct ecoff_debug_hack): Remove.
11255 * objfiles.c: Don't include mdebugread.h.
11256
11257 2013-01-02 Tom Tromey <tromey@redhat.com>
11258
11259 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11260 * configure.ac: Check for Mach-O support in BFD. Update
11261 CONFIG_OBS.
11262 * configure: Rebuild.
11263
11264 2013-01-02 Tom Tromey <tromey@redhat.com>
11265
11266 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11267 * configure.ac: Use GDB_AC_CHECK_BFD.
11268 * configure: Rebuild.
11269
11270 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11271
11272 * MAINTAINERS: Update my email.
11273
11274 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11275
11276 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11277
11278 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11279
11280 * rs6000-nat.c (bss_data_overlap): New function.
11281 (vmap_symtab): Use it to adjust the .bss section's offset.
11282
11283 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11284
11285 Update year range in copyright notice of all files.
11286
11287 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11288
11289 * top.c (print_gdb_version): Update copyright year.
11290
11291 For older changes see ChangeLog-2012.
11292 \f
11293 Local Variables:
11294 mode: change-log
11295 left-margin: 8
11296 fill-column: 74
11297 version-control: never
11298 coding: utf-8
11299 End:
This page took 0.268791 seconds and 4 git commands to generate.