Fix typo in gdb/testsuite/gdb.arch/thumb2-it.S.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-10-28 Pedro Alves <palves@redhat.com>
2
3 * infrun.c (process_event_stop_test): Remove unnecessary scoping
4 level and reindent.
5
6 2013-10-28 Pedro Alves <palves@redhat.com>
7
8 * infrun.c (process_event_stop_test): New function, factored out
9 from handle_inferior_event.
10 (handle_inferior_event): 'process_event_stop_test' is now a
11 function instead of a goto label -- adjust.
12
13 2013-10-28 Pedro Alves <palves@redhat.com>
14
15 * infrun.c (handle_inferior_event): Move process_event_stop_test
16 goto label to the else branch of the ecs->random_signal check,
17 along with FRAME and GDBARCH re-fetching.
18
19 2013-10-28 Pedro Alves <palves@redhat.com>
20
21 * infrun.c (switch_back_to_stepped_thread): New function, factored
22 out from handle_inferior_event.
23 (handle_inferior_event): Adjust to call
24 switch_back_to_stepped_thread. Call it also at the tail of the
25 random signal handling, and return, instead of also handling
26 random signals just before the stepping tests.
27
28 2013-10-28 Pedro Alves <palves@redhat.com>
29
30 * infrun.c (clear_stop_func): Delete.
31 (handle_inferior_event): Don't call clear_stop_func and don't
32 clear 'ecs->random_signal'.
33
34 2013-10-27 Yao Qi <yao@codesourcery.com>
35
36 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
37 (varobj_create, varobj_get_path_expr): Update.
38 (varobj_value_has_mutated, varobj_update): Likewise.
39 (create_child_with_value, new_root_variable): Likewise.
40 (number_of_children, name_of_variable): Likewise.
41 (value_of_child, my_value_of_variable): Likewise.
42 (varobj_value_is_changeable_p): Likewise.
43
44 2013-10-25 Yao Qi <yao@codesourcery.com>
45
46 * language.h (struct lang_varobj_ops): Declare.
47 (struct language_defn) <la_varobj_ops>: New field.
48 * ada-lang.c: Include "varobj.h"
49 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
50 ada_varobj_ops.
51 * c-lang.c: Include "varobj.h"
52 (c_language_defn): Initialize field 'la_varobj_ops' with
53 c_varobj_ops.
54 (cplus_language_defn): Initialize field 'la_varobj_ops' with
55 cplus_varobj_ops.
56 (asm_language_defn): Initialize field 'la_varobj_ops' with
57 default_varobj_ops.
58 (minimal_language_defn): Likewise.
59 * d-lang.c (d_language_defn): Likewise.
60 * f-lang.c (f_language_defn): Likewise.
61 * go-lang.c (go_language_defn): Likewise.
62 * m2-lang.c (m2_language_defn): Likewise.
63 * objc-lang.c (objc_language_defn): Likewise.
64 * opencl-lang.c (opencl_language_defn): Likewise.
65 * p-lang.c (pascal_language_defn): Likewise.
66 * language.c (unknown_language_defn): Likewise.
67 (auto_language_defn): Likewise.
68 (local_language_defn): Likewise.
69 * jv-lang.c (java_language_defn): Initialize field
70 'la_varobj_ops' with java_varobj_ops.
71 * varobj.c (varobj_create): Update.
72 * varobj.h (default_varobj_ops): Define macro.
73
74 2013-10-25 Pedro Alves <palves@redhat.com>
75
76 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
77 static field value.
78 (cp_print_static_field): If the value is entirely optimized out,
79 print <optimized out> here.
80 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
81 static field value.
82 * p-valprint.c (pascal_object_print_static_field): If the value is
83 entirely optimized out, print <optimized out> here.
84 * valops.c (do_search_struct_field)
85 (value_struct_elt_for_reference): No longer handle a NULL static
86 field value.
87 * value.c (value_static_field): Return an optimized out value
88 instead of NULL.
89
90 2013-10-25 Yao Qi <yao@codesourcery.com>
91
92 * remote.c (remote_traceframe_info): Return early if
93 traceframe is not selected.
94
95 2013-10-25 Yao Qi <yao@codesourcery.com>
96
97 * tracepoint.c (traceframe_fun): Remove.
98 (traceframe_sal): Remove.
99 (set_traceframe_context): Add local variables.
100
101 2013-10-25 Joel Brobecker <brobecker@adacore.com>
102
103 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
104 and parameter name.
105
106 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
107
108 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
109 failure from register information collection.
110
111 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
112
113 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
114 member.
115 (linux_corefile_thread_callback): Update accordingly.
116 (linux_make_corefile_notes): Likewise.
117
118 2013-10-24 Pedro Alves <palves@redhat.com>
119
120 * NEWS (New options): Mention set/show startup-with-shell.
121 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
122 instead of 3.
123 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
124 startup-with-shell'.
125 (show_startup_with_shell): New function.
126 (_initialize_fork_child): Register the set/show startup-with-shell
127 commands.
128 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
129 * inf-ttrace.c (inf_ttrace_him): Remove comment.
130 * procfs.c (procfs_init_inferior): Remove comment.
131 * infcmd.c (startup_with_shell): New global.
132 * inferior.h (startup_with_shell): Declare global.
133 (STARTUP_WITH_SHELL): Delete.
134 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
135
136 2013-10-23 Pedro Alves <palves@redhat.com>
137
138 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
139 * common/signals.c: Include "gdb_assert.h".
140 (signals): New field 'symbol'.
141 (SET): Use the 'symbol' parameter.
142 (gdb_signal_to_symbol_string): New function.
143 * infrun.c (handle_inferior_event) <random signal>: In debug
144 output, print the random signal enum as string in addition to its
145 number.
146 * target/waitstatus.c (target_waitstatus_to_string): Print the
147 signal's enum value as string instead of the (POSIX) signal name.
148
149 2013-10-23 Gary Benson <gbenson@redhat.com>
150
151 PR 16013
152 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
153 from 32 to 18. Adjusted fscanf format string accordingly.
154 (Avoids leaving cmd unterminated.)
155 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
156 trun, retn or extra. (Avoids leaving extra unterminated.) Check
157 that local_address and remote_address will not overflow.
158 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
159 leaving dependencies unterminated. Parse size as "%u" to match
160 definition.
161
162 2013-10-22 Pedro Alves <palves@redhat.com>
163
164 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
165 set ecs->random signal.
166
167 2013-10-22 Pedro Alves <palves@redhat.com>
168
169 * infrun.c (keep_going): Update comments.
170
171 2013-10-22 Pedro Alves <palves@redhat.com>
172
173 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
174 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
175
176 2013-10-22 Pedro Alves <palves@redhat.com>
177
178 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
179 GDB_EXC_BAD_ACCESS.
180 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
181 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
182 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
183 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
184 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
185 (GDB_SIGNAL_LAST): Change description string.
186 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
187 Adjust to signal renaming.
188 * darwin-nat.c (darwin_decode_message): Likewise.
189
190 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
191
192 * MAINTAINERS (Write After Approval): Add myself to the list.
193
194 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
195
196 * breakpoint.c (update_watchpoint): If hardware watchpoints are
197 forced off, downgrade them to software watchpoints if possible,
198 and error out if not possible.
199 (watch_command_1): Move watchpoint type selection closer to
200 watchpoint creation, and extend the comments.
201
202 2013-10-18 Pedro Alves <palves@redhat.com>
203
204 PR gdb/16062
205 * infrun.c (handle_inferior_event): Keep going if we got a random
206 signal we should not stop for, instead of falling through to the
207 step tests.
208
209 2013-10-18 Yao Qi <yao@codesourcery.com>
210
211 * c-varobj.c (cplus_number_of_children): Fix indentation.
212
213 2013-10-17 Tom Tromey <tromey@redhat.com>
214
215 PR gdb/15995:
216 * printcmd.c (printcmd): Call gdb_flush.
217
218 2013-10-17 Tom Tromey <tromey@redhat.com>
219
220 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
221 (elf_locate_sections): Update.
222
223 2013-10-17 Yao Qi <yao@codesourcery.com>
224
225 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
226 * ada-varobj.c: Remove the include of ada-varobj.h.
227 (ada_varobj_get_number_of_children): Declare.
228 (ada_varobj_get_name_of_child): Make it static.
229 (ada_varobj_get_path_expr_of_child): Likewise.
230 (ada_varobj_get_value_of_child): Likewise.
231 (ada_varobj_get_type_of_child): Likewise.
232 (ada_varobj_get_value_of_array_variable): Likewise.
233 * ada-varobj.h: Remove.
234
235 2013-10-17 Yao Qi <yao@codesourcery.com>
236
237 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
238 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
239 * ada-varobj.c: Include "varobj.h".
240 (ada_number_of_children): New. Moved from varobj.c.
241 (ada_name_of_variable, ada_name_of_child): Likewise.
242 (ada_path_expr_of_child, ada_value_of_child): Likewise.
243 (ada_type_of_child, ada_value_of_variable): Likewise.
244 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
245 (ada_varobj_ops): New.
246 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
247 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
248 * gdbtypes.h (get_target_type): Declare.
249 * varobj.c: Remove the inclusion of "ada-varobj.h" and
250 "ada-lang.h".
251 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
252 (ANONYMOUS_UNION_NAME): Likewise.
253 (get_type, get_value_type, get_target_type): Remove declarations.
254 (value_get_print_value, varobj_value_get_print_value): Likewise.
255 (c_number_of_children, c_name_of_variable): Likewise.
256 (c_name_of_child, c_path_expr_of_child): Likewise.
257 (c_value_of_child, c_type_of_child): Likewise.
258 (c_value_of_variable, cplus_number_of_children): Likewise.
259 (cplus_class_num_children, cplus_name_of_variable): Likewise.
260 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
261 (cplus_value_of_child, cplus_type_of_child): Likewise.
262 (cplus_value_of_variable, java_number_of_children): Likewise.
263 (java_name_of_variable, java_name_of_child): Likewise.
264 (java_path_expr_of_child, java_value_of_child): Likewise.
265 (java_type_of_child, java_value_of_variable): Likewise.
266 (ada_number_of_children, ada_name_of_variable): Likewise.
267 (ada_name_of_child, ada_path_expr_of_child): Likewise.
268 (ada_value_of_child, ada_type_of_child): Likewise.
269 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
270 (ada_value_has_mutated): Likewise.
271 (struct language_specific): Move it to varobj.h.
272 (CPLUS_FAKE_CHILD): Move it to varobj.h.
273 (restrict_range): Rename it varobj_restrict_range. Make it extern.
274 Callers update.
275 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
276 Make it extern.
277 (is_anonymous_child): Move it to c-varobj.c and rename to
278 varobj_is_anonymous_child. Caller update.
279 (get_type): Move it to c-varobj.c.
280 (get_value_type): Rename it varobj_get_value_type. Make it
281 extern.
282 (get_target_type): Move it gdbtypes.c.
283 (varobj_formatted_print_options): New function.
284 (value_get_print_value): Rename it to
285 varobj_value_get_print_value and make it extern.
286 (varobj_value_is_changeable_p): Make it extern.
287 (adjust_value_for_child_access): Move it to c-varobj.c.
288 (default_value_is_changeable_p): Rename it to
289 varobj_default_value_is_changeable_p. Make it extern.
290 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
291 (c_name_of_child, c_path_expr_of_child): Likewise.
292 (c_value_of_child, c_type_of_child): Likewise.
293 (c_value_of_variable, cplus_number_of_children): Likewise.
294 (cplus_class_num_children, cplus_name_of_variable): Likewise.
295 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
296 (cplus_value_of_child, cplus_type_of_child): Likewise.
297 (cplus_value_of_variable): Likewise.
298 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
299 (java_name_of_child, java_path_expr_of_child): Likewise.
300 (java_value_of_child, java_type_of_child): Likewise.
301 (java_value_of_variable): Likewise.
302 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
303 (ada_name_of_child, ada_path_expr_of_child): Likewise.
304 (ada_value_of_child, ada_type_of_child): Likewise.
305 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
306 (ada_value_has_mutated): Likewise.
307 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
308 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
309 (c_varobj_ops, cplus_varobj_ops): Declare.
310 (java_varobj_ops, ada_varobj_ops): Declare.
311 (varobj_default_value_is_changeable_p): Declare.
312 (varobj_value_is_changeable_p): Declare.
313 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
314 (varobj_get_path_expr_parent): Declare.
315 (varobj_value_get_print_value): Declare.
316 (varobj_formatted_print_options): Declare.
317 (varobj_restrict_range): Declare.
318
319 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
320
321 * target/waitstatus.h (target_waitkind): Remove spurious
322 character from the comments.
323
324 2013-10-17 Joel Brobecker <brobecker@adacore.com>
325
326 * gdbarch.sh (get_longjmp_target): Add method documentation.
327 * gdbarch.h: Regenerate.
328
329 2013-10-16 Tom Tromey <tromey@redhat.com>
330
331 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
332 label.
333
334 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
335
336 * gcore.in: Call GDB using the full path to the gcore script.
337 Error out if the GDB binary is not found.
338
339 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
340
341 PR gdb/16014
342 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
343 sizeof.
344
345 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
346
347 PR gdb/16042
348 * target.c (target_disable_btrace): Fix invalid return value for
349 void function.
350 (target_teardown_btrace): Likewise.
351
352 2013-10-14 Yao Qi <yao@codesourcery.com>
353
354 * varobj.c (struct varobj): Move most of the fields to
355 varobj.h.
356 (struct varobj_dynamic): New struct.
357 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
358 (varobj_has_more): Likewise.
359 (dynamic_varobj_has_child_method): Likewise.
360 (update_dynamic_varobj_children): Likewise.
361 (varobj_get_num_children): Likewise.
362 (varobj_list_children, varobj_pretty_printed_p): Likewise.
363 (install_new_value_visualizer): Likewise.
364 (install_new_value_visualizer, install_new_value): Likewise.
365 (varobj_update, new_variable, free_variable): Likewise.
366 (my_value_of_variable, value_get_print_value): Likewise.
367 (install_visualizer): Change the type of parameter 'var' to
368 'struct varobjd_dynamic *'. Callers update.
369 * varobj.h (struct varobj): Moved from varobj.c.
370 (struct varobj) <dynamic>: New field.
371
372 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
373
374 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
375 as the preferred name of r30.
376 * nios2-linux-tdep.c (reg_offsets): Likewise.
377 * features/nios2-cpu.xml: Likewise.
378 * features/nios2-linux.c: Regenerated.
379 * features/nios2.c: Regenerated.
380 * regformats/nios2-linux.dat: Regenerated.
381
382 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
383
384 Canonicalize directories for EXEC_FILENAME.
385 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
386 exec_filename.
387 * utils.c (gdb_realpath_keepfile): New function.
388 * utils.h (gdb_realpath_keepfile): New declaration.
389
390 2013-10-11 Doug Evans <dje@google.com>
391
392 * Makefile.in (GDBFLAGS): New variable.
393 (run): New rule.
394
395 2013-10-11 Joel Brobecker <brobecker@adacore.com>
396
397 * NEWS: Add entry documenting the new "-catch-assert" and
398 "-catch-exception" GDB/MI commands.
399
400 2013-10-11 Joel Brobecker <brobecker@adacore.com>
401
402 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
403 "enabled".
404 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
405 "enabled". Set B->ENABLE_STATE accordingly.
406 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
407 ada-lang.c.
408 (create_ada_exception_catchpoint): Add declaration.
409 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
410 (create_ada_exception_catchpoint): Make non-static. Add new
411 parameter "disabled". Use it in call to
412 init_ada_exception_breakpoint.
413 (catch_ada_exception_command): Add parameter "enabled" in call
414 to create_ada_exception_catchpoint.
415 (catch_assert_command): Likewise.
416
417 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
418 Add declarations.
419 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
420 "catch-exception" commands.
421 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
422 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
423
424 2013-10-11 Joel Brobecker <brobecker@adacore.com>
425
426 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
427 "enum exception_catchpoint_kind". Replace the "ex_" prefix
428 of all its enumerates with "ada_". Update the rest of this
429 file throughout.
430
431 2013-10-11 Joel Brobecker <brobecker@adacore.com>
432
433 * ada-lang.c (ada_decode_exception_location): Delete.
434 (create_ada_exception_catchpoint): Remove arguments "sal",
435 "addr_string" and "ops". Add argument "ex_kind" instead.
436 Adjust implementation accordingly, calling ada_exception_sal
437 to get the entities it no longer gets passed as arguments.
438 Document the function's arguments.
439 (catch_ada_exception_command): Use catch_ada_exception_command_split
440 instead of ada_decode_exception_location, and update call to
441 create_ada_exception_catchpoint.
442 (catch_ada_assert_command_split): Renames
443 ada_decode_assert_location. Remove parameters "addr_string" and
444 "ops", and now returns void. Adjust implementation accordingly.
445 Update the function documentation.
446 (catch_assert_command): Use catch_ada_assert_command_split
447 instead of ada_decode_assert_location. Update call to
448 create_ada_exception_catchpoint.
449
450 2013-10-11 Joel Brobecker <brobecker@adacore.com>
451
452 * utils.h (perror_warning_with_name): Add declaration.
453 * utils.c (perror_warning_with_name): New function.
454 * cli/cli-cmds.c (source_script_with_search): Add call to
455 perror_warning_with_name if from_tty is nul.
456
457 2013-10-11 Joel Brobecker <brobecker@adacore.com>
458
459 * utils.c (perror_string): New function, extracted out of
460 throw_perror_with_name.
461 (throw_perror_with_name): Rework to use perror_string.
462
463 2013-10-11 Yao Qi <yao@codesourcery.com>
464
465 * remote.c (discard_pending_stop_replies_in_queue): Update
466 declaration.
467 (struct stop_reply) <rs>: New field.
468 (remove_stop_reply_of_remote_state): New function.
469 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
470 Callers update. Pass remove_stop_reply_of_remote_state to
471 QUEUE_iterate.
472 (remote_parse_stop_reply): Initialize field 'rs'.
473
474 2013-10-10 Will Newton <will.newton@linaro.org>
475
476 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
477 linux_init_abi.
478
479 2013-10-10 Joel Brobecker <brobecker@adacore.com>
480
481 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
482 serial_baud_show_cmd.
483 (_initialize_cli_cmds): Delete the code creating the
484 "set/show remotebaud" commands.
485 * serial.c (baud_rate): Move here from top.c.
486 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
487 (_initialize_serial): Create "set/show serial baud" commands.
488 Add "set/show remotebaud" command aliases.
489 * top.c (baud_rate): Moved to serial.c.
490 * NEWS: Document the new "set/show serial baud" commands,
491 replacing "set/show remotebaud".
492
493 2013-10-09 Pedro Alves <palves@redhat.com>
494
495 * breakpoint.c (insert_bp_location): Use memory_error_message to
496 build the memory error string.
497 * c-lang.c: Include "gdbcore.h".
498 (c_get_string): Use memory_error to throw error.
499 (target_xfer_memory_error): Delete.
500 (memory_error_message): New, factored out from
501 target_xfer_memory_error.
502 (memory_error): Change parameter type to target_xfer_error.
503 Rewrite.
504 (read_memory): Use memory_error instead of
505 target_xfer_memory_error.
506 * gdbcore.h: Include "target.h".
507 (memory_error): Change parameter type to target_xfer_error.
508 (memory_error_message): Declare function.
509 * target.c (target_read_memory, target_read_stack)
510 (target_write_memory, target_write_raw_memory): Return
511 TARGET_XFER_E_IO on error. Adjust comments.
512 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
513 instead of EIO.
514 * target.h (target_read, target_insert_breakpoint)
515 (target_remove_breakpoint): Adjust comments.
516 * valprint.c (partial_memory_read): Rename parameter, and adjust
517 comment.
518 (val_print_string): Use memory_error_message to build the memory
519 error string.
520
521 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
522
523 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
524 result variable. Rename variable fopen_e_ever_failed to
525 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
526
527 2013-10-09 Pedro Alves <palves@redhat.com>
528
529 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
530 (monitor_write_memory_longlongs, monitor_write_memory_block):
531 Constify 'myaddr' parameter.
532 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
533 helper.
534 (monitor_xfer_partial): New function.
535 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
536 hook. Install a to_xfer_partial hook.
537
538 2013-10-09 Tom Tromey <tromey@redhat.com>
539
540 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
541 bfd_get_alt_debug_link_info.
542
543 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
544
545 New flag OBJF_NOT_FILENAME.
546 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
547 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
548 allocate_objfile.
549 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
550 symbol_file_add_from_bfd.
551 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
552 allocate_objfile.
553 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
554 NULL.
555 * objfiles.h (OBJF_NOT_FILENAME): New.
556
557 2013-10-08 Tom Tromey <tromey@redhat.com>
558
559 * Makefile.in (SFILES): Add build-id.c.
560 (HFILES_NO_SRCDIR): Add build-id.h.
561 * build-id.c: New file, largely from elfread.c. Modified
562 most functions.
563 * build-id.h: New file.
564 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
565 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
566 Search for dwz file using build-id.
567 * elfread.c (build_id_bfd_get, build_id_verify)
568 (build_id_to_debug_filename, find_separate_debug_file): Remove.
569
570 2013-10-08 Joel Brobecker <brobecker@adacore.com>
571
572 * ada-lang.c (compare_names_with_case): Renamed from
573 compare_names, adding a new parameter "casing" and its handling.
574 New function documentation.
575 (compare_names): New function, implemented using
576 compare_names_with_case.
577
578 2013-10-08 Joel Brobecker <brobecker@adacore.com>
579
580 * ada-lang.c (ada_exception_sal): Remove advance declaration.
581
582 2013-10-07 Tom Tromey <tromey@redhat.com>
583
584 * objfiles.c (free_objfile_per_bfd_storage): Delete the
585 demangled_names_hash.
586 (free_objfile): Don't delete the demangled_names_hash.
587 * objfiles.h (struct objfile_per_bfd_storage)
588 <demangled_names_hash>: New field.
589 (struct objfile) <demangled_names_hash>: Move to
590 objfile_per_bfd_storage.
591 * symfile.c (reread_symbols): Don't delete the
592 demangled_names_hash.
593 * symtab.c (create_demangled_names_hash): Update.
594 (symbol_set_names): Update.
595
596 2013-10-07 Tom Tromey <tromey@redhat.com>
597
598 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
599 needs_relocations>: New fields.
600 (gdb_bfd_requires_relocations): New function.
601 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
602 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
603 the BFD needs relocations applied.
604
605 2013-10-07 Pedro Alves <palves@redhat.com>
606
607 PR breakpoints/11568
608 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
609 the thread list" instead of "gone".
610
611 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
612
613 * NEWS: Mention new convenience variable $_exitsignal.
614 * corelow.c (core_open): Reset exit convenience variables. Set
615 $_exitsignal to the uncaught signal which generated the corefile.
616 * infrun.c (handle_inferior_event): Reset exit convenience
617 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
618 (clear_exit_convenience_vars): New function.
619 * inferior.h (clear_exit_convenience_vars): New prototype.
620
621 2013-10-06 Yao Qi <yao@codesourcery.com>
622
623 * varobj.h: Add comments to enum varobj_languages.
624
625 2013-10-04 Doug Evans <dje@google.com>
626
627 Add support for DWP file format version 2.
628 * NEWS: Mention support for DWP file format version 2.
629 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
630 union of asection, containing_section. New fields virtual_offset
631 and is_virtual. Change type of readin filed from int to char.
632 (dwo_sections, dwo_file): Tweak comments.
633 (dwp_v2_section_ids): New enum.
634 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
635 str_offsets, types.
636 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
637 All uses updated.
638 (virtual_v2_dwo_sections): New struct.
639 (dwp_hash_table): New fields version, nr_columns. Change type of
640 section_pool field to a union.
641 (dwp_file): New field version.
642 (dwarf2_has_info): Check for virtual sections.
643 (get_containing_section): New function.
644 (get_section_bfd_owner, get_section_bfd_section): Call it.
645 (dwarf2_locate_sections): Update.
646 (dwarf2_section_empty_p): Update.
647 (dwarf2_read_section): Handle virtual sections.
648 (locate_dwz_sections): Update.
649 (create_dwp_hash_table): Document and handle V2 format.
650 (locate_v1_virtual_dwo_sections): Renamed from
651 locate_virtual_dwo_sections and update. All callers updated.
652 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
653 Delete arg htab. Rename arg section_index to unit_index.
654 All callers updated.
655 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
656 All uses updated.
657 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
658 (lookup_dwo_unit_in_dwp): Add V2 support.
659 (dwarf2_locate_dwo_sections): Update.
660 (dwarf2_locate_common_dwp_sections): Renamed from
661 dwarf2_locate_dwp_sections and update. All callers updated.
662 (dwarf2_locate_v2_dwp_sections): New function.
663 (open_and_init_dwp_file): Add V2 support.
664 (read_str_index): New locals str_section, str_offsets_section.
665
666 2013-10-04 Pedro Alves <palves@redhat.com>
667
668 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
669 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
670 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
671 describing comments with references to ptid.h.
672 * common/ptid.h: Remove intro description of constructors,
673 accessors and predicates.
674 (struct ptid): Reformat.
675 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
676 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
677 describing comments.
678
679 2013-10-04 Joel Brobecker <brobecker@adacore.com>
680
681 * aix-thread.c (sync_threadlists): Add missing ')' in call
682 to ptid_build.
683
684 2013-10-04 Joel Brobecker <brobecker@adacore.com>
685
686 * procfs.c (procfs_init_inferior): Fix typo causing the build
687 to fail.
688
689 2013-10-04 Joel Brobecker <brobecker@adacore.com>
690
691 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
692
693 2013-10-04 Joel Brobecker <brobecker@adacore.com>
694
695 * mi/mi-main.c (run_one_inferior): Add function description.
696 Make ARG a pointer to an integer whose value determines whether
697 we should "run" or "start" the program.
698 (mi_cmd_exec_run): Add handling of the "--start" option.
699 Reject all other command-line options.
700 * NEWS: Add entry for "-exec-run"'s new "--start" option.
701
702 2013-10-04 Yao Qi <yao@codesourcery.com>
703
704 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
705 (struct notif_client) <pending_event>: Moved
706 to struct remote_notif_state.
707 <id>: New field.
708 (struct remote_notif_state) <pending_event>: New field.
709 (notif_event_xfree): Declare.
710 * remote-notif.c (handle_notification): Adjust.
711 (notif_event_xfree): New function.
712 (do_notif_event_xfree): Call notif_event_xfree.
713 (remote_notif_state_xfree): Call notif_event_xfree to free
714 each element in field pending_event.
715 * remote.c (discard_pending_stop_replies): Remove declaration.
716 (discard_pending_stop_replies_in_queue): Declare.
717 (remote_close): Call discard_pending_stop_replies_in_queue
718 instead of discard_pending_stop_replies.
719 (remote_start_remote): Adjust.
720 (stop_reply_xfree): Call notif_event_xfree.
721 (notif_client_stop): Adjust initialization.
722 (remote_notif_remove_all): Rename it to ...
723 (remove_stop_reply_for_inferior): ... this. Update comments.
724 Don't check INF is NULL.
725 (discard_pending_stop_replies): Return early if notif_state is
726 NULL. Adjust. Don't check INF is NULL.
727 (remote_notif_get_pending_events): Adjust.
728 (discard_pending_stop_replies_in_queue): New function.
729 (remote_wait_ns): Likewise.
730
731 2013-10-04 Yao Qi <yao@codesourcery.com>
732
733 * remote-notif.c (DECLARE_QUEUE_P): Remove.
734 (notif_queue): Remove.
735 (remote_notif_process): Add one parameter 'notif_queue'.
736 Update comments. Callers update.
737 (remote_async_get_pending_events_token): Remove.
738 (remote_notif_register_async_event_handler): Remove.
739 (remote_notif_unregister_async_event_handler): Remove.
740 (handle_notification): Add parameter 'notif_queue'. Update
741 comments. Callers update.
742 (notif_xfree): Remove.
743 (remote_notif_state_allocate): New function.
744 (remote_notif_state_xfree): New function.
745 (_initialize_notif): Remove code to allocate queue.
746 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
747 (struct remote_notif_state): New.
748 (handle_notification): Update declaration.
749 (remote_notif_process): Likewise.
750 (remote_notif_register_async_event_handler): Remove.
751 (remote_notif_unregister_async_event_handler): Remove.
752 (remote_notif_state_allocate): Declare.
753 (remote_notif_state_xfree): Declare.
754 * remote.c (struct remote_state) <notif_state>: New field.
755 (remote_close): Don't call
756 remote_notif_unregister_async_event_handler. Call
757 remote_notif_state_xfree.
758 (remote_open_1): Don't call
759 remote_notif_register_async_event_handler. Call
760 remote_notif_state_allocate.
761
762 2013-10-04 Yao Qi <yao@codesourcery.com>
763
764 * varobj.c (create_child_with_value): Remove 'const' from the
765 type of parameter 'name'.
766 (varobj_add_child): Likewise.
767 (install_dynamic_child): Remove 'const' from the type of
768 parameter 'name'.
769 (varobj_add_child): Likewise.
770 (create_child_with_value): Likewise. Update comments. Don't
771 duplicate 'name'.
772 (update_dynamic_varobj_children): Duplicate 'name'
773 and pass it to install_dynamic_child.
774
775 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
776
777 * python/py-value.c (convert_value_from_python): Move PyInt_Check
778 conversion logic to occur after PyLong_Check. Comment on order
779 change significance.
780 * python/py-arch.c (archpy_disassemble): Comment on order of
781 conversion for integers and longs.
782
783 2013-10-03 Pedro Alves <palves@redhat.com>
784
785 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
786 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
787 functions. Always test for PTRACE_O_TRACESYSGOOD even if
788 PTRACE_O_TRACEFORK is not supported.
789 (linux_test_for_tracesysgood): New function.
790 (linux_test_for_tracefork): New function, factored out from
791 linux_check_ptrace_features, and also don't kill child_pid here.
792
793 2013-10-03 Tristan Gingold <gingold@adacore.com>
794
795 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
796 Remove verbose error reporting. Use detected state to
797 thread_set_state call.
798 (i386_darwin_dr_get): Fix return type. Remove verbose error
799 report.
800 Remove trailing spaces.
801
802 2013-10-02 Pedro Alves <palves@redhat.com>
803
804 * cp-valprint.c (cp_print_value_fields): Adjust calls to
805 val_print_optimized_out.
806 * jv-valprint.c (java_print_value_fields): Likewise.
807 * p-valprint.c (pascal_object_print_value_fields): Likewise.
808 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
809 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
810 new optimized out value.
811 * findvar.c (address_from_register): Likewise.
812 * frame.c (put_frame_register): Tweak error string to say the
813 register was not saved, rather than optimized out.
814 * infcmd.c (default_print_one_register_info): Adjust call to
815 val_print_optimized_out. Use value_of_register instead of
816 get_frame_register_value.
817 * mi/mi-main.c (output_register): Use value_of_register instead of
818 get_frame_register_value.
819 * valprint.c (valprint_check_validity): Likewise.
820 (val_print_optimized_out): New value parameter. If the value is
821 lval_register, print <not saved> instead.
822 (value_check_printable, val_print_scalar_formatted): Adjust calls
823 to val_print_optimized_out.
824 * valprint.h (val_print_optimized_out): New value parameter.
825 * value.c (struct value) <optimized_out>: Extend comment.
826 (error_value_optimized_out): New function.
827 (require_not_optimized_out): Use it. Use a different string for
828 lval_register values.
829 * value.h (error_value_optimized_out): New declaration.
830 * NEWS: Mention <not saved>.
831
832 2013-10-02 Joel Brobecker <brobecker@adacore.com>
833
834 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
835 strcmp to compare two symtab filenames.
836
837 2013-10-02 Joel Brobecker <brobecker@adacore.com>
838
839 * symtab.c (search_symbols_equal): Delete.
840 (sort_search_symbols_remove_dups): Replace call to
841 search_symbols_equal by call to compare_search_syms,
842 adjusting as necessary.
843
844 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
845
846 PR python/15579
847
848 * python/python.c: Document gdb.execute command in Python help.
849
850 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
851
852 * python/py-frame.c (frame_info_to_frame_object): Use
853 gdbpy_convert_exception. Clean up Python object on failure.
854
855 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
856
857 * python/lib/gdb/command/frame_filters.py
858 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
859 (ShowFrameFilterPriority.invoke): Ditto.
860
861 2013-10-01 Keith Seitz <keiths@redhat.com>
862
863 * linespec.c (struct ls_parser): Make 'saved_arg' const.
864 (parse_linespec): Make 'argptr' const.
865 Remove temporary cast of 'argptr' to const char **.
866 (decode_line_full): Pass const pointer to parse_linespec.
867 (decode_line_1): Likewise.
868 (decode_objc): Make local variable 'new_argptr' const.
869 (find_function_symbols): Remove temporary cast to char *
870 to find_imps.
871 * objc-lang.c (find_imps): Make argument 'method' const.
872 Return const.
873 * objc-lang.h (find_imps): Likewise.
874
875 2013-10-01 Keith Seitz <keiths@redhat.com>
876
877 * completer.c (skip_quoted_chars): Make all arguments const.
878 Return const.
879 (skip_quoted): Likewise.
880 * completer.h (skip_quoted_chars): Likewise.
881 (skip_quoted): Likewise.
882 * defs.h (skip_quoted): Remove duplicate declaration.
883 * jv-exp.y: Include completer.h.
884 (yylex): Remove unneccessary cast to char * fro skip_quoted.
885 * p-exp.y: Include completer.h.
886
887 2013-10-01 Keith Seitz <keiths@redhat.com>
888
889 * c-exp.y (parse_number): Make first argument const.
890 Make a copy of the input to manipulate.
891 (c_parse_escape): Make first argument const.
892 Make local variable 'tokptr' const.
893 (parse_string_or_char): Make first two arguments const.
894 (macro_original_text): Make const.
895 (lex_one_token): Make local variable 'tokstart' const.
896 Likewise for local variables named 'p'.
897 Cast away const for struct stoken (temporary).
898 * c-lang.h (c_parse_escpae): Make first argument const.
899 * cli/cli-cmds.c (echo_command): Make local variable 'p'
900 const.
901 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
902 var_string case.
903 * f-exp.y (parse_number): Make first argument const.
904 (match_string_literal): Make local variable 'tokstart'
905 const.
906 (yylex): Make local variable 'p' const.
907 Cast away const for struct stoken (temporary).
908 * go-exp.y (parse_number): Make first argument const.
909 (parse_string_or_char): Likewise.
910 Make local variable 'tokstart' const.
911 (lex_one_token): Likewise for numerous locals called 'p'.
912 Cast away const for struct stoken (temporary).
913 * jv-exp.y (parse_number): Make first argument const.
914 Make local variables 'tokstart' and 'tokptr' const.
915 Cast away const for call to skip_quoted (temporary).
916 (yylex): Make local variable 'p' const.
917 Cast away const for struct stoken (temporary).
918 * m2-exp.y (parse_number): Make local variable 'p' const.
919 (yylex): Likewise for 'tokstart'.
920 Cast away const for struct stoken (temporary).
921 Make local variable 'p' const.
922 * macroexp.c (get_character_constant): Pass a const string
923 to c_parse_escape.
924 (get_string_literal): Likewise.
925 (macro_expand_next): Make first argument const.
926 Cast away const for init_shared_buffer.
927 * macroexp.h (macro_expand_next): Make first argument const.
928 * p-exp.y (yylex): Make a local copy of 'lexptr'.
929 Pass a const string to c_parse_escape.
930 Make local variables 'p' and 'namestart' const.
931 * parse.c (lexptr): Make const.
932 (prev_lexptr): Likewise.
933 (find_template_name_end): Return const.
934 Make argument const, too.
935 (parse_exp_in_context): Make first argument const.
936 Remove the entire const_hack.
937 (parse_exp_in_context_1): Make first argument const.
938 * parser-defs.h (find_template_name_end): Return const.
939 Make argument const, too.
940 (lexptr): Make const.
941 (prev_lexptr): Likewise.
942 * utils.c (parse_escape): Make second argument const.
943 * utils.h (parse_escape): Likewise.
944
945 2013-10-01 Keith Seitz <keiths@redhat.com>
946
947 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
948 is now const.
949 (block_lookup): Make 'raw_name' and 'name' const.
950 * ada-lex.l (processString): Update for struct stoken.ptr.
951 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
952 (operator_stoken): Likewise.
953 (lex_one_token): Remove temporary cast to char * for
954 'yylval.sval.ptr'.
955 * f-exp.y (yylex): Likewise.
956 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
957 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
958 * go-exp.y (lex_one_token): Remove temporary cast to char * for
959 'yylval.sval.ptr'.
960 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
961 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
962 * linespec.c (struct ls_parser): Make 'stream' const.
963 (find_parameter_list_end): Make argument 'input' and local
964 variable 'p' const.
965 (linespec_lexer_lex_string): Make local variables 'start' and
966 'p' const.
967 Use skip_spaces_const instead of skip_spaces.
968 (linespec_lexer_peek_token): Make local variable 'saved_stream'
969 const.
970 (parse_linespec): Temporarily cast 'argptr' to const for
971 'parser->lexer.stream'.
972 * m2-exp.y (yylex): Remove temporary cast to char * for
973 'yylval.sval.ptr'.
974 * objc-lang.c (add_msglist): Make local variable 'p' const.
975 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
976 (exp : STRING): Make 'sp' const.
977 (parse_number): Make argument 'p' const.
978 * parser-defs.h (struct stoken): Make 'ptr' const.
979
980 2013-10-01 Doug Evans <dje@google.com>
981
982 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
983
984 2013-10-01 Yao Qi <yao@codesourcery.com>
985
986 * varobj.c (c_value_of_root): Remove declaration.
987 (cplus_value_of_root, java_value_of_root): Likewise.
988 (ada_value_of_root): Likewise.
989 (struct language_specific) <value_of_root>: Remove.
990 (languages): Update initialization.
991 (check_scope): Move earlier.
992 (c_value_of_root): Move earlier and rename to ...
993 (value_of_root_1): ... this.
994 (value_of_root): Caller update.
995 (cplus_value_of_root, java_value_of_root): Remove.
996 (ada_value_of_root): Remove.
997
998 2013-10-01 Yao Qi <yao@codesourcery.com>
999
1000 * varobj.c (varobj_format_string): Remove "unknown".
1001 (languages): Remove the first element.
1002 * varobj.h (enum varobj_languages): Remove vlang_c.
1003
1004 2013-10-01 Yao Qi <yao@codesourcery.com>
1005
1006 * varobj.c (struct language_specific) <language>: Remove.
1007 (languages): Update the initialization.
1008
1009 2013-10-01 Yao Qi <yao@codesourcery.com>
1010
1011 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1012 "solib-target.h". Include "windows-tdep.h".
1013 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1014 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1015 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1016 windows-tdep.o to gdb_target_obs.
1017
1018 2013-10-01 Yao Qi <yao@codesourcery.com>
1019
1020 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1021 "solib-target.h".
1022 (amd64_windows_init_abi): Don't call set_solib_ops and
1023 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1024 windows_init_abi instead.
1025 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1026 "solib-target.h".
1027 (i386_cygwin_init_abi): Don't call set_solib_ops,
1028 set_gdbarch_has_dos_based_file_system and
1029 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1030 windows_init_abi instead.
1031 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1032 (windows_init_abi): New function.
1033 (windows_iterate_over_objfiles_in_search_order): Make it
1034 static.
1035 * windows-tdep.h (windows_init_abi): Declare.
1036 (windows_iterate_over_objfiles_in_search_order): Remove
1037 declaration.
1038
1039 2013-10-01 Jerome Guitton <guitton@adacore.com>
1040
1041 Checked in by Joel Brobecker <brobecker@adacore.com>
1042 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1043 incomplete dictionnary instead of None in case of missing
1044 environment variables.
1045 (elinos_init): in case of an incomplete environment, best
1046 effort to load system libraries instead of abort.
1047
1048 2013-10-01 Joel Brobecker <brobecker@adacore.com>
1049
1050 * ada-lang.c (ada_has_this_exception_support): Ignore
1051 mst_solib_trampoline minimal symbols.
1052
1053 2013-09-30 Tristan Gingold <gingold@adacore.com>
1054
1055 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1056 hardware watchpoint.
1057 (i386_darwin_dr_set): Support 32 and 64 bit states.
1058 (i386_darwin_dr_get): Likewise.
1059 (i386_darwin_dr_set_control): Make static.
1060 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1061 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1062
1063 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
1064
1065 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1066 Replace TIDGET with ptid_get_lwp.
1067 Replace GET_LWP with ptid_get_lwp.
1068 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1069 Replace BUILD_THREAD with ptid_build.
1070 Replace BUILD_LWP with ptid_build.
1071 Replace PIDGET with ptid_get_pid.
1072 Replace TIDGET with ptid_get_lwp.
1073 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1074 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1075 Replace TIDGET with ptid_get_lwp.
1076 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1077 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1078 Replace TIDGET with ptid_get_lwp.
1079 Replace GET_LWP with ptid_get_lwp.
1080 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1081 * auxv.c: Likewise.
1082 * breakpoint.c: Likewise.
1083 * common/ptid.c (ptid_is_pid): Condense check for
1084 null_ptid and minus_one_ptid.
1085 (ptid_lwp_p): New function.
1086 (ptid_tid_p): New function.
1087 * common/ptid.h: Update comments for accessors.
1088 (ptid_lwp_p): New prototype.
1089 (ptid_tid_p): New prototype.
1090 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1091 * gcore.c: Replace PIDGET with ptid_get_pid.
1092 * gdbthread.h: Likewise.
1093 * gnu-nat.c: Likewise.
1094 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1095 Replace TIDGET with ptid_get_lwp.
1096 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1097 * hppanbsd-nat.c: Likewise.
1098 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1099 Replace TIDGET with ptid_get_lwp.
1100 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1101 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1102 * infcmd.c: Likewise.
1103 * inferior.h: Likewise.
1104 * inflow.c: Likewise.
1105 * infrun.c: Likewise.
1106 * linux-fork.c: Likewise.
1107 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1108 Replace GET_PID with ptid_get_pid.
1109 Replace is_lwp with ptid_lwp_p.
1110 Replace GET_LWP with ptid_get_lwp.
1111 Replace BUILD_LWP with ptid_build.
1112
1113 2013-09-28 Mike Frysinger <vapier@gentoo.org>
1114
1115 * common/linux-btrace.c: Move sys/syscall.h out of the
1116 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1117 Also check for SYS_perf_event_open before attempting to buid.
1118
1119 2013-09-27 Doug Evans <dje@google.com>
1120
1121 * dwarf2read.c (dwarf2_section_info): Add comment.
1122 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1123 All uses updated.
1124 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1125 (dwarf2_read_section): Delete unused local "header". Add section
1126 name to error message.
1127 (create_dwo_in_dwp): Tweak comment.
1128 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1129
1130 * dwarf2read.c (die_reader_specs): Tweak comment.
1131 (get_section_bfd_owner, get_section_bfd_section): New functions.
1132 (get_section_name, get_section_file_name): New functions.
1133 (get_section_id, get_section_flags): New functions.
1134 (*): Use new functions to access section fields.
1135
1136 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1137 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1138 arg "htab". All callers updated.
1139 (create_debug_types_hash_table): Remove redundant copy of
1140 abbrev_section.
1141 (create_dwo_in_dwp): Tweak comments.
1142 (read_str_index): Tweak comment. Record dwarf form name in static
1143 local.
1144
1145 2013-09-27 Pedro Alves <palves@redhat.com>
1146
1147 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1148 (remote_filename_p): Add comment.
1149 * remote.c (remote_filename_p): Adjust to use
1150 REMOTE_SYSROOT_PREFIX.
1151 * solib.c (solib_find): When deciding whether we need to add a
1152 directory separator, check whether the sysroot is "remote:"
1153 instead of checking whether the patch has a drive spec. Add
1154 comments.
1155
1156 2013-09-27 Pedro Alves <palves@redhat.com>
1157
1158 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1159 Delete fields.
1160 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1161 directly.
1162
1163 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1164
1165 Fix set debug frame output.
1166 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1167 SENTINEL_FRAME entry lower to match enum frame_type order.
1168
1169 2013-09-26 Pierre Muller <muller@sourceware.org>
1170
1171 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1172 AMD64_R15_REGNUM when a register index is expected.
1173 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1174 Substitute in array.
1175 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1176 (amd64_push_arguments): Substitute in integer_regnum array.
1177
1178 2013-09-25 Doug Evans <dje@google.com>
1179
1180 * objfiles.c (allocate_objfile): Move comment to better place.
1181
1182 New option "set debug symfile on".
1183 * NEWS: Mention "set debug symfile".
1184 * Makefile.in (SFILES): Add symfile-debug.c.
1185 (COMMON_OBS): Add symfile-debug.o.
1186 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1187 objfile's symbol functions.
1188 * objfiles.h (objfile_set_sym_fns): Declare.
1189 * symfile-debug.c: New file.
1190 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1191 objfile's symbol functions.
1192 (reread_symbols): Ditto.
1193
1194 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1195 All uses updated.
1196 (add_symtab_fns): Update prototype.
1197 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1198 (registered_sym_fns): ... this.
1199 (symtab_fns): Update.
1200 (add_symtab_fns): New arg "flavour". All callers updated.
1201 (find_sym_fns): Rewrite to use new sym_fns registry.
1202
1203 * symfile.h (struct sym_fns): Add "objfile" argument to
1204 sym_read_linetable. All uses updated.
1205
1206 * symtab.c (domain_name, search_domain_name): New functions.
1207 * symtab.h (domain_name, search_domain_name): Declare.
1208
1209 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1210 map_matching_symbols so objfile is first. All uses updated.
1211 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1212 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1213
1214 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1215
1216 PR shlibs/8882
1217 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1218 link map entries.
1219
1220 2013-09-24 Doug Evans <dje@google.com>
1221
1222 * objfiles.c (free_objfile): Move comment.
1223
1224 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1225
1226 * ada-exp.y (string_to_operator): Delete.
1227 (dummy_string_to_ada_operator): Delete.
1228
1229 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1230
1231 Revert:
1232 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1233 amd64-tdep.c.
1234 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1235 call_dummy_integer_regs, and classify.
1236 * amd64-tdep.h (amd64_classify): Add declaration.
1237 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1238 (amd64_reg_class): Delete, moved to i386-tdep.h.
1239 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1240 Replace call to amd64_classify by call to tdep->classify.
1241 (amd64_push_arguments): Get the list of registers to use for
1242 passing integer parameters from the gdbarch tdep structure,
1243 rather than using a hardcoded one. Replace calls to amd64_classify
1244 by calls to tdep->classify.
1245 (amd64_push_dummy_call): Get the register number used for
1246 the "hidden" argument from tdep->call_dummy_integer_regs.
1247 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1248 and tdep->call_dummy_integer_regs. Set tdep->classify.
1249
1250 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1251
1252 Revert:
1253 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1254 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1255 where tdep->memory_args_by_pointer is non-zero.
1256
1257 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1258
1259 Revert:
1260 * i386-tdep.h (struct gdbarch_tdep): Add new field
1261 integer_param_regs_saved_in_caller_frame.
1262 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1263 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1264
1265 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1266
1267 * amd64-windows-tdep.c: #include "value.h"
1268 (amd64_windows_classify): Delete.
1269 (amd64_windows_passed_by_integer_register)
1270 (amd64_windows_passed_by_xmm_register)
1271 (amd64_windows_passed_by_pointer)
1272 (amd64_windows_adjust_args_passed_by_pointer)
1273 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1274 (amd64_windows_push_dummy_call): New functions.
1275 (amd64_windows_init_abi): Remove setting of
1276 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1277 tdep->classify, tdep->memory_args_by_pointer and
1278 tdep->integer_param_regs_saved_in_caller_frame.
1279 Add call to set_gdbarch_push_dummy_call.
1280
1281 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1282
1283 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1284 objfile->original_name.
1285
1286 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1287
1288 Pass down original filename for objfile.
1289 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1290 * elfread.c (elf_symfile_read): Likewise.
1291 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1292 longer set ORIGINAL_NAME.
1293 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1294 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1295 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1296 symbol_file_add_from_bfd call.
1297 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1298 (macho_check_dsym): Add parameter filenamep. Change function comment.
1299 Set *filenamep.
1300 (macho_symfile_read): New variable dsym_filename. Update
1301 macho_check_dsym call. Use it for symbol_file_add_separate.
1302 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1303 it. Use it for objfile->original_name.
1304 (objfile_name): Return OBFD's filename, if available.
1305 * objfiles.h (allocate_objfile): Add new parameter name.
1306 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1307 * symfile-mem.c (symbol_file_add_from_memory): Update
1308 symbol_file_add_from_bfd call.
1309 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1310 comment for it.
1311 (symbol_file_add_with_addrs): New parameter name, add function comment
1312 for it. Remove variable name. Update allocate_objfile call.
1313 (symbol_file_add_separate): New parameter name, add function comment
1314 for it. Update symbol_file_add_with_addrs call.
1315 (symbol_file_add_from_bfd): New parameter name. Update
1316 symbol_file_add_with_addrs call.
1317 (symbol_file_add): Update symbol_file_add_from_bfd call.
1318 (reread_symbols): New variable original_name. Save
1319 objfile->original_name by it.
1320 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1321 second parameter.
1322
1323 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1324
1325 Code cleanup: Add objfile_name accessor function.
1326 * ada-lang.c (is_known_support_routine): Use objfile_name.
1327 * auto-load.c (source_gdb_script_for_objfile)
1328 (auto_load_objfile_script): Likewise.
1329 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1330 * dbxread.c (dbx_symfile_read): Likewise.
1331 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1332 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1333 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1334 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1335 (lookup_dwp_signatured_type, lookup_dwo_unit)
1336 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1337 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1338 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1339 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1340 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1341 (read_subrange_type, load_partial_dies, read_partial_die)
1342 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1343 (die_containing_type, build_error_marker_type, lookup_die_type)
1344 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1345 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1346 (get_DW_AT_signature_type, write_psymtabs_to_index)
1347 (save_gdb_index_command): Likewise.
1348 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1349 Likewise.
1350 * expprint.c (dump_subexp_body_standard): Likewise.
1351 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1352 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1353 original_name.
1354 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1355 obj_name, use objfile_name for it, use the variable.
1356 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1357 Use objfile_name.
1358 * machoread.c (macho_symtab_read, macho_check_dsym)
1359 (macho_symfile_relocate): Likewise.
1360 * maint.c (maintenance_translate_address): Likewise.
1361 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1362 * minsyms.c (install_minimal_symbols): Likewise.
1363 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1364 original_name.
1365 (filter_overlapping_sections): Use objfile_name.
1366 (objfile_name): New function.
1367 * objfiles.h (struct objfile): Rename field name to original_name.
1368 (objfile_name): New prototype.
1369 * printcmd.c (sym_info, address_info): Use objfile_name.
1370 * probe.c (parse_probes, collect_probes, compare_probes)
1371 (info_probes_for_ops): Likewise.
1372 * progspace.c (clone_program_space): Likewise.
1373 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1374 (maintenance_info_psymtabs): Likewise.
1375 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1376 (source_section_scripts): Likewise.
1377 * python/py-objfile.c (objfpy_get_filename): Likewise.
1378 * python/py-progspace.c (pspy_get_filename): Likewise.
1379 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1380 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1381 * solib.c (solib_read_symbols): Likewise.
1382 * stabsread.c (scan_file_globals): Likewise.
1383 * stap-probe.c (handle_stap_probe): Likewise.
1384 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1385 (find_separate_debug_file_by_debuglink): Likewise.
1386 (reread_symbols): Likewise. Use the objfile field name renamed to
1387 original_name.
1388 (allocate_symtab): Use objfile_name.
1389 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1390 (dump_objfile, dump_msymbols, dump_symtab_1)
1391 (maintenance_print_msymbols, maintenance_print_objfiles)
1392 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1393 * target.c (target_translate_tls_address, target_info): Likewise.
1394 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1395 objfile_name.
1396
1397 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1398
1399 Code cleanup.
1400 * probe.c (parse_probes): Rename variable objfile_name to
1401 objfile_namestr.
1402
1403 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1404
1405 Remove solib-sunos.c.
1406 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1407 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1408 * objfiles.c (rt_common_objfile): Remove.
1409 (free_objfile): Remove rt_common_objfile comparison.
1410 * objfiles.h (rt_common_objfile): Remove.
1411 * solib-sunos.c: Remove.
1412 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1413
1414 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1415
1416 Remove a.out NetBSD and OpenBSD hosts.
1417 * NEWS (Removed native configurations): New.
1418 * config/arm/nbsdaout.mh: Remove.
1419 * config/i386/nbsdaout.mh: Remove.
1420 * config/i386/obsdaout.mh: Remove.
1421 * config/m68k/nbsdaout.mh: Remove.
1422 * config/sparc/nbsdaout.mh: Remove.
1423 * config/vax/nbsdaout.mh: Remove.
1424 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1425 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1426 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1427 error.
1428 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1429 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1430 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1431
1432 2013-09-23 Tom Tromey <tromey@redhat.com>
1433
1434 * linespec.c (struct minsym_and_objfile): Remove.
1435 (minsym_and_objfile_d): Remove.
1436 (struct linespec, struct collect_info, linespec_parse_basic)
1437 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1438 (compare_msymbols, find_method, find_function_symbols)
1439 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1440 (add_minsym, search_minsyms_for_name): Update.
1441
1442 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1443
1444 * regcache.c: Add include of valprint.h.
1445 (dump_endian_bytes): Delete.
1446 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1447
1448 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1449
1450 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1451
1452 2013-09-19 Pedro Alves <palves@redhat.com>
1453
1454 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1455 breakpoints.
1456
1457 2013-09-19 Pedro Alves <palves@redhat.com>
1458 Thomas Schwinge <thomas@codesourcery.com>
1459 Yue Lu <hacklu.newborn@gmail.com>
1460
1461 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1462 Take a gdb_byte pointer instead of a char pointer.
1463
1464 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1465 gnu_xfer_partial helper.
1466 (gnu_xfer_partial): New function.
1467 (gnu_target): Don't install a deprecated_xfer_memory hook.
1468 Install a to_xfer_partial hook.
1469
1470 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1471
1472 Constification.
1473 * main.c (captured_main): Replace catch_command_errors by
1474 catch_command_errors_const. Twice.
1475 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1476 (symbol_file_add): Make name parameter const.
1477 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1478 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1479 variable name. Change their usage accordingly.
1480 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1481 const.
1482 (symbol_file_add_main): Make args parameter const.
1483
1484 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1485 Ulrich Weigand <uweigand@de.ibm.com>
1486
1487 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1488 of c_value member.
1489 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1490
1491 2013-09-18 Pedro Alves <palves@redhat.com>
1492 Yue Lu <hacklu.newborn@gmail.com>
1493
1494 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1495 (gnu_create_inferior)
1496 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1497 (set_sig_thread_cmd): Use the lwpid field of ptids to
1498 store/extract thread ids instead of the tid field.
1499 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1500
1501 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1502
1503 * infcmd.c (default_print_one_register_info): Add detection of
1504 optimized out values.
1505 (default_print_registers_info): Switch to using
1506 get_frame_register_value.
1507
1508 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1509
1510 * infrun.c (handle_inferior_event): Check if we know the
1511 function start address before setting a resume breakpoint.
1512
1513 2013-09-18 Pedro Alves <palves@redhat.com>
1514
1515 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1516 minus_one_ptid instead of looking at the ptid's tid field and
1517 comparing that to -1.
1518
1519 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1520
1521 * main.h (get_gdb_program_name): Remove extra whitespace.
1522
1523 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1524
1525 * main.h (get_gdb_program_name): Add declaration.
1526 * main.c (get_gdb_program_name): Add definition.
1527
1528 2013-09-17 Doug Evans <dje@google.com>
1529
1530 * dwarf2read.c: Move definitions of complaint functions to after
1531 forward declarations of local functions.
1532
1533 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1534 Pedro Alves <palves@redhat.com>
1535
1536 PR gdb/11568
1537 * breakpoint.c (remove_threaded_breakpoints): New function.
1538 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1539 as thread_exit observer.
1540
1541 2013-09-17 Pedro Alves <palves@redhat.com>
1542
1543 PR gdb/15911
1544 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1545 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1546 * corelow.c (core_open):
1547 * frame.h (print_stack_frame, print_frame_info): New
1548 'set_current_sal' parameter.
1549 * infcmd.c (finish_command, kill_command): Adjust call to
1550 print_stack_frame.
1551 * inferior.c (inferior_command): Likewise.
1552 * infrun.c (normal_stop): Likewise.
1553 * linux-fork.c (linux_fork_context): Likewise.
1554 * record-full.c (record_full_goto_entry, record_full_restore):
1555 Likewise.
1556 * remote-mips.c (common_open): Likewise.
1557 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1558 Use it.
1559 (print_frame_info): New 'set_current_sal' parameter. Set the last
1560 displayed sal depending on the new paremeter instead of looking at
1561 print_what.
1562 (backtrace_command_1, select_and_print_frame, frame_command)
1563 (current_frame_command, up_command, down_command): Adjust call to
1564 print_stack_frame.
1565 * thread.c (print_thread_info, restore_selected_frame)
1566 (do_captured_thread_select): Adjust call to print_stack_frame.
1567 * tracepoint.c (tfind_1): Likewise.
1568 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1569 (mi_cmd_stack_info_frame): Likewise.
1570 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1571 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1572
1573 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1574
1575 * value.c (isvoid_internal_fn): Replace "parameter" with
1576 "argument".
1577
1578 2013-09-16 Stan Shebs <stan@codesourcery.com>
1579
1580 * README: Update references to writing code for GDB.
1581 * configure.ac (build_warnings): Remove obsolete comment.
1582 * configure: Regenerate.
1583 * gdbarch.sh: Remove references to gdbint.texinfo.
1584 * gdbarch.h: Regenerate.
1585 * gdbtypes.c (objfile_type): Remove comments referencing internals
1586 manual and D10V.
1587
1588 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1589
1590 * NEWS: Mention new convenience function $_isvoid.
1591 * value.c (isvoid_internal_fn): New function.
1592 (_initialize_values): Add new convenience function $_isvoid.
1593
1594 2013-09-16 Pierre Muller <muller@sourceware.org>
1595
1596 * arm-linux-tdep.c: Add "elf/common.h" header.
1597 Remove AT_HWCAP macro definintion as it is provided in
1598 added include file.
1599 * s390-tdep.c: Remove system header <elf.h>
1600 Add "elf/common.h" header for AT_HWCAP definition.
1601 (s390_core_read_description): Use correct CORE_ADDR
1602 for hwcap local variable used as third parameter
1603 of function target_auxv_search.
1604
1605 2013-09-14 Pierre Muller <muller@sourceware.org>
1606 Tom Tromey <tromey@redhat.com>
1607 Pedro Alves <palves@redhat.com>
1608
1609 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1610 mode if operating system doesn't know O_CLOEXEC.
1611
1612 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1613
1614 Code cleanup.
1615 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1616 inner block.
1617
1618 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1619
1620 * NEWS: Mention TDB support.
1621 * features/s390-tdb.xml: New file.
1622 * features/s390-te-linux64.xml: New file.
1623 * features/s390x-te-linux64.xml: New file.
1624 * features/Makefile (WHICH): Add new tdescs above.
1625 (s390-te-linux64-expedite): Set.
1626 (s390x-te-linux64-expedite): Set.
1627 * features/s390-te-linux64.c: New file (generated).
1628 * features/s390x-te-linux64.c: New file (generated).
1629 * regformats/s390-te-linux64.dat: New file (generated).
1630 * regformats/s390x-te-linux64.dat: New file (generated).
1631 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1632 (HWCAP_S390_TE): Likewise.
1633 (S390_TDB_DWORD0_REGNUM): Likewise.
1634 (S390_TDB_DWORD0_REGNUM): Likewise.
1635 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1636 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1637 (S390_TDB_ATIA_REGNUM): Likewise.
1638 (S390_TDB_R0_REGNUM): Likewise.
1639 (S390_TDB_R1_REGNUM): Likewise.
1640 (S390_TDB_R2_REGNUM): Likewise.
1641 (S390_TDB_R3_REGNUM): Likewise.
1642 (S390_TDB_R4_REGNUM): Likewise.
1643 (S390_TDB_R5_REGNUM): Likewise.
1644 (S390_TDB_R6_REGNUM): Likewise.
1645 (S390_TDB_R7_REGNUM): Likewise.
1646 (S390_TDB_R8_REGNUM): Likewise.
1647 (S390_TDB_R9_REGNUM): Likewise.
1648 (S390_TDB_R10_REGNUM): Likewise.
1649 (S390_TDB_R11_REGNUM): Likewise.
1650 (S390_TDB_R12_REGNUM): Likewise.
1651 (S390_TDB_R13_REGNUM): Likewise.
1652 (S390_TDB_R14_REGNUM): Likewise.
1653 (S390_TDB_R15_REGNUM): Likewise.
1654 (S390_NUM_REGS): Increase.
1655 (S390_IS_TDBREGSET_REGNUM): New macro.
1656 (s390_regmap_tdb): Declare.
1657 (s390_sizeof_tdbregset): Define.
1658 (tdesc_s390_te_linux64): Declare.
1659 (tdesc_s390x_te_linux64): Likewise.
1660 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1661 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1662 (s390_regmap_tdb): New regmap.
1663 (s390_supply_tdb_regset): New function.
1664 (s390_tdb_regset): New regset.
1665 (s390_linux64v2_regset_sections): Add TDB regset to list.
1666 (s390x_linux64v2_regset_sections): Likewise.
1667 (s390_regset_from_core_section): Recognize TDB core note section.
1668 (s390_core_read_description): If HWCAP indicates TE support,
1669 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1670 (s390_gdbarch_init): Handle TDB regset.
1671 (_initialize_s390_tdep): Initialize new tdescs.
1672 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1673 (have_regset_tdb): New variable.
1674 (s390_native_supply): Support register invalidation.
1675 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1676 (check_regset): Treat ENODATA as "regset exists".
1677 (s390_linux_fetch_inferior_registers): Add TDB.
1678 (s390_read_description): Check for TDB existence and select
1679 appropriate tdesc.
1680 * gdbserver/Makefile.in (clean): Add removal of new makefile
1681 targets.
1682 (s390-te-linux64.c): New makefile target.
1683 (s390x-te-linux64.c): Likewise.
1684 * gdbserver/configure.srv (srv_regobj): Append new objects
1685 s390-te-linux64.o and s390x-te-linux64.o.
1686 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1687 s390x-te-linux64.xml, and s390-tdb.xml.
1688 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1689 declaration.
1690 (tdesc_s390_te_linux64): Likewise.
1691 (init_registers_s390x_te_linux64): Likewise.
1692 (tdesc_s390x_te_linux64): Likewise.
1693 (s390_check_regset): Treat ENODATA as "regset exists".
1694 (s390_arch_setup): Add TDB regset support.
1695 (initialize_low_arch): Initialize registers for new tdescs.
1696
1697 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1698
1699 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1700 (S390_IS_FPREGSET_REGNUM): New macro.
1701 * s390-tdep.c (s390_dwarf_regmap): Make const.
1702 (regnum_is_gpr_full): New function for replacing repeated code.
1703 (s390_pseudo_register_name): Use it.
1704 (s390_pseudo_register_type): Likewise.
1705 (s390_pseudo_register_read): Likewise.
1706 (s390_pseudo_register_write): Likewise.
1707 (s390_unwind_pseudo_register): Likewise.
1708 (s390_regmap_gregset): New format for regmap.
1709 (s390x_regmap_gregset): Likewise.
1710 (s390_regmap_fpregset): Likewise.
1711 (s390_regmap_upper): Likewise.
1712 (s390_regmap_last_break): Likewise.
1713 (s390_regmap_system_call): Likewise.
1714 (s390_supply_regset): Adjust to new regmap format.
1715 (s390_collect_regset): Likewise.
1716 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1717 (s390_native_collect): Likewise.
1718 (supply_gregset): Likewise.
1719 (fill_gregset): Likewise.
1720 (supply_fpregset): Likewise.
1721 (fill_fpregset): Likewise.
1722 (fetch_regset): Likewise.
1723 (store_regset): Likewise.
1724 (s390_linux_fetch_inferior_registers): Likewise.
1725 (s390_linux_fetch_inferior_registers): Likewise.
1726
1727 2013-09-12 Andrew Pinski <apinski@cavium.com>
1728
1729 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1730
1731 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1732
1733 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1734
1735 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
1736
1737 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1738
1739 2013-09-06 Pedro Alves <palves@redhat.com>
1740
1741 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1742 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1743 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1744 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1745 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1746 gdb_stdlog.
1747
1748 2013-09-06 Pedro Alves <palves@redhat.com>
1749
1750 * remote-sim.c (dump_mem): Constify buf parameter.
1751 gdbsim_xfer_inferior_memory): Rename to ...
1752 (gdbsim_xfer_memory): ... this. Adjust interface as
1753 target_xfer_partial helper.
1754 (gdbsim_xfer_partial): New function.
1755 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1756 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1757
1758 2013-09-06 Pedro Alves <palves@redhat.com>
1759
1760 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1761 host_address_to_string, and send debug output to gdb_stdlog.
1762
1763 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1764
1765 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1766 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1767 gdb_target_obs for cris target.
1768 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1769 (cris_gdbarch_init): Move calls to
1770 set_gdbarch_fetch_tls_load_module_address and
1771 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1772 Add call to gdbarch_init_osabi.
1773 * cris-linux-tdep.c: New file.
1774 * cris-tdep.h: New file.
1775
1776 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1777
1778 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1779 to deprecated_init_ui_hook.
1780
1781 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1782
1783 * cli/cli-interp.c (_initialize_cli_interp): Add a
1784 command_loop_proc to interp_procs.
1785 * event-top.c (cli_command_loop): Change signature to match
1786 interp_command_loop_ftype.
1787 * event-top.h (cli_command_loop): Same.
1788 * interps.c (interp_new): Require every interpreter to have a
1789 command_loop_proc.
1790 (current_interp_command_loop): Just call the command_loop_proc on
1791 the current interpreter.
1792 * tui/tui-interp.c (_initialize_tui_interp): Add a
1793 command_loop_proc to interp_procs.
1794
1795 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1796
1797 * cris-tdep.c (cris_gdbarch_init): Add call to
1798 get_gdbarch_fetch_tls_load_module_address.
1799
1800 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1801
1802 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1803 (cris_elf_gregset_t): Rename from elf_gregset_t.
1804 (crisv32_elf_gregset_t): Adjust.
1805 (cris_supply_gregset, fetch_core_registers): Adjust.
1806
1807 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1808
1809 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1810
1811 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
1812
1813 * defs.h (deprecated_command_loop_hook): Remove, including
1814 references in comments.
1815 * interps.c (current_interp_command_loop): No longer use
1816 deprecated_command_loop_hook.
1817 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1818 setup.
1819 * top.c (deprecated_command_loop_hook): Remove.
1820
1821 2013-09-05 Pedro Alves <palves@redhat.com>
1822
1823 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1824 local is now int instead of ULONGEST. Print it with %d
1825 instead of paddress.
1826
1827 2013-09-05 Tristan Gingold <gingold@adacore.com>
1828
1829 * MAINTAINERS: Remove avr maintainership.
1830
1831 2013-09-05 Pedro Alves <palves@redhat.com>
1832
1833 * findvar.c (value_of_register): Rework in terms of
1834 value_of_register_lazy.
1835
1836 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1837
1838 * symfile.c (add_symbol_file_command): Remove trailing
1839 whitespaces and blank line after comment.
1840
1841 2013-09-05 Pedro Alves <palves@redhat.com>
1842
1843 * tui/tui-regs.c (tui_register_format): Don't look at the
1844 register's name here. Return string representing register
1845 value instead of storing it in the data element.
1846 (tui_get_register): Compare register string representations
1847 instead of register value states and contents.
1848
1849 2013-09-05 Pedro Alves <palves@redhat.com>
1850
1851 PR tui/15933
1852 * tui/tui-regs.c (tui_show_registers): Show registers of the
1853 selected frame, not the current frame.
1854
1855 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
1856
1857 * MAINTAINERS (Write After Approval): Add myself to the list.
1858
1859 2013-09-04 Doug Evans <dje@google.com>
1860
1861 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1862 (queue_and_load_dwo_tu): New function.
1863 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1864 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1865 Make dependent_cu optional.
1866 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1867 and an older .gdb_index is in use, queue and load all its TUs too.
1868
1869 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1870
1871 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1872 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1873 variable search_flags.
1874 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1875 (OPF_RETURN_REALPATH): ... here.
1876 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1877 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1878 call. Twice.
1879 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1880 openp call.
1881 * solib.c (solib_find): Likewise. Four times.
1882 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1883 in the function comment and for the realpath_fptr variable.
1884 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1885 (find_and_open_source): Likewise. Twice.
1886 * symfile.c (symfile_bfd_open): Likewise, also twice.
1887
1888 2013-09-04 Doug Evans <dje@google.com>
1889
1890 * progspace.c (save_current_space_and_thread): Remove unnecessary
1891 call to save_current_inferior.
1892
1893 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
1894
1895 * sh64-tdep.c (sh64_do_register): Return after printing message
1896 about unavailable register contents.
1897
1898 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1899 Pedro Alves <palves@redhat.com>
1900
1901 * symfile.c (add_symbol_file_command): Error out on unknown
1902 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1903 options and collapse into single conditional branch.
1904
1905 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
1906
1907 * inf-child.c (inf_child_follow_fork): New parameter
1908 detach_fork.
1909 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1910 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1911 * inferior.h (detach_fork): Remove.
1912 * infrun.c (detach_fork): Adjust comment and make it
1913 static.
1914 (follow_fork): Pass detach_fork parameter to
1915 target_follow_fork.
1916 * linux-nat.c (linux_child_follow_fork): New parameter
1917 detach_fork.
1918 * target.c (target_follow_fork): New parameter detach_fork.
1919 Pass detach_fork as parameter and print its value.
1920 * target.h (struct target_ops) <to_follow_fork>: New int
1921 parameter.
1922 (target_follow_fork): New parameter detach_fork.
1923
1924 2013-09-03 Joel Brobecker <brobecker@adacore.com>
1925
1926 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1927 Replace sec->bfd by sec->the_bfd_section->owner.
1928
1929 2013-09-03 Yao Qi <yao@codesourcery.com>
1930
1931 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1932 from linux_has_shared_address_space.
1933 (linux_has_shared_address_space): Call linux_is_uclinux.
1934 * linux-tdep.h (linux_is_uclinux): Declare.
1935 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1936 linux_is_uclinux.
1937
1938 2013-09-03 Yao Qi <yao@codesourcery.com>
1939
1940 * config/djgpp/fnchange.lst: Remove entry of
1941 i386-interix-nat.c and i386-interix-tdep.c.
1942 * configure.ac: Remove '*-*-interix*'.
1943 * configure: Re-generated.
1944 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1945 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1946 obsolete comments.
1947 * osabi.c (gdb_osabi_names): Remove "Interix".
1948
1949 2013-09-03 Yao Qi <yao@codesourcery.com>
1950
1951 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1952
1953 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1954
1955 * record.h (record_print_flag) <record_print_src_line,
1956 record_print_insn_range>: Rename into ...
1957 (record_print_flag) <record_print_src_line,
1958 record_print_insn_range>: ... this. Update all users.
1959
1960 2013-09-02 Pierre Muller <muller@sourceware.org>
1961
1962 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1963 error code.
1964
1965 2013-09-02 Pierre Muller <muller@sourceware.org>
1966
1967 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1968 by use of plongest function.
1969
1970 2013-09-02 Tristan Gingold <gingold@adacore.com>
1971
1972 * NEWS: Add entry mentioning support for native Windows x64
1973 SEH data.
1974
1975 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1976 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1977 (struct amd64_windows_frame_cache): New struct.
1978 (amd64_windows_w2gdb_regnum): New global.
1979 (pc_in_range, amd64_windows_frame_decode_epilogue)
1980 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1981 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1982 (amd64_windows_frame_this_id): New functions.
1983 (amd64_windows_frame_unwind): New static global.
1984 (amd64_windows_skip_prologue): New function.
1985 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1986 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1987 with amd64_windows_skip_prologue.
1988
1989 2013-08-30 Joel Brobecker <brobecker@adacore.com>
1990
1991 GDB 7.6.1 released.
1992
1993 2013-08-30 Pedro Alves <palves@redhat.com>
1994
1995 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1996 SRC_AND_LOC.
1997
1998 2013-08-30 Pedro Alves <palves@redhat.com>
1999
2000 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2001 warning text.
2002
2003 2013-08-30 Pedro Alves <palves@redhat.com>
2004
2005 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2006 Adjust arguments to print_stack_frame.
2007
2008 2013-08-30 Pedro Alves <palves@redhat.com>
2009
2010 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2011
2012 2013-08-30 Pedro Alves <palves@redhat.com>
2013
2014 * frame.h (show_and_print_stack_frame): Delete declaration.
2015
2016 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2017
2018 PR python/15461
2019
2020 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2021 (archpy_name): Check for valid architecture.
2022 (archpy_disassemble): Ditto.
2023
2024 2013-08-29 Joel Brobecker <brobecker@adacore.com>
2025
2026 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2027 instead of "long long" in call to ptrace64.
2028
2029 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
2030
2031 * mi/mi-interp.c (mi_command_loop): Change signature to match
2032 interp_command_loop_ftype.
2033 (mi1_command_loop): Remove.
2034 (mi2_command_loop): Remove.
2035 (mi3_command_loop): Remove.
2036 (mi_interpreter_resume): Remove setting of
2037 deprecated_command_loop_hook.
2038 (_initialize_mi_interp): Set mi_command_loop as the command loop
2039 callback.
2040
2041 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2042
2043 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2044 value_type.
2045
2046 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2047
2048 * value.c (allocate_value_contents): Make static.
2049 * value.h (allocate_value_contents): Remove prototype.
2050
2051 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2052
2053 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2054 of assembling value via allocate_value_lazy and attribute setter.
2055 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2056 assembling value via allocate_value_lazy and attribute setter.
2057 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2058 assembling value via allocate_value_lazy and attribute setter.
2059
2060 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2061
2062 * value.c (value_from_contents_and_address): Replace allocate_value and
2063 memcpy with value_from_contents.
2064
2065 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2066
2067 * python/py-framefilter.c (py_print_frame): Remove usage of
2068 PyString_AsString. Use python_string_to_host_string instead.
2069 Refactor function to work with a string as a new allocation
2070 instead of a pointer.
2071 (py_print_frame): Ditto.
2072 * python/lib/gdb/frames.py (return_list): Cain iterators together
2073 instead of adding them as a list.
2074 (_sort_list): Call return_list, and remove duplicate code.
2075 (execute_frame_filters): Convert iterator to a list with list().
2076 * python/lib/gdb/command/frame_filters.py
2077 (SetFrameFilterPriority._set_filter_priority): Convert priority
2078 attribute to an integer.
2079 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2080 wrapper function __next__.
2081 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2082 define as "str".
2083
2084 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2085
2086 PR python/15752
2087 * python/py-framefilter.c (apply_frame_filter): Check
2088 gdb_python_initialized. Exit if the Python frame-filter code
2089 cannot be initialized.
2090
2091 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2092
2093 PR cli/15842
2094 * top.c (print_gdb_version): Remove erroneous newline after help
2095 text.
2096
2097 2013-08-29 Yao Qi <yao@codesourcery.com>
2098
2099 * varobj.c (install_dynamic_child): Remove trailing space.
2100 Add one blank line after variable declaration.
2101
2102 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2103
2104 PR gdb/15415
2105 * corefile.c (get_exec_file): Use exec_filename.
2106 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2107 * exec.c (exec_close): Free EXEC_FILENAME.
2108 (exec_file_attach): New variable canonical_pathname. Use
2109 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2110 EXEC_FILENAME.
2111 * exec.h (exec_filename): New.
2112 * inferior.c (print_inferior, inferior_command): Use
2113 PSPACE_EXEC_FILENAME.
2114 * mi/mi-main.c (print_one_inferior): Likewise.
2115 * progspace.c (clone_program_space, print_program_space): Likewise.
2116 * progspace.h (struct program_space): New field pspace_exec_filename.
2117 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2118 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2119
2120 2013-08-28 Will Newton <will.newton@linaro.org>
2121
2122 * common/linux-ptrace.c: Include stdint.h unconditionally.
2123
2124 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2125
2126 Code cleanup.
2127 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2128
2129 2013-08-28 Yao Qi <yao@codesourcery.com>
2130 Pedro Alves <palves@redhat.com>
2131
2132 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2133 instead of stdio_fileopen.
2134 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2135 .Call stderr_fileopen instead of stdio_fileopen.
2136 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2137 [__MINGW32__] (stderr_file_fputs): New function.
2138 (stderr_fileopen): New function.
2139 * ui-file.h (stderr_fileopen): Declare.
2140
2141 2013-08-27 Doug Evans <dje@google.com>
2142
2143 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2144 (struct dwarf2_per_cu_data): Ditto.
2145 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2146 (process_imported_unit_die): Ditto.
2147 (follow_die_sig_1): Simplify assert.
2148
2149 2013-08-27 Pedro Alves <palves@redhat.com>
2150
2151 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2152 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2153 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2154 windows_xfer_memory directly.
2155 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2156
2157 2013-08-27 Pedro Alves <palves@redhat.com>
2158
2159 * darwin-nat.c (darwin_xfer_memory): Delete.
2160 (_initialize_darwin_inferior): Don't install a
2161 deprecated_xfer_memory method.
2162
2163 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2164 Yao Qi <yao@codesourcery.com>
2165
2166 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2167 (parse_no_frames_option): Remove.
2168 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2169 (mi_cmd_stack_list_args): Adjust.
2170 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2171 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2172 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2173 Caller update.
2174 (list_args_or_locals): New parameter 'skip_unavailable'.
2175 Handle it.
2176 * valprint.c (scalar_type_p): Rename to ...
2177 (val_print_scalar_type_p): ... this. Make extern.
2178 (val_print, value_check_printable): Adjust.
2179 * valprint.h (val_print_scalar_type_p): Declare.
2180 * value.c (value_entirely_unavailable): New function.
2181 * value.h (value_entirely_unavailable): Declare.
2182
2183 * NEWS: Mention the new option "--skip-unavailable" to MI
2184 commands '-stack-list-locals', '-stack-list-arguments' and
2185 '-stack-list-variables'.
2186
2187 2013-08-27 Yao Qi <yao@codesourcery.com>
2188
2189 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2190 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2191 options.
2192 * mi/mi-getopt.c (mi_getopt): Remove.
2193 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2194 'error_on_unknown'.
2195 (mi_getopt): Call mi_getopt_1.
2196 (mi_getopt_silent): New.
2197 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2198
2199 2013-08-26 Doug Evans <dje@google.com>
2200
2201 PR symtab/15885
2202 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2203 .gdb_index is in use.
2204 * symfile.c (reread_symbols): Reset objfile->sf.
2205
2206 * NEWS: Document "mt print objfiles" now takes optional regexp.
2207 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2208 regexp of objfiles to print.
2209 (_initialize_symmisc): Update doc string for "mt print objfiles".
2210
2211 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2212 missing debug info checks.
2213
2214 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2215 Ulrich Weigand <uweigand@de.ibm.com>
2216
2217 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2218 line tables generated by XLC compiled binaries.
2219
2220 2013-08-23 Doug Evans <dje@google.com>
2221
2222 * symmisc.c (dump_symtab): Delete prototype.
2223 (dump_msymbols, dump_objfile): Ditto.
2224 (maintenance_info_symtabs): Mark as dont_repeat.
2225 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2226
2227 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2228 debugging printf to better location.
2229
2230 2013-08-23 Pedro Alves <palves@redhat.com>
2231
2232 * target.c (target_read_live_memory): Change type of 'ret' local
2233 to LONGEST.
2234
2235 2013-08-23 Pedro Alves <palves@redhat.com>
2236
2237 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2238 (remote_read_bytes): Change return type to LONGEST, and adjust to
2239 return a target_xfer_error on error.
2240 (remote_xfer_memory): Delete.
2241 (remote_flash_write): Change type of 'ret' local to LONGEST.
2242 (remote_xfer_partial, remote_xfer_partial): Adjust.
2243 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2244
2245 2013-08-23 Pierre Muller <muller@sourceware.org>
2246
2247 ARI fix: Push # directives to start of line.
2248 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2249
2250 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2251
2252 PR gdb/15501
2253 * breakpoint.c (enable_command, disable_command): Iterate over
2254 all specified breakpoint locations.
2255
2256 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2257
2258 * common/linux-ptrace.c (linux_fork_to_function): Push #
2259 directives to the start of the line.
2260 (linux_check_ptrace_features): Fix warning message to use
2261 the "_" markup.
2262
2263 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2264
2265 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2266 nat/linux-waitpid.h.
2267 (linux-waitpid.o): New object file rule.
2268 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2269 (current_ptrace_options): Moved from linux-nat.c.
2270 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2271 parameters.
2272 (linux_fork_to_function): New function.
2273 (linux_grandchild_function): Likewise.
2274 (linux_child_function): Likewise.
2275 (linux_check_ptrace_features): New function, heavily
2276 based on linux-nat.c:linux_test_for_tracefork.
2277 (linux_enable_event_reporting): New function.
2278 (ptrace_supports_feature): Likewise.
2279 (linux_supports_tracefork): Likewise.
2280 (linux_supports_traceclone): Likewise.
2281 (linux_supports_tracevforkdone): Likewise.
2282 (linux_supports_tracesysgood): Likewise.
2283 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2284 gdbserver/linux-low.c.
2285 (linux_enable_event_reporting): New declaration.
2286 (linux_supports_tracefork): Likewise.
2287 (linux_supports_traceclone): Likewise.
2288 (linux_supports_tracevforkdone): Likewise.
2289 (linux_supports_tracesysgood): Likewise.
2290 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2291 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2292 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2293 * config/arm/linux.mh (NATDEPFILES): Likewise.
2294 * config/i386/linux.mh (NATDEPFILES): Likewise.
2295 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2296 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2297 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2298 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2299 * config/mips/linux.mh (NATDEPFILES): Likewise.
2300 * config/pa/linux.mh (NATDEPFILES): Likewise..
2301 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2302 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2303 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2304 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2305 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2306 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2307 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2308 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2309 ptrace's 4th argument's types.
2310 Check the type of PTRACE_TYPE_ARG4.
2311 * configure: Regenerate.
2312 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2313 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2314 (linux_supports_tracefork_flag): Remove.
2315 (linux_supports_tracesysgood_flag): Likewise.
2316 (linux_supports_tracevforkdone_flag): Likewise.
2317 (current_ptrace_options): Moved to
2318 common/linux-ptrace.c.
2319 (linux_tracefork_child): Remove.
2320 (my_waitpid): Remove.
2321 (linux_test_for_tracefork): Renamed to
2322 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2323 (linux_test_for_tracesysgood): Remove.
2324 (linux_supports_tracesysgood): Remove.
2325 (linux_supports_tracefork): Remove.
2326 (linux_supports_tracevforkdone): Remove.
2327 (linux_enable_tracesysgood): Remove.
2328 (linux_enable_event_reporting): Remove.
2329 (linux_init_ptrace): New function.
2330 (linux_child_post_attach): Call linux_init_ptrace.
2331 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2332 (linux_child_follow_fork): Call linux_supports_tracefork
2333 and linux_supports_tracevforkdone.
2334 (linux_child_insert_fork_catchpoint): Call
2335 linux_supports_tracefork.
2336 (linux_child_insert_vfork_catchpoint): Likewise.
2337 (linux_child_set_syscall_catchpoint): Call
2338 linux_supports_tracesysgood.
2339 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2340 * nat/linux-nat.h: New file.
2341 * nat/linux-waitpid.c: New file.
2342 * nat/linux-waitpid.h: New file.
2343
2344 2013-08-22 Samuel Bronson <naesten@gmail.com>
2345
2346 ARM Linux support for `catch syscall'.
2347 * syscalls/arm-linux.py: New file.
2348 * syscalls/arm-linux.xml: Likewise.
2349 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2350 (arm_linux_init_abi): Register the new function and syscall xml file.
2351 * data-directory/Makefile.in: Install the new syscall xml file.
2352 * NEWS: Brag about this.
2353
2354 2013-08-22 Pedro Alves <palves@redhat.com>
2355
2356 PR gdb/15871
2357 * corefile.c (target_xfer_memory_error): New function.
2358 (memory_error): Defer EIO to target_memory_error.
2359 (read_memory): Use target_xfer_partial, and handle finer-grained
2360 target xfer errors.
2361 * target.c (target_xfer_error_to_string): New function.
2362 (memory_xfer_partial_1): If memory is known to be
2363 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2364 (target_xfer_partial): Make extern.
2365 * target.h (enum target_xfer_error): New enum.
2366 (target_xfer_error_to_string): Declare function.
2367 (target_xfer_partial): Declare function.
2368 (struct target_ops) <xfer_partial>: Adjust describing comment.
2369
2370 2013-08-22 Alan Modra <amodra@gmail.com>
2371
2372 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2373 * configure.tgt: Likewise as targets.
2374
2375 2013-08-20 Doug Evans <dje@google.com>
2376
2377 * buildsym.c (subfile_stack): Move here from buildsym.h.
2378 (pending_macros): Ditto.
2379 (get_macro_table): New function.
2380 (buildsym_init): Initialize subfile_stack.
2381 * coffread.c (type_vector,type_vector_length): Moved here from
2382 buildsym.h.
2383 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2384 (coff_symtab_read): Use it.
2385 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2386 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2387 with call to get_macro_table.
2388 * stabsread.c (type_vector,type_vector_length): Moved here from
2389 buildsym.h.
2390 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2391 * buildsym.h (get_macro_table): Declare.
2392
2393 2013-08-20 Tom Tromey <tromey@redhat.com>
2394
2395 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2396 Update.
2397 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2398
2399 2013-08-20 Doug Evans <dje@google.com>
2400
2401 * blockframe.c: Remove #include "psymtab.h".
2402 * cp-support.c: Ditto.
2403 * source.c: Ditto.
2404 * stack.c: Ditto.
2405
2406 2013-08-20 Tom Tromey <tromey@redhat.com>
2407
2408 PR python/15816:
2409 * exceptions.h (return_mask): Now an enum.
2410 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2411 enum constants.
2412
2413 2013-08-20 Tom Tromey <tromey@redhat.com>
2414
2415 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2416 get_objfile_arch.
2417 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2418 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2419 * jit.c (jit_object_close_impl): Update.
2420 * jv-lang.c (get_dynamics_objfile): Update.
2421 * linespec.c (add_minsym): Use get_dynamics_objfile.
2422 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2423 (allocate_objfile): Don't initialize 'gdbarch' field.
2424 (get_objfile_arch): Update.
2425 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2426 moved from...
2427 (struct objfile) <gdbarch>: ... here. Remove.
2428 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2429 get_objfile_arch.
2430 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2431
2432 2013-08-20 Alan Modra <amodra@gmail.com>
2433
2434 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2435 for IBM long double nan and inf.
2436 (floatformat_is_negative, floatformat_classify,
2437 floatformat_mantissa): Similarly.
2438 (floatformat_ieee_single, floatformat_ieee_double,
2439 floatformat_ieee_quad, floatformat_arm_ext,
2440 floatformat_ia64_spill): Delete unused vars.
2441 (_initialize_doublest): Delete unused function.
2442 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2443 little-endian variants of floatformat_ibm_long_double.
2444
2445 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2446
2447 * Makefile.in (SFILES): Remove common/target-common.c and
2448 add target/waitstatus.c.
2449 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2450 target/resume.h, target/wait.h and target/waitstatus.h.
2451 (COMMON_OBS): Remove target-common.o and add
2452 waitstatus.o.
2453 (target-common.o): Remove.
2454 (waitstatus.o): New target object file.
2455 * common/target-common.c: Move contents to
2456 target/waitstatus.c and remove.
2457 * common/target-common.h: Move contents to other files and
2458 remove.
2459 (enum resume_kind: Move to target/resume.h.
2460 (TARGET_WNOHANG): Move to target/wait.h.
2461 (enum target_waitkind): Move to target/waitstatus.h.
2462 (struct target_waitstatus): Likewise.
2463 * target.h: Do not include target-common.h and
2464 include target/resume.h, target/wait.h and
2465 target/waitstatus.h.
2466 * target/resume.h: New file.
2467 * target/wait.h: New file.
2468 * target/waitstatus.h: New file.
2469 * target/waitstatus.c: New file.
2470
2471 2013-08-19 Pedro Alves <palves@redhat.com>
2472
2473 * linux-nat.c (linux_test_for_tracefork)
2474 (linux_test_for_tracesysgood, linux_child_follow_fork)
2475 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2476 (linux_nat_wait_1): Extend comment.
2477 (linux_async_pipe): Add comment.
2478
2479 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2480
2481 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2482 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2483 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2484 Update to account for fact that PC is now a pseudo-register.
2485 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2486 cases for RL78_PC_REGNUM.
2487
2488 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2489
2490 PR cli/15841
2491 * top.c (quit_force): Skip writing history file
2492 if input is not from terminal.
2493
2494 2013-08-14 Tom Tromey <tromey@redhat.com>
2495
2496 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2497 resultthreadlist>: New fields.
2498 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2499 (remote_get_threadlist, remote_threadlist_iterator): Use
2500 new fields. Remove static variables.
2501
2502 2013-08-14 Tom Tromey <tromey@redhat.com>
2503
2504 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2505 remote_watch_data_address>: New fields.
2506 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2507 (process_stop_reply, remote_wait_as)
2508 (remote_check_watch_resources, remote_stopped_data_address): Update.
2509
2510 2013-08-14 Tom Tromey <tromey@redhat.com>
2511
2512 * remote.c (struct remote_state) <async_client_callback,
2513 async_client_context>: New fields.
2514 (async_client_callback, async_client_context): Remove.
2515 (remote_async_serial_handler, remote_async): Update.
2516
2517 2013-08-14 Tom Tromey <tromey@redhat.com>
2518
2519 * remote.c (sizeof_pkt): Remove.
2520 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2521
2522 2013-08-14 Tom Tromey <tromey@redhat.com>
2523
2524 * remote.c (struct remote_state) <use_threadinfo_query,
2525 use_threadextra_query>: New fields.
2526 (remote_threads_info, remote_threads_extra_info)
2527 (remote_open_1): Update.
2528
2529 2013-08-14 Tom Tromey <tromey@redhat.com>
2530
2531 * remote.c (struct remote_state) <finished_object,
2532 finished_annex, finished_offset>: New fields.
2533 (remote_read_qxfer): Use remote_state fields; remove static
2534 variables.
2535
2536 2013-08-14 Tom Tromey <tromey@redhat.com>
2537
2538 * remote.c (struct remote_state) <last_sent_step>:
2539 New field.
2540 (last_sent_step): Remove.
2541 (remote_resume, remote_wait_as): Update.
2542
2543 2013-08-14 Tom Tromey <tromey@redhat.com>
2544
2545 * remote.c (struct remote_state) <last_sent_signal>:
2546 New field.
2547 (last_sent_signal): Remove.
2548 (new_remote_state, remote_resume, remote_wait_as): Update.
2549
2550 2013-08-14 Tom Tromey <tromey@redhat.com>
2551
2552 * remote.c (struct remote_state) <last_program_signals_packet>:
2553 New field.
2554 (last_program_signals_packet): Remove.
2555 (remote_program_signals, remote_open_1): Update.
2556
2557 2013-08-14 Tom Tromey <tromey@redhat.com>
2558
2559 * remote.c (struct remote_state) <last_pass_packet>:
2560 New field.
2561 (last_pass_packet): Remove.
2562 (remote_pass_signals, remote_open_1): Update.
2563
2564 2013-08-14 Tom Tromey <tromey@redhat.com>
2565
2566 * remote.c (struct remote_state) <remote_traceframe_number>:
2567 New field.
2568 (remote_traceframe_number): Remove.
2569 (new_remote_state, remote_open_1, set_remote_traceframe)
2570 (remote_trace_find): Update.
2571
2572 2013-08-14 Tom Tromey <tromey@redhat.com>
2573
2574 * remote.c (struct remote_state) <general_thread, continue_thread>:
2575 New fields.
2576 (general_thread, continue_thread): Remove.
2577 (record_currthread, set_thread, set_general_process)
2578 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2579 (extended_remote_mourn_1): Update.
2580
2581 2013-08-14 Tom Tromey <tromey@redhat.com>
2582
2583 * remote.c (struct remote_state) <remote_desc>: New field.
2584 (remote_desc): Remove.
2585 (remote_threads_info, remote_threads_extra_info, remote_close)
2586 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2587 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2588 (remote_hostio_send_command, remote_file_put, remote_file_get)
2589 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2590 (remote_async, remote_new_objfile, set_range_stepping): Update.
2591
2592 2013-08-14 Tom Tromey <tromey@redhat.com>
2593
2594 * remote.c (remote_state): Now a pointer.
2595 (get_remote_state_raw): Update.
2596 (new_remote_state): New function.
2597 (_initialize_remote): Use new_remote_state.
2598
2599 2013-08-14 Tom Tromey <tromey@redhat.com>
2600
2601 * remote.c (remote_protocol_features): Now const.
2602
2603 2013-08-14 Tom Tromey <tromey@redhat.com>
2604
2605 * remote.c (crc32_table, crc32): Remove.
2606 (remote_verify_memory): Use xcrc32.
2607
2608 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2609
2610 * value.h (create_internalvar_type_lazy): Adjust prototype
2611 declaration.
2612
2613 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
2614
2615 * common/format.c (parse_format_string): Don't allow '#' flag for
2616 pointer arguments in format string.
2617
2618 2013-08-13 Pierre Muller <muller@sourceware.org>
2619
2620 * utils.c (init_page_info): Only call tgetnum function
2621 if rl_get_screen_size did not return useful values.
2622
2623 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2624
2625 PR breakpoints/15117
2626 * linespec.c (linespec_parse_basic): Check for convenience
2627 variable or history value while parsing.
2628
2629 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2630
2631 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2632 AVR.
2633 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2634 different signals between the generic Linux kernel implementation
2635 and AVR's.
2636 (avr_linux_gdb_signal_from_target): Delete.
2637 (avr_linux_gdb_signal_to_target): Delete.
2638 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2639
2640 2013-08-09 Doug Evans <dje@google.com>
2641
2642 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2643 entries.
2644
2645 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2646
2647 * linux-tdep.c: Define enum with generic signal numbers.
2648 (linux_gdb_signal_from_target): New function.
2649 (linux_gdb_signal_to_target): Likewise.
2650 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2651 methods to the functions above.
2652 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2653 (linux_gdb_signal_to_target): Likewise.
2654 * alpha-linux-tdep.c: Define new enum with signals different
2655 from generic Linux kernel.
2656 (alpha_linux_gdb_signal_from_target): New function.
2657 (alpha_linux_gdb_signal_to_target): Likewise.
2658 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2659 with the functions mentioned above.
2660 * avr-tdep.c: Define enum with differences between Linux kernel
2661 and AVR signals.
2662 (avr_linux_gdb_signal_from_target): New function.
2663 (avr_linux_gdb_signal_to_target): Likewise.
2664 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2665 the functions mentioned above.
2666 * sparc-linux-tdep.c: Define enum with differences between SPARC
2667 and generic Linux kernel signal numbers.
2668 (sparc32_linux_gdb_signal_from_target): New function.
2669 (sparc32_linux_gdb_signal_to_target): Likewise.
2670 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2671 to the functions defined above.
2672 * xtensa-linux-tdep.c: Define enum with differences between
2673 Xtensa and Linux kernel generic signals.
2674 (xtensa_linux_gdb_signal_from_target): New function.
2675 (xtensa_linux_gdb_signal_to_target): Likewise.
2676 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2677 to the functions defined above.
2678 * mips-linux-tdep.c: Define enum with differences between
2679 signals in MIPS and Linux kernel generic ones.
2680 (mips_gdb_signal_to_target): New function.
2681 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2682 only different signals from the Linux kernel generic.
2683 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2684 the functions defined above.
2685 * mips-linux-tdep.h (enum mips_signals): Remove.
2686
2687 2013-08-09 Pedro Alves <palves@redhat.com>
2688
2689 * avr-tdep.c (XMALLOC): Delete macro.
2690 * cli/cli-dump.c (XMALLOC): Delete macro.
2691
2692 2013-08-09 Pedro Alves <palves@redhat.com>
2693
2694 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2695 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2696 (fopen_with_cleanup, add_dump_command): Make static.
2697 * cli/cli-dump.h: Delete file.
2698 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2699 cli/cli-dump.h.
2700
2701 2013-08-09 Pedro Alves <palves@redhat.com>
2702
2703 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2704 error message.
2705
2706 2013-08-09 Pedro Alves <palves@redhat.com>
2707
2708 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2709 error message.
2710
2711 2013-08-09 Pedro Alves <palves@redhat.com>
2712
2713 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2714 (gcore_command): Use tilde_expand here, and when showing the
2715 filename to the user, show the expanded version.
2716
2717 2013-08-09 Yao Qi <yao@codesourcery.com>
2718
2719 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2720 'entryval' is set.
2721
2722 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2723
2724 * gcore.c (create_gcore_bfd): Use tilde_expand.
2725
2726 2013-08-08 Yao Qi <yao@codesourcery.com>
2727
2728 * frame.h (read_frame_local): Declare.
2729 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2730 read_frame_local.
2731 * stack.c (read_frame_local): New.
2732
2733 2013-08-08 Yao Qi <yao@codesourcery.com>
2734
2735 * mi/mi-cmd-stack.c: Update comments to function
2736 list_args_or_locals.
2737
2738 2013-08-07 Tom Tromey <tromey@redhat.com>
2739
2740 PR symtab/15028:
2741 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2742 (process_psymtab_comp_unit_reader): Use it.
2743 (process_psymtab_comp_unit): Update. Add "pretend_language"
2744 argument.
2745 (dwarf2_build_psymtabs_hard): Update.
2746 (scan_partial_symbols): Pass CU's language to
2747 process_psymtab_comp_unit.
2748
2749 2013-08-07 Tom Tromey <tromey@redhat.com>
2750
2751 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2752 (dwarf2_gdb_index_functions): Update.
2753 * psymtab.c (find_symbol_file_from_partial): Remove.
2754 (psym_functions): Update.
2755 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2756 Remove.
2757
2758 2013-08-07 Tom Tromey <tromey@redhat.com>
2759
2760 * symfile.c (set_initial_language): Look up "main" symbol
2761 and use its language.
2762 * symtab.c (find_main_filename): Remove.
2763 * symtab.h (find_main_filename): Remove.
2764
2765 2013-08-07 Tom Tromey <tromey@redhat.com>
2766
2767 * dwarf2read.c (recursively_compute_inclusions): Add
2768 "immediate_parent" argument. Set symtab's "user" field
2769 if not set.
2770 (compute_symtab_includes): Update.
2771
2772 2013-08-07 Tom Tromey <tromey@redhat.com>
2773
2774 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2775 when adding label symbols.
2776
2777 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2778 Ulrich Weigand <uweigand@de.ibm.com>
2779
2780 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2781 * configure.host (powerpc64-*-aix*): Likewise.
2782
2783 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2784 Ulrich Weigand <uweigand@de.ibm.com>
2785
2786 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2787 is defined.
2788 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2789 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2790 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2791 * configure.ac: Check for ptrace64.
2792 * configure, config.in: Regenerate.
2793
2794 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2795 Ulrich Weigand <uweigand@de.ibm.com>
2796
2797 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2798 Call ptrace64 instead of ptrace if defined.
2799 Add macro addr_ptr to take care of ptrace address argument.
2800 (pdc_read_regs): Likewise.
2801 (pdc_write_regs): Likewise.
2802 (aix_thread_resume): Likewise.
2803 (fetch_regs_kernel_thread): Likewise.
2804 (store_regs_kernel_thread): Likewise.
2805
2806 2013-08-07 Anton Blanchard <anton@samba.org>
2807
2808 * MAINTAINERS: Add myself to Write After Approval.
2809
2810 2013-08-05 Tom Tromey <tromey@redhat.com>
2811
2812 * aix-thread.c (_initialize_aix_thread): Use
2813 complete_target_initialization.
2814 * bsd-uthread.c (_initialize_bsd_uthread): Use
2815 complete_target_initialization.
2816 * dec-thread.c (_initialize_dec_thread): Use
2817 complete_target_initialization.
2818 * ravenscar-thread.c (_initialize_ravenscar): Use
2819 complete_target_initialization.
2820 * sol-thread.c (_initialize_sol_thread): Use
2821 complete_target_initialization.
2822 * spu-multiarch.c (_initialize_spu_multiarch): Use
2823 complete_target_initialization.
2824
2825 2013-08-05 Tom Tromey <tromey@redhat.com>
2826
2827 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2828 * ada-lang.c (ada_lookup_simple_minsym): Return
2829 bound_minimal_symbol.
2830 * ada-lang.h (ada_lookup_simple_minsym): Update.
2831 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2832 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2833 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2834 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2835 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2836 * minsyms.c (msymbol_objfile): Remove.
2837 (lookup_minimal_symbol_internal): New function, from
2838 lookup_minimal_symbol.
2839 (lookup_minimal_symbol): Rewrite using
2840 lookup_minimal_symbol_internal.
2841 (lookup_bound_minimal_symbol): New function.
2842 * minsyms.h (msymbol_objfile): Remove.
2843 (lookup_bound_minimal_symbol): Declare.
2844 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2845 * parse.c (write_exp_msymbol): Change parameter to a
2846 bound_minimal_symbol.
2847 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2848 * parser-defs.h (write_exp_msymbol): Update.
2849 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2850 * symfile.c (simple_read_overlay_table): Use
2851 lookup_bound_minimal_symbol.
2852 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2853 (search_symbols): Likewise.
2854 (print_msymbol_info): Take a bound_minimal_symbol argument.
2855 (symtab_symbol_info, rbreak_command): Update.
2856 * symtab.h (struct symbol_search) <msymbol>: Change type
2857 to bound_minimal_symbol.
2858 * valops.c (find_function_in_inferior): Use
2859 lookup_bound_minimal_symbol.
2860 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2861
2862 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2863
2864 Code cleanup.
2865 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2866 to ...
2867 (async_cleanup_sigint_signal_handler): ... this.
2868 (initialize_sigint_signal_handler): Remove declaration.
2869 (handle_remote_sigint): Rename the declaration to ...
2870 (async_handle_remote_sigint): ... this.
2871 (handle_remote_sigint_twice): Rename the declaration to ...
2872 (async_handle_remote_sigint_twice): ... this.
2873 (async_remote_interrupt, async_remote_interrupt_twice)
2874 (remote_interrupt): Remove the declarations.
2875 (remote_interrupt_twice): Rename the declaration ...
2876 (sync_remote_interrupt_twice): ... this.
2877 (sigint_remote_twice_token): Rename the variable to ...
2878 (async_sigint_remote_twice_token): ... this.
2879 (sigint_remote_token): Rename the variable to ...
2880 (async_sigint_remote_token): ... this.
2881 (initialize_sigint_signal_handler): Rename the function to ...
2882 (async_initialize_sigint_signal_handler): ... this. Update the name
2883 inside.
2884 (handle_remote_sigint): Rename the function to ...
2885 (async_handle_remote_sigint): ... this. Update the names inside.
2886 (handle_remote_sigint_twice): Rename the function to ...
2887 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2888 (cleanup_sigint_signal_handler): Rename the function to ...
2889 (async_cleanup_sigint_signal_handler): ... this.
2890 (remote_interrupt): Rename the function to ...
2891 (sync_remote_interrupt): this. Update the names inside.
2892 (remote_interrupt_twice): Rename the function to ...
2893 (sync_remote_interrupt_twice): this. Update the names inside.
2894 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2895 (_initialize_remote): Update the names inside.
2896
2897 2013-08-02 Tom Tromey <tromey@redhat.com>
2898
2899 PR symtab/15719:
2900 * breakpoint.c (update_watchpoint, watchpoint_check)
2901 (watch_command_1): Update.
2902 * eval.c (fetch_subexp_value): Add "preserve_errors"
2903 parameter.
2904 * ppc-linux-nat.c (check_condition): Update.
2905 * value.h (fetch_subexp_value): Update.
2906
2907 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
2908
2909 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2910 add_file_handler.
2911
2912 2013-08-01 Doug Evans <dje@google.com>
2913
2914 PR symtab/15691
2915 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2916 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2917 Add assert of sig_entry->dwo_unit == NULL.
2918 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2919 had already been read.
2920 (read_signatured_type): Set per_cu.tu_read.
2921
2922 PR symtab/15695
2923 * valops.c (value_struct_elt): Add missing call to check_typedef.
2924 (value_find_oload_method_list): Ditto.
2925
2926 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2927 effectively, struct symbol_search **.
2928 (make_cleanup_free_search_symbols): Change arg to struct
2929 symbol_search **. All callers updated.
2930 (compare_search_syms): Compare symtab file name and block as well.
2931 (search_symbols_equal): New function.
2932 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2933 New args new_head, new_tail. Result is now void. Remove dups after
2934 sorting the symbols.
2935 (search_symbols): Sort all found symbols once, after all have been
2936 found, and remove duplicates. Simplify cleanup tracking of result.
2937 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2938
2939 Further workarounds for binutils/15021.
2940 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2941 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2942 Watch for duplicate symtabs coming from type units.
2943 (compute_symtab_includes): Update call to
2944 recursively_compute_inclusions. Build vector of included symtabs
2945 instead of per_cus.
2946 * symtab.h (symtab_ptr): New typedef.
2947 (DEF_VEC_P (symtab_ptr)): New VEC type.
2948 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2949 instead.
2950
2951 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
2952
2953 * cli/cli-script.c (script_from_file): Remove use of
2954 error_pre_print.
2955 * main.c (captured_main): Remove use of error_pre_print and
2956 quit_pre_print.
2957 * utils.c (error_pre_print, quit_pre_print): Remove.
2958 * utils.h (error_pre_print, quit_pre_print): Likewise.
2959
2960 2013-08-01 Yao Qi <yao@codesourcery.com>
2961
2962 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2963 with mi_getopt.
2964 (mi_cmd_stack_list_variables): Likewise.
2965
2966 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2967
2968 * exceptions.c (deprecated_throw_reason): Remove.
2969 * exceptions.h (deprecated_throw_reason): Remove.
2970
2971 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2972
2973 * remote-mips.c (mips_error): Replace use of
2974 deprecated_throw_reason with throw_verror. Use the error message
2975 passed to mips_error as the error message for throw_verror.
2976
2977 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2978
2979 * monitor.c (monitor_interrupt_query): Replace use of
2980 deprecated_throw_reason with quit.
2981 * nto-procfs.c (interrupt_query): Likewise.
2982 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2983 * remote-mips.c (mips_kill): Likewise.
2984 * remote.c (interrupt_query): Likewise.
2985
2986 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2987
2988 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2989 with call to fatal.
2990
2991 2013-07-31 Pedro Alves <pedro@codesourcery.com>
2992 Yao Qi <yao@codesourcery.com>
2993
2994 * tracepoint.c (trace_dump_command): Select the current frame.
2995
2996 2013-07-30 Doug Evans <dje@google.com>
2997
2998 * dwarf2read.c (process_queue): Add type signature to debug output.
2999
3000 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3001
3002 * value.c (value_fetch_lazy): Mark optimized out values as such
3003 rather than raising an error.
3004
3005 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3006
3007 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3008 before checking which bits of the parent, not the child, value are
3009 valid.
3010
3011 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3012
3013 PR gdb/15715
3014 * top.c: Include "filenames.h".
3015 (set_history_filename): New function.
3016 (init_main): Install it as set hook of the "set history filename"
3017 command.
3018
3019 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3020
3021 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3022 attribute parameter.
3023 (dwarf2_const_value_data): Constify struct attribute parameter.
3024 (dwarf2_const_value): Constify struct attribute parameter.
3025 (dwarf2_const_value_attr): Constify struct attribute parameter.
3026 (lookup_die_type): Constify struct attribute parameter.
3027 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3028 (follow_die_ref_or_sig): Constify struct attribute parameter.
3029 (follow_die_ref): Constify struct attribute parameter.
3030 (follow_die_sig): Constify struct attribute parameter.
3031 (get_DW_AT_signature_type): Constify struct attribute parameter.
3032 (get_type_unit_group): Constify struct attribute parameter.
3033 (fill_in_loclist_baton): Constify struct attribute parameter.
3034 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3035 (type_unit_group): Constify struct attribute parameter.
3036
3037 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3038
3039 * dwarf2read.c (attr_form_is_block): Make argument const.
3040 (attr_form_is_section_offset): Make argument const.
3041 (attr_form_is_constant): Make argument const.
3042 (attr_form_is_ref): Make argument const.
3043
3044 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3045
3046 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3047 All uses updated.
3048 (attr_form_is_ref): Moved below attr_form_is_constant.
3049
3050 2013-07-29 Doug Evans <dje@google.com>
3051
3052 * main.c (captured_command_loop): Tweak comment.
3053
3054 * target.c (target_async_permitted_1): Fix comment.
3055
3056 * symtab.c (iterate_over_some_symtabs): Add comment.
3057
3058 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3059
3060 2013-07-27 Yao Qi <yao@codesourcery.com>
3061
3062 * NEWS: Mention that GDBserver now supports hardware
3063 watchpoints on the MIPS GNU/Linux target.
3064
3065 2013-07-27 Yao Qi <yao@codesourcery.com>
3066
3067 * Makefile.in (HFILES_NO_SRCDIR): Add
3068 common/mips-linux-watch.h.
3069 (mips-linux-watch.o): New rule.
3070 * common/mips-linux-watch.c: New.
3071 * common/mips-linux-watch.h: New.
3072 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3073 * mips-linux-nat.c: Include mips-linux-watch.h.
3074 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3075 to common/mips-linux-watch.h.
3076 (MAX_DEBUG_REGISTER): Likewise.
3077 (enum pt_watch_style): Likewise.
3078 (struct mips32_watch_regs): Likewise.
3079 (struct mips64_watch_regs): Likewise.
3080 (struct pt_watch_regs): Likewise.
3081 (struct mips_watchpoint): Likewise.
3082 (mips_linux_watch_get_irw_mask): Move to
3083 common/mips-linux-watch.c.
3084 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3085 (mips_linux_watch_get_watchlo): Likewise.
3086 (mips_linux_watch_set_watchlo): Likewise.
3087 (mips_linux_watch_get_watchhi): Likewise.
3088 (mips_linux_watch_set_watchhi): Likewise.
3089 (mips_linux_read_watch_registers): Likewise.
3090 (mips_linux_watch_type_to_irw): Likewise.
3091 (mips_linux_stopped_data_address, fill_mask): Likewise.
3092 (mips_linux_watch_try_one_watch): Likewise.
3093 (mips_linux_watch_populate_regs): Likewise.
3094
3095 2013-07-27 Yao Qi <yao@codesourcery.com>
3096
3097 * mips-linux-nat.c (get_irw_mask): Rename to ...
3098 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3099 'set' to 'n'. Update function comment. All callers changed.
3100 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3101 function comment. All callers changed.
3102 (get_num_valid): Rename to ...
3103 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3104 'set' to 'n'. Update function comment. All callers changed.
3105 (get_watchlo): Rename to ...
3106 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3107 'set' to 'n'. Update function comment. All callers changed.
3108 (set_watchlo): Rename to ...
3109 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3110 'set' to 'n'. Update function comment. All callers changed.
3111 (get_watchhi): Rename to ...
3112 (mips_linux_watch_get_watchhi): ... this. Update function
3113 comment. All callers changed.
3114 (set_watchhi): Rename to ...
3115 (mips_linux_watch_set_watchhi): ... this. Update function
3116 comment. All callers changed.
3117 (mips_linux_read_watch_registers): Update function comment.
3118 Add new parameters 'lwpid', 'watch_readback', and
3119 'watch_readback_valid'. Update.
3120 (type_to_irw): Rename to ...
3121 (mips_linux_watch_type_to_irw): ... this. Update function
3122 comment. All callers changed.
3123 (fill_mask): Update function comment.
3124 (try_one_watch): Rename to ...
3125 (mips_linux_watch_try_one_watch): ... this. Change the type
3126 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3127 (populate_regs_from_watches): Rename to ...
3128 (mips_linux_watch_populate_regs): ... this. Add parameter
3129 'current_watches'. All callers changed.
3130
3131 2013-07-27 Yao Qi <yao@codesourcery.com>
3132
3133 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3134 the code.
3135 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3136 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3137 (struct pt_watch_regs): Likewise.
3138 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3139 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3140 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3141 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3142 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3143
3144 2013-07-27 Yao Qi <yao@codesourcery.com>
3145
3146 * breakpoint.h: Include break-common.h.
3147 (enum target_hw_bp_type): Move to ...
3148 * common/break-common.h: ... here. New.
3149
3150 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3151
3152 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3153 process group regardless of having tty on stdin.
3154
3155 2013-07-25 Doug Evans <dje@google.com>
3156
3157 * linux-fork.h (detach_fork): Delete.
3158
3159 2013-07-25 Tom Tromey <tromey@redhat.com>
3160
3161 PR remote/15256, PR remote/15266:
3162 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3163 * monitor.c (monitor_detach): Use unpush_target.
3164 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3165 * remote-mips.c (mips_detach): Use unpush_target. Don't
3166 call mips_close.
3167 * remote-sim.c (gdbsim_detach): Use unpush_target.
3168 * target.c (pop_target): Remove.
3169 (pop_all_targets_above): Don't call target_close.
3170 (target_close): Assert that the target is unpushed.
3171 * target.h (pop_target): Don't declare.
3172 * tracepoint.c (tfile_open): Use unpush_target.
3173
3174 2013-07-25 Tom Tromey <tromey@redhat.com>
3175
3176 * linux-thread-db.c (init_thread_db_ops): Call
3177 complete_target_initialization.
3178 (_initialize_thread_db): Don't call add_target.
3179 * target.c (complete_target_initialization): New function.
3180 (add_target_with_completer): Call it.
3181 * target.h (complete_target_initialization): Declare.
3182
3183 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3184
3185 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3186 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3187 (HPPANBSD_SIZEOF_GREGS): New define.
3188 (hppaobsd_supply_gregset): Handle additional registers.
3189 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3190 we provide more registers now.
3191 (hppabsd_supply_gregset): Supply additional registers.
3192 (hppabsd_collect_gregset): Collect additional registers.
3193
3194 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3195
3196 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3197 (hppabsd_dwarf2_frame_init_reg): New function.
3198 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3199
3200 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3201
3202 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3203 'z' format code. Remove error for optimized out values, standard
3204 code will handle these fine.
3205
3206 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3207
3208 * NEWS: Mention new 'z' formatter.
3209 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3210 (_initialize_printcmd): Mention 'z' formatter in help text of the
3211 'x' command.
3212
3213 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3214
3215 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3216 formatting.
3217
3218 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3219
3220 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3221 interface can evaluate arguments. Fallback to the old mode if it
3222 cannot.
3223 (create_exception_master_breakpoint): Likewise.
3224 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3225 (struct sym_probe_fns elf_probe_fns): Export function above to the
3226 probe interface.
3227 * probe.c (can_evaluate_probe_arguments): New function.
3228 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3229 function pointer.
3230 (can_evaluate_probe_arguments): New function prototype.
3231 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3232 probe interface can evaluate arguments. Fallback to the old mode
3233 if it cannot.
3234 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3235 interface can evaluate arguments. Warning the user if it cannot.
3236 (stap_can_evaluate_probe_arguments): New function.
3237 (struct probe_ops stap_probe_ops): Export function above to the
3238 probe interface.
3239 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3240 New function pointer.
3241
3242 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3243
3244 * Makefile.in (SFILES): Add common/target-common.c.
3245 Add common/target-common.h to headers.
3246 (COMMON_OBS): Add target-common.o.
3247 (target-common.o): New target.
3248 * linux-nat.h (resume_kind): Move to common/target-common.h.
3249 * target.c (target_waitstatus_to_string): Move to
3250 common/target-common.c.
3251 * target.h: Include target-common.h.
3252 (target_waitkind): Move to common/target-common.h.
3253 (target_waitstatus): Likewise.
3254 (TARGET_WNOHANG): Likewise.
3255 * common/target-common.c: New file.
3256 * common/target-common.h: New file.
3257
3258 2013-07-24 Doug Evans <dje@google.com>
3259
3260 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3261 a warning.
3262
3263 2013-07-23 Yao Qi <yao@codesourcery.com>
3264
3265 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3266 parameter 'gdbarch'.
3267 (i386_stack_tramp_frame_sniffer): Caller update.
3268 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3269 parameter 'gdbarch' and 'target'.
3270 (i386_linux_core_read_description): Caller update.
3271 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3272 Likewise.
3273 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3274 declaration.
3275
3276 2013-07-23 Tom Tromey <tromey@redhat.com>
3277
3278 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3279 2013-07-22.
3280
3281 2013-07-22 Doug Evans <dje@google.com>
3282
3283 * exec.h (remove_target_sections): Delete arg abfd.
3284 * exec.c (exec_close): Update call to remove_target_sections.
3285 (remove_target_sections): Delete arg abfd.
3286 * solib.c (update_solib_list): Ditto.
3287 (reload_shared_libraries_1): Ditto.
3288 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3289 * target.h (struct target_section): Rename key to owner.
3290 All uses updated.
3291
3292 2013-07-22 Tom Tromey <tromey@redhat.com>
3293
3294 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3295
3296 2013-07-22 Tom Tromey <tromey@redhat.com>
3297
3298 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3299 Simplify cleanup handling.
3300
3301 2013-07-22 Tom Tromey <tromey@redhat.com>
3302
3303 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3304 on all return paths.
3305
3306 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3307
3308 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3309 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3310 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3311
3312 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3313
3314 * top.c (print_gdb_version): Add help, apropos description and
3315 url to online documentation.
3316
3317 2013-07-19 Hui Zhu <hui@codesourcery.com>
3318
3319 PR gdb/15692
3320 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3321
3322 2013-07-19 Yao Qi <yao@codesourcery.com>
3323
3324 * target.c (update_current_target): Change the default action
3325 of 'to_traceframe_info' from tcomplain to return_zero.
3326 * target.h (struct target_ops) <to_traceframe_info>: Add more
3327 comments.
3328 * valops.c (read_value_memory): Call
3329 traceframe_available_memory unconditionally.
3330
3331 2013-07-18 Yao Qi <yao@codesourcery.com>
3332
3333 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3334 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3335 symbol without prefix. If found, set its type to
3336 'mst_solib_trampoline'.
3337
3338 2013-07-17 Doug Evans <dje@google.com>
3339
3340 * NEWS: Mention "set print raw frame-arguments".
3341 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3342 * stack.c (print_raw_frame_arguments): New static global.
3343 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3344 (_initialize_stack): New command "set/show print raw frame-arguments".
3345 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3346 (set_print_raw, show_print_raw): New functions.
3347 (_initialize_valprint): New prefix command "set/show print raw".
3348 * valprint.h (value_print_options): Improve comments.
3349
3350 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3351 of all *list variables.
3352
3353 * gdbcmd.h (togglelist): Delete.
3354 * cli/cli-cmds.c (togglelist): Delete.
3355 (init_cmd_lists): Update.
3356 * cli/cli-cmds.h (togglelist): Delete.
3357
3358 2013-07-17 Tom Tromey <tromey@redhat.com>
3359
3360 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3361 dwarf2_per_objfile.
3362
3363 2013-07-16 Doug Evans <dje@google.com>
3364
3365 * nto-tdep.c (nto_relocate_section_addresses): Update,
3366 target_section.bfd deleted.
3367 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3368 * s390-tdep.c (s390_load): Ditto.
3369 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3370
3371 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3372
3373 * common/format.c (parse_format_string): Add checks for NULL
3374 character before calling strchr.
3375
3376 2013-07-16 Doug Evans <dje@google.com>
3377
3378 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3379 temp_pathname argument.
3380 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3381 when opening the file fails.
3382
3383 * target.h (struct target_section): Delete member bfd.
3384 All users updated to use the_bfd_section->owner instead.
3385 * exec.c (add_to_section_table): Assert bfd is expected value.
3386 Remove initialization of target_section.bfd.
3387 (remove_target_sections): Update.
3388 (section_table_available_memory): Update.
3389 (section_table_xfer_memory_partial): Update.
3390 (print_section_info): Update.
3391 (exec_set_section_address): Update.
3392 * record-full.c (record_full_core_xfer_partial): Update.
3393 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3394 * solib-target.c (solib_target_relocate_section_addresses): Update.
3395 * symfile.c (build_section_addr_info_from_section_table): Update.
3396 * target.c (memory_xfer_live_readonly_partial): Update.
3397 (memory_xfer_partial_1): Update.
3398
3399 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3400
3401 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3402 now available for embedded (BookE) and server (BookS) processors,
3403 correct mentions of 'booke' and adjust comments accordingly in order to
3404 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3405 (have_ptrace_booke_interface): Rename function and variable
3406 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3407 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3408 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3409 'hwdebug_point_cmp'. Update all uses.
3410 (booke_find_thread_points_by_tid): Rename function
3411 'booke_find_thread_points_by_tid' to
3412 'hwdebug_find_thread_points_by_tid'. Update all uses.
3413 (booke_insert_point): Rename function 'booke_insert_point' to
3414 'hwdebug_insert_point'. Update all uses.
3415 (booke_remove_point): Rename function 'booke_remove_point' to
3416 'hwdebug_remove_point'. Update all uses.
3417
3418 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3419
3420 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3421 numbers with enum values.
3422
3423 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3424
3425 PR threads/13217
3426 * thread.c (thread_apply_all_command): Check for valid threads
3427 and thread count.
3428 (thread_array_cleanup): New struct.
3429 (set_thread_refcount): New function.
3430
3431 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3432
3433 * infcmd.c (default_print_one_register_info): Reuse function
3434 print_hex_chars.
3435
3436 2013-07-10 Tom Tromey <tromey@redhat.com>
3437
3438 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3439 (ada-exp.o): New target.
3440
3441 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3442
3443 * mt-tdep.c (mt_registers_info): Call
3444 get_no_prettyformat_print_options instead of
3445 get_raw_print_options (regression by last patch from Doug
3446 Evans).
3447
3448 2013-07-09 Pedro Alves <palves@redhat.com>
3449
3450 Checked in by Joel Brobecker <brobecker@adacore.com>.
3451 * ada-lang.c (coerce_unspec_val_to_type): Use
3452 value_optimized_out_const.
3453 * value.c (value_optimized_out_const): New function.
3454 * value.h (value_optimized_out_const): New declaration.
3455
3456 2013-07-09 Doug Evans <dje@google.com>
3457
3458 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3459 Enum values rename as well. All uses updated.
3460 * valprint.h (value_print_options): Rename member pretty to
3461 pretty format. Rename member prettyprint_arrays to
3462 prettyformat_arrays. Rename member prettyprint_structs to
3463 prettyformat_structs. All uses updated.
3464 (get_no_prettyformat_print_options): Renamed from
3465 get_raw_print_options.
3466 * valprint.c (get_no_prettyformat_print_options): Renamed from
3467 get_raw_print_options. All callers updated.
3468 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3469 All callers updated.
3470 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3471 All callers updated.
3472 (_initialize_valprint): Improve help text for "set print pretty" and
3473 "set print arrays".
3474
3475 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3476
3477 * value.c (value_bits_valid): Revert previous change, and change
3478 by Pedro on 2013-07-04, due to regressions in
3479 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3480
3481 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3482 Pedro Alves <palves@redhat.com>
3483
3484 * value.c (value_bits_valid): If the value is not lval_computed
3485 or has no check validity handler then the answer is the
3486 optimized_out flag, otherwise defer to the handler.
3487
3488 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3489
3490 * top.c (print_gdb_configuration): Explain in output of
3491 --configuration what does "relocatable" mean.
3492
3493 * main.c (print_gdb_help): Regroup options in the --help text.
3494 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3495 the relevant discussions.
3496
3497 2013-07-06 Yao Qi <yao@codesourcery.com>
3498
3499 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3500 Remove parameter 'lsal'.
3501 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3502 to inner block. Caller update.
3503 (base_breakpoint_create_breakpoints_sal): Update.
3504 (bkpt_create_breakpoints_sal): Likewise.
3505 (tracepoint_create_breakpoints_sal): Likewise.
3506 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3507 element 0 of vector 'canonical->sals'.
3508
3509 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3510
3511 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3512 register number instead of the pseudo register one.
3513 (rs6000_dwarf2_reg_to_regnum): Likewise.
3514
3515 2013-07-04 Pedro Alves <palves@redhat.com>
3516
3517 * findvar.c (value_of_register): Use allocate_optimized_out_value
3518 if the register has been optimized out, instead of
3519 set_value_optimized_out.
3520 * frame-unwind.c (frame_unwind_got_optimized): Use
3521 allocate_optimized_out_value.
3522
3523 2013-07-04 Pedro Alves <palves@redhat.com>
3524
3525 * value.c (value_bits_valid): If the value is not lval_computed,
3526 or doesn't have a check_validity hook, assume the value is entirely
3527 valid.
3528
3529 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3530
3531 * stack.c (read_frame_arg): No longer fetch lazy values.
3532 * value.c (value_optimized_out): If the value is not already
3533 marked optimized out, and is lazy then fetch it.
3534 (value_primitive_field): Move optimized out check to later in the
3535 function, after we have loaded any lazy values.
3536 (value_fetch_lazy): Use optimized out flag directly rather than
3537 calling optimized_out method.
3538
3539 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3540
3541 * valops.c: Don't include "user-regs.h".
3542 (value_fetch_lazy): Moved to value.c.
3543 * value.c: Include "user-regs.h".
3544 (value_fetch_lazy): Moved from valops.c.
3545
3546 2013-07-04 Yao Qi <yao@codesourcery.com>
3547
3548 Revert:
3549 2013-06-27 Yao Qi <yao@codesourcery.com>
3550
3551 * common/create-version.sh: Update comments. Handle the case
3552 that TARGET_ALIAS is empty.
3553
3554 2013-07-03 Pedro Alves <palves@redhat.com>
3555
3556 * Makefile.in (config.status): Depend on development.sh.
3557 (aclocal_m4_deps): Add libmcheck.m4.
3558 * acinclude.m4: Include libmcheck.m4.
3559 * configure.ac: Source development.sh instead of setting
3560 'development' here. --enable-libmcheck/--disable-libmcheck code
3561 factored out to GDB_AC_LIBMCHECK. Run it.
3562 * development.sh: New file.
3563 * libmcheck.m4: New file.
3564 * configure: Regenerate.
3565
3566 2013-07-02 Tom Tromey <tromey@redhat.com>
3567
3568 * contrib/ari/update-web-ari.sh: Update for version.in change.
3569
3570 2013-07-02 Tom Tromey <tromey@redhat.com>
3571
3572 * common/ptid.h: Comment fixes.
3573
3574 2013-07-01 Tom Tromey <tromey@redhat.com>
3575
3576 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3577 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3578 (dwarf2_read_index, create_all_comp_units): Update.
3579
3580 2013-07-01 Tom Tromey <tromey@redhat.com>
3581
3582 * configure.ac (build_warnings): Add -Wold-style-definition.
3583 * configure: Rebuild.
3584 * machoread.c (_initialize_machoread): Use "(void)".
3585 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3586 use "(void)".
3587
3588 2013-07-01 Tom Tromey <tromey@redhat.com>
3589
3590 * configure.ac (build_warnings): Add -Wold-style-declaration.
3591 * configure: Rebuild.
3592 * dsrec.c (make_srec): Use "static const", not "const static".
3593 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3594 not "const static".
3595 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3596 Use "static const", not "const static".
3597 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3598 not "const static".
3599 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3600 not "const static".
3601 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3602 not "const static".
3603 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3604 not "const static".
3605 (v850_dbtrap_breakpoint_from_pc): Likewise.
3606 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3607 not "const static".
3608
3609 2013-07-01 Tom Tromey <tromey@redhat.com>
3610
3611 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3612 * configure: Rebuild.
3613
3614 2013-07-01 Pedro Alves <palves@redhat.com>
3615
3616 * defs.h: Include "pathmax.h".
3617 * utils.c: Don't include sys/param.h.
3618 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3619 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3620 instead of MAXPATHLEN.
3621 * solib-sunos.c: Don't include sys/param.h.
3622 * xcoffread.c: Don't include sys/param.h.
3623 * bsd-kvm.c: Don't include sys/param.h.
3624 * darwin-nat.c: Don't include sys/param.h.
3625 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3626 * darwin-nat-info.c: Don't include sys/param.h.
3627 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3628 MAXPATHLEN.
3629 * i386obsd-nat.c: Don't include sys/param.h.
3630 * inf-child.c: Don't include sys/param.h.
3631 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3632 * linux-fork.c: Don't include sys/param.h.
3633 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3634 * linux-nat.c: Don't include sys/param.h.
3635 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3636 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3637 * m68klinux-nat.c: Don't include sys/param.h.
3638 * nbsd-nat.c: Don't include sys/param.h.
3639 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3640 * ppc-linux-nat.c: Don't include sys/param.h.
3641 * rs6000-nat.c: Don't include sys/param.h.
3642 * spu-linux-nat.c. Don't include sys/param.h.
3643 * windows-nat.c: Don't include sys/param.h.
3644 * xtensa-linux-nat.c: Don't include sys/param.h.
3645 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3646
3647 2013-07-01 Pedro Alves <palves@redhat.com>
3648
3649 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3650 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3651 * gnulib/aclocal.m4: Regenerate.
3652 * gnulib/config.in: Regenerate.
3653 * gnulib/configure: Regenerate.
3654 * gnulib/import/pathmax.h: New file.
3655 * gnulib/import/Makefile.am: Regenerate.
3656 * gnulib/import/Makefile.in: Regenerate.
3657 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3658 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3659 * gnulib/import/m4/pathmax.m4: New file.
3660
3661 2013-07-01 Pedro Alves <palves@redhat.com>
3662
3663 * configure.ac (GDBINIT): Define, depending on host.
3664 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3665 * top.c (PATH_MAX): Delete fallback definition.
3666 (GDBINIT_FILENAME): Delete.
3667 (gdbinit): Reimplement as const char array set to the GDBINIT
3668 string constant.
3669 * top.h (gdbinit): Make const.
3670 * configure, config.in: Regenerate.
3671
3672 2013-07-01 Pedro Alves <palves@redhat.com>
3673
3674 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3675 * cli/cli-cmds.h (source_script): Likewise.
3676 * exceptions.c (catch_command_errors_const): New function.
3677 * exceptions.h (catch_command_errors_const): Declare.
3678 * main.c (get_init_files): Make parameters const, and adjust.
3679 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3680 'local_gdbinit' locals const. Adjust to use
3681 catch_command_errors_const.
3682 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3683 'local_gdbinit' locals const.
3684
3685 2013-07-01 Pedro Alves <palves@redhat.com>
3686
3687 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3688 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3689 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3690 <unistd.h>.
3691
3692 2013-07-01 Pedro Alves <palves@redhat.com>
3693
3694 Import the "unistd" gnulib module.
3695 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3696 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3697 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3698 import/m4/unistd_h.m4.
3699 * gnulib/aclocal.m4: Renenerate.
3700 * gnulib/config.in: Renenerate.
3701 * gnulib/configure: Renenerate.
3702 * gnulib/import/Makefile.am: Renenerate.
3703 * gnulib/import/Makefile.in: Renenerate.
3704 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3705 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3706 * gnulib/import/m4/off_t.m4: New file.
3707 * gnulib/import/m4/ssize_t.m4: New file.
3708 * gnulib/import/m4/sys_types_h.m4: New file.
3709 * gnulib/import/m4/unistd_h.m4: New file.
3710 * gnulib/import/sys_types.in.h: New file.
3711 * gnulib/import/unistd.c: New file.
3712 * gnulib/import/unistd.in.h: New file.
3713
3714 2013-07-01 Pedro Alves <palves@redhat.com>
3715
3716 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3717 defined instead of checking HAVE_UNISTD_H.
3718
3719 2013-07-01 Pedro Alves <palves@redhat.com>
3720
3721 Reimport gnulib from scratch.
3722 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3723 import/m4/onceonly.m4.
3724 * gnulib/aclocal.m4: Renegerate.
3725 * gnulib/config.in: Renegerate.
3726 * gnulib/configure: Renegerate.
3727 * gnulib/import/Makefile.in: Renegerate.
3728 * gnulib/import/extra/update-copyright: Renegerate.
3729 * gnulib/import/m4/onceonly.m4: Delete.
3730
3731 2013-07-01 Pedro Alves <palves@redhat.com>
3732
3733 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3734
3735 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3736
3737 Code cleanup.
3738 * remote.c (async_remote_interrupt_twice): Make it static.
3739 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3740
3741 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3742
3743 * ia64-linux-tdep.c: Include <ctype.h>.
3744 (ia64_linux_stap_is_single_operand): New function.
3745 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3746
3747 2013-06-28 Tom Tromey <tromey@redhat.com>
3748
3749 * Makefile.in (version.c): Use version.in, not
3750 common/version.in.
3751 * common/create-version.sh: Likewise.
3752 * common/version.in: Move...
3753 * version.in: ...here.
3754
3755 2013-06-28 Pedro Alves <palves@redhat.com>
3756
3757 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3758 here.
3759 * utils.h (pagination_enabled): Declare.
3760
3761 2013-06-28 Pedro Alves <palves@redhat.com>
3762
3763 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3764 Move higher up in file.
3765
3766 2013-06-28 Tom Tromey <tromey@redhat.com>
3767
3768 * tracepoint.c (deprecated_readline_begin_hook)
3769 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3770 declare.
3771
3772 2013-06-28 Pedro Alves <palves@redhat.com>
3773
3774 PR tui/14880
3775 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3776 checking if they're available.
3777 * value.c (value_available_contents_eq): Change comment.
3778 * value.h (value_available_contents_eq): Expand comment.
3779
3780 2013-06-27 Tom Tromey <tromey@redhat.com>
3781
3782 * target.c (find_run_target): Remove.
3783 * target.h (find_run_target): Remove.
3784
3785 2013-06-27 Tom Tromey <tromey@redhat.com>
3786
3787 * corelow.c (core_gdbarch): Now static.
3788
3789 2013-06-27 Tom Tromey <tromey@redhat.com>
3790
3791 * target.c (target_struct_index): Remove.
3792
3793 2013-06-27 Pedro Alves <palves@redhat.com>
3794
3795 * infrun.c: Remove comment describing the 'stepping over runtime
3796 loader dynamic symbol resolution code' mechanism; moved to
3797 gdbint.texinfo.
3798
3799 2013-06-27 Pedro Alves <palves@redhat.com>
3800
3801 * exceptions.c (catch_command_errors): Remove spurious space.
3802 * exceptions.h (catch_command_errors): Second parameter is "arg",
3803 not "command".
3804
3805 2013-06-27 Yao Qi <yao@codesourcery.com>
3806
3807 * common/create-version.sh: Update comments. Handle the case
3808 that TARGET_ALIAS is empty.
3809
3810 2013-06-26 Pedro Alves <palves@redhat.com>
3811
3812 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3813 comment.
3814
3815 2013-06-26 Pedro Alves <palves@redhat.com>
3816
3817 * infrun.c: Update comments on stepping over runtime loader
3818 dynamic symbol resolution code.
3819
3820 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3821
3822 * ax-gdb.h (union exp_element): Forward declare.
3823 * parser-defs.h: Include expression.h.
3824
3825 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3826
3827 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3828
3829 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3830
3831 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3832
3833 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3834
3835 Fix trace-status to output proper start-time and stop-time.
3836 * tracepoint.c (trace_status_command): Fix type of printf arg to
3837 prevent improper type conversion.
3838 (trace_status_mi): Likewise.
3839
3840 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3841
3842 * mips-tdep.c (mips_next_pc): Fix a typo.
3843
3844 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3845
3846 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3847
3848 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3849 Yao Qi <yao@codesourcery.com>
3850
3851 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3852 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3853 * mi/mi-main.c (print_variable_or_computed): New function.
3854 (mi_cmd_trace_frame_collected): New function.
3855 * tracepoint.c (find_trace_state_variable_by_number): New.
3856 (struct traceframe_info): Move to tracepoint.h
3857 (struct collection_list): Likewise.
3858 (do_collect_symbol): Include locals and arguments in the
3859 collected variables list.
3860 (clear_collection_list): Clear wholly collected variables list
3861 and computed variables list.
3862 (append_exp): New function.
3863 (encode_actions_1): Include variables in the wholly
3864 collected variables list. Include memory ranges and
3865 full-fledged expressions in the computed expressions list.
3866 (encode_actions): Move some code to ...
3867 Return the cleanup chain.
3868 (encode_actions_rsp): ... here. New function.
3869 (get_traceframe_location, get_traceframe_info): Remove static.
3870 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3871 (struct collection_list): Moved from tracepoint.c. Add two
3872 new fields 'wholly_collected' and 'computed'.
3873 (find_trace_state_variable_by_number): Declare.
3874 (encode_actions): Adjust declaration.
3875 (encode_actions_rsp): Declare.
3876 (get_traceframe_info, get_traceframe_location): Declare.
3877
3878 * NEWS: Mention new MI command -trace-frame-collected.
3879
3880 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3881 Yao Qi <yao@codesourcery.com>
3882
3883 * ctf.c (ctf_traceframe_info): Push trace state variables
3884 present in the trace data into the traceframe info object.
3885 * breakpoint.c (DEF_VEC_I): Remove.
3886 * common/filestuff.c (DEF_VEC_I): Likewise.
3887 * dwarf2loc.c (DEF_VEC_I): Likewise.
3888 * mi/mi-main.c (DEF_VEC_I): Likewise.
3889 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3890 * features/traceframe-info.dtd: Add tvar element and its
3891 attributes.
3892 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3893 (build_traceframe_info): Push trace state variables present in
3894 the trace data into the traceframe info object.
3895 (traceframe_info_start_tvar): New function.
3896 (tvar_attributes): New.
3897 (traceframe_info_children): Add "tvar" element.
3898 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3899
3900 * NEWS: Mention the change in GDB and GDBserver.
3901
3902 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3903 Yao Qi <yao@codesourcery.com>
3904
3905 * tracepoint.c (trace_dump_command): Move code to ...
3906 (get_traceframe_location): ... here. New.
3907
3908 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3909 Yao Qi <yao@codesourcery.com>
3910
3911 * tracepoint.c (trace_dump_command): GDB emits an error
3912 instead of a warning when a traceframe is not selected.
3913
3914 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3915 Yao Qi <yao@codesourcery.com>
3916
3917 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3918 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3919 in collection_list.
3920 (do_clear_collection_list, init_collection_list): New.
3921 (encode_actions): Add local variables 'tracepoint_list' and
3922 'stepping_list'. Call init_collection_list and make cleanup
3923 which calls do_clear_collection_list. Don't call
3924 clear_collection_list.
3925 (_initialize_tracepoint): Delete references to
3926 'tracepoint_list' and 'stepping_list'.
3927
3928 2013-06-25 Tom Tromey <tromey@redhat.com>
3929
3930 * common/create-version.sh (date): Use "$", not "$$" in sed
3931 expression.
3932
3933 2013-06-25 Kevin Buettner <kevinb@redhat.com>
3934
3935 * NEWS (New targets): Add entry for TI MSP430.
3936
3937 2013-06-25 Yao Qi <yao@codesourcery.com>
3938
3939 * remote.c (remote_start_remote): Move code to upload tsv
3940 earlier.
3941
3942 2013-06-25 Yao Qi <yao@codesourcery.com>
3943 Hui Zhu <hui@codesourcery.com>
3944 Pedro Alves <palves@redhat.com>
3945
3946 PR breakpoints/15075
3947 PR breakpoints/15434
3948 * breakpoint.c (bpstat_stop_status): Call
3949 b->ops->after_condition_true.
3950 (update_dprintf_command_list): Don't append "continue" command
3951 to the command list of dprintf breakpoint.
3952 (base_breakpoint_after_condition_true): New function.
3953 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3954 (dprintf_after_condition_true): New function.
3955 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3956 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3957
3958 2013-06-24 Kevin Buettner <kevinb@redhat.com>
3959
3960 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3961 (ALLDEPFILES): Add msp430-tdep.c.
3962 * configure.tgt (msp430*-*-elf): New target.
3963 * msp430-tdep.c: New file.
3964
3965 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3966
3967 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3968 microMIPS synthetic symbols.
3969
3970 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3971
3972 * objfiles.h (pc_in_section): New prototype.
3973 (in_plt_section): Remove name argument, replace prototype with
3974 static inline function.
3975 * mips-tdep.h: Include "objfiles.h".
3976 (in_mips_stubs_section): New function.
3977 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3978 in_solib_call_trampoline member.
3979 (hppa_in_solib_call_trampoline): Remove name argument.
3980 * objfiles.c (pc_in_section): New function.
3981 (in_plt_section): Remove function.
3982 * mips-linux-tdep.c: Include "objfiles.h".
3983 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3984 name argument. Return 1 rather than the low 16-bit halfword of
3985 any instruction examined.
3986 (mips_linux_in_dynsym_resolve_code): Update
3987 mips_linux_in_dynsym_stub call accordingly.
3988 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3989 rather than an equivalent hand-coded sequence.
3990 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3991 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3992 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3993 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3994 in_opd_section.
3995 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3996 on call to tdep->in_solib_call_trampoline.
3997 (hppa_in_solib_call_trampoline): Remove name argument, update
3998 according to in_plt_section change.
3999 (hppa_skip_trampoline_code): Update according to in_plt_section
4000 change.
4001 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4002 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4003 Likewise.
4004 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4005 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4006 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4007 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4008 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4009 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4010 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4011 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4012 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4013 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4014 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4015 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4016 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4017
4018 2013-06-24 Joel Brobecker <brobecker@adacore.com>
4019
4020 * common/create-version.sh: Fix expansion of $host_alias
4021 and $target_alias in generation of HOST_NAME and TARGET_NAME
4022 (resp.).
4023
4024 2013-06-24 Tom Tromey <tromey@redhat.com>
4025
4026 * common/create-version.sh: New file.
4027 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4028 create-version.sh.
4029 (HFILES_NO_SRCDIR): Use common/version.h.
4030 * version.in: Move to ...
4031 * common/version.in: ... here. Replace date with "DATE".
4032 * version.h: Move to ...
4033 * common/version.h: ... here.
4034
4035 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4036
4037 * gdb/gnulib/Makefile.in: Update date in copyright header.
4038 * gdb/gnulib/configure.ac: Ditto.
4039 * gdb/gnulib/update-gnulib.sh: Ditto.
4040
4041 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4042
4043 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4044 "gdb/gnulib/import".
4045
4046 2013-06-21 Will Newton <will.newton@linaro.org>
4047
4048 * doublest.c (ldfrexp): Remove function.
4049 (convert_doublest_to_floatformat): Call frexpl instead of
4050 ldfrexp.
4051
4052 2013-06-21 Will Newton <will.newton@linaro.org>
4053
4054 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4055 * gnulib/aclocal.m4: Regenerate.
4056 * gnulib/config.in: Regenerate.
4057 * gnulib/configure: Regenerate.
4058 * gnulib/import/Makefile.am: Update.
4059 * gnulib/import/Makefile.in: Update.
4060 * gnulib/import/m4/gnulib-cache.m4: Update.
4061 * gnulib/import/m4/gnulib-comp.m4: Update.
4062 * gnulib/import/float+.h: Import.
4063 * gnulib/import/float.c: Import.
4064 * gnulib/import/float.in.h: Import.
4065 * gnulib/import/fpucw.h: Import.
4066 * gnulib/import/frexp.c: Import.
4067 * gnulib/import/frexpl.c: Import.
4068 * gnulib/import/isnan.c: Import.
4069 * gnulib/import/isnand-nolibm.h: Import.
4070 * gnulib/import/isnand.c: Import.
4071 * gnulib/import/isnanl-nolibm.h: Import.
4072 * gnulib/import/isnanl.c: Import.
4073 * gnulib/import/itold.c: Import.
4074 * gnulib/import/m4/exponentd.m4: Import.
4075 * gnulib/import/m4/exponentl.m4: Import.
4076 * gnulib/import/m4/float_h.m4: Import.
4077 * gnulib/import/m4/fpieee.m4: Import.
4078 * gnulib/import/m4/frexp.m4: Import.
4079 * gnulib/import/m4/frexpl.m4: Import.
4080 * gnulib/import/m4/isnand.m4: Import.
4081 * gnulib/import/m4/isnanl.m4: Import.
4082 * gnulib/import/m4/math_h.m4: Import.
4083 * gnulib/import/math.c: Import.
4084 * gnulib/import/math.in.h: Import.
4085
4086 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4087
4088 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4089 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4090 signature_INTEL_edx comparisons.
4091
4092 2013-06-20 Doug Evans <dje@google.com>
4093
4094 symtab/15652
4095 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4096 All callers updated.
4097 (open_dwp_file): If we can't find the dwp file, search the basename
4098 in debug-file-directory.
4099
4100 * dwarf2read.c (struct dwp_file): Fix comment.
4101 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4102
4103 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4104 better.
4105
4106 2013-06-20 Yao Qi <yao@codesourcery.com>
4107
4108 * breakpoint.c (create_breakpoint): Fix code indentation.
4109
4110 2013-06-20 Yao Qi <yao@codesourcery.com>
4111
4112 * breakpoint.c (create_breakpoints_sal_default): Remove
4113 parameter 'lsal'. Update declaration.
4114 (bkpt_create_breakpoints_sal): Caller update.
4115 (tracepoint_create_breakpoints_sal): Likewise.
4116
4117 2013-06-20 Pedro Alves <pedro@codesourcery.com>
4118 Yao Qi <yao@codesourcery.com>
4119
4120 * NEWS: Mention the new option '--skip-unavailable' of command
4121 -data-list-register-values.
4122 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4123 --skip-unavailable option. Adjust to use output_register.
4124 (output_register): Add new 'skip_unavailable' parameter.
4125 Handle it.
4126
4127 2013-06-19 Mike Frysinger <vapier@gentoo.org>
4128
4129 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4130 common/i386-gcc-cpuid.h.
4131 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4132 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4133 Copy the latest version from upstream gcc.
4134 * common/linux-btrace.c: Include i386-cpuid.h.
4135 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4136 call to i386_cpuid.
4137 (cpu_supports_btrace): Likewise.
4138 * go32-nat.c: Include i386-cpuid.h.
4139 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4140
4141 2013-06-19 Doug Evans <dje@google.com>
4142
4143 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4144 (get_section_index): Ditto.
4145
4146 2013-06-19 Tom Tromey <tromey@redhat.com>
4147
4148 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4149 "dprintf" help.
4150
4151 2013-06-18 Doug Evans <dje@google.com>
4152
4153 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4154 before using it.
4155 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4156 Move test of cu_index closer to use. Print complaint if cu_index
4157 is bad.
4158
4159 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4160
4161 * machoread.c (oso_vector): Delete this global.
4162 (macho_register_oso): Add new parameter "oso_vector_ptr".
4163 Use it instead of the "oso_vector" global.
4164 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4165 (macho_symfile_read): Use a local oso_vector, to be free'ed
4166 at the end of this function, in place of the old "oso_vector"
4167 global. Update various function calls accordingly. Use one
4168 single cleanup chain for the entire function.
4169
4170 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4171
4172 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4173 DWARF2_PER_OBJFILE by uses of DATA instead.
4174
4175 2013-06-18 Tom Tromey <tromey@redhat.com>
4176
4177 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4178 argument.
4179 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4180 Special case signals other than GDB_SIGNAL_TRAP.
4181 (explains_signal_watchpoint): New function.
4182 (base_breakpoint_explains_signal): Add 'sig' argument.
4183 (initialize_breakpoint_ops): Set 'explains_signal' method for
4184 watchpoints.
4185 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4186 signal argument.
4187 (bpstat_explains_signal): Likewise.
4188 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4189
4190 2013-06-18 Tom Tromey <tromey@redhat.com>
4191
4192 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4193
4194 2013-06-18 Tom Tromey <tromey@redhat.com>
4195
4196 * python/python.c (finish_python_initialization): Decref
4197 'pythondir' on failure path as well.
4198
4199 2013-06-18 Tom Tromey <tromey@redhat.com>
4200
4201 PR symtab/15391:
4202 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4203 after taking bits_to_skip into account. Sign extend byte_offset.
4204 * utils.h (gdb_sign_extend): Declare.
4205 * utils.c (gdb_sign_extend): New function.
4206
4207 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4208
4209 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4210
4211 2013-06-17 Pierre Muller <muller@sourceware.org>
4212
4213 * corelow.c (core_open): Print GDB signal name instead of target
4214 signal number.
4215
4216 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4217
4218 * .gitignore: Add /gcore.
4219
4220 2013-06-13 Doug Evans <dje@google.com>
4221
4222 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4223 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4224
4225 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4226
4227 * stack.c (backtrace_command_1): Fix indentation.
4228
4229 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4230
4231 * window-nat.c (thread_rec): Add missing empty line after
4232 local variable declaration.
4233
4234 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4235
4236 * windows-nat.c (thread_rec): Revert format used to print
4237 error code returned by SuspendThread from %d back to %u.
4238
4239 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4240
4241 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4242 ID in debug trace.
4243 (get_windows_debug_event): Likewise, for all debug traces.
4244
4245 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4246
4247 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4248 warning message.
4249
4250 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4251 Yao Qi <yao@codesourcery.com>
4252
4253 * mi/mi-main.c (get_register): Remove declaration.
4254 (output_register): Declare.
4255 (mi_cmd_data_list_register_values): Remove local variable
4256 'tuple_cleanup'. Move some code into output_register.
4257 (get_register): Renamed to ...
4258 (output_register): ... this. Output the register's
4259 "number" ui_out tuple here.
4260
4261 2013-06-07 Pedro Alves <palves@redhat.com>
4262
4263 * darwin-nat.c: Fix formating in copyright header.
4264 * darwin-nat.h: Likewise.
4265 * gnu-nat.c: Likewise.
4266 * machoread.c: Likewise.
4267
4268 2013-06-07 Pedro Alves <palves@redhat.com>
4269
4270 PR server/14823
4271 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4272 static. Output a global target description pointer.
4273 (init_registers_${name}): Adjust to initialize a
4274 target description structure.
4275
4276 2013-06-07 Will Newton <will.newton@linaro.org>
4277
4278 * printcmd.c (build_address_symbolic): Call
4279 gdbarch_addr_bits_remove for text minimal symbols.
4280
4281 2013-06-07 Will Newton <will.newton@linaro.org>
4282
4283 * MAINTAINERS: Add myself to Write After Approval.
4284
4285 2013-06-07 Yao Qi <yao@codesourcery.com>
4286
4287 * tracepoint.c (start_tracing): Move code to ...
4288 (trace_reset_local_state): ... here. New.
4289 (disconnect_tracing): Don't call set_current_traceframe,
4290 set_tracepoint_num, and set_traceframe_context. Call
4291 trace_reset_local_state instead.
4292 (tfile_close): Call trace_reset_local_state.
4293 * ctf.c (ctf_close): Likewise.
4294 * remote.c (remote_close): Likewise.
4295 * tracepoint.h (trace_reset_local_state): Declare.
4296
4297 2013-06-06 Doug Evans <dje@google.com>
4298
4299 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4300 and fix header docs.
4301
4302 2013-06-05 Doug Evans <dje@google.com>
4303 Keith Seitz <keiths@redhat.com>
4304
4305 PR 15519
4306 * cp-namespace.c (find_symbol_in_baseclass): Call
4307 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4308 Check result of call to lookup_symbol_static.
4309 Call lookup_static_symbol_aux unconditionally.
4310 Call check_typedef on base types before accessing them.
4311 (cp_lookup_nested_symbol): Fix comment.
4312
4313 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4314
4315 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4316 minimal symbols pointing to function descriptors.
4317
4318 2013-06-05 Tom Tromey <tromey@redhat.com>
4319
4320 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4321
4322 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4323 Pedro Alves <palves@redhat.com>
4324
4325 * remote.c (remote_wait_as): Restore signal handler before returning
4326 when GDB gets a notification.
4327
4328 2013-06-04 Gary Benson <gbenson@redhat.com>
4329
4330 PR 2328
4331 * breakpoint.h (handle_solib_event): Moved function declaration
4332 to solib.h.
4333 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4334 (bpstat_stop_status): Pass new argument to handle_solib_event.
4335 * solib.h (update_solib_breakpoints): New function declaration.
4336 (handle_solib_event): Moved function declaration from
4337 breakpoint.h.
4338 * solib.c (update_solib_breakpoints): New function.
4339 (handle_solib_event): Moved function from breakpoint.c.
4340 Updated to call solib_ops->handle_event if not NULL.
4341 * solist.h (target_so_ops): New fields "update_breakpoints" and
4342 "handle_event".
4343 * infrun.c (set_stop_on_solib_events): New function.
4344 (_initialize_infrun): Use the above for "set
4345 stop-on-solib-events".
4346 (handle_inferior_event): Pass new argument to handle_solib_event.
4347 * solib-svr4.c (probe.h): New include.
4348 (svr4_free_library_list): New forward declaration.
4349 (probe_action): New enum.
4350 (probe_info): New struct.
4351 (probe_info): New static variable.
4352 (NUM_PROBES): New definition.
4353 (svr4_info): New fields "using_xfer", "probes_table" and
4354 "solib_list".
4355 (free_probes_table): New function.
4356 (free_solib_list): New function.
4357 (svr4_pspace_data_cleanup): Free probes table and solib list.
4358 (svr4_copy_library_list): New function.
4359 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4360 (svr4_read_so_list): New parameter "prev_lm".
4361 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4362 (svr4_current_sos): New function.
4363 (probe_and_action): New struct.
4364 (hash_probe_and_action): New function.
4365 (equal_probe_and_action): Likewise.
4366 (register_solib_event_probe): Likewise.
4367 (solib_event_probe_at): Likewise.
4368 (solib_event_probe_action): Likewise.
4369 (solist_update_full): Likewise.
4370 (solist_update_incremental): Likewise.
4371 (disable_probes_interface_cleanup): Likewise.
4372 (svr4_handle_solib_event): Likewise.
4373 (svr4_update_solib_event_breakpoint): Likewise.
4374 (svr4_update_solib_event_breakpoints): Likewise.
4375 (svr4_create_solib_event_breakpoints): Likewise.
4376 (enable_break): Free probes table before creating breakpoints.
4377 Use svr4_create_solib_event_breakpoints to create breakpoints.
4378 (svr4_solib_create_inferior_hook): Free the solib list.
4379 (_initialize_svr4_solib): Initialise
4380 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4381
4382 2013-06-04 Gary Benson <gbenson@redhat.com>
4383
4384 * target.h (target_ops): New field
4385 "to_augmented_libraries_svr4_read".
4386 (target_augmented_libraries_svr4_read): New macro.
4387 * target.c (update_current_target): Handle
4388 to_augmented_libraries_svr4_read.
4389 * remote.c (remote_state): New field
4390 "augmented_libraries_svr4_read".
4391 (remote_augmented_libraries_svr4_read_feature): New function.
4392 (remote_protocol_features): Add entry for
4393 "augmented-libraries-svr4-read".
4394 (remote_augmented_libraries_svr4_read): New function.
4395 (init_remote_ops): Initialize
4396 remote_ops.to_augmented_libraries_svr4_read.
4397
4398 2013-06-04 Gary Benson <gbenson@redhat.com>
4399
4400 * NEWS: Update.
4401
4402 2013-06-04 Gary Benson <gbenson@redhat.com>
4403
4404 * objfiles.h (inhibit_section_map_updates): New function
4405 declaration.
4406 (resume_section_map_updates): Likewise.
4407 (resume_section_map_updates_cleanup): Likewise.
4408 * objfiles.c (objfile_pspace_info): Removed field
4409 "objfiles_changed_p". New fields "new_objfiles_available",
4410 "section_map_dirty" and "inhibit_updates".
4411 (allocate_objfile): Set new_objfiles_available.
4412 (free_objfile): Set section_map_dirty.
4413 (objfile_relocate1): Likewise.
4414 (in_plt_section): Likewise.
4415 (find_pc_section): Update the conditions under which the
4416 section map will be updated.
4417 (inhibit_section_map_updates): New function.
4418 (resume_section_map_updates): Likewise.
4419 (resume_section_map_updates_cleanup): Likewise.
4420
4421 2013-06-04 Gary Benson <gbenson@redhat.com>
4422
4423 * probe.h (get_probe_argument_count): New declaration.
4424 (evaluate_probe_argument): Likewise.
4425 * probe.c (get_probe_argument_count): New function.
4426 (evaluate_probe_argument): Likewise.
4427 (probe_safe_evaluate_at_pc): Use the above new functions.
4428
4429 2013-06-04 Alan Modra <amodra@gmail.com>
4430
4431 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4432 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4433 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4434 target mem reads on optional insns.
4435 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4436 ppc_insns_match_pattern calls.
4437 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4438 Add match for power7 thread safety insns, and new order of
4439 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4440 invocation in comment, and update rest of comment.
4441 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4442 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4443 (ppc64_standard_linkage2_target): Update insn offsets.
4444 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4445 stubs first. Update calls.
4446
4447 2013-06-04 Yao Qi <yao@codesourcery.com>
4448
4449 * solib.c (solib_find): Don't need dir separator if path has
4450 drive spec.
4451
4452 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4453
4454 Revert (indirectly causes a SIGSEGV):
4455 * machoread.c (macho_symfile_read): Assign first cleanup to
4456 'back_to'.
4457
4458 2013-06-03 Yao Qi <yao@codesourcery.com>
4459
4460 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4461 mi-parse.c. Make them static.
4462 (mi_all_values): Likewise.
4463 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4464 mi_parse_print_values. Make it external.
4465 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4466 Remove the declarations.
4467 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4468 * mi/mi-parse.h (mi_parse_print_values): Declare.
4469 * mi/mi-cmd-stack.c: Include mi-parse.h.
4470 (parse_print_values): Remove
4471 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4472 of parse_print_values.
4473 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4474
4475 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4476 Yao Qi <yao@codesourcery.com>
4477
4478 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4479 (encode_actions): Move code to ...
4480 (all_tracepoint_actions_and_cleanup): ... here. New.
4481 (trace_dump_command): Likewise.
4482
4483 2013-05-30 Tom Tromey <tromey@redhat.com>
4484
4485 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4486
4487 2013-05-30 Tom Tromey <tromey@redhat.com>
4488
4489 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4490 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4491 'old_chain' argument. Add 'parser_result' argument.
4492 (gdb_xml_create_parser_and_cleanup): Remove old version.
4493 (gdb_xml_parse_quick): Update.
4494 (xml_process_xincludes): Update.
4495 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4496 declare.
4497
4498 2013-05-30 Tom Tromey <tromey@redhat.com>
4499
4500 * probe.c (collect_probes): Check arguments for NULL before
4501 calling compile_rx_or_error.
4502 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4503 Remove NULL return.
4504
4505 2013-05-30 Tom Tromey <tromey@redhat.com>
4506
4507 * infrun.c (adjust_pc_after_break): Introduce an outer null
4508 cleanup.
4509
4510 2013-05-30 Tom Tromey <tromey@redhat.com>
4511
4512 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4513
4514 2013-05-30 Tom Tromey <tromey@redhat.com>
4515
4516 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4517 for 'old_chain'. Do not check 'head' before processing
4518 cleanups.
4519
4520 2013-05-30 Tom Tromey <tromey@redhat.com>
4521
4522 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4523 "cleanup_tuple".
4524
4525 2013-05-30 Tom Tromey <tromey@redhat.com>
4526
4527 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4528 inner scope. Unconditionally call do_cleanups.
4529
4530 2013-05-30 Tom Tromey <tromey@redhat.com>
4531
4532 * source.c (find_and_open_source): Call do_cleanups.
4533
4534 2013-05-30 Tom Tromey <tromey@redhat.com>
4535
4536 * linux-thread-db.c (thread_db_load_search): Unconditionally
4537 call do_cleanups.
4538
4539 2013-05-30 Tom Tromey <tromey@redhat.com>
4540
4541 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4542 for 'cleanup'; instead use a later one.
4543
4544 2013-05-30 Tom Tromey <tromey@redhat.com>
4545
4546 * python/py-breakpoint.c (bppy_get_commands): Use
4547 explicit, unconditional return.
4548 * python/py-frame.c (frapy_read_var): Likewise.
4549 * python/python.c (gdbpy_decode_line): Likewise.
4550
4551 2013-05-30 Tom Tromey <tromey@redhat.com>
4552
4553 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4554 do_cleanups on all return paths.
4555
4556 2013-05-30 Tom Tromey <tromey@redhat.com>
4557
4558 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4559
4560 2013-05-30 Tom Tromey <tromey@redhat.com>
4561
4562 * stabsread.c (read_struct_type): Call do_cleanups along
4563 all return paths.
4564
4565 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4566
4567 * mips-linux-tdep.c: Adjust formatting throughout.
4568
4569 2013-05-30 Tom Tromey <tromey@redhat.com>
4570
4571 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4572 along all return paths.
4573
4574 2013-05-30 Tom Tromey <tromey@redhat.com>
4575
4576 * symfile.c (find_separate_debug_file): Call do_cleanups
4577 along all return paths.
4578
4579 2013-05-30 Tom Tromey <tromey@redhat.com>
4580
4581 * symtab.c (search_symbols): Introduce a null cleanup for
4582 'retval_chain'.
4583
4584 2013-05-30 Tom Tromey <tromey@redhat.com>
4585
4586 * python/py-value.c (valpy_binop): Call do_cleanups before
4587 exiting loop.
4588
4589 2013-05-30 Tom Tromey <tromey@redhat.com>
4590
4591 * python/py-prettyprint.c (print_children): Remove extra
4592 do_cleanups call.
4593
4594 2013-05-30 Tom Tromey <tromey@redhat.com>
4595
4596 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4597 all return paths.
4598
4599 2013-05-30 Tom Tromey <tromey@redhat.com>
4600
4601 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4602 along all return paths.
4603
4604 2013-05-30 Tom Tromey <tromey@redhat.com>
4605
4606 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4607 call do_cleanups.
4608
4609 2013-05-30 Tom Tromey <tromey@redhat.com>
4610
4611 * varobj.c (c_value_of_root): Call do_cleanups along all
4612 return paths.
4613
4614 2013-05-30 Tom Tromey <tromey@redhat.com>
4615
4616 * tracepoint.c (trace_dump_command): Unconditionally call
4617 do_cleanups.
4618
4619 2013-05-30 Tom Tromey <tromey@redhat.com>
4620
4621 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4622 do_cleanups earlier.
4623
4624 2013-05-30 Tom Tromey <tromey@redhat.com>
4625
4626 * machoread.c (macho_symfile_read): Assign first cleanup to
4627 'back_to'.
4628
4629 2013-05-30 Tom Tromey <tromey@redhat.com>
4630
4631 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4632
4633 2013-05-30 Tom Tromey <tromey@redhat.com>
4634
4635 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4636
4637 2013-05-30 Tom Tromey <tromey@redhat.com>
4638
4639 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4640 call discard_cleanups.
4641 (inf_ptrace_attach): Likewise.
4642
4643 2013-05-30 Tom Tromey <tromey@redhat.com>
4644
4645 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4646 return paths.
4647 (mips_initialize): Likewise.
4648 (common_open): Call do_cleanups.
4649
4650 2013-05-30 Tom Tromey <tromey@redhat.com>
4651
4652 * utils.c (internal_vproblem): Call do_cleanups.
4653
4654 2013-05-30 Tom Tromey <tromey@redhat.com>
4655
4656 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4657
4658 2013-05-30 Tom Tromey <tromey@redhat.com>
4659
4660 * cli/cli-script.c (setup_user_args): Don't return after error.
4661
4662 2013-05-30 Tom Tromey <tromey@redhat.com>
4663
4664 * somread.c (som_symtab_read): Call do_cleanups.
4665
4666 2013-05-30 Tom Tromey <tromey@redhat.com>
4667
4668 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4669
4670 2013-05-30 Tom Tromey <tromey@redhat.com>
4671
4672 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4673 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4674 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4675 * source.c (show_substitute_path_command): Call do_cleanups.
4676 (unset_substitute_path_command, set_substitute_path_command):
4677 Likewise.
4678 * symfile.c (load_command): Call do_cleanups.
4679
4680 2013-05-30 Tom Tromey <tromey@redhat.com>
4681
4682 * contrib/cleanup_check.py: New file.
4683 * contrib/gcc-with-excheck: Add option parsing.
4684
4685 2013-05-30 Joel Brobecker <brobecker@adacore.com>
4686
4687 * windows-nat.c (windows_delete_thread): Add missing space
4688 in cast expression.
4689
4690 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4691
4692 * inferior.c (top level): Include tilde.h.
4693 (add_inferior_command): Call tilde_expand on the value of 'exec'
4694 argument.
4695
4696 2013-05-30 Pedro Alves <pedro@codesourcery.com>
4697 Yao Qi <yao@codesourcery.com>
4698
4699 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4700 Caller update.
4701 (encode_actions): Likewise.
4702 * remote.c (remote_download_tracepoint): Caller update.
4703 * tracepoint.h (encode_actions): Update declaration.
4704
4705 2013-05-30 Pedro Alves <palves@redhat.com>
4706
4707 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4708 pointer.
4709
4710 2013-05-30 Yao Qi <yao@codesourcery.com>
4711
4712 * remote.c (remote_check_symbols): Remove unused parameter
4713 'objfile'.
4714 Declaration update.
4715 (remote_start_remote, remote_new_objfile): Caller update.
4716
4717 2013-05-30 Yao Qi <yao@codesourcery.com>
4718
4719 * mi/mi-cmds.c (mi_cmds): Define MI command
4720 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4721 DEF_MI_CMD_CLI.
4722
4723 2013-05-29 Pedro Alves <palves@redhat.com>
4724
4725 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4726 (remote_insert_watchpoint, remote_remove_watchpoint)
4727 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4728 (remote_verify_memory, compare_sections_command)
4729 (remote_search_memory): Set the general process/thread on the
4730 remote side.
4731
4732 2013-05-29 Pedro Alves <palves@redhat.com>
4733
4734 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4735 (_initialize_aarch64_tdep): Don't call
4736 initialize_tdesc_aarch64_without_fpu.
4737 * features/Makefile (WHICH): Remove reference to
4738 aarch64-without-fpu.
4739 * features/aarch64-without-fpu.c: Delete file.
4740 * regformats/aarch64-without-fpu.dat: Delete file.
4741
4742 2013-05-28 Yao Qi <yao@codesourcery.com>
4743
4744 * tracepoint.c (stringify_collection_list): Remove parameter
4745 'string'.
4746 (encode_actions): Caller update. Remove local variables.
4747
4748 2013-05-24 Yao Qi <yao@codesourcery.com>
4749
4750 * tracepoint.c (TFILE_PID): Remove.
4751 (tfile_open): Don't add thread and inferior.
4752 (tfile_close): Don't set 'inferior_ptid'. Don't call
4753 exit_inferior_silent.
4754 (tfile_thread_alive): Remove.
4755 (init_tfile_ops): Don't set field 'to_thread_alive' of
4756 tfile_ops.
4757
4758 2013-05-23 Doug Evans <dje@google.com>
4759
4760 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4761
4762 2013-05-23 Pedro Alves <palves@redhat.com>
4763
4764 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4765 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4766 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4767 Only define if HAVE_SOCKETS is defined.
4768 * configure.ac: Check for sys/socket.h.
4769 * config.in, configure: Regenerate.
4770
4771 2013-05-23 Pedro Alves <palves@redhat.com>
4772
4773 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4774 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4775 printing uint32_t variables.
4776
4777 2013-05-23 Pedro Alves <palves@redhat.com>
4778
4779 * NEWS: Mention GDBserver range stepping support.
4780
4781 2013-05-23 Yao Qi <yao@codesourcery.com>
4782 Pedro Alves <palves@redhat.com>
4783
4784 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4785 field.
4786 * infcmd.c (step_once, until_next_command): Enable range stepping.
4787 * infrun.c (displaced_step_prepare): Disable range stepping.
4788 (resume): Disable range stepping if stepping over a breakpoint or
4789 we have software watchpoints. If range stepping is enabled,
4790 assert the thread is in the stepping range.
4791 (clear_proceed_status_thread): Clear may_range_step.
4792 (handle_inferior_event): Disable range stepping as soon as we know
4793 the thread that hit the event. Re-enable it whenever we're going
4794 to step with a step range.
4795 * remote.c (struct vCont_action_support) <r>: New field.
4796 (use_range_stepping): New global.
4797 (remote_vcont_probe): Handle 'r' action.
4798 (append_resumption): Append an 'r' action if the thread may range
4799 step.
4800 (show_range_stepping): New function.
4801 (set_range_stepping): New function.
4802 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4803 'set range-stepping' and 'show range-stepping' commands.
4804 * NEWS: Mention range stepping, the new vCont;r action, and the
4805 new "set/show range-stepping" commands.
4806
4807 2013-05-23 Yao Qi <yao@codesourcery.com>
4808 Pedro Alves <palves@redhat.com>
4809
4810 * remote.c (struct vCont_action_support): New struct.
4811 (struct remote_state) <support_vCont_t>: Remove field.
4812 <vCont_actions_support>: New field.
4813 (remote_vcont_probe, remote_stop_ns): Update.
4814
4815 2013-05-23 Yao Qi <yao@codesourcery.com>
4816 Pedro Alves <palves@redhat.com>
4817
4818 * gdbthread.h (pc_in_thread_step_range): New declaration.
4819 * thread.c (pc_in_thread_step_range): New function.
4820 * infrun.c (handle_inferior_event): Use it.
4821
4822 2013-05-23 Joel Brobecker <brobecker@adacore.com>
4823
4824 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4825 of sprintf.
4826
4827 2013-05-22 Keith Seitz <keiths@redhat.com>
4828
4829 * ada-lang.c (is_known_support_routine): Add explicit free of
4830 'func_name' from find_frame_funname.
4831 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4832 for func_name from find_frame_funname.
4833 * python/py-frame.c (frapy_name): Add explicit free of
4834 'name' from find_frame_funname.
4835 * stack.c (find_frame_funname): Add comment explaining that
4836 funcp must be freed by the caller.
4837 Return copy of symbol names instead of pointers.
4838 (print_frame): Add a cleanup for 'funname' from
4839 find_frame_funname.
4840 * stack.h (find_frame_funname): Remove "const" from
4841 'funname' parameter.
4842
4843 2013-05-22 Tom Tromey <tromey@redhat.com>
4844
4845 PR c++/15401:
4846 * c-valprint.c (c_value_print): Use value_addr for
4847 references. Convert back to reference type with value_ref.
4848
4849 2013-05-22 Eli Zaretskii <eliz@gnu.org>
4850
4851 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4852 unloaded DLL, it will be done by handle_solib_event. See
4853 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4854 details.
4855
4856 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4857
4858 * ui-out.c: Create typedef ui_out_level_p and define vector
4859 operations for that type.
4860 (struct ui_out): Use a vector instead of an array.
4861 (current_level): Return level from a vector.
4862 (push_level): Create a level in a vector.
4863 (pop_level): Delete a level in a vector.
4864 (ui_out_new): Create initial level zero level, and store in a
4865 vector.
4866 (ui_out_destroy): Add vector cleanup.
4867
4868 2013-05-22 Pedro Alves <palves@redhat.com>
4869
4870 * python/python-internal.h (gdb_Py_DECREF): Tag with
4871 "ARI: editCase function".
4872
4873 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4874
4875 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4876
4877 2013-05-21 Pedro Alves <palves@redhat.com>
4878
4879 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4880 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4881 * python/py-utils.c (py_decref): Don't check for NULL before
4882 calling Py_DECREF.
4883
4884 2013-05-21 Pedro Alves <palves@redhat.com>
4885
4886 * python/py-utils.c (py_decref): Remove extra braces.
4887 (gdb_pymodule_addobject): Remove extra braces.
4888 * python-internal.h (gdb_Py_DECREF): New static inline function.
4889 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4890
4891 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4892
4893 * breakpoints.c (detach_breakpoints): Do not
4894 detach breakpoints locations with loc_type bp_loc_other.
4895
4896 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4897
4898 Workaround Python 2.6.
4899 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4900 a block.
4901
4902 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4903
4904 Code cleanup: constification.
4905 * solib.c (solib_ops): Make return type and ops variable type const.
4906 (set_solib_ops): Make the new_ops parameter and ops variable const.
4907 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4908 (solib_add, solib_keep_data_in_core, clear_solib)
4909 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4910 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4911 const.
4912 * solib.h (set_solib_ops): Make the new_ops parameter const.
4913
4914 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4915
4916 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4917 variable.
4918 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4919 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4920 (SYSTEM_GDBINIT_FILES): New variables.
4921 (all): Add stamp-system-gdbinit.
4922 (stamp-system-gdbinit): New rule.
4923 (clean-system-gdbinit, install-system-gdbinit)
4924 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4925 (install-only): Add dependency on install-system-gdbinit.
4926 (uninstall): Add dependency on uninstall-system-gdbinit.
4927 (clean): Add dependency on clean-system-gdbinit.
4928 * system-gdbinit/elinos.py: New file.
4929 * system-gdbinit/wrs-linux.py: New file.
4930
4931 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4932
4933 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4934
4935 2013-05-21 Hui Zhu <hui@codesourcery.com>
4936
4937 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4938 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4939 * mi/mi-cmd-break.c (ctype.h): New include.
4940 (gdb_obstack.h): New include.
4941 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4942 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4943 (mi_cmd_dprintf_insert): New.
4944 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4945 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4946
4947 2013-05-20 Tom Tromey <tromey@redhat.com>
4948
4949 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4950
4951 2013-05-20 Tom Tromey <tromey@redhat.com>
4952
4953 * python/py-value.c (valpy_get_dynamic_type): Simplify
4954 dynamic_type assignment. Use Py_XINCREF.
4955
4956 2013-05-20 Tom Tromey <tromey@redhat.com>
4957
4958 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4959
4960 2013-05-20 Tom Tromey <tromey@redhat.com>
4961
4962 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4963 (gdbpy_selected_frame): Move object-construction code
4964 out of TRY_CATCH.
4965
4966 2013-05-20 Tom Tromey <tromey@redhat.com>
4967
4968 * python/py-arch.c (gdbpy_initialize_arch): Use
4969 gdb_pymodule_addobject.
4970 * python/py-block.c (gdbpy_initialize_blocks): Use
4971 gdb_pymodule_addobject.
4972 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4973 gdb_pymodule_addobject.
4974 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4975 gdb_pymodule_addobject.
4976 * python/py-event.c (gdbpy_initialize_event_generic): Use
4977 gdb_pymodule_addobject.
4978 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4979 gdb_pymodule_addobject.
4980 * python/py-evts.c (add_new_registry): Use
4981 gdb_pymodule_addobject.
4982 (gdbpy_initialize_py_events): Likewise.
4983 * python/py-finishbreakpoint.c
4984 (gdbpy_initialize_finishbreakpoints): Use
4985 gdb_pymodule_addobject.
4986 * python/py-frame.c (gdbpy_initialize_frames): Use
4987 gdb_pymodule_addobject.
4988 * python/py-function.c (gdbpy_initialize_functions): Use
4989 gdb_pymodule_addobject.
4990 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4991 gdb_pymodule_addobject.
4992 * python/py-infthread.c (gdbpy_initialize_thread): Use
4993 gdb_pymodule_addobject.
4994 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4995 gdb_pymodule_addobject.
4996 * python/py-param.c (gdbpy_initialize_parameters): Use
4997 gdb_pymodule_addobject.
4998 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4999 gdb_pymodule_addobject.
5000 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5001 gdb_pymodule_addobject.
5002 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5003 gdb_pymodule_addobject.
5004 * python/py-type.c (gdbpy_initialize_types): Use
5005 gdb_pymodule_addobject.
5006 * python/py-utils.c (gdb_pymodule_addobject): New function.
5007 * python/py-value.c (gdbpy_initialize_values): Use
5008 gdb_pymodule_addobject.
5009 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5010 * python/python.c (_initialize_python): Use
5011 gdb_pymodule_addobject.
5012
5013 2013-05-20 Tom Tromey <tromey@redhat.com>
5014
5015 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5016 * python/py-param.c (get_set_value, get_show_value): Use
5017 explicit decrefs.
5018 * python/python.c (start_type_printers, apply_type_printers):
5019 Use explicit decrefs.
5020
5021 2013-05-20 Tom Tromey <tromey@redhat.com>
5022
5023 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5024 incref the module.
5025
5026 2013-05-20 Tom Tromey <tromey@redhat.com>
5027
5028 * python/python.c (gdbpy_run_events): Decref the result
5029 of PyObject_CallObject.
5030
5031 2013-05-20 Tom Tromey <tromey@redhat.com>
5032
5033 * python/py-symtab.c (set_sal): Use
5034 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5035 (symtab_and_line_to_sal_object): Update.
5036
5037 2013-05-20 Tom Tromey <tromey@redhat.com>
5038
5039 * python/py-param.c (compute_enum_values): Decref 'item'.
5040
5041 2013-05-20 Tom Tromey <tromey@redhat.com>
5042
5043 * mi/mi-main.c: Include python-internal.h.
5044 (mi_cmd_list_features): Check gdb_python_initialized.
5045 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5046 (python_inferior_exit, python_new_objfile, add_thread_object)
5047 (delete_thread_object, py_free_inferior): Check
5048 gdb_python_initialized.
5049 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5050 gdb_python_initialized.
5051 * python/py-type.c (save_objfile_types): Check
5052 gdb_python_initialized.
5053 * python/python-internal.h (gdb_python_initialized): Declare.
5054 * python/python.c (ensure_python_env): Throw exception if
5055 Python not initialized.
5056 (before_prompt_hook, source_python_script_for_objfile)
5057 (start_type_printers, apply_type_printers,
5058 free_type_printers): Check gdb_python_initialized.
5059 * varobj.c (varobj_get_display_hint)
5060 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5061 (install_new_value_visualizer, varobj_set_visualizer)
5062 (value_get_print_value): Check gdb_python_initialized.
5063
5064 2013-05-20 Tom Tromey <tromey@redhat.com>
5065
5066 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5067 Check errors.
5068 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5069 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5070 Check errors.
5071 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5072 Check errors.
5073 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5074 Check errors.
5075 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5076 Check errors.
5077 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5078 init function to return 'int'.
5079 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5080 Return 'int'. Check errors.
5081 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5082 Check errors.
5083 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5084 Return 'int'. Check errors.
5085 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5086 Check errors.
5087 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5088 Check errors.
5089 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5090 Check errors.
5091 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5092 Check errors.
5093 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5094 Check errors.
5095 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5096 Check errors.
5097 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5098 Check errors.
5099 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5100 Check errors.
5101 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5102 Check errors.
5103 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5104 Check errors.
5105 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5106 Check errors.
5107 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5108 Check errors.
5109 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5110 Check errors.
5111 * python/python-internal.h (gdbpy_initialize_auto_load,
5112 gdbpy_initialize_values, gdbpy_initialize_frames,
5113 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5114 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5115 gdbpy_initialize_blocks, gdbpy_initialize_types,
5116 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5117 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5118 gdbpy_initialize_finishbreakpoints,
5119 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5120 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5121 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5122 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5123 gdbpy_initialize_signal_event,
5124 gdbpy_initialize_breakpoint_event,
5125 gdbpy_initialize_continue_event,
5126 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5127 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5128 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5129 * python/python.c (gdb_python_initialized): New global.
5130 (gdbpy_initialize_events): Return 'int'. Check errors.
5131 (_initialize_python): Check errors. Set
5132 gdb_python_initialized.
5133
5134 2013-05-20 Tom Tromey <tromey@redhat.com>
5135
5136 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5137 Decref the reslut of PyObject_CallMethod.
5138
5139 2013-05-20 Tom Tromey <tromey@redhat.com>
5140
5141 * python/py-event.c (gdbpy_initialize_event_generic): Return
5142 early if PyType_Ready fails.
5143
5144 2013-05-20 Tom Tromey <tromey@redhat.com>
5145
5146 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5147 as 'default' in the switch.
5148
5149 2013-05-20 Tom Tromey <tromey@redhat.com>
5150
5151 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5152 get_addr_from_python calls out of TRY_CATCH.
5153 (infpy_write_memory, infpy_search_memory): Likewise.
5154 * python/py-utils.c (get_addr_from_python): Return negative
5155 value on error. Use TRY_CATCH.
5156 * python/python-internal.h (get_addr_from_python): Use
5157 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5158
5159 2013-05-20 Tom Tromey <tromey@redhat.com>
5160
5161 * python/py-event.c (evpy_emit_event): Decref the
5162 result of PyObject_CallFunctionObjArgs.
5163
5164 2013-05-20 Tom Tromey <tromey@redhat.com>
5165
5166 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5167 Correctly decref.
5168
5169 2013-05-20 Tom Tromey <tromey@redhat.com>
5170
5171 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5172
5173 2013-05-20 Tom Tromey <tromey@redhat.com>
5174
5175 * python/py-event.h (gdbpy_initialize_event_generic): Use
5176 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5177 * python/py-evts.c (add_new_registry): Use
5178 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5179 * python/python-internal.h
5180 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5181
5182 2013-05-20 Tom Tromey <tromey@redhat.com>
5183
5184 * python/py-arch.c (archpy_disassemble): Update.
5185 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5186 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5187 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5188 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5189 macro.
5190 (GDB_PY_HANDLE_EXCEPTION): Update.
5191 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5192
5193 2013-05-20 Tom Tromey <tromey@redhat.com>
5194
5195 * python/python-internal.h (events_object_type): Remove.
5196
5197 2013-05-20 Tom Tromey <tromey@redhat.com>
5198
5199 * python/py-event.h (evpy_emit_event): Use
5200 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5201 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5202 New macro.
5203
5204 2013-05-20 Tom Tromey <tromey@redhat.com>
5205
5206 * py-evtregistry.c (create_event_object): Decref
5207 eventregistry_object if PyList_New fails.
5208
5209 2013-05-20 Tom Tromey <tromey@redhat.com>
5210
5211 * py-cmd.c (gdbpy_string_to_argv): Check result of
5212 PyList_New.
5213
5214 2013-05-20 Tom Tromey <tromey@redhat.com>
5215
5216 * python/python.c (before_prompt_hook): Add cleanup to
5217 decref 'hook'.
5218
5219 2013-05-20 Tom Tromey <tromey@redhat.com>
5220
5221 * python/py-function.c (fnpy_init): Decref result of
5222 PyObject_GetAttrString.
5223
5224 2013-05-20 Tom Tromey <tromey@redhat.com>
5225
5226 * python/py-threadevent.c (get_event_thread): Use
5227 CPYCHECKER_RETURNS_BORROWED_REF.
5228 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5229 New define.
5230 (pspace_to_pspace_object, objfile_to_objfile_object)
5231 (find_thread_object): Use it.
5232
5233 2013-05-20 Tom Tromey <tromey@redhat.com>
5234
5235 * python/py-arch.c (arch_object_type): Use
5236 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5237 * python/py-block.c (block_syms_iterator_object_type):
5238 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5239 * python/py-bpevent.c (breakpoint_event_object_type):
5240 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5241 * python/py-cmd.c (cmdpy_object_type): Use
5242 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5243 * python/py-continueevent.c (continue_event_object_type):
5244 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5245 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5246 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5247 * python/py-events.h (thread_event_object_type):
5248 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5249 * python/py-evtregistry.c (eventregistry_object_type): Use
5250 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5251 * python/py-exitedevent.c (exited_event_object_type):
5252 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5253 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5254 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5255 * python/py-function.c (fnpy_object_type): Use
5256 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5257 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5258 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5259 * python/py-infthread.c (thread_object_type): Use
5260 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5261 * python/py-lazy-string.c (lazy_string_object_type):
5262 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5263 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5264 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5265 * python/py-objfile.c (objfile_object_type): Use
5266 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5267 * python/py-param.c (parmpy_object_type):
5268 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5269 * python/py-progspace.c (pspace_object_type):
5270 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5271 * python/py-signalevent.c (signal_event_object_type):
5272 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5273 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5274 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5275 * python/py-type.c (type_object_type, field_object_type)
5276 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5277 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5278 define.
5279 (value_object_type, block_object_type, symbol_object_type)
5280 (event_object_type, stop_event_object_type, breakpoint_object_type)
5281 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5282
5283 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5284
5285 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5286 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5287
5288 2013-05-20 Doug Evans <dje@google.com>
5289
5290 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5291 For Fission.
5292 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5293 reading_dwo_directly.
5294 (struct signatured_type): New member dwo_unit.
5295 (struct die_reader_specs): New member comp_dir.
5296 (create_signatured_type_table_from_index): Use malloc for
5297 all_type_units instead of objfile's obstack.
5298 (create_all_type_units): Ditto.
5299 (fill_in_sig_entry_from_dwo_entry): New function.
5300 (add_type_unit): New function.
5301 (lookup_dwo_signatured_type): New function.
5302 (lookup_dwp_signatured_type): New function.
5303 (lookup_signatured_type): New arg cu. All callers updated.
5304 (init_cu_die_reader): Initialize comp_dir.
5305 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5306 Change assert of matching type signatures to call error on mismatch.
5307 (lookup_dwo_unit): Add assert.
5308 (init_tu_and_read_dwo_dies): New function.
5309 (init_cutu_and_read_dies): Call it.
5310 (build_type_unit_groups): Handle case of no type unit groups created.
5311 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5312 (lookup_dwo_cutu): Tweak complaint.
5313 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5314 (dwarf2_per_objfile_free): Free all_type_units.
5315
5316 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5317
5318 * windows-nat.c (handle_unload_dll): Add missing empty line.
5319
5320 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5321
5322 * dwarf2read.c (prototyped_function_p): New function.
5323 (read_subroutine_type): Use it.
5324
5325 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5326
5327 * rs6000-aix-tdep.c: De-indent some example code provided
5328 as a comment.
5329
5330 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5331
5332 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5333 region is ok for a hardware watchpoint using the new ptrace interface
5334 on Power servers.
5335
5336 2013-05-17 Doug Evans <dje@google.com>
5337
5338 * NEWS: Mention new maintenance commands check-symtabs, and
5339 expand-symtabs, and renamed check-psymtabs.
5340 * psymtab.c (maintenance_check_psymtabs): Renamed from
5341 maintenance_check_symtabs. Only process already-expanded symbol
5342 tables.
5343 (_initialize_psymtab): Update.
5344 * symmisc.c (maintenance_check_symtabs): New function.
5345 (maintenance_expand_name_matcher): New function
5346 (maintenance_expand_file_matcher): New function
5347 (maintenance_expand_symtabs): New function.
5348 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5349 commands.
5350
5351 2013-05-17 Tom Tromey <tromey@redhat.com>
5352
5353 * python/py-inferior.c (infpy_read_memory): Don't call
5354 PyErr_SetString if PyObject_New fails.
5355 * python/py-frame.c (frame_info_to_frame_object): Don't call
5356 PyErr_SetString if PyObject_New fails.
5357
5358 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5359
5360 * acinclude.m4: Add check for dlopen in libdl.
5361 * configure.ac: Ditto.
5362 * configure: Regenerate.
5363
5364 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5365
5366 * frame.c (frame_stash): Convert to htab.
5367 (frame_addr_hash): New function.
5368 (frame_addr_hash_eq): New function.
5369 (frame_stash_create): Convert function to create
5370 a hash table.
5371 (frame_stash_add): Convert function to add an entry to a hash
5372 table.
5373 (frame_stash_find): Convert function to search the hash table.
5374 (frame_stash_invalidate): Convert function to empty the hash
5375 table.
5376 (get_frame_id): Only add to stash if a frame_id is created.
5377 (_initialize_frame): Call frame_stash_create.
5378
5379 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5380
5381 * configure.ac: Ensure MIG is available when building for GNU Hurd
5382 hosts.
5383 * configure: Regenerate.
5384
5385 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5386
5387 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5388
5389 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5390
5391 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5392 all cleanups are done before returning from this function.
5393
5394 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5395
5396 * utils.h: #include "exceptions.h".
5397 (enum errors): Remove partial declaration.
5398
5399 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5400
5401 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5402 * gdbarch.h, gdbarch.c: Regenerate.
5403 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5404 handling.
5405
5406 * rs6000-aix-tdep.h: New file.
5407 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5408 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5409 "xml-utils.h".
5410 (struct field_info, struct ld_info_desc): New types.
5411 (ld_info32_desc, ld_info64_desc): New static constants.
5412 (struct ld_info): New type.
5413 (rs6000_aix_extract_ld_info): New function.
5414 (rs6000_aix_shared_library_to_xml): Likewise.
5415 (rs6000_aix_ld_info_to_xml): Likewise.
5416 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5417 (rs6000_aix_init_osabi): Add call to
5418 set_gdbarch_core_xfer_shared_libraries_aix.
5419 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5420 Remove "xml-utils.h" include.
5421 (LdInfo): Delete typedef.
5422 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5423 Delete macros.
5424 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5425 Adjust code accordingly.
5426 (rs6000_core_ldinfo): Delete, folded into
5427 rs6000_aix_core_xfer_shared_libraries_aix.
5428 (rs6000_xfer_shared_library): Delete.
5429 (rs6000_xfer_shared_libraries): Reimplement.
5430
5431 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5432
5433 * record.c (record_goto_cmdlist): New.
5434 (cmd_record_goto): Split into this ...
5435 (cmd_record_goto_begin): ... this
5436 (cmd_record_goto_end): ... and this.
5437 (_initialize_record): Change "record goto" to prefix command.
5438 Add commands for "record goto begin" and "record goto end".
5439 Add an alias for "record goto start" to "record goto begin".
5440
5441 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5442
5443 * linespec.c (convert_linespec_to_sals): New comment for
5444 SOURCE_FILENAME assignment.
5445
5446 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5447
5448 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5449 internal_warning.
5450
5451 2013-05-14 Tom Tromey <tromey@redhat.com>
5452
5453 * eval.c (parse_and_eval_long): Make 'exp' const.
5454 * value.h (parse_and_eval_long): Update.
5455
5456 2013-05-14 Tom Tromey <tromey@redhat.com>
5457
5458 * ui-file.c (gdb_fopen): Make arguments const.
5459 * ui-file.h (gdb_fopen): Make arguments const.
5460
5461 2013-05-14 Tom Tromey <tromey@redhat.com>
5462
5463 * remote.c (remote_set_trace_notes): Make arguments const.
5464 * target.c (update_current_target): Update cast.
5465 * target.h (to_set_trace_notes): Make arguments const.
5466
5467 2013-05-14 Tom Tromey <tromey@redhat.com>
5468
5469 * go32-nat.c (go32_terminal_info): Make 'args' const.
5470 * inferior.h (child_terminal_info): Update.
5471 * inflow.c (child_terminal_info): Make 'args' const.
5472 * target.c (default_terminal_info): Make 'args' const.
5473 (debug_to_terminal_save_ours): Likewise.
5474 * target.h (struct target_ops) <to_terminal_info>: Make argument
5475 const.
5476
5477 2013-05-13 Tom Tromey <tromey@redhat.com>
5478
5479 * gcore.c (create_gcore_bfd): Make 'filename' const.
5480 * gcore.h (create_gcore_bfd): Make 'filename' const.
5481 * record-full.c (record_full_save): Make 'recfilename' const.
5482 * target.c (target_save_record): Make 'filename' const.
5483 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5484 const.
5485 (target_save_record): Likewise.
5486
5487 2013-05-13 Tom Tromey <tromey@redhat.com>
5488
5489 PR gdb/15338:
5490 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5491 ranges section has been read.
5492
5493 2013-05-13 Tom Tromey <tromey@redhat.com>
5494
5495 PR exp/15364:
5496 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5497 STRUCTOP_PTR>: Return a not_lval value for
5498 EVAL_AVOID_SIDE_EFFECTS.
5499 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5500 for EVAL_AVOID_SIDE_EFFECTS.
5501
5502 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5503
5504 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5505 floating point registers to register type before storing
5506 value.
5507 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5508 Likewise.
5509
5510 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5511 Tom Tromey <tromey@redhat.com>
5512
5513 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5514 New functions.
5515 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5516 Declare.
5517 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5518 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5519 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5520 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5521
5522 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5523 Tom Tromey <tromey@redhat.com>
5524
5525 PR build/15414:
5526 * configure: Rebuild.
5527 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5528 with -Wno-format.
5529
5530 2013-05-10 Pedro Alves <palves@redhat.com>
5531
5532 * remote.c (_initialize_remote): Fix spelling of
5533 qXfer:traceframe-info:read packet in packet config command.
5534
5535 2013-05-10 David Taylor <dtaylor@emc.com>
5536
5537 PR remote/15455
5538
5539 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5540 "QTro" at start of packet.
5541
5542 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5543
5544 * solib-aix.c (solib_aix_relocate_section_addresses):
5545 For the .bss section action, apply the same offset as
5546 the .data section.
5547
5548 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5549
5550 * solib-aix.c (solib_aix_relocate_section_addresses):
5551 Remove FIXME comment.
5552
5553 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5554
5555 PR tdep/15420:
5556 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5557 New functions, directly copied from sparc-sol-thread.c.
5558 * sparc-sol-thread.c: Delete.
5559 * configure.ac: Remove code handling sparc-solaris-thread.c.
5560 * configure: Regenerate.
5561
5562 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5563
5564 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5565 filter logic.
5566 (backtrace_command): Add "no-filters" option parsing.
5567 (_initialize_stack): Alter help to reflect "no-filters" option.
5568 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5569 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5570 (py-frame.o): Add target
5571 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5572 filter files.
5573 * python/python.h: Add new frame filter constants, and flag enum.
5574 (apply_frame_filter): Add definition.
5575 * python/python.c (apply_frame_filter): New non-Python
5576 enabled function.
5577 * python/py-utils.c (py_xdecref): New function.
5578 (make_cleanup_py_xdecref): Ditto.
5579 * python/py-objfile.c: Declare frame_filters dictionary.
5580 (objfpy_dealloc): Add frame_filters dealloc.
5581 (objfpy_new): Initialize frame_filters attribute.
5582 (objfile_to_objfile_object): Ditto.
5583 (objfpy_get_frame_filters): New function.
5584 (objfpy_set_frame_filters): New function.
5585 * python/py-progspace.c: Declare frame_filters dictionary.
5586 (pspy_dealloc): Add frame_filters dealloc.
5587 (pspy_new): Initialize frame_filters attribute.
5588 (pspacee_to_pspace_object): Ditto.
5589 (pspy_get_frame_filters): New function.
5590 (pspy_set_frame_filters): New function.
5591 * python/py-framefilter.c: New file.
5592 * python/lib/gdb/command/frame_filters.py: New file.
5593 * python/lib/gdb/frames.py: New file.
5594 * python/lib/gdb/__init__.py: Initialize global frame_filters
5595 dictionary
5596 * python/lib/gdb/FrameDecorator.py: New file.
5597 * python/lib/gdb/FrameIterator.py: New file.
5598 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5599 * mi/mi-cmds.h: Declare.
5600 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5601 --no-frame-filter logic, and Python frame filter logic.
5602 (stack_enable_frame_filters): New function.
5603 (parse_no_frame_option): Ditto.
5604 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5605 filter logic.
5606 (mi_cmd_stack_list_locals): Ditto.
5607 (mi_cmd_stack_list_args): Ditto.
5608 (mi_cmd_stack_list_variables): Ditto.
5609 * NEWS: Add frame filter note.
5610
5611 2013-05-09 Doug Evans <dje@google.com>
5612
5613 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5614 All callers updated.
5615 (syms_from_objfile): Ditto. Make static.
5616 (symbol_file_add_with_addrs): Renamed from
5617 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5618 num_offsets. All callers updated.
5619 * symfile.h (syms_from_objfile): Delete.
5620
5621 * symfile.c (decrement_reading_symtab): Add assert.
5622 (increment_reading_symtab): Ditto.
5623
5624 2013-05-09 Joel Brobecker <brobecker@adacore.com>
5625
5626 * source.c (forward_search_command): Replace call to getc
5627 by call to fgetc.
5628 (reverse_search_command): Likewise.
5629
5630 2013-05-08 Doug Evans <dje@google.com>
5631
5632 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5633 matching test.
5634
5635 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5636
5637 * sol-thread.c (info_cb): Factorize the code a little.
5638
5639 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5640
5641 * sol-thread.c (info_cb): Rework the output of the "maintenance
5642 info sol-threads" command a bit.
5643
5644 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5645
5646 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5647 Replace ti.ti_startfunc by ti.ti_pc.
5648
5649 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5650
5651 * solib-aix.c (solib_aix_free_library_list): New function
5652 for the case where HAVE_LIBEXPAT is not defined.
5653
5654 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5655
5656 PR breakpoints/15413:
5657 * breakpoint.c (condition_completer): Simplify the code to
5658 disconsider multiple locations of breakpoints when completing the
5659 "condition" command.
5660
5661 2013-05-07 Pierre Muller <muller@sourceware.org>
5662
5663 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5664 instead of <sys/wait.h>.
5665
5666 2013-05-07 Pierre Muller <muller@sourceware.org>
5667
5668 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5669 trailing new line from warning message.
5670
5671 2013-05-07 Pierre Muller <muller@sourceware.org>
5672
5673 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5674 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5675
5676 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5677
5678 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5679 error message (ARI fix).
5680
5681 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5682
5683 * features/library-list-aix.dtd: Replace library-list by
5684 library-list-aix.
5685 * rs6000-nat.c: Replace library-list by library-list-aix
5686 throughout.
5687 * solib-aix.c: Likewise.
5688
5689 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5690
5691 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5692 Renames TARGET_OBJECT_AIX_LIBRARIES.
5693 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5694 TARGET_OBJECT_LIBRARIES_AIX throughout.
5695 * solib-aix.c: Likwise.
5696
5697 2013-05-07 Yao Qi <yao@codesourcery.com>
5698
5699 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5700 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5701
5702 2013-05-07 Yao Qi <yao@codesourcery.com>
5703
5704 * solib-dsbt.c (enable_break): Declare.
5705 (dsbt_current_sos): Remove call to enable_break2.
5706 (enable_break2): Rename to enable_break. Set solib breakpoint
5707 on '_dl_debug_state'.
5708 (enable_break): Remove.
5709
5710 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
5711
5712 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5713 debug state prior to replicating existing hardware watchpoints or
5714 breakpoints.
5715
5716 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5717
5718 * gcore.c (gcore_create_callback): Ignore sections with
5719 separate_debug_objfile_backlink != NULL.
5720
5721 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5722 Andrew Jenner <andrew@codesourcery.com>
5723 Chung-Lin Tang <cltang@codesourcery.com>
5724 Julian Brown <julian@codesourcery.com>
5725
5726 Based on the nios2-elf port from Altera Corporation.
5727
5728 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5729 nios2-linux-tdep.o.
5730 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5731 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5732 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5733 * nios2-tdep.h: New.
5734 * nios2-tdep.c: New.
5735 * nios2-linux-tdep.c: New.
5736 * features/Makefile (WHICH): Add nios2-linux.
5737 (nios2-linux-expedite): Set.
5738 * features/nios2-cpu.xml: New.
5739 * features/nios2.xml: New.
5740 * features/nios2-linux.xml: New.
5741 * features/nios2.c: New (autogenerated).
5742 * features/nios2-linux.c: New (autogenerated).
5743 * regformats/nios2-linux.dat: New (autogenerated).
5744 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5745 and commands.
5746
5747 2013-05-06 Doug Evans <dje@google.com>
5748
5749 * symfile.c: Whitespace cleanup.
5750
5751 * solist.h (struct target_so_ops): New member clear_so.
5752 * solib-svr4.c (svr4_clear_so): New function.
5753 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5754 * solib.c (clear_so): Renamed from free_so_symbols.
5755 All callers updated. Call target clear_so if it exists.
5756
5757 2013-05-06 Tom Tromey <tromey@redhat.com>
5758
5759 * ada-lang.c (ada_value_primitive_packed_val): Don't
5760 call value_incref.
5761 * value.c (set_value_parent): Incref the new parent and decref
5762 the old parent.
5763 (value_copy, value_primitive_field): Use set_value_parent.
5764
5765 2013-05-06 Tom Tromey <tromey@redhat.com>
5766
5767 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5768 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5769 if needed.
5770 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5771 * dwarf2read.c (write_constant_as_bytes)
5772 (dwarf2_fetch_constant_bytes): New functions.
5773
5774 2013-05-06 Tom Tromey <tromey@redhat.com>
5775
5776 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5777 parameters.
5778 (dwarf2_const_value_attr): Update.
5779
5780 2013-05-06 Tom Tromey <tromey@redhat.com>
5781
5782 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5783 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5784 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5785 Remove declaration.
5786
5787 2013-05-06 Tom Tromey <tromey@redhat.com>
5788
5789 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5790 objfile's obstack.
5791
5792 2013-05-06 Doug Evans <dje@google.com>
5793
5794 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5795 * stabsread.h (process_one_symbol): Update declaration.
5796 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5797 * elfread.c (elf_symfile_relocate_probe): Ditto.
5798 * psymtab.c (relocate_psymtabs): Ditto.
5799 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5800 (objfile_relocate): Ditto.
5801 * objfiles.h (objfile_relocate): Update declaration.
5802 * symfile.c (relative_addr_info_to_section_offsets): Constify
5803 addrs parameter.
5804 (default_symfile_offsets): Ditto.
5805 (syms_from_objfile_1): Constify offsets parameter.
5806 (syms_from_objfile): Ditto.
5807 (symbol_file_add_with_addrs_or_offsets): Ditto.
5808 (symfile_map_offsets_to_segments): Constify data parameter.
5809 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5810 delta parameters of member relocate.
5811 (struct sym_probe_fns): Constify new_offsets,
5812 delta parameters of member sym_relocate_probe.
5813 (struct sym_fns): Constify section_addr_info parameter of member
5814 sym_offsets.
5815 (relative_addr_info_to_section_offsets): Update declaration.
5816 (default_symfile_offsets): Ditto.
5817 (syms_from_objfile): Ditto.
5818 (symfile_map_offsets_to_segments): Ditto.
5819
5820 * symfile.c (syms_from_objfile_1): Use correct section count when
5821 objfile->sf == NULL.
5822
5823 2013-05-06 Mike Frysinger <vapier@gentoo.org>
5824
5825 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5826
5827 2013-05-06 Doug Evans <dje@google.com>
5828
5829 * psympriv.h (struct partial_symtab): Augment comment for member
5830 section_offsets.
5831
5832 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5833
5834 Reimplement shared library support on ppc-aix...
5835 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5836 * features/library-list-aix.dtd: New file.
5837 * solib-aix.h, solib-aix.c: New file.
5838 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5839 (rs6000_find_toc_address_hook): Delete.
5840 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5841 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5842 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5843 "xml-utils.h".
5844 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5845 (vmap_symtab, fixup_breakpoints): Delete.
5846 (rs6000_xfer_shared_libraries): New function.
5847 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5848 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5849 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5850 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5851 (rs6000_xfer_shared_library): New function.
5852 (find_toc_address): Delete.
5853 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5854 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5855 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5856 before creating minimal symbol. Adjust function description
5857 accordingly.
5858 (scan_xcoff_symtab): Replace call to
5859 prim_record_minimal_symbol_and_info by call to
5860 record_minimal_symbol.
5861 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5862 around default_symfile_offsets.
5863 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5864 powerpc-aix targets.
5865 * config/rs6000/nm-rs6000.h: Delete.
5866 * config/powerpc/aix.mh (NAT_FILE): Delete.
5867 (NATDEPFILES): Remove xcoffsolib.o.
5868 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5869 (ALL_TARGET_OBS): Add solib-aix.o.
5870 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5871 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5872 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5873 * xcoffsolib.h, xcoffsolib.c: Delete.
5874
5875 * solib.c (reload_shared_libraries): Remove reference to
5876 SOLIB_CREATE_INFERIOR_HOOK.
5877 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5878 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5879 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5880 comment.
5881 * corelow.c (deprecated_core_resize_section_table): Delete.
5882 * exec.c: Remove include of xcoffsolib.h".
5883 (map_vmap, vmap): Delete.
5884 (exec_close_1): Remove references to vmap.
5885 (exec_file_attach): Remove vmap handling code, and reference
5886 to DEPRECATED_IBM6000_TARGET.
5887 (bfdsec_to_vmap): Delete.
5888 (exec_files_info): Remove block of code handling VMAP.
5889 * infcmd.c (post_create_inferior): Remove reference to
5890 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5891 * infrun.c (follow_exec): Remove reference to
5892 SOLIB_CREATE_INFERIOR_HOOK.
5893 * stack.c (print_frame): Remove reference to PC_SOLIB.
5894 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5895 (dsbt_relocate_main_executable): Likewise.
5896 * solib-frv.c (frv_current_sos): Likewise.
5897
5898 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5899
5900 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5901 to target_write_memory and target_read_memory.
5902
5903 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5904
5905 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5906 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5907
5908 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5909
5910 * darwin-nat.c: Replace all "%x" instances in format strings
5911 into "0x%x" throughout.
5912
5913 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5914
5915 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5916 gdb_assert by call to MACH_CHECK_ERROR.
5917 (darwin_attach_pid): Raise an error rather than a failed
5918 assertion when various system calls failed. Report a warning
5919 instead of raising a failed assertion when PREV_NOT is not NULL
5920 after call to mach_port_request_notification.
5921 (darwin_ptrace_me): Raise an error rather than a failed
5922 assertion when read returns nonzero.
5923
5924 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5925
5926 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5927
5928 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5929
5930 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5931
5932 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5933
5934 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5935 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5936 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5937 a stale cleanup. Fix double free of NAME.
5938
5939 2013-05-04 Eli Zaretskii <eliz@gnu.org>
5940
5941 * windows-nat.c (windows_delete_thread): Accept an additional
5942 argument, the thread's exit code, and announce thread death when
5943 print_thread_events is non-zero and we are deleting a thread that
5944 is not the main thread.
5945 (get_windows_debug_event): Pass thread exit code to
5946 windows_delete_thread.
5947
5948 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5949
5950 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5951 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5952 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5953 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5954 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5955 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5956 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5957 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5958 (gdbarch_tdep): New struct.
5959 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5960 E_NUM_REGS.
5961 (v850e3v5_register_name): New function.
5962 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5963 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5964 code handling the struct return conventions for the RH850 ABI.
5965 Update all callers.
5966 (v850_eight_byte_align_p): New function.
5967 (v850_push_call_dummy): Push structs by value, not by reference
5968 for the RH850 ABI. Add support for eight byte alignment.
5969 (v850_dbtrap_breakpoint_from_pc): New function.
5970 (v850_gdbarch_init): Add ABI detection code. Register
5971 v850e3v5_register_name for the v850e3v5 architecture. Set the
5972 number of registers for v850e3v5. Register
5973 v850_dbtrap_breakpoint_from_pc as appropriate.
5974 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5975
5976 2013-05-03 Doug Evans <dje@google.com>
5977
5978 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5979 of bfd_count_sections.
5980 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5981 * symfile.c (default_symfile_offsets): Ditto.
5982 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5983 one entry, not bfd_count_sections entries.
5984
5985 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5986
5987 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5988 `save' and `restore' register groups. Don't include SPL
5989 or SPH in these groups.
5990 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5991 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5992 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5993 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5994 dwarf2_append_unwinders().
5995
5996 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5997
5998 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5999 ignore SIGINT and SIGTRAP in case these internal signals are
6000 caught explicitely.
6001
6002 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6003
6004 * darwin-nat.c (darwin_read_write_inferior): Change types
6005 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6006 of copy_count to "mach_msg_type_number_t".
6007 (darwin_read_dyld_info): Change type of parameter
6008 rdaddr to "gdb_byte *".
6009
6010 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6011
6012 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6013 of &info->load_map from "char *" to "gdb_byte *".
6014
6015 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6016
6017 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6018 from "char *" to "gdb_byte *".
6019 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6020
6021 2013-04-30 Doug Evans <dje@google.com>
6022
6023 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6024 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6025 DWO stub. If DWO isn't found, just use stub.
6026 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6027
6028 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6029 calling init_cutu_and_read_dies.
6030
6031 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6032
6033 * target-descriptions.c (maint_print_c_tdesc_cmd):
6034 Add case to parse structures as register types and
6035 bitfields.
6036
6037 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6038
6039 * MAINTAINERS (Write After Approval): Add myself to the list.
6040
6041 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6042
6043 * sol-thread.c (rw_common): Change type of parameter "buf"
6044 to "gdb_byte *".
6045 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6046 rw_common to "gdb_byte *" instead of "char *".
6047
6048 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6049
6050 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6051 of local variable msym to const struct bound_minimal_symbol.
6052 Adjust use accordingly.
6053 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6054
6055 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6056
6057 * i386gnu-nat.c (CREG_OFFSET): New macro.
6058 (creg_offset): New array.
6059 (CREG_ADDR): Use creg_offset instead of reg_offset.
6060
6061 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6062
6063 * mep-tdep.c (mep_write_pc): Delete.
6064 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6065 Add call to set_gdbarch_pc_regnum.
6066
6067 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6068
6069 * common/filestuff.c: Replace #include <dirent.h> by
6070 #include "gdb_dirent.h".
6071
6072 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6073
6074 * common/filestuff.c: Replace #include <sys/stat.h> by
6075 #include "gdb_stat.h".
6076
6077 2013-04-29 Pierre Muller <muller@sourceware.org>
6078
6079 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6080 editCase function rule.
6081 (get_DW_AT_signature_type): Likewise.
6082
6083 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6084
6085 * m32r-tdep.c (m32r_write_pc): Delete.
6086 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6087 Add call to set_gdbarch_pc_regnum.
6088
6089 2013-04-29 Pierre Muller <muller@sourceware.org>
6090
6091 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6092
6093 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6094
6095 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6096
6097 2013-04-28 Yao Qi <yao@codesourcery.com>
6098
6099 * solib-dsbt.c (fetch_loadmap): Re-indent.
6100 (displacement_from_map, enable_break2): Likewise.
6101 (dsbt_relocate_section_addresses): Likewise.
6102
6103 2013-04-26 Joel Brobecker <brobecker@adacore.com>
6104
6105 GDB 7.6 released.
6106
6107 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6108
6109 PR corefiles/14983:
6110 * dwarf2read.c (process_full_comp_unit): Always create a static
6111 block.
6112
6113 2013-04-25 Hui Zhu <hui@codesourcery.com>
6114
6115 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6116 to loc->cmd_bytecode.
6117
6118 2013-04-24 Doug Evans <dje@google.com>
6119
6120 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6121
6122 2013-04-22 Keith Seitz <keiths@redhat.com>
6123
6124 * tracepoint.c (trace_save): Call the writer's start method.
6125
6126 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6127
6128 PR gdb/10462
6129 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6130 before argument.
6131
6132 2013-04-23 Tom Tromey <tromey@redhat.com>
6133
6134 * common/filestuff.c: Check USE_WIN32API before including
6135 sys/socket.h.
6136 (HAVE_F_GETFD): New define.
6137 (mark_cloexec): Check HAVE_F_GETFD.
6138 (gdb_open_cloexec): Change 'mode' to unsigned long.
6139 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6140 (gdb_pipe_cloexec): Check HAVE_PIPE.
6141 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6142 long.
6143
6144 2013-04-23 Hui Zhu <hui@codesourcery.com>
6145
6146 PR gdb/15293
6147 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6148
6149 2013-04-23 Hui Zhu <hui@codesourcery.com>
6150
6151 PR gdb/15165
6152 * breakpoint.c (dprintf_print_recreate): New.
6153 (save_breakpoints): Let it not save dprintf commands.
6154 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6155
6156 2013-04-22 Tom Tromey <tromey@redhat.com>
6157
6158 PR gdb/7912:
6159 * Makefile.in (SFILES): Add filestuff.c
6160 (COMMON_OBS): Add filestuff.o.
6161 (filestuff.o): New target.
6162 * auto-load.c (auto_load_objfile_script_1): Use
6163 gdb_fopen_cloexec.
6164 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6165 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6166 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6167 * common/agent.c (gdb_connect_sync_socket): Use
6168 gdb_socket_cloexec.
6169 * common/filestuff.c: New file.
6170 * common/filestuff.h: New file.
6171 * common/linux-osdata.c (linux_common_core_of_thread)
6172 (command_from_pid, commandline_from_pid, print_source_lines)
6173 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6174 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6175 gdb_fopen_cloexec.
6176 * common/linux-procfs.c (linux_proc_get_int)
6177 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6178 * config.in, configure: Rebuild.
6179 * configure.ac: Don't check for sys/socket.h. Check for
6180 fdwalk, pipe2.
6181 * corelow.c (core_open): Use gdb_open_cloexec.
6182 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6183 * fork-child.c (fork_inferior): Call close_most_fds.
6184 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6185 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6186 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6187 Use gdb_fopen_cloexec.
6188 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6189 gdb_open_cloexec.
6190 (linux_async_pipe): Use gdb_pipe_cloexec.
6191 * remote-fileio.c (remote_fileio_func_open): Use
6192 gdb_open_cloexec.
6193 * remote.c (remote_file_put, remote_file_get): Use
6194 gdb_fopen_cloexec.
6195 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6196 close_most_fds.
6197 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6198 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6199 * solib.c (solib_find): Use gdb_open_cloexec.
6200 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6201 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6202 (tfile_open): Use gdb_open_cloexec.
6203 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6204 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6205 * xml-support.c (xml_fetch_content_from_file): Use
6206 gdb_fopen_cloexec.
6207 * main.c (captured_main): Call notice_open_fds.
6208
6209 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6210
6211 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6212 'char *' to 'gdb_byte *'.
6213 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6214 'gdb_byte'.
6215
6216 2013-04-22 Yao Qi <yao@codesourcery.com>
6217
6218 * infrun.c: Fix typo in comment.
6219
6220 2013-04-22 Andrew Haley <aph@redhat.com>
6221
6222 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6223 instead of "long".
6224
6225 2013-04-20 Yao Qi <yao@codesourcery.com>
6226
6227 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6228 'char *' to 'gdb_byte *'. Cast the return value of
6229 'bt_ctf_get_char_array' to 'gdb_byte *'.
6230
6231 2013-04-19 Pedro Alves <palves@redhat.com>
6232
6233 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6234 -Wpointer-sign.
6235 * configure: Regenerate.
6236
6237 2013-04-19 Pedro Alves <palves@redhat.com>
6238
6239 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6240 'void *'.
6241
6242 2013-04-19 Pedro Alves <palves@redhat.com>
6243
6244 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6245 Change type of 'myaddr' parameter to gdb_byte pointer.
6246 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6247 to 'long long' pointer instead of to 'unsigned long long'.
6248 (monitor_write_memory_block, monitor_read_memory_single)
6249 (monitor_read_memory): Change type of 'myaddr' parameter to
6250 gdb_byte pointer.
6251
6252 2013-04-19 Pedro Alves <palves@redhat.com>
6253
6254 * record.c (validate_history_size): Make parameter 'setting'
6255 unsigned.
6256
6257 2013-04-19 Pedro Alves <palves@redhat.com>
6258
6259 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6260 to 'gdb_byte *'.
6261
6262 2013-04-19 Pedro Alves <palves@redhat.com>
6263
6264 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6265 local to int.
6266
6267 2013-04-19 Pedro Alves <palves@redhat.com>
6268
6269 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6270 * ada-tasks.c (read_fat_string_value): Likewise.
6271
6272 2013-04-19 Pedro Alves <palves@redhat.com>
6273
6274 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6275 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6276 'offset', and adjust.
6277
6278 2013-04-19 Pedro Alves <palves@redhat.com>
6279
6280 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6281 (read_index_from_section): Add cast to 'char *'.
6282
6283 2013-04-19 Pedro Alves <palves@redhat.com>
6284
6285 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6286
6287 2013-04-19 Pedro Alves <palves@redhat.com>
6288
6289 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6290
6291 2013-04-19 Pedro Alves <palves@redhat.com>
6292
6293 * record-full.c (record_full_get_bookmark): Change local 'ret'
6294 type to char * and add cast to gdb_byte *.
6295 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6296 string.
6297 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6298
6299 2013-04-19 Pedro Alves <palves@redhat.com>
6300
6301 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6302 * python/py-prettyprint.c (print_string_repr): Change type of
6303 'output' local to char *. Add cast to gdb_byte * in
6304 LA_PRINT_STRING call.
6305 (print_children): Change type of 'output' local to char *.
6306 * python/py-value.c (valpy_string): Add cast to const char * in
6307 PyUnicode_Decode call.
6308
6309 2013-04-19 Pedro Alves <palves@redhat.com>
6310
6311 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6312 and change its type to 'const char *'. Adjust.
6313 (mips_send_packet): Add cast to 'char *', and remove cast to
6314 'unsigned char *'.
6315 (mips_receive_packet): Remove cast to 'unsigned char *'.
6316 (mips_load_srec): Use bfd_byte.
6317 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6318 (pmon_checkset): Make 'value' parameter unsigned.
6319
6320 2013-04-19 Pedro Alves <palves@redhat.com>
6321
6322 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6323
6324 2013-04-19 Pedro Alves <palves@redhat.com>
6325
6326 * remote.c (remote_write_bytes_aux, compare_sections_command)
6327 (remote_read_qxfer)
6328 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6329 (remote_hostio_readlink, remote_bfd_iovec_pread)
6330 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6331 binary buffer, and char when buffer is used as string.
6332 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6333 (trace_save, tfile_open, traceframe_walk_blocks)
6334 (tfile_fetch_registers): Likewise.
6335
6336 2013-04-19 Pedro Alves <palves@redhat.com>
6337
6338 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6339 buffer and size_t size. Adjust.
6340 * ser-base.h (ser_base_write): Adjust.
6341 * ser-go32.c (cnts): Change type to size_t.
6342 (dos_write): Change prototype -- take 'void *'
6343 buffer and size_t size. Adjust.
6344 (dos_info): Print elements of 'cnts' as unsigned long.
6345 * serial.c (serial_write): Likewise.
6346 * serial.h (serial_write): Adjust.
6347 (struct serial_ops) <write>: Change prototype -- take 'void *'
6348 buffer and size_t size. Adjust.
6349
6350 2013-04-19 Pedro Alves <palves@redhat.com>
6351
6352 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6353 gdb_byte *.
6354 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6355
6356 2013-04-19 Pedro Alves <palves@redhat.com>
6357
6358 * alpha-tdep.c (alpha_extract_return_value): Use
6359 regcache_cooked_read_unsigned to read 'v0'.
6360
6361 2013-04-19 Pedro Alves <palves@redhat.com>
6362
6363 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6364 parameters 'at', 'as' and 'offset' to uint32_t.
6365
6366 2013-04-19 Pedro Alves <palves@redhat.com>
6367
6368 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6369 'is64' to signed 'int'.
6370
6371 2013-04-19 Pedro Alves <palves@redhat.com>
6372
6373 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6374 parameter to int *.
6375
6376 2013-04-19 Pedro Alves <palves@redhat.com>
6377
6378 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6379 'insnbuf' buffer type to unsigned int[].
6380
6381 2013-04-19 Pedro Alves <palves@redhat.com>
6382
6383 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6384
6385 2013-04-19 Pedro Alves <palves@redhat.com>
6386
6387 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6388 unsigned long *.
6389
6390 2013-04-19 Pedro Alves <palves@redhat.com>
6391
6392 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6393 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6394 UINT_MAX.
6395 * mips-tdep.c (heuristic_fence_post): Change type to int.
6396 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6397
6398 2013-04-19 Pedro Alves <palves@redhat.com>
6399
6400 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6401 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6402 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6403
6404 2013-04-19 Pedro Alves <palves@redhat.com>
6405
6406 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6407 it to get a string view of the byte buffer.
6408 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6409 type to gdb_byte *. Adjust.
6410 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6411 Change local to char *.
6412 * solib-darwin.c (find_program_interpreter): Change return type to
6413 char *. Adjust.
6414 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6415 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6416 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6417 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6418 * solib-svr4.c (find_program_interpreter): Change return type to
6419 char *. Adjust.
6420 (enable_break): Change local 'interp_name' to char *.
6421 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6422 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6423 (spu_pseudo_register_write_spu): Use char for string buffer.
6424 Adjust.
6425 (info_spu_event_command, info_spu_signal_command): Add casts to
6426 'char *'.
6427
6428 2013-04-19 Pedro Alves <palves@redhat.com>
6429
6430 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6431 gdb_byte[].
6432 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6433 * ada-lang.c (ada_value_assign): Use gdb_byte.
6434 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6435 (alphanbsd_sigtramp_offset): Use gdb_byte.
6436 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6437 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6438 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6439 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6440 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6441 * arm-tdep.c (arm_stub_unwind_sniffer)
6442 (arm_displaced_init_closure): Use gdb_byte.
6443 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6444 (arm_default_thumb_le_breakpoint)
6445 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6446 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6447 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6448 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6449 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6450 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6451 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6452 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6453 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6454 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6455 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6456 (cris_store_return_value, cris_extract_return_value): Use
6457 gdb_byte.
6458 (constraint): Change type of parameter to char * from signed
6459 char*. Use gdb_byte.
6460 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6461 of local buffer to gdb_byte *.
6462 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6463 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6464 (add_address_entry): Change type of local buffer to gdb_byte[].
6465 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6466 (frv_push_dummy_call): Use gdb_byte.
6467 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6468 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6469 (hppa_hpux_supply_save_state): Use gdb_byte.
6470 * hppa-tdep.c (hppa32_push_dummy_call)
6471 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6472 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6473 (slotN_contents, replace_slotN_contents): Change type of parameter
6474 to gdb_byte *.
6475 (fetch_instruction, ia64_pseudo_register_write)
6476 (ia64_register_to_value, ia64_value_to_register)
6477 (ia64_extract_return_value, ia64_store_return_value)
6478 (ia64_push_dummy_call): Use gdb_byte.
6479 * m32c-tdep.c (m32c_return_value): Remove cast.
6480 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6481 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6482 gdb_byte.
6483 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6484 * mn10300-tdep.c (mn10300_store_return_value)
6485 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6486 gdb_byte.
6487 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6488 (moxie_process_record): Remove casts.
6489 * ppc-ravenscar-thread.c (supply_register_at_address)
6490 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6491 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6492 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6493 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6494 * remote.c (compare_sections_command): Use gdb_byte.
6495 * score-tdep.c (score7_free_memblock): Change type of parameter to
6496 gdb_byte *.
6497 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6498 gdb_byte *. Use gdb_byte.
6499 (sh_push_dummy_call_fpu): Use gdb_byte.
6500 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6501 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6502 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6503 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6504 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6505 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6506 (sh64_store_return_value, sh64_register_convert_to_virtual):
6507 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6508 (sh64_pseudo_register_write): Use gdb_byte.
6509 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6510 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6511 buffer.
6512 (irix_current_sos): Use gdb_byte.
6513 * solib-som.c (som_current_sos): Use gdb_byte.
6514 * sparc-ravenscar-thread.c (supply_register_at_address)
6515 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6516 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6517 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6518 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6519 'gdb_byte *'.
6520 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6521 'gdb_byte *'.
6522 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6523 * xstormy16-tdep.c (xstormy16_extract_return_value)
6524 (xstormy16_store_return_value): Change parameter type to
6525 'gdb_byte *'. Adjust.
6526 (xstormy16_push_dummy_call): Use gdb_byte.
6527 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6528 (call0_analyze_prologue, execute_code): Use gdb_byte.
6529
6530 2013-04-19 Vladimir Kargov <kargov@gmail.com>
6531 Pedro Alves <palves@redhat.com>
6532
6533 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6534 value contents.
6535
6536 2013-04-17 Doug Evans <dje@google.com>
6537
6538 * dwarf2read.c (struct signatured_type): New member type.
6539 (struct attribute): Replace member signatured_type with signature.
6540 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6541 (read_call_site_scope): Call follow_die_ref instead of
6542 follow_die_ref_or_sig.
6543 (read_structure_type): Rewrite handling of signatured types.
6544 (read_enumeration_type): Ditto.
6545 (read_attribute_value): Update.
6546 (build_error_marker_type): New function.
6547 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6548 Don't call error for bad types, just build an error marker type.
6549 (dump_die_shallow): Update.
6550 (follow_die_sig_1): Renamed from follow_die_sig.
6551 Don't call error for bad types, instead return NULL.
6552 (follow_die_sig): New function.
6553 (get_signatured_type, get_DW_AT_signature_type): New functions.
6554
6555 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6556
6557 * aarch64-tdep.c (aarch64_write_pc): Removed.
6558 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6559 function.
6560
6561 2013-04-17 Yao Qi <yao@codesourcery.com>
6562
6563 * top.c (print_gdb_configuration): Print configure-time
6564 parameter on using libbabeltrace or not.
6565
6566 2013-04-16 Pedro Alves <palves@redhat.com>
6567
6568 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6569
6570 2013-04-16 Pedro Alves <palves@redhat.com>
6571
6572 * common/glibc_thread_db.h: Update from upstream glibc
6573 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6574
6575 2013-04-16 Pedro Alves <palves@redhat.com>
6576
6577 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6578 * common/glibc_thread_db.h: ... this new file ...
6579 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6580
6581 2013-04-16 Will Newton <will.newton@gmail.com>
6582 Pedro Alves <palves@redhat.com>
6583
6584 PR build/11881
6585
6586 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6587 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6588 HAVE_THREAD_DB_H.
6589
6590 2013-04-16 Pedro Alves <palves@redhat.com>
6591 Eli Zaretskii <eliz@gnu.org>
6592
6593 * NEWS: Mention "set foo unlimited".
6594
6595 2013-04-15 Doug Evans <dje@google.com>
6596
6597 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6598 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6599 (create_dwo_cu_reader): Renamed from
6600 create_dwo_debug_info_hash_table_reader.
6601 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6602 Remove support for multiple CUs in a DWO file.
6603 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6604
6605 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6606 instead of phex.
6607 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6608 (create_dwo_in_dwp): Ditto.
6609
6610 2013-04-15 Tom Tromey <tromey@redhat.com>
6611
6612 * NEWS: Move recent entries into "since 7.6" section.
6613
6614 2013-04-15 Tom Tromey <tromey@redhat.com>
6615
6616 PR c++/13588:
6617 * NEWS: Update.
6618 * break-catch-throw.c (struct exception_catchpoint)
6619 <exception_rx, pattern>: New fields.
6620 (fetch_probe_arguments, dtor_exception_catchpoint)
6621 (check_status_exception_catchpoint)
6622 (print_one_detail_exception_catchpoint): New functions.
6623 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6624 Compile regular expression if needed.
6625 (extract_exception_regexp): New function.
6626 (catch_exception_command_1): Use extract_exception_regexp.
6627 (compute_exception): Use fetch_probe_arguments.
6628 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6629 and check_status fields.
6630 * cp-abi.c (cplus_typename_from_type_info): New function.
6631 * cp-abi.h (cplus_typename_from_type_info): Declare.
6632 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6633 * gdb_regex.h (compile_rx_or_error): Declare.
6634 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6635 comment.
6636 (init_gnuv3_ops): Set get_type_from_type_info field.
6637 * probe.c (compile_rx_or_error): Move...
6638 * utils.c (compile_rx_or_error): ... here.
6639
6640 2013-04-15 Tom Tromey <tromey@redhat.com>
6641
6642 PR c++/15176:
6643 * NEWS: Update.
6644 * break-catch-throw.c (compute_exception): New function.
6645 (exception_funcs): New global.
6646 (_initialize_break_catch_throw): Create $_exception.
6647 * cp-abi.c (cplus_type_from_type_info): New function.
6648 * cp-abi.h (cplus_type_from_type_info): Declare.
6649 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6650 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6651 (gnuv3_get_type_from_type_info): New functions.
6652 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6653
6654 2013-04-15 Tom Tromey <tromey@redhat.com>
6655
6656 * break-catch-throw.c (struct exception_names): New.
6657 (exception_functions): Change type.
6658 (re_set_exception_catchpoint): Look for SDT probes.
6659
6660 2013-04-15 Tom Tromey <tromey@redhat.com>
6661
6662 PR c++/10119:
6663 * break-catch-throw.c (exception_functions): New global.
6664 (gnu_v3_exception_catchpoint_ops): Move earlier.
6665 (struct exception_catchpoint): New.
6666 (classify_exception_breakpoint): Rewrite.
6667 (re_set_exception_catchpoint): New function.
6668 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6669 Allocate a struct exception_catchpoint.
6670 (catch_exception_command_1): Update.
6671 (initialize_throw_catchpoint_ops): Set 're_set' method.
6672
6673 2013-04-15 Tom Tromey <tromey@redhat.com>
6674
6675 * Makefile.in (SFILES): Add break-catch-throw.c
6676 (COMMON_OBS): Add break-catch-throw.o.
6677 * break-catch-throw.c: New file.
6678 * breakpoint.c: Move exception-catching code to new file.
6679 (ep_parse_optional_if_clause): No longer static.
6680 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6681
6682 2013-04-15 Tom Tromey <tromey@redhat.com>
6683
6684 PR c++/9065:
6685 * NEWS: Update.
6686 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6687 * c-exp.y (TYPEID): New token.
6688 (exp): Add new TYPEID productions.
6689 (ident_tokens): Add "typeid".
6690 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6691 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6692 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6693 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6694 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6695 case.
6696 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6697 (build_std_type_info_type, gnuv3_get_typeid_type)
6698 (gnuv3_get_typeid): New functions.
6699 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6700 new fields on ABI object.
6701 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6702 * std-operator.def (OP_TYPEID): New.
6703
6704 2013-04-15 Tom Tromey <tromey@redhat.com>
6705
6706 * elfread.c (elf_symtab_read): Install versioned symbol under
6707 unversioned name as well.
6708
6709 2013-04-15 Tom Tromey <tromey@redhat.com>
6710
6711 PR c++/11990:
6712 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6713 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6714 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6715 (gdb_demangle): New function.
6716 * cp-support.h (gdb_demangle): Declare.
6717 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6718 (dwarf2_name): Use gdb_demangle.
6719 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6720 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6721 suffixes from name.
6722 (gnuv3_print_method_ptr): Use gdb_demangle.
6723 * jv-lang.c (java_demangle): Use gdb_demangle.
6724 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6725 * language.c (unk_lang_demangle): Use gdb_demangle.
6726 * symtab.c (symbol_find_demangled_name)
6727 (demangle_for_lookup): Use gdb_demangle.
6728
6729 2013-04-15 Tom Tromey <tromey@redhat.com>
6730
6731 PR c++/12824:
6732 * NEWS: Update.
6733 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6734 New constant.
6735 (classify_exception_breakpoint): New function.
6736 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6737 (print_mention_exception_catchpoint)
6738 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6739 (catch_exception_command_1): Handle "rethrow" catchpoint.
6740 (catch_rethrow_command): New function.
6741 (_initialize_breakpoint): Add "catch rethrow" command.
6742
6743 2013-04-15 Pierre Muller <muller@sourceware.org>
6744
6745 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6746 set_gdbarch_write_pc as deprecated anymore.
6747
6748 2013-04-15 Joel Brobecker <brobecker@adacore.com>
6749
6750 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6751 declarations.
6752
6753 2013-04-13 Yao Qi <yao@codesourcery.com>
6754
6755 * ctf.c (_initialize_ctf): Include "completer.h".
6756 Call add_target_with_completer instead of add_target.
6757
6758 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6759
6760 Fix GDB regression related to PR binutils/14813.
6761 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6762 * minidebug.c (lzma_close): Add return value comment.
6763 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6764 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6765 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6766
6767 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6768
6769 * config.in: Regenerate.
6770
6771 2013-04-12 Tom Tromey <tromey@redhat.com>
6772
6773 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6774 const.
6775 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6776 (struct die_reader_specs) <buffer>: Likewise.
6777 (die_reader_func_ftype): Make 'info_ptr' const.
6778 (struct line_header) <include_dirs, statement_program_start,
6779 statement_program_end>: Now const.
6780 (struct file_entry) <name>: Likewise.
6781 (struct partial_die_info) <sibling>: Likewise.
6782 (struct dwarf_block) <data>: Likewise.
6783 (dwarf2_read_section): Remove cast.
6784 (dwarf2_get_section_info): Make 'bufp' const.
6785 (read_index_from_section): Constify.
6786 (dw2_get_file_names_reader): Make 'info_ptr' const.
6787 (dw2_get_primary_filename_reader): Likewise.
6788 (read_comp_unit_head): Make 'info_ptr' and return type const.
6789 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6790 Likewise.
6791 (read_abbrev_offset): Constify.
6792 (dwarf2_create_include_psymtab): Make 'name' const.
6793 (create_debug_types_hash_table): Update.
6794 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6795 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6796 Constify.
6797 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6798 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6799 (read_comp_units_from_section): Constify.
6800 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6801 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6802 const.
6803 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6804 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6805 (create_dwp_hash_table, dwarf2_ranges_read)
6806 (dwarf2_record_block_ranges): Constify.
6807 (read_die_and_children, read_die_and_siblings_1)
6808 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6809 const.
6810 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6811 (abbrev_table_read_table): Constify.
6812 (load_partial_dies): Make 'info_ptr' const.
6813 (read_partial_die, read_attribute_value, read_attribute): Make
6814 'info_ptr' and return type const.
6815 (read_address, read_initial_length)
6816 (read_checked_initial_length_and_offset, read_offset)
6817 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6818 const.
6819 (read_direct_string): Make 'buf' and return type const.
6820 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6821 (read_indirect_string): Make return type const.
6822 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6823 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6824 'info_ptr' const.
6825 (read_str_index): Make return type const.
6826 (add_include_dir): Make 'include_dir' const.
6827 (add_file_name): Make 'name' const.
6828 (dwarf_decode_line_header): Constify.
6829 (psymtab_include_file_name): Make return type const.
6830 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6831 (dwarf2_start_subfile): Make 'filename' const.
6832 (dwarf2_const_value_attr): Make 'bytes' const.
6833 (read_signatured_type_reader): Make 'info_ptr' const.
6834 (decode_locdesc): Constify.
6835 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6836 const.
6837 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6838 'mac_end', and return type const.
6839 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6840 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6841 type const.
6842 (per_cu_header_read_in): Constify.
6843 * symfile.h (dwarf2_get_section_info): Update.
6844
6845 2013-04-12 Tom Tromey <tromey@redhat.com>
6846
6847 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6848
6849 2013-04-12 Eli Zaretskii <eliz@gnu.org>
6850
6851 * NEWS: Mention "show configuration", --configuration.
6852 * top.c (print_gdb_configuration): New function, displays the
6853 details about GDB configure-time parameters.
6854 (print_gdb_version): Mention "show configuration".
6855 * cli/cli-cmds.c (show_configuration): New function.
6856 (_initialize_cli_cmds): Add the "show configuration" command.
6857 * main.c (captured_main) <print_configuration>: New static var.
6858 <long_options>: Use it.
6859 If --configuration was given, call print_gdb_configuration.
6860
6861 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6862 Pedro Alves <palves@redhat.com>
6863
6864 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6865 (generated_files): Add gcore.
6866 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6867 HAVE_NATIVE_GCORE_HOST.
6868 (gcore): New.
6869 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6870 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6871 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6872 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6873 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6874 Add HAVE_NATIVE_GCORE_HOST.
6875 * configure: Regenerate.
6876 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6877 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6878 AC_CONFIG_FILES for gcore.
6879 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6880 gdb_have_gcore.
6881 * gdb_gcore.sh: Rename to ...
6882 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6883 and GCORE_TRANSFORM_NAME substitutions.
6884
6885 Fix parsing tabs in ${gdb_target_obs}.
6886 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6887
6888 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6889
6890 * remote.c (unpush_and_perror): Add output message final dot.
6891
6892 2013-04-11 Yao Qi <yao@codesourcery.com>
6893
6894 * tracepoint.c (tfile_interp_line): Fit parameters line and
6895 utpp in one line.
6896
6897 2013-04-10 Joel Brobecker <brobecker@adacore.com>
6898
6899 * solib.c (solib_map_sections): Remove code overwriting
6900 SO->SO_NAME with the bfd's filename.
6901
6902 2013-04-10 Pedro Alves <palves@redhat.com>
6903
6904 * cli/cli-decode.c (integer_unlimited_completer): New function.
6905 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6906 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6907 completer.
6908 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6909 (is_unlimited_literal): New function.
6910 (do_set_command): Handle literal "unlimited" arguments.
6911 * frame.c (_initialize_frame) <set backtrace limit>: Document
6912 "unlimited".
6913 * printcmd.c (_initialize_printcmd) <set print
6914 max-symbolic-offset>: Add help text.
6915 * record-full.c (_initialize_record_full) <set record full
6916 insn-number-max>: Likewise.
6917 * record.c (_initialize_record) <set record
6918 instruction-history-size, set record function-call-history-size>:
6919 Add help text.
6920 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6921 help text.
6922 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6923 Likewise.
6924 * source.c (_initialize_source) <set listsize>: Add help text.
6925 * utils.c (initialize_utils) <set height, set width>: Likewise.
6926 <set pagination>: Mention "set height unlimited".
6927 * valprint.c (_initialize_valprint) <set print elements, set print
6928 repeats>: Document "unlimited".
6929
6930 2013-04-10 Pedro Alves <palves@redhat.com>
6931
6932 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6933 instead of disconnect_tracing.
6934 * infcmd.c (detach_command, disconnect_command): Call
6935 query_if_trace_running. Adjust.
6936 * top.c: Include "tracepoint.h".
6937 (quit_target): Delete. Contents moved ...
6938 (quit_force): ... here. Wrap each stage of teardown in
6939 TRY_CATCH. Call disconnect_tracing before detaching.
6940
6941 2013-04-10 Hui Zhu <hui@codesourcery.com>
6942 Yao Qi <yao@codesourcery.com>
6943
6944 * configure.ac: Check libbabeltrace is installed.
6945 * config.in: Regenerate.
6946 * configure: Regenerate.
6947 * Makefile.in (LIBBABELTRACE): New.
6948 (CLIBS): Add LIBBABELTRACE.
6949 * ctf.c: Include "exec.h".
6950 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6951 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6952 (ctf_save_metadata_header): Define new type aliases in
6953 metadata.
6954 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6955 in metadata. Start a new faked packet for trace status.
6956 (ctf_write_status): Write trace status to CTF.
6957 (ctf_write_uploaded_tsv): Write TSV to CTF.
6958 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6959 (ctf_write_definition_end): End the faked packet.
6960
6961 (ctx, ctf_iter, trace_dirname): New.
6962 (start_pos): New variable.
6963 (ctf_destroy, ctf_open_dir, ctf_open): New.
6964 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6965 macros.
6966 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6967 (ctf_fetch_registers, ctf_xfer_partial): New.
6968 (ctf_get_trace_state_variable_value): New.
6969 (ctf_get_tpnum_from_frame_event): New.
6970 (ctf_get_traceframe_address): New.
6971 (ctf_trace_find, ctf_has_stack): New.
6972 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6973 (ctf_get_trace_status, ctf_read_status): New.
6974 (_initialize_ctf): New.
6975 * tracepoint.c (get_tracepoint_number): New
6976 (get_uploaded_tsv): Remove 'static'.
6977 (struct traceframe_info, trace_regblock_size): Move it to ...
6978 * tracepoint.h: ... here.
6979 (get_tracepoint_number): Declare it.
6980 (get_uploaded_tsv): Declare it.
6981
6982 * NEWS: Mention new configure option.
6983
6984 2013-04-10 Pedro Alves <palves@redhat.com>
6985 Hui Zhu <hui@codesourcery.com>
6986
6987 * breakpoint.c (dprintf_re_set): New.
6988 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6989 to dprintf_re_set.
6990
6991 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6992
6993 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6994 Remove solib-svr4.o from the list.
6995
6996 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6997
6998 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6999 Use gdb_assert_not_reached instead of invalid boolean expression.
7000
7001 2013-04-09 Pedro Alves <palves@redhat.com>
7002
7003 * remote.c (unpush_and_perror): New function.
7004 (readchar, remote_serial_write): Use it.
7005
7006 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7007
7008 * NEWS: Mention new btrace RSP packets.
7009
7010 2013-04-08 Tom Tromey <tromey@redhat.com>
7011
7012 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7013 long.
7014
7015 2013-04-08 Tom Tromey <tromey@redhat.com>
7016
7017 * maint.c (print_bfd_section_info): Print the section index.
7018 * symmisc.c (dump_msymbols): Print the section index.
7019
7020 2013-04-08 Tom Tromey <tromey@redhat.com>
7021
7022 PR symtab/8424:
7023 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7024 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7025 * breakpoint.c (resolve_sal_pc): Update.
7026 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7027 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7028 (minsym_lookup_iterator_cb): Use it.
7029 (default_read_var_value): Update.
7030 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7031 Update.
7032 * infcmd.c (jump_command): Update.
7033 * linespec.c (minsym_found): Update.
7034 * maint.c (maintenance_translate_address): Update.
7035 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7036 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7037 * parse.c (write_exp_msymbol): Update.
7038 * printcmd.c (address_info): Update.
7039 * psymtab.c (find_pc_sect_psymbol): Update.
7040 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7041 SYMBOL_OBJ_SECTION.
7042 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7043 Don't initialize SYMBOL_OBJ_SECTION.
7044 * spu-tdep.c (spu_catch_start): Update.
7045 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7046 * symmisc.c (dump_msymbols, print_symbol): Update.
7047 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7048 how fallback section is computed.
7049 (fixup_symbol_section): Update.
7050 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7051 Update.
7052 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7053 Initialize SYMBOL_SECTION.
7054 * symtab.h (struct general_symbol_info) <section>: Update comment.
7055 <obj_section>: Remove.
7056 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7057 (SYMBOL_OBJFILE): New macro.
7058
7059 2013-04-08 Tom Tromey <tromey@redhat.com>
7060
7061 * coffread.c (record_minimal_symbol): Update.
7062 * dbxread.c (record_minimal_symbol): Update.
7063 * elfread.c (record_minimal_symbol): Update.
7064 * machoread.c (macho_symtab_add_minsym): Update.
7065 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7066 Update.
7067 * minsyms.c (prim_record_minimal_symbol): Update.
7068 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7069 argument.
7070 (prim_record_minimal_symbol_and_info): Likewise.
7071 * minsyms.h (prim_record_minimal_symbol_full)
7072 (prim_record_minimal_symbol_and_info): Update.
7073 * symtab.c (allocate_symbol, initialize_symbol)
7074 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7075 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7076 Update.
7077
7078 2013-04-08 Tom Tromey <tromey@redhat.com>
7079
7080 PR symtab/8423:
7081 * solib-som.c (som_solib_section_offsets): Use BFD section
7082 indices. Set offsets for all sections.
7083 * somread.c (som_symtab_read): Compute BFD section for
7084 symbol. Use prim_record_minimal_symbol_and_info.
7085 (som_symfile_read): Fix comment.
7086 (struct find_section_offset_arg): New.
7087 (find_section_offset, set_section_index): New functions.
7088 (som_symfile_offsets): Use set_section_index to compute
7089 section indices.
7090
7091 2013-04-08 Tom Tromey <tromey@redhat.com>
7092
7093 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7094 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7095 gdb_bfd_section_index.
7096 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7097 New functions.
7098 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7099 Declare.
7100 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7101 Update.
7102 * objfiles.c (add_to_objfile_sections_full): New function.
7103 (add_to_objfile_sections): Use it.
7104 (build_section_table): Rewrite.
7105 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7106 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7107 (struct objfile) <sections>: Update comment.
7108 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7109 is NULL.
7110 (ALL_OBJSECTIONS): Use it.
7111 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7112 * solib-frv.c (frv_relocate_main_executable): Update.
7113 * solib-target.c (solib_target_relocate_section_addresses):
7114 Use gdb_bfd_section_index.
7115 * symfile.c (build_section_addr_info_from_section_table):
7116 Use gdb_bfd_section_index.
7117 (build_section_addr_info_from_bfd, place_section): Likewise.
7118 * symtab.c (fixup_section): Update.
7119 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7120
7121 2013-04-08 Tom Tromey <tromey@redhat.com>
7122
7123 * minsyms.h (struct bound_minimal_symbol): New.
7124 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7125 Remove objfile argument.
7126 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7127 Return bound_minimal_symbol.
7128 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7129 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7130 Return bound_minimal_symbol.
7131 (in_gnu_ifunc_stub): Update.
7132 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7133 Remove 'objfile_p' argument.
7134 (lookup_solib_trampoline_symbol_by_pc): Update.
7135 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7136 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7137 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7138 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7139 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7140 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7141 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7142 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7143 stack.c, symtab.c, tui/tui-disasm.c: Update.
7144
7145 2013-04-08 Tom Tromey <tromey@redhat.com>
7146
7147 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7148 Use symbol's obstack, not an objfile.
7149 * coffread.c (process_coff_symbol): Update.
7150 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7151 * jv-lang.c (add_class_symbol): Update.
7152 * mdebugread.c (new_symbol): Update.
7153 * minsyms.c (prim_record_minimal_symbol_full)
7154 (terminate_minimal_symbol_table): Update.
7155 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7156 * stabsread.c (define_symbol, read_enum_type): Update.
7157 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7158 Handle Ada specially.
7159 (symbol_set_language): Add 'obstack' argument.
7160 (symbol_set_names): Update.
7161 (symbol_natural_name, symbol_demangled_name): Always use
7162 ada_decode_symbol.
7163 * symtab.h (struct general_symbol_info)
7164 <language_specific::obstack>: New field.
7165 <ada_mangled>: New field.
7166 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7167 (symbol_set_language): Update.
7168
7169 2013-04-08 Tom Tromey <tromey@redhat.com>
7170
7171 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7172 Take an obstack, not an objfile.
7173 (symbol_set_names): Update.
7174 * symtab.h (symbol_set_demangled_name): Update.
7175
7176 2013-04-08 Tom Tromey <tromey@redhat.com>
7177
7178 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7179 allocate_symbol.
7180 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7181 (read_func_scope): Call allocate_template_symbol.
7182 (new_symbol_full): Call allocate_symbol.
7183 * jit.c (finalize_symtab): Call allocate_symbol.
7184 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7185 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7186 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7187 (common_block_end): Call allocate_symbol.
7188 * symtab.c (allocate_symbol, initialize_symbol)
7189 (allocate_template_symbol): New functions.
7190 * symtab.c (allocate_symbol, initialize_symbol)
7191 (allocate_template_symbol): Declare.
7192 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7193
7194 2013-04-08 Pedro Alves <palves@redhat.com>
7195 Keith Seitz <keiths@redhat.com>
7196
7197 * breakpoint.c (create_breakpoint): Rename
7198 "parse_condition_and_thread" parameter to "parse_arg". Update
7199 describing comment. If !PARSE_ARG, then error out if ARG is not
7200 the empty string after extracting the location.
7201 * breakpoint.h (create_breakpoint): Rename
7202 "parse_condition_and_thread" parameter to "parse_arg".
7203
7204 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7205
7206 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7207
7208 2013-04-07 Yao Qi <yao@codesourcery.com>
7209
7210 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7211 and 'addr2' to CORE_ADDR.
7212 * target.c (update_current_target): Update.
7213 * target.h (struct target_ops) <to_trace_find>: Change parameter
7214 type to CORE_ADDR.
7215 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7216 'addr2' to CORE_ADDR.
7217 (tfile_trace_find): Likewise.
7218 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7219 Change local variable 'addr' to type CORE_ADDR.
7220 * tracepoint.h (tfind_1): Update declaration.
7221
7222 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7223
7224 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7225 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7226 Include main.h.
7227
7228 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7229 here...
7230 * main.h (windows_get_absolute_argv0): ...to here.
7231
7232 2013-04-05 Doug Evans <dje@google.com>
7233
7234 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7235 (read_cutu_die_from_dwo): Add comments.
7236 (read_structure_type): Update comment.
7237 (read_enumeration_type, read_namespace_type): Update comment.
7238 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7239
7240 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7241
7242 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7243 * Makefile.in (gdb.z): Remove.
7244 (install-only): Remove $(man1dir) and gdb.1 installation.
7245 * gdb.1: Remove.
7246
7247 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7248
7249 Fix compatibility with Linux kernel 3.8.3.
7250 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7251 to more inner block. Remove parsing of NUMBER from outer block.
7252 Parse NUMBER only if KEYWORD has been identified.
7253
7254 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7255
7256 Fix variable name shadowing.
7257 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7258 filename to mapsfilename and update its uses.
7259
7260 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7261
7262 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7263 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7264 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7265 details of the problem.
7266
7267 2013-04-04 Pedro Alves <palves@redhat.com>
7268 Hui Zhu <hui@codesourcery.com>
7269
7270 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7271 tracepoint, reset its STEP_COUNT and call validate_actionline.
7272
7273 2013-04-03 Doug Evans <dje@google.com>
7274
7275 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7276 read_die_and_siblings.
7277 (read_die_and_siblings): New function.
7278 (read_cutu_die_from_dwo): Dump die if requested.
7279 (read_die_and_children): Call read_full_die_1 and
7280 read_die_and_siblings_1.
7281 (read_full_die): Dump die if requested.
7282
7283 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7284
7285 * dwarf2read.c (struct dwo_file): New member comp_dir.
7286 Rename member name to dwo_name. All uses updated.
7287 (hash_dwo_file): Include comp_dir in computation.
7288 (eq_dwo_file): Ditto.
7289 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7290 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7291
7292 * psymtab.c (read_psymtabs_with_fullname): Don't call
7293 psymtab_to_fullname if the basenames are different.
7294
7295 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7296
7297 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7298 New entry about "fullname" presence.
7299
7300 2013-04-03 Pedro Alves <palves@redhat.com>
7301
7302 * NEWS: Mention x86_64/Cygwin as new native configuration.
7303
7304 2013-04-02 Doug Evans <dje@google.com>
7305
7306 * dwarf2read.c (read_structure_type): Fix typo in comment.
7307
7308 2013-04-02 Pedro Alves <palves@redhat.com>
7309
7310 * NEWS: Mention "set/show debug aarch64", "set/show debug
7311 coff-pe-read" and "set/show debug mach-o".
7312
7313 2013-04-02 Pedro Alves <palves@redhat.com>
7314
7315 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7316
7317 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7318
7319 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7320 gdb_string.h is now in common/.
7321
7322 2013-04-02 Pedro Alves <palves@redhat.com>
7323
7324 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7325 under "New options".
7326
7327 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7328
7329 Revert this patch:
7330 PR gdb/15275
7331 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7332
7333 2013-04-02 Pedro Alves <palves@redhat.com>
7334
7335 PR gdb/15275
7336
7337 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7338 (remote_serial_write): New function.
7339 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7340
7341 2013-04-01 Jiong Wang <jiwang@tilera.com>
7342
7343 * NEWS: Mention TILE-Gx in "New native configurations" and
7344 "New targets" sections.
7345
7346 2013-04-01 Doug Evans <dje@google.com>
7347
7348 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7349 (process_enumeration_scope): Simplify.
7350
7351 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7352 type_unit_group ...
7353 (struct signatured_type): ... to here.
7354 (sig_type_ptr): New typedef.
7355 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7356 out of union 't'. All uses updated.
7357 (dw2_get_file_names_reader): Assert not called for a type unit.
7358 (dw2_get_file_names): Assert not called for a type unit or type
7359 unit group.
7360 (build_type_psymtabs_reader): Assert called for a type unit.
7361 (build_type_psymtab_dependencies): Assert called for a type unit group.
7362
7363 * dwarf2read.c (free_dwo_file): Add comment.
7364 (dwarf2_per_objfile_free): Unref dwp bfd.
7365
7366 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7367
7368 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7369 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7370 (read_pe_exported_syms): Remove unused 'exportix'.
7371 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7372 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7373 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7374
7375 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7376
7377 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7378 (print_it_watchpoint): Remove unused 'bl'.
7379 (say_where): Remove unused 'uiout'.
7380 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7381 (bkpt_breakpoint_hit): Remove unused 'b'.
7382 (internal_bkpt_print_it): Remove unused 'uiout'.
7383 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7384
7385 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7386
7387 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7388 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7389
7390 2013-03-29 Doug Evans <dje@google.com>
7391
7392 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7393 Delete arg is_dwp. All callers updated.
7394 (open_dwp_file): New function.
7395 (open_and_init_dwp_file): Call it.
7396 (get_dwp_file): New function.
7397 (lookup_dwo_cutu): Call it.
7398
7399 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7400 unnecessary, cleanup.
7401
7402 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7403
7404 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7405 (lookup_dwo_unit): New function.
7406 (init_cutu_and_read_dies): Move DWO handling to new functions.
7407
7408 * dwarf2read.c (struct signatured_type): Tweak comment.
7409 (struct dwo_unit): Tweak comment.
7410 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7411 (create_dwo_debug_info_hash_table): Tweak comment.
7412 (dwarf2_per_cu_offset_and_type): Tweak comment.
7413
7414 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7415 missing .debug_types section.
7416
7417 2013-03-29 Yao Qi <yao@codesourcery.com>
7418
7419 * corelow.c: Include "completer.h".
7420 (_initialize_corelow): Call add_target_with_completer with
7421 argument 'filename_completer'.
7422 * tracepoint.c: Likewise.
7423 * exec.c (_initialize_exec): Likewise.
7424 * target.c (add_target): Rename to ...
7425 (add_target_with_completer): ... this. Call set_cmd_completer
7426 if parameter completer is not NULL.
7427 (add_target): New.
7428 * target.h: Include "command.h".
7429 (add_target_with_completer): Declare it.
7430
7431 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7432
7433 * coffread.c (is_import_fixup_symbol): New function.
7434 (record_minimal_symbol): Use is_import_fixup_symbol to
7435 detect import fixup symbols, and discard them.
7436
7437 2013-03-28 Doug Evans <dje@google.com>
7438
7439 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7440 types hash table until we know we need it.
7441
7442 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7443 index numbers.
7444
7445 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7446 All callers updated.
7447 (dw2_print_stats): Print #read CUs too.
7448 (dump_die_shallow): Print signatured types better.
7449
7450 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7451 info_or_types_section to section. All uses updated.
7452 (struct dwo_unit): Ditto.
7453
7454 2013-03-28 Pedro Alves <palves@redhat.com>
7455
7456 * NEWS (New options): New section.
7457 (New options): Mention set/show remote trace-status-packet.
7458 * remote.c (PACKET_qTStatus): New enumeration value.
7459 (remote_get_trace_status): Skip sending qTStatus if the packet is
7460 disabled. Use packet_ok.
7461 (_initialize_remote): Register a configuration command for
7462 qTStatus packet.
7463
7464 2013-03-28 Doug Evans <dje@google.com>
7465
7466 * symfile.c (find_separate_debug_file): Add comment.
7467 (terminate_after_last_dir_separator): Tweak comment.
7468
7469 * dwarf2read.c (create_partial_symtab): Add forward decl.
7470 (create_partial_symtab): Move to be closer to other psymtab functions.
7471 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7472
7473 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7474 (compute_symtab_includes): Remove unnecessary forward declaration.
7475 (die_needs_namespace): Add comment marking group of functions for
7476 dwarf2 name computation.
7477
7478 * typeprint.c (_initialize_typeprint): Improve type help text.
7479
7480 * python/python.c (finish_python_initialization): Provide suggestion
7481 for how to tell gdb to find its python files.
7482
7483 2013-03-28 Pedro Alves <palves@redhat.com>
7484
7485 PR gdb/15294
7486
7487 * source.c (_initialize_source): Change back "set listsize" to an
7488 integer command.
7489
7490 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7491
7492 PR gdb/15275
7493 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7494
7495 2013-03-27 Pedro Alves <palves@redhat.com>
7496
7497 * top.c (history_size): Rename to ...
7498 (history_size_setshow_var): ... this. Add comment.
7499 (show_commands): Use readline's 'history_length' instead of
7500 computing the history length by calling history_get in a loop.
7501 (set_history_size_command): Error out for sizes over INT_MAX.
7502 Restore previous history size on invalid size.
7503 (init_history): If HISTSIZE is negative, leave the history size as
7504 zero. Add comments.
7505 (init_main): Adjust.
7506
7507 2013-03-27 Pedro Alves <palves@redhat.com>
7508
7509 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7510 coff_pe_read" command to "set debug coff-pe-read".
7511
7512 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7513
7514 * record.c (command_size_to_target_size): Fix size comparison.
7515 Change parameter type from pointer to integer to integer.
7516 Update all users.
7517
7518 2013-03-27 Pierre Muller <muller@sourceware.org>
7519
7520 * windows-nat.c (handle_output_debug_string): Avoid typecast
7521 from integer of different size warning.
7522
7523 2013-03-26 Joel Brobecker <brobecker@adacore.com>
7524
7525 * windows-nat.c (handle_output_debug_string): Add empty line
7526 after local block variable definition.
7527
7528 2013-03-26 Pedro Alves <palves@redhat.com>
7529
7530 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7531 (net_open): Make 'polls' local unsigned.
7532
7533 2013-03-26 Pedro Alves <palves@redhat.com>
7534
7535 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7536 a zuinteger command instead of uinteger.
7537
7538 2013-03-26 Pedro Alves <palves@redhat.com>
7539
7540 * record-full.c (record_full_insn_num): Make it unsigned.
7541 (record_full_check_insn_num, record_full_message)
7542 (record_full_registers_change, record_full_xfer_partial): Remove
7543 record_full_insn_max_num check (it's always != 0).
7544 (record_full_info, record_full_restore): Use %u as format string.
7545 (): Use %u as format string.
7546 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7547 check (it's always != 0).
7548
7549 2013-03-26 Pedro Alves <palves@redhat.com>
7550
7551 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7552 and "set dcache size" commands zuinteger instead of uinteger.
7553
7554 2013-03-26 Pedro Alves <palves@redhat.com>
7555
7556 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7557 command zuinteger instead of uinteger.
7558
7559 2013-03-26 Pedro Alves <palves@redhat.com>
7560
7561 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7562 zuinteger instead of uinteger.
7563
7564 2013-03-26 Pedro Alves <palves@redhat.com>
7565
7566 * record.c (record_insn_history_size_setshow_var)
7567 (record_call_history_size_setshow_var): New globals.
7568 (command_size_to_target_size): New function.
7569 (cmd_record_insn_history, cmd_record_call_history): Use
7570 command_size_to_target_size instead of cast.
7571 (validate_history_size, set_record_insn_history_size)
7572 (set_record_call_history_size): New functions.
7573 (_initialize_record): Install set_record_insn_history_size and
7574 set_record_call_history_size as "set" hooks of "set record
7575 instruction-history-size" and "set record
7576 function-call-history-size".
7577
7578 2013-03-26 Pedro Alves <palves@redhat.com>
7579
7580 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7581 use with history_max_entries use. Remove FIXME note.
7582
7583 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7584
7585 * record-btrace.c (record_btrace_close): Call
7586 record_btrace_auto_disable.
7587
7588 2013-03-25 Joel Brobecker <brobecker@adacore.com>
7589
7590 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7591
7592 2013-03-25 Doug Evans <dje@google.com>
7593
7594 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7595
7596 2013-03-25 Tom Tromey <tromey@redhat.com>
7597
7598 PR symtab/11462:
7599 * c-exp.y (exp): Add new productions for destructors after '.' and
7600 '->'.
7601 (write_destructor_name): New function.
7602
7603 2013-03-25 Tom Tromey <tromey@redhat.com>
7604
7605 PR c++/9197:
7606 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7607 value_struct_elt, not lookup_struct_elt_type.
7608 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7609 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7610 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7611
7612 2013-03-25 Yao Qi <yao@codesourcery.com>
7613
7614 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7615 instead of '_mkdir'.
7616
7617 2013-03-23 Eli Zaretskii <eliz@gnu.org>
7618
7619 * windows-nat.c (windows_get_absolute_argv0): New function.
7620 * windows-nat.h: Add its prototype.
7621
7622 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7623 Use IS_DIR_SEPARATOR instead of looking for a character inside
7624 SLASH_STRING. Include filenames.h.
7625 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7626 relocate_gdb_directory works when passed gdb_program_name.
7627 Include windows-nat.h.
7628
7629 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7630
7631 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7632 * remote.c (trace_error): Remove the special handling of '2'.
7633 (readchar) <SERIAL_EOF>
7634 (readchar) <SERIAL_ERROR>
7635 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7636 (remote_get_trace_status): Call throw_exception if EX is
7637 TARGET_CLOSE_ERROR.
7638 * utils.c (perror_with_name): Rename to ...
7639 (throw_perror_with_name): ... here. New parameter errcode, describe it
7640 in the function comment.
7641 (perror_with_name): New function wrapper.
7642 * utils.h (enum errors): New stub declaration.
7643 (throw_perror_with_name): New declaration.
7644
7645 2013-03-22 Pedro Alves <palves@redhat.com>
7646 Yao Qi <yao@codesourcery.com>
7647 Mark Kettenis <kettenis@gnu.org>
7648
7649 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7650 Don't let the user set the value to UINT_MAX directly.
7651 <var_integer>: Don't let the user set the value to INT_MAX
7652 directly.
7653
7654 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7655
7656 * remote.c (remote_unpush_target): New function.
7657 (remote_open_1): Remove two pop_target calls, update one comment, add
7658 comment to target_preopen call. Replace pop_target call by
7659 remote_unpush_target call.
7660 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7661 pop_target calls by remote_unpush_target calls.
7662
7663 2013-03-22 Pedro Alves <palves@redhat.com>
7664
7665 * linux-nat.c (linux_child_follow_fork): Don't call
7666 linux_enable_event_reporting.
7667 (linux_handle_extended_wait): Don't call
7668 linux_enable_event_reporting.
7669
7670 2013-03-22 Pedro Alves <palves@redhat.com>
7671
7672 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7673 use it to rewrite the trampoline buffers with type gdb_byte[], and
7674 undefine the macro. Remove char* cast.
7675
7676 2013-03-21 Doug Evans <dje@google.com>
7677
7678 New commands "mt set per-command {space,time,symtab} {on,off}".
7679 * NEWS: Add entry.
7680 * event-top.c: #include "maint.h".
7681 * main.c: #include "maint.h".
7682 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7683 timeval-utils.h, maint.h, cli/cli-setshow.h.
7684 (per_command_time, per_command_space): New static globals.
7685 (per_command_symtab): New static global.
7686 (per_command_setlist, per_command_showlist): New static globals.
7687 (struct cmd_stats): Move here from utils.c.
7688 (set_per_command_time): Renamed from set_display_time in utils.c
7689 and moved here. All callers updated.
7690 (set_per_command_space): Renamed from set_display_space in utils.c
7691 and moved here. All callers updated.
7692 (count_symtabs_and_blocks): New function.
7693 (report_command_stats): Moved here from utils.c. Add support for
7694 printing symtab stats. Only print data if enabled before command
7695 executed.
7696 (make_command_stats_cleanup): Ditto.
7697 (sert_per_command_cmd, show_per_command_cmd): New functions.
7698 (_initialize_maint_cmds): Add new commands
7699 mt set per-command {space,time,symtab} {on,off}.
7700 * maint.h: New file.
7701 * top.c: #include "maint.h".
7702 * utils.c (reset_prompt_for_continue_wait_time): New function.
7703 (get_prompt_for_continue_wait_time): New function.
7704 * utils.h (reset_prompt_for_continue_wait_time): Declare
7705 (get_prompt_for_continue_wait_time): Declare.
7706 (make_command_stats_cleanup): Moved to maint.h.
7707 (set_display_time, set_display_space): Moved to maint.h and renamed
7708 to set_per_command_time, set_per_command_space.
7709 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7710 parse_binary_operation and made non-static. Don't call error,
7711 just return an error marker. All callers updated.
7712 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7713
7714 2013-03-21 Tom Tromey <tromey@redhat.com>
7715
7716 * symfile.c (alloc_section_addr_info): Update header. Don't set
7717 'num_sections' field.
7718 (build_section_addr_info_from_section_table): Set 'num_sections'.
7719 (build_section_addr_info_from_bfd): Likewise.
7720 (build_section_addr_info_from_objfile): Remove dead loop
7721 condition.
7722 (free_section_addr_info): Unconditionally call xfree.
7723 (relative_addr_info_to_section_offsets, addrs_section_sort)
7724 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7725 condition.
7726 (syms_from_objfile_1): Remove dead 'if' condition. Check
7727 'num_sections'.
7728 (add_symbol_file_command): Set 'num_sections'.
7729 * symfile-mem.c (symbol_file_add_from_memory): Set
7730 'num_sections'.
7731 * somread.c (som_symfile_offsets): Remove dead loop condition.
7732 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7733 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7734
7735 2013-03-21 Tom Tromey <tromey@redhat.com>
7736
7737 * tracepoint.h (decode_agent_options): Add 'trace_string'
7738 argument.
7739 * tracepoint.c (decode_agent_options): Add 'trace_string'
7740 argument.
7741 (validate_actionline): Update.
7742 (collect_symbol): Add 'trace_string' argument.
7743 (struct add_local_symbols_data) <trace_string>: New field.
7744 (do_collect_symbol): Update.
7745 (add_local_symbols): Add 'trace_string' argument.
7746 (encode_actions_1): Update.
7747 (trace_dump_actions): Update.
7748 * dwarf2loc.c (access_memory): Update.
7749 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7750 * ax-general.c (new_agent_expr): Update.
7751 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7752 (gen_trace_for_return_address): Add argument.
7753 (trace_kludge, trace_string_kludge): Remove.
7754 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7755 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7756 (gen_trace_for_var): Add 'trace_string' argument.
7757 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7758 (gen_printf, agent_eval_command_one): Update.
7759
7760 2013-03-21 Tom Tromey <tromey@redhat.com>
7761
7762 PR exp/15109:
7763 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7764 Handle FILENAME token.
7765
7766 2013-03-21 Tom Tromey <tromey@redhat.com>
7767
7768 * c-exp.y (YYPRINT): Define.
7769 (c_print_token): New function.
7770
7771 2013-03-21 Tom Tromey <tromey@redhat.com>
7772
7773 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7774
7775 2013-03-21 Yao Qi <yao@codesourcery.com>
7776
7777 * ctf.c: Include "gdb_stat.h".
7778 [USE_WIN32API]: New macro 'mkdir'.
7779 (ctf_start): Use permission bits macros if they are defined.
7780
7781 2013-03-20 Keith Seitz <keiths@redhat.com>
7782
7783 * breakpoint.h (struct breakpoint): Add comment to
7784 extra_string indicating that this member is mallod'd.
7785 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7786
7787 2013-03-20 Pedro Alves <palves@redhat.com>
7788
7789 PR gdb/15289
7790
7791 * cli/cli-setshow.c (do_set_command)
7792 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7793 the result of parsing the command argument. Throw error if the
7794 value is greater than UINT_MAX. Print the invalid value with
7795 plongest.
7796 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7797 result of parsing the command argument. Throw error if the value
7798 is greater than INT_MAX, not greater or equal. Also throw error
7799 if the value is less than INT_MIN. Print the invalid value with
7800 plongest.
7801 <var_zuinteger_unlimited>: Throw error if the value is greater
7802 than INT_MAX, not greater or equal.
7803 (do_show_command) <var_integer, var_zinteger,
7804 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7805
7806 2013-03-20 Tom Tromey <tromey@redhat.com>
7807
7808 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7809 if possible.
7810 * dwarf2read.c (read_func_scope): Remove old FIXME.
7811 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7812 not LOC_COMPUTED.
7813 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7814 Unconditionally call via computed ops, if possible.
7815 * printcmd.c (address_info): Unconditionally call via computed ops,
7816 if possible.
7817 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7818 if possible.
7819 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7820 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7821 if possible.
7822
7823 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7824 Tom Tromey <tromey@redhat.com>
7825
7826 PR symtab/8421:
7827 * coffread.c (coff_register_index): New global.
7828 (process_coff_symbol, coff_read_enum_type): Set
7829 SYMBOL_ACLASS_INDEX.
7830 (_initialize_coffread): Initialize new global.
7831 * dwarf2loc.c (locexpr_find_frame_base_location)
7832 (dwarf2_block_frame_base_locexpr_funcs)
7833 (loclist_find_frame_base_location)
7834 (dwarf2_block_frame_base_loclist_funcs): New.
7835 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7836 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7837 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7838 (dwarf2_block_frame_base_loclist_funcs): New.
7839 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7840 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7841 globals.
7842 (read_func_scope): Update.
7843 (fixup_go_packaging, mark_common_block_symbol_computed)
7844 (var_decode_location, new_symbol_full, dwarf2_const_value):
7845 Set SYMBOL_ACLASS_INDEX.
7846 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7847 (_initialize_dwarf2_read): Initialize new globals.
7848 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7849 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7850 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7851 globals.
7852 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7853 (_initialize_mdebugread): Initialize new globals.
7854 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7855 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7856 (stab_register_index, stab_regparm_index): New globals.
7857 (define_symbol, read_enum_type, common_block_end): Set
7858 SYMBOL_ACLASS_INDEX.
7859 (_initialize_stabsread): Initialize new globals.
7860 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7861 globals.
7862 (MAX_SYMBOL_IMPLS): New define.
7863 (register_symbol_computed_impl, register_symbol_block_impl)
7864 (register_symbol_register_impl)
7865 (initialize_ordinary_address_classes): New functions.
7866 (_initialize_symtab): Call initialize_ordinary_address_classes.
7867 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7868 (struct symbol_impl): New.
7869 (SYMBOL_ACLASS_BITS): New define.
7870 (struct symbol) <aclass, ops>: Remove fields.
7871 <aclass_index>: New field.
7872 (symbol_impls): Declare.
7873 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7874 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7875 (register_symbol_computed_impl, register_symbol_block_impl)
7876 (register_symbol_register_impl): Declare.
7877 (struct symbol_computed_ops): Add location_has_loclist.
7878 (struct symbol_block_ops): New.
7879 (SYMBOL_BLOCK_OPS): New.
7880 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7881
7882 2013-03-20 Tom Tromey <tromey@redhat.com>
7883
7884 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7885 (print_partial_symbols, recursively_search_psymtabs): Use
7886 PSYMBOL_CLASS.
7887
7888 2013-03-20 Pierre Muller <muller@sourceware.org>
7889
7890 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7891 addtion, subtraction, multiplication and division binary operator.
7892
7893 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7894
7895 Code cleanup.
7896 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7897 * bsd-kvm.c (bsd_kvm_close): Likewise.
7898 * bsd-uthread.c (bsd_uthread_close): Likewise.
7899 * corelow.c (core_close): Likewise.
7900 (core_close_cleanup): Remove parameter quitting from a caller.
7901 * event-top.c (async_disconnect): Likewise.
7902 * exec.c (exec_close_1): Remove parameter quitting.
7903 * go32-nat.c (go32_close): Likewise.
7904 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7905 parameter quitting from a caller.
7906 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7907 variable.
7908 (mips_linux_close): Remove parameter quitting. Remove parameter
7909 quitting from a caller.
7910 * monitor.c (monitor_close): Remove parameter quitting.
7911 * monitor.h (monitor_close): Likewise.
7912 * record-btrace.c (record_btrace_close): Likewise.
7913 * record-full.c (record_full_close): Likewise.
7914 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7915 it also from fprintf_unfiltered.
7916 * remote-mips.c (mips_close): Remove parameter quitting.
7917 (mips_detach): Remove parameter quitting from a caller.
7918 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7919 (gdbsim_close): Remove duplicate function comment. Remove parameter
7920 quitting and remove it also from printf_filtered.
7921 * remote.c (remote_close): Remove parameter quitting.
7922 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7923 * target.c (update_current_target): Remove parameter int from to_close
7924 de_fault.
7925 (push_target, unpush_target, pop_target): Remove parameter quitting from
7926 a caller.
7927 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7928 Remove parameter quitting from a caller.
7929 (target_preopen): Remove parameter quitting from a caller.
7930 (target_close): Remove parameter quitting. Remove parameter quitting
7931 from a caller two times. Remove parameter quitting also from
7932 fprintf_unfiltered.
7933 * target.h (struct target_ops): Remove parameter quitting and as int
7934 from fields to_xclose and to_close.
7935 (extern struct target_ops current_target):
7936 (target_close, pop_all_targets): Remove parameter quitting. Update the
7937 comment.
7938 (pop_all_targets_above): Remove parameter quitting.
7939 * top.c (quit_target): Remove parameter quitting from a caller.
7940 * tracepoint.c (tfile_close): Remove parameter quitting.
7941 * windows-nat.c (windows_close): Remove parameter quitting.
7942
7943 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
7944
7945 * windows-nat.c (handle_output_debug_string): Replace call
7946 to string_to_core_addr with call to strtoull.
7947
7948 2013-03-20 Yao Qi <yao@codesourcery.com>
7949
7950 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7951 and write it to CTF metadata.
7952
7953 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
7954
7955 * windows-nat.c (handle_output_debug_string): Change type of n to
7956 SIZE_T to avoid crash on 64 bit systems.
7957
7958 2013-03-17 Eli Zaretskii <eliz@gnu.org>
7959
7960 * python/python-internal.h (HAVE_SNPRINTF)
7961 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7962 about redefinition of snprintf by pyerrors.h.
7963
7964 2013-03-15 Steve Ellcey <sellcey@mips.com>
7965
7966 * remote-sim.c (sim_command_completer): Make char arguments const.
7967
7968 2013-03-15 Tom Tromey <tromey@redhat.com>
7969
7970 PR c++/15116:
7971 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7972
7973 2013-03-14 Tom Tromey <tromey@redhat.com>
7974
7975 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7976 New fields.
7977 (get_file_crc): Move from symfile.c.
7978 (gdb_bfd_crc): New function.
7979 * gdb_bfd.h (gdb_bfd_crc): Declare.
7980 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7981 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7982 (separate_debug_file_exists): Use gdb_bfd_crc.
7983
7984 2013-03-14 Tom Tromey <tromey@redhat.com>
7985
7986 * symfile.c (get_debug_link_info): Remove.
7987 (find_separate_debug_file_by_debuglink): Use
7988 bfd_get_debug_link_info.
7989
7990 2013-03-14 Tom Tromey <tromey@redhat.com>
7991
7992 * symtab.c (error_in_psymtab_expansion): New function.
7993 (lookup_symbol_aux_quick)
7994 (basic_lookup_transparent_type_quick): Remove "last resort"
7995 code. Use error_in_psymtab_expansion.
7996
7997 2013-03-14 Doug Evans <dje@google.com>
7998 Jan Kratochvil <jan.kratochvil@redhat.com>
7999
8000 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8001 any successful compare_filenames_for_search or FILENAME_CMP.
8002 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8003 * symtab.c (iterate_over_some_symtabs): Likewise.
8004
8005 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8006
8007 * source.c (print_source_lines_base): Make a local copy of
8008 symtab_to_fullname.
8009
8010 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
8011 Jan Kratochvil <jan.kratochvil@redhat.com>
8012
8013 * source.c (print_source_lines_base): Suppress "file" for TUI.
8014
8015 2013-03-14 Keith Seitz <keiths@redhat.com>
8016 Alan Matsuoka <alanm@redhat.com>
8017
8018 PR c++/15203
8019 PR c++/15210
8020 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8021 TYPE_CODE_METHOD.
8022 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8023 symbols.
8024
8025 2013-03-14 Yao Qi <yao@codesourcery.com>
8026
8027 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8028 status to tfile if trace is stopped by command 'tstop'.
8029
8030 2013-03-14 Yao Qi <yao@codesourcery.com>
8031
8032 * tracepoint.c (tfile_write_status): Write trace notes and user
8033 name into tfile if they are not NULL.
8034
8035 2013-03-14 Hui Zhu <hui@codesourcery.com>
8036 Yao Qi <yao@codesourcery.com>
8037
8038 * Makefile.in (REMOTE_OBS): Add ctf.o.
8039 (SFILES): Add ctf.c.
8040 (HFILES_NO_SRCDIR): Add ctf.h.
8041 * ctf.c, ctf.h: New files.
8042 * tracepoint.c: Include 'ctf.h'.
8043 (collect_pseudocommand): Remove static.
8044 (trace_save_command): Parse option "-ctf".
8045 Produce different trace file writers per option.
8046 Adjust output message.
8047 (trace_save_tfile, trace_save_ctf): New.
8048 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8049 * mi/mi-main.c: Include 'ctf.h'.
8050 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8051 trace_save_tfile or trace_save_ctf.
8052 * NEWS: Mention these changes.
8053
8054 2013-03-14 Yao Qi <yao@codesourcery.com>
8055
8056 * tracepoint.c (trace_file_writer_xfree): New.
8057 (struct tfile_writer_data): New.
8058 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8059 (tfile_write_header, tfile_write_regblock_type): New.
8060 (tfile_write_status, tfile_write_uploaded_tsv): New.
8061 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8062 (tfile_write_raw_data, (tfile_end): New.
8063 (tfile_write_ops): New global variable.
8064 (TRACE_WRITE_R_BLOCK): New macro.
8065 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8066 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8067 (TRACE_WRITE_V_BLOCK): New macro.
8068 (trace_save): Add extra one parameter WRITER. Make it static.
8069 Use WRITER to writer trace.
8070 (tfile_trace_file_writer_new): New.
8071 (trace_save_command): Caller update.
8072 (trace_save_tfile): Write trace data in TFILE format.
8073 * tracepoint.h (struct trace_frame_write_ops): New.
8074 (struct trace_file_write_ops): New.
8075 (struct trace_file_writer): New.
8076 (trace_save): Remove its declaration.
8077 (trace_save_tfile): Declare it.
8078 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8079 instead of trace_save.
8080
8081 2013-03-13 Pedro Alves <palves@redhat.com>
8082
8083 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8084
8085 2013-03-13 Pedro Alves <palves@redhat.com>
8086
8087 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8088 commented out code.
8089 * demangle.c (current_demangling_style_string): Make it const.
8090 (set_demangling_command): Assert the demangling style is known.
8091 Remove all handling of unknown styles. Set
8092 'current_demangling_style_string' to an element of the
8093 demangling_style_names array.
8094 (set_demangling_style): Delete.
8095 (_initialize_demangler): Set current_demangling_style_string to the
8096 element of the demangling_style_names array that corresponds to
8097 the default demangling style. Remove FIXME note. Don't call
8098 set_demangling_style.
8099 * gdb-demangle.h (set_demangling_style): Remove declaration.
8100
8101 2013-03-13 Pedro Alves <palves@redhat.com>
8102
8103 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8104 fields const.
8105 (ada_make_symbol_completion_list): Make "text0" parameter const.
8106 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8107 * breakpoint.c (condition_completer): Make "text" and "word"
8108 parameters const. Adjust.
8109 (check_tracepoint_command): Adjust to validate_actionline
8110 prototype change.
8111 (catch_syscall_completer): Make "text" and "word" parameters
8112 const.
8113 * cli/cli-cmds.c (show_user): Make "comname" local const.
8114 (valid_command_p): Make "command" parameter const.
8115 (alias_command): Make "alias_prefix" and "command_prefix" locals
8116 const.
8117 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8118 (add_alias_cmd): Make "name" and "oldname" parameters const.
8119 Adjust. No longer make copy of OLDNAME.
8120 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8121 (add_setshow_cmd_full, add_setshow_enum_cmd)
8122 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8123 (add_setshow_filename_cmd, add_setshow_string_cmd)
8124 (add_setshow_string_noescape_cmd)
8125 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8126 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8127 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8128 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8129 Make "name" parameter const.
8130 (help_cmd): Rename "command" parameter to "arg". New const local
8131 "command".
8132 (find_cmd): Make "command" parameter const.
8133 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8134 deprecated_cmd_warning prototype change.
8135 (undef_cmd_error): Make "cmdtype" parameter const.
8136 (lookup_cmd): Make "line" parameter const.
8137 (deprecated_cmd_warning): Change type of "text" parameter to
8138 pointer to const char, from pointer to pointer to char. Adjust.
8139 (lookup_cmd_composition): Make "text" parameter const.
8140 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8141 parameters const.
8142 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8143 const.
8144 * cli/cli-script.c (validate_comname): Make "tem" local const.
8145 (define_command): New const local "tem_c". Use it in calls to
8146 lookup_cmd.
8147 (document_command): Make "tem" and "comfull" locals const.
8148 (show_user_1): Make "prefix" and "name" parameters const.
8149 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8150 const.
8151 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8152 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8153 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8154 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8155 (complete_on_enum, add_setshow_enum_cmd)
8156 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8157 (add_setshow_filename_cmd, add_setshow_string_cmd)
8158 (add_setshow_string_noescape_cmd)
8159 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8160 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8161 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8162 Change prototypes, constifying strings.
8163 * completer.c (noop_completer, filename_completer): Make "text"
8164 and "prefix" parameters const.
8165 (location_completer, expression_completer)
8166 (complete_line_internal): Make "text" and "prefix" parameters
8167 const and adjust.
8168 (command_completer, signal_completer): Make "text" and "prefix"
8169 parameters const.
8170 * completer.h (noop_completer, filename_completer)
8171 (expression_completer, location_completer, command_completer)
8172 (signal_completer): Change prototypes.
8173 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8174 parameters const.
8175 * cp-abi.c (cp_abi_completer): Likewise.
8176 * expression.h (parse_expression_for_completion): Change
8177 prototype.
8178 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8179 parameters const.
8180 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8181 * infrun.c (handle_completer): Make "text" and "word" parameters
8182 const.
8183 * interps.c (interpreter_completer): Make "text" and "word"
8184 parameters const.
8185 * language.h (struct language_defn)
8186 <la_make_symbol_completion_list>: Make "text" and "word"
8187 parameters const.
8188 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8189 (parse_exp_in_context): Rename to ...
8190 (parse_exp_in_context_1): ... this.
8191 (parse_exp_in_context): Reimplement, with const hack from
8192 parse_exp_1.
8193 (parse_expression_for_completion): Make "string" parameter const.
8194 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8195 to pointer to const char. Adjust.
8196 (print_command_1): Make "exp" parameter const.
8197 (output_command): Rename to ...
8198 (output_command_const): ... this. Make "exp" parameter const.
8199 (output_command): Reimplement.
8200 (x_command): Adjust.
8201 (display_command): Rename "exp" parameter to "arg". New "exp"
8202 local, const version of "arg".
8203 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8204 "cmd_name" local const.
8205 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8206 call.
8207 (cmdpy_completer): Make "text" and "word" parameters const.
8208 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8209 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8210 const.
8211 * remote.c (_initialize_remote): Make "cmd_name" local const.
8212 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8213 parameters const. Adjust.
8214 (completion_list_add_fields): Make "sym_text", "text" and "word"
8215 parameters const.
8216 (struct add_name_data) <sym_text, text, word>: Make fields const.
8217 (default_make_symbol_completion_list_break_on): Make "text" and
8218 "word" parameters const. Adjust locals.
8219 (default_make_symbol_completion_list)
8220 (make_symbol_completion_list, make_symbol_completion_type)
8221 (make_symbol_completion_list_fn): Make "text" and "word"
8222 parameters const.
8223 (make_file_symbol_completion_list): Make "text", "word" and
8224 "srcfile" parameters const. Adjust locals.
8225 (add_filename_to_list): Make "text" and "word" parameters const.
8226 (struct add_partial_filename_data) <text, word>: Make fields
8227 const.
8228 (make_source_files_completion_list): Make "text" and "word"
8229 parameters const.
8230 * symtab.h (default_make_symbol_completion_list_break_on)
8231 (default_make_symbol_completion_list, make_symbol_completion_list)
8232 (make_symbol_completion_type enum type_code)
8233 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8234 (make_source_files_completion_list): Change prototype.
8235 * top.c (execute_command): Adjust to pass pointer to pointer to
8236 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8237 change.
8238 (set_verbose): Make "cmdname" local const.
8239 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8240 and adjust.
8241 (validate_actionline): Make "line" parameter a pointer to const
8242 char, and adjust.
8243 (encode_actions_1): Make "action_exp" local const, and adjust.
8244 (encode_actions): Adjust.
8245 (replace_comma): Delete.
8246 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8247 const, and adjust. Don't frob the action string while splitting
8248 it at commas. Instead, make a copy of each split substring in
8249 turn.
8250 (trace_dump_command): Adjust to validate_actionline prototype
8251 change.
8252 * tracepoint.h (decode_agent_options, decode_agent_options)
8253 (encode_actions, validate_actionline): Change prototypes.
8254 * valprint.h (output_command): Delete declaration.
8255 (output_command_const): Declare.
8256 * value.c (function_destroyer): Cast const away in xfree call.
8257
8258 2013-03-13 Pedro Alves <palves@redhat.com>
8259
8260 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8261 rather than casting 'const char * const *' to 'const char **'.
8262 * ada-lex.l (processInt): Make "trailer" local const. Remove
8263 'const char **' cast.
8264 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8265 locals, and use those as strtol output pointer, instead than doing
8266 invalid casts to from 'const char **' to 'char **'.
8267 (_initialize_demangle): Remove cast.
8268 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8269 locals, and use those as strtol output pointer, instead than doing
8270 invalid casts to from 'const char **' to 'char **'.
8271 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8272 casts.
8273 * stap-probe.c (stap_parse_register_operand)
8274 (stap_parse_single_operand): Likewise.
8275
8276 2013-03-13 Yao Qi <yao@codesourcery.com>
8277
8278 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8279 the last matched 'V' blcok in trace frame.
8280
8281 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8282
8283 * NEWS: Create a new section for the next release branch.
8284 Rename the section of the current branch, now that it has
8285 been cut.
8286
8287 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8288
8289 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8290 * version.in: Bump version to 7.6.50.20130312-cvs.
8291
8292 2013-03-12 Keith Seitz <keiths@redhat.com>
8293
8294 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8295 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8296 Remove temporary copy of input string.
8297 (mi_execute_command_wrapper): Make "cmd" const.
8298 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8299 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8300 Use const strings.
8301 (mi_parse): Make "cmd" const.
8302 Use const strings.
8303 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8304
8305 2013-03-12 Keith Seitz <keiths@redhat.com>
8306
8307 * ada-lang.c (ada_read_renaming_var_value): Pass const
8308 pointer to expression string to parse_exp_1.
8309 (create_excep_cond_exprs): Likewise.
8310 * ax-gdb.c (agent_eval_command_one): Likewise.
8311 (maint_agent_printf_command): Likewise.
8312 Constify much of the string handling/parsing.
8313 * breakpoint.c (set_breakpoint_condition): Pass const
8314 pointer to expression string to parse_exp_1.
8315 (update_watchpoint): Likewise.
8316 (parse_cmd_to_aexpr): Constify string handling.
8317 Pass const pointer to parse_exp_1.
8318 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8319 (find_condition_and_thread): Likewise.
8320 Make TOK const.
8321 (watch_command_1): Make "arg" const.
8322 Constify string handling.
8323 Copy the expression string instead of changing the input
8324 string.
8325 (update_breakpoint_location): Pass const pointer to
8326 parse_exp_1.
8327 * eval.c (parse_and_eval_address): Make "exp" const.
8328 (parse_to_comma_and_eval): Make "expp" const.
8329 (parse_and_eval): Make "exp" const.
8330 * expression.h (parse_expression): Make argument const.
8331 (parse_exp_1): Make first argument const.
8332 * findcmd.c (parse_find_args): Treat "args" as const.
8333 * linespec.c (parse_linespec): Pass const pointer to
8334 linespec_expression_to_pc.
8335 (linespec_expression_to_pc): Make "exp_ptr" const.
8336 * parse.c (parse_exp_1): Make "stringptr" const.
8337 Make a copy of the expression to pass to parse_exp_in_context until
8338 this whole interface can be constified.
8339 (parse_expression): Make "string" const.
8340 * printcmd.c (ui_printf): Treat "arg" as const.
8341 Handle const strings.
8342 * tracepoint.c (validate_actionline): Pass const pointer to
8343 all calls to parse_exp_1.
8344 (encode_actions_1): Likewise.
8345 * value.h (parse_to_comma_and_eval): Make argument const.
8346 (parse_and_eval_address): Likewise.
8347 (parse_and_eval): Likewise.
8348 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8349 (varobj_set_value): Likewise.
8350 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8351 constify string handling.
8352 Pass const pointers to parse_and_eval_address and
8353 parse_to_comman_and_eval.
8354 * cli/cli-utils.c (skip_to_space): Rename to ...
8355 (skip_to_space_const): ... this. Handle const strings.
8356 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8357 skip_to_space_const.
8358 (skip_to_space_const): Declare.
8359 * common/format.c (parse_format_string): Make "arg" const.
8360 Handle const strings.
8361 * common/format.h (parse_format_string): Make "arg" const.
8362 * gdbserver/ax.c (ax_printf): Make "format" const.
8363 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8364 of the expression string.
8365
8366 2013-03-12 Hui Zhu <hui@codesourcery.com>
8367
8368 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8369
8370 2013-03-12 Yao Qi <yao@codesourcery.com>
8371 Hui Zhu <hui@codesourcery.com>
8372
8373 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8374 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8375 DW_OP_deref_size.
8376
8377 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8378
8379 * ada-lex.l (rules): Only recognize 'thread' as a
8380 delimiter when followed by numerals, as for c-exp.y.
8381 Use new rewind_to_char function to rewind the input for
8382 expression-delimiting tokens.
8383 (rewind_to_char): New function.
8384
8385 2013-03-11 Pedro Alves <palves@redhat.com>
8386 Jan Kratochvil <jan.kratochvil@redhat.com>
8387
8388 * configure: Regenerate.
8389 * configure.ac (check dynamic export flag): Link python test with
8390 $PYTHON_LIBS.
8391
8392 2013-03-11 Doug Evans <dje@google.com>
8393 Keith Seitz <keiths@redhat.com>
8394
8395 * linespec.c (find_linespec_symbols): Call find_function_symbols
8396 first, and then call lookup_prefix_sym/find_method.
8397
8398 2013-03-11 Pedro Alves <palves@redhat.com>
8399
8400 * charset.c (convert_between_encodings): Don't cast between
8401 different pointer to pointer types. Instead, make the 'inp' local
8402 be of the type iconv expects.
8403 (wchar_iterate): Don't cast between different pointer to pointer
8404 types. Instead, use new pointer local of the type iconv expects.
8405 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8406 Add new local of type char pointer, and use it to get a
8407 char/string view of the byte buffer, instead of casting between
8408 pointer to pointer types.
8409
8410 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8411
8412 * remote.c (remote_set_trace_buffer_size): Move != operator
8413 to the start of next line to fix an ARI warning.
8414
8415 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8416
8417 * NEWS: Add record changes.
8418
8419 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8420
8421 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8422 the instruction history disassembly.
8423 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8424 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8425
8426 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8427
8428 * Makefile.in (SFILES): Add record-btrace.c
8429 (COMMON_OBS): Add record-btrace.o
8430 * record-btrace.c: New.
8431 * objfiles.c: Include btrace.h.
8432 (free_objfile): call btrace_free_objfile.
8433
8434 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8435
8436 * target.c (target_call_history, target_call_history_from,
8437 target_call_history_range): New.
8438 * target.h (target_ops) <to_call_history, to_call_history_from,
8439 to_call_history_range>: New fields.
8440 (target_call_history, target_call_history_from,
8441 target_call_history_range): New declaration.
8442 * record.c (get_call_history_modifiers, cmd_record_call_history,
8443 record_call_history_size): New.
8444 (_initialize_record): Add the "record function-call-history" command.
8445 Add "set/show record function-call-history-size" commands.
8446 * record.h (record_print_flag): New.
8447
8448 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8449
8450 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8451 to_insn_history_range>: New fields.
8452 (target_insn_history): New.
8453 (target_insn_history_from): New.
8454 (target_insn_history_range): New.
8455 * target.c (target_insn_history): New.
8456 (target_insn_history_from): New.
8457 (target_insn_history_range): New.
8458 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8459 (record_insn_history_size): New.
8460 (get_insn_number): New.
8461 (get_context_size): New.
8462 (no_chunk): New.
8463 (get_insn_history_modifiers): New.
8464 (cmd_record_insn_history): New.
8465 (_initialize_record): Add "set/show record instruction-history-size"
8466 command. Add "record instruction-history" command.
8467
8468 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8469
8470 * record.h (record_disconnect): New.
8471 (record_detach): New.
8472 (record_mourn_inferior): New.
8473 (record_kill): New.
8474 * record-full.c (record_disconnect, record_detach,
8475 record_mourn_inferior, record_kill): Move to...
8476 * record.c: ...here.
8477 (DEBUG): New.
8478 (record_stop): New.
8479 (record_unpush): New.
8480 (cmd_record_stop): Call record_stop. Replace unpush_target
8481 call with record_unpush call.
8482 (record_disconnect, record_detach): Assert that the target
8483 is of record stratum. Call record_unpush, record_stop, and
8484 DEBUG.
8485 (record_mourn_inferior, record_kill): Assert that the target
8486 is of record stratum. Call record_unpush and DEBUG.
8487
8488 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8489
8490 * record-full.h, record-full.c (record_memory_query): Rename
8491 to ...
8492 (record_full_memory_query): ...this. Update all users.
8493 (record_arch_list_add_reg): Rename to ...
8494 (record_full_arch_list_add_reg): ...this. Update all users.
8495 (record_arch_list_add_mem): Rename to ...
8496 (record_full_arch_list_add_mem): ...this. Update all users.
8497 (record_arch_list_add_end): Rename to ...
8498 (record_full_arch_list_add_end): ...this. Update all users.
8499 (record_gdb_operation_disable_set): Rename to ...
8500 (record_full_gdb_operation_disable_set): ...this.
8501 Update all users.
8502
8503 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8504
8505 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8506 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8507 (RECORD_IS_REPLAY): Renamed to ...
8508 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8509 (RECORD_FILE_MAGIC): Renamed to ...
8510 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8511 (record_mem_entry): Renamed to ...
8512 (record_full_mem_entry): ... this. Updated all users.
8513 (record_reg_entry): Renamed to ...
8514 (record_full_reg_entry): ... this. Updated all users.
8515 (record_end_entry): Renamed to ...
8516 (record_full_end_entry): ... this. Updated all users.
8517 (record_type) <record_end, record_reg, record_mem>: Renamed
8518 to ...
8519 (record_full_type) <record_full_end, record_full_reg,
8520 record_full_mem>: ... this. Updated all users.
8521 (record_entry): Renamed to ...
8522 (record_full_entry): ... this. Updated all users.
8523 (record_core_buf_entry): Renamed to ...
8524 (record_full_core_buf_entry): ... this. Updated all users.
8525 (record_core_regbuf): Renamed to ...
8526 (record_full_core_regbuf): ... this. Updated all users.
8527 (record_core_start): Renamed to ...
8528 (record_full_core_start): ... this. Updated all users.
8529 (record_core_end): Renamed to ...
8530 (record_full_core_end): ... this. Updated all users.
8531 (record_core_buf_list): Renamed to ...
8532 (record_full_core_buf_list): ... this. Updated all users.
8533 (record_first): Renamed to ...
8534 (record_full_first): ... this. Updated all users.
8535 (record_list): Renamed to ...
8536 (record_full_list): ... this. Updated all users.
8537 (record_arch_list_head): Renamed to ...
8538 (record_full_arch_list_head): ... this. Updated all users.
8539 (record_arch_list_tail): Renamed to ...
8540 (record_full_arch_list_tail): ... this. Updated all users.
8541 (record_stop_at_limit): Renamed to ...
8542 (record_full_stop_at_limit): ... this. Updated all users.
8543 (record_insn_max_num): Renamed to ...
8544 (record_full_insn_max_num): ... this. Updated all users.
8545 (record_insn_num): Renamed to ...
8546 (record_full_insn_num): ... this. Updated all users.
8547 (record_insn_count): Renamed to ...
8548 (record_full_insn_count): ... this. Updated all users.
8549 (record_ops): Renamed to ...
8550 (record_full_ops): ... this. Updated all users.
8551 (record_core_ops): Renamed to ...
8552 (record_full_core_ops): ... this. Updated all users.
8553 (set_record_cmdlist): Renamed to ...
8554 (set_record_full_cmdlist): ... this. Updated all users.
8555 (show_record_cmdlist): Renamed to ...
8556 (show_record_full_cmdlist): ... this. Updated all users.
8557 (record_cmdlist): Renamed to ...
8558 (record_full_cmdlist): ... this. Updated all users.
8559 (record_beneath_to_resume_ops): Renamed to ...
8560 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8561 (record_beneath_to_resume): Renamed to ...
8562 (record_full_beneath_to_resume): ... this. Updated all users.
8563 (record_beneath_to_wait_ops): Renamed to ...
8564 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8565 (record_beneath_to_wait): Renamed to ...
8566 (record_full_beneath_to_wait): ... this. Updated all users.
8567 (record_beneath_to_store_registers_ops): Renamed to ...
8568 (record_full_beneath_to_store_registers_ops): ... this.
8569 Updated all users.
8570 (record_beneath_to_store_registers): Renamed to ...
8571 (record_full_beneath_to_store_registers): ... this.
8572 Updated all users.
8573 (record_beneath_to_xfer_partial_ops): Renamed to ...
8574 (record_full_beneath_to_xfer_partial_ops): ... this.
8575 Updated all users.
8576 (record_beneath_to_xfer_partial): Renamed to ...
8577 (record_full_beneath_to_xfer_partial): ... this.
8578 Updated all users.
8579 (record_beneath_to_insert_breakpoint): Renamed to ...
8580 (record_full_beneath_to_insert_breakpoint): ... this.
8581 Updated all users.
8582 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8583 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8584 Updated all users.
8585 (record_beneath_to_stopped_data_address): Renamed to ...
8586 (record_full_beneath_to_stopped_data_address): ... this.
8587 Updated all users.
8588 (record_beneath_to_async): Renamed to ...
8589 (record_full_beneath_to_async): ... this. Updated all users.
8590 (record_goto_insn): Renamed to ...
8591 (record_full_goto_insn): ... this. Updated all users.
8592 (record_save): Renamed to ...
8593 (record_full_save): ... this. Updated all users.
8594 (record_reg_alloc): Renamed to ...
8595 (record_full_reg_alloc): ... this. Updated all users.
8596 (record_reg_release): Renamed to ...
8597 (record_full_reg_release): ... this. Updated all users.
8598 (record_mem_alloc): Renamed to ...
8599 (record_full_mem_alloc): ... this. Updated all users.
8600 (record_mem_release): Renamed to ...
8601 (record_full_mem_release): ... this. Updated all users.
8602 (record_end_alloc): Renamed to ...
8603 (record_full_end_alloc): ... this. Updated all users.
8604 (record_end_release): Renamed to ...
8605 (record_full_end_release): ... this. Updated all users.
8606 (record_entry_release): Renamed to ...
8607 (record_full_entry_release): ... this. Updated all users.
8608 (record_list_release): Renamed to ...
8609 (record_full_list_release): ... this. Updated all users.
8610 (record_list_release_following): Renamed to ...
8611 (record_full_list_release_following): ... this.
8612 Updated all users.
8613 (record_list_release_first): Renamed to ...
8614 (record_full_list_release_first): ... this. Updated all users.
8615 (record_arch_list_add): Renamed to ...
8616 (record_full_arch_list_add): ... this. Updated all users.
8617 (record_get_loc): Renamed to ...
8618 (record_full_get_loc): ... this. Updated all users.
8619 (record_check_insn_num): Renamed to ...
8620 (record_full_check_insn_num): ... this. Updated all users.
8621 (record_arch_list_cleanups): Renamed to ...
8622 (record_full_arch_list_cleanups): ... this. Updated all users.
8623 (record_message): Renamed to ...
8624 (record_full_message): ... this. Updated all users.
8625 (record_message_wrapper): Renamed to ...
8626 (record_full_message_wrapper): ... this. Updated all users.
8627 (record_message_wrapper_safe): Renamed to ...
8628 (record_full_message_wrapper_safe): ... this. Updated all users.
8629 (record_gdb_operation_disable): Renamed to ...
8630 (record_full_gdb_operation_disable): ... this. Updated all users.
8631 (record_hw_watchpoint): Renamed to ...
8632 (record_full_hw_watchpoint): ... this. Updated all users.
8633 (record_exec_insn): Renamed to ...
8634 (record_full_exec_insn): ... this. Updated all users.
8635 (record_restore): Renamed to ...
8636 (record_full_restore): ... this. Updated all users.
8637 (record_async_inferior_event_token): Renamed to ...
8638 (record_full_async_inferior_event_token): ... this.
8639 Updated all users.
8640 (record_async_inferior_event_handler): Renamed to ...
8641 (record_full_async_inferior_event_handler): ... this.
8642 Updated all users.
8643 (record_core_open_1): Renamed to ...
8644 (record_full_core_open_1): ... this. Updated all users.
8645 (record_open_1): Renamed to ...
8646 (record_full_open_1): ... this. Updated all users.
8647 (record_open): Renamed to ...
8648 (record_full_open): ... this. Updated all users.
8649 (record_close): Renamed to ...
8650 (record_full_close): ... this. Updated all users.
8651 (record_resume_step): Renamed to ...
8652 (record_full_resume_step): ... this. Updated all users.
8653 (record_resumed): Renamed to ...
8654 (record_full_resumed): ... this. Updated all users.
8655 (record_execution_dir): Renamed to ...
8656 (record_full_execution_dir): ... this. Updated all users.
8657 (record_resume): Renamed to ...
8658 (record_full_resume): ... this. Updated all users.
8659 (record_get_sig): Renamed to ...
8660 (record_full_get_sig): ... this. Updated all users.
8661 (record_sig_handler): Renamed to ...
8662 (record_full_sig_handler): ... this. Updated all users.
8663 (record_wait_cleanups): Renamed to ...
8664 (record_full_wait_cleanups): ... this. Updated all users.
8665 (record_wait_1): Renamed to ...
8666 (record_full_wait_1): ... this. Updated all users.
8667 (record_wait): Renamed to ...
8668 (record_full_wait): ... this. Updated all users.
8669 (record_stopped_by_watchpoint): Renamed to ...
8670 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8671 (record_disconnect): Renamed to ...
8672 (record_full_disconnect): ... this. Updated all users.
8673 (record_detach): Renamed to ...
8674 (record_full_detach): ... this. Updated all users.
8675 (record_mourn_inferior): Renamed to ...
8676 (record_full_mourn_inferior): ... this. Updated all users.
8677 (record_kill): Renamed to ...
8678 (record_full_kill): ... this. Updated all users.
8679 (record_stopped_data_address): Renamed to ...
8680 (record_full_stopped_data_address): ... this. Updated all users.
8681 (record_registers_change): Renamed to ...
8682 (record_full_registers_change): ... this. Updated all users.
8683 (record_store_registers): Renamed to ...
8684 (record_full_store_registers): ... this. Updated all users.
8685 (record_xfer_partial): Renamed to ...
8686 (record_full_xfer_partial): ... this. Updated all users.
8687 (record_breakpoint): Renamed to ...
8688 (record_full_breakpoint): ... this. Updated all users.
8689 (record_breakpoint_p): Renamed to ...
8690 (record_full_breakpoint_p): ... this. Updated all users.
8691 (record_breakpoints): Renamed to ...
8692 (record_full_breakpoints): ... this. Updated all users.
8693 (record_sync_record_breakpoints): Renamed to ...
8694 (record_full_sync_record_breakpoints): ... this.
8695 Updated all users.
8696 (record_init_record_breakpoints): Renamed to ...
8697 (record_full_init_record_breakpoints): ... this.
8698 Updated all users.
8699 (record_insert_breakpoint): Renamed to ...
8700 (record_full_insert_breakpoint): ... this. Updated all users.
8701 (record_remove_breakpoint): Renamed to ...
8702 (record_full_remove_breakpoint): ... this. Updated all users.
8703 (record_can_execute_reverse): Renamed to ...
8704 (record_full_can_execute_reverse): ... this. Updated all users.
8705 (record_get_bookmark): Renamed to ...
8706 (record_full_get_bookmark): ... this. Updated all users.
8707 (record_goto_bookmark): Renamed to ...
8708 (record_full_goto_bookmark): ... this. Updated all users.
8709 (record_async): Renamed to ...
8710 (record_full_async): ... this. Updated all users.
8711 (record_can_async_p): Renamed to ...
8712 (record_full_can_async_p): ... this. Updated all users.
8713 (record_is_async_p): Renamed to ...
8714 (record_full_is_async_p): ... this. Updated all users.
8715 (record_execution_direction): Renamed to ...
8716 (record_full_execution_direction): ... this. Updated all users.
8717 (record_info): Renamed to ...
8718 (record_full_info): ... this. Updated all users.
8719 (record_delete): Renamed to ...
8720 (record_full_delete): ... this. Updated all users.
8721 (record_is_replaying): Renamed to ...
8722 (record_full_is_replaying): ... this. Updated all users.
8723 (record_goto_entry): Renamed to ...
8724 (record_full_goto_entry): ... this. Updated all users.
8725 (record_goto_begin): Renamed to ...
8726 (record_full_goto_begin): ... this. Updated all users.
8727 (record_goto_end): Renamed to ...
8728 (record_full_goto_end): ... this. Updated all users.
8729 (record_goto): Renamed to ...
8730 (record_full_goto): ... this. Updated all users.
8731 (init_record_ops): Renamed to ...
8732 (init_record_full_ops): ... this. Updated all users.
8733 (record_core_resume): Renamed to ...
8734 (record_full_core_resume): ... this. Updated all users.
8735 (record_core_kill): Renamed to ...
8736 (record_full_core_kill): ... this. Updated all users.
8737 (record_core_fetch_registers): Renamed to ...
8738 (record_full_core_fetch_registers): ... this. Updated all users.
8739 (record_core_prepare_to_store): Renamed to ...
8740 (record_full_core_prepare_to_store): ... this. Updated all users.
8741 (record_core_store_registers): Renamed to ...
8742 (record_full_core_store_registers): ... this. Updated all users.
8743 (record_core_xfer_partial): Renamed to ...
8744 (record_full_core_xfer_partial): ... this. Updated all users.
8745 (record_core_insert_breakpoint): Renamed to ...
8746 (record_full_core_insert_breakpoint): ... this. Updated all users.
8747 (record_core_remove_breakpoint): Renamed to ...
8748 (record_full_core_remove_breakpoint): ... this. Updated all users.
8749 (record_core_has_execution): Renamed to ...
8750 (record_full_core_has_execution): ... this. Updated all users.
8751 (init_record_core_ops): Renamed to ...
8752 (init_record_full_core_ops): ... this. Updated all users.
8753 (cmd_record_restore): Renamed to ...
8754 (cmd_record_full_restore): ... this. Updated all users.
8755 (record_save_cleanups): Renamed to ...
8756 (record_full_save_cleanups): ... this. Updated all users.
8757 (cmd_record_start): Renamed to ...
8758 (cmd_record_full_start): ... this. Updated all users.
8759 (set_record_insn_max_num): Renamed to ...
8760 (set_record_full_insn_max_num): ... this. Updated all users.
8761 (set_record_command): Renamed to ...
8762 (set_record_full_command): ... this. Updated all users.
8763 (show_record_command): Renamed to ...
8764 (show_record_full_command): ... this. Updated all users.
8765 (_initialize_record): Renamed to ...
8766 (_initialize_record_full): ... this. Updated all users.
8767
8768 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8769
8770 * record.h: Split into this and ...
8771 * record-full.h: ... this.
8772 * record.c: Split into this and ...
8773 * record-full.c: ... this.
8774 * target.h (target_ops): Add new fields to_info_record,
8775 to_save_record, to_delete_record, to_record_is_replaying,
8776 to_goto_record_begin, to_goto_record_end, to_goto_record.
8777 (target_info_record): New.
8778 (target_save_record): New.
8779 (target_supports_delete_record): New.
8780 (target_delete_record): New.
8781 (target_record_is_replaying): New.
8782 (target_goto_record_begin): New.
8783 (target_goto_record_end): New.
8784 (target_goto_record): New.
8785 * target.c (target_info_record): New.
8786 (target_save_record): New.
8787 (target_supports_delete_record): New.
8788 (target_delete_record): New.
8789 (target_record_is_replaying): New.
8790 (target_goto_record_begin): New.
8791 (target_goto_record_end): New.
8792 (target_goto_record): New.
8793 * record.h: Declare struct cmd_list_element.
8794 (record_cmdlist): New declaration.
8795 (set_record_cmdlist): New declaration.
8796 (show_record_cmdlist): New declaration.
8797 (info_record_cmdlist): New declaration.
8798 (cmd_record_goto): New declaration.
8799 * record.c: Remove unnecessary includes.
8800 Include inferior.h.
8801 (cmd_record_goto): Remove declaration.
8802 (record_cmdlist): Now extern. Initialize.
8803 (set_record_cmdlist): Now extern. Initialize.
8804 (show_record_cmdlist): Now extern. Initialize.
8805 (info_record_cmdlist): Now extern. Initialize.
8806 (find_record_target): New.
8807 (require_record_target): New.
8808 (cmd_record_start): Update.
8809 (cmd_record_delete): Remove target-specific code.
8810 Call target_delete_record.
8811 (cmd_record_stop): Unpush any record target.
8812 (set_record_insn_max_num): Move to record-full.c
8813 (set_record_command): Add comment.
8814 (show_record_command): Add comment.
8815 (info_record_command): Update comment.
8816 Remove target-specific code.
8817 Call the record target's to_info_record.
8818 (cmd_record_start): New.
8819 (cmd_record_goto): Now extern.
8820 Remove target-specific code.
8821 Call target_goto_begin, target_goto_end, or target_goto.
8822 (_initialize_record): Move record target ops initialization to
8823 record-full.c.
8824 Change "record" command help text.
8825 Move "record restore", "record set", and "record show" commands to
8826 record-full.c.
8827 * Makefile.in (SFILES): Add record-full.c.
8828 (HFILES_NO_SRCDIR): Add record-full.h.
8829 (COMMON_OBS): Add record-full.o.
8830 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8831 * arm-tdep.c: Include record-full.h.
8832 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8833 * i386-tdep.c: Include record-full.h.
8834 * infrun.c: Include record-full.h.
8835 * linux-record.c: Include record-full.h.
8836 * moxie-tdep.c: Include record-full.h.
8837 * record-full.c: Include record-full.h.
8838 Change module comment.
8839 (set_record_full_cmdlist): New.
8840 (show_record_full_cmdlist): New.
8841 (record_full_cmdlist): New.
8842 (record_goto_insn): New declaration.
8843 (record_save): New declaration.
8844 (record_check_insn_num): Change query string.
8845 (record_info): New.
8846 (record_delete): New.
8847 (record_is_replaying): New.
8848 (record_goto_entry): New.
8849 (record_goto_begin): New.
8850 (record_goto_end): New.
8851 (record_goto): New.
8852 (init_record_ops): Update.
8853 (init_record_core_ops): Update.
8854 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8855 (cmd_record_start): New.
8856 (set_record_insn_max_num): Moved from record.c
8857 (set_record_full_command): New.
8858 (show_record_full_command): New.
8859 (_initialize_record_full): New.
8860
8861 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8862
8863 * target.h (add_deprecated_target_alias): New.
8864 * target.c (add_deprecated_target_alias): New.
8865
8866 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8867
8868 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8869 and signal.h.
8870 (linux_supports_btrace): Add kernel and
8871 cpuid check.
8872 (kernel_supports_btrace): New function.
8873 (cpu_supports_btrace): New function.
8874 (intel_supports_btrace): New function.
8875
8876 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8877
8878 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8879 * remote.c: Include btrace.h.
8880 (struct btrace_target_info): New struct.
8881 (remote_supports_btrace): New function.
8882 (send_Qbtrace): New function.
8883 (remote_enable_btrace): New function.
8884 (remote_disable_btrace): New function.
8885 (remote_teardown_btrace): New function.
8886 (remote_read_btrace): New function.
8887 (init_remote_ops): Add btrace ops.
8888 (enum <unnamed>): Add btrace packets.
8889 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8890 (_initialize_remote): Add packet configuration for branch tracing.
8891
8892 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8893
8894 * features/btrace.dtd: New file.
8895 * Makefile.in (XMLFILES): Add btrace.dtd.
8896 * btrace.h (parse_xml_btrace): New declaration.
8897 * btrace.c: Include xml-support.h.
8898 (parse_xml_btrace): New function.
8899 (parse_xml_btrace_block): New function.
8900 (block_attributes): New struct.
8901 (btrace_attributes): New struct.
8902 (btrace_children): New struct.
8903 (btrace_elements): New struct.
8904
8905 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8906
8907 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8908 (amd64_linux_enable_btrace): New.
8909 (amd64_linux_disable_btrace): New.
8910 (amd64_linux_teardown_btrace): New.
8911 (_initialize_amd64_linux_nat): Initialize btrace ops.
8912 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8913 (i386_linux_enable_btrace): New.
8914 (i386_linux_disable_btrace): New.
8915 (i386_linux_teardown_btrace): New.
8916 (_initialize_i386_linux_nat): Initialize btrace ops.
8917 * config/i386/linux.mh: Add linux-btrace.o.
8918 * config/i386/linux64.mh: Add linux-btrace.o.
8919
8920 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8921
8922 * common/linux_btrace.h: New file.
8923 * common/linux_btrace.c: New file.
8924 * Makefile.in (SFILES): Add btrace.c.
8925 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8926 (COMMON_OBS): Add btrace.o.
8927 (linux-btrace.o): New rule.
8928
8929 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8930
8931 * target.h: Include btrace.h.
8932 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8933 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8934 * target.c (target_supports_btrace): New function.
8935 (target_enable_btrace): New function.
8936 (target_disable_btrace): New function.
8937 (target_teardown_btrace): New function.
8938 (target_read_btrace): New function.
8939 * btrace.h: New file.
8940 * btrace.c: New file.
8941 * Makefile.in: Add btrace.c.
8942 * gdbthread.h: Include btrace.h.
8943 (struct thread_info): Add btrace field.
8944 * thread.c: Include btrace.h.
8945 (clear_thread_inferior_resources): Call target_teardown_btrace.
8946 * common/btrace-common.h: New file.
8947
8948 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8949
8950 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8951 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8952 kill_status to outer block.
8953
8954 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8955
8956 Fix entry-values if the callee called a noreturn function.
8957 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8958 get_frame_address_in_block. Add new comment.
8959
8960 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8961
8962 Fix entry-values in C++ across CUs.
8963 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8964 lookup_minimal_symbol. Add a comment.
8965 * dwarf2read.c
8966 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8967 DW_AT_linkage_name.
8968
8969 2013-03-08 Yao Qi <yao@codesourcery.com>
8970
8971 * tracepoint.c (_initialize_tracepoint): Indent the code.
8972
8973 2013-03-08 Pedro Alves <palves@redhat.com>
8974
8975 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8976 (parse_find_args, find_command): Change type of pattern buffer
8977 locals to 'gdb_byte *'.
8978
8979 2013-03-08 Stan Shebs <stan@codesourcery.com>
8980 Hafiz Abid Qadeer <abidh@codesourcery.com>
8981
8982 * NEWS: Mention set and show trace-buffer-size commands.
8983 Mention new packet.
8984 * target.h (struct target_ops): New method
8985 to_set_trace_buffer_size.
8986 (target_set_trace_buffer_size): New macro.
8987 * target.c (update_current_target): Set up new method.
8988 * tracepoint.c (trace_buffer_size): New global.
8989 (start_tracing): Send it to the target.
8990 (set_trace_buffer_size): New function.
8991 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8992 * remote.c (remote_set_trace_buffer_size): New function.
8993 (_initialize_remote): Use it.
8994 (QTBuffer:size) New remote command.
8995 (PACKET_QTBuffer_size): New enum.
8996 (remote_protocol_features): Add an entry for
8997 PACKET_QTBuffer_size.
8998
8999 2013-03-08 Tom Tromey <tromey@redhat.com>
9000
9001 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9002 variable.
9003
9004 2013-03-07 Pedro Alves <palves@redhat.com>
9005
9006 * target.c (target_read_stralloc, target_fileio_read_alloc):
9007 *Cast pointer to 'gdb_byte *' in target call.
9008
9009 2013-03-07 Pedro Alves <palves@redhat.com>
9010
9011 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9012 call.
9013
9014 2013-03-07 Keith Seitz <keiths@redhat.com>
9015
9016 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9017 (trace_pass_command): Likewise.
9018 * cli/cli-cmds.c: Include cli/cli-utils.h.
9019 (source_command): Use skip-spaces.
9020 (disassemble_command): Likewise.
9021 * findcmd.c: Include cli/cli-utils.h.
9022 (parse_find_args): Use skip_spaces.
9023 * go32-nat.c: Include cli/cli-utils.h.
9024 (go32_sldt): Use skip_spaces.
9025 (go32_sgdt): Likewise.
9026 (go32_sidt): Likewise.
9027 (go32_pde): Likewise.
9028 (go32_pte): Likewise.
9029 (go32_pte_for_address): Likewise.
9030 * infcmd.c: Include cli/cli-utils.h.
9031 (registers_info): Use skip_spaces.
9032 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9033 (linux_info_proc): Likewise.
9034 * linux-thread-db.c: Include cli/cli-utils.h.
9035 (info_auto_load_libthread_db): Use skip_spaces_const.
9036 * m32r-rom.c: Include cli/cli-utils.h.
9037 (m32r_upload_command): Use skip_spaces.
9038 * maint.c: Include cli/cli-utils.h.
9039 (maintenance_translate_address): Use skip_spaces.
9040 * mi/mi-parse.c: Include cli/cli-utils.h.
9041 (mi_parse_argv): Use skip_spaces.
9042 (mi_parse): Likewise.
9043 * minsyms.c: Include cli/cli-utils.h.
9044 (msymbol_hash_iw): Use skip_spaces_const.
9045 * objc-lang.c: Include cli/cli-utils.h.
9046 (parse_selector): Use skip_spaces.
9047 (parse_method): Likewise.
9048 * python/python.c: Include cli/cli-utils.h.
9049 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9050 (python_command)[HAVE_PYTHON]: Likewise.
9051 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9052 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9053 (m32r_load): Use skip_spaces.
9054 * serial.c: Include cli/cli-utils.h.
9055 (serial_open): Use skip_spaces_const.
9056 * stack.c: Include cli/cli-utils.h.
9057 (parse_frame_specification_1): Use skip_spaces_const.
9058 * symfile.c: Include cli/cli-utils.h.
9059 (set_ext_lang_command): Use skip_spaces.
9060 * symtab.c: Include cli/cli-utils.h.
9061 (rbreak_command): Use skip_spaces.
9062 * thread.c (thread_name_command): Use skip_spaces.
9063 * tracepoint.c (validate_actionline): Use skip_spaces.
9064 (encode_actions_1): Likewise.
9065 (trace_find_range_command): Likewise.
9066 (trace_find_outside_command): Likewise.
9067 (trace_dump_actions): Likewise.
9068
9069 2013-03-07 Pedro Alves <palves@redhat.com>
9070
9071 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9072 * expprint.c (print_subexp_standard): Likewise.
9073 * utils.c (host_char_to_target): Likewise.
9074 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9075 * varobj.c (value_get_print_value): Change type of local to char*.
9076 Cast it gdb_byte * in call to language printer.
9077
9078 2013-03-07 Pedro Alves <palves@redhat.com>
9079
9080 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9081 gdb_byte *'.
9082 (make_wchar_iterator): Remove cast to char*.
9083 (wchar_iterate): Change type of local.
9084
9085 2013-03-07 Pedro Alves <palves@redhat.com>
9086
9087 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9088 for 'regcache->register_status'.
9089
9090 2013-03-07 Pedro Alves <palves@redhat.com>
9091
9092 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9093 int.
9094
9095 2013-03-07 Pedro Alves <palves@redhat.com>
9096
9097 * stap-probe.c (handle_stap_probe): Add cast to char*.
9098
9099 2013-03-07 Pedro Alves <palves@redhat.com>
9100
9101 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9102 RECORD_MSGRCV>: Pass a signed variable to
9103 regcache_raw_read_signed, instead of an unsigned one.
9104
9105 2013-03-07 Pedro Alves <palves@redhat.com>
9106
9107 * remote-notif.c (notif_debug): Change type to int.
9108 * remote-notif.h (notif_debug): Likewise.
9109
9110 2013-03-07 Pedro Alves <palves@redhat.com>
9111
9112 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9113
9114 2013-03-07 Pedro Alves <palves@redhat.com>
9115
9116 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9117 * remote.h (hex2bin, bin2hex): ... here.
9118 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9119
9120 2013-03-07 Eli Zaretskii <eliz@gnu.org>
9121
9122 * utils.c (initialize_utils): Improve doc strings of "set/show
9123 width", "set/show height", and "set/show pagination".
9124
9125 2013-03-06 Keith Seitz <keiths@redhat.com>
9126
9127 * ax-gdb.c (gen_printf): Make FORMAT const.
9128 * ax-gdb.h (gen_printf): Likewise.
9129 * ax-general.c (ax_string): Make STR const.
9130 * ax.h (ax_string): Likewise.
9131
9132 2013-03-06 Doug Evans <dje@google.com>
9133
9134 * elfread.c (elf_symfile_read): Move debugging printf to more
9135 logical location.
9136
9137 2013-03-06 Pedro Alves <palves@redhat.com>
9138
9139 * python/py-utils.c (target_string_to_unicode): Delete function.
9140 * python/python-internal.h (target_string_to_unicode): Delete
9141 declaration.
9142
9143 2013-03-06 Pierre Muller <muller@sourceware.org>
9144
9145 * linespec.c (get_current_search_block): ARI fix, use (void)
9146 for empty parameter list.
9147
9148 2013-03-05 Doug Evans <dje@google.com>
9149
9150 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9151 of old ada_lookup_symbol_list. In !full_search case, don't
9152 search superblocks.
9153 (ada_lookup_symbol_list): Delete arg full_search, all callers
9154 updated. Call ada_lookup_symbol_list_worker.
9155 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9156 * ada-lang.h (ada_lookup_symbol_list): Update.
9157 * language.h (language_defn): Update comment for
9158 la_iterate_over_symbols.
9159 * linespec.c (iterate_over_file_blocks): New function.
9160 (iterate_over_all_matching_symtabs): Call it.
9161 (lookup_prefix_sym): Ditto.
9162 (get_current_search_block): New function.
9163 (get_search_block): Delete.
9164 (find_label_symbols): Call get_current_search_block.
9165 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9166 * symtab.c (iterate_over_symbols): Don't search superblocks.
9167
9168 2013-03-05 Yao Qi <yao@codesourcery.com>
9169
9170 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9171 parameter VAR's type from "unsigned int" to "int".
9172 * command.h (var_zuinteger_unlimited): Update its comments.
9173 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9174
9175 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9176
9177 * NEWS: Mention new target x86_64-*-cygwin*.
9178
9179 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9180
9181 * configure.host: Add x86_64-*-cygwin* as host.
9182 * configure.tgt: Add x86_64-*-cygwin* as target.
9183 * config/i386/cygwin64.mh: New file.
9184
9185 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9186
9187 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9188
9189 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9190
9191 * linespec.c (struct linespec_canonical_name): New.
9192 (struct linespec_state): Change canonical_names type to it.
9193 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9194 xrealloc element size. Initialize the different CANONICAL fields.
9195 (canonical_to_fullform): New.
9196 (filter_results): Use it. Add variables canonical, fullform and
9197 cleanup.
9198 (struct decode_line_2_item, decode_line_2_compare_items): New.
9199 (decode_line_2): Remove variables iter and item_names, add variables
9200 items and items_count. Modify the code for these new variables.
9201
9202 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9203
9204 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9205 calling do_cleanup.
9206
9207 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9208
9209 * tracepoint.c (build_traceframe_info): Add code for byte order.
9210
9211 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9212
9213 * v850-tdep.c: (v850e2_register_name): Revise system register
9214 names to match current V850E2M architecture specifications.
9215 Update register number enum comments too.
9216
9217 2013-03-01 Jiong Wang <jiwang@tilera.com>
9218 Pedro Alves <palves@redhat.com>
9219
9220 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9221 to END_ADDR.
9222 (tilegx_skip_prologue): Limit prologue analysis to section end.
9223
9224 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9225
9226 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9227 use it.
9228
9229 2013-03-01 Pedro Alves <palves@redhat.com>
9230
9231 Use gdb_byte for bytes from the program being debugged.
9232
9233 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9234 Change type of local 'buf' to gdb_byte.
9235 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9236 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9237 * cris-tdep.c (cris_sigcontext_addr)
9238 (cris_sigtramp_frame_unwind_cache): Likewise.
9239 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9240 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9241 Likewise.
9242 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9243 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9244 (hppa32_hpux_search_dummy_call_sequence)
9245 (hppa_hpux_supply_save_state): Likewise.
9246 * hppa-linux-tdep.c (insns_match_pattern)
9247 (hppa_linux_find_global_pointer): Likewise.
9248 * hppa-tdep.c (hppa_in_function_epilogue_p)
9249 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9250 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9251 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9252 (i386fbsd_collect_uthread): Likewise.
9253 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9254 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9255 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9256 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9257 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9258 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9259 (ia64_libunwind_frame_prev_register)
9260 (ia64_libunwind_sigtramp_frame_this_id)
9261 (ia64_find_global_pointer_from_dynamic_section)
9262 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9263 (ia64_unwind_pc): Likewise.
9264 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9265 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9266 (m68hc11_extract_return_value): Likewise.
9267 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9268 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9269 (mep_get_insn, mep_push_dummy_call): Likewise.
9270 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9271 (mips_linux_in_dynsym_stub): Likewise.
9272 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9273 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9274 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9275 to gdb_byte.
9276 * remote-mips.c (mips_set_register): Likewise.
9277 * remote-sim.c (gdbsim_fetch_register): Likewise.
9278 * score-tdep.c (score7_fetch_inst): Change type of parameter
9279 'memblock' and local 'buf' to gdb_byte.
9280 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9281 Change type of local 'buf' to gdb_byte. Adjust.
9282 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9283 to gdb_byte**.
9284 (score7_analyze_prologue): Change type of 'memblock' and
9285 'memblock_ptr' locals to gdb_byte*.
9286 * sh64-tdep.c (sh64_extract_return_value)
9287 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9288 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9289 * solib-pa64.c (pa64_solib_create_inferior_hook)
9290 (pa64_open_symbol_file_object): Remove local 'buf'.
9291 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9292 (som_open_symbol_file_object): Likewise.
9293 * solib-spu.c (spu_current_sos): Likewise.
9294 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9295 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9296 (spu_store_registers): Likewise.
9297 * target.c (debug_print_register): Likewise.
9298 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9299 * xstormy16-tdep.c (xstormy16_store_return_value)
9300 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9301 (xstormy16_find_jmp_table_entry): Likewise.
9302
9303 2013-03-01 Jiong Wang <jiwang@tilera.com>
9304
9305 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9306 (tilegx_gdbarch_init): Install it.
9307
9308 2013-02-28 Tom Tromey <tromey@redhat.com>
9309
9310 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9311 PyLong_Check.
9312
9313 2013-02-28 Doug Evans <dje@google.com>
9314
9315 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9316 * python/python.c (gdbpy_find_pc_line): Ditto.
9317
9318 2013-02-28 Tom Tromey <tromey@redhat.com>
9319
9320 * contrib/excheck.py: New file.
9321 * contrib/exsummary.py: New file.
9322 * contrib/gcc-with-excheck: New file.
9323
9324 2013-02-28 Tom Tromey <tromey@redhat.com>
9325
9326 * python/python.c (gdbpy_print_stack): Call begin_line and
9327 fprintf_filtered inside TRY_CATCH.
9328
9329 2013-02-28 Tom Tromey <tromey@redhat.com>
9330
9331 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9332 inside TRY_CATCH.
9333
9334 2013-02-28 Tom Tromey <tromey@redhat.com>
9335
9336 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9337 frame_object_to_frame_info inside TRY_CATCH.
9338
9339 2013-02-28 Tom Tromey <tromey@redhat.com>
9340
9341 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9342 TRY_CATCH.
9343
9344 2013-02-28 Tom Tromey <tromey@redhat.com>
9345
9346 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9347
9348 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9349
9350 * windows-nat.c: Throughout, fix format strings and casts of
9351 printf-like functions to avoid type related warnings on all
9352 platforms.
9353 (handle_output_debug_string): Fetch context information address
9354 from debug string using string_to_core_addr.
9355
9356 2013-02-27 Jiong Wang <jiwang@tilera.com>
9357
9358 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9359 * regformats/reg-tilegx32.dat: New.
9360
9361 2013-02-27 Jiong Wang <jiwang@tilera.com>
9362
9363 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9364
9365 2013-02-27 Jiong Wang <jiwang@tilera.com>
9366
9367 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9368
9369 2013-02-27 Yao Qi <yao@codesourcery.com>
9370 Pedro Alves <palves@redhat.com>
9371
9372 * tracepoint.c (tfile_trace_find): For tfind
9373 pc/tp/range/outside, look for the next trace frame instead of
9374 always starting from frame 0.
9375
9376 2013-02-26 Anthony Green <green@moxielogic.com>
9377
9378 * configure.tgt: Add support for moxie-*-rtems* target.
9379
9380 2013-02-25 Pedro Alves <palves@redhat.com>
9381
9382 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9383 warning text.
9384
9385 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9386
9387 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9388 if $fp is used as the virtual frame pointer.
9389
9390 2013-02-23 Alan Modra <amodra@gmail.com>
9391
9392 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9393 symbol size.
9394 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9395 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9396 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9397 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9398
9399 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9400
9401 Code cleanup.
9402 * elfread.c (build_id_bfd_get): Make the return type const.
9403 (build_id_verify): Make the check parameter const.
9404 (build_id_to_debug_filename): Make the build_id parameter and variable
9405 data const.
9406 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9407
9408 2013-02-21 Alan Modra <amodra@gmail.com>
9409
9410 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9411
9412 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9413
9414 Add a new method 'disassemble' to gdb.Architecture class.
9415 * python/py-arch.c (archpy_disassmble): Implementation of the
9416 new method gdb.Architecture.disassemble.
9417 (arch_object_methods): Add entry for the new method.
9418
9419 2013-02-20 Jiong Wang <jiwang@tilera.com>
9420
9421 * MAINTAINERS (Write After Approval): Add myself to the list.
9422
9423 2013-02-19 Pedro Alves <palves@redhat.com>
9424
9425 Garbage collect 'struct monitor_ops'::load_routine.
9426
9427 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9428 * monitor.c (monitor_load): No longer call
9429 current_monitor->load_routine.
9430 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9431 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9432 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9433
9434 2013-02-19 Pedro Alves <palves@redhat.com>
9435
9436 PR gdb/15161
9437
9438 Harmonize with generic_load.
9439
9440 * monitor.c: Include "readline/readline.h".
9441 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9442 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9443 long/strtol for the 'load_offset' local. Error out if no argument
9444 is given or if too many arguments are given. Tilde expand the
9445 passed in file name.
9446
9447 2013-02-19 Kai Tietz <ktietz@redhat.com>
9448
9449 PR gdb/15161
9450 * symfile.c (load_section_data): Change type of load_offset
9451 to CORE_ADDR.
9452 (generic_load): User strtoulst instead of strtoul for conversion
9453 of load_offset.
9454
9455 2013-02-19 Jiong Wang <jiwang@tilera.com>
9456
9457 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9458 for return address, "lr" register, saved on stack.
9459 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9460 after we invoke tilegx_analyze_prologue.
9461
9462 2013-02-19 Jiong Wang <jiwang@tilera.com>
9463
9464 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9465
9466 2013-02-19 Jiong Wang <jiwang@tilera.com>
9467
9468 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9469
9470 2013-02-19 Jiong Wang <jiwang@tilera.com>
9471
9472 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9473 (tilegx_write_pc): New function.
9474 (tilegx_cannot_reference_register): Return zero if REGNO
9475 is TILEGX_FAULTNUM_REGNUM.
9476 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9477 (tilegx_register_name): Add handling of "faultnum" register.
9478 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9479 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9480 handling of TILEGX_FAULTNUM_REGNUM.
9481 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9482
9483 2013-02-19 Jiong Wang <jiwang@tilera.com>
9484
9485 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9486 should be aligned to 64bit.
9487
9488 2013-02-19 Kai Tietz <ktietz@redhat.com>
9489
9490 * windows-nat.c (windows_xfer_memory): Fix debug-output
9491 for LLP64.
9492
9493 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9494
9495 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9496 Don't check DSP register number if HAVE_DSP is not set.
9497
9498 2013-02-19 Alan Modra <amodra@gmail.com>
9499
9500 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9501 throughout file instead.
9502 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9503 Don't xmalloc return value.
9504 (build_id_verify): Similarly. Don't xfree.
9505 (build_id_to_debug_filename): Update.
9506 (find_separate_debug_file_by_buildid): Update, don't xfree.
9507
9508 2013-02-18 Tom Tromey <tromey@redhat.com>
9509
9510 PR gdb/15102:
9511 * dwarf2read.c (read_subrange_type): Use result of
9512 'check_typedef'.
9513
9514 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9515
9516 * frame.c: Remove one extra white space after #include
9517 directive.
9518
9519 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9520
9521 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9522
9523 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9524
9525 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9526 and dir commands into an if block.
9527
9528 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9529
9530 * python/py-breakpoint (struct pybp_code): Use int instead of
9531 enum type_code.
9532
9533 2013-02-15 Pedro Alves <pedro@codesourcery.com>
9534 Hafiz Abid Qadeer <abidh@codesourcery.com>
9535
9536 * NEWS: Mention new field "trace-file".
9537 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9538 (tfile_open): Record the trace file's filename in the trace
9539 status.
9540 (tfile_files_info): Mention the name of the trace file.
9541 Check the "filename" field explicitely.
9542 (trace_status_command): Explicitely check "filename" field.
9543 (trace_find_command): Ditto.
9544 (trace_find_pc_command): Ditto.
9545 (trace_find_tracepoint_command): Ditto.
9546 (trace_find_line_command): Ditto.
9547 (trace_find_range_command): Ditto.
9548 (trace_find_outside_command): Ditto.
9549 * tracepoint.h (struct trace_status) <from_file>: Rename it
9550 to "filename" and make it hold the trace file's filename
9551 instead of a boolean.
9552 * remote.c (remote_get_trace_status): Initialize "filename"
9553 field with NULL instead of 0.
9554
9555 2013-02-15 Yao Qi <yao@codesourcery.com>
9556
9557 * remote.c: Fix a typo.
9558
9559 2013-02-14 Pierre Muller <muller@sourceware.org>
9560
9561 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9562
9563 2013-02-14 Pedro Alves <palves@redhat.com>
9564
9565 * utils.c (savestring): Don't #undef it. Move function to
9566 common/common-utils.c.
9567 * common/common-utils.c: Include gdb_string.h.
9568 (savestring): Move here from utils.c.
9569 * common/common-utils.h (savestring): Declare.
9570
9571 2013-02-14 Pedro Alves <palves@redhat.com>
9572
9573 * utils.c (savestring): Rename parameter 'size' to 'len'.
9574
9575 2013-02-14 Pedro Alves <palves@redhat.com>
9576 Yufeng Zhang <yufeng.zhang@arm.com>
9577
9578 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9579 (aarch64_inferior_data, struct aarch64_inferior_data):
9580 Delete.
9581 (struct aarch64_process_info): New.
9582 (aarch64_process_list): New global.
9583 (aarch64_find_process_pid, aarch64_add_process)
9584 (aarch64_process_info_get): New functions.
9585 (aarch64_inferior_data_get): Delete.
9586 (aarch64_process_info_get): New function.
9587 (aarch64_forget_process): New function.
9588 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9589 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9590 aarch64_get_debug_reg_state.
9591 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9592 instead of linux_nat_iterate_watchpoint_lwps.
9593 (aarch64_linux_new_fork): New function.
9594 (aarch64_linux_child_post_startup_inferior): Use
9595 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9596 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9597 (aarch64_linux_remove_hw_breakpoint)
9598 (aarch64_handle_aligned_watchpoint)
9599 (aarch64_handle_unaligned_watchpoint)
9600 (aarch64_linux_insert_watchpoint)
9601 (aarch64_linux_remove_watchpoint)
9602 (aarch64_linux_stopped_data_address): Adjust to pass the current
9603 process id to aarch64_debug_reg_state.
9604 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9605 linux_nat_new_fork hook, and aarch64_forget_process as
9606 linux_nat_forget_process hook; remove the call to
9607 register_inferior_data_with_cleanup.
9608
9609 2013-02-14 Pedro Alves <palves@redhat.com>
9610
9611 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9612 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9613 lval_memory.
9614
9615 2013-02-14 Pedro Alves <pedro@codesourcery.com>
9616 Hafiz Abid Qadeer <abidh@codesourcery.com>
9617
9618 * tracepoint.h (validate_trace_state_variable_name): Declare.
9619 * tracepoint.c (validate_trace_state_variable_name): New.
9620 (trace_variable_command): Parse the trace state variable's name
9621 without using parse_expression. Do several validations.
9622 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9623 trace state variable's name with parse_expression. Validate it.
9624
9625 2013-02-14 Yao Qi <yao@codesourcery.com>
9626
9627 * infcmd.c (breakpoint_proceeded): Remove it.
9628
9629 2013-02-14 Yao Qi <yao@codesourcery.com>
9630
9631 * tracepoint.c (end_actions_pseudocommand): Make it static.
9632 (while_stepping_pseudocommand): Likewise.
9633 * tracepoint.h (end_actions_pseudocommand): Remove the
9634 declaration.
9635 (while_stepping_pseudocommand): Likewise.
9636
9637 2013-02-14 Yao Qi <yao@codesourcery.com>
9638
9639 * cli/cli-decode.c (help_cmd): Remove the declaration of
9640 "cmdlist".
9641 (help_all): Likewise.
9642
9643 2013-02-13 Pedro Alves <palves@redhat.com>
9644
9645 * amd64-linux-nat.c (update_debug_registers_callback):
9646 Update comment.
9647 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9648 iterate_over_lwps.
9649 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9650 i386_debug_reg_state.
9651 (amd64_linux_new_fork): New function.
9652 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9653 linux_nat_new_fork hook, and i386_forget_process as
9654 linux_nat_forget_process hook.
9655 * i386-linux-nat.c (update_debug_registers_callback):
9656 Update comment.
9657 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9658 iterate_over_lwps.
9659 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9660 i386_debug_reg_state.
9661 (i386_linux_new_fork): New function.
9662 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9663 linux_nat_new_fork hook, and i386_forget_process as
9664 linux_nat_forget_process hook.
9665 * i386-nat.c (i386_init_dregs): Delete.
9666 (i386_inferior_data, struct i386_inferior_data):
9667 Delete.
9668 (struct i386_process_info): New.
9669 (i386_process_list): New global.
9670 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9671 New functions.
9672 (i386_inferior_data_get): Delete.
9673 (i386_process_info_get): New function.
9674 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9675 (i386_forget_process): New function.
9676 (i386_cleanup_dregs): Rewrite.
9677 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9678 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9679 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9680 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9681 to i386_debug_reg_state.
9682 (i386_use_watchpoints): Don't register inferior data.
9683 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9684 adjust comment.
9685 (i386_forget_process): Declare.
9686 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9687 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9688 New static globals.
9689 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9690 (add_initial_lwp): New, factored out from ...
9691 (add_lwp): ... this. Don't check the number of lwps before
9692 calling linux_nat_new_thread.
9693 (linux_nat_iterate_watchpoint_lwps): Delete.
9694 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9695 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9696 forks and vforks.
9697 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9698 initial lwp.
9699 (linux_nat_kill, linux_nat_mourn_inferior): Call
9700 linux_nat_forget_process.
9701 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9702 (linux_nat_forget_process): New functions.
9703 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9704 type.
9705 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9706 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9707 types.
9708 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9709 (linux_nat_forget_process): New declarations.
9710
9711 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9712 (amd64fbsd_mourn_inferior): New function.
9713 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9714 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9715
9716 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9717
9718 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9719 Adding _().
9720
9721 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9722
9723 * aarch64-linux-nat.c (debug_reg_change_callback)
9724 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9725 %s and phex().
9726
9727 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9728
9729 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9730 with LONGEST.
9731
9732 2013-02-13 Pedro Alves <palves@redhat.com>
9733 Hafiz Abid Qadeer <abidh@codesourcery.com>
9734
9735 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9736
9737 2013-02-12 Tom Tromey <tromey@redhat.com>
9738
9739 PR symtab/11464:
9740 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9741 NAME return.
9742 (classify_inner_name): Remove 'first_name' argument, add
9743 'context'. Remove unused variable.
9744 (yylex): Explicitly maintain the context type. Exit loop earlier
9745 if NAME result is seen.
9746
9747 2013-02-12 Pedro Alves <palves@redhat.com>
9748
9749 * amd64-darwin-tdep.c: Add (C) after Copyright.
9750 * cli/cli-cmds.h: Ditto.
9751 * cli/cli-decode.c: Ditto.
9752 * cli/cli-decode.h: Ditto.
9753 * cli/cli-dump.c: Ditto.
9754 * cli/cli-dump.h: Ditto.
9755 * cli/cli-interp.c: Ditto.
9756 * cli/cli-logging.c: Ditto.
9757 * cli/cli-script.c: Ditto.
9758 * cli/cli-script.h: Ditto.
9759 * cli/cli-setshow.c: Ditto.
9760 * cli/cli-setshow.h: Ditto.
9761 * cli/cli-utils.c: Ditto.
9762 * cli/cli-utils.h: Ditto.
9763 * config/alpha/nm-osf3.h: Ditto.
9764 * config/djgpp/djconfig.sh: Ditto.
9765 * config/i386/nm-fbsd.h: Ditto.
9766 * config/i386/nm-i386gnu.h: Ditto.
9767 * config/nm-linux.h: Ditto.
9768 * config/nm-nto.h: Ditto.
9769 * config/rs6000/nm-rs6000.h: Ditto.
9770 * config/sparc/nm-sol2.h: Ditto.
9771 * darwin-nat-info.c: Ditto.
9772 * dfp.c: Ditto.
9773 * dfp.h: Ditto.
9774 * gdb-demangle.h: Ditto.
9775 * i386-darwin-nat.c: Ditto.
9776 * i386-darwin-tdep.c: Ditto.
9777 * linux-fork.h: Ditto.
9778 * m32c-tdep.c: Ditto.
9779 * microblaze-linux-tdep.c: Ditto.
9780 * microblaze-rom.c: Ditto.
9781 * microblaze-tdep.c: Ditto.
9782 * microblaze-tdep.h: Ditto.
9783 * mips-linux-tdep.h: Ditto.
9784 * ppc-ravenscar-thread.c: Ditto.
9785 * ppc-ravenscar-thread.h: Ditto.
9786 * prologue-value.c: Ditto.
9787 * prologue-value.h: Ditto.
9788 * ravenscar-thread.c: Ditto.
9789 * ravenscar-thread.h: Ditto.
9790 * sparc-ravenscar-thread.c: Ditto.
9791 * sparc-ravenscar-thread.h: Ditto.
9792 * tilegx-linux-tdep.c: Ditto.
9793 * unwind_stop_reasons.def: Ditto.
9794 * windows-nat.h: Ditto.
9795 * xtensa-linux-tdep.c: Ditto.
9796 * xtensa-xtregs.c: Ditto.
9797 * regformats/regdat.sh: Ditto.
9798 * regformats/regdef.h: Ditto.
9799
9800 2013-02-12 Pedro Alves <palves@redhat.com>
9801
9802 * break-catch-sig.c: Update copyright years.
9803
9804 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9805
9806 Add support for a destructor for ui_out data and use it to
9807 provide a ui_out destructor.
9808 * ui-out.h: Declare the new ui_out destructor.
9809 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9810 * ui-out.c (default_data_destroy): Add a default data destructor
9811 which does nothing.
9812 (default_ui_out_impl): Set the new data_destroy field to
9813 default_data_destroy
9814 (uo_data_destroy): Local function which invokes the data
9815 destructor if present.
9816 (clear_table): Local function which clears the table data of a
9817 ui_out object.
9818 (ui_out_destroy): Public function which frees a ui_out object.
9819 (ui_out_table_end): Use the new clear_table function.
9820 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9821 NULL.
9822 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9823 to NULL.
9824
9825 2013-02-11 Doug Evans <dje@google.com>
9826
9827 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9828 (printf_decfloat): New function. Broken out from ui_printf.
9829 Remove unnecessary code to shift the entire format string down.
9830 (printf_pointer): New function.
9831 (ui_printf): Code to print C strings, wide C strings, decfloats,
9832 and pointers moved to separate functions.
9833
9834 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9835
9836 * valops.c (value_assign): Handling bitfield offset in
9837 `lval_internalvar_component' case.
9838
9839 2013-02-08 Doug Evans <dje@google.com>
9840
9841 * common/format.c (parse_format_string): Fix whitespace.
9842
9843 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9844
9845 * stack.c (return_command): Work around uninitialized variable
9846 warning.
9847
9848 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9849
9850 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9851 number of the registers from 36 to 34.
9852
9853 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9854
9855 * NEWS: Mention new AArch64 native and target support.
9856
9857 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9858
9859 * MAINTAINERS (Write After Approval): Add myself.
9860
9861 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9862 Marcus Shawcroft <marcus.shawcroft@arm.com>
9863 Nigel Stephens <nigel.stephens@arm.com>
9864 Yufeng Zhang <yufeng.zhang@arm.com>
9865
9866 * aarch64-linux-nat.c: New file.
9867 * config/aarch64/linux.mh: New file.
9868 * configure.host: Add AArch64.
9869 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9870
9871 2013-02-07 Doug Evans <dje@google.com>
9872
9873 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9874 disassemble command.
9875
9876 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9877
9878 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9879 set_gdbarch_fetch_tls_load_module_address.
9880
9881 2013-02-06 David S. Miller <davem@davemloft.net>
9882
9883 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9884 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9885 * value.c (struct_return_convention): New function.
9886 (using_struct_return): Implement in terms of struct_return_convention.
9887 * value.h (struct_return_convention): Declare.
9888 * stack.c (return_command): Allow successful overriding of the return
9889 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9890
9891 2013-02-06 Tom Tromey <tromey@redhat.com>
9892
9893 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9894 outside of TRY_CATCH.
9895
9896 2013-02-06 Yao Qi <yao@codesourcery.com>
9897
9898 * mi/mi-interp.c: Include "tracepoint.h".
9899 (mi_tsv_modified): Declare.
9900 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9901 (mi_interpreter_init): Call observer_attach_tsv_modified.
9902 (mi_tsv_modified): New.
9903 (mi_tsv_created, mi_tsv_deleted): Update.
9904 * tracepoint.c (trace_variable_command): Call
9905 observer_notify_tsv_modified if the initial value of tsv is
9906 changed.
9907 (delete_trace_state_variable): Call
9908 observer_notify_tsv_deleted earlier.
9909 (trace_variable_command): Caller update.
9910 (create_tsv_from_upload): Likewise.
9911 * observer.sh: Declare "struct trace_state_variable".
9912
9913 * NEWS: Mention the new MI notification "=tsv-modified".
9914
9915 2013-02-05 Doug Evans <dje@google.com>
9916
9917 * completer.c (location_completer): Fix typo in comment.
9918
9919 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9920
9921 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9922 ADDRESS sorted.
9923
9924 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9925
9926 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9927 Refactor if statement to avoid trailing || operator.
9928
9929 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
9930
9931 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9932
9933 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
9934
9935 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9936 * configure.host: Add powerpc*-*-freebsd* target.
9937 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9938 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9939 * config/powerpc/fbsd.mh: New file.
9940
9941 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9942 Denys Vlasenko <dvlasenk@redhat.com>
9943 Pedro Alves <palves@redhat.com>
9944
9945 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9946 (struct elf_internal_linux_prpsinfo): Forward declare.
9947 * gdbarch.h, gdbarch.c: Regenerate.
9948 * linux-tdep.c: Include `cli/cli-utils.h'.
9949 (linux_fill_prpsinfo): New function.
9950 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9951 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9952 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9953 depending on gdbarch pointer bitness.
9954 * ppc-linux-tdep.c: Include elf-bfd.h.
9955 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9956 on 32-bit.
9957
9958 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9959 Marcus Shawcroft <marcus.shawcroft@arm.com>
9960 Nigel Stephens <nigel.stephens@arm.com>
9961 Yufeng Zhang <yufeng.zhang@arm.com>
9962
9963 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9964
9965 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9966 Marcus Shawcroft <marcus.shawcroft@arm.com>
9967 Nigel Stephens <nigel.stephens@arm.com>
9968 Yufeng Zhang <yufeng.zhang@arm.com>
9969
9970 * aarch64-newlib-tdep.c: New file.
9971 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9972 aarch64*-*-elf.
9973 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9974 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9975 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9976 * osabi.c (gdb_osabi_names): Add "Newlib".
9977
9978 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9979 Marcus Shawcroft <marcus.shawcroft@arm.com>
9980 Nigel Stephens <nigel.stephens@arm.com>
9981 Yufeng Zhang <yufeng.zhang@arm.com>
9982
9983 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9984 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9985 * aarch64-linux-tdep.c: New file.
9986 * aarch64-linux-tdep.h: New file.
9987 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9988 * configure.tgt: Add aarch64-none-linux-gnu.
9989
9990 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9991 Marcus Shawcroft <marcus.shawcroft@arm.com>
9992 Nigel Stephens <nigel.stephens@arm.com>
9993 Yufeng Zhang <yufeng.zhang@arm.com>
9994
9995 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9996 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9997 (ALLDEPFILES): Add aarch64-tdep.c.
9998 * aarch64-tdep.c: New file.
9999 * aarch64-tdep.h: New file.
10000 * configure.tgt: Add AArch64.
10001 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10002 (aarch64-expedite): New definition.
10003 * features/aarch64-core.xml: New file.
10004 * features/aarch64-fpu.xml: New file.
10005 * features/aarch64-without-fpu.c: New file (generated).
10006 * features/aarch64-without-fpu.xml: New file.
10007 * features/aarch64.c: New file (generated).
10008 * features/aarch64.xml: New file.
10009 * regformats/aarch64-without-fpu.dat: New file (generated).
10010 * regformats/aarch64.dat: New file (generated).
10011
10012 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10013
10014 * contrib/expect-read1.c: New file.
10015 * contrib/expect-read1.sh: New file.
10016
10017 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10018
10019 * dwarf2read.c (file_file_name): New function with code from
10020 file_full_name.
10021 (file_full_name): Move most of the code to file_file_name.
10022 (macro_start_file): Rename variable full_name to file_name and use
10023 file_file_name for it. Add comp_dir parameter to new_macro_table.
10024 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10025 macro_source_file->filename access by macro_source_fullname call.
10026 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10027 caller.
10028 * macrotab.c (struct macro_table): New field comp_dir.
10029 (macro_include): New variables link_fullname and source_fullname.
10030 Replace any macro_source_file->filename access by macro_source_fullname
10031 call.
10032 (macro_lookup_inclusion): Remove the partial filenames checking code.
10033 (check_for_redefinition): New variables source_fullname and
10034 found_key_fullname. Replace any macro_source_file->filename access by
10035 macro_source_fullname call.
10036 (macro_undef): New variables source_fullname and key_fullname. Replace
10037 any macro_source_file->filename access by macro_source_fullname call.
10038 (macro_lookup_definition): New variables retval and source_fullname.
10039 Replace any macro_source_file->filename access by macro_source_fullname
10040 call.
10041 (foreach_macro): New variable key_fullname. Replace any
10042 macro_source_file->filename access by macro_source_fullname call.
10043 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10044 macro_source_file->filename access by macro_source_fullname call.
10045 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10046 (macro_source_fullname): New function.
10047 * macrotab.h (struct macro_source_file): Extent the filename field
10048 comment.
10049 (new_macro_table): New parameter comp_dir, add a comment for it.
10050 (macro_source_fullname): new declaration.
10051
10052 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10053
10054 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10055 this_real_name to outer block. Use it also for
10056 compare_filenames_for_search.
10057 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10058 with dw2_get_real_path for file_matcher, considering also
10059 BASENAMES_MAY_DIFFER.
10060 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10061
10062 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10063
10064 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10065 to the file_matcher parameter. Pass 0 to it.
10066 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10067 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10068 NULL psymtab_to_fullname result.
10069 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10070 an expected filename instead.
10071 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10072 file_matcher parameter. Call also psymtab_to_fullname, after newly
10073 considering BASENAMES_MAY_DIFFER.
10074 * source.c (rewrite_source_path): Remove static.
10075 * source.h (rewrite_source_path): New declaration.
10076 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10077 the expand_symtabs_matching field. Comment it.
10078 * symtab.c (file_matches): New function comment. Add parameter
10079 basenames, implement it.
10080 (search_symbols_file_matches): Add basenames parameter. Update the
10081 file_matches caller.
10082 (search_symbols): Match FILES also against symtab_to_fullname.
10083 Optimize it for BASENAMES_MAY_DIFFER.
10084
10085 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10086
10087 * source.c (print_source_lines_base): Print for TUI also "fullname".
10088 * tui/tui-data.c (init_content_element): Change tui_locator_element
10089 field to full_name.
10090 * tui/tui-data.h (struct tui_locator_element): Likewise.
10091 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10092 tui_update_locator_filename calls to tui_update_locator_fullname.
10093 Replace symtab->filename refererence by symtab_to_fullname call.
10094 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10095 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10096 field to full_name. Replace symtab->filename refererence by
10097 symtab_to_fullname call.
10098 (tui_show_symtab_source): Rename parameter to fullname. Change
10099 tui_locator_element field to full_name.
10100 * tui/tui-stack.c: Include source.h.
10101 (tui_set_locator_filename): Rename the declaration to ...
10102 (tui_set_locator_fullname): ... here. Rename its parameter to
10103 fullname, updates its comment.
10104 (tui_set_locator_info): Rename its parameter to fullname.
10105 (tui_set_locator_filename): Rename the definition to ...
10106 (tui_set_locator_fullname): ... here. Rename its parameter to
10107 fullname, updates its comment. Change tui_locator_element field to
10108 full_name.
10109 (tui_set_locator_info): Rename its parameter to fullname.
10110 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10111 (tui_update_locator_filename): Rename to ...
10112 (tui_update_locator_fullname): ... here. Rename callee to
10113 tui_set_locator_fullname.
10114 (tui_show_frame_info): Replace symtab->filename refererence by
10115 symtab_to_fullname call.
10116 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10117 (tui_update_locator_fullname): ... here.
10118 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10119 tui_update_locator_fullname. Replace symtab->filename refererence by
10120 symtab_to_fullname call.
10121 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10122 Rename the callee to tui_update_locator_fullname.
10123 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10124
10125 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10126
10127 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10128 by symtab_to_filename_for_display calls.
10129 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10130 (clear_command): New variable sal_fullname, initialize it. Replace
10131 compare_filenames_for_search by filename_cmp with sal_fullname.
10132 (say_where, update_static_tracepoint): Replace symtab->filename
10133 refererences by symtab_to_filename_for_display calls.
10134 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10135 Likewise.
10136 * dwarf2read.c: Include source.h.
10137 (fixup_go_packaging): Replace symtab->filename refererences by
10138 symtab_to_filename_for_display calls.
10139 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10140 Replace symtab->filename refererences by symtab_to_filename_for_display
10141 calls.
10142 (create_sals_line_offset, convert_linespec_to_sals): New variable
10143 fullname, initialize it, replace symtab->filename reference by the
10144 variable.
10145 * linux-fork.c: Include source.h.
10146 (info_checkpoints_command): Replace symtab->filename refererences by
10147 symtab_to_filename_for_display calls.
10148 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10149 by symtab_to_filename_for_display calls.
10150 * mdebugread.c: Include source.h.
10151 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10152 symtab_to_filename_for_display calls.
10153 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10154 (mi_cmd_file_list_exec_source_files): Likewise.
10155 * printcmd.c: Include source.h.
10156 (build_address_symbolic): Replace symtab->filename refererences by
10157 symtab_to_filename_for_display calls.
10158 * psymtab.c (partial_map_symtabs_matching_filename)
10159 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10160 with psymtab_to_fullname.
10161 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10162 by symtab_to_filename_for_display calls.
10163 (stpy_get_filename): New variable filename, initialize it, use instead
10164 of symtab->filename refererences.
10165 (salpy_str): Make variable filename const char *. Replace
10166 symtab->filename refererences by symtab_to_filename_for_display calls.
10167 * skip.c: Include source.h and filenames.h.
10168 (skip_file_command): Remove const from the symtab variable. Replace
10169 symtab->filename refererences by symtab_to_fullname call.
10170 (function_name_is_marked_for_skip): New variables searched_for_fullname
10171 and fullname. Use them to search also with symtab's fullname.
10172 * source.c (find_source_lines): Replace symtab->filename refererences
10173 by symtab_to_filename_for_display calls.
10174 (print_source_lines_base): New variable filename, use it instead of
10175 symtab->filename. Replace symtab->filename refererences by
10176 symtab_to_filename_for_display calls.
10177 (line_info, forward_search_command): Replace symtab->filename
10178 refererences by symtab_to_filename_for_display calls.
10179 (reverse_search_command): Replace symtab->filename refererences by
10180 symtab_to_filename_for_display calls. New variable filename for it.
10181 * stack.c (frame_info): Likewise.
10182 * symmisc.c: Include source.h.
10183 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10184 (maintenance_info_symtabs): Replace symtab->filename refererences by
10185 symtab_to_filename_for_display calls.
10186 * symtab.c (iterate_over_some_symtabs): Call
10187 compare_filenames_for_search also with symtab_to_fullname.
10188 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10189 symtab->filename refererences by symtab_to_filename_for_display calls.
10190 (find_line_symtab): Replace symtab->filename refererences by
10191 symtab_to_filename_for_display calls.
10192 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10193 (print_symbol_info): Make the last parameter const char *. New
10194 variable s_filename. Use it in the function.
10195 (symtab_symbol_info): Make the last_filename variable const char *.
10196 Replace symtab->filename refererences by symtab_to_filename_for_display
10197 calls.
10198 (rbreak_command): New variable fullname. Use it. Replace
10199 symtab->filename refererence by symtab_to_filename_for_display call.
10200 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10201 (print_one_static_tracepoint_marker): Replace symtab->filename
10202 refererences by symtab_to_filename_for_display calls.
10203 * tui/tui-source.c (tui_set_source_content): New variables filename and
10204 s_filename. Replace symtab->filename refererences by this variable.
10205 Replace other symtab->filename refererences by
10206 symtab_to_filename_for_display calls.
10207
10208 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10209 Jan Kratochvil <jan.kratochvil@redhat.com>
10210
10211 Add a new variable that controls a way in which filenames are
10212 displayed.
10213 * NEWS (set filename-display): New entry.
10214 * source.c (filename_display_basename, filename_display_relative)
10215 (filename_display_absolute, filename_display_kind_names)
10216 (filename_display_string, show_filename_display_string)
10217 (symtab_to_filename_for_display): New.
10218 (_initialize_source): Added initialization of 'filename-display'
10219 variable.
10220 * source.h (symtab_to_filename_for_display): Added declaration.
10221 * stack.c (print_frame): Added new variable and calling of a new
10222 function and condition with this variable. Changed third argument of
10223 calling of a function.
10224
10225 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10226
10227 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10228 Rename field reference filename to fullname.
10229 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10230 fullname. New comment for it.
10231 * tui/tui-source.c (tui_set_source_content): Rename field reference
10232 filename to fullname. Initialize field by symtab_to_fullname now.
10233 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10234 reference filename to fullname. Use symtab_to_fullname during
10235 comparison.
10236
10237 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10238
10239 Code cleanup.
10240 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10241 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10242 filename to fullname. Rename variable this_name to this_fullname.
10243 Lowercase FILENAME_CMP call.
10244 (dw2_find_symbol_file): New comment for the returned string.
10245 (dwarf2_gdb_index_functions): Rename the function to
10246 dw2_expand_symtabs_with_fullname.
10247 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10248 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10249 fullname.
10250 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10251 * symfile.h (struct quick_symbol_functions): Rename field
10252 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10253 parameter filename to fullname. Document returned string meaning for
10254 find_symbol_file.
10255 * symtab.c (find_line_symtab): Rename the called function to
10256 expand_symtabs_with_fullname.
10257
10258 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10259
10260 Code cleanup.
10261 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10262 call of filename_cmp with compare_filenames_for_search.
10263 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10264 is_abs, unify the call of FILENAME_CMP with
10265 compare_filenames_for_search. New gdb_asserts for real_path and name.
10266 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10267 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10268 * symfile.h (struct quick_symbol_functions): Extend the comment for
10269 map_symtabs_matching_filename.
10270 * symtab.c (compare_filenames_for_search): Remove the function comment
10271 relative path requirement. Handle absolute filenames, with a comment.
10272 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10273 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10274 real_path and name. Unify the call of compare_filenames_for_search
10275 with FILENAME_CMP.
10276 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10277
10278 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10279
10280 Code cleanup.
10281 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10282 source_file references by symtab field references. Remove variables
10283 sal and fullname.
10284 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10285 (clear_command, say_where): Replace bp_location field source_file
10286 references by symtab field references.
10287 (bp_location_dtor): Remove the source_file reference.
10288 (update_static_tracepoint): Replace bp_location field source_file
10289 references by symtab field references.
10290 (breakpoint_free_objfile): New function.
10291 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10292 Replace the field source_file by field symtab, extend its comment.
10293 (breakpoint_free_objfile): New declaration.
10294 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10295 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10296 field source_file references by symtab field references.
10297
10298 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10299
10300 Replace xfullpath calls by gdb_realpath calls.
10301 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10302 function comment.
10303 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10304 Remove it from the iterate_over_some_symtabs call.
10305 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10306 Remove it from the dw2_map_expand_apply calls, remove a block handling
10307 it.
10308 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10309 Remove it from the iterate_over_some_symtabs call.
10310 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10311 Remove it from the partial_map_expand_apply calls, remove a block
10312 handling it. Drop gdb_realpath call and cleanups from the real_path
10313 handling.
10314 * source.c (openp): Drop the comment part about xfullpath. Replace
10315 xfullpath calls by gdb_realpath calls.
10316 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10317 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10318 from method map_symtabs_matching_filename and its comment.
10319 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10320 gdb_realpath call.
10321 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10322 remove it also from the function comment, remove a block handling it.
10323 Drop gdb_realpath call and cleanups from the real_path handling.
10324 (iterate_over_symtabs): Drop variable full_path and its use.
10325 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10326 * utils.c (xfullpath): Remove.
10327 * utils.h (xfullpath): Remove.
10328
10329 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10330
10331 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10332 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10333 (ALLDEPFILES): Add ppc64-tdep.c.
10334 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10335 ppc64-tdep.o to gdb_target_obs.
10336 * ppc64-tdep.h: New file.
10337 * ppc64-tdep.c: New file.
10338 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10339 ppc-linux-tdep.c to here.
10340 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10341 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10342 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10343 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10344 from ppc-linux-tdep.c to here.
10345 (ppc64_convert_from_func_ptr_addr): Rename from
10346 ppc64_linux_convert_from_func_ptr_addr to
10347 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10348 here.
10349 * rs6000-tdep.c:
10350 (read_insn): Move from ppc-linux-tdep.c to here.
10351 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10352 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10353 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10354 Removed above functions.
10355 (ppc_linux_init_abi): Adjust.
10356
10357 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10358
10359 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10360
10361 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10362
10363 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10364
10365 2013-02-01 Pedro Alves <palves@redhat.com>
10366
10367 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10368 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10369
10370 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10371
10372 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10373 files with no separate debug info.
10374 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10375 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10376 only for files with no separate debug info.
10377
10378 2013-01-31 Tom Tromey <tromey@redhat.com>
10379
10380 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10381 change type.
10382 (struct jit_program_space_data): Rename from jit_inferior_data.
10383 Update comments.
10384 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10385 Change return type. Attach data to program space.
10386 (jit_program_space_data_cleanup): Rename from
10387 jit_inferior_data_cleanup; change argument type.
10388 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10389 change type.
10390 (jit_register_code): Update.
10391 (jit_update_inferior_cache): Remove.
10392 (jit_breakpoint_deleted): Get jit data from the location's program
10393 space.
10394 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10395 'ps_data', change type.
10396 (jit_inferior_init, jit_breakpoint_re_set_internal)
10397 (jit_event_handler): Update.
10398 (free_objfile_data): Get data from objfile's program space.
10399 (_initialize_jit): Update.
10400
10401 2013-01-31 Tom Tromey <tromey@redhat.com>
10402
10403 PR gdb/13987:
10404 * jit.c (struct jit_inferior_data) <cached_code_address,
10405 jit_breakpoint>: New fields.
10406 (jit_breakpoint_re_set_internal): Fix logging. Only create
10407 breakpoint if cached address has changed.
10408 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10409 functions.
10410 (_initialize_jit): Register breakpoint deleted observer.
10411
10412 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10413
10414 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10415 (save_infcall_suspend_state): Ifdef out unused inf.
10416 (restore_infcall_suspend_state): Ifdef out unused inf.
10417 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10418 (jit_frame_sniffer): Remove unused inf_data.
10419
10420 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10421
10422 * c-exp.y (classify_inner_name): Remove unused type.
10423 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10424 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10425 need_escape.
10426 (c_get_string): Remove unused kind.
10427 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10428
10429 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10430
10431 * charset.c (intermediate_encoding): Remove unused i.
10432 * completer.c (signal_completer): Remove unused i.
10433 * continuations.c (discard_my_continuations_1): Remove unused
10434 continuation_ptr.
10435 * corelow.c (core_close): Remove unuseD name.
10436 (get_core_siginfo): Remove unused pid.
10437 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10438 i, cps.
10439 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10440 (loclist_describe_location): Remove unused first.
10441 * event-top.c (command_line_handler): Remove unused got_eof.
10442 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10443 (resize_section_table): Remove unused old_value.
10444 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10445 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10446 * i386-tdep.c (i386_process_record): Remove unused rex.
10447 * infcmd.c (get_return_value): Remove unused uiout.
10448 * jv-lang.c (type_from_class): Remove unused is_array.
10449 * jv-valprint.c (java_val_print): Remove unused i.
10450 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10451 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10452 * m2-typeprint.c (m2_print_type): Remove unused code.
10453 * macroexp.c (get_character_constant): Remove unused body_start.
10454 (macro_stringify): Remove unused result.
10455 * objc-lang.c (find_methods): Remove unused gdbarch.
10456 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10457 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10458 * stack.c (print_frame_args): Remove unused summary.
10459 * thread.c (thread_apply_command): Remove unused p.
10460 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10461 * valops.c (search_struct_method): Remove unused skip.
10462 * valprint.c (generic_val_print): Remove unused byte_order.
10463 * varobj.c (varobj_update): Remove unused changed.
10464 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10465 (alias_command): Remove unused c.
10466 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10467 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10468 format.
10469 (mi_cmd_data_write_memory): Remove unused word_format.
10470 (mi_cmd_data_write_memory_bytes): Remove unused r.
10471 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10472 p_start, p_end.
10473 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10474 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10475 line_width.
10476
10477 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10478
10479 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10480 * symtab.c (iterate_over_symtabs): Remove unused s.
10481 (find_pc_sect_symtab): Remove unused pspAce.
10482 (find_pc_sect_line): Remove unused alt_symtab.
10483 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10484 (completion_list_add_name): Remove unused newsize.
10485
10486 2013-01-31 Tom Tromey <tromey@redhat.com>
10487
10488 PR c++/14998:
10489 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10490 TYPE_CODE_FUNC.
10491
10492 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10493
10494 * target.c (target_read_string): Remove unused origlen.
10495
10496 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10497
10498 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10499 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10500 * ax-general.c (ax_print): Remove unused is_float.
10501 * blockframe.c (block_innermost_frame): Remove unused start, end.
10502 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10503
10504 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10505
10506 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10507 (svr4_read_so_list): Remove unused lmo.
10508 * solib-target.c (solib_target_relocate_section_addresses): Remove
10509 unused flags.
10510
10511 2013-01-30 Tom Tromey <tromey@redhat.com>
10512
10513 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10514
10515 2013-01-30 Tom Tromey <tromey@redhat.com>
10516
10517 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10518 * utils.c (gnu_debuglink_crc32): Remove.
10519 * utils.h (gnu_debuglink_crc32): Don't declare.
10520
10521 2013-01-30 Tom Tromey <tromey@redhat.com>
10522
10523 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10524 (read_structure_type, read_enumeration_type): Remove cast.
10525
10526 2013-01-30 Tom Tromey <tromey@redhat.com>
10527
10528 * dwarf2read.c (read_namespace_type): Remove cast.
10529 (read_typedef): Likewise.
10530
10531 2013-01-29 Tom Tromey <tromey@redhat.com>
10532
10533 * dwarf2read.c (free_dwo_file): Remove assert.
10534
10535 2013-01-29 Tom Tromey <tromey@redhat.com>
10536
10537 * value.c (deprecated_set_value_modifiable): Remove.
10538 * value.h (deprecated_set_value_modifiable): Remove.
10539
10540 2013-01-28 Doug Evans <dje@google.com>
10541
10542 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10543 to addresses from dwo files.
10544
10545 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10546
10547 * valops.c (find_overload_match): Remove unused argument 'lax'.
10548 * value.h: Remove unused argument 'lax' from the declaration of
10549 find_overload_match.
10550 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10551 to find_overload_match.
10552 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10553 argument to find_overload_match.
10554
10555 2013-01-25 Tom Tromey <tromey@redhat.com>
10556
10557 * dwarf2read.c (processing_has_namespace_info): Remove.
10558 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10559 (process_die, read_func_scope, dwarf2_start_symtab)
10560 (new_symbol_full): Update.
10561
10562 2013-01-25 Tom Tromey <tromey@redhat.com>
10563
10564 * cp-namespace.c (cp_set_block_scope): Remove.
10565 * cp-support.h (cp_set_block_scope): Remove.
10566 * dbxread.c: Include block.h.
10567 (cp_set_block_scope): New function.
10568 (process_one_symbol): Update.
10569 * dwarf2read.c (read_func_scope): Use block_set_scope.
10570
10571 2013-01-25 Pedro Alves <palves@redhat.com>
10572
10573 * remote.c (add_current_inferior_and_thread): Tweak comment.
10574
10575 2013-01-25 Tom Tromey <tromey@redhat.com>
10576
10577 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10578 (cp_add_using_directive): Add 'copy_names' argument.
10579 * cp-support.h (cp_add_using_directive): Update.
10580 (struct using_direct) <import_src, import_dest, alias,
10581 declaration>: Now const.
10582 * dwarf2read.c (read_import_statement): Use obconcat.
10583 Don't copy names passed to cp_add_using_directive.
10584
10585 2013-01-25 Tom Tromey <tromey@redhat.com>
10586
10587 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10588
10589 2013-01-25 Pedro Alves <palves@redhat.com>
10590
10591 * remote.c (stop_reply_extract_thread): New.
10592 (add_current_inferior_and_thread): New parameter 'wait_status'.
10593 Handle it.
10594 (remote_start_remote): Pass wait status to
10595 add_current_inferior_and_thread.
10596 (extended_remote_run): Update comment.
10597 (extended_remote_create_inferior_1): Pass wait status to
10598 add_current_inferior_and_thread.
10599
10600 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
10601 Ulrich Weigand <uweigand@de.ibm.com>
10602
10603 * valarith.c (value_vector_widen): New function for replicating a
10604 scalar into a vector.
10605 (value_binop): Use value_vector_widen to widen scalar to vector
10606 rather than casting, this better matches gcc C behaviour.
10607 * valops.c (value_casst): Update logic for casting between vector
10608 types, and for casting from scalar to vector, try to match gcc C
10609 behaviour.
10610 * value.h (value_vector_widen): Declare.
10611 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10612 function, handle special case for casting scalar to vector.
10613 (opencl_relop): Use opencl_value_cast.
10614 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10615 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10616 in order to use opencl_value_cast.
10617
10618 2013-01-25 Yao Qi <yao@codesourcery.com>
10619
10620 * event-loop.c: Include "queue.h".
10621 (gdb_event_p): New typedef.
10622 (DECLARE_QUEUE_P): Use.
10623 (DEFINE_QUEUE_P): Use.
10624 (async_queue_event): Remove.
10625 (gdb_event_xfree): New.
10626 (initialize_event_loop): New.
10627 (process_event): Use QUEUE macros.
10628 (event_queue): Remove.
10629 (gdb_wait_for_event): Caller update.
10630 (check_async_event_handlers): Likewise.
10631 (poll_timers): Likewise.
10632 * event-loop.h (initialize_event_loop): Declare.
10633 * event-loop.c (gdb_event_xfree): New.
10634 * top.c (gdb_init): Call initialize_event_loop.
10635
10636 2013-01-25 Yao Qi <yao@codesourcery.com>
10637
10638 * event-loop.c (async_queue_event): Remove one parameter
10639 'position'. Remove code handling 'position' == TAIL.
10640 (gdb_wait_for_event): Caller update.
10641 (check_async_event_handlers): Caller update.
10642 (poll_timers): Caller update.
10643 * event-loop.h (enum queue_position): Remove.
10644
10645 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10646
10647 * MAINTAINERS: Update my email.
10648
10649 2013-01-25 Yao Qi <yao@codesourcery.com>
10650
10651 * main.c (print_gdb_help): Remove "--epoch" from the help
10652 message.
10653
10654 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10655
10656 * symtab.c (skip_prologue_using_sal): Consider a file
10657 change the same as an increased line number
10658
10659 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10660
10661 * MAINTAINERS (Write After Approval): Add myself to the list.
10662
10663 2013-01-24 Tom Tromey <tromey@redhat.com>
10664
10665 * ada-lang.h (ada_decode_symbol): Make return type const.
10666 * ada-lang.c (ada_decode_symbol): Likewise.
10667
10668 2013-01-23 Doug Evans <dje@google.com>
10669
10670 * linespec.c (find_linespec_symbols): Make static.
10671
10672 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10673
10674 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10675 type on float conversion for complex type.
10676
10677 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10678
10679 Add a new class gdb.Architecture which exposes GDB's
10680 internal representation of architecture via GDB Python API.
10681 * Makefile.in: Add entries corresponding to the new file
10682 python/py-arch.c.
10683 * NEWS (Python Scripting): Add entries for the new class
10684 gdb.Architecture and the new method gdb.Frame.architecture.
10685 * python/py-arch.c: Implement gdb.Architecture class.
10686 * python/py-frame.c (frapy_arch): Implement the method
10687 gdb.Frame.architecture().
10688 (frame_object_methods): Add 'architecture' to the method table.
10689 * python/python-internal.h: Add declarations of new utility
10690 functions.
10691 * python/python.c (_initialize_python): Initialize
10692 gdb.Architecture class.
10693
10694 2013-01-23 Doug Evans <dje@google.com>
10695
10696 Work around binutils/15021.
10697 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10698 type_unit_group out of union s. All uses updated.
10699 (read_index_from_section): Watch for index version 8.
10700 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10701 an imported symtab.
10702 (write_psymtabs_to_index): Increment version number to 8.
10703
10704 2013-01-22 Pedro Alves <palves@redhat.com>
10705
10706 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10707 user-visible.
10708
10709 2013-01-22 Pedro Alves <palves@redhat.com>
10710
10711 * annotate.c (annotate_breakpoints_changed): Rename to ...
10712 (annotate_breakpoints_invalid): ... this. Make static.
10713 (breakpoint_changed): Adjust.
10714 (_initialize_annotate): Always install the observers. Install a
10715 "breakpoint_created" observer.
10716 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10717 * breakpoint.c (set_breakpoint_condition)
10718 (breakpoint_set_commands, do_map_commands_command)
10719 (init_raw_breakpoint, clear_command, set_ignore_count)
10720 (enable_breakpoint_disp): No longer call
10721 annotate_breakpoints_changed.
10722
10723 2013-01-22 Pedro Alves <palves@redhat.com>
10724
10725 * annotate.c: Include "inferior.h".
10726 (frames_invalid_emitted)
10727 (breakpoints_invalid_emitted): New globals.
10728 (async_background_execution_p): New function.
10729 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10730 emitting the annotation if it has already been emitted.
10731 (annotate_display_prompt): New function.
10732 * annotate.h (annotate_display_prompt): New declaration.
10733 * event-top.c: Include annotate.h.
10734 (display_gdb_prompt): Call annotate_display_prompt.
10735
10736 2013-01-22 Pedro Alves <palves@redhat.com>
10737
10738 * annotate.c (ignore_count_changed): Delete.
10739 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10740 (annotate_ignore_count_change): Delete.
10741 (annotate_stopped): Don't emit a delayed breakpoints-changed
10742 annotation.
10743 * annotate.h (annotate_ignore_count_change): Delete.
10744 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10745 annotate_ignore_count_change.
10746
10747 2013-01-22 Tom Tromey <tromey@redhat.com>
10748
10749 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10750 require_rvalue for a register location.
10751
10752 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10753
10754 * breakpoint.c (print_one_breakpoint_location): Add MI
10755 field 'thread-groups' when printing a breakpoint.
10756 (output_thread_groups): New function.
10757
10758 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10759
10760 * python/lib/gdb/commands/explore.py
10761 (CompoundExplorer.explore_expr): Correct the name of a method
10762 being invoked.
10763 (ExploreTypeCommand.invoke): Add a missing 'return'.
10764
10765 2013-01-21 Tom Tromey <tromey@redhat.com>
10766
10767 * gdb_obstack.h (obconcat): Move declaration here, from...
10768 * symfile.h (obconcat): ... here.
10769 * gdb_obstack.c: New file.
10770 (obconcat): Move from...
10771 * symfile.c (obconcat): ... here.
10772 * Makefile.in (SFILES): Add gdb_obstack.c.
10773 (COMMON_OBS): Add gdb_obstack.o.
10774
10775 2013-01-21 Tom Tromey <tromey@redhat.com>
10776
10777 * symfile.h (obsavestring): Don't declare.
10778 * symfile.c (obsavestring): Remove.
10779 * ada-exp.y: Use obstack_copy0, not obsavestring.
10780 * ada-lang.c: Use obstack_copy0, not obsavestring.
10781 * coffread.c: Use obstack_copy0, not obsavestring.
10782 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10783 * dbxread.c: Use obstack_copy0, not obsavestring.
10784 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10785 * jit.c: Use obstack_copy0, not obsavestring.
10786 * mdebugread.c: Use obstack_copy0, not obsavestring.
10787 * psymtab.c: Use obstack_copy0, not obsavestring.
10788 * stabsread.c: Use obstack_copy0, not obsavestring.
10789 * xcoffread.c: Use obstack_copy0, not obsavestring.
10790
10791 2013-01-21 Tom Tromey <tromey@redhat.com>
10792
10793 * dwarf2read.c (fixup_go_packaging): Save package name
10794 on objfile obstack.
10795 * gdbtypes.c (init_type): Don't copy name.
10796
10797 2013-01-21 Tom Tromey <tromey@redhat.com>
10798
10799 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10800 const.
10801 (struct attribute) <u.str>: Now const.
10802 (struct fnfieldlist) <name>: Now const.
10803 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10804 (partial_die_parent_scope): Make return type const.
10805 (partial_die_full_name, add_partial_symbol): Update.
10806 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10807 'name' const.
10808 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10809 (read_file_scope, read_func_scope, dwarf2_add_field)
10810 (dwarf2_add_member_fn, read_structure_type)
10811 (process_enumeration_scope, read_array_type, read_module_type)
10812 (read_base_type, read_subrange_type): Update.
10813 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10814 (new_symbol_full, guess_full_die_structure_name): Update.
10815 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10816 (dwarf2_name): Return const type.
10817 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10818 const.
10819
10820 2013-01-21 Tom Tromey <tromey@redhat.com>
10821
10822 * gdbtypes.c (init_type): Make 'name' const.
10823 * gdbtypes.h (init_type): Update.
10824
10825 2013-01-21 Tom Tromey <tromey@redhat.com>
10826
10827 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10828 (start_symtab): Make 'name' and 'dirname' const. Use
10829 set_last_source_file.
10830 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10831 (last_source_file): Define. Now static.
10832 (set_last_source_file, get_last_source_file): New functions.
10833 * buildsym.h (last_source_file): Don't declare.
10834 (start_symtab): Update.
10835 (set_last_source_file, get_last_source_file): Declare.
10836 * coffread.c (complete_symtab): Use set_last_source_file.
10837 (coff_end_symtab): Likewise.
10838 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10839 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10840 set_last_source_file.
10841 (process_one_symbol): Use get_last_source_file.
10842 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10843 (psymtab_to_symtab_1): Use get_last_source_file.
10844 * xcoffread.c (process_linenos): Use get_last_source_file.
10845 (complete_symtab): Use set_last_source_file.
10846 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10847 (scan_xcoff_symtab): Use set_last_source_file.
10848
10849 2013-01-21 Tom Tromey <tromey@redhat.com>
10850
10851 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10852 (symbol_set_names): Remove casts. Handle field const-ness.
10853
10854 2013-01-21 Tom Tromey <tromey@redhat.com>
10855
10856 * dwarf2read.c (new_symbol_full): Remove cast.
10857 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10858 * symtab.h (symbol_set_demangled_name): Update.
10859
10860 2013-01-21 Tom Tromey <tromey@redhat.com>
10861
10862 * main.c (captured_main): Call bfd_init.
10863
10864 2013-01-21 Tom Tromey <tromey@redhat.com>
10865
10866 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10867 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10868 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10869 * NEWS: Update.
10870
10871 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10872
10873 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10874
10875 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10876
10877 Fix gdb.fortran/common-block.exp crash in PIE mode.
10878 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10879 LOC_COMMON_BLOCK.
10880 * f-valprint.c (info_common_command_for_block): Expect
10881 LOC_COMMON_BLOCK in gdb_assert.
10882 * symtab.h (struct general_symbol_info): Update comment for the
10883 common_block member.
10884 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10885 (enum address_class): New member LOC_COMMON_BLOCK.
10886
10887 2013-01-18 David Blaikie <dblaikie@gmail.com>
10888
10889 * MAINTAINERS (Write After Approval): Add "David Blaikie".
10890
10891 2013-01-18 Tom Tromey <tromey@redhat.com>
10892
10893 PR c++/14999:
10894 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10895 Call require_rvalue.
10896
10897 2013-01-18 Yao Qi <yao@codesourcery.com>
10898
10899 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10900 (dbx_read_symtab): New declaration.
10901 (dbx_psymtab_to_symtab): Delete.
10902 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10903 Rename parameter PST to SELF. Exchanged two parameters.
10904 (start_psymtab): Caller update.
10905 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10906 (dwarf2_read_symtab): New declaration.
10907 (dwarf2_psymtab_to_symtab): Delete.
10908 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10909 Rename parameter PST to SELF. Exchanged two parameters.
10910 (create_partial_symtab): Caller update.
10911 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10912 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10913 Rename parameter PST to SELF. Exchanged two parameters.
10914 (parse_partial_symbols, new_psymtab): Caller update.
10915 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10916 two parameters.
10917 * psymtab.c (psymtab_to_symtab): Caller update.
10918 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10919 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10920 Rename parameter PST to SELF. Exchanged two parameters.
10921 (xcoff_start_psymtab): Caller update.
10922
10923 2013-01-18 Yao Qi <yao@codesourcery.com>
10924
10925 * infrun.c (proceed): Rename local variable 'oneproc' to
10926 'force_step'.
10927
10928 2013-01-17 Doug Evans <dje@google.com>
10929
10930 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10931 (dw2_build_type_unit_groups): Delete. All uses updated.
10932
10933 * symtab.h (struct symbol_search): Add comment.
10934
10935 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10936
10937 * symtab.c (compare_filenames_for_search): New comment for
10938 HAS_DRIVE_SPEC.
10939
10940 2013-01-17 Tom Tromey <tromey@redhat.com>
10941
10942 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10943
10944 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10945
10946 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10947 initialize it by existing make_cleanup. Call new do_cleanups.
10948
10949 2013-01-17 Tom Tromey <tromey@redhat.com>
10950
10951 * cp-abi.c (cp_abi_completer): New function.
10952 (_initialize_cp_abi): Set completer for "set cp-abi".
10953
10954 2013-01-17 Tom Tromey <tromey@redhat.com>
10955
10956 * mem-break.c: Remove obsolete comment.
10957 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10958
10959 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10960
10961 * jit.c (jit_reader_load_command): Interpret the jit reader name
10962 as an absolute path if it begins with a forward slash.
10963
10964 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10965
10966 PR gdb/14550
10967
10968 * jit.c (finalize_symtab): Ensure that only the global block has a
10969 NULL superblock.
10970
10971 2013-01-17 Pedro Alves <palves@redhat.com>
10972
10973 * acinclude.m4: Include ../config/plugins.m4,
10974 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10975 * Makefile.in (aclocal_m4_deps): Update.
10976 * aclocal.m4: Renegerate.
10977
10978 2013-01-16 Doug Evans <dje@google.com>
10979
10980 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10981
10982 2013-01-16 Pedro Alves <palves@redhat.com>
10983 Tom Tromey <tromey@redhat.com>
10984
10985 PR cli/7221:
10986 * NEWS: Add "catch signal".
10987 * breakpoint.c (base_breakpoint_ops): No longer static.
10988 (bpstat_explains_signal): New function.
10989 (init_catchpoint): No longer static.
10990 (base_breakpoint_explains_signal): New function.
10991 (base_breakpoint_ops): Initialize new field.
10992 * breakpoint.h (enum bpstat_signal_value): New.
10993 (struct breakpoint_ops) <explains_signal>: New field.
10994 (bpstat_explains_signal): Remove macro, declare as function.
10995 (base_breakpoint_ops, init_catchpoint): Declare.
10996 * break-catch-sig.c: New file.
10997 * inferior.h (signal_catch_update): Declare.
10998 * infrun.c (signal_catch): New global.
10999 (handle_syscall_event): Update for change to
11000 bpstat_explains_signal.
11001 (handle_inferior_event): Likewise. Always handle random signals
11002 via bpstats.
11003 (signal_cache_update): Check signal_catch.
11004 (signal_catch_update): New function.
11005 (_initialize_infrun): Initialize signal_catch.
11006 * Makefile.in (SFILES): Add break-catch-sig.c.
11007 (COMMON_OBS): Add break-catch-sig.o.
11008
11009 2013-01-16 Tom Tromey <tromey@redhat.com>
11010
11011 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11012 (print_one_catch_solib, print_one_catch_syscall)
11013 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11014 "catch-type".
11015
11016 2013-01-16 Yao Qi <yao@codesourcery.com>
11017
11018 * printcmd.c (current_display_number): Make it static.
11019
11020 2013-01-16 Yao Qi <yao@codesourcery.com>
11021
11022 * infcmd.c (step_once): Don't check '!single_inst' as it was
11023 checked before.
11024
11025 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11026
11027 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11028
11029 2013-01-14 Tom Tromey <tromey@redhat.com>
11030
11031 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11032 set command.
11033 * command.h (add_setshow_string_noescape_cmd): Update.
11034 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11035 (complete_set_gnutarget): New function.
11036 (_initialize_core): Set the "set gnutarget" completer.
11037
11038 2013-01-14 Tom Tromey <tromey@redhat.com>
11039
11040 PR symtab/14442:
11041 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11042 (c_type_print_modifier): Likewise.
11043 * dwarf2read.c (read_tag_restrict_type): New function.
11044 (read_type_die_1): Handle DW_TAG_restrict_type.
11045 * gdbtypes.c (make_restrict_type): New function.
11046 (recursive_dump_type): Handle TYPE_RESTRICT.
11047 * gdbtypes.h (enum type_flag_values): Renumber.
11048 (enum type_instance_flag_value): Add
11049 TYPE_INSTANCE_FLAG_RESTRICT.
11050 (TYPE_RESTRICT): New macro.
11051 (make_restrict_type): Declare.
11052
11053 2013-01-14 Tom Tromey <tromey@redhat.com>
11054
11055 PR symtab/14931:
11056 * psymtab.c (struct psymtab_state): New.
11057 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11058 functions.
11059 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11060 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11061
11062 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
11063 Pedro Alves <palves@redhat.com>
11064
11065 PR remote/14786
11066
11067 * remote.c (remote_threads_info): Make a copy of the reply from
11068 qfThreadInfo and use that instead of rs->buf.
11069
11070 2013-01-14 Yao Qi <yao@codesourcery.com>
11071
11072 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11073 (dbx_psymtab_to_symtab): Likewise.
11074 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11075 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11076 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11077
11078 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11079
11080 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11081 make_cleanup_restore_current_language. Call set_language. Move
11082 OLD_CHAIN and INNER_CHAIN cleanups.
11083 * utils.c (do_restore_current_language)
11084 (make_cleanup_restore_current_language): New functions.
11085 * utils.h (make_cleanup_restore_current_language): New declaration.
11086
11087 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11088
11089 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11090 non-existing files.
11091
11092 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11093 non-existing files if FILENAME is already absolute.
11094
11095 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11096
11097 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11098 fputs_filtered. Append trailing newline.
11099
11100 2013-01-11 Yao Qi <yao@codesourcery.com>
11101 Stan Shebs <stan@codesourcery.com>
11102
11103 * psymtab.c (init_psymbol_list): Clarify the comment.
11104
11105 2013-01-11 Yao Qi <yao@codesourcery.com>
11106
11107 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11108 (update_dprintf_command_list): Assert that 'printf_line' is
11109 non-null. Remove condition check.
11110
11111 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11112
11113 Code cleanup.
11114 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11115 type const char *.
11116 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11117 const char *.
11118 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11119
11120 2013-01-09 Anthony Green <green@moxielogic.com>
11121
11122 * cp-abi.c (cplus_print_vtable): Don't return value from void
11123 function.
11124 * ada-lang.c (re_set_catch_assert): Ditto.
11125
11126 2013-01-09 Doug Evans <dje@google.com>
11127
11128 * symfile.h (quick_symbol_functions): Delete member
11129 pre_expand_symtabs_matching. All uses removed.
11130 * dwarf2read.c (dw2_lookup_symbol): Implement.
11131 (dw2_do_expand_symtabs_matching): Delete.
11132 (dw2_pre_expand_symtabs_matching): Delete.
11133 (struct dw2_symtab_iterator): New type.
11134 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11135 (dw2_expand_symtabs_for_function): Rewrite.
11136 (dwarf2_gdb_index_functions): Update.
11137 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11138 (psym_functions): Update.
11139
11140 2013-01-09 Tom Tromey <tromey@redhat.com>
11141
11142 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11143 * configure: Rebuild.
11144 * configure.ac: Add somread.o to the build if BFD has SOM
11145 support.
11146 * somread.c: Include som/aout.h, not syms.h.
11147 (som_symtab_read): Use som_external_symbol_dictionary_record.
11148 Unpack records manually.
11149 (_initialize_somread): Declare.
11150
11151 2012-01-08 Mike Frysinger <vapier@gentoo.org>
11152
11153 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11154 Cast return_address to 64bits.
11155
11156 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
11157
11158 * printcmd.c: Remove define of function output_command.
11159 * tracepoint.c: Remove extern of function output_command.
11160 * valprint.h: (output_command): New extern.
11161
11162 2013-01-07 Tom Tromey <tromey@redhat.com>
11163
11164 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11165 Remove.
11166 (objc_language_defn): Use c_printchar, c_printstr,
11167 c_emit_char.
11168
11169 2013-01-07 Tom Tromey <tromey@redhat.com>
11170
11171 PR cli/7719:
11172 * NEWS: Update.
11173 * ada-valprint.c (printstr, print_field_values): Remove
11174 "inspect_it" code.
11175 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11176 code.
11177 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11178 code.
11179 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11180 * main.c (captured_main): Remove "epoch" argument.
11181 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11182 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11183 * p-valprint.c (pascal_object_print_value_fields): Remove
11184 "inspect_it" code.
11185 * printcmd.c (print_command_1): Remove 'inspect' argument.
11186 (print_command, call_command): Update.
11187 (inspect_command): Remove.
11188 (_initialize_printcmd): Make "inspect" an alias for "print".
11189 * top.c (epoch_interface): Remove.
11190 * top.h (epoch_interface): Remove.
11191 * valprint.c (user_print_options): Update.
11192 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11193 * valprint.h (struct value_print_options) <inspect_it>: Remove
11194 field.
11195
11196 2013-01-04 Tom Tromey <tromey@redhat.com>
11197
11198 * valprint.h (read_string): Add 'extern'.
11199
11200 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11201
11202 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11203 used to decide whether to define darwin_read_dyld_info or not.
11204
11205 2013-01-03 Pierre Muller <muller@sourceware.org>
11206
11207 * main.c (relocate_gdb_directory): Avoid calling stat function
11208 if DIR is empty.
11209
11210 2013-01-03 Yao Qi <yao@codesourcery.com>
11211
11212 * psymtab.c (fixup_psymbol_section): Update declaration.
11213 (fixup_psymbol_section): Remove code returning value.
11214
11215 2013-01-03 Yao Qi <yao@codesourcery.com>
11216
11217 * symtab.h: Remove some out of date comments.
11218 (enum exception_event_kind): Move it ...
11219 * breakpoint.c: ... here.
11220
11221 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11222
11223 PR gdb/14405
11224 * darwin-nat.c (darwin_read_dyld_info): Only build if
11225 TASK_DYLD_INFO_COUNT is defined.
11226 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11227 TASK_DYLD_INFO_COUNT is defined.
11228
11229 2013-01-02 Tom Tromey <tromey@redhat.com>
11230
11231 * symfile.h (struct ecoff_debug_hack): Remove.
11232 * objfiles.c: Don't include mdebugread.h.
11233
11234 2013-01-02 Tom Tromey <tromey@redhat.com>
11235
11236 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11237 * configure.ac: Check for Mach-O support in BFD. Update
11238 CONFIG_OBS.
11239 * configure: Rebuild.
11240
11241 2013-01-02 Tom Tromey <tromey@redhat.com>
11242
11243 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11244 * configure.ac: Use GDB_AC_CHECK_BFD.
11245 * configure: Rebuild.
11246
11247 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11248
11249 * MAINTAINERS: Update my email.
11250
11251 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11252
11253 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11254
11255 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11256
11257 * rs6000-nat.c (bss_data_overlap): New function.
11258 (vmap_symtab): Use it to adjust the .bss section's offset.
11259
11260 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11261
11262 Update year range in copyright notice of all files.
11263
11264 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11265
11266 * top.c (print_gdb_version): Update copyright year.
11267
11268 For older changes see ChangeLog-2012.
11269 \f
11270 Local Variables:
11271 mode: change-log
11272 left-margin: 8
11273 fill-column: 74
11274 version-control: never
11275 coding: utf-8
11276 End:
This page took 0.268572 seconds and 4 git commands to generate.