3b5532df38d143e3a15289705db555e0ec7ea1e5
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-06-04 Alan Modra <amodra@gmail.com>
2
3 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6 target mem reads on optional insns.
7 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
8 ppc_insns_match_pattern calls.
9 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
10 Add match for power7 thread safety insns, and new order of
11 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
12 invocation in comment, and update rest of comment.
13 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
14 PPC64_STANDARD_LINKAGE3_LEN): Delete.
15 (ppc64_standard_linkage2_target): Update insn offsets.
16 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
17 stubs first. Update calls.
18
19 2013-06-04 Yao Qi <yao@codesourcery.com>
20
21 * solib.c (solib_find): Don't need dir separator if path has
22 drive spec.
23
24 2013-06-03 Joel Brobecker <brobecker@adacore.com>
25
26 Revert (indirectly causes a SIGSEGV):
27 * machoread.c (macho_symfile_read): Assign first cleanup to
28 'back_to'.
29
30 2013-06-03 Yao Qi <yao@codesourcery.com>
31
32 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
33 mi-parse.c. Make them static.
34 (mi_all_values): Likewise.
35 (mi_parse_values_option): Move to mi-parse.c. Rename it to
36 mi_parse_print_values. Make it external.
37 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
38 Remove the declarations.
39 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
40 * mi/mi-parse.h (mi_parse_print_values): Declare.
41 * mi/mi-cmd-stack.c: Include mi-parse.h.
42 (parse_print_values): Remove
43 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
44 of parse_print_values.
45 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
46
47 2013-05-31 Pedro Alves <pedro@codesourcery.com>
48 Yao Qi <yao@codesourcery.com>
49
50 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
51 (encode_actions): Move code to ...
52 (all_tracepoint_actions_and_cleanup): ... here. New.
53 (trace_dump_command): Likewise.
54
55 2013-05-30 Tom Tromey <tromey@redhat.com>
56
57 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
58
59 2013-05-30 Tom Tromey <tromey@redhat.com>
60
61 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
62 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
63 'old_chain' argument. Add 'parser_result' argument.
64 (gdb_xml_create_parser_and_cleanup): Remove old version.
65 (gdb_xml_parse_quick): Update.
66 (xml_process_xincludes): Update.
67 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
68 declare.
69
70 2013-05-30 Tom Tromey <tromey@redhat.com>
71
72 * probe.c (collect_probes): Check arguments for NULL before
73 calling compile_rx_or_error.
74 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
75 Remove NULL return.
76
77 2013-05-30 Tom Tromey <tromey@redhat.com>
78
79 * infrun.c (adjust_pc_after_break): Introduce an outer null
80 cleanup.
81
82 2013-05-30 Tom Tromey <tromey@redhat.com>
83
84 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
85
86 2013-05-30 Tom Tromey <tromey@redhat.com>
87
88 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
89 for 'old_chain'. Do not check 'head' before processing
90 cleanups.
91
92 2013-05-30 Tom Tromey <tromey@redhat.com>
93
94 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
95 "cleanup_tuple".
96
97 2013-05-30 Tom Tromey <tromey@redhat.com>
98
99 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
100 inner scope. Unconditionally call do_cleanups.
101
102 2013-05-30 Tom Tromey <tromey@redhat.com>
103
104 * source.c (find_and_open_source): Call do_cleanups.
105
106 2013-05-30 Tom Tromey <tromey@redhat.com>
107
108 * linux-thread-db.c (thread_db_load_search): Unconditionally
109 call do_cleanups.
110
111 2013-05-30 Tom Tromey <tromey@redhat.com>
112
113 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
114 for 'cleanup'; instead use a later one.
115
116 2013-05-30 Tom Tromey <tromey@redhat.com>
117
118 * python/py-breakpoint.c (bppy_get_commands): Use
119 explicit, unconditional return.
120 * python/py-frame.c (frapy_read_var): Likewise.
121 * python/python.c (gdbpy_decode_line): Likewise.
122
123 2013-05-30 Tom Tromey <tromey@redhat.com>
124
125 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
126 do_cleanups on all return paths.
127
128 2013-05-30 Tom Tromey <tromey@redhat.com>
129
130 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
131
132 2013-05-30 Tom Tromey <tromey@redhat.com>
133
134 * stabsread.c (read_struct_type): Call do_cleanups along
135 all return paths.
136
137 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
138
139 * mips-linux-tdep.c: Adjust formatting throughout.
140
141 2013-05-30 Tom Tromey <tromey@redhat.com>
142
143 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
144 along all return paths.
145
146 2013-05-30 Tom Tromey <tromey@redhat.com>
147
148 * symfile.c (find_separate_debug_file): Call do_cleanups
149 along all return paths.
150
151 2013-05-30 Tom Tromey <tromey@redhat.com>
152
153 * symtab.c (search_symbols): Introduce a null cleanup for
154 'retval_chain'.
155
156 2013-05-30 Tom Tromey <tromey@redhat.com>
157
158 * python/py-value.c (valpy_binop): Call do_cleanups before
159 exiting loop.
160
161 2013-05-30 Tom Tromey <tromey@redhat.com>
162
163 * python/py-prettyprint.c (print_children): Remove extra
164 do_cleanups call.
165
166 2013-05-30 Tom Tromey <tromey@redhat.com>
167
168 * python/py-frame.c (frapy_read_var): Call do_cleanups along
169 all return paths.
170
171 2013-05-30 Tom Tromey <tromey@redhat.com>
172
173 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
174 along all return paths.
175
176 2013-05-30 Tom Tromey <tromey@redhat.com>
177
178 * cli/cli-logging.c (set_logging_redirect): Unconditionally
179 call do_cleanups.
180
181 2013-05-30 Tom Tromey <tromey@redhat.com>
182
183 * varobj.c (c_value_of_root): Call do_cleanups along all
184 return paths.
185
186 2013-05-30 Tom Tromey <tromey@redhat.com>
187
188 * tracepoint.c (trace_dump_command): Unconditionally call
189 do_cleanups.
190
191 2013-05-30 Tom Tromey <tromey@redhat.com>
192
193 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
194 do_cleanups earlier.
195
196 2013-05-30 Tom Tromey <tromey@redhat.com>
197
198 * machoread.c (macho_symfile_read): Assign first cleanup to
199 'back_to'.
200
201 2013-05-30 Tom Tromey <tromey@redhat.com>
202
203 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
204
205 2013-05-30 Tom Tromey <tromey@redhat.com>
206
207 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
208
209 2013-05-30 Tom Tromey <tromey@redhat.com>
210
211 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
212 call discard_cleanups.
213 (inf_ptrace_attach): Likewise.
214
215 2013-05-30 Tom Tromey <tromey@redhat.com>
216
217 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
218 return paths.
219 (mips_initialize): Likewise.
220 (common_open): Call do_cleanups.
221
222 2013-05-30 Tom Tromey <tromey@redhat.com>
223
224 * utils.c (internal_vproblem): Call do_cleanups.
225
226 2013-05-30 Tom Tromey <tromey@redhat.com>
227
228 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
229
230 2013-05-30 Tom Tromey <tromey@redhat.com>
231
232 * cli/cli-script.c (setup_user_args): Don't return after error.
233
234 2013-05-30 Tom Tromey <tromey@redhat.com>
235
236 * somread.c (som_symtab_read): Call do_cleanups.
237
238 2013-05-30 Tom Tromey <tromey@redhat.com>
239
240 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
241
242 2013-05-30 Tom Tromey <tromey@redhat.com>
243
244 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
245 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
246 * interps.c (interpreter_exec_cmd): Call do_cleanups.
247 * source.c (show_substitute_path_command): Call do_cleanups.
248 (unset_substitute_path_command, set_substitute_path_command):
249 Likewise.
250 * symfile.c (load_command): Call do_cleanups.
251
252 2013-05-30 Tom Tromey <tromey@redhat.com>
253
254 * contrib/cleanup_check.py: New file.
255 * contrib/gcc-with-excheck: Add option parsing.
256
257 2013-05-30 Joel Brobecker <brobecker@adacore.com>
258
259 * windows-nat.c (windows_delete_thread): Add missing space
260 in cast expression.
261
262 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
263
264 * inferior.c (top level): Include tilde.h.
265 (add_inferior_command): Call tilde_expand on the value of 'exec'
266 argument.
267
268 2013-05-30 Pedro Alves <pedro@codesourcery.com>
269 Yao Qi <yao@codesourcery.com>
270
271 * tracepoint.c (encode_actions_1): Remove parameter 't'.
272 Caller update.
273 (encode_actions): Likewise.
274 * remote.c (remote_download_tracepoint): Caller update.
275 * tracepoint.h (encode_actions): Update declaration.
276
277 2013-05-30 Pedro Alves <palves@redhat.com>
278
279 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
280 pointer.
281
282 2013-05-30 Yao Qi <yao@codesourcery.com>
283
284 * remote.c (remote_check_symbols): Remove unused parameter
285 'objfile'.
286 Declaration update.
287 (remote_start_remote, remote_new_objfile): Caller update.
288
289 2013-05-30 Yao Qi <yao@codesourcery.com>
290
291 * mi/mi-cmds.c (mi_cmds): Define MI command
292 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
293 DEF_MI_CMD_CLI.
294
295 2013-05-29 Pedro Alves <palves@redhat.com>
296
297 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
298 (remote_insert_watchpoint, remote_remove_watchpoint)
299 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
300 (remote_verify_memory, compare_sections_command)
301 (remote_search_memory): Set the general process/thread on the
302 remote side.
303
304 2013-05-29 Pedro Alves <palves@redhat.com>
305
306 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
307 (_initialize_aarch64_tdep): Don't call
308 initialize_tdesc_aarch64_without_fpu.
309 * features/Makefile (WHICH): Remove reference to
310 aarch64-without-fpu.
311 * features/aarch64-without-fpu.c: Delete file.
312 * regformats/aarch64-without-fpu.dat: Delete file.
313
314 2013-05-28 Yao Qi <yao@codesourcery.com>
315
316 * tracepoint.c (stringify_collection_list): Remove parameter
317 'string'.
318 (encode_actions): Caller update. Remove local variables.
319
320 2013-05-24 Yao Qi <yao@codesourcery.com>
321
322 * tracepoint.c (TFILE_PID): Remove.
323 (tfile_open): Don't add thread and inferior.
324 (tfile_close): Don't set 'inferior_ptid'. Don't call
325 exit_inferior_silent.
326 (tfile_thread_alive): Remove.
327 (init_tfile_ops): Don't set field 'to_thread_alive' of
328 tfile_ops.
329
330 2013-05-23 Doug Evans <dje@google.com>
331
332 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
333
334 2013-05-23 Pedro Alves <palves@redhat.com>
335
336 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
337 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
338 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
339 Only define if HAVE_SOCKETS is defined.
340 * configure.ac: Check for sys/socket.h.
341 * config.in, configure: Regenerate.
342
343 2013-05-23 Pedro Alves <palves@redhat.com>
344
345 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
346 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
347 printing uint32_t variables.
348
349 2013-05-23 Pedro Alves <palves@redhat.com>
350
351 * NEWS: Mention GDBserver range stepping support.
352
353 2013-05-23 Yao Qi <yao@codesourcery.com>
354 Pedro Alves <palves@redhat.com>
355
356 * gdbthread.h (struct thread_control_state) <may_range_step>: New
357 field.
358 * infcmd.c (step_once, until_next_command): Enable range stepping.
359 * infrun.c (displaced_step_prepare): Disable range stepping.
360 (resume): Disable range stepping if stepping over a breakpoint or
361 we have software watchpoints. If range stepping is enabled,
362 assert the thread is in the stepping range.
363 (clear_proceed_status_thread): Clear may_range_step.
364 (handle_inferior_event): Disable range stepping as soon as we know
365 the thread that hit the event. Re-enable it whenever we're going
366 to step with a step range.
367 * remote.c (struct vCont_action_support) <r>: New field.
368 (use_range_stepping): New global.
369 (remote_vcont_probe): Handle 'r' action.
370 (append_resumption): Append an 'r' action if the thread may range
371 step.
372 (show_range_stepping): New function.
373 (set_range_stepping): New function.
374 (_initialize_remote): Call add_setshow_boolean_cmd to register the
375 'set range-stepping' and 'show range-stepping' commands.
376 * NEWS: Mention range stepping, the new vCont;r action, and the
377 new "set/show range-stepping" commands.
378
379 2013-05-23 Yao Qi <yao@codesourcery.com>
380 Pedro Alves <palves@redhat.com>
381
382 * remote.c (struct vCont_action_support): New struct.
383 (struct remote_state) <support_vCont_t>: Remove field.
384 <vCont_actions_support>: New field.
385 (remote_vcont_probe, remote_stop_ns): Update.
386
387 2013-05-23 Yao Qi <yao@codesourcery.com>
388 Pedro Alves <palves@redhat.com>
389
390 * gdbthread.h (pc_in_thread_step_range): New declaration.
391 * thread.c (pc_in_thread_step_range): New function.
392 * infrun.c (handle_inferior_event): Use it.
393
394 2013-05-23 Joel Brobecker <brobecker@adacore.com>
395
396 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
397 of sprintf.
398
399 2013-05-22 Keith Seitz <keiths@redhat.com>
400
401 * ada-lang.c (is_known_support_routine): Add explicit free of
402 'func_name' from find_frame_funname.
403 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
404 for func_name from find_frame_funname.
405 * python/py-frame.c (frapy_name): Add explicit free of
406 'name' from find_frame_funname.
407 * stack.c (find_frame_funname): Add comment explaining that
408 funcp must be freed by the caller.
409 Return copy of symbol names instead of pointers.
410 (print_frame): Add a cleanup for 'funname' from
411 find_frame_funname.
412 * stack.h (find_frame_funname): Remove "const" from
413 'funname' parameter.
414
415 2013-05-22 Tom Tromey <tromey@redhat.com>
416
417 PR c++/15401:
418 * c-valprint.c (c_value_print): Use value_addr for
419 references. Convert back to reference type with value_ref.
420
421 2013-05-22 Eli Zaretskii <eliz@gnu.org>
422
423 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
424 unloaded DLL, it will be done by handle_solib_event. See
425 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
426 details.
427
428 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
429
430 * ui-out.c: Create typedef ui_out_level_p and define vector
431 operations for that type.
432 (struct ui_out): Use a vector instead of an array.
433 (current_level): Return level from a vector.
434 (push_level): Create a level in a vector.
435 (pop_level): Delete a level in a vector.
436 (ui_out_new): Create initial level zero level, and store in a
437 vector.
438 (ui_out_destroy): Add vector cleanup.
439
440 2013-05-22 Pedro Alves <palves@redhat.com>
441
442 * python/python-internal.h (gdb_Py_DECREF): Tag with
443 "ARI: editCase function".
444
445 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
446
447 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
448
449 2013-05-21 Pedro Alves <palves@redhat.com>
450
451 * python/py-prettyprint.c (apply_val_pretty_printer): Check
452 whether PRINTER is NULL before installing a Py_DECREF cleanup.
453 * python/py-utils.c (py_decref): Don't check for NULL before
454 calling Py_DECREF.
455
456 2013-05-21 Pedro Alves <palves@redhat.com>
457
458 * python/py-utils.c (py_decref): Remove extra braces.
459 (gdb_pymodule_addobject): Remove extra braces.
460 * python-internal.h (gdb_Py_DECREF): New static inline function.
461 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
462
463 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
464
465 * breakpoints.c (detach_breakpoints): Do not
466 detach breakpoints locations with loc_type bp_loc_other.
467
468 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
469
470 Workaround Python 2.6.
471 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
472 a block.
473
474 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
475
476 Code cleanup: constification.
477 * solib.c (solib_ops): Make return type and ops variable type const.
478 (set_solib_ops): Make the new_ops parameter and ops variable const.
479 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
480 (solib_add, solib_keep_data_in_core, clear_solib)
481 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
482 (reload_shared_libraries, solib_global_lookup): Make the ops variable
483 const.
484 * solib.h (set_solib_ops): Make the new_ops parameter const.
485
486 2013-05-21 Joel Brobecker <brobecker@adacore.com>
487
488 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
489 variable.
490 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
491 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
492 (SYSTEM_GDBINIT_FILES): New variables.
493 (all): Add stamp-system-gdbinit.
494 (stamp-system-gdbinit): New rule.
495 (clean-system-gdbinit, install-system-gdbinit)
496 (uninstall-system-gdbinit): New rules. Make them .PHONY.
497 (install-only): Add dependency on install-system-gdbinit.
498 (uninstall): Add dependency on uninstall-system-gdbinit.
499 (clean): Add dependency on clean-system-gdbinit.
500 * system-gdbinit/elinos.py: New file.
501 * system-gdbinit/wrs-linux.py: New file.
502
503 2013-05-21 Joel Brobecker <brobecker@adacore.com>
504
505 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
506
507 2013-05-21 Hui Zhu <hui@codesourcery.com>
508
509 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
510 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
511 * mi/mi-cmd-break.c (ctype.h): New include.
512 (gdb_obstack.h): New include.
513 (mi_argv_to_format, mi_cmd_break_insert_1): New.
514 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
515 (mi_cmd_dprintf_insert): New.
516 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
517 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
518
519 2013-05-20 Tom Tromey <tromey@redhat.com>
520
521 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
522
523 2013-05-20 Tom Tromey <tromey@redhat.com>
524
525 * python/py-value.c (valpy_get_dynamic_type): Simplify
526 dynamic_type assignment. Use Py_XINCREF.
527
528 2013-05-20 Tom Tromey <tromey@redhat.com>
529
530 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
531
532 2013-05-20 Tom Tromey <tromey@redhat.com>
533
534 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
535 (gdbpy_selected_frame): Move object-construction code
536 out of TRY_CATCH.
537
538 2013-05-20 Tom Tromey <tromey@redhat.com>
539
540 * python/py-arch.c (gdbpy_initialize_arch): Use
541 gdb_pymodule_addobject.
542 * python/py-block.c (gdbpy_initialize_blocks): Use
543 gdb_pymodule_addobject.
544 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
545 gdb_pymodule_addobject.
546 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
547 gdb_pymodule_addobject.
548 * python/py-event.c (gdbpy_initialize_event_generic): Use
549 gdb_pymodule_addobject.
550 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
551 gdb_pymodule_addobject.
552 * python/py-evts.c (add_new_registry): Use
553 gdb_pymodule_addobject.
554 (gdbpy_initialize_py_events): Likewise.
555 * python/py-finishbreakpoint.c
556 (gdbpy_initialize_finishbreakpoints): Use
557 gdb_pymodule_addobject.
558 * python/py-frame.c (gdbpy_initialize_frames): Use
559 gdb_pymodule_addobject.
560 * python/py-function.c (gdbpy_initialize_functions): Use
561 gdb_pymodule_addobject.
562 * python/py-inferior.c (gdbpy_initialize_inferior): Use
563 gdb_pymodule_addobject.
564 * python/py-infthread.c (gdbpy_initialize_thread): Use
565 gdb_pymodule_addobject.
566 * python/py-objfile.c (gdbpy_initialize_objfile): Use
567 gdb_pymodule_addobject.
568 * python/py-param.c (gdbpy_initialize_parameters): Use
569 gdb_pymodule_addobject.
570 * python/py-progspace.c (gdbpy_initialize_pspace): Use
571 gdb_pymodule_addobject.
572 * python/py-symbol.c (gdbpy_initialize_symbols): Use
573 gdb_pymodule_addobject.
574 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
575 gdb_pymodule_addobject.
576 * python/py-type.c (gdbpy_initialize_types): Use
577 gdb_pymodule_addobject.
578 * python/py-utils.c (gdb_pymodule_addobject): New function.
579 * python/py-value.c (gdbpy_initialize_values): Use
580 gdb_pymodule_addobject.
581 * python/python-internal.h (gdb_pymodule_addobject): Declare.
582 * python/python.c (_initialize_python): Use
583 gdb_pymodule_addobject.
584
585 2013-05-20 Tom Tromey <tromey@redhat.com>
586
587 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
588 * python/py-param.c (get_set_value, get_show_value): Use
589 explicit decrefs.
590 * python/python.c (start_type_printers, apply_type_printers):
591 Use explicit decrefs.
592
593 2013-05-20 Tom Tromey <tromey@redhat.com>
594
595 * python/py-evts.c (gdbpy_initialize_py_events): Don't
596 incref the module.
597
598 2013-05-20 Tom Tromey <tromey@redhat.com>
599
600 * python/python.c (gdbpy_run_events): Decref the result
601 of PyObject_CallObject.
602
603 2013-05-20 Tom Tromey <tromey@redhat.com>
604
605 * python/py-symtab.c (set_sal): Use
606 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
607 (symtab_and_line_to_sal_object): Update.
608
609 2013-05-20 Tom Tromey <tromey@redhat.com>
610
611 * python/py-param.c (compute_enum_values): Decref 'item'.
612
613 2013-05-20 Tom Tromey <tromey@redhat.com>
614
615 * mi/mi-main.c: Include python-internal.h.
616 (mi_cmd_list_features): Check gdb_python_initialized.
617 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
618 (python_inferior_exit, python_new_objfile, add_thread_object)
619 (delete_thread_object, py_free_inferior): Check
620 gdb_python_initialized.
621 * python/py-prettyprint.c (apply_val_pretty_printer): Check
622 gdb_python_initialized.
623 * python/py-type.c (save_objfile_types): Check
624 gdb_python_initialized.
625 * python/python-internal.h (gdb_python_initialized): Declare.
626 * python/python.c (ensure_python_env): Throw exception if
627 Python not initialized.
628 (before_prompt_hook, source_python_script_for_objfile)
629 (start_type_printers, apply_type_printers,
630 free_type_printers): Check gdb_python_initialized.
631 * varobj.c (varobj_get_display_hint)
632 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
633 (install_new_value_visualizer, varobj_set_visualizer)
634 (value_get_print_value): Check gdb_python_initialized.
635
636 2013-05-20 Tom Tromey <tromey@redhat.com>
637
638 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
639 Check errors.
640 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
641 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
642 Check errors.
643 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
644 Check errors.
645 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
646 Check errors.
647 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
648 Check errors.
649 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
650 init function to return 'int'.
651 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
652 Return 'int'. Check errors.
653 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
654 Check errors.
655 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
656 Return 'int'. Check errors.
657 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
658 Check errors.
659 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
660 Check errors.
661 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
662 Check errors.
663 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
664 Check errors.
665 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
666 Check errors.
667 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
668 Check errors.
669 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
670 Check errors.
671 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
672 Check errors.
673 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
674 Check errors.
675 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
676 Check errors.
677 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
678 Check errors.
679 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
680 Check errors.
681 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
682 Check errors.
683 * python/python-internal.h (gdbpy_initialize_auto_load,
684 gdbpy_initialize_values, gdbpy_initialize_frames,
685 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
686 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
687 gdbpy_initialize_blocks, gdbpy_initialize_types,
688 gdbpy_initialize_functions, gdbpy_initialize_pspace,
689 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
690 gdbpy_initialize_finishbreakpoints,
691 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
692 gdbpy_initialize_thread, gdbpy_initialize_inferior,
693 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
694 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
695 gdbpy_initialize_signal_event,
696 gdbpy_initialize_breakpoint_event,
697 gdbpy_initialize_continue_event,
698 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
699 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
700 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
701 * python/python.c (gdb_python_initialized): New global.
702 (gdbpy_initialize_events): Return 'int'. Check errors.
703 (_initialize_python): Check errors. Set
704 gdb_python_initialized.
705
706 2013-05-20 Tom Tromey <tromey@redhat.com>
707
708 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
709 Decref the reslut of PyObject_CallMethod.
710
711 2013-05-20 Tom Tromey <tromey@redhat.com>
712
713 * python/py-event.c (gdbpy_initialize_event_generic): Return
714 early if PyType_Ready fails.
715
716 2013-05-20 Tom Tromey <tromey@redhat.com>
717
718 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
719 as 'default' in the switch.
720
721 2013-05-20 Tom Tromey <tromey@redhat.com>
722
723 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
724 get_addr_from_python calls out of TRY_CATCH.
725 (infpy_write_memory, infpy_search_memory): Likewise.
726 * python/py-utils.c (get_addr_from_python): Return negative
727 value on error. Use TRY_CATCH.
728 * python/python-internal.h (get_addr_from_python): Use
729 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
730
731 2013-05-20 Tom Tromey <tromey@redhat.com>
732
733 * python/py-event.c (evpy_emit_event): Decref the
734 result of PyObject_CallFunctionObjArgs.
735
736 2013-05-20 Tom Tromey <tromey@redhat.com>
737
738 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
739 Correctly decref.
740
741 2013-05-20 Tom Tromey <tromey@redhat.com>
742
743 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
744
745 2013-05-20 Tom Tromey <tromey@redhat.com>
746
747 * python/py-event.h (gdbpy_initialize_event_generic): Use
748 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
749 * python/py-evts.c (add_new_registry): Use
750 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
751 * python/python-internal.h
752 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
753
754 2013-05-20 Tom Tromey <tromey@redhat.com>
755
756 * python/py-arch.c (archpy_disassemble): Update.
757 * python/py-type.c (typy_get_composite, typy_lookup_typename)
758 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
759 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
760 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
761 macro.
762 (GDB_PY_HANDLE_EXCEPTION): Update.
763 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
764
765 2013-05-20 Tom Tromey <tromey@redhat.com>
766
767 * python/python-internal.h (events_object_type): Remove.
768
769 2013-05-20 Tom Tromey <tromey@redhat.com>
770
771 * python/py-event.h (evpy_emit_event): Use
772 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
773 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
774 New macro.
775
776 2013-05-20 Tom Tromey <tromey@redhat.com>
777
778 * py-evtregistry.c (create_event_object): Decref
779 eventregistry_object if PyList_New fails.
780
781 2013-05-20 Tom Tromey <tromey@redhat.com>
782
783 * py-cmd.c (gdbpy_string_to_argv): Check result of
784 PyList_New.
785
786 2013-05-20 Tom Tromey <tromey@redhat.com>
787
788 * python/python.c (before_prompt_hook): Add cleanup to
789 decref 'hook'.
790
791 2013-05-20 Tom Tromey <tromey@redhat.com>
792
793 * python/py-function.c (fnpy_init): Decref result of
794 PyObject_GetAttrString.
795
796 2013-05-20 Tom Tromey <tromey@redhat.com>
797
798 * python/py-threadevent.c (get_event_thread): Use
799 CPYCHECKER_RETURNS_BORROWED_REF.
800 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
801 New define.
802 (pspace_to_pspace_object, objfile_to_objfile_object)
803 (find_thread_object): Use it.
804
805 2013-05-20 Tom Tromey <tromey@redhat.com>
806
807 * python/py-arch.c (arch_object_type): Use
808 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
809 * python/py-block.c (block_syms_iterator_object_type):
810 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
811 * python/py-bpevent.c (breakpoint_event_object_type):
812 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
813 * python/py-cmd.c (cmdpy_object_type): Use
814 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
815 * python/py-continueevent.c (continue_event_object_type):
816 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
817 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
818 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
819 * python/py-events.h (thread_event_object_type):
820 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
821 * python/py-evtregistry.c (eventregistry_object_type): Use
822 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
823 * python/py-exitedevent.c (exited_event_object_type):
824 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
825 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
826 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
827 * python/py-function.c (fnpy_object_type): Use
828 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
829 * python/py-inferior.c (inferior_object_type, membuf_object_type):
830 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
831 * python/py-infthread.c (thread_object_type): Use
832 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
833 * python/py-lazy-string.c (lazy_string_object_type):
834 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
835 * python/py-newobjfileevent.c (new_objfile_event_object_type):
836 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
837 * python/py-objfile.c (objfile_object_type): Use
838 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
839 * python/py-param.c (parmpy_object_type):
840 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
841 * python/py-progspace.c (pspace_object_type):
842 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
843 * python/py-signalevent.c (signal_event_object_type):
844 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
845 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
846 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
847 * python/py-type.c (type_object_type, field_object_type)
848 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
849 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
850 define.
851 (value_object_type, block_object_type, symbol_object_type)
852 (event_object_type, stop_event_object_type, breakpoint_object_type)
853 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
854
855 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
856
857 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
858 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
859
860 2013-05-20 Doug Evans <dje@google.com>
861
862 When reading CU, stay in DWO. Be more tolerent of bad debug info.
863 For Fission.
864 * dwarf2read.c (struct dwarf2_per_cu_data): New member
865 reading_dwo_directly.
866 (struct signatured_type): New member dwo_unit.
867 (struct die_reader_specs): New member comp_dir.
868 (create_signatured_type_table_from_index): Use malloc for
869 all_type_units instead of objfile's obstack.
870 (create_all_type_units): Ditto.
871 (fill_in_sig_entry_from_dwo_entry): New function.
872 (add_type_unit): New function.
873 (lookup_dwo_signatured_type): New function.
874 (lookup_dwp_signatured_type): New function.
875 (lookup_signatured_type): New arg cu. All callers updated.
876 (init_cu_die_reader): Initialize comp_dir.
877 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
878 Change assert of matching type signatures to call error on mismatch.
879 (lookup_dwo_unit): Add assert.
880 (init_tu_and_read_dwo_dies): New function.
881 (init_cutu_and_read_dies): Call it.
882 (build_type_unit_groups): Handle case of no type unit groups created.
883 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
884 (lookup_dwo_cutu): Tweak complaint.
885 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
886 (dwarf2_per_objfile_free): Free all_type_units.
887
888 2013-05-20 Joel Brobecker <brobecker@adacore.com>
889
890 * windows-nat.c (handle_unload_dll): Add missing empty line.
891
892 2013-05-20 Joel Brobecker <brobecker@adacore.com>
893
894 * dwarf2read.c (prototyped_function_p): New function.
895 (read_subroutine_type): Use it.
896
897 2013-05-20 Joel Brobecker <brobecker@adacore.com>
898
899 * rs6000-aix-tdep.c: De-indent some example code provided
900 as a comment.
901
902 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
903
904 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
905 region is ok for a hardware watchpoint using the new ptrace interface
906 on Power servers.
907
908 2013-05-17 Doug Evans <dje@google.com>
909
910 * NEWS: Mention new maintenance commands check-symtabs, and
911 expand-symtabs, and renamed check-psymtabs.
912 * psymtab.c (maintenance_check_psymtabs): Renamed from
913 maintenance_check_symtabs. Only process already-expanded symbol
914 tables.
915 (_initialize_psymtab): Update.
916 * symmisc.c (maintenance_check_symtabs): New function.
917 (maintenance_expand_name_matcher): New function
918 (maintenance_expand_file_matcher): New function
919 (maintenance_expand_symtabs): New function.
920 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
921 commands.
922
923 2013-05-17 Tom Tromey <tromey@redhat.com>
924
925 * python/py-inferior.c (infpy_read_memory): Don't call
926 PyErr_SetString if PyObject_New fails.
927 * python/py-frame.c (frame_info_to_frame_object): Don't call
928 PyErr_SetString if PyObject_New fails.
929
930 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
931
932 * acinclude.m4: Add check for dlopen in libdl.
933 * configure.ac: Ditto.
934 * configure: Regenerate.
935
936 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
937
938 * frame.c (frame_stash): Convert to htab.
939 (frame_addr_hash): New function.
940 (frame_addr_hash_eq): New function.
941 (frame_stash_create): Convert function to create
942 a hash table.
943 (frame_stash_add): Convert function to add an entry to a hash
944 table.
945 (frame_stash_find): Convert function to search the hash table.
946 (frame_stash_invalidate): Convert function to empty the hash
947 table.
948 (get_frame_id): Only add to stash if a frame_id is created.
949 (_initialize_frame): Call frame_stash_create.
950
951 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
952
953 * configure.ac: Ensure MIG is available when building for GNU Hurd
954 hosts.
955 * configure: Regenerate.
956
957 2013-05-16 Joel Brobecker <brobecker@adacore.com>
958
959 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
960
961 2013-05-16 Joel Brobecker <brobecker@adacore.com>
962
963 * ada-lang.c (ada_make_symbol_completion_list): Make sure
964 all cleanups are done before returning from this function.
965
966 2013-05-15 Joel Brobecker <brobecker@adacore.com>
967
968 * utils.h: #include "exceptions.h".
969 (enum errors): Remove partial declaration.
970
971 2013-05-15 Joel Brobecker <brobecker@adacore.com>
972
973 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
974 * gdbarch.h, gdbarch.c: Regenerate.
975 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
976 handling.
977
978 * rs6000-aix-tdep.h: New file.
979 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
980 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
981 "xml-utils.h".
982 (struct field_info, struct ld_info_desc): New types.
983 (ld_info32_desc, ld_info64_desc): New static constants.
984 (struct ld_info): New type.
985 (rs6000_aix_extract_ld_info): New function.
986 (rs6000_aix_shared_library_to_xml): Likewise.
987 (rs6000_aix_ld_info_to_xml): Likewise.
988 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
989 (rs6000_aix_init_osabi): Add call to
990 set_gdbarch_core_xfer_shared_libraries_aix.
991 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
992 Remove "xml-utils.h" include.
993 (LdInfo): Delete typedef.
994 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
995 Delete macros.
996 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
997 Adjust code accordingly.
998 (rs6000_core_ldinfo): Delete, folded into
999 rs6000_aix_core_xfer_shared_libraries_aix.
1000 (rs6000_xfer_shared_library): Delete.
1001 (rs6000_xfer_shared_libraries): Reimplement.
1002
1003 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
1004
1005 * record.c (record_goto_cmdlist): New.
1006 (cmd_record_goto): Split into this ...
1007 (cmd_record_goto_begin): ... this
1008 (cmd_record_goto_end): ... and this.
1009 (_initialize_record): Change "record goto" to prefix command.
1010 Add commands for "record goto begin" and "record goto end".
1011 Add an alias for "record goto start" to "record goto begin".
1012
1013 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1014
1015 * linespec.c (convert_linespec_to_sals): New comment for
1016 SOURCE_FILENAME assignment.
1017
1018 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1019
1020 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
1021 internal_warning.
1022
1023 2013-05-14 Tom Tromey <tromey@redhat.com>
1024
1025 * eval.c (parse_and_eval_long): Make 'exp' const.
1026 * value.h (parse_and_eval_long): Update.
1027
1028 2013-05-14 Tom Tromey <tromey@redhat.com>
1029
1030 * ui-file.c (gdb_fopen): Make arguments const.
1031 * ui-file.h (gdb_fopen): Make arguments const.
1032
1033 2013-05-14 Tom Tromey <tromey@redhat.com>
1034
1035 * remote.c (remote_set_trace_notes): Make arguments const.
1036 * target.c (update_current_target): Update cast.
1037 * target.h (to_set_trace_notes): Make arguments const.
1038
1039 2013-05-14 Tom Tromey <tromey@redhat.com>
1040
1041 * go32-nat.c (go32_terminal_info): Make 'args' const.
1042 * inferior.h (child_terminal_info): Update.
1043 * inflow.c (child_terminal_info): Make 'args' const.
1044 * target.c (default_terminal_info): Make 'args' const.
1045 (debug_to_terminal_save_ours): Likewise.
1046 * target.h (struct target_ops) <to_terminal_info>: Make argument
1047 const.
1048
1049 2013-05-13 Tom Tromey <tromey@redhat.com>
1050
1051 * gcore.c (create_gcore_bfd): Make 'filename' const.
1052 * gcore.h (create_gcore_bfd): Make 'filename' const.
1053 * record-full.c (record_full_save): Make 'recfilename' const.
1054 * target.c (target_save_record): Make 'filename' const.
1055 * target.h (struct target_ops) <to_save_record>: Make 'filename'
1056 const.
1057 (target_save_record): Likewise.
1058
1059 2013-05-13 Tom Tromey <tromey@redhat.com>
1060
1061 PR gdb/15338:
1062 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
1063 ranges section has been read.
1064
1065 2013-05-13 Tom Tromey <tromey@redhat.com>
1066
1067 PR exp/15364:
1068 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
1069 STRUCTOP_PTR>: Return a not_lval value for
1070 EVAL_AVOID_SIDE_EFFECTS.
1071 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
1072 for EVAL_AVOID_SIDE_EFFECTS.
1073
1074 2013-05-13 Joel Brobecker <brobecker@adacore.com>
1075
1076 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
1077 floating point registers to register type before storing
1078 value.
1079 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
1080 Likewise.
1081
1082 2013-05-10 Joel Brobecker <brobecker@adacore.com>
1083 Tom Tromey <tromey@redhat.com>
1084
1085 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
1086 New functions.
1087 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
1088 Declare.
1089 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
1090 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
1091 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
1092 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
1093
1094 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
1095 Tom Tromey <tromey@redhat.com>
1096
1097 PR build/15414:
1098 * configure: Rebuild.
1099 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
1100 with -Wno-format.
1101
1102 2013-05-10 Pedro Alves <palves@redhat.com>
1103
1104 * remote.c (_initialize_remote): Fix spelling of
1105 qXfer:traceframe-info:read packet in packet config command.
1106
1107 2013-05-10 David Taylor <dtaylor@emc.com>
1108
1109 PR remote/15455
1110
1111 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
1112 "QTro" at start of packet.
1113
1114 2013-05-10 Joel Brobecker <brobecker@adacore.com>
1115
1116 * solib-aix.c (solib_aix_relocate_section_addresses):
1117 For the .bss section action, apply the same offset as
1118 the .data section.
1119
1120 2013-05-10 Joel Brobecker <brobecker@adacore.com>
1121
1122 * solib-aix.c (solib_aix_relocate_section_addresses):
1123 Remove FIXME comment.
1124
1125 2013-05-10 Joel Brobecker <brobecker@adacore.com>
1126
1127 PR tdep/15420:
1128 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1129 New functions, directly copied from sparc-sol-thread.c.
1130 * sparc-sol-thread.c: Delete.
1131 * configure.ac: Remove code handling sparc-solaris-thread.c.
1132 * configure: Regenerate.
1133
1134 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
1135
1136 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
1137 filter logic.
1138 (backtrace_command): Add "no-filters" option parsing.
1139 (_initialize_stack): Alter help to reflect "no-filters" option.
1140 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
1141 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
1142 (py-frame.o): Add target
1143 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
1144 filter files.
1145 * python/python.h: Add new frame filter constants, and flag enum.
1146 (apply_frame_filter): Add definition.
1147 * python/python.c (apply_frame_filter): New non-Python
1148 enabled function.
1149 * python/py-utils.c (py_xdecref): New function.
1150 (make_cleanup_py_xdecref): Ditto.
1151 * python/py-objfile.c: Declare frame_filters dictionary.
1152 (objfpy_dealloc): Add frame_filters dealloc.
1153 (objfpy_new): Initialize frame_filters attribute.
1154 (objfile_to_objfile_object): Ditto.
1155 (objfpy_get_frame_filters): New function.
1156 (objfpy_set_frame_filters): New function.
1157 * python/py-progspace.c: Declare frame_filters dictionary.
1158 (pspy_dealloc): Add frame_filters dealloc.
1159 (pspy_new): Initialize frame_filters attribute.
1160 (pspacee_to_pspace_object): Ditto.
1161 (pspy_get_frame_filters): New function.
1162 (pspy_set_frame_filters): New function.
1163 * python/py-framefilter.c: New file.
1164 * python/lib/gdb/command/frame_filters.py: New file.
1165 * python/lib/gdb/frames.py: New file.
1166 * python/lib/gdb/__init__.py: Initialize global frame_filters
1167 dictionary
1168 * python/lib/gdb/FrameDecorator.py: New file.
1169 * python/lib/gdb/FrameIterator.py: New file.
1170 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
1171 * mi/mi-cmds.h: Declare.
1172 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
1173 --no-frame-filter logic, and Python frame filter logic.
1174 (stack_enable_frame_filters): New function.
1175 (parse_no_frame_option): Ditto.
1176 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
1177 filter logic.
1178 (mi_cmd_stack_list_locals): Ditto.
1179 (mi_cmd_stack_list_args): Ditto.
1180 (mi_cmd_stack_list_variables): Ditto.
1181 * NEWS: Add frame filter note.
1182
1183 2013-05-09 Doug Evans <dje@google.com>
1184
1185 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
1186 All callers updated.
1187 (syms_from_objfile): Ditto. Make static.
1188 (symbol_file_add_with_addrs): Renamed from
1189 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
1190 num_offsets. All callers updated.
1191 * symfile.h (syms_from_objfile): Delete.
1192
1193 * symfile.c (decrement_reading_symtab): Add assert.
1194 (increment_reading_symtab): Ditto.
1195
1196 2013-05-09 Joel Brobecker <brobecker@adacore.com>
1197
1198 * source.c (forward_search_command): Replace call to getc
1199 by call to fgetc.
1200 (reverse_search_command): Likewise.
1201
1202 2013-05-08 Doug Evans <dje@google.com>
1203
1204 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
1205 matching test.
1206
1207 2013-05-08 Joel Brobecker <brobecker@adacore.com>
1208
1209 * sol-thread.c (info_cb): Factorize the code a little.
1210
1211 2013-05-08 Joel Brobecker <brobecker@adacore.com>
1212
1213 * sol-thread.c (info_cb): Rework the output of the "maintenance
1214 info sol-threads" command a bit.
1215
1216 2013-05-08 Joel Brobecker <brobecker@adacore.com>
1217
1218 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
1219 Replace ti.ti_startfunc by ti.ti_pc.
1220
1221 2013-05-08 Joel Brobecker <brobecker@adacore.com>
1222
1223 * solib-aix.c (solib_aix_free_library_list): New function
1224 for the case where HAVE_LIBEXPAT is not defined.
1225
1226 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
1227
1228 PR breakpoints/15413:
1229 * breakpoint.c (condition_completer): Simplify the code to
1230 disconsider multiple locations of breakpoints when completing the
1231 "condition" command.
1232
1233 2013-05-07 Pierre Muller <muller@sourceware.org>
1234
1235 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
1236 instead of <sys/wait.h>.
1237
1238 2013-05-07 Pierre Muller <muller@sourceware.org>
1239
1240 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
1241 trailing new line from warning message.
1242
1243 2013-05-07 Pierre Muller <muller@sourceware.org>
1244
1245 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
1246 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
1247
1248 2013-05-07 Joel Brobecker <brobecker@adacore.com>
1249
1250 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
1251 error message (ARI fix).
1252
1253 2013-05-07 Joel Brobecker <brobecker@adacore.com>
1254
1255 * features/library-list-aix.dtd: Replace library-list by
1256 library-list-aix.
1257 * rs6000-nat.c: Replace library-list by library-list-aix
1258 throughout.
1259 * solib-aix.c: Likewise.
1260
1261 2013-05-07 Joel Brobecker <brobecker@adacore.com>
1262
1263 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
1264 Renames TARGET_OBJECT_AIX_LIBRARIES.
1265 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
1266 TARGET_OBJECT_LIBRARIES_AIX throughout.
1267 * solib-aix.c: Likwise.
1268
1269 2013-05-07 Yao Qi <yao@codesourcery.com>
1270
1271 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
1272 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
1273
1274 2013-05-07 Yao Qi <yao@codesourcery.com>
1275
1276 * solib-dsbt.c (enable_break): Declare.
1277 (dsbt_current_sos): Remove call to enable_break2.
1278 (enable_break2): Rename to enable_break. Set solib breakpoint
1279 on '_dl_debug_state'.
1280 (enable_break): Remove.
1281
1282 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
1283
1284 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
1285 debug state prior to replicating existing hardware watchpoints or
1286 breakpoints.
1287
1288 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1289
1290 * gcore.c (gcore_create_callback): Ignore sections with
1291 separate_debug_objfile_backlink != NULL.
1292
1293 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
1294 Andrew Jenner <andrew@codesourcery.com>
1295 Chung-Lin Tang <cltang@codesourcery.com>
1296 Julian Brown <julian@codesourcery.com>
1297
1298 Based on the nios2-elf port from Altera Corporation.
1299
1300 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
1301 nios2-linux-tdep.o.
1302 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
1303 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
1304 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
1305 * nios2-tdep.h: New.
1306 * nios2-tdep.c: New.
1307 * nios2-linux-tdep.c: New.
1308 * features/Makefile (WHICH): Add nios2-linux.
1309 (nios2-linux-expedite): Set.
1310 * features/nios2-cpu.xml: New.
1311 * features/nios2.xml: New.
1312 * features/nios2-linux.xml: New.
1313 * features/nios2.c: New (autogenerated).
1314 * features/nios2-linux.c: New (autogenerated).
1315 * regformats/nios2-linux.dat: New (autogenerated).
1316 * NEWS (Changes since GDB 7.6): Add new Nios II targets
1317 and commands.
1318
1319 2013-05-06 Doug Evans <dje@google.com>
1320
1321 * symfile.c: Whitespace cleanup.
1322
1323 * solist.h (struct target_so_ops): New member clear_so.
1324 * solib-svr4.c (svr4_clear_so): New function.
1325 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
1326 * solib.c (clear_so): Renamed from free_so_symbols.
1327 All callers updated. Call target clear_so if it exists.
1328
1329 2013-05-06 Tom Tromey <tromey@redhat.com>
1330
1331 * ada-lang.c (ada_value_primitive_packed_val): Don't
1332 call value_incref.
1333 * value.c (set_value_parent): Incref the new parent and decref
1334 the old parent.
1335 (value_copy, value_primitive_field): Use set_value_parent.
1336
1337 2013-05-06 Tom Tromey <tromey@redhat.com>
1338
1339 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
1340 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
1341 if needed.
1342 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
1343 * dwarf2read.c (write_constant_as_bytes)
1344 (dwarf2_fetch_constant_bytes): New functions.
1345
1346 2013-05-06 Tom Tromey <tromey@redhat.com>
1347
1348 * dwarf2read.c (dwarf2_const_value_data): Remove unused
1349 parameters.
1350 (dwarf2_const_value_attr): Update.
1351
1352 2013-05-06 Tom Tromey <tromey@redhat.com>
1353
1354 * somread.c (som_symfile_offsets): Add 'const' to addrs.
1355 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
1356 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
1357 Remove declaration.
1358
1359 2013-05-06 Tom Tromey <tromey@redhat.com>
1360
1361 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
1362 objfile's obstack.
1363
1364 2013-05-06 Doug Evans <dje@google.com>
1365
1366 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
1367 * stabsread.h (process_one_symbol): Update declaration.
1368 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
1369 * elfread.c (elf_symfile_relocate_probe): Ditto.
1370 * psymtab.c (relocate_psymtabs): Ditto.
1371 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
1372 (objfile_relocate): Ditto.
1373 * objfiles.h (objfile_relocate): Update declaration.
1374 * symfile.c (relative_addr_info_to_section_offsets): Constify
1375 addrs parameter.
1376 (default_symfile_offsets): Ditto.
1377 (syms_from_objfile_1): Constify offsets parameter.
1378 (syms_from_objfile): Ditto.
1379 (symbol_file_add_with_addrs_or_offsets): Ditto.
1380 (symfile_map_offsets_to_segments): Constify data parameter.
1381 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
1382 delta parameters of member relocate.
1383 (struct sym_probe_fns): Constify new_offsets,
1384 delta parameters of member sym_relocate_probe.
1385 (struct sym_fns): Constify section_addr_info parameter of member
1386 sym_offsets.
1387 (relative_addr_info_to_section_offsets): Update declaration.
1388 (default_symfile_offsets): Ditto.
1389 (syms_from_objfile): Ditto.
1390 (symfile_map_offsets_to_segments): Ditto.
1391
1392 * symfile.c (syms_from_objfile_1): Use correct section count when
1393 objfile->sf == NULL.
1394
1395 2013-05-06 Mike Frysinger <vapier@gentoo.org>
1396
1397 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
1398
1399 2013-05-06 Doug Evans <dje@google.com>
1400
1401 * psympriv.h (struct partial_symtab): Augment comment for member
1402 section_offsets.
1403
1404 2013-05-06 Joel Brobecker <brobecker@adacore.com>
1405
1406 Reimplement shared library support on ppc-aix...
1407 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
1408 * features/library-list-aix.dtd: New file.
1409 * solib-aix.h, solib-aix.c: New file.
1410 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
1411 (rs6000_find_toc_address_hook): Delete.
1412 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
1413 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
1414 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
1415 "xml-utils.h".
1416 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
1417 (vmap_symtab, fixup_breakpoints): Delete.
1418 (rs6000_xfer_shared_libraries): New function.
1419 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
1420 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
1421 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
1422 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
1423 (rs6000_xfer_shared_library): New function.
1424 (find_toc_address): Delete.
1425 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
1426 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
1427 * xcoffread.c (record_minimal_symbol): Reloate symbol address
1428 before creating minimal symbol. Adjust function description
1429 accordingly.
1430 (scan_xcoff_symtab): Replace call to
1431 prim_record_minimal_symbol_and_info by call to
1432 record_minimal_symbol.
1433 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
1434 around default_symfile_offsets.
1435 * configure.tgt: Add solib-aix.o to gdb_target_obs for
1436 powerpc-aix targets.
1437 * config/rs6000/nm-rs6000.h: Delete.
1438 * config/powerpc/aix.mh (NAT_FILE): Delete.
1439 (NATDEPFILES): Remove xcoffsolib.o.
1440 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
1441 (ALL_TARGET_OBS): Add solib-aix.o.
1442 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
1443 config/rs6000/nm-rs6000.h. Add solib-aix.h.
1444 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
1445 * xcoffsolib.h, xcoffsolib.c: Delete.
1446
1447 * solib.c (reload_shared_libraries): Remove reference to
1448 SOLIB_CREATE_INFERIOR_HOOK.
1449 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
1450 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
1451 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
1452 comment.
1453 * corelow.c (deprecated_core_resize_section_table): Delete.
1454 * exec.c: Remove include of xcoffsolib.h".
1455 (map_vmap, vmap): Delete.
1456 (exec_close_1): Remove references to vmap.
1457 (exec_file_attach): Remove vmap handling code, and reference
1458 to DEPRECATED_IBM6000_TARGET.
1459 (bfdsec_to_vmap): Delete.
1460 (exec_files_info): Remove block of code handling VMAP.
1461 * infcmd.c (post_create_inferior): Remove reference to
1462 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
1463 * infrun.c (follow_exec): Remove reference to
1464 SOLIB_CREATE_INFERIOR_HOOK.
1465 * stack.c (print_frame): Remove reference to PC_SOLIB.
1466 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
1467 (dsbt_relocate_main_executable): Likewise.
1468 * solib-frv.c (frv_current_sos): Likewise.
1469
1470 2013-05-06 Joel Brobecker <brobecker@adacore.com>
1471
1472 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
1473 to target_write_memory and target_read_memory.
1474
1475 2013-05-06 Joel Brobecker <brobecker@adacore.com>
1476
1477 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
1478 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
1479
1480 2013-05-06 Joel Brobecker <brobecker@adacore.com>
1481
1482 * darwin-nat.c: Replace all "%x" instances in format strings
1483 into "0x%x" throughout.
1484
1485 2013-05-06 Joel Brobecker <brobecker@adacore.com>
1486
1487 * darwin-nat.c (darwin_mourn_inferior): Replace call to
1488 gdb_assert by call to MACH_CHECK_ERROR.
1489 (darwin_attach_pid): Raise an error rather than a failed
1490 assertion when various system calls failed. Report a warning
1491 instead of raising a failed assertion when PREV_NOT is not NULL
1492 after call to mach_port_request_notification.
1493 (darwin_ptrace_me): Raise an error rather than a failed
1494 assertion when read returns nonzero.
1495
1496 2013-05-06 Joel Brobecker <brobecker@adacore.com>
1497
1498 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
1499
1500 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1501
1502 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
1503
1504 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1505
1506 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
1507 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
1508 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
1509 a stale cleanup. Fix double free of NAME.
1510
1511 2013-05-04 Eli Zaretskii <eliz@gnu.org>
1512
1513 * windows-nat.c (windows_delete_thread): Accept an additional
1514 argument, the thread's exit code, and announce thread death when
1515 print_thread_events is non-zero and we are deleting a thread that
1516 is not the main thread.
1517 (get_windows_debug_event): Pass thread exit code to
1518 windows_delete_thread.
1519
1520 2013-05-03 Kevin Buettner <kevinb@redhat.com>
1521
1522 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
1523 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
1524 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
1525 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
1526 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
1527 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
1528 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
1529 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
1530 (gdbarch_tdep): New struct.
1531 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
1532 E_NUM_REGS.
1533 (v850e3v5_register_name): New function.
1534 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
1535 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
1536 code handling the struct return conventions for the RH850 ABI.
1537 Update all callers.
1538 (v850_eight_byte_align_p): New function.
1539 (v850_push_call_dummy): Push structs by value, not by reference
1540 for the RH850 ABI. Add support for eight byte alignment.
1541 (v850_dbtrap_breakpoint_from_pc): New function.
1542 (v850_gdbarch_init): Add ABI detection code. Register
1543 v850e3v5_register_name for the v850e3v5 architecture. Set the
1544 number of registers for v850e3v5. Register
1545 v850_dbtrap_breakpoint_from_pc as appropriate.
1546 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
1547
1548 2013-05-03 Doug Evans <dje@google.com>
1549
1550 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
1551 of bfd_count_sections.
1552 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
1553 * symfile.c (default_symfile_offsets): Ditto.
1554 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
1555 one entry, not bfd_count_sections entries.
1556
1557 2013-05-03 Kevin Buettner <kevinb@redhat.com>
1558
1559 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
1560 `save' and `restore' register groups. Don't include SPL
1561 or SPH in these groups.
1562 (rl78_dwarf_reg_to_regnum): Adjust mapping for
1563 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
1564 RL78_ES_REGNUM, and RL78_CS_REGNUM.
1565 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
1566 dwarf2_append_unwinders().
1567
1568 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1569
1570 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
1571 ignore SIGINT and SIGTRAP in case these internal signals are
1572 caught explicitely.
1573
1574 2013-05-01 Joel Brobecker <brobecker@adacore.com>
1575
1576 * darwin-nat.c (darwin_read_write_inferior): Change types
1577 of parameters rdaddr and wraddr to "gdb_byte *". Change type
1578 of copy_count to "mach_msg_type_number_t".
1579 (darwin_read_dyld_info): Change type of parameter
1580 rdaddr to "gdb_byte *".
1581
1582 2013-05-01 Joel Brobecker <brobecker@adacore.com>
1583
1584 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
1585 of &info->load_map from "char *" to "gdb_byte *".
1586
1587 2013-05-01 Joel Brobecker <brobecker@adacore.com>
1588
1589 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
1590 from "char *" to "gdb_byte *".
1591 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
1592
1593 2013-04-30 Doug Evans <dje@google.com>
1594
1595 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
1596 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
1597 DWO stub. If DWO isn't found, just use stub.
1598 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
1599
1600 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
1601 calling init_cutu_and_read_dies.
1602
1603 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
1604
1605 * target-descriptions.c (maint_print_c_tdesc_cmd):
1606 Add case to parse structures as register types and
1607 bitfields.
1608
1609 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
1610
1611 * MAINTAINERS (Write After Approval): Add myself to the list.
1612
1613 2013-04-30 Joel Brobecker <brobecker@adacore.com>
1614
1615 * sol-thread.c (rw_common): Change type of parameter "buf"
1616 to "gdb_byte *".
1617 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
1618 rw_common to "gdb_byte *" instead of "char *".
1619
1620 2013-04-30 Joel Brobecker <brobecker@adacore.com>
1621
1622 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
1623 of local variable msym to const struct bound_minimal_symbol.
1624 Adjust use accordingly.
1625 [ti.ti_state == TD_THR_SLEEP]: Likewise.
1626
1627 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
1628
1629 * i386gnu-nat.c (CREG_OFFSET): New macro.
1630 (creg_offset): New array.
1631 (CREG_ADDR): Use creg_offset instead of reg_offset.
1632
1633 2013-04-30 Joel Brobecker <brobecker@adacore.com>
1634
1635 * mep-tdep.c (mep_write_pc): Delete.
1636 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
1637 Add call to set_gdbarch_pc_regnum.
1638
1639 2013-04-30 Joel Brobecker <brobecker@adacore.com>
1640
1641 * common/filestuff.c: Replace #include <dirent.h> by
1642 #include "gdb_dirent.h".
1643
1644 2013-04-30 Joel Brobecker <brobecker@adacore.com>
1645
1646 * common/filestuff.c: Replace #include <sys/stat.h> by
1647 #include "gdb_stat.h".
1648
1649 2013-04-29 Pierre Muller <muller@sourceware.org>
1650
1651 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
1652 editCase function rule.
1653 (get_DW_AT_signature_type): Likewise.
1654
1655 2013-04-29 Joel Brobecker <brobecker@adacore.com>
1656
1657 * m32r-tdep.c (m32r_write_pc): Delete.
1658 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
1659 Add call to set_gdbarch_pc_regnum.
1660
1661 2013-04-29 Pierre Muller <muller@sourceware.org>
1662
1663 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
1664
1665 2013-04-29 Joel Brobecker <brobecker@adacore.com>
1666
1667 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
1668
1669 2013-04-28 Yao Qi <yao@codesourcery.com>
1670
1671 * solib-dsbt.c (fetch_loadmap): Re-indent.
1672 (displacement_from_map, enable_break2): Likewise.
1673 (dsbt_relocate_section_addresses): Likewise.
1674
1675 2013-04-26 Joel Brobecker <brobecker@adacore.com>
1676
1677 GDB 7.6 released.
1678
1679 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
1680
1681 PR corefiles/14983:
1682 * dwarf2read.c (process_full_comp_unit): Always create a static
1683 block.
1684
1685 2013-04-25 Hui Zhu <hui@codesourcery.com>
1686
1687 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
1688 to loc->cmd_bytecode.
1689
1690 2013-04-24 Doug Evans <dje@google.com>
1691
1692 * dwarf2read.c (setup_type_unit_groups): Fix comment.
1693
1694 2013-04-22 Keith Seitz <keiths@redhat.com>
1695
1696 * tracepoint.c (trace_save): Call the writer's start method.
1697
1698 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
1699
1700 PR gdb/10462
1701 * cli/cli-decode.c (lookup_command): Show an error if there is no space
1702 before argument.
1703
1704 2013-04-23 Tom Tromey <tromey@redhat.com>
1705
1706 * common/filestuff.c: Check USE_WIN32API before including
1707 sys/socket.h.
1708 (HAVE_F_GETFD): New define.
1709 (mark_cloexec): Check HAVE_F_GETFD.
1710 (gdb_open_cloexec): Change 'mode' to unsigned long.
1711 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
1712 (gdb_pipe_cloexec): Check HAVE_PIPE.
1713 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
1714 long.
1715
1716 2013-04-23 Hui Zhu <hui@codesourcery.com>
1717
1718 PR gdb/15293
1719 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
1720
1721 2013-04-23 Hui Zhu <hui@codesourcery.com>
1722
1723 PR gdb/15165
1724 * breakpoint.c (dprintf_print_recreate): New.
1725 (save_breakpoints): Let it not save dprintf commands.
1726 (initialize_breakpoint_ops): Set dprintf_print_recreate.
1727
1728 2013-04-22 Tom Tromey <tromey@redhat.com>
1729
1730 PR gdb/7912:
1731 * Makefile.in (SFILES): Add filestuff.c
1732 (COMMON_OBS): Add filestuff.o.
1733 (filestuff.o): New target.
1734 * auto-load.c (auto_load_objfile_script_1): Use
1735 gdb_fopen_cloexec.
1736 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
1737 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
1738 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
1739 * common/agent.c (gdb_connect_sync_socket): Use
1740 gdb_socket_cloexec.
1741 * common/filestuff.c: New file.
1742 * common/filestuff.h: New file.
1743 * common/linux-osdata.c (linux_common_core_of_thread)
1744 (command_from_pid, commandline_from_pid, print_source_lines)
1745 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
1746 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
1747 gdb_fopen_cloexec.
1748 * common/linux-procfs.c (linux_proc_get_int)
1749 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
1750 * config.in, configure: Rebuild.
1751 * configure.ac: Don't check for sys/socket.h. Check for
1752 fdwalk, pipe2.
1753 * corelow.c (core_open): Use gdb_open_cloexec.
1754 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
1755 * fork-child.c (fork_inferior): Call close_most_fds.
1756 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
1757 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
1758 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
1759 Use gdb_fopen_cloexec.
1760 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
1761 gdb_open_cloexec.
1762 (linux_async_pipe): Use gdb_pipe_cloexec.
1763 * remote-fileio.c (remote_fileio_func_open): Use
1764 gdb_open_cloexec.
1765 * remote.c (remote_file_put, remote_file_get): Use
1766 gdb_fopen_cloexec.
1767 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
1768 close_most_fds.
1769 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
1770 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
1771 * solib.c (solib_find): Use gdb_open_cloexec.
1772 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
1773 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
1774 (tfile_open): Use gdb_open_cloexec.
1775 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
1776 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
1777 * xml-support.c (xml_fetch_content_from_file): Use
1778 gdb_fopen_cloexec.
1779 * main.c (captured_main): Call notice_open_fds.
1780
1781 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
1782
1783 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
1784 'char *' to 'gdb_byte *'.
1785 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
1786 'gdb_byte'.
1787
1788 2013-04-22 Yao Qi <yao@codesourcery.com>
1789
1790 * infrun.c: Fix typo in comment.
1791
1792 2013-04-22 Andrew Haley <aph@redhat.com>
1793
1794 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
1795 instead of "long".
1796
1797 2013-04-20 Yao Qi <yao@codesourcery.com>
1798
1799 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
1800 'char *' to 'gdb_byte *'. Cast the return value of
1801 'bt_ctf_get_char_array' to 'gdb_byte *'.
1802
1803 2013-04-19 Pedro Alves <palves@redhat.com>
1804
1805 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
1806 -Wpointer-sign.
1807 * configure: Regenerate.
1808
1809 2013-04-19 Pedro Alves <palves@redhat.com>
1810
1811 * ser-tcp.c (net_read_prim): Cast second argument to recv to
1812 'void *'.
1813
1814 2013-04-19 Pedro Alves <palves@redhat.com>
1815
1816 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
1817 Change type of 'myaddr' parameter to gdb_byte pointer.
1818 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
1819 to 'long long' pointer instead of to 'unsigned long long'.
1820 (monitor_write_memory_block, monitor_read_memory_single)
1821 (monitor_read_memory): Change type of 'myaddr' parameter to
1822 gdb_byte pointer.
1823
1824 2013-04-19 Pedro Alves <palves@redhat.com>
1825
1826 * record.c (validate_history_size): Make parameter 'setting'
1827 unsigned.
1828
1829 2013-04-19 Pedro Alves <palves@redhat.com>
1830
1831 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
1832 to 'gdb_byte *'.
1833
1834 2013-04-19 Pedro Alves <palves@redhat.com>
1835
1836 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
1837 local to int.
1838
1839 2013-04-19 Pedro Alves <palves@redhat.com>
1840
1841 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
1842 * ada-tasks.c (read_fat_string_value): Likewise.
1843
1844 2013-04-19 Pedro Alves <palves@redhat.com>
1845
1846 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
1847 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
1848 'offset', and adjust.
1849
1850 2013-04-19 Pedro Alves <palves@redhat.com>
1851
1852 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
1853 (read_index_from_section): Add cast to 'char *'.
1854
1855 2013-04-19 Pedro Alves <palves@redhat.com>
1856
1857 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
1858
1859 2013-04-19 Pedro Alves <palves@redhat.com>
1860
1861 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
1862
1863 2013-04-19 Pedro Alves <palves@redhat.com>
1864
1865 * record-full.c (record_full_get_bookmark): Change local 'ret'
1866 type to char * and add cast to gdb_byte *.
1867 (record_full_goto_bookmark): Handle 'bookmark' argument as a
1868 string.
1869 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
1870
1871 2013-04-19 Pedro Alves <palves@redhat.com>
1872
1873 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
1874 * python/py-prettyprint.c (print_string_repr): Change type of
1875 'output' local to char *. Add cast to gdb_byte * in
1876 LA_PRINT_STRING call.
1877 (print_children): Change type of 'output' local to char *.
1878 * python/py-value.c (valpy_string): Add cast to const char * in
1879 PyUnicode_Decode call.
1880
1881 2013-04-19 Pedro Alves <palves@redhat.com>
1882
1883 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
1884 and change its type to 'const char *'. Adjust.
1885 (mips_send_packet): Add cast to 'char *', and remove cast to
1886 'unsigned char *'.
1887 (mips_receive_packet): Remove cast to 'unsigned char *'.
1888 (mips_load_srec): Use bfd_byte.
1889 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
1890 (pmon_checkset): Make 'value' parameter unsigned.
1891
1892 2013-04-19 Pedro Alves <palves@redhat.com>
1893
1894 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
1895
1896 2013-04-19 Pedro Alves <palves@redhat.com>
1897
1898 * remote.c (remote_write_bytes_aux, compare_sections_command)
1899 (remote_read_qxfer)
1900 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
1901 (remote_hostio_readlink, remote_bfd_iovec_pread)
1902 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
1903 binary buffer, and char when buffer is used as string.
1904 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
1905 (trace_save, tfile_open, traceframe_walk_blocks)
1906 (tfile_fetch_registers): Likewise.
1907
1908 2013-04-19 Pedro Alves <palves@redhat.com>
1909
1910 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
1911 buffer and size_t size. Adjust.
1912 * ser-base.h (ser_base_write): Adjust.
1913 * ser-go32.c (cnts): Change type to size_t.
1914 (dos_write): Change prototype -- take 'void *'
1915 buffer and size_t size. Adjust.
1916 (dos_info): Print elements of 'cnts' as unsigned long.
1917 * serial.c (serial_write): Likewise.
1918 * serial.h (serial_write): Adjust.
1919 (struct serial_ops) <write>: Change prototype -- take 'void *'
1920 buffer and size_t size. Adjust.
1921
1922 2013-04-19 Pedro Alves <palves@redhat.com>
1923
1924 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
1925 gdb_byte *.
1926 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
1927
1928 2013-04-19 Pedro Alves <palves@redhat.com>
1929
1930 * alpha-tdep.c (alpha_extract_return_value): Use
1931 regcache_cooked_read_unsigned to read 'v0'.
1932
1933 2013-04-19 Pedro Alves <palves@redhat.com>
1934
1935 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
1936 parameters 'at', 'as' and 'offset' to uint32_t.
1937
1938 2013-04-19 Pedro Alves <palves@redhat.com>
1939
1940 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
1941 'is64' to signed 'int'.
1942
1943 2013-04-19 Pedro Alves <palves@redhat.com>
1944
1945 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
1946 parameter to int *.
1947
1948 2013-04-19 Pedro Alves <palves@redhat.com>
1949
1950 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
1951 'insnbuf' buffer type to unsigned int[].
1952
1953 2013-04-19 Pedro Alves <palves@redhat.com>
1954
1955 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
1956
1957 2013-04-19 Pedro Alves <palves@redhat.com>
1958
1959 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
1960 unsigned long *.
1961
1962 2013-04-19 Pedro Alves <palves@redhat.com>
1963
1964 * alpha-tdep.c (heuristic_fence_post): Change type to int.
1965 (alpha_heuristic_proc_start): Adjust to check -1 instead of
1966 UINT_MAX.
1967 * mips-tdep.c (heuristic_fence_post): Change type to int.
1968 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
1969
1970 2013-04-19 Pedro Alves <palves@redhat.com>
1971
1972 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
1973 (struct gdbarch_tdep) <cris_version>: Make unsigned.
1974 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
1975
1976 2013-04-19 Pedro Alves <palves@redhat.com>
1977
1978 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
1979 it to get a string view of the byte buffer.
1980 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
1981 type to gdb_byte *. Adjust.
1982 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
1983 Change local to char *.
1984 * solib-darwin.c (find_program_interpreter): Change return type to
1985 char *. Adjust.
1986 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
1987 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
1988 * solib-frv.c (enable_break2): Change local 'buf' to char *.
1989 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
1990 * solib-svr4.c (find_program_interpreter): Change return type to
1991 char *. Adjust.
1992 (enable_break): Change local 'interp_name' to char *.
1993 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
1994 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
1995 (spu_pseudo_register_write_spu): Use char for string buffer.
1996 Adjust.
1997 (info_spu_event_command, info_spu_signal_command): Add casts to
1998 'char *'.
1999
2000 2013-04-19 Pedro Alves <palves@redhat.com>
2001
2002 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
2003 gdb_byte[].
2004 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
2005 * ada-lang.c (ada_value_assign): Use gdb_byte.
2006 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
2007 (alphanbsd_sigtramp_offset): Use gdb_byte.
2008 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
2009 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
2010 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
2011 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
2012 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
2013 * arm-tdep.c (arm_stub_unwind_sniffer)
2014 (arm_displaced_init_closure): Use gdb_byte.
2015 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
2016 (arm_default_thumb_le_breakpoint)
2017 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
2018 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
2019 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
2020 * arm-wince-tdep.c (arm_wince_le_breakpoint)
2021 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
2022 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
2023 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
2024 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
2025 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
2026 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
2027 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
2028 (cris_store_return_value, cris_extract_return_value): Use
2029 gdb_byte.
2030 (constraint): Change type of parameter to char * from signed
2031 char*. Use gdb_byte.
2032 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
2033 of local buffer to gdb_byte *.
2034 * dwarf2read.c (read_index_from_section): Use gdb_byte.
2035 (create_dwp_hash_table): Change type of locals to gdb_byte *.
2036 (add_address_entry): Change type of local buffer to gdb_byte[].
2037 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
2038 (frv_push_dummy_call): Use gdb_byte.
2039 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
2040 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
2041 (hppa_hpux_supply_save_state): Use gdb_byte.
2042 * hppa-tdep.c (hppa32_push_dummy_call)
2043 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
2044 * ia64-tdep.c (extract_bit_field, replace_bit_field)
2045 (slotN_contents, replace_slotN_contents): Change type of parameter
2046 to gdb_byte *.
2047 (fetch_instruction, ia64_pseudo_register_write)
2048 (ia64_register_to_value, ia64_value_to_register)
2049 (ia64_extract_return_value, ia64_store_return_value)
2050 (ia64_push_dummy_call): Use gdb_byte.
2051 * m32c-tdep.c (m32c_return_value): Remove cast.
2052 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
2053 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
2054 gdb_byte.
2055 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
2056 * mn10300-tdep.c (mn10300_store_return_value)
2057 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
2058 gdb_byte.
2059 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
2060 (moxie_process_record): Remove casts.
2061 * ppc-ravenscar-thread.c (supply_register_at_address)
2062 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
2063 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
2064 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
2065 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
2066 * remote.c (compare_sections_command): Use gdb_byte.
2067 * score-tdep.c (score7_free_memblock): Change type of parameter to
2068 gdb_byte *.
2069 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
2070 gdb_byte *. Use gdb_byte.
2071 (sh_push_dummy_call_fpu): Use gdb_byte.
2072 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
2073 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
2074 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
2075 Change parameter type to 'gdb_byte *'. Use gdb_byte.
2076 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
2077 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
2078 (sh64_store_return_value, sh64_register_convert_to_virtual):
2079 Change parameter type to 'gdb_byte *'. Use gdb_byte.
2080 (sh64_pseudo_register_write): Use gdb_byte.
2081 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
2082 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
2083 buffer.
2084 (irix_current_sos): Use gdb_byte.
2085 * solib-som.c (som_current_sos): Use gdb_byte.
2086 * sparc-ravenscar-thread.c (supply_register_at_address)
2087 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
2088 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
2089 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
2090 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
2091 'gdb_byte *'.
2092 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
2093 'gdb_byte *'.
2094 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
2095 * xstormy16-tdep.c (xstormy16_extract_return_value)
2096 (xstormy16_store_return_value): Change parameter type to
2097 'gdb_byte *'. Adjust.
2098 (xstormy16_push_dummy_call): Use gdb_byte.
2099 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
2100 (call0_analyze_prologue, execute_code): Use gdb_byte.
2101
2102 2013-04-19 Vladimir Kargov <kargov@gmail.com>
2103 Pedro Alves <palves@redhat.com>
2104
2105 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
2106 value contents.
2107
2108 2013-04-17 Doug Evans <dje@google.com>
2109
2110 * dwarf2read.c (struct signatured_type): New member type.
2111 (struct attribute): Replace member signatured_type with signature.
2112 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
2113 (read_call_site_scope): Call follow_die_ref instead of
2114 follow_die_ref_or_sig.
2115 (read_structure_type): Rewrite handling of signatured types.
2116 (read_enumeration_type): Ditto.
2117 (read_attribute_value): Update.
2118 (build_error_marker_type): New function.
2119 (lookup_die_type): Add assert. Rewrite handling of signatured types.
2120 Don't call error for bad types, just build an error marker type.
2121 (dump_die_shallow): Update.
2122 (follow_die_sig_1): Renamed from follow_die_sig.
2123 Don't call error for bad types, instead return NULL.
2124 (follow_die_sig): New function.
2125 (get_signatured_type, get_DW_AT_signature_type): New functions.
2126
2127 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
2128
2129 * aarch64-tdep.c (aarch64_write_pc): Removed.
2130 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
2131 function.
2132
2133 2013-04-17 Yao Qi <yao@codesourcery.com>
2134
2135 * top.c (print_gdb_configuration): Print configure-time
2136 parameter on using libbabeltrace or not.
2137
2138 2013-04-16 Pedro Alves <palves@redhat.com>
2139
2140 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
2141
2142 2013-04-16 Pedro Alves <palves@redhat.com>
2143
2144 * common/glibc_thread_db.h: Update from upstream glibc
2145 (git 568035b7874a099087b77f7bba3e36a1173787b0).
2146
2147 2013-04-16 Pedro Alves <palves@redhat.com>
2148
2149 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
2150 * common/glibc_thread_db.h: ... this new file ...
2151 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
2152
2153 2013-04-16 Will Newton <will.newton@gmail.com>
2154 Pedro Alves <palves@redhat.com>
2155
2156 PR build/11881
2157
2158 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
2159 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
2160 HAVE_THREAD_DB_H.
2161
2162 2013-04-16 Pedro Alves <palves@redhat.com>
2163 Eli Zaretskii <eliz@gnu.org>
2164
2165 * NEWS: Mention "set foo unlimited".
2166
2167 2013-04-15 Doug Evans <dje@google.com>
2168
2169 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
2170 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
2171 (create_dwo_cu_reader): Renamed from
2172 create_dwo_debug_info_hash_table_reader.
2173 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
2174 Remove support for multiple CUs in a DWO file.
2175 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
2176
2177 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
2178 instead of phex.
2179 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
2180 (create_dwo_in_dwp): Ditto.
2181
2182 2013-04-15 Tom Tromey <tromey@redhat.com>
2183
2184 * NEWS: Move recent entries into "since 7.6" section.
2185
2186 2013-04-15 Tom Tromey <tromey@redhat.com>
2187
2188 PR c++/13588:
2189 * NEWS: Update.
2190 * break-catch-throw.c (struct exception_catchpoint)
2191 <exception_rx, pattern>: New fields.
2192 (fetch_probe_arguments, dtor_exception_catchpoint)
2193 (check_status_exception_catchpoint)
2194 (print_one_detail_exception_catchpoint): New functions.
2195 (handle_gnu_v3_exceptions): Add "except_rx" argument.
2196 Compile regular expression if needed.
2197 (extract_exception_regexp): New function.
2198 (catch_exception_command_1): Use extract_exception_regexp.
2199 (compute_exception): Use fetch_probe_arguments.
2200 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
2201 and check_status fields.
2202 * cp-abi.c (cplus_typename_from_type_info): New function.
2203 * cp-abi.h (cplus_typename_from_type_info): Declare.
2204 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
2205 * gdb_regex.h (compile_rx_or_error): Declare.
2206 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
2207 comment.
2208 (init_gnuv3_ops): Set get_type_from_type_info field.
2209 * probe.c (compile_rx_or_error): Move...
2210 * utils.c (compile_rx_or_error): ... here.
2211
2212 2013-04-15 Tom Tromey <tromey@redhat.com>
2213
2214 PR c++/15176:
2215 * NEWS: Update.
2216 * break-catch-throw.c (compute_exception): New function.
2217 (exception_funcs): New global.
2218 (_initialize_break_catch_throw): Create $_exception.
2219 * cp-abi.c (cplus_type_from_type_info): New function.
2220 * cp-abi.h (cplus_type_from_type_info): Declare.
2221 (struct cp_abi_ops) <get_type_from_type_info>: New field.
2222 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
2223 (gnuv3_get_type_from_type_info): New functions.
2224 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
2225
2226 2013-04-15 Tom Tromey <tromey@redhat.com>
2227
2228 * break-catch-throw.c (struct exception_names): New.
2229 (exception_functions): Change type.
2230 (re_set_exception_catchpoint): Look for SDT probes.
2231
2232 2013-04-15 Tom Tromey <tromey@redhat.com>
2233
2234 PR c++/10119:
2235 * break-catch-throw.c (exception_functions): New global.
2236 (gnu_v3_exception_catchpoint_ops): Move earlier.
2237 (struct exception_catchpoint): New.
2238 (classify_exception_breakpoint): Rewrite.
2239 (re_set_exception_catchpoint): New function.
2240 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
2241 Allocate a struct exception_catchpoint.
2242 (catch_exception_command_1): Update.
2243 (initialize_throw_catchpoint_ops): Set 're_set' method.
2244
2245 2013-04-15 Tom Tromey <tromey@redhat.com>
2246
2247 * Makefile.in (SFILES): Add break-catch-throw.c
2248 (COMMON_OBS): Add break-catch-throw.o.
2249 * break-catch-throw.c: New file.
2250 * breakpoint.c: Move exception-catching code to new file.
2251 (ep_parse_optional_if_clause): No longer static.
2252 * breakpoint.h (ep_parse_optional_if_clause): Declare.
2253
2254 2013-04-15 Tom Tromey <tromey@redhat.com>
2255
2256 PR c++/9065:
2257 * NEWS: Update.
2258 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
2259 * c-exp.y (TYPEID): New token.
2260 (exp): Add new TYPEID productions.
2261 (ident_tokens): Add "typeid".
2262 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
2263 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
2264 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
2265 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
2266 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
2267 case.
2268 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
2269 (build_std_type_info_type, gnuv3_get_typeid_type)
2270 (gnuv3_get_typeid): New functions.
2271 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
2272 new fields on ABI object.
2273 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
2274 * std-operator.def (OP_TYPEID): New.
2275
2276 2013-04-15 Tom Tromey <tromey@redhat.com>
2277
2278 * elfread.c (elf_symtab_read): Install versioned symbol under
2279 unversioned name as well.
2280
2281 2013-04-15 Tom Tromey <tromey@redhat.com>
2282
2283 PR c++/11990:
2284 * c-lang.c (cplus_language_defn): Use gdb_demangle.
2285 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
2286 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
2287 (gdb_demangle): New function.
2288 * cp-support.h (gdb_demangle): Declare.
2289 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
2290 (dwarf2_name): Use gdb_demangle.
2291 * gdbtypes.c (check_stub_method): Use gdb_demangle.
2292 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
2293 suffixes from name.
2294 (gnuv3_print_method_ptr): Use gdb_demangle.
2295 * jv-lang.c (java_demangle): Use gdb_demangle.
2296 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
2297 * language.c (unk_lang_demangle): Use gdb_demangle.
2298 * symtab.c (symbol_find_demangled_name)
2299 (demangle_for_lookup): Use gdb_demangle.
2300
2301 2013-04-15 Tom Tromey <tromey@redhat.com>
2302
2303 PR c++/12824:
2304 * NEWS: Update.
2305 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
2306 New constant.
2307 (classify_exception_breakpoint): New function.
2308 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2309 (print_mention_exception_catchpoint)
2310 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
2311 (catch_exception_command_1): Handle "rethrow" catchpoint.
2312 (catch_rethrow_command): New function.
2313 (_initialize_breakpoint): Add "catch rethrow" command.
2314
2315 2013-04-15 Pierre Muller <muller@sourceware.org>
2316
2317 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
2318 set_gdbarch_write_pc as deprecated anymore.
2319
2320 2013-04-15 Joel Brobecker <brobecker@adacore.com>
2321
2322 * spu-tdep.c (spu_write_pc): Add empty line after local variable
2323 declarations.
2324
2325 2013-04-13 Yao Qi <yao@codesourcery.com>
2326
2327 * ctf.c (_initialize_ctf): Include "completer.h".
2328 Call add_target_with_completer instead of add_target.
2329
2330 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2331
2332 Fix GDB regression related to PR binutils/14813.
2333 * jit.c (mem_bfd_iovec_close): Return 0 for success.
2334 * minidebug.c (lzma_close): Add return value comment.
2335 * remote.c (remote_bfd_iovec_close): Return 0 for success.
2336 * solib-spu.c (spu_bfd_iovec_close): Likewise.
2337 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
2338
2339 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2340
2341 * config.in: Regenerate.
2342
2343 2013-04-12 Tom Tromey <tromey@redhat.com>
2344
2345 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
2346 const.
2347 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
2348 (struct die_reader_specs) <buffer>: Likewise.
2349 (die_reader_func_ftype): Make 'info_ptr' const.
2350 (struct line_header) <include_dirs, statement_program_start,
2351 statement_program_end>: Now const.
2352 (struct file_entry) <name>: Likewise.
2353 (struct partial_die_info) <sibling>: Likewise.
2354 (struct dwarf_block) <data>: Likewise.
2355 (dwarf2_read_section): Remove cast.
2356 (dwarf2_get_section_info): Make 'bufp' const.
2357 (read_index_from_section): Constify.
2358 (dw2_get_file_names_reader): Make 'info_ptr' const.
2359 (dw2_get_primary_filename_reader): Likewise.
2360 (read_comp_unit_head): Make 'info_ptr' and return type const.
2361 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
2362 Likewise.
2363 (read_abbrev_offset): Constify.
2364 (dwarf2_create_include_psymtab): Make 'name' const.
2365 (create_debug_types_hash_table): Update.
2366 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
2367 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
2368 Constify.
2369 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
2370 (load_partial_comp_unit_reader): Make 'info_ptr' const.
2371 (read_comp_units_from_section): Constify.
2372 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
2373 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
2374 const.
2375 (dwarf2_compute_name, setup_type_unit_groups): Constify.
2376 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
2377 (create_dwp_hash_table, dwarf2_ranges_read)
2378 (dwarf2_record_block_ranges): Constify.
2379 (read_die_and_children, read_die_and_siblings_1)
2380 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
2381 const.
2382 (read_full_die_1, read_full_die): Make 'info_ptr' const.
2383 (abbrev_table_read_table): Constify.
2384 (load_partial_dies): Make 'info_ptr' const.
2385 (read_partial_die, read_attribute_value, read_attribute): Make
2386 'info_ptr' and return type const.
2387 (read_address, read_initial_length)
2388 (read_checked_initial_length_and_offset, read_offset)
2389 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
2390 const.
2391 (read_direct_string): Make 'buf' and return type const.
2392 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
2393 (read_indirect_string): Make return type const.
2394 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
2395 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
2396 'info_ptr' const.
2397 (read_str_index): Make return type const.
2398 (add_include_dir): Make 'include_dir' const.
2399 (add_file_name): Make 'name' const.
2400 (dwarf_decode_line_header): Constify.
2401 (psymtab_include_file_name): Make return type const.
2402 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
2403 (dwarf2_start_subfile): Make 'filename' const.
2404 (dwarf2_const_value_attr): Make 'bytes' const.
2405 (read_signatured_type_reader): Make 'info_ptr' const.
2406 (decode_locdesc): Constify.
2407 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
2408 const.
2409 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
2410 'mac_end', and return type const.
2411 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
2412 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
2413 type const.
2414 (per_cu_header_read_in): Constify.
2415 * symfile.h (dwarf2_get_section_info): Update.
2416
2417 2013-04-12 Tom Tromey <tromey@redhat.com>
2418
2419 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
2420
2421 2013-04-12 Eli Zaretskii <eliz@gnu.org>
2422
2423 * NEWS: Mention "show configuration", --configuration.
2424 * top.c (print_gdb_configuration): New function, displays the
2425 details about GDB configure-time parameters.
2426 (print_gdb_version): Mention "show configuration".
2427 * cli/cli-cmds.c (show_configuration): New function.
2428 (_initialize_cli_cmds): Add the "show configuration" command.
2429 * main.c (captured_main) <print_configuration>: New static var.
2430 <long_options>: Use it.
2431 If --configuration was given, call print_gdb_configuration.
2432
2433 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2434 Pedro Alves <palves@redhat.com>
2435
2436 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
2437 (generated_files): Add gcore.
2438 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
2439 HAVE_NATIVE_GCORE_HOST.
2440 (gcore): New.
2441 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
2442 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
2443 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
2444 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
2445 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
2446 Add HAVE_NATIVE_GCORE_HOST.
2447 * configure: Regenerate.
2448 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
2449 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
2450 AC_CONFIG_FILES for gcore.
2451 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
2452 gdb_have_gcore.
2453 * gdb_gcore.sh: Rename to ...
2454 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
2455 and GCORE_TRANSFORM_NAME substitutions.
2456
2457 Fix parsing tabs in ${gdb_target_obs}.
2458 * configure.tgt (gdb_have_gcore): Replace case with for and if.
2459
2460 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2461
2462 * remote.c (unpush_and_perror): Add output message final dot.
2463
2464 2013-04-11 Yao Qi <yao@codesourcery.com>
2465
2466 * tracepoint.c (tfile_interp_line): Fit parameters line and
2467 utpp in one line.
2468
2469 2013-04-10 Joel Brobecker <brobecker@adacore.com>
2470
2471 * solib.c (solib_map_sections): Remove code overwriting
2472 SO->SO_NAME with the bfd's filename.
2473
2474 2013-04-10 Pedro Alves <palves@redhat.com>
2475
2476 * cli/cli-decode.c (integer_unlimited_completer): New function.
2477 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
2478 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
2479 completer.
2480 * cli/cli-setshow.c: Include "cli/cli-utils.h".
2481 (is_unlimited_literal): New function.
2482 (do_set_command): Handle literal "unlimited" arguments.
2483 * frame.c (_initialize_frame) <set backtrace limit>: Document
2484 "unlimited".
2485 * printcmd.c (_initialize_printcmd) <set print
2486 max-symbolic-offset>: Add help text.
2487 * record-full.c (_initialize_record_full) <set record full
2488 insn-number-max>: Likewise.
2489 * record.c (_initialize_record) <set record
2490 instruction-history-size, set record function-call-history-size>:
2491 Add help text.
2492 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
2493 help text.
2494 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
2495 Likewise.
2496 * source.c (_initialize_source) <set listsize>: Add help text.
2497 * utils.c (initialize_utils) <set height, set width>: Likewise.
2498 <set pagination>: Mention "set height unlimited".
2499 * valprint.c (_initialize_valprint) <set print elements, set print
2500 repeats>: Document "unlimited".
2501
2502 2013-04-10 Pedro Alves <palves@redhat.com>
2503
2504 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
2505 instead of disconnect_tracing.
2506 * infcmd.c (detach_command, disconnect_command): Call
2507 query_if_trace_running. Adjust.
2508 * top.c: Include "tracepoint.h".
2509 (quit_target): Delete. Contents moved ...
2510 (quit_force): ... here. Wrap each stage of teardown in
2511 TRY_CATCH. Call disconnect_tracing before detaching.
2512
2513 2013-04-10 Hui Zhu <hui@codesourcery.com>
2514 Yao Qi <yao@codesourcery.com>
2515
2516 * configure.ac: Check libbabeltrace is installed.
2517 * config.in: Regenerate.
2518 * configure: Regenerate.
2519 * Makefile.in (LIBBABELTRACE): New.
2520 (CLIBS): Add LIBBABELTRACE.
2521 * ctf.c: Include "exec.h".
2522 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
2523 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
2524 (ctf_save_metadata_header): Define new type aliases in
2525 metadata.
2526 (ctf_write_header): Define event type "tsv_def" and "tp_def"
2527 in metadata. Start a new faked packet for trace status.
2528 (ctf_write_status): Write trace status to CTF.
2529 (ctf_write_uploaded_tsv): Write TSV to CTF.
2530 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
2531 (ctf_write_definition_end): End the faked packet.
2532
2533 (ctx, ctf_iter, trace_dirname): New.
2534 (start_pos): New variable.
2535 (ctf_destroy, ctf_open_dir, ctf_open): New.
2536 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
2537 macros.
2538 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
2539 (ctf_fetch_registers, ctf_xfer_partial): New.
2540 (ctf_get_trace_state_variable_value): New.
2541 (ctf_get_tpnum_from_frame_event): New.
2542 (ctf_get_traceframe_address): New.
2543 (ctf_trace_find, ctf_has_stack): New.
2544 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
2545 (ctf_get_trace_status, ctf_read_status): New.
2546 (_initialize_ctf): New.
2547 * tracepoint.c (get_tracepoint_number): New
2548 (get_uploaded_tsv): Remove 'static'.
2549 (struct traceframe_info, trace_regblock_size): Move it to ...
2550 * tracepoint.h: ... here.
2551 (get_tracepoint_number): Declare it.
2552 (get_uploaded_tsv): Declare it.
2553
2554 * NEWS: Mention new configure option.
2555
2556 2013-04-10 Pedro Alves <palves@redhat.com>
2557 Hui Zhu <hui@codesourcery.com>
2558
2559 * breakpoint.c (dprintf_re_set): New.
2560 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
2561 to dprintf_re_set.
2562
2563 2013-04-09 Joel Brobecker <brobecker@adacore.com>
2564
2565 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
2566 Remove solib-svr4.o from the list.
2567
2568 2013-04-09 Joel Brobecker <brobecker@adacore.com>
2569
2570 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
2571 Use gdb_assert_not_reached instead of invalid boolean expression.
2572
2573 2013-04-09 Pedro Alves <palves@redhat.com>
2574
2575 * remote.c (unpush_and_perror): New function.
2576 (readchar, remote_serial_write): Use it.
2577
2578 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
2579
2580 * NEWS: Mention new btrace RSP packets.
2581
2582 2013-04-08 Tom Tromey <tromey@redhat.com>
2583
2584 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
2585 long.
2586
2587 2013-04-08 Tom Tromey <tromey@redhat.com>
2588
2589 * maint.c (print_bfd_section_info): Print the section index.
2590 * symmisc.c (dump_msymbols): Print the section index.
2591
2592 2013-04-08 Tom Tromey <tromey@redhat.com>
2593
2594 PR symtab/8424:
2595 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
2596 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
2597 * breakpoint.c (resolve_sal_pc): Update.
2598 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2599 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
2600 (minsym_lookup_iterator_cb): Use it.
2601 (default_read_var_value): Update.
2602 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
2603 Update.
2604 * infcmd.c (jump_command): Update.
2605 * linespec.c (minsym_found): Update.
2606 * maint.c (maintenance_translate_address): Update.
2607 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
2608 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
2609 * parse.c (write_exp_msymbol): Update.
2610 * printcmd.c (address_info): Update.
2611 * psymtab.c (find_pc_sect_psymbol): Update.
2612 (fixup_psymbol_section): Check SYMBOL_SECTION, not
2613 SYMBOL_OBJ_SECTION.
2614 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
2615 Don't initialize SYMBOL_OBJ_SECTION.
2616 * spu-tdep.c (spu_catch_start): Update.
2617 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
2618 * symmisc.c (dump_msymbols, print_symbol): Update.
2619 * symtab.c (fixup_section): Don't set 'obj_section'. Change
2620 how fallback section is computed.
2621 (fixup_symbol_section): Update.
2622 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
2623 Update.
2624 (allocate_symbol, initialize_symbol, allocate_template_symbol):
2625 Initialize SYMBOL_SECTION.
2626 * symtab.h (struct general_symbol_info) <section>: Update comment.
2627 <obj_section>: Remove.
2628 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
2629 (SYMBOL_OBJFILE): New macro.
2630
2631 2013-04-08 Tom Tromey <tromey@redhat.com>
2632
2633 * coffread.c (record_minimal_symbol): Update.
2634 * dbxread.c (record_minimal_symbol): Update.
2635 * elfread.c (record_minimal_symbol): Update.
2636 * machoread.c (macho_symtab_add_minsym): Update.
2637 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
2638 Update.
2639 * minsyms.c (prim_record_minimal_symbol): Update.
2640 (prim_record_minimal_symbol_full): Remove 'bfd_section'
2641 argument.
2642 (prim_record_minimal_symbol_and_info): Likewise.
2643 * minsyms.h (prim_record_minimal_symbol_full)
2644 (prim_record_minimal_symbol_and_info): Update.
2645 * symtab.c (allocate_symbol, initialize_symbol)
2646 (allocate_template_symbol): Initialize SYMBOL_SECTION.
2647 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
2648 Update.
2649
2650 2013-04-08 Tom Tromey <tromey@redhat.com>
2651
2652 PR symtab/8423:
2653 * solib-som.c (som_solib_section_offsets): Use BFD section
2654 indices. Set offsets for all sections.
2655 * somread.c (som_symtab_read): Compute BFD section for
2656 symbol. Use prim_record_minimal_symbol_and_info.
2657 (som_symfile_read): Fix comment.
2658 (struct find_section_offset_arg): New.
2659 (find_section_offset, set_section_index): New functions.
2660 (som_symfile_offsets): Use set_section_index to compute
2661 section indices.
2662
2663 2013-04-08 Tom Tromey <tromey@redhat.com>
2664
2665 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
2666 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
2667 gdb_bfd_section_index.
2668 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
2669 New functions.
2670 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
2671 Declare.
2672 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
2673 Update.
2674 * objfiles.c (add_to_objfile_sections_full): New function.
2675 (add_to_objfile_sections): Use it.
2676 (build_section_table): Rewrite.
2677 (objfile_relocate1): Use gdb_bfd_section_index. Update.
2678 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
2679 (struct objfile) <sections>: Update comment.
2680 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
2681 is NULL.
2682 (ALL_OBJSECTIONS): Use it.
2683 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
2684 * solib-frv.c (frv_relocate_main_executable): Update.
2685 * solib-target.c (solib_target_relocate_section_addresses):
2686 Use gdb_bfd_section_index.
2687 * symfile.c (build_section_addr_info_from_section_table):
2688 Use gdb_bfd_section_index.
2689 (build_section_addr_info_from_bfd, place_section): Likewise.
2690 * symtab.c (fixup_section): Update.
2691 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
2692
2693 2013-04-08 Tom Tromey <tromey@redhat.com>
2694
2695 * minsyms.h (struct bound_minimal_symbol): New.
2696 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
2697 Remove objfile argument.
2698 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
2699 Return bound_minimal_symbol.
2700 * minsyms.c (lookup_minimal_symbol_by_pc_1)
2701 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
2702 Return bound_minimal_symbol.
2703 (in_gnu_ifunc_stub): Update.
2704 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
2705 Remove 'objfile_p' argument.
2706 (lookup_solib_trampoline_symbol_by_pc): Update.
2707 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
2708 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
2709 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
2710 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
2711 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
2712 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
2713 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
2714 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
2715 stack.c, symtab.c, tui/tui-disasm.c: Update.
2716
2717 2013-04-08 Tom Tromey <tromey@redhat.com>
2718
2719 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
2720 Use symbol's obstack, not an objfile.
2721 * coffread.c (process_coff_symbol): Update.
2722 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
2723 * jv-lang.c (add_class_symbol): Update.
2724 * mdebugread.c (new_symbol): Update.
2725 * minsyms.c (prim_record_minimal_symbol_full)
2726 (terminate_minimal_symbol_table): Update.
2727 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
2728 * stabsread.c (define_symbol, read_enum_type): Update.
2729 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
2730 Handle Ada specially.
2731 (symbol_set_language): Add 'obstack' argument.
2732 (symbol_set_names): Update.
2733 (symbol_natural_name, symbol_demangled_name): Always use
2734 ada_decode_symbol.
2735 * symtab.h (struct general_symbol_info)
2736 <language_specific::obstack>: New field.
2737 <ada_mangled>: New field.
2738 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
2739 (symbol_set_language): Update.
2740
2741 2013-04-08 Tom Tromey <tromey@redhat.com>
2742
2743 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
2744 Take an obstack, not an objfile.
2745 (symbol_set_names): Update.
2746 * symtab.h (symbol_set_demangled_name): Update.
2747
2748 2013-04-08 Tom Tromey <tromey@redhat.com>
2749
2750 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
2751 allocate_symbol.
2752 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
2753 (read_func_scope): Call allocate_template_symbol.
2754 (new_symbol_full): Call allocate_symbol.
2755 * jit.c (finalize_symtab): Call allocate_symbol.
2756 * jv-lang.c (add_class_symbol): Call allocate_symbol.
2757 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
2758 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
2759 (common_block_end): Call allocate_symbol.
2760 * symtab.c (allocate_symbol, initialize_symbol)
2761 (allocate_template_symbol): New functions.
2762 * symtab.c (allocate_symbol, initialize_symbol)
2763 (allocate_template_symbol): Declare.
2764 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
2765
2766 2013-04-08 Pedro Alves <palves@redhat.com>
2767 Keith Seitz <keiths@redhat.com>
2768
2769 * breakpoint.c (create_breakpoint): Rename
2770 "parse_condition_and_thread" parameter to "parse_arg". Update
2771 describing comment. If !PARSE_ARG, then error out if ARG is not
2772 the empty string after extracting the location.
2773 * breakpoint.h (create_breakpoint): Rename
2774 "parse_condition_and_thread" parameter to "parse_arg".
2775
2776 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
2777
2778 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
2779
2780 2013-04-07 Yao Qi <yao@codesourcery.com>
2781
2782 * remote.c (remote_trace_find): Change type of parameters 'addr1'
2783 and 'addr2' to CORE_ADDR.
2784 * target.c (update_current_target): Update.
2785 * target.h (struct target_ops) <to_trace_find>: Change parameter
2786 type to CORE_ADDR.
2787 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
2788 'addr2' to CORE_ADDR.
2789 (tfile_trace_find): Likewise.
2790 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
2791 Change local variable 'addr' to type CORE_ADDR.
2792 * tracepoint.h (tfind_1): Update declaration.
2793
2794 2013-04-06 Eli Zaretskii <eliz@gnu.org>
2795
2796 * windows-nat.c (windows_get_absolute_argv0): Move from here...
2797 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
2798 Include main.h.
2799
2800 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
2801 here...
2802 * main.h (windows_get_absolute_argv0): ...to here.
2803
2804 2013-04-05 Doug Evans <dje@google.com>
2805
2806 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
2807 (read_cutu_die_from_dwo): Add comments.
2808 (read_structure_type): Update comment.
2809 (read_enumeration_type, read_namespace_type): Update comment.
2810 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
2811
2812 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2813
2814 Convert man pages to texinfo, new gdbinit.5 texinfo page.
2815 * Makefile.in (gdb.z): Remove.
2816 (install-only): Remove $(man1dir) and gdb.1 installation.
2817 * gdb.1: Remove.
2818
2819 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2820
2821 Fix compatibility with Linux kernel 3.8.3.
2822 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
2823 to more inner block. Remove parsing of NUMBER from outer block.
2824 Parse NUMBER only if KEYWORD has been identified.
2825
2826 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2827
2828 Fix variable name shadowing.
2829 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
2830 filename to mapsfilename and update its uses.
2831
2832 2013-04-05 Eli Zaretskii <eliz@gnu.org>
2833
2834 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
2835 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
2836 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
2837 details of the problem.
2838
2839 2013-04-04 Pedro Alves <palves@redhat.com>
2840 Hui Zhu <hui@codesourcery.com>
2841
2842 * breakpoint.c (validate_commands_for_breakpoint): If validating a
2843 tracepoint, reset its STEP_COUNT and call validate_actionline.
2844
2845 2013-04-03 Doug Evans <dje@google.com>
2846
2847 * dwarf2read.c (read_die_and_siblings_1): Renamed from
2848 read_die_and_siblings.
2849 (read_die_and_siblings): New function.
2850 (read_cutu_die_from_dwo): Dump die if requested.
2851 (read_die_and_children): Call read_full_die_1 and
2852 read_die_and_siblings_1.
2853 (read_full_die): Dump die if requested.
2854
2855 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
2856
2857 * dwarf2read.c (struct dwo_file): New member comp_dir.
2858 Rename member name to dwo_name. All uses updated.
2859 (hash_dwo_file): Include comp_dir in computation.
2860 (eq_dwo_file): Ditto.
2861 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
2862 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
2863
2864 * psymtab.c (read_psymtabs_with_fullname): Don't call
2865 psymtab_to_fullname if the basenames are different.
2866
2867 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2868
2869 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
2870 New entry about "fullname" presence.
2871
2872 2013-04-03 Pedro Alves <palves@redhat.com>
2873
2874 * NEWS: Mention x86_64/Cygwin as new native configuration.
2875
2876 2013-04-02 Doug Evans <dje@google.com>
2877
2878 * dwarf2read.c (read_structure_type): Fix typo in comment.
2879
2880 2013-04-02 Pedro Alves <palves@redhat.com>
2881
2882 * NEWS: Mention "set/show debug aarch64", "set/show debug
2883 coff-pe-read" and "set/show debug mach-o".
2884
2885 2013-04-02 Pedro Alves <palves@redhat.com>
2886
2887 * NEWS: Mention "set/show remote trace-buffer-size-packet".
2888
2889 2013-04-02 Eli Zaretskii <eliz@gnu.org>
2890
2891 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
2892 gdb_string.h is now in common/.
2893
2894 2013-04-02 Pedro Alves <palves@redhat.com>
2895
2896 * NEWS: Move "set debug notification" and "set trace-buffer-size"
2897 under "New options".
2898
2899 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2900
2901 Revert this patch:
2902 PR gdb/15275
2903 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
2904
2905 2013-04-02 Pedro Alves <palves@redhat.com>
2906
2907 PR gdb/15275
2908
2909 * remote.c (send_interrupt_sequence): Use remote_serial_write.
2910 (remote_serial_write): New function.
2911 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
2912
2913 2013-04-01 Jiong Wang <jiwang@tilera.com>
2914
2915 * NEWS: Mention TILE-Gx in "New native configurations" and
2916 "New targets" sections.
2917
2918 2013-04-01 Doug Evans <dje@google.com>
2919
2920 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
2921 (process_enumeration_scope): Simplify.
2922
2923 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
2924 type_unit_group ...
2925 (struct signatured_type): ... to here.
2926 (sig_type_ptr): New typedef.
2927 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
2928 out of union 't'. All uses updated.
2929 (dw2_get_file_names_reader): Assert not called for a type unit.
2930 (dw2_get_file_names): Assert not called for a type unit or type
2931 unit group.
2932 (build_type_psymtabs_reader): Assert called for a type unit.
2933 (build_type_psymtab_dependencies): Assert called for a type unit group.
2934
2935 * dwarf2read.c (free_dwo_file): Add comment.
2936 (dwarf2_per_objfile_free): Unref dwp bfd.
2937
2938 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
2939
2940 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
2941 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
2942 (read_pe_exported_syms): Remove unused 'exportix'.
2943 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
2944 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
2945 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
2946
2947 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
2948
2949 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
2950 (print_it_watchpoint): Remove unused 'bl'.
2951 (say_where): Remove unused 'uiout'.
2952 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
2953 (bkpt_breakpoint_hit): Remove unused 'b'.
2954 (internal_bkpt_print_it): Remove unused 'uiout'.
2955 * buildsym.c (augment_type_symtab): Remove unused 'i'.
2956
2957 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
2958
2959 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
2960 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
2961
2962 2013-03-29 Doug Evans <dje@google.com>
2963
2964 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
2965 Delete arg is_dwp. All callers updated.
2966 (open_dwp_file): New function.
2967 (open_and_init_dwp_file): Call it.
2968 (get_dwp_file): New function.
2969 (lookup_dwo_cutu): Call it.
2970
2971 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
2972 unnecessary, cleanup.
2973
2974 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
2975
2976 * dwarf2read.c (read_cutu_die_from_dwo): New function.
2977 (lookup_dwo_unit): New function.
2978 (init_cutu_and_read_dies): Move DWO handling to new functions.
2979
2980 * dwarf2read.c (struct signatured_type): Tweak comment.
2981 (struct dwo_unit): Tweak comment.
2982 (create_debug_types_hash_table): Tweak comment. Reformat long line.
2983 (create_dwo_debug_info_hash_table): Tweak comment.
2984 (dwarf2_per_cu_offset_and_type): Tweak comment.
2985
2986 * dwarf2read.c (lookup_signatured_type): Remove complaint about
2987 missing .debug_types section.
2988
2989 2013-03-29 Yao Qi <yao@codesourcery.com>
2990
2991 * corelow.c: Include "completer.h".
2992 (_initialize_corelow): Call add_target_with_completer with
2993 argument 'filename_completer'.
2994 * tracepoint.c: Likewise.
2995 * exec.c (_initialize_exec): Likewise.
2996 * target.c (add_target): Rename to ...
2997 (add_target_with_completer): ... this. Call set_cmd_completer
2998 if parameter completer is not NULL.
2999 (add_target): New.
3000 * target.h: Include "command.h".
3001 (add_target_with_completer): Declare it.
3002
3003 2013-03-28 Joel Brobecker <brobecker@adacore.com>
3004
3005 * coffread.c (is_import_fixup_symbol): New function.
3006 (record_minimal_symbol): Use is_import_fixup_symbol to
3007 detect import fixup symbols, and discard them.
3008
3009 2013-03-28 Doug Evans <dje@google.com>
3010
3011 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
3012 types hash table until we know we need it.
3013
3014 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
3015 index numbers.
3016
3017 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
3018 All callers updated.
3019 (dw2_print_stats): Print #read CUs too.
3020 (dump_die_shallow): Print signatured types better.
3021
3022 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
3023 info_or_types_section to section. All uses updated.
3024 (struct dwo_unit): Ditto.
3025
3026 2013-03-28 Pedro Alves <palves@redhat.com>
3027
3028 * NEWS (New options): New section.
3029 (New options): Mention set/show remote trace-status-packet.
3030 * remote.c (PACKET_qTStatus): New enumeration value.
3031 (remote_get_trace_status): Skip sending qTStatus if the packet is
3032 disabled. Use packet_ok.
3033 (_initialize_remote): Register a configuration command for
3034 qTStatus packet.
3035
3036 2013-03-28 Doug Evans <dje@google.com>
3037
3038 * symfile.c (find_separate_debug_file): Add comment.
3039 (terminate_after_last_dir_separator): Tweak comment.
3040
3041 * dwarf2read.c (create_partial_symtab): Add forward decl.
3042 (create_partial_symtab): Move to be closer to other psymtab functions.
3043 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
3044
3045 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
3046 (compute_symtab_includes): Remove unnecessary forward declaration.
3047 (die_needs_namespace): Add comment marking group of functions for
3048 dwarf2 name computation.
3049
3050 * typeprint.c (_initialize_typeprint): Improve type help text.
3051
3052 * python/python.c (finish_python_initialization): Provide suggestion
3053 for how to tell gdb to find its python files.
3054
3055 2013-03-28 Pedro Alves <palves@redhat.com>
3056
3057 PR gdb/15294
3058
3059 * source.c (_initialize_source): Change back "set listsize" to an
3060 integer command.
3061
3062 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
3063
3064 PR gdb/15275
3065 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
3066
3067 2013-03-27 Pedro Alves <palves@redhat.com>
3068
3069 * top.c (history_size): Rename to ...
3070 (history_size_setshow_var): ... this. Add comment.
3071 (show_commands): Use readline's 'history_length' instead of
3072 computing the history length by calling history_get in a loop.
3073 (set_history_size_command): Error out for sizes over INT_MAX.
3074 Restore previous history size on invalid size.
3075 (init_history): If HISTSIZE is negative, leave the history size as
3076 zero. Add comments.
3077 (init_main): Adjust.
3078
3079 2013-03-27 Pedro Alves <palves@redhat.com>
3080
3081 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
3082 coff_pe_read" command to "set debug coff-pe-read".
3083
3084 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
3085
3086 * record.c (command_size_to_target_size): Fix size comparison.
3087 Change parameter type from pointer to integer to integer.
3088 Update all users.
3089
3090 2013-03-27 Pierre Muller <muller@sourceware.org>
3091
3092 * windows-nat.c (handle_output_debug_string): Avoid typecast
3093 from integer of different size warning.
3094
3095 2013-03-26 Joel Brobecker <brobecker@adacore.com>
3096
3097 * windows-nat.c (handle_output_debug_string): Add empty line
3098 after local block variable definition.
3099
3100 2013-03-26 Pedro Alves <palves@redhat.com>
3101
3102 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
3103 (net_open): Make 'polls' local unsigned.
3104
3105 2013-03-26 Pedro Alves <palves@redhat.com>
3106
3107 * remote.c (_initialize_remote): Make "set remoteaddresssize"
3108 a zuinteger command instead of uinteger.
3109
3110 2013-03-26 Pedro Alves <palves@redhat.com>
3111
3112 * record-full.c (record_full_insn_num): Make it unsigned.
3113 (record_full_check_insn_num, record_full_message)
3114 (record_full_registers_change, record_full_xfer_partial): Remove
3115 record_full_insn_max_num check (it's always != 0).
3116 (record_full_info, record_full_restore): Use %u as format string.
3117 (): Use %u as format string.
3118 (set_record_full_insn_max_num): Remove record_full_insn_max_num
3119 check (it's always != 0).
3120
3121 2013-03-26 Pedro Alves <palves@redhat.com>
3122
3123 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
3124 and "set dcache size" commands zuinteger instead of uinteger.
3125
3126 2013-03-26 Pedro Alves <palves@redhat.com>
3127
3128 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
3129 command zuinteger instead of uinteger.
3130
3131 2013-03-26 Pedro Alves <palves@redhat.com>
3132
3133 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
3134 zuinteger instead of uinteger.
3135
3136 2013-03-26 Pedro Alves <palves@redhat.com>
3137
3138 * record.c (record_insn_history_size_setshow_var)
3139 (record_call_history_size_setshow_var): New globals.
3140 (command_size_to_target_size): New function.
3141 (cmd_record_insn_history, cmd_record_call_history): Use
3142 command_size_to_target_size instead of cast.
3143 (validate_history_size, set_record_insn_history_size)
3144 (set_record_call_history_size): New functions.
3145 (_initialize_record): Install set_record_insn_history_size and
3146 set_record_call_history_size as "set" hooks of "set record
3147 instruction-history-size" and "set record
3148 function-call-history-size".
3149
3150 2013-03-26 Pedro Alves <palves@redhat.com>
3151
3152 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
3153 use with history_max_entries use. Remove FIXME note.
3154
3155 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
3156
3157 * record-btrace.c (record_btrace_close): Call
3158 record_btrace_auto_disable.
3159
3160 2013-03-25 Joel Brobecker <brobecker@adacore.com>
3161
3162 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
3163
3164 2013-03-25 Doug Evans <dje@google.com>
3165
3166 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
3167
3168 2013-03-25 Tom Tromey <tromey@redhat.com>
3169
3170 PR symtab/11462:
3171 * c-exp.y (exp): Add new productions for destructors after '.' and
3172 '->'.
3173 (write_destructor_name): New function.
3174
3175 2013-03-25 Tom Tromey <tromey@redhat.com>
3176
3177 PR c++/9197:
3178 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
3179 value_struct_elt, not lookup_struct_elt_type.
3180 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
3181 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
3182 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
3183
3184 2013-03-25 Yao Qi <yao@codesourcery.com>
3185
3186 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
3187 instead of '_mkdir'.
3188
3189 2013-03-23 Eli Zaretskii <eliz@gnu.org>
3190
3191 * windows-nat.c (windows_get_absolute_argv0): New function.
3192 * windows-nat.h: Add its prototype.
3193
3194 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
3195 Use IS_DIR_SEPARATOR instead of looking for a character inside
3196 SLASH_STRING. Include filenames.h.
3197 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
3198 relocate_gdb_directory works when passed gdb_program_name.
3199 Include windows-nat.h.
3200
3201 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3202
3203 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
3204 * remote.c (trace_error): Remove the special handling of '2'.
3205 (readchar) <SERIAL_EOF>
3206 (readchar) <SERIAL_ERROR>
3207 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
3208 (remote_get_trace_status): Call throw_exception if EX is
3209 TARGET_CLOSE_ERROR.
3210 * utils.c (perror_with_name): Rename to ...
3211 (throw_perror_with_name): ... here. New parameter errcode, describe it
3212 in the function comment.
3213 (perror_with_name): New function wrapper.
3214 * utils.h (enum errors): New stub declaration.
3215 (throw_perror_with_name): New declaration.
3216
3217 2013-03-22 Pedro Alves <palves@redhat.com>
3218 Yao Qi <yao@codesourcery.com>
3219 Mark Kettenis <kettenis@gnu.org>
3220
3221 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
3222 Don't let the user set the value to UINT_MAX directly.
3223 <var_integer>: Don't let the user set the value to INT_MAX
3224 directly.
3225
3226 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3227
3228 * remote.c (remote_unpush_target): New function.
3229 (remote_open_1): Remove two pop_target calls, update one comment, add
3230 comment to target_preopen call. Replace pop_target call by
3231 remote_unpush_target call.
3232 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
3233 pop_target calls by remote_unpush_target calls.
3234
3235 2013-03-22 Pedro Alves <palves@redhat.com>
3236
3237 * linux-nat.c (linux_child_follow_fork): Don't call
3238 linux_enable_event_reporting.
3239 (linux_handle_extended_wait): Don't call
3240 linux_enable_event_reporting.
3241
3242 2013-03-22 Pedro Alves <palves@redhat.com>
3243
3244 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
3245 use it to rewrite the trampoline buffers with type gdb_byte[], and
3246 undefine the macro. Remove char* cast.
3247
3248 2013-03-21 Doug Evans <dje@google.com>
3249
3250 New commands "mt set per-command {space,time,symtab} {on,off}".
3251 * NEWS: Add entry.
3252 * event-top.c: #include "maint.h".
3253 * main.c: #include "maint.h".
3254 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
3255 timeval-utils.h, maint.h, cli/cli-setshow.h.
3256 (per_command_time, per_command_space): New static globals.
3257 (per_command_symtab): New static global.
3258 (per_command_setlist, per_command_showlist): New static globals.
3259 (struct cmd_stats): Move here from utils.c.
3260 (set_per_command_time): Renamed from set_display_time in utils.c
3261 and moved here. All callers updated.
3262 (set_per_command_space): Renamed from set_display_space in utils.c
3263 and moved here. All callers updated.
3264 (count_symtabs_and_blocks): New function.
3265 (report_command_stats): Moved here from utils.c. Add support for
3266 printing symtab stats. Only print data if enabled before command
3267 executed.
3268 (make_command_stats_cleanup): Ditto.
3269 (sert_per_command_cmd, show_per_command_cmd): New functions.
3270 (_initialize_maint_cmds): Add new commands
3271 mt set per-command {space,time,symtab} {on,off}.
3272 * maint.h: New file.
3273 * top.c: #include "maint.h".
3274 * utils.c (reset_prompt_for_continue_wait_time): New function.
3275 (get_prompt_for_continue_wait_time): New function.
3276 * utils.h (reset_prompt_for_continue_wait_time): Declare
3277 (get_prompt_for_continue_wait_time): Declare.
3278 (make_command_stats_cleanup): Moved to maint.h.
3279 (set_display_time, set_display_space): Moved to maint.h and renamed
3280 to set_per_command_time, set_per_command_space.
3281 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
3282 parse_binary_operation and made non-static. Don't call error,
3283 just return an error marker. All callers updated.
3284 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
3285
3286 2013-03-21 Tom Tromey <tromey@redhat.com>
3287
3288 * symfile.c (alloc_section_addr_info): Update header. Don't set
3289 'num_sections' field.
3290 (build_section_addr_info_from_section_table): Set 'num_sections'.
3291 (build_section_addr_info_from_bfd): Likewise.
3292 (build_section_addr_info_from_objfile): Remove dead loop
3293 condition.
3294 (free_section_addr_info): Unconditionally call xfree.
3295 (relative_addr_info_to_section_offsets, addrs_section_sort)
3296 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
3297 condition.
3298 (syms_from_objfile_1): Remove dead 'if' condition. Check
3299 'num_sections'.
3300 (add_symbol_file_command): Set 'num_sections'.
3301 * symfile-mem.c (symbol_file_add_from_memory): Set
3302 'num_sections'.
3303 * somread.c (som_symfile_offsets): Remove dead loop condition.
3304 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
3305 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
3306
3307 2013-03-21 Tom Tromey <tromey@redhat.com>
3308
3309 * tracepoint.h (decode_agent_options): Add 'trace_string'
3310 argument.
3311 * tracepoint.c (decode_agent_options): Add 'trace_string'
3312 argument.
3313 (validate_actionline): Update.
3314 (collect_symbol): Add 'trace_string' argument.
3315 (struct add_local_symbols_data) <trace_string>: New field.
3316 (do_collect_symbol): Update.
3317 (add_local_symbols): Add 'trace_string' argument.
3318 (encode_actions_1): Update.
3319 (trace_dump_actions): Update.
3320 * dwarf2loc.c (access_memory): Update.
3321 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
3322 * ax-general.c (new_agent_expr): Update.
3323 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
3324 (gen_trace_for_return_address): Add argument.
3325 (trace_kludge, trace_string_kludge): Remove.
3326 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
3327 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
3328 (gen_trace_for_var): Add 'trace_string' argument.
3329 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
3330 (gen_printf, agent_eval_command_one): Update.
3331
3332 2013-03-21 Tom Tromey <tromey@redhat.com>
3333
3334 PR exp/15109:
3335 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
3336 Handle FILENAME token.
3337
3338 2013-03-21 Tom Tromey <tromey@redhat.com>
3339
3340 * c-exp.y (YYPRINT): Define.
3341 (c_print_token): New function.
3342
3343 2013-03-21 Tom Tromey <tromey@redhat.com>
3344
3345 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
3346
3347 2013-03-21 Yao Qi <yao@codesourcery.com>
3348
3349 * ctf.c: Include "gdb_stat.h".
3350 [USE_WIN32API]: New macro 'mkdir'.
3351 (ctf_start): Use permission bits macros if they are defined.
3352
3353 2013-03-20 Keith Seitz <keiths@redhat.com>
3354
3355 * breakpoint.h (struct breakpoint): Add comment to
3356 extra_string indicating that this member is mallod'd.
3357 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
3358
3359 2013-03-20 Pedro Alves <palves@redhat.com>
3360
3361 PR gdb/15289
3362
3363 * cli/cli-setshow.c (do_set_command)
3364 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
3365 the result of parsing the command argument. Throw error if the
3366 value is greater than UINT_MAX. Print the invalid value with
3367 plongest.
3368 <var_integer, var_zinteger>: Use LONGEST for variable holding the
3369 result of parsing the command argument. Throw error if the value
3370 is greater than INT_MAX, not greater or equal. Also throw error
3371 if the value is less than INT_MIN. Print the invalid value with
3372 plongest.
3373 <var_zuinteger_unlimited>: Throw error if the value is greater
3374 than INT_MAX, not greater or equal.
3375 (do_show_command) <var_integer, var_zinteger,
3376 var_zuinteger_unlimited>: Use %d for printing int, not %u.
3377
3378 2013-03-20 Tom Tromey <tromey@redhat.com>
3379
3380 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
3381 if possible.
3382 * dwarf2read.c (read_func_scope): Remove old FIXME.
3383 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
3384 not LOC_COMPUTED.
3385 * findvar.c (symbol_read_needs_frame, default_read_var_value):
3386 Unconditionally call via computed ops, if possible.
3387 * printcmd.c (address_info): Unconditionally call via computed ops,
3388 if possible.
3389 * stack.c (read_frame_arg): Unconditionally call via computed ops,
3390 if possible.
3391 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
3392 * tracepoint.c (scope_info): Unconditionally call via computed ops,
3393 if possible.
3394
3395 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3396 Tom Tromey <tromey@redhat.com>
3397
3398 PR symtab/8421:
3399 * coffread.c (coff_register_index): New global.
3400 (process_coff_symbol, coff_read_enum_type): Set
3401 SYMBOL_ACLASS_INDEX.
3402 (_initialize_coffread): Initialize new global.
3403 * dwarf2loc.c (locexpr_find_frame_base_location)
3404 (dwarf2_block_frame_base_locexpr_funcs)
3405 (loclist_find_frame_base_location)
3406 (dwarf2_block_frame_base_loclist_funcs): New.
3407 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
3408 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
3409 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
3410 (dwarf2_block_frame_base_loclist_funcs): New.
3411 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
3412 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
3413 globals.
3414 (read_func_scope): Update.
3415 (fixup_go_packaging, mark_common_block_symbol_computed)
3416 (var_decode_location, new_symbol_full, dwarf2_const_value):
3417 Set SYMBOL_ACLASS_INDEX.
3418 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
3419 (_initialize_dwarf2_read): Initialize new globals.
3420 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
3421 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
3422 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
3423 globals.
3424 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
3425 (_initialize_mdebugread): Initialize new globals.
3426 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
3427 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
3428 (stab_register_index, stab_regparm_index): New globals.
3429 (define_symbol, read_enum_type, common_block_end): Set
3430 SYMBOL_ACLASS_INDEX.
3431 (_initialize_stabsread): Initialize new globals.
3432 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
3433 globals.
3434 (MAX_SYMBOL_IMPLS): New define.
3435 (register_symbol_computed_impl, register_symbol_block_impl)
3436 (register_symbol_register_impl)
3437 (initialize_ordinary_address_classes): New functions.
3438 (_initialize_symtab): Call initialize_ordinary_address_classes.
3439 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
3440 (struct symbol_impl): New.
3441 (SYMBOL_ACLASS_BITS): New define.
3442 (struct symbol) <aclass, ops>: Remove fields.
3443 <aclass_index>: New field.
3444 (symbol_impls): Declare.
3445 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
3446 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
3447 (register_symbol_computed_impl, register_symbol_block_impl)
3448 (register_symbol_register_impl): Declare.
3449 (struct symbol_computed_ops): Add location_has_loclist.
3450 (struct symbol_block_ops): New.
3451 (SYMBOL_BLOCK_OPS): New.
3452 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
3453
3454 2013-03-20 Tom Tromey <tromey@redhat.com>
3455
3456 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
3457 (print_partial_symbols, recursively_search_psymtabs): Use
3458 PSYMBOL_CLASS.
3459
3460 2013-03-20 Pierre Muller <muller@sourceware.org>
3461
3462 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
3463 addtion, subtraction, multiplication and division binary operator.
3464
3465 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3466
3467 Code cleanup.
3468 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
3469 * bsd-kvm.c (bsd_kvm_close): Likewise.
3470 * bsd-uthread.c (bsd_uthread_close): Likewise.
3471 * corelow.c (core_close): Likewise.
3472 (core_close_cleanup): Remove parameter quitting from a caller.
3473 * event-top.c (async_disconnect): Likewise.
3474 * exec.c (exec_close_1): Remove parameter quitting.
3475 * go32-nat.c (go32_close): Likewise.
3476 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
3477 parameter quitting from a caller.
3478 * mips-linux-nat.c (super_close): Remove parameter quitting from the
3479 variable.
3480 (mips_linux_close): Remove parameter quitting. Remove parameter
3481 quitting from a caller.
3482 * monitor.c (monitor_close): Remove parameter quitting.
3483 * monitor.h (monitor_close): Likewise.
3484 * record-btrace.c (record_btrace_close): Likewise.
3485 * record-full.c (record_full_close): Likewise.
3486 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
3487 it also from fprintf_unfiltered.
3488 * remote-mips.c (mips_close): Remove parameter quitting.
3489 (mips_detach): Remove parameter quitting from a caller.
3490 * remote-sim.c (gdbsim_close): Remove parameter quitting.
3491 (gdbsim_close): Remove duplicate function comment. Remove parameter
3492 quitting and remove it also from printf_filtered.
3493 * remote.c (remote_close): Remove parameter quitting.
3494 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
3495 * target.c (update_current_target): Remove parameter int from to_close
3496 de_fault.
3497 (push_target, unpush_target, pop_target): Remove parameter quitting from
3498 a caller.
3499 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
3500 Remove parameter quitting from a caller.
3501 (target_preopen): Remove parameter quitting from a caller.
3502 (target_close): Remove parameter quitting. Remove parameter quitting
3503 from a caller two times. Remove parameter quitting also from
3504 fprintf_unfiltered.
3505 * target.h (struct target_ops): Remove parameter quitting and as int
3506 from fields to_xclose and to_close.
3507 (extern struct target_ops current_target):
3508 (target_close, pop_all_targets): Remove parameter quitting. Update the
3509 comment.
3510 (pop_all_targets_above): Remove parameter quitting.
3511 * top.c (quit_target): Remove parameter quitting from a caller.
3512 * tracepoint.c (tfile_close): Remove parameter quitting.
3513 * windows-nat.c (windows_close): Remove parameter quitting.
3514
3515 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
3516
3517 * windows-nat.c (handle_output_debug_string): Replace call
3518 to string_to_core_addr with call to strtoull.
3519
3520 2013-03-20 Yao Qi <yao@codesourcery.com>
3521
3522 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
3523 and write it to CTF metadata.
3524
3525 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
3526
3527 * windows-nat.c (handle_output_debug_string): Change type of n to
3528 SIZE_T to avoid crash on 64 bit systems.
3529
3530 2013-03-17 Eli Zaretskii <eliz@gnu.org>
3531
3532 * python/python-internal.h (HAVE_SNPRINTF)
3533 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
3534 about redefinition of snprintf by pyerrors.h.
3535
3536 2013-03-15 Steve Ellcey <sellcey@mips.com>
3537
3538 * remote-sim.c (sim_command_completer): Make char arguments const.
3539
3540 2013-03-15 Tom Tromey <tromey@redhat.com>
3541
3542 PR c++/15116:
3543 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
3544
3545 2013-03-14 Tom Tromey <tromey@redhat.com>
3546
3547 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
3548 New fields.
3549 (get_file_crc): Move from symfile.c.
3550 (gdb_bfd_crc): New function.
3551 * gdb_bfd.h (gdb_bfd_crc): Declare.
3552 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
3553 * symfile.c (get_file_crc): Move to gdb_bfd.c.
3554 (separate_debug_file_exists): Use gdb_bfd_crc.
3555
3556 2013-03-14 Tom Tromey <tromey@redhat.com>
3557
3558 * symfile.c (get_debug_link_info): Remove.
3559 (find_separate_debug_file_by_debuglink): Use
3560 bfd_get_debug_link_info.
3561
3562 2013-03-14 Tom Tromey <tromey@redhat.com>
3563
3564 * symtab.c (error_in_psymtab_expansion): New function.
3565 (lookup_symbol_aux_quick)
3566 (basic_lookup_transparent_type_quick): Remove "last resort"
3567 code. Use error_in_psymtab_expansion.
3568
3569 2013-03-14 Doug Evans <dje@google.com>
3570 Jan Kratochvil <jan.kratochvil@redhat.com>
3571
3572 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
3573 any successful compare_filenames_for_search or FILENAME_CMP.
3574 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
3575 * symtab.c (iterate_over_some_symtabs): Likewise.
3576
3577 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3578
3579 * source.c (print_source_lines_base): Make a local copy of
3580 symtab_to_fullname.
3581
3582 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
3583 Jan Kratochvil <jan.kratochvil@redhat.com>
3584
3585 * source.c (print_source_lines_base): Suppress "file" for TUI.
3586
3587 2013-03-14 Keith Seitz <keiths@redhat.com>
3588 Alan Matsuoka <alanm@redhat.com>
3589
3590 PR c++/15203
3591 PR c++/15210
3592 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
3593 TYPE_CODE_METHOD.
3594 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
3595 symbols.
3596
3597 2013-03-14 Yao Qi <yao@codesourcery.com>
3598
3599 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
3600 status to tfile if trace is stopped by command 'tstop'.
3601
3602 2013-03-14 Yao Qi <yao@codesourcery.com>
3603
3604 * tracepoint.c (tfile_write_status): Write trace notes and user
3605 name into tfile if they are not NULL.
3606
3607 2013-03-14 Hui Zhu <hui@codesourcery.com>
3608 Yao Qi <yao@codesourcery.com>
3609
3610 * Makefile.in (REMOTE_OBS): Add ctf.o.
3611 (SFILES): Add ctf.c.
3612 (HFILES_NO_SRCDIR): Add ctf.h.
3613 * ctf.c, ctf.h: New files.
3614 * tracepoint.c: Include 'ctf.h'.
3615 (collect_pseudocommand): Remove static.
3616 (trace_save_command): Parse option "-ctf".
3617 Produce different trace file writers per option.
3618 Adjust output message.
3619 (trace_save_tfile, trace_save_ctf): New.
3620 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
3621 * mi/mi-main.c: Include 'ctf.h'.
3622 (mi_cmd_trace_save): Handle option '-ctf'. Call either
3623 trace_save_tfile or trace_save_ctf.
3624 * NEWS: Mention these changes.
3625
3626 2013-03-14 Yao Qi <yao@codesourcery.com>
3627
3628 * tracepoint.c (trace_file_writer_xfree): New.
3629 (struct tfile_writer_data): New.
3630 (tfile_dtor, tfile_can_target_save, tfile_start): New.
3631 (tfile_write_header, tfile_write_regblock_type): New.
3632 (tfile_write_status, tfile_write_uploaded_tsv): New.
3633 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
3634 (tfile_write_raw_data, (tfile_end): New.
3635 (tfile_write_ops): New global variable.
3636 (TRACE_WRITE_R_BLOCK): New macro.
3637 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
3638 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
3639 (TRACE_WRITE_V_BLOCK): New macro.
3640 (trace_save): Add extra one parameter WRITER. Make it static.
3641 Use WRITER to writer trace.
3642 (tfile_trace_file_writer_new): New.
3643 (trace_save_command): Caller update.
3644 (trace_save_tfile): Write trace data in TFILE format.
3645 * tracepoint.h (struct trace_frame_write_ops): New.
3646 (struct trace_file_write_ops): New.
3647 (struct trace_file_writer): New.
3648 (trace_save): Remove its declaration.
3649 (trace_save_tfile): Declare it.
3650 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
3651 instead of trace_save.
3652
3653 2013-03-13 Pedro Alves <palves@redhat.com>
3654
3655 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
3656
3657 2013-03-13 Pedro Alves <palves@redhat.com>
3658
3659 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
3660 commented out code.
3661 * demangle.c (current_demangling_style_string): Make it const.
3662 (set_demangling_command): Assert the demangling style is known.
3663 Remove all handling of unknown styles. Set
3664 'current_demangling_style_string' to an element of the
3665 demangling_style_names array.
3666 (set_demangling_style): Delete.
3667 (_initialize_demangler): Set current_demangling_style_string to the
3668 element of the demangling_style_names array that corresponds to
3669 the default demangling style. Remove FIXME note. Don't call
3670 set_demangling_style.
3671 * gdb-demangle.h (set_demangling_style): Remove declaration.
3672
3673 2013-03-13 Pedro Alves <palves@redhat.com>
3674
3675 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
3676 fields const.
3677 (ada_make_symbol_completion_list): Make "text0" parameter const.
3678 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
3679 * breakpoint.c (condition_completer): Make "text" and "word"
3680 parameters const. Adjust.
3681 (check_tracepoint_command): Adjust to validate_actionline
3682 prototype change.
3683 (catch_syscall_completer): Make "text" and "word" parameters
3684 const.
3685 * cli/cli-cmds.c (show_user): Make "comname" local const.
3686 (valid_command_p): Make "command" parameter const.
3687 (alias_command): Make "alias_prefix" and "command_prefix" locals
3688 const.
3689 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
3690 (add_alias_cmd): Make "name" and "oldname" parameters const.
3691 Adjust. No longer make copy of OLDNAME.
3692 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
3693 (add_setshow_cmd_full, add_setshow_enum_cmd)
3694 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
3695 (add_setshow_filename_cmd, add_setshow_string_cmd)
3696 (add_setshow_string_noescape_cmd)
3697 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3698 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3699 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
3700 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
3701 Make "name" parameter const.
3702 (help_cmd): Rename "command" parameter to "arg". New const local
3703 "command".
3704 (find_cmd): Make "command" parameter const.
3705 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
3706 deprecated_cmd_warning prototype change.
3707 (undef_cmd_error): Make "cmdtype" parameter const.
3708 (lookup_cmd): Make "line" parameter const.
3709 (deprecated_cmd_warning): Change type of "text" parameter to
3710 pointer to const char, from pointer to pointer to char. Adjust.
3711 (lookup_cmd_composition): Make "text" parameter const.
3712 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
3713 parameters const.
3714 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
3715 const.
3716 * cli/cli-script.c (validate_comname): Make "tem" local const.
3717 (define_command): New const local "tem_c". Use it in calls to
3718 lookup_cmd.
3719 (document_command): Make "tem" and "comfull" locals const.
3720 (show_user_1): Make "prefix" and "name" parameters const.
3721 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
3722 const.
3723 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
3724 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
3725 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
3726 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
3727 (complete_on_enum, add_setshow_enum_cmd)
3728 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
3729 (add_setshow_filename_cmd, add_setshow_string_cmd)
3730 (add_setshow_string_noescape_cmd)
3731 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3732 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3733 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
3734 Change prototypes, constifying strings.
3735 * completer.c (noop_completer, filename_completer): Make "text"
3736 and "prefix" parameters const.
3737 (location_completer, expression_completer)
3738 (complete_line_internal): Make "text" and "prefix" parameters
3739 const and adjust.
3740 (command_completer, signal_completer): Make "text" and "prefix"
3741 parameters const.
3742 * completer.h (noop_completer, filename_completer)
3743 (expression_completer, location_completer, command_completer)
3744 (signal_completer): Change prototypes.
3745 * corefile.c (complete_set_gnutarget): Make "text" and "word"
3746 parameters const.
3747 * cp-abi.c (cp_abi_completer): Likewise.
3748 * expression.h (parse_expression_for_completion): Change
3749 prototype.
3750 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
3751 parameters const.
3752 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
3753 * infrun.c (handle_completer): Make "text" and "word" parameters
3754 const.
3755 * interps.c (interpreter_completer): Make "text" and "word"
3756 parameters const.
3757 * language.h (struct language_defn)
3758 <la_make_symbol_completion_list>: Make "text" and "word"
3759 parameters const.
3760 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
3761 (parse_exp_in_context): Rename to ...
3762 (parse_exp_in_context_1): ... this.
3763 (parse_exp_in_context): Reimplement, with const hack from
3764 parse_exp_1.
3765 (parse_expression_for_completion): Make "string" parameter const.
3766 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
3767 to pointer to const char. Adjust.
3768 (print_command_1): Make "exp" parameter const.
3769 (output_command): Rename to ...
3770 (output_command_const): ... this. Make "exp" parameter const.
3771 (output_command): Reimplement.
3772 (x_command): Adjust.
3773 (display_command): Rename "exp" parameter to "arg". New "exp"
3774 local, const version of "arg".
3775 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
3776 "cmd_name" local const.
3777 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
3778 call.
3779 (cmdpy_completer): Make "text" and "word" parameters const.
3780 (gdbpy_parse_command_name): Make "prefix_text2" local const.
3781 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
3782 const.
3783 * remote.c (_initialize_remote): Make "cmd_name" local const.
3784 * symtab.c (language_search_unquoted_string): Make "text" and "p"
3785 parameters const. Adjust.
3786 (completion_list_add_fields): Make "sym_text", "text" and "word"
3787 parameters const.
3788 (struct add_name_data) <sym_text, text, word>: Make fields const.
3789 (default_make_symbol_completion_list_break_on): Make "text" and
3790 "word" parameters const. Adjust locals.
3791 (default_make_symbol_completion_list)
3792 (make_symbol_completion_list, make_symbol_completion_type)
3793 (make_symbol_completion_list_fn): Make "text" and "word"
3794 parameters const.
3795 (make_file_symbol_completion_list): Make "text", "word" and
3796 "srcfile" parameters const. Adjust locals.
3797 (add_filename_to_list): Make "text" and "word" parameters const.
3798 (struct add_partial_filename_data) <text, word>: Make fields
3799 const.
3800 (make_source_files_completion_list): Make "text" and "word"
3801 parameters const.
3802 * symtab.h (default_make_symbol_completion_list_break_on)
3803 (default_make_symbol_completion_list, make_symbol_completion_list)
3804 (make_symbol_completion_type enum type_code)
3805 (make_symbol_completion_list_fn make_file_symbol_completion_list)
3806 (make_source_files_completion_list): Change prototype.
3807 * top.c (execute_command): Adjust to pass pointer to pointer to
3808 const char to lookup_cmd, and to deprecated_cmd_warning prototype
3809 change.
3810 (set_verbose): Make "cmdname" local const.
3811 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
3812 and adjust.
3813 (validate_actionline): Make "line" parameter a pointer to const
3814 char, and adjust.
3815 (encode_actions_1): Make "action_exp" local const, and adjust.
3816 (encode_actions): Adjust.
3817 (replace_comma): Delete.
3818 (trace_dump_actions): Make "action_exp" and "next_comma" locals
3819 const, and adjust. Don't frob the action string while splitting
3820 it at commas. Instead, make a copy of each split substring in
3821 turn.
3822 (trace_dump_command): Adjust to validate_actionline prototype
3823 change.
3824 * tracepoint.h (decode_agent_options, decode_agent_options)
3825 (encode_actions, validate_actionline): Change prototypes.
3826 * valprint.h (output_command): Delete declaration.
3827 (output_command_const): Declare.
3828 * value.c (function_destroyer): Cast const away in xfree call.
3829
3830 2013-03-13 Pedro Alves <palves@redhat.com>
3831
3832 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
3833 rather than casting 'const char * const *' to 'const char **'.
3834 * ada-lex.l (processInt): Make "trailer" local const. Remove
3835 'const char **' cast.
3836 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
3837 locals, and use those as strtol output pointer, instead than doing
3838 invalid casts to from 'const char **' to 'char **'.
3839 (_initialize_demangle): Remove cast.
3840 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
3841 locals, and use those as strtol output pointer, instead than doing
3842 invalid casts to from 'const char **' to 'char **'.
3843 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
3844 casts.
3845 * stap-probe.c (stap_parse_register_operand)
3846 (stap_parse_single_operand): Likewise.
3847
3848 2013-03-13 Yao Qi <yao@codesourcery.com>
3849
3850 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
3851 the last matched 'V' blcok in trace frame.
3852
3853 2013-03-12 Joel Brobecker <brobecker@adacore.com>
3854
3855 * NEWS: Create a new section for the next release branch.
3856 Rename the section of the current branch, now that it has
3857 been cut.
3858
3859 2013-03-12 Joel Brobecker <brobecker@adacore.com>
3860
3861 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
3862 * version.in: Bump version to 7.6.50.20130312-cvs.
3863
3864 2013-03-12 Keith Seitz <keiths@redhat.com>
3865
3866 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
3867 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
3868 Remove temporary copy of input string.
3869 (mi_execute_command_wrapper): Make "cmd" const.
3870 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
3871 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
3872 Use const strings.
3873 (mi_parse): Make "cmd" const.
3874 Use const strings.
3875 * mi/mi-parse.h (mi_parse): Make "cmd" const.
3876
3877 2013-03-12 Keith Seitz <keiths@redhat.com>
3878
3879 * ada-lang.c (ada_read_renaming_var_value): Pass const
3880 pointer to expression string to parse_exp_1.
3881 (create_excep_cond_exprs): Likewise.
3882 * ax-gdb.c (agent_eval_command_one): Likewise.
3883 (maint_agent_printf_command): Likewise.
3884 Constify much of the string handling/parsing.
3885 * breakpoint.c (set_breakpoint_condition): Pass const
3886 pointer to expression string to parse_exp_1.
3887 (update_watchpoint): Likewise.
3888 (parse_cmd_to_aexpr): Constify string handling.
3889 Pass const pointer to parse_exp_1.
3890 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
3891 (find_condition_and_thread): Likewise.
3892 Make TOK const.
3893 (watch_command_1): Make "arg" const.
3894 Constify string handling.
3895 Copy the expression string instead of changing the input
3896 string.
3897 (update_breakpoint_location): Pass const pointer to
3898 parse_exp_1.
3899 * eval.c (parse_and_eval_address): Make "exp" const.
3900 (parse_to_comma_and_eval): Make "expp" const.
3901 (parse_and_eval): Make "exp" const.
3902 * expression.h (parse_expression): Make argument const.
3903 (parse_exp_1): Make first argument const.
3904 * findcmd.c (parse_find_args): Treat "args" as const.
3905 * linespec.c (parse_linespec): Pass const pointer to
3906 linespec_expression_to_pc.
3907 (linespec_expression_to_pc): Make "exp_ptr" const.
3908 * parse.c (parse_exp_1): Make "stringptr" const.
3909 Make a copy of the expression to pass to parse_exp_in_context until
3910 this whole interface can be constified.
3911 (parse_expression): Make "string" const.
3912 * printcmd.c (ui_printf): Treat "arg" as const.
3913 Handle const strings.
3914 * tracepoint.c (validate_actionline): Pass const pointer to
3915 all calls to parse_exp_1.
3916 (encode_actions_1): Likewise.
3917 * value.h (parse_to_comma_and_eval): Make argument const.
3918 (parse_and_eval_address): Likewise.
3919 (parse_and_eval): Likewise.
3920 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
3921 (varobj_set_value): Likewise.
3922 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
3923 constify string handling.
3924 Pass const pointers to parse_and_eval_address and
3925 parse_to_comman_and_eval.
3926 * cli/cli-utils.c (skip_to_space): Rename to ...
3927 (skip_to_space_const): ... this. Handle const strings.
3928 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
3929 skip_to_space_const.
3930 (skip_to_space_const): Declare.
3931 * common/format.c (parse_format_string): Make "arg" const.
3932 Handle const strings.
3933 * common/format.h (parse_format_string): Make "arg" const.
3934 * gdbserver/ax.c (ax_printf): Make "format" const.
3935 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
3936 of the expression string.
3937
3938 2013-03-12 Hui Zhu <hui@codesourcery.com>
3939
3940 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
3941
3942 2013-03-12 Yao Qi <yao@codesourcery.com>
3943 Hui Zhu <hui@codesourcery.com>
3944
3945 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
3946 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
3947 DW_OP_deref_size.
3948
3949 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
3950
3951 * ada-lex.l (rules): Only recognize 'thread' as a
3952 delimiter when followed by numerals, as for c-exp.y.
3953 Use new rewind_to_char function to rewind the input for
3954 expression-delimiting tokens.
3955 (rewind_to_char): New function.
3956
3957 2013-03-11 Pedro Alves <palves@redhat.com>
3958 Jan Kratochvil <jan.kratochvil@redhat.com>
3959
3960 * configure: Regenerate.
3961 * configure.ac (check dynamic export flag): Link python test with
3962 $PYTHON_LIBS.
3963
3964 2013-03-11 Doug Evans <dje@google.com>
3965 Keith Seitz <keiths@redhat.com>
3966
3967 * linespec.c (find_linespec_symbols): Call find_function_symbols
3968 first, and then call lookup_prefix_sym/find_method.
3969
3970 2013-03-11 Pedro Alves <palves@redhat.com>
3971
3972 * charset.c (convert_between_encodings): Don't cast between
3973 different pointer to pointer types. Instead, make the 'inp' local
3974 be of the type iconv expects.
3975 (wchar_iterate): Don't cast between different pointer to pointer
3976 types. Instead, use new pointer local of the type iconv expects.
3977 * target.c (target_read_stralloc, target_fileio_read_stralloc):
3978 Add new local of type char pointer, and use it to get a
3979 char/string view of the byte buffer, instead of casting between
3980 pointer to pointer types.
3981
3982 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
3983
3984 * remote.c (remote_set_trace_buffer_size): Move != operator
3985 to the start of next line to fix an ARI warning.
3986
3987 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3988
3989 * NEWS: Add record changes.
3990
3991 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3992
3993 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
3994 the instruction history disassembly.
3995 * disasm.c (dump_insns): Omit the pc prefix, if requested.
3996 * disasm.h (DISASSEMBLY_OMIT_PC): New.
3997
3998 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3999
4000 * Makefile.in (SFILES): Add record-btrace.c
4001 (COMMON_OBS): Add record-btrace.o
4002 * record-btrace.c: New.
4003 * objfiles.c: Include btrace.h.
4004 (free_objfile): call btrace_free_objfile.
4005
4006 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4007
4008 * target.c (target_call_history, target_call_history_from,
4009 target_call_history_range): New.
4010 * target.h (target_ops) <to_call_history, to_call_history_from,
4011 to_call_history_range>: New fields.
4012 (target_call_history, target_call_history_from,
4013 target_call_history_range): New declaration.
4014 * record.c (get_call_history_modifiers, cmd_record_call_history,
4015 record_call_history_size): New.
4016 (_initialize_record): Add the "record function-call-history" command.
4017 Add "set/show record function-call-history-size" commands.
4018 * record.h (record_print_flag): New.
4019
4020 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4021
4022 * target.h (target_ops) <to_insn_history, to_insn_history_from,
4023 to_insn_history_range>: New fields.
4024 (target_insn_history): New.
4025 (target_insn_history_from): New.
4026 (target_insn_history_range): New.
4027 * target.c (target_insn_history): New.
4028 (target_insn_history_from): New.
4029 (target_insn_history_range): New.
4030 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
4031 (record_insn_history_size): New.
4032 (get_insn_number): New.
4033 (get_context_size): New.
4034 (no_chunk): New.
4035 (get_insn_history_modifiers): New.
4036 (cmd_record_insn_history): New.
4037 (_initialize_record): Add "set/show record instruction-history-size"
4038 command. Add "record instruction-history" command.
4039
4040 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4041
4042 * record.h (record_disconnect): New.
4043 (record_detach): New.
4044 (record_mourn_inferior): New.
4045 (record_kill): New.
4046 * record-full.c (record_disconnect, record_detach,
4047 record_mourn_inferior, record_kill): Move to...
4048 * record.c: ...here.
4049 (DEBUG): New.
4050 (record_stop): New.
4051 (record_unpush): New.
4052 (cmd_record_stop): Call record_stop. Replace unpush_target
4053 call with record_unpush call.
4054 (record_disconnect, record_detach): Assert that the target
4055 is of record stratum. Call record_unpush, record_stop, and
4056 DEBUG.
4057 (record_mourn_inferior, record_kill): Assert that the target
4058 is of record stratum. Call record_unpush and DEBUG.
4059
4060 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4061
4062 * record-full.h, record-full.c (record_memory_query): Rename
4063 to ...
4064 (record_full_memory_query): ...this. Update all users.
4065 (record_arch_list_add_reg): Rename to ...
4066 (record_full_arch_list_add_reg): ...this. Update all users.
4067 (record_arch_list_add_mem): Rename to ...
4068 (record_full_arch_list_add_mem): ...this. Update all users.
4069 (record_arch_list_add_end): Rename to ...
4070 (record_full_arch_list_add_end): ...this. Update all users.
4071 (record_gdb_operation_disable_set): Rename to ...
4072 (record_full_gdb_operation_disable_set): ...this.
4073 Update all users.
4074
4075 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4076
4077 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
4078 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
4079 (RECORD_IS_REPLAY): Renamed to ...
4080 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
4081 (RECORD_FILE_MAGIC): Renamed to ...
4082 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
4083 (record_mem_entry): Renamed to ...
4084 (record_full_mem_entry): ... this. Updated all users.
4085 (record_reg_entry): Renamed to ...
4086 (record_full_reg_entry): ... this. Updated all users.
4087 (record_end_entry): Renamed to ...
4088 (record_full_end_entry): ... this. Updated all users.
4089 (record_type) <record_end, record_reg, record_mem>: Renamed
4090 to ...
4091 (record_full_type) <record_full_end, record_full_reg,
4092 record_full_mem>: ... this. Updated all users.
4093 (record_entry): Renamed to ...
4094 (record_full_entry): ... this. Updated all users.
4095 (record_core_buf_entry): Renamed to ...
4096 (record_full_core_buf_entry): ... this. Updated all users.
4097 (record_core_regbuf): Renamed to ...
4098 (record_full_core_regbuf): ... this. Updated all users.
4099 (record_core_start): Renamed to ...
4100 (record_full_core_start): ... this. Updated all users.
4101 (record_core_end): Renamed to ...
4102 (record_full_core_end): ... this. Updated all users.
4103 (record_core_buf_list): Renamed to ...
4104 (record_full_core_buf_list): ... this. Updated all users.
4105 (record_first): Renamed to ...
4106 (record_full_first): ... this. Updated all users.
4107 (record_list): Renamed to ...
4108 (record_full_list): ... this. Updated all users.
4109 (record_arch_list_head): Renamed to ...
4110 (record_full_arch_list_head): ... this. Updated all users.
4111 (record_arch_list_tail): Renamed to ...
4112 (record_full_arch_list_tail): ... this. Updated all users.
4113 (record_stop_at_limit): Renamed to ...
4114 (record_full_stop_at_limit): ... this. Updated all users.
4115 (record_insn_max_num): Renamed to ...
4116 (record_full_insn_max_num): ... this. Updated all users.
4117 (record_insn_num): Renamed to ...
4118 (record_full_insn_num): ... this. Updated all users.
4119 (record_insn_count): Renamed to ...
4120 (record_full_insn_count): ... this. Updated all users.
4121 (record_ops): Renamed to ...
4122 (record_full_ops): ... this. Updated all users.
4123 (record_core_ops): Renamed to ...
4124 (record_full_core_ops): ... this. Updated all users.
4125 (set_record_cmdlist): Renamed to ...
4126 (set_record_full_cmdlist): ... this. Updated all users.
4127 (show_record_cmdlist): Renamed to ...
4128 (show_record_full_cmdlist): ... this. Updated all users.
4129 (record_cmdlist): Renamed to ...
4130 (record_full_cmdlist): ... this. Updated all users.
4131 (record_beneath_to_resume_ops): Renamed to ...
4132 (record_full_beneath_to_resume_ops): ... this. Updated all users.
4133 (record_beneath_to_resume): Renamed to ...
4134 (record_full_beneath_to_resume): ... this. Updated all users.
4135 (record_beneath_to_wait_ops): Renamed to ...
4136 (record_full_beneath_to_wait_ops): ... this. Updated all users.
4137 (record_beneath_to_wait): Renamed to ...
4138 (record_full_beneath_to_wait): ... this. Updated all users.
4139 (record_beneath_to_store_registers_ops): Renamed to ...
4140 (record_full_beneath_to_store_registers_ops): ... this.
4141 Updated all users.
4142 (record_beneath_to_store_registers): Renamed to ...
4143 (record_full_beneath_to_store_registers): ... this.
4144 Updated all users.
4145 (record_beneath_to_xfer_partial_ops): Renamed to ...
4146 (record_full_beneath_to_xfer_partial_ops): ... this.
4147 Updated all users.
4148 (record_beneath_to_xfer_partial): Renamed to ...
4149 (record_full_beneath_to_xfer_partial): ... this.
4150 Updated all users.
4151 (record_beneath_to_insert_breakpoint): Renamed to ...
4152 (record_full_beneath_to_insert_breakpoint): ... this.
4153 Updated all users.
4154 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
4155 (record_full_beneath_to_stopped_by_watchpoint): ... this.
4156 Updated all users.
4157 (record_beneath_to_stopped_data_address): Renamed to ...
4158 (record_full_beneath_to_stopped_data_address): ... this.
4159 Updated all users.
4160 (record_beneath_to_async): Renamed to ...
4161 (record_full_beneath_to_async): ... this. Updated all users.
4162 (record_goto_insn): Renamed to ...
4163 (record_full_goto_insn): ... this. Updated all users.
4164 (record_save): Renamed to ...
4165 (record_full_save): ... this. Updated all users.
4166 (record_reg_alloc): Renamed to ...
4167 (record_full_reg_alloc): ... this. Updated all users.
4168 (record_reg_release): Renamed to ...
4169 (record_full_reg_release): ... this. Updated all users.
4170 (record_mem_alloc): Renamed to ...
4171 (record_full_mem_alloc): ... this. Updated all users.
4172 (record_mem_release): Renamed to ...
4173 (record_full_mem_release): ... this. Updated all users.
4174 (record_end_alloc): Renamed to ...
4175 (record_full_end_alloc): ... this. Updated all users.
4176 (record_end_release): Renamed to ...
4177 (record_full_end_release): ... this. Updated all users.
4178 (record_entry_release): Renamed to ...
4179 (record_full_entry_release): ... this. Updated all users.
4180 (record_list_release): Renamed to ...
4181 (record_full_list_release): ... this. Updated all users.
4182 (record_list_release_following): Renamed to ...
4183 (record_full_list_release_following): ... this.
4184 Updated all users.
4185 (record_list_release_first): Renamed to ...
4186 (record_full_list_release_first): ... this. Updated all users.
4187 (record_arch_list_add): Renamed to ...
4188 (record_full_arch_list_add): ... this. Updated all users.
4189 (record_get_loc): Renamed to ...
4190 (record_full_get_loc): ... this. Updated all users.
4191 (record_check_insn_num): Renamed to ...
4192 (record_full_check_insn_num): ... this. Updated all users.
4193 (record_arch_list_cleanups): Renamed to ...
4194 (record_full_arch_list_cleanups): ... this. Updated all users.
4195 (record_message): Renamed to ...
4196 (record_full_message): ... this. Updated all users.
4197 (record_message_wrapper): Renamed to ...
4198 (record_full_message_wrapper): ... this. Updated all users.
4199 (record_message_wrapper_safe): Renamed to ...
4200 (record_full_message_wrapper_safe): ... this. Updated all users.
4201 (record_gdb_operation_disable): Renamed to ...
4202 (record_full_gdb_operation_disable): ... this. Updated all users.
4203 (record_hw_watchpoint): Renamed to ...
4204 (record_full_hw_watchpoint): ... this. Updated all users.
4205 (record_exec_insn): Renamed to ...
4206 (record_full_exec_insn): ... this. Updated all users.
4207 (record_restore): Renamed to ...
4208 (record_full_restore): ... this. Updated all users.
4209 (record_async_inferior_event_token): Renamed to ...
4210 (record_full_async_inferior_event_token): ... this.
4211 Updated all users.
4212 (record_async_inferior_event_handler): Renamed to ...
4213 (record_full_async_inferior_event_handler): ... this.
4214 Updated all users.
4215 (record_core_open_1): Renamed to ...
4216 (record_full_core_open_1): ... this. Updated all users.
4217 (record_open_1): Renamed to ...
4218 (record_full_open_1): ... this. Updated all users.
4219 (record_open): Renamed to ...
4220 (record_full_open): ... this. Updated all users.
4221 (record_close): Renamed to ...
4222 (record_full_close): ... this. Updated all users.
4223 (record_resume_step): Renamed to ...
4224 (record_full_resume_step): ... this. Updated all users.
4225 (record_resumed): Renamed to ...
4226 (record_full_resumed): ... this. Updated all users.
4227 (record_execution_dir): Renamed to ...
4228 (record_full_execution_dir): ... this. Updated all users.
4229 (record_resume): Renamed to ...
4230 (record_full_resume): ... this. Updated all users.
4231 (record_get_sig): Renamed to ...
4232 (record_full_get_sig): ... this. Updated all users.
4233 (record_sig_handler): Renamed to ...
4234 (record_full_sig_handler): ... this. Updated all users.
4235 (record_wait_cleanups): Renamed to ...
4236 (record_full_wait_cleanups): ... this. Updated all users.
4237 (record_wait_1): Renamed to ...
4238 (record_full_wait_1): ... this. Updated all users.
4239 (record_wait): Renamed to ...
4240 (record_full_wait): ... this. Updated all users.
4241 (record_stopped_by_watchpoint): Renamed to ...
4242 (record_full_stopped_by_watchpoint): ... this. Updated all users.
4243 (record_disconnect): Renamed to ...
4244 (record_full_disconnect): ... this. Updated all users.
4245 (record_detach): Renamed to ...
4246 (record_full_detach): ... this. Updated all users.
4247 (record_mourn_inferior): Renamed to ...
4248 (record_full_mourn_inferior): ... this. Updated all users.
4249 (record_kill): Renamed to ...
4250 (record_full_kill): ... this. Updated all users.
4251 (record_stopped_data_address): Renamed to ...
4252 (record_full_stopped_data_address): ... this. Updated all users.
4253 (record_registers_change): Renamed to ...
4254 (record_full_registers_change): ... this. Updated all users.
4255 (record_store_registers): Renamed to ...
4256 (record_full_store_registers): ... this. Updated all users.
4257 (record_xfer_partial): Renamed to ...
4258 (record_full_xfer_partial): ... this. Updated all users.
4259 (record_breakpoint): Renamed to ...
4260 (record_full_breakpoint): ... this. Updated all users.
4261 (record_breakpoint_p): Renamed to ...
4262 (record_full_breakpoint_p): ... this. Updated all users.
4263 (record_breakpoints): Renamed to ...
4264 (record_full_breakpoints): ... this. Updated all users.
4265 (record_sync_record_breakpoints): Renamed to ...
4266 (record_full_sync_record_breakpoints): ... this.
4267 Updated all users.
4268 (record_init_record_breakpoints): Renamed to ...
4269 (record_full_init_record_breakpoints): ... this.
4270 Updated all users.
4271 (record_insert_breakpoint): Renamed to ...
4272 (record_full_insert_breakpoint): ... this. Updated all users.
4273 (record_remove_breakpoint): Renamed to ...
4274 (record_full_remove_breakpoint): ... this. Updated all users.
4275 (record_can_execute_reverse): Renamed to ...
4276 (record_full_can_execute_reverse): ... this. Updated all users.
4277 (record_get_bookmark): Renamed to ...
4278 (record_full_get_bookmark): ... this. Updated all users.
4279 (record_goto_bookmark): Renamed to ...
4280 (record_full_goto_bookmark): ... this. Updated all users.
4281 (record_async): Renamed to ...
4282 (record_full_async): ... this. Updated all users.
4283 (record_can_async_p): Renamed to ...
4284 (record_full_can_async_p): ... this. Updated all users.
4285 (record_is_async_p): Renamed to ...
4286 (record_full_is_async_p): ... this. Updated all users.
4287 (record_execution_direction): Renamed to ...
4288 (record_full_execution_direction): ... this. Updated all users.
4289 (record_info): Renamed to ...
4290 (record_full_info): ... this. Updated all users.
4291 (record_delete): Renamed to ...
4292 (record_full_delete): ... this. Updated all users.
4293 (record_is_replaying): Renamed to ...
4294 (record_full_is_replaying): ... this. Updated all users.
4295 (record_goto_entry): Renamed to ...
4296 (record_full_goto_entry): ... this. Updated all users.
4297 (record_goto_begin): Renamed to ...
4298 (record_full_goto_begin): ... this. Updated all users.
4299 (record_goto_end): Renamed to ...
4300 (record_full_goto_end): ... this. Updated all users.
4301 (record_goto): Renamed to ...
4302 (record_full_goto): ... this. Updated all users.
4303 (init_record_ops): Renamed to ...
4304 (init_record_full_ops): ... this. Updated all users.
4305 (record_core_resume): Renamed to ...
4306 (record_full_core_resume): ... this. Updated all users.
4307 (record_core_kill): Renamed to ...
4308 (record_full_core_kill): ... this. Updated all users.
4309 (record_core_fetch_registers): Renamed to ...
4310 (record_full_core_fetch_registers): ... this. Updated all users.
4311 (record_core_prepare_to_store): Renamed to ...
4312 (record_full_core_prepare_to_store): ... this. Updated all users.
4313 (record_core_store_registers): Renamed to ...
4314 (record_full_core_store_registers): ... this. Updated all users.
4315 (record_core_xfer_partial): Renamed to ...
4316 (record_full_core_xfer_partial): ... this. Updated all users.
4317 (record_core_insert_breakpoint): Renamed to ...
4318 (record_full_core_insert_breakpoint): ... this. Updated all users.
4319 (record_core_remove_breakpoint): Renamed to ...
4320 (record_full_core_remove_breakpoint): ... this. Updated all users.
4321 (record_core_has_execution): Renamed to ...
4322 (record_full_core_has_execution): ... this. Updated all users.
4323 (init_record_core_ops): Renamed to ...
4324 (init_record_full_core_ops): ... this. Updated all users.
4325 (cmd_record_restore): Renamed to ...
4326 (cmd_record_full_restore): ... this. Updated all users.
4327 (record_save_cleanups): Renamed to ...
4328 (record_full_save_cleanups): ... this. Updated all users.
4329 (cmd_record_start): Renamed to ...
4330 (cmd_record_full_start): ... this. Updated all users.
4331 (set_record_insn_max_num): Renamed to ...
4332 (set_record_full_insn_max_num): ... this. Updated all users.
4333 (set_record_command): Renamed to ...
4334 (set_record_full_command): ... this. Updated all users.
4335 (show_record_command): Renamed to ...
4336 (show_record_full_command): ... this. Updated all users.
4337 (_initialize_record): Renamed to ...
4338 (_initialize_record_full): ... this. Updated all users.
4339
4340 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4341
4342 * record.h: Split into this and ...
4343 * record-full.h: ... this.
4344 * record.c: Split into this and ...
4345 * record-full.c: ... this.
4346 * target.h (target_ops): Add new fields to_info_record,
4347 to_save_record, to_delete_record, to_record_is_replaying,
4348 to_goto_record_begin, to_goto_record_end, to_goto_record.
4349 (target_info_record): New.
4350 (target_save_record): New.
4351 (target_supports_delete_record): New.
4352 (target_delete_record): New.
4353 (target_record_is_replaying): New.
4354 (target_goto_record_begin): New.
4355 (target_goto_record_end): New.
4356 (target_goto_record): New.
4357 * target.c (target_info_record): New.
4358 (target_save_record): New.
4359 (target_supports_delete_record): New.
4360 (target_delete_record): New.
4361 (target_record_is_replaying): New.
4362 (target_goto_record_begin): New.
4363 (target_goto_record_end): New.
4364 (target_goto_record): New.
4365 * record.h: Declare struct cmd_list_element.
4366 (record_cmdlist): New declaration.
4367 (set_record_cmdlist): New declaration.
4368 (show_record_cmdlist): New declaration.
4369 (info_record_cmdlist): New declaration.
4370 (cmd_record_goto): New declaration.
4371 * record.c: Remove unnecessary includes.
4372 Include inferior.h.
4373 (cmd_record_goto): Remove declaration.
4374 (record_cmdlist): Now extern. Initialize.
4375 (set_record_cmdlist): Now extern. Initialize.
4376 (show_record_cmdlist): Now extern. Initialize.
4377 (info_record_cmdlist): Now extern. Initialize.
4378 (find_record_target): New.
4379 (require_record_target): New.
4380 (cmd_record_start): Update.
4381 (cmd_record_delete): Remove target-specific code.
4382 Call target_delete_record.
4383 (cmd_record_stop): Unpush any record target.
4384 (set_record_insn_max_num): Move to record-full.c
4385 (set_record_command): Add comment.
4386 (show_record_command): Add comment.
4387 (info_record_command): Update comment.
4388 Remove target-specific code.
4389 Call the record target's to_info_record.
4390 (cmd_record_start): New.
4391 (cmd_record_goto): Now extern.
4392 Remove target-specific code.
4393 Call target_goto_begin, target_goto_end, or target_goto.
4394 (_initialize_record): Move record target ops initialization to
4395 record-full.c.
4396 Change "record" command help text.
4397 Move "record restore", "record set", and "record show" commands to
4398 record-full.c.
4399 * Makefile.in (SFILES): Add record-full.c.
4400 (HFILES_NO_SRCDIR): Add record-full.h.
4401 (COMMON_OBS): Add record-full.o.
4402 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
4403 * arm-tdep.c: Include record-full.h.
4404 * i386-linux-tdep.c: Include record-full.h instead of record.h.
4405 * i386-tdep.c: Include record-full.h.
4406 * infrun.c: Include record-full.h.
4407 * linux-record.c: Include record-full.h.
4408 * moxie-tdep.c: Include record-full.h.
4409 * record-full.c: Include record-full.h.
4410 Change module comment.
4411 (set_record_full_cmdlist): New.
4412 (show_record_full_cmdlist): New.
4413 (record_full_cmdlist): New.
4414 (record_goto_insn): New declaration.
4415 (record_save): New declaration.
4416 (record_check_insn_num): Change query string.
4417 (record_info): New.
4418 (record_delete): New.
4419 (record_is_replaying): New.
4420 (record_goto_entry): New.
4421 (record_goto_begin): New.
4422 (record_goto_end): New.
4423 (record_goto): New.
4424 (init_record_ops): Update.
4425 (init_record_core_ops): Update.
4426 (cmd_record_save): Rename to record_save. Remove target and arg checks.
4427 (cmd_record_start): New.
4428 (set_record_insn_max_num): Moved from record.c
4429 (set_record_full_command): New.
4430 (show_record_full_command): New.
4431 (_initialize_record_full): New.
4432
4433 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4434
4435 * target.h (add_deprecated_target_alias): New.
4436 * target.c (add_deprecated_target_alias): New.
4437
4438 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4439
4440 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
4441 and signal.h.
4442 (linux_supports_btrace): Add kernel and
4443 cpuid check.
4444 (kernel_supports_btrace): New function.
4445 (cpu_supports_btrace): New function.
4446 (intel_supports_btrace): New function.
4447
4448 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4449
4450 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
4451 * remote.c: Include btrace.h.
4452 (struct btrace_target_info): New struct.
4453 (remote_supports_btrace): New function.
4454 (send_Qbtrace): New function.
4455 (remote_enable_btrace): New function.
4456 (remote_disable_btrace): New function.
4457 (remote_teardown_btrace): New function.
4458 (remote_read_btrace): New function.
4459 (init_remote_ops): Add btrace ops.
4460 (enum <unnamed>): Add btrace packets.
4461 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
4462 (_initialize_remote): Add packet configuration for branch tracing.
4463
4464 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4465
4466 * features/btrace.dtd: New file.
4467 * Makefile.in (XMLFILES): Add btrace.dtd.
4468 * btrace.h (parse_xml_btrace): New declaration.
4469 * btrace.c: Include xml-support.h.
4470 (parse_xml_btrace): New function.
4471 (parse_xml_btrace_block): New function.
4472 (block_attributes): New struct.
4473 (btrace_attributes): New struct.
4474 (btrace_children): New struct.
4475 (btrace_elements): New struct.
4476
4477 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4478
4479 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
4480 (amd64_linux_enable_btrace): New.
4481 (amd64_linux_disable_btrace): New.
4482 (amd64_linux_teardown_btrace): New.
4483 (_initialize_amd64_linux_nat): Initialize btrace ops.
4484 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
4485 (i386_linux_enable_btrace): New.
4486 (i386_linux_disable_btrace): New.
4487 (i386_linux_teardown_btrace): New.
4488 (_initialize_i386_linux_nat): Initialize btrace ops.
4489 * config/i386/linux.mh: Add linux-btrace.o.
4490 * config/i386/linux64.mh: Add linux-btrace.o.
4491
4492 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4493
4494 * common/linux_btrace.h: New file.
4495 * common/linux_btrace.c: New file.
4496 * Makefile.in (SFILES): Add btrace.c.
4497 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
4498 (COMMON_OBS): Add btrace.o.
4499 (linux-btrace.o): New rule.
4500
4501 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4502
4503 * target.h: Include btrace.h.
4504 (struct target_ops) <to_supports_btrace, to_enable_btrace,
4505 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
4506 * target.c (target_supports_btrace): New function.
4507 (target_enable_btrace): New function.
4508 (target_disable_btrace): New function.
4509 (target_teardown_btrace): New function.
4510 (target_read_btrace): New function.
4511 * btrace.h: New file.
4512 * btrace.c: New file.
4513 * Makefile.in: Add btrace.c.
4514 * gdbthread.h: Include btrace.h.
4515 (struct thread_info): Add btrace field.
4516 * thread.c: Include btrace.h.
4517 (clear_thread_inferior_resources): Call target_teardown_btrace.
4518 * common/btrace-common.h: New file.
4519
4520 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4521
4522 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
4523 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
4524 kill_status to outer block.
4525
4526 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4527
4528 Fix entry-values if the callee called a noreturn function.
4529 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4530 get_frame_address_in_block. Add new comment.
4531
4532 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4533
4534 Fix entry-values in C++ across CUs.
4535 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
4536 lookup_minimal_symbol. Add a comment.
4537 * dwarf2read.c
4538 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
4539 DW_AT_linkage_name.
4540
4541 2013-03-08 Yao Qi <yao@codesourcery.com>
4542
4543 * tracepoint.c (_initialize_tracepoint): Indent the code.
4544
4545 2013-03-08 Pedro Alves <palves@redhat.com>
4546
4547 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
4548 (parse_find_args, find_command): Change type of pattern buffer
4549 locals to 'gdb_byte *'.
4550
4551 2013-03-08 Stan Shebs <stan@codesourcery.com>
4552 Hafiz Abid Qadeer <abidh@codesourcery.com>
4553
4554 * NEWS: Mention set and show trace-buffer-size commands.
4555 Mention new packet.
4556 * target.h (struct target_ops): New method
4557 to_set_trace_buffer_size.
4558 (target_set_trace_buffer_size): New macro.
4559 * target.c (update_current_target): Set up new method.
4560 * tracepoint.c (trace_buffer_size): New global.
4561 (start_tracing): Send it to the target.
4562 (set_trace_buffer_size): New function.
4563 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
4564 * remote.c (remote_set_trace_buffer_size): New function.
4565 (_initialize_remote): Use it.
4566 (QTBuffer:size) New remote command.
4567 (PACKET_QTBuffer_size): New enum.
4568 (remote_protocol_features): Add an entry for
4569 PACKET_QTBuffer_size.
4570
4571 2013-03-08 Tom Tromey <tromey@redhat.com>
4572
4573 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
4574 variable.
4575
4576 2013-03-07 Pedro Alves <palves@redhat.com>
4577
4578 * target.c (target_read_stralloc, target_fileio_read_alloc):
4579 *Cast pointer to 'gdb_byte *' in target call.
4580
4581 2013-03-07 Pedro Alves <palves@redhat.com>
4582
4583 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
4584 call.
4585
4586 2013-03-07 Keith Seitz <keiths@redhat.com>
4587
4588 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
4589 (trace_pass_command): Likewise.
4590 * cli/cli-cmds.c: Include cli/cli-utils.h.
4591 (source_command): Use skip-spaces.
4592 (disassemble_command): Likewise.
4593 * findcmd.c: Include cli/cli-utils.h.
4594 (parse_find_args): Use skip_spaces.
4595 * go32-nat.c: Include cli/cli-utils.h.
4596 (go32_sldt): Use skip_spaces.
4597 (go32_sgdt): Likewise.
4598 (go32_sidt): Likewise.
4599 (go32_pde): Likewise.
4600 (go32_pte): Likewise.
4601 (go32_pte_for_address): Likewise.
4602 * infcmd.c: Include cli/cli-utils.h.
4603 (registers_info): Use skip_spaces.
4604 * linux-tdep.c (read_mapping): Use skip_spaces_const.
4605 (linux_info_proc): Likewise.
4606 * linux-thread-db.c: Include cli/cli-utils.h.
4607 (info_auto_load_libthread_db): Use skip_spaces_const.
4608 * m32r-rom.c: Include cli/cli-utils.h.
4609 (m32r_upload_command): Use skip_spaces.
4610 * maint.c: Include cli/cli-utils.h.
4611 (maintenance_translate_address): Use skip_spaces.
4612 * mi/mi-parse.c: Include cli/cli-utils.h.
4613 (mi_parse_argv): Use skip_spaces.
4614 (mi_parse): Likewise.
4615 * minsyms.c: Include cli/cli-utils.h.
4616 (msymbol_hash_iw): Use skip_spaces_const.
4617 * objc-lang.c: Include cli/cli-utils.h.
4618 (parse_selector): Use skip_spaces.
4619 (parse_method): Likewise.
4620 * python/python.c: Include cli/cli-utils.h.
4621 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
4622 (python_command)[HAVE_PYTHON]: Likewise.
4623 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
4624 * remote-m32r-sdi.c: Include cli/cli-utils.h.
4625 (m32r_load): Use skip_spaces.
4626 * serial.c: Include cli/cli-utils.h.
4627 (serial_open): Use skip_spaces_const.
4628 * stack.c: Include cli/cli-utils.h.
4629 (parse_frame_specification_1): Use skip_spaces_const.
4630 * symfile.c: Include cli/cli-utils.h.
4631 (set_ext_lang_command): Use skip_spaces.
4632 * symtab.c: Include cli/cli-utils.h.
4633 (rbreak_command): Use skip_spaces.
4634 * thread.c (thread_name_command): Use skip_spaces.
4635 * tracepoint.c (validate_actionline): Use skip_spaces.
4636 (encode_actions_1): Likewise.
4637 (trace_find_range_command): Likewise.
4638 (trace_find_outside_command): Likewise.
4639 (trace_dump_actions): Likewise.
4640
4641 2013-03-07 Pedro Alves <palves@redhat.com>
4642
4643 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
4644 * expprint.c (print_subexp_standard): Likewise.
4645 * utils.c (host_char_to_target): Likewise.
4646 * valprint.c (generic_emit_char, generic_printstr): Likewise.
4647 * varobj.c (value_get_print_value): Change type of local to char*.
4648 Cast it gdb_byte * in call to language printer.
4649
4650 2013-03-07 Pedro Alves <palves@redhat.com>
4651
4652 * charset.c (struct wchar_iterator) <input>: Change type to 'const
4653 gdb_byte *'.
4654 (make_wchar_iterator): Remove cast to char*.
4655 (wchar_iterate): Change type of local.
4656
4657 2013-03-07 Pedro Alves <palves@redhat.com>
4658
4659 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
4660 for 'regcache->register_status'.
4661
4662 2013-03-07 Pedro Alves <palves@redhat.com>
4663
4664 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
4665 int.
4666
4667 2013-03-07 Pedro Alves <palves@redhat.com>
4668
4669 * stap-probe.c (handle_stap_probe): Add cast to char*.
4670
4671 2013-03-07 Pedro Alves <palves@redhat.com>
4672
4673 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
4674 RECORD_MSGRCV>: Pass a signed variable to
4675 regcache_raw_read_signed, instead of an unsigned one.
4676
4677 2013-03-07 Pedro Alves <palves@redhat.com>
4678
4679 * remote-notif.c (notif_debug): Change type to int.
4680 * remote-notif.h (notif_debug): Likewise.
4681
4682 2013-03-07 Pedro Alves <palves@redhat.com>
4683
4684 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
4685
4686 2013-03-07 Pedro Alves <palves@redhat.com>
4687
4688 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
4689 * remote.h (hex2bin, bin2hex): ... here.
4690 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
4691
4692 2013-03-07 Eli Zaretskii <eliz@gnu.org>
4693
4694 * utils.c (initialize_utils): Improve doc strings of "set/show
4695 width", "set/show height", and "set/show pagination".
4696
4697 2013-03-06 Keith Seitz <keiths@redhat.com>
4698
4699 * ax-gdb.c (gen_printf): Make FORMAT const.
4700 * ax-gdb.h (gen_printf): Likewise.
4701 * ax-general.c (ax_string): Make STR const.
4702 * ax.h (ax_string): Likewise.
4703
4704 2013-03-06 Doug Evans <dje@google.com>
4705
4706 * elfread.c (elf_symfile_read): Move debugging printf to more
4707 logical location.
4708
4709 2013-03-06 Pedro Alves <palves@redhat.com>
4710
4711 * python/py-utils.c (target_string_to_unicode): Delete function.
4712 * python/python-internal.h (target_string_to_unicode): Delete
4713 declaration.
4714
4715 2013-03-06 Pierre Muller <muller@sourceware.org>
4716
4717 * linespec.c (get_current_search_block): ARI fix, use (void)
4718 for empty parameter list.
4719
4720 2013-03-05 Doug Evans <dje@google.com>
4721
4722 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
4723 of old ada_lookup_symbol_list. In !full_search case, don't
4724 search superblocks.
4725 (ada_lookup_symbol_list): Delete arg full_search, all callers
4726 updated. Call ada_lookup_symbol_list_worker.
4727 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
4728 * ada-lang.h (ada_lookup_symbol_list): Update.
4729 * language.h (language_defn): Update comment for
4730 la_iterate_over_symbols.
4731 * linespec.c (iterate_over_file_blocks): New function.
4732 (iterate_over_all_matching_symtabs): Call it.
4733 (lookup_prefix_sym): Ditto.
4734 (get_current_search_block): New function.
4735 (get_search_block): Delete.
4736 (find_label_symbols): Call get_current_search_block.
4737 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
4738 * symtab.c (iterate_over_symbols): Don't search superblocks.
4739
4740 2013-03-05 Yao Qi <yao@codesourcery.com>
4741
4742 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
4743 parameter VAR's type from "unsigned int" to "int".
4744 * command.h (var_zuinteger_unlimited): Update its comments.
4745 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
4746
4747 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
4748
4749 * NEWS: Mention new target x86_64-*-cygwin*.
4750
4751 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
4752
4753 * configure.host: Add x86_64-*-cygwin* as host.
4754 * configure.tgt: Add x86_64-*-cygwin* as target.
4755 * config/i386/cygwin64.mh: New file.
4756
4757 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4758
4759 * linespec.c (decode_line_2): Fix duplicate request off by two message.
4760
4761 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4762
4763 * linespec.c (struct linespec_canonical_name): New.
4764 (struct linespec_state): Change canonical_names type to it.
4765 (add_sal_to_sals): Change variable canonical_name to canonical. Change
4766 xrealloc element size. Initialize the different CANONICAL fields.
4767 (canonical_to_fullform): New.
4768 (filter_results): Use it. Add variables canonical, fullform and
4769 cleanup.
4770 (struct decode_line_2_item, decode_line_2_compare_items): New.
4771 (decode_line_2): Remove variables iter and item_names, add variables
4772 items and items_count. Modify the code for these new variables.
4773
4774 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
4775
4776 * coff-pe-read.c (read_pe_exported_syms): Don't return without
4777 calling do_cleanup.
4778
4779 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
4780
4781 * tracepoint.c (build_traceframe_info): Add code for byte order.
4782
4783 2013-03-02 Kevin Buettner <kevinb@redhat.com>
4784
4785 * v850-tdep.c: (v850e2_register_name): Revise system register
4786 names to match current V850E2M architecture specifications.
4787 Update register number enum comments too.
4788
4789 2013-03-01 Jiong Wang <jiwang@tilera.com>
4790 Pedro Alves <palves@redhat.com>
4791
4792 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
4793 to END_ADDR.
4794 (tilegx_skip_prologue): Limit prologue analysis to section end.
4795
4796 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4797
4798 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
4799 use it.
4800
4801 2013-03-01 Pedro Alves <palves@redhat.com>
4802
4803 Use gdb_byte for bytes from the program being debugged.
4804
4805 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
4806 Change type of local 'buf' to gdb_byte.
4807 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
4808 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
4809 * cris-tdep.c (cris_sigcontext_addr)
4810 (cris_sigtramp_frame_unwind_cache): Likewise.
4811 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
4812 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
4813 Likewise.
4814 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
4815 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
4816 (hppa32_hpux_search_dummy_call_sequence)
4817 (hppa_hpux_supply_save_state): Likewise.
4818 * hppa-linux-tdep.c (insns_match_pattern)
4819 (hppa_linux_find_global_pointer): Likewise.
4820 * hppa-tdep.c (hppa_in_function_epilogue_p)
4821 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
4822 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
4823 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
4824 (i386fbsd_collect_uthread): Likewise.
4825 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
4826 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
4827 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
4828 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
4829 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
4830 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
4831 (ia64_libunwind_frame_prev_register)
4832 (ia64_libunwind_sigtramp_frame_this_id)
4833 (ia64_find_global_pointer_from_dynamic_section)
4834 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
4835 (ia64_unwind_pc): Likewise.
4836 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
4837 * m68hc11-tdep.c (m68hc11_push_dummy_call)
4838 (m68hc11_extract_return_value): Likewise.
4839 * m68klinux-nat.c (fetch_register, store_register): Likewise.
4840 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
4841 (mep_get_insn, mep_push_dummy_call): Likewise.
4842 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
4843 (mips_linux_in_dynsym_stub): Likewise.
4844 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
4845 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
4846 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
4847 to gdb_byte.
4848 * remote-mips.c (mips_set_register): Likewise.
4849 * remote-sim.c (gdbsim_fetch_register): Likewise.
4850 * score-tdep.c (score7_fetch_inst): Change type of parameter
4851 'memblock' and local 'buf' to gdb_byte.
4852 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
4853 Change type of local 'buf' to gdb_byte. Adjust.
4854 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
4855 to gdb_byte**.
4856 (score7_analyze_prologue): Change type of 'memblock' and
4857 'memblock_ptr' locals to gdb_byte*.
4858 * sh64-tdep.c (sh64_extract_return_value)
4859 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
4860 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
4861 * solib-pa64.c (pa64_solib_create_inferior_hook)
4862 (pa64_open_symbol_file_object): Remove local 'buf'.
4863 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
4864 (som_open_symbol_file_object): Likewise.
4865 * solib-spu.c (spu_current_sos): Likewise.
4866 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4867 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
4868 (spu_store_registers): Likewise.
4869 * target.c (debug_print_register): Likewise.
4870 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
4871 * xstormy16-tdep.c (xstormy16_store_return_value)
4872 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
4873 (xstormy16_find_jmp_table_entry): Likewise.
4874
4875 2013-03-01 Jiong Wang <jiwang@tilera.com>
4876
4877 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
4878 (tilegx_gdbarch_init): Install it.
4879
4880 2013-02-28 Tom Tromey <tromey@redhat.com>
4881
4882 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
4883 PyLong_Check.
4884
4885 2013-02-28 Doug Evans <dje@google.com>
4886
4887 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
4888 * python/python.c (gdbpy_find_pc_line): Ditto.
4889
4890 2013-02-28 Tom Tromey <tromey@redhat.com>
4891
4892 * contrib/excheck.py: New file.
4893 * contrib/exsummary.py: New file.
4894 * contrib/gcc-with-excheck: New file.
4895
4896 2013-02-28 Tom Tromey <tromey@redhat.com>
4897
4898 * python/python.c (gdbpy_print_stack): Call begin_line and
4899 fprintf_filtered inside TRY_CATCH.
4900
4901 2013-02-28 Tom Tromey <tromey@redhat.com>
4902
4903 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
4904 inside TRY_CATCH.
4905
4906 2013-02-28 Tom Tromey <tromey@redhat.com>
4907
4908 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
4909 frame_object_to_frame_info inside TRY_CATCH.
4910
4911 2013-02-28 Tom Tromey <tromey@redhat.com>
4912
4913 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
4914 TRY_CATCH.
4915
4916 2013-02-28 Tom Tromey <tromey@redhat.com>
4917
4918 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
4919
4920 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
4921
4922 * windows-nat.c: Throughout, fix format strings and casts of
4923 printf-like functions to avoid type related warnings on all
4924 platforms.
4925 (handle_output_debug_string): Fetch context information address
4926 from debug string using string_to_core_addr.
4927
4928 2013-02-27 Jiong Wang <jiwang@tilera.com>
4929
4930 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
4931 * regformats/reg-tilegx32.dat: New.
4932
4933 2013-02-27 Jiong Wang <jiwang@tilera.com>
4934
4935 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
4936
4937 2013-02-27 Jiong Wang <jiwang@tilera.com>
4938
4939 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
4940
4941 2013-02-27 Yao Qi <yao@codesourcery.com>
4942 Pedro Alves <palves@redhat.com>
4943
4944 * tracepoint.c (tfile_trace_find): For tfind
4945 pc/tp/range/outside, look for the next trace frame instead of
4946 always starting from frame 0.
4947
4948 2013-02-26 Anthony Green <green@moxielogic.com>
4949
4950 * configure.tgt: Add support for moxie-*-rtems* target.
4951
4952 2013-02-25 Pedro Alves <palves@redhat.com>
4953
4954 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
4955 warning text.
4956
4957 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
4958
4959 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
4960 if $fp is used as the virtual frame pointer.
4961
4962 2013-02-23 Alan Modra <amodra@gmail.com>
4963
4964 * elfread.c (elf_symtab_read): Do not use udata.p here to find
4965 symbol size.
4966 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
4967 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
4968 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
4969 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
4970
4971 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4972
4973 Code cleanup.
4974 * elfread.c (build_id_bfd_get): Make the return type const.
4975 (build_id_verify): Make the check parameter const.
4976 (build_id_to_debug_filename): Make the build_id parameter and variable
4977 data const.
4978 (find_separate_debug_file_by_buildid): Make the variable build_id const.
4979
4980 2013-02-21 Alan Modra <amodra@gmail.com>
4981
4982 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
4983
4984 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
4985
4986 Add a new method 'disassemble' to gdb.Architecture class.
4987 * python/py-arch.c (archpy_disassmble): Implementation of the
4988 new method gdb.Architecture.disassemble.
4989 (arch_object_methods): Add entry for the new method.
4990
4991 2013-02-20 Jiong Wang <jiwang@tilera.com>
4992
4993 * MAINTAINERS (Write After Approval): Add myself to the list.
4994
4995 2013-02-19 Pedro Alves <palves@redhat.com>
4996
4997 Garbage collect 'struct monitor_ops'::load_routine.
4998
4999 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
5000 * monitor.c (monitor_load): No longer call
5001 current_monitor->load_routine.
5002 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
5003 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
5004 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
5005
5006 2013-02-19 Pedro Alves <palves@redhat.com>
5007
5008 PR gdb/15161
5009
5010 Harmonize with generic_load.
5011
5012 * monitor.c: Include "readline/readline.h".
5013 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
5014 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
5015 long/strtol for the 'load_offset' local. Error out if no argument
5016 is given or if too many arguments are given. Tilde expand the
5017 passed in file name.
5018
5019 2013-02-19 Kai Tietz <ktietz@redhat.com>
5020
5021 PR gdb/15161
5022 * symfile.c (load_section_data): Change type of load_offset
5023 to CORE_ADDR.
5024 (generic_load): User strtoulst instead of strtoul for conversion
5025 of load_offset.
5026
5027 2013-02-19 Jiong Wang <jiwang@tilera.com>
5028
5029 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
5030 for return address, "lr" register, saved on stack.
5031 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
5032 after we invoke tilegx_analyze_prologue.
5033
5034 2013-02-19 Jiong Wang <jiwang@tilera.com>
5035
5036 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
5037
5038 2013-02-19 Jiong Wang <jiwang@tilera.com>
5039
5040 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
5041
5042 2013-02-19 Jiong Wang <jiwang@tilera.com>
5043
5044 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
5045 (tilegx_write_pc): New function.
5046 (tilegx_cannot_reference_register): Return zero if REGNO
5047 is TILEGX_FAULTNUM_REGNUM.
5048 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
5049 (tilegx_register_name): Add handling of "faultnum" register.
5050 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
5051 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
5052 handling of TILEGX_FAULTNUM_REGNUM.
5053 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
5054
5055 2013-02-19 Jiong Wang <jiwang@tilera.com>
5056
5057 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
5058 should be aligned to 64bit.
5059
5060 2013-02-19 Kai Tietz <ktietz@redhat.com>
5061
5062 * windows-nat.c (windows_xfer_memory): Fix debug-output
5063 for LLP64.
5064
5065 2013-02-19 Lei Liu <lei.liu2@windriver.com>
5066
5067 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
5068 Don't check DSP register number if HAVE_DSP is not set.
5069
5070 2013-02-19 Alan Modra <amodra@gmail.com>
5071
5072 * elfread.c (struct build_id): Delete. Use struct elf_build_id
5073 throughout file instead.
5074 (build_id_bfd_get): Update to use new elf_tdata build_id field.
5075 Don't xmalloc return value.
5076 (build_id_verify): Similarly. Don't xfree.
5077 (build_id_to_debug_filename): Update.
5078 (find_separate_debug_file_by_buildid): Update, don't xfree.
5079
5080 2013-02-18 Tom Tromey <tromey@redhat.com>
5081
5082 PR gdb/15102:
5083 * dwarf2read.c (read_subrange_type): Use result of
5084 'check_typedef'.
5085
5086 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
5087
5088 * frame.c: Remove one extra white space after #include
5089 directive.
5090
5091 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5092
5093 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
5094
5095 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5096
5097 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
5098 and dir commands into an if block.
5099
5100 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
5101
5102 * python/py-breakpoint (struct pybp_code): Use int instead of
5103 enum type_code.
5104
5105 2013-02-15 Pedro Alves <pedro@codesourcery.com>
5106 Hafiz Abid Qadeer <abidh@codesourcery.com>
5107
5108 * NEWS: Mention new field "trace-file".
5109 * tracepoint.c (trace_status_mi): Output "trace-file" field.
5110 (tfile_open): Record the trace file's filename in the trace
5111 status.
5112 (tfile_files_info): Mention the name of the trace file.
5113 Check the "filename" field explicitely.
5114 (trace_status_command): Explicitely check "filename" field.
5115 (trace_find_command): Ditto.
5116 (trace_find_pc_command): Ditto.
5117 (trace_find_tracepoint_command): Ditto.
5118 (trace_find_line_command): Ditto.
5119 (trace_find_range_command): Ditto.
5120 (trace_find_outside_command): Ditto.
5121 * tracepoint.h (struct trace_status) <from_file>: Rename it
5122 to "filename" and make it hold the trace file's filename
5123 instead of a boolean.
5124 * remote.c (remote_get_trace_status): Initialize "filename"
5125 field with NULL instead of 0.
5126
5127 2013-02-15 Yao Qi <yao@codesourcery.com>
5128
5129 * remote.c: Fix a typo.
5130
5131 2013-02-14 Pierre Muller <muller@sourceware.org>
5132
5133 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
5134
5135 2013-02-14 Pedro Alves <palves@redhat.com>
5136
5137 * utils.c (savestring): Don't #undef it. Move function to
5138 common/common-utils.c.
5139 * common/common-utils.c: Include gdb_string.h.
5140 (savestring): Move here from utils.c.
5141 * common/common-utils.h (savestring): Declare.
5142
5143 2013-02-14 Pedro Alves <palves@redhat.com>
5144
5145 * utils.c (savestring): Rename parameter 'size' to 'len'.
5146
5147 2013-02-14 Pedro Alves <palves@redhat.com>
5148 Yufeng Zhang <yufeng.zhang@arm.com>
5149
5150 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
5151 (aarch64_inferior_data, struct aarch64_inferior_data):
5152 Delete.
5153 (struct aarch64_process_info): New.
5154 (aarch64_process_list): New global.
5155 (aarch64_find_process_pid, aarch64_add_process)
5156 (aarch64_process_info_get): New functions.
5157 (aarch64_inferior_data_get): Delete.
5158 (aarch64_process_info_get): New function.
5159 (aarch64_forget_process): New function.
5160 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
5161 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
5162 aarch64_get_debug_reg_state.
5163 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
5164 instead of linux_nat_iterate_watchpoint_lwps.
5165 (aarch64_linux_new_fork): New function.
5166 (aarch64_linux_child_post_startup_inferior): Use
5167 aarch64_forget_process instead of aarch64_init_debug_reg_state.
5168 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
5169 (aarch64_linux_remove_hw_breakpoint)
5170 (aarch64_handle_aligned_watchpoint)
5171 (aarch64_handle_unaligned_watchpoint)
5172 (aarch64_linux_insert_watchpoint)
5173 (aarch64_linux_remove_watchpoint)
5174 (aarch64_linux_stopped_data_address): Adjust to pass the current
5175 process id to aarch64_debug_reg_state.
5176 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
5177 linux_nat_new_fork hook, and aarch64_forget_process as
5178 linux_nat_forget_process hook; remove the call to
5179 register_inferior_data_with_cleanup.
5180
5181 2013-02-14 Pedro Alves <palves@redhat.com>
5182
5183 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
5184 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
5185 lval_memory.
5186
5187 2013-02-14 Pedro Alves <pedro@codesourcery.com>
5188 Hafiz Abid Qadeer <abidh@codesourcery.com>
5189
5190 * tracepoint.h (validate_trace_state_variable_name): Declare.
5191 * tracepoint.c (validate_trace_state_variable_name): New.
5192 (trace_variable_command): Parse the trace state variable's name
5193 without using parse_expression. Do several validations.
5194 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
5195 trace state variable's name with parse_expression. Validate it.
5196
5197 2013-02-14 Yao Qi <yao@codesourcery.com>
5198
5199 * infcmd.c (breakpoint_proceeded): Remove it.
5200
5201 2013-02-14 Yao Qi <yao@codesourcery.com>
5202
5203 * tracepoint.c (end_actions_pseudocommand): Make it static.
5204 (while_stepping_pseudocommand): Likewise.
5205 * tracepoint.h (end_actions_pseudocommand): Remove the
5206 declaration.
5207 (while_stepping_pseudocommand): Likewise.
5208
5209 2013-02-14 Yao Qi <yao@codesourcery.com>
5210
5211 * cli/cli-decode.c (help_cmd): Remove the declaration of
5212 "cmdlist".
5213 (help_all): Likewise.
5214
5215 2013-02-13 Pedro Alves <palves@redhat.com>
5216
5217 * amd64-linux-nat.c (update_debug_registers_callback):
5218 Update comment.
5219 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
5220 iterate_over_lwps.
5221 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
5222 i386_debug_reg_state.
5223 (amd64_linux_new_fork): New function.
5224 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
5225 linux_nat_new_fork hook, and i386_forget_process as
5226 linux_nat_forget_process hook.
5227 * i386-linux-nat.c (update_debug_registers_callback):
5228 Update comment.
5229 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
5230 iterate_over_lwps.
5231 (i386_linux_prepare_to_resume): Pass the lwp's pid to
5232 i386_debug_reg_state.
5233 (i386_linux_new_fork): New function.
5234 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
5235 linux_nat_new_fork hook, and i386_forget_process as
5236 linux_nat_forget_process hook.
5237 * i386-nat.c (i386_init_dregs): Delete.
5238 (i386_inferior_data, struct i386_inferior_data):
5239 Delete.
5240 (struct i386_process_info): New.
5241 (i386_process_list): New global.
5242 (i386_find_process_pid, i386_add_process, i386_process_info_get):
5243 New functions.
5244 (i386_inferior_data_get): Delete.
5245 (i386_process_info_get): New function.
5246 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
5247 (i386_forget_process): New function.
5248 (i386_cleanup_dregs): Rewrite.
5249 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
5250 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
5251 (i386_stopped_data_address, i386_insert_hw_breakpoint)
5252 (i386_remove_hw_breakpoint): Adjust to pass the current process id
5253 to i386_debug_reg_state.
5254 (i386_use_watchpoints): Don't register inferior data.
5255 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
5256 adjust comment.
5257 (i386_forget_process): Declare.
5258 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
5259 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
5260 New static globals.
5261 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
5262 (add_initial_lwp): New, factored out from ...
5263 (add_lwp): ... this. Don't check the number of lwps before
5264 calling linux_nat_new_thread.
5265 (linux_nat_iterate_watchpoint_lwps): Delete.
5266 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
5267 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
5268 forks and vforks.
5269 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
5270 initial lwp.
5271 (linux_nat_kill, linux_nat_mourn_inferior): Call
5272 linux_nat_forget_process.
5273 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5274 (linux_nat_forget_process): New functions.
5275 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
5276 type.
5277 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
5278 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
5279 types.
5280 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5281 (linux_nat_forget_process): New declarations.
5282
5283 * amd64fbsd-nat.c (super_mourn_inferior): New global.
5284 (amd64fbsd_mourn_inferior): New function.
5285 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
5286 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
5287
5288 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5289
5290 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5291 Adding _().
5292
5293 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5294
5295 * aarch64-linux-nat.c (debug_reg_change_callback)
5296 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
5297 %s and phex().
5298
5299 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5300
5301 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
5302 with LONGEST.
5303
5304 2013-02-13 Pedro Alves <palves@redhat.com>
5305 Hafiz Abid Qadeer <abidh@codesourcery.com>
5306
5307 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
5308
5309 2013-02-12 Tom Tromey <tromey@redhat.com>
5310
5311 PR symtab/11464:
5312 * c-exp.y (lex_one_token): Initialize other fields of yylval on
5313 NAME return.
5314 (classify_inner_name): Remove 'first_name' argument, add
5315 'context'. Remove unused variable.
5316 (yylex): Explicitly maintain the context type. Exit loop earlier
5317 if NAME result is seen.
5318
5319 2013-02-12 Pedro Alves <palves@redhat.com>
5320
5321 * amd64-darwin-tdep.c: Add (C) after Copyright.
5322 * cli/cli-cmds.h: Ditto.
5323 * cli/cli-decode.c: Ditto.
5324 * cli/cli-decode.h: Ditto.
5325 * cli/cli-dump.c: Ditto.
5326 * cli/cli-dump.h: Ditto.
5327 * cli/cli-interp.c: Ditto.
5328 * cli/cli-logging.c: Ditto.
5329 * cli/cli-script.c: Ditto.
5330 * cli/cli-script.h: Ditto.
5331 * cli/cli-setshow.c: Ditto.
5332 * cli/cli-setshow.h: Ditto.
5333 * cli/cli-utils.c: Ditto.
5334 * cli/cli-utils.h: Ditto.
5335 * config/alpha/nm-osf3.h: Ditto.
5336 * config/djgpp/djconfig.sh: Ditto.
5337 * config/i386/nm-fbsd.h: Ditto.
5338 * config/i386/nm-i386gnu.h: Ditto.
5339 * config/nm-linux.h: Ditto.
5340 * config/nm-nto.h: Ditto.
5341 * config/rs6000/nm-rs6000.h: Ditto.
5342 * config/sparc/nm-sol2.h: Ditto.
5343 * darwin-nat-info.c: Ditto.
5344 * dfp.c: Ditto.
5345 * dfp.h: Ditto.
5346 * gdb-demangle.h: Ditto.
5347 * i386-darwin-nat.c: Ditto.
5348 * i386-darwin-tdep.c: Ditto.
5349 * linux-fork.h: Ditto.
5350 * m32c-tdep.c: Ditto.
5351 * microblaze-linux-tdep.c: Ditto.
5352 * microblaze-rom.c: Ditto.
5353 * microblaze-tdep.c: Ditto.
5354 * microblaze-tdep.h: Ditto.
5355 * mips-linux-tdep.h: Ditto.
5356 * ppc-ravenscar-thread.c: Ditto.
5357 * ppc-ravenscar-thread.h: Ditto.
5358 * prologue-value.c: Ditto.
5359 * prologue-value.h: Ditto.
5360 * ravenscar-thread.c: Ditto.
5361 * ravenscar-thread.h: Ditto.
5362 * sparc-ravenscar-thread.c: Ditto.
5363 * sparc-ravenscar-thread.h: Ditto.
5364 * tilegx-linux-tdep.c: Ditto.
5365 * unwind_stop_reasons.def: Ditto.
5366 * windows-nat.h: Ditto.
5367 * xtensa-linux-tdep.c: Ditto.
5368 * xtensa-xtregs.c: Ditto.
5369 * regformats/regdat.sh: Ditto.
5370 * regformats/regdef.h: Ditto.
5371
5372 2013-02-12 Pedro Alves <palves@redhat.com>
5373
5374 * break-catch-sig.c: Update copyright years.
5375
5376 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
5377
5378 Add support for a destructor for ui_out data and use it to
5379 provide a ui_out destructor.
5380 * ui-out.h: Declare the new ui_out destructor.
5381 (ui_out_impl): Add a field for data destructor in ui_out_impl.
5382 * ui-out.c (default_data_destroy): Add a default data destructor
5383 which does nothing.
5384 (default_ui_out_impl): Set the new data_destroy field to
5385 default_data_destroy
5386 (uo_data_destroy): Local function which invokes the data
5387 destructor if present.
5388 (clear_table): Local function which clears the table data of a
5389 ui_out object.
5390 (ui_out_destroy): Public function which frees a ui_out object.
5391 (ui_out_table_end): Use the new clear_table function.
5392 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
5393 NULL.
5394 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
5395 to NULL.
5396
5397 2013-02-11 Doug Evans <dje@google.com>
5398
5399 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
5400 (printf_decfloat): New function. Broken out from ui_printf.
5401 Remove unnecessary code to shift the entire format string down.
5402 (printf_pointer): New function.
5403 (ui_printf): Code to print C strings, wide C strings, decfloats,
5404 and pointers moved to separate functions.
5405
5406 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
5407
5408 * valops.c (value_assign): Handling bitfield offset in
5409 `lval_internalvar_component' case.
5410
5411 2013-02-08 Doug Evans <dje@google.com>
5412
5413 * common/format.c (parse_format_string): Fix whitespace.
5414
5415 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
5416
5417 * stack.c (return_command): Work around uninitialized variable
5418 warning.
5419
5420 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
5421
5422 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
5423 number of the registers from 36 to 34.
5424
5425 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
5426
5427 * NEWS: Mention new AArch64 native and target support.
5428
5429 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
5430
5431 * MAINTAINERS (Write After Approval): Add myself.
5432
5433 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
5434 Marcus Shawcroft <marcus.shawcroft@arm.com>
5435 Nigel Stephens <nigel.stephens@arm.com>
5436 Yufeng Zhang <yufeng.zhang@arm.com>
5437
5438 * aarch64-linux-nat.c: New file.
5439 * config/aarch64/linux.mh: New file.
5440 * configure.host: Add AArch64.
5441 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
5442
5443 2013-02-07 Doug Evans <dje@google.com>
5444
5445 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
5446 disassemble command.
5447
5448 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
5449
5450 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
5451 set_gdbarch_fetch_tls_load_module_address.
5452
5453 2013-02-06 David S. Miller <davem@davemloft.net>
5454
5455 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
5456 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5457 * value.c (struct_return_convention): New function.
5458 (using_struct_return): Implement in terms of struct_return_convention.
5459 * value.h (struct_return_convention): Declare.
5460 * stack.c (return_command): Allow successful overriding of the return
5461 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5462
5463 2013-02-06 Tom Tromey <tromey@redhat.com>
5464
5465 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
5466 outside of TRY_CATCH.
5467
5468 2013-02-06 Yao Qi <yao@codesourcery.com>
5469
5470 * mi/mi-interp.c: Include "tracepoint.h".
5471 (mi_tsv_modified): Declare.
5472 (mi_tsv_created, mi_tsv_deleted): Update declaration.
5473 (mi_interpreter_init): Call observer_attach_tsv_modified.
5474 (mi_tsv_modified): New.
5475 (mi_tsv_created, mi_tsv_deleted): Update.
5476 * tracepoint.c (trace_variable_command): Call
5477 observer_notify_tsv_modified if the initial value of tsv is
5478 changed.
5479 (delete_trace_state_variable): Call
5480 observer_notify_tsv_deleted earlier.
5481 (trace_variable_command): Caller update.
5482 (create_tsv_from_upload): Likewise.
5483 * observer.sh: Declare "struct trace_state_variable".
5484
5485 * NEWS: Mention the new MI notification "=tsv-modified".
5486
5487 2013-02-05 Doug Evans <dje@google.com>
5488
5489 * completer.c (location_completer): Fix typo in comment.
5490
5491 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5492
5493 * breakpoint.c (add_location_to_breakpoint): Insert the location with
5494 ADDRESS sorted.
5495
5496 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
5497
5498 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
5499 Refactor if statement to avoid trailing || operator.
5500
5501 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
5502
5503 * NEWS: Add PowerPC FreeBSD as a new native configuration.
5504
5505 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
5506
5507 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
5508 * configure.host: Add powerpc*-*-freebsd* target.
5509 * configure.tgt: Add target info for powerpc*-*-freebsd*.
5510 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
5511 * config/powerpc/fbsd.mh: New file.
5512
5513 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
5514 Denys Vlasenko <dvlasenk@redhat.com>
5515 Pedro Alves <palves@redhat.com>
5516
5517 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
5518 (struct elf_internal_linux_prpsinfo): Forward declare.
5519 * gdbarch.h, gdbarch.c: Regenerate.
5520 * linux-tdep.c: Include `cli/cli-utils.h'.
5521 (linux_fill_prpsinfo): New function.
5522 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
5523 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
5524 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
5525 depending on gdbarch pointer bitness.
5526 * ppc-linux-tdep.c: Include elf-bfd.h.
5527 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
5528 on 32-bit.
5529
5530 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5531 Marcus Shawcroft <marcus.shawcroft@arm.com>
5532 Nigel Stephens <nigel.stephens@arm.com>
5533 Yufeng Zhang <yufeng.zhang@arm.com>
5534
5535 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
5536
5537 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5538 Marcus Shawcroft <marcus.shawcroft@arm.com>
5539 Nigel Stephens <nigel.stephens@arm.com>
5540 Yufeng Zhang <yufeng.zhang@arm.com>
5541
5542 * aarch64-newlib-tdep.c: New file.
5543 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
5544 aarch64*-*-elf.
5545 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
5546 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
5547 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
5548 * osabi.c (gdb_osabi_names): Add "Newlib".
5549
5550 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5551 Marcus Shawcroft <marcus.shawcroft@arm.com>
5552 Nigel Stephens <nigel.stephens@arm.com>
5553 Yufeng Zhang <yufeng.zhang@arm.com>
5554
5555 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
5556 (ALLDEPFILES): Add aarch64-linux-tdep.c.
5557 * aarch64-linux-tdep.c: New file.
5558 * aarch64-linux-tdep.h: New file.
5559 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
5560 * configure.tgt: Add aarch64-none-linux-gnu.
5561
5562 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5563 Marcus Shawcroft <marcus.shawcroft@arm.com>
5564 Nigel Stephens <nigel.stephens@arm.com>
5565 Yufeng Zhang <yufeng.zhang@arm.com>
5566
5567 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
5568 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
5569 (ALLDEPFILES): Add aarch64-tdep.c.
5570 * aarch64-tdep.c: New file.
5571 * aarch64-tdep.h: New file.
5572 * configure.tgt: Add AArch64.
5573 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
5574 (aarch64-expedite): New definition.
5575 * features/aarch64-core.xml: New file.
5576 * features/aarch64-fpu.xml: New file.
5577 * features/aarch64-without-fpu.c: New file (generated).
5578 * features/aarch64-without-fpu.xml: New file.
5579 * features/aarch64.c: New file (generated).
5580 * features/aarch64.xml: New file.
5581 * regformats/aarch64-without-fpu.dat: New file (generated).
5582 * regformats/aarch64.dat: New file (generated).
5583
5584 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5585
5586 * contrib/expect-read1.c: New file.
5587 * contrib/expect-read1.sh: New file.
5588
5589 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5590
5591 * dwarf2read.c (file_file_name): New function with code from
5592 file_full_name.
5593 (file_full_name): Move most of the code to file_file_name.
5594 (macro_start_file): Rename variable full_name to file_name and use
5595 file_file_name for it. Add comp_dir parameter to new_macro_table.
5596 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
5597 macro_source_file->filename access by macro_source_fullname call.
5598 * macroscope.c (_initialize_macroscope): Update the new_macro_table
5599 caller.
5600 * macrotab.c (struct macro_table): New field comp_dir.
5601 (macro_include): New variables link_fullname and source_fullname.
5602 Replace any macro_source_file->filename access by macro_source_fullname
5603 call.
5604 (macro_lookup_inclusion): Remove the partial filenames checking code.
5605 (check_for_redefinition): New variables source_fullname and
5606 found_key_fullname. Replace any macro_source_file->filename access by
5607 macro_source_fullname call.
5608 (macro_undef): New variables source_fullname and key_fullname. Replace
5609 any macro_source_file->filename access by macro_source_fullname call.
5610 (macro_lookup_definition): New variables retval and source_fullname.
5611 Replace any macro_source_file->filename access by macro_source_fullname
5612 call.
5613 (foreach_macro): New variable key_fullname. Replace any
5614 macro_source_file->filename access by macro_source_fullname call.
5615 (foreach_macro_in_scope): New variable datum_fullname. Replace any
5616 macro_source_file->filename access by macro_source_fullname call.
5617 (new_macro_table): Add parameter comp_dir. Initialize T with it.
5618 (macro_source_fullname): New function.
5619 * macrotab.h (struct macro_source_file): Extent the filename field
5620 comment.
5621 (new_macro_table): New parameter comp_dir, add a comment for it.
5622 (macro_source_fullname): new declaration.
5623
5624 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5625
5626 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
5627 this_real_name to outer block. Use it also for
5628 compare_filenames_for_search.
5629 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
5630 with dw2_get_real_path for file_matcher, considering also
5631 BASENAMES_MAY_DIFFER.
5632 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
5633
5634 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5635
5636 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
5637 to the file_matcher parameter. Pass 0 to it.
5638 (dwarf2_create_include_psymtab): Copy also DIRNAME.
5639 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
5640 NULL psymtab_to_fullname result.
5641 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
5642 an expected filename instead.
5643 (expand_symtabs_matching_via_partial): Add basenames parameter to the
5644 file_matcher parameter. Call also psymtab_to_fullname, after newly
5645 considering BASENAMES_MAY_DIFFER.
5646 * source.c (rewrite_source_path): Remove static.
5647 * source.h (rewrite_source_path): New declaration.
5648 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
5649 the expand_symtabs_matching field. Comment it.
5650 * symtab.c (file_matches): New function comment. Add parameter
5651 basenames, implement it.
5652 (search_symbols_file_matches): Add basenames parameter. Update the
5653 file_matches caller.
5654 (search_symbols): Match FILES also against symtab_to_fullname.
5655 Optimize it for BASENAMES_MAY_DIFFER.
5656
5657 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5658
5659 * source.c (print_source_lines_base): Print for TUI also "fullname".
5660 * tui/tui-data.c (init_content_element): Change tui_locator_element
5661 field to full_name.
5662 * tui/tui-data.h (struct tui_locator_element): Likewise.
5663 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
5664 tui_update_locator_filename calls to tui_update_locator_fullname.
5665 Replace symtab->filename refererence by symtab_to_fullname call.
5666 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
5667 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
5668 field to full_name. Replace symtab->filename refererence by
5669 symtab_to_fullname call.
5670 (tui_show_symtab_source): Rename parameter to fullname. Change
5671 tui_locator_element field to full_name.
5672 * tui/tui-stack.c: Include source.h.
5673 (tui_set_locator_filename): Rename the declaration to ...
5674 (tui_set_locator_fullname): ... here. Rename its parameter to
5675 fullname, updates its comment.
5676 (tui_set_locator_info): Rename its parameter to fullname.
5677 (tui_set_locator_filename): Rename the definition to ...
5678 (tui_set_locator_fullname): ... here. Rename its parameter to
5679 fullname, updates its comment. Change tui_locator_element field to
5680 full_name.
5681 (tui_set_locator_info): Rename its parameter to fullname.
5682 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
5683 (tui_update_locator_filename): Rename to ...
5684 (tui_update_locator_fullname): ... here. Rename callee to
5685 tui_set_locator_fullname.
5686 (tui_show_frame_info): Replace symtab->filename refererence by
5687 symtab_to_fullname call.
5688 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
5689 (tui_update_locator_fullname): ... here.
5690 * tui/tui-winsource.c (tui_display_main): Rename the callee to
5691 tui_update_locator_fullname. Replace symtab->filename refererence by
5692 symtab_to_fullname call.
5693 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
5694 Rename the callee to tui_update_locator_fullname.
5695 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
5696
5697 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5698
5699 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
5700 by symtab_to_filename_for_display calls.
5701 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
5702 (clear_command): New variable sal_fullname, initialize it. Replace
5703 compare_filenames_for_search by filename_cmp with sal_fullname.
5704 (say_where, update_static_tracepoint): Replace symtab->filename
5705 refererences by symtab_to_filename_for_display calls.
5706 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
5707 Likewise.
5708 * dwarf2read.c: Include source.h.
5709 (fixup_go_packaging): Replace symtab->filename refererences by
5710 symtab_to_filename_for_display calls.
5711 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
5712 Replace symtab->filename refererences by symtab_to_filename_for_display
5713 calls.
5714 (create_sals_line_offset, convert_linespec_to_sals): New variable
5715 fullname, initialize it, replace symtab->filename reference by the
5716 variable.
5717 * linux-fork.c: Include source.h.
5718 (info_checkpoints_command): Replace symtab->filename refererences by
5719 symtab_to_filename_for_display calls.
5720 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
5721 by symtab_to_filename_for_display calls.
5722 * mdebugread.c: Include source.h.
5723 (psymtab_to_symtab_1): Replace symtab->filename refererences by
5724 symtab_to_filename_for_display calls.
5725 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
5726 (mi_cmd_file_list_exec_source_files): Likewise.
5727 * printcmd.c: Include source.h.
5728 (build_address_symbolic): Replace symtab->filename refererences by
5729 symtab_to_filename_for_display calls.
5730 * psymtab.c (partial_map_symtabs_matching_filename)
5731 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
5732 with psymtab_to_fullname.
5733 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
5734 by symtab_to_filename_for_display calls.
5735 (stpy_get_filename): New variable filename, initialize it, use instead
5736 of symtab->filename refererences.
5737 (salpy_str): Make variable filename const char *. Replace
5738 symtab->filename refererences by symtab_to_filename_for_display calls.
5739 * skip.c: Include source.h and filenames.h.
5740 (skip_file_command): Remove const from the symtab variable. Replace
5741 symtab->filename refererences by symtab_to_fullname call.
5742 (function_name_is_marked_for_skip): New variables searched_for_fullname
5743 and fullname. Use them to search also with symtab's fullname.
5744 * source.c (find_source_lines): Replace symtab->filename refererences
5745 by symtab_to_filename_for_display calls.
5746 (print_source_lines_base): New variable filename, use it instead of
5747 symtab->filename. Replace symtab->filename refererences by
5748 symtab_to_filename_for_display calls.
5749 (line_info, forward_search_command): Replace symtab->filename
5750 refererences by symtab_to_filename_for_display calls.
5751 (reverse_search_command): Replace symtab->filename refererences by
5752 symtab_to_filename_for_display calls. New variable filename for it.
5753 * stack.c (frame_info): Likewise.
5754 * symmisc.c: Include source.h.
5755 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
5756 (maintenance_info_symtabs): Replace symtab->filename refererences by
5757 symtab_to_filename_for_display calls.
5758 * symtab.c (iterate_over_some_symtabs): Call
5759 compare_filenames_for_search also with symtab_to_fullname.
5760 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
5761 symtab->filename refererences by symtab_to_filename_for_display calls.
5762 (find_line_symtab): Replace symtab->filename refererences by
5763 symtab_to_filename_for_display calls.
5764 (file_matches): Replace filename_cmp by compare_filenames_for_search.
5765 (print_symbol_info): Make the last parameter const char *. New
5766 variable s_filename. Use it in the function.
5767 (symtab_symbol_info): Make the last_filename variable const char *.
5768 Replace symtab->filename refererences by symtab_to_filename_for_display
5769 calls.
5770 (rbreak_command): New variable fullname. Use it. Replace
5771 symtab->filename refererence by symtab_to_filename_for_display call.
5772 * tracepoint.c (set_traceframe_context, trace_find_line_command)
5773 (print_one_static_tracepoint_marker): Replace symtab->filename
5774 refererences by symtab_to_filename_for_display calls.
5775 * tui/tui-source.c (tui_set_source_content): New variables filename and
5776 s_filename. Replace symtab->filename refererences by this variable.
5777 Replace other symtab->filename refererences by
5778 symtab_to_filename_for_display calls.
5779
5780 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
5781 Jan Kratochvil <jan.kratochvil@redhat.com>
5782
5783 Add a new variable that controls a way in which filenames are
5784 displayed.
5785 * NEWS (set filename-display): New entry.
5786 * source.c (filename_display_basename, filename_display_relative)
5787 (filename_display_absolute, filename_display_kind_names)
5788 (filename_display_string, show_filename_display_string)
5789 (symtab_to_filename_for_display): New.
5790 (_initialize_source): Added initialization of 'filename-display'
5791 variable.
5792 * source.h (symtab_to_filename_for_display): Added declaration.
5793 * stack.c (print_frame): Added new variable and calling of a new
5794 function and condition with this variable. Changed third argument of
5795 calling of a function.
5796
5797 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5798
5799 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
5800 Rename field reference filename to fullname.
5801 * tui/tui-data.h (struct tui_source_info): Rename field filename to
5802 fullname. New comment for it.
5803 * tui/tui-source.c (tui_set_source_content): Rename field reference
5804 filename to fullname. Initialize field by symtab_to_fullname now.
5805 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
5806 reference filename to fullname. Use symtab_to_fullname during
5807 comparison.
5808
5809 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5810
5811 Code cleanup.
5812 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
5813 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
5814 filename to fullname. Rename variable this_name to this_fullname.
5815 Lowercase FILENAME_CMP call.
5816 (dw2_find_symbol_file): New comment for the returned string.
5817 (dwarf2_gdb_index_functions): Rename the function to
5818 dw2_expand_symtabs_with_fullname.
5819 * psymtab.c (read_psymtabs_with_filename): Rename to ...
5820 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
5821 fullname.
5822 (psym_functions): Rename the function to read_psymtabs_with_fullname.
5823 * symfile.h (struct quick_symbol_functions): Rename field
5824 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
5825 parameter filename to fullname. Document returned string meaning for
5826 find_symbol_file.
5827 * symtab.c (find_line_symtab): Rename the called function to
5828 expand_symtabs_with_fullname.
5829
5830 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5831
5832 Code cleanup.
5833 * breakpoint.c (clear_command): Remove variable is_abs, unify the
5834 call of filename_cmp with compare_filenames_for_search.
5835 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
5836 is_abs, unify the call of FILENAME_CMP with
5837 compare_filenames_for_search. New gdb_asserts for real_path and name.
5838 Unify the call of compare_filenames_for_search with FILENAME_CMP.
5839 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
5840 * symfile.h (struct quick_symbol_functions): Extend the comment for
5841 map_symtabs_matching_filename.
5842 * symtab.c (compare_filenames_for_search): Remove the function comment
5843 relative path requirement. Handle absolute filenames, with a comment.
5844 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
5845 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
5846 real_path and name. Unify the call of compare_filenames_for_search
5847 with FILENAME_CMP.
5848 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
5849
5850 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5851
5852 Code cleanup.
5853 * breakpoint.c (print_breakpoint_location): Replace bp_location field
5854 source_file references by symtab field references. Remove variables
5855 sal and fullname.
5856 (momentary_breakpoint_from_master, add_location_to_breakpoint):
5857 (clear_command, say_where): Replace bp_location field source_file
5858 references by symtab field references.
5859 (bp_location_dtor): Remove the source_file reference.
5860 (update_static_tracepoint): Replace bp_location field source_file
5861 references by symtab field references.
5862 (breakpoint_free_objfile): New function.
5863 * breakpoint.h (struct bp_location): Extend the comment for line_number.
5864 Replace the field source_file by field symtab, extend its comment.
5865 (breakpoint_free_objfile): New declaration.
5866 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
5867 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
5868 field source_file references by symtab field references.
5869
5870 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5871
5872 Replace xfullpath calls by gdb_realpath calls.
5873 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
5874 function comment.
5875 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
5876 Remove it from the iterate_over_some_symtabs call.
5877 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
5878 Remove it from the dw2_map_expand_apply calls, remove a block handling
5879 it.
5880 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
5881 Remove it from the iterate_over_some_symtabs call.
5882 (partial_map_symtabs_matching_filename): Remove parameter full_path.
5883 Remove it from the partial_map_expand_apply calls, remove a block
5884 handling it. Drop gdb_realpath call and cleanups from the real_path
5885 handling.
5886 * source.c (openp): Drop the comment part about xfullpath. Replace
5887 xfullpath calls by gdb_realpath calls.
5888 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
5889 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
5890 from method map_symtabs_matching_filename and its comment.
5891 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
5892 gdb_realpath call.
5893 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
5894 remove it also from the function comment, remove a block handling it.
5895 Drop gdb_realpath call and cleanups from the real_path handling.
5896 (iterate_over_symtabs): Drop variable full_path and its use.
5897 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
5898 * utils.c (xfullpath): Remove.
5899 * utils.h (xfullpath): Remove.
5900
5901 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
5902
5903 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
5904 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
5905 (ALLDEPFILES): Add ppc64-tdep.c.
5906 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
5907 ppc64-tdep.o to gdb_target_obs.
5908 * ppc64-tdep.h: New file.
5909 * ppc64-tdep.c: New file.
5910 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
5911 ppc-linux-tdep.c to here.
5912 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
5913 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
5914 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
5915 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
5916 from ppc-linux-tdep.c to here.
5917 (ppc64_convert_from_func_ptr_addr): Rename from
5918 ppc64_linux_convert_from_func_ptr_addr to
5919 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
5920 here.
5921 * rs6000-tdep.c:
5922 (read_insn): Move from ppc-linux-tdep.c to here.
5923 (insns_match_pattern, insn_d_field, insn_ds_field): Move
5924 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
5925 * ppc-linux-tdep.c: Include ppc64-tdep.h.
5926 Removed above functions.
5927 (ppc_linux_init_abi): Adjust.
5928
5929 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
5930
5931 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
5932
5933 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
5934
5935 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
5936
5937 2013-02-01 Pedro Alves <palves@redhat.com>
5938
5939 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
5940 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
5941
5942 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5943
5944 * elfread.c (elf_symfile_read): Limit separate debug info additions to
5945 files with no separate debug info.
5946 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
5947 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
5948 only for files with no separate debug info.
5949
5950 2013-01-31 Tom Tromey <tromey@redhat.com>
5951
5952 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
5953 change type.
5954 (struct jit_program_space_data): Rename from jit_inferior_data.
5955 Update comments.
5956 (get_jit_program_space_data): Rename from get_jit_inferior_data.
5957 Change return type. Attach data to program space.
5958 (jit_program_space_data_cleanup): Rename from
5959 jit_inferior_data_cleanup; change argument type.
5960 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
5961 change type.
5962 (jit_register_code): Update.
5963 (jit_update_inferior_cache): Remove.
5964 (jit_breakpoint_deleted): Get jit data from the location's program
5965 space.
5966 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
5967 'ps_data', change type.
5968 (jit_inferior_init, jit_breakpoint_re_set_internal)
5969 (jit_event_handler): Update.
5970 (free_objfile_data): Get data from objfile's program space.
5971 (_initialize_jit): Update.
5972
5973 2013-01-31 Tom Tromey <tromey@redhat.com>
5974
5975 PR gdb/13987:
5976 * jit.c (struct jit_inferior_data) <cached_code_address,
5977 jit_breakpoint>: New fields.
5978 (jit_breakpoint_re_set_internal): Fix logging. Only create
5979 breakpoint if cached address has changed.
5980 (jit_update_inferior_cache, jit_breakpoint_deleted): New
5981 functions.
5982 (_initialize_jit): Register breakpoint deleted observer.
5983
5984 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
5985
5986 * infrun.c (handle_syscall_event): Remove unused gdbarch.
5987 (save_infcall_suspend_state): Ifdef out unused inf.
5988 (restore_infcall_suspend_state): Ifdef out unused inf.
5989 * jit.c (jit_register_code): Remove unused i, b, inf_data.
5990 (jit_frame_sniffer): Remove unused inf_data.
5991
5992 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
5993
5994 * c-exp.y (classify_inner_name): Remove unused type.
5995 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
5996 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
5997 need_escape.
5998 (c_get_string): Remove unused kind.
5999 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
6000
6001 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6002
6003 * charset.c (intermediate_encoding): Remove unused i.
6004 * completer.c (signal_completer): Remove unused i.
6005 * continuations.c (discard_my_continuations_1): Remove unused
6006 continuation_ptr.
6007 * corelow.c (core_close): Remove unuseD name.
6008 (get_core_siginfo): Remove unused pid.
6009 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
6010 i, cps.
6011 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
6012 (loclist_describe_location): Remove unused first.
6013 * event-top.c (command_line_handler): Remove unused got_eof.
6014 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
6015 (resize_section_table): Remove unused old_value.
6016 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
6017 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
6018 * i386-tdep.c (i386_process_record): Remove unused rex.
6019 * infcmd.c (get_return_value): Remove unused uiout.
6020 * jv-lang.c (type_from_class): Remove unused is_array.
6021 * jv-valprint.c (java_val_print): Remove unused i.
6022 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
6023 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
6024 * m2-typeprint.c (m2_print_type): Remove unused code.
6025 * macroexp.c (get_character_constant): Remove unused body_start.
6026 (macro_stringify): Remove unused result.
6027 * objc-lang.c (find_methods): Remove unused gdbarch.
6028 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
6029 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
6030 * stack.c (print_frame_args): Remove unused summary.
6031 * thread.c (thread_apply_command): Remove unused p.
6032 * valarith.c (value_x_unop): Remove unused mangle_ptr.
6033 * valops.c (search_struct_method): Remove unused skip.
6034 * valprint.c (generic_val_print): Remove unused byte_order.
6035 * varobj.c (varobj_update): Remove unused changed.
6036 * cli/cli-cmds.c (complete_command): Remove unused next_item.
6037 (alias_command): Remove unused c.
6038 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
6039 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
6040 format.
6041 (mi_cmd_data_write_memory): Remove unused word_format.
6042 (mi_cmd_data_write_memory_bytes): Remove unused r.
6043 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
6044 p_start, p_end.
6045 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
6046 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
6047 line_width.
6048
6049 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6050
6051 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
6052 * symtab.c (iterate_over_symtabs): Remove unused s.
6053 (find_pc_sect_symtab): Remove unused pspAce.
6054 (find_pc_sect_line): Remove unused alt_symtab.
6055 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
6056 (completion_list_add_name): Remove unused newsize.
6057
6058 2013-01-31 Tom Tromey <tromey@redhat.com>
6059
6060 PR c++/14998:
6061 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
6062 TYPE_CODE_FUNC.
6063
6064 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6065
6066 * target.c (target_read_string): Remove unused origlen.
6067
6068 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6069
6070 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
6071 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
6072 * ax-general.c (ax_print): Remove unused is_float.
6073 * blockframe.c (block_innermost_frame): Remove unused start, end.
6074 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
6075
6076 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6077
6078 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
6079 (svr4_read_so_list): Remove unused lmo.
6080 * solib-target.c (solib_target_relocate_section_addresses): Remove
6081 unused flags.
6082
6083 2013-01-30 Tom Tromey <tromey@redhat.com>
6084
6085 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
6086
6087 2013-01-30 Tom Tromey <tromey@redhat.com>
6088
6089 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
6090 * utils.c (gnu_debuglink_crc32): Remove.
6091 * utils.h (gnu_debuglink_crc32): Don't declare.
6092
6093 2013-01-30 Tom Tromey <tromey@redhat.com>
6094
6095 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
6096 (read_structure_type, read_enumeration_type): Remove cast.
6097
6098 2013-01-30 Tom Tromey <tromey@redhat.com>
6099
6100 * dwarf2read.c (read_namespace_type): Remove cast.
6101 (read_typedef): Likewise.
6102
6103 2013-01-29 Tom Tromey <tromey@redhat.com>
6104
6105 * dwarf2read.c (free_dwo_file): Remove assert.
6106
6107 2013-01-29 Tom Tromey <tromey@redhat.com>
6108
6109 * value.c (deprecated_set_value_modifiable): Remove.
6110 * value.h (deprecated_set_value_modifiable): Remove.
6111
6112 2013-01-28 Doug Evans <dje@google.com>
6113
6114 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
6115 to addresses from dwo files.
6116
6117 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
6118
6119 * valops.c (find_overload_match): Remove unused argument 'lax'.
6120 * value.h: Remove unused argument 'lax' from the declaration of
6121 find_overload_match.
6122 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
6123 to find_overload_match.
6124 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
6125 argument to find_overload_match.
6126
6127 2013-01-25 Tom Tromey <tromey@redhat.com>
6128
6129 * dwarf2read.c (processing_has_namespace_info): Remove.
6130 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
6131 (process_die, read_func_scope, dwarf2_start_symtab)
6132 (new_symbol_full): Update.
6133
6134 2013-01-25 Tom Tromey <tromey@redhat.com>
6135
6136 * cp-namespace.c (cp_set_block_scope): Remove.
6137 * cp-support.h (cp_set_block_scope): Remove.
6138 * dbxread.c: Include block.h.
6139 (cp_set_block_scope): New function.
6140 (process_one_symbol): Update.
6141 * dwarf2read.c (read_func_scope): Use block_set_scope.
6142
6143 2013-01-25 Pedro Alves <palves@redhat.com>
6144
6145 * remote.c (add_current_inferior_and_thread): Tweak comment.
6146
6147 2013-01-25 Tom Tromey <tromey@redhat.com>
6148
6149 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6150 (cp_add_using_directive): Add 'copy_names' argument.
6151 * cp-support.h (cp_add_using_directive): Update.
6152 (struct using_direct) <import_src, import_dest, alias,
6153 declaration>: Now const.
6154 * dwarf2read.c (read_import_statement): Use obconcat.
6155 Don't copy names passed to cp_add_using_directive.
6156
6157 2013-01-25 Tom Tromey <tromey@redhat.com>
6158
6159 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
6160
6161 2013-01-25 Pedro Alves <palves@redhat.com>
6162
6163 * remote.c (stop_reply_extract_thread): New.
6164 (add_current_inferior_and_thread): New parameter 'wait_status'.
6165 Handle it.
6166 (remote_start_remote): Pass wait status to
6167 add_current_inferior_and_thread.
6168 (extended_remote_run): Update comment.
6169 (extended_remote_create_inferior_1): Pass wait status to
6170 add_current_inferior_and_thread.
6171
6172 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
6173 Ulrich Weigand <uweigand@de.ibm.com>
6174
6175 * valarith.c (value_vector_widen): New function for replicating a
6176 scalar into a vector.
6177 (value_binop): Use value_vector_widen to widen scalar to vector
6178 rather than casting, this better matches gcc C behaviour.
6179 * valops.c (value_casst): Update logic for casting between vector
6180 types, and for casting from scalar to vector, try to match gcc C
6181 behaviour.
6182 * value.h (value_vector_widen): Declare.
6183 * opencl-lang.c (opencl_value_cast): New opencl specific casting
6184 function, handle special case for casting scalar to vector.
6185 (opencl_relop): Use opencl_value_cast.
6186 (evaluate_subexp_opencl): Use opencl_value_cast instead of
6187 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
6188 in order to use opencl_value_cast.
6189
6190 2013-01-25 Yao Qi <yao@codesourcery.com>
6191
6192 * event-loop.c: Include "queue.h".
6193 (gdb_event_p): New typedef.
6194 (DECLARE_QUEUE_P): Use.
6195 (DEFINE_QUEUE_P): Use.
6196 (async_queue_event): Remove.
6197 (gdb_event_xfree): New.
6198 (initialize_event_loop): New.
6199 (process_event): Use QUEUE macros.
6200 (event_queue): Remove.
6201 (gdb_wait_for_event): Caller update.
6202 (check_async_event_handlers): Likewise.
6203 (poll_timers): Likewise.
6204 * event-loop.h (initialize_event_loop): Declare.
6205 * event-loop.c (gdb_event_xfree): New.
6206 * top.c (gdb_init): Call initialize_event_loop.
6207
6208 2013-01-25 Yao Qi <yao@codesourcery.com>
6209
6210 * event-loop.c (async_queue_event): Remove one parameter
6211 'position'. Remove code handling 'position' == TAIL.
6212 (gdb_wait_for_event): Caller update.
6213 (check_async_event_handlers): Caller update.
6214 (poll_timers): Caller update.
6215 * event-loop.h (enum queue_position): Remove.
6216
6217 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
6218
6219 * MAINTAINERS: Update my email.
6220
6221 2013-01-25 Yao Qi <yao@codesourcery.com>
6222
6223 * main.c (print_gdb_help): Remove "--epoch" from the help
6224 message.
6225
6226 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
6227
6228 * symtab.c (skip_prologue_using_sal): Consider a file
6229 change the same as an increased line number
6230
6231 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
6232
6233 * MAINTAINERS (Write After Approval): Add myself to the list.
6234
6235 2013-01-24 Tom Tromey <tromey@redhat.com>
6236
6237 * ada-lang.h (ada_decode_symbol): Make return type const.
6238 * ada-lang.c (ada_decode_symbol): Likewise.
6239
6240 2013-01-23 Doug Evans <dje@google.com>
6241
6242 * linespec.c (find_linespec_symbols): Make static.
6243
6244 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
6245
6246 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
6247 type on float conversion for complex type.
6248
6249 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
6250
6251 Add a new class gdb.Architecture which exposes GDB's
6252 internal representation of architecture via GDB Python API.
6253 * Makefile.in: Add entries corresponding to the new file
6254 python/py-arch.c.
6255 * NEWS (Python Scripting): Add entries for the new class
6256 gdb.Architecture and the new method gdb.Frame.architecture.
6257 * python/py-arch.c: Implement gdb.Architecture class.
6258 * python/py-frame.c (frapy_arch): Implement the method
6259 gdb.Frame.architecture().
6260 (frame_object_methods): Add 'architecture' to the method table.
6261 * python/python-internal.h: Add declarations of new utility
6262 functions.
6263 * python/python.c (_initialize_python): Initialize
6264 gdb.Architecture class.
6265
6266 2013-01-23 Doug Evans <dje@google.com>
6267
6268 Work around binutils/15021.
6269 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
6270 type_unit_group out of union s. All uses updated.
6271 (read_index_from_section): Watch for index version 8.
6272 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
6273 an imported symtab.
6274 (write_psymtabs_to_index): Increment version number to 8.
6275
6276 2013-01-22 Pedro Alves <palves@redhat.com>
6277
6278 * annotate.c (breakpoint_changed): Skip if breakpoint is not
6279 user-visible.
6280
6281 2013-01-22 Pedro Alves <palves@redhat.com>
6282
6283 * annotate.c (annotate_breakpoints_changed): Rename to ...
6284 (annotate_breakpoints_invalid): ... this. Make static.
6285 (breakpoint_changed): Adjust.
6286 (_initialize_annotate): Always install the observers. Install a
6287 "breakpoint_created" observer.
6288 * annotate.h (annotate_breakpoints_changed): Delete declaration.
6289 * breakpoint.c (set_breakpoint_condition)
6290 (breakpoint_set_commands, do_map_commands_command)
6291 (init_raw_breakpoint, clear_command, set_ignore_count)
6292 (enable_breakpoint_disp): No longer call
6293 annotate_breakpoints_changed.
6294
6295 2013-01-22 Pedro Alves <palves@redhat.com>
6296
6297 * annotate.c: Include "inferior.h".
6298 (frames_invalid_emitted)
6299 (breakpoints_invalid_emitted): New globals.
6300 (async_background_execution_p): New function.
6301 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
6302 emitting the annotation if it has already been emitted.
6303 (annotate_display_prompt): New function.
6304 * annotate.h (annotate_display_prompt): New declaration.
6305 * event-top.c: Include annotate.h.
6306 (display_gdb_prompt): Call annotate_display_prompt.
6307
6308 2013-01-22 Pedro Alves <palves@redhat.com>
6309
6310 * annotate.c (ignore_count_changed): Delete.
6311 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
6312 (annotate_ignore_count_change): Delete.
6313 (annotate_stopped): Don't emit a delayed breakpoints-changed
6314 annotation.
6315 * annotate.h (annotate_ignore_count_change): Delete.
6316 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
6317 annotate_ignore_count_change.
6318
6319 2013-01-22 Tom Tromey <tromey@redhat.com>
6320
6321 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
6322 require_rvalue for a register location.
6323
6324 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
6325
6326 * breakpoint.c (print_one_breakpoint_location): Add MI
6327 field 'thread-groups' when printing a breakpoint.
6328 (output_thread_groups): New function.
6329
6330 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
6331
6332 * python/lib/gdb/commands/explore.py
6333 (CompoundExplorer.explore_expr): Correct the name of a method
6334 being invoked.
6335 (ExploreTypeCommand.invoke): Add a missing 'return'.
6336
6337 2013-01-21 Tom Tromey <tromey@redhat.com>
6338
6339 * gdb_obstack.h (obconcat): Move declaration here, from...
6340 * symfile.h (obconcat): ... here.
6341 * gdb_obstack.c: New file.
6342 (obconcat): Move from...
6343 * symfile.c (obconcat): ... here.
6344 * Makefile.in (SFILES): Add gdb_obstack.c.
6345 (COMMON_OBS): Add gdb_obstack.o.
6346
6347 2013-01-21 Tom Tromey <tromey@redhat.com>
6348
6349 * symfile.h (obsavestring): Don't declare.
6350 * symfile.c (obsavestring): Remove.
6351 * ada-exp.y: Use obstack_copy0, not obsavestring.
6352 * ada-lang.c: Use obstack_copy0, not obsavestring.
6353 * coffread.c: Use obstack_copy0, not obsavestring.
6354 * cp-namespace.c: Use obstack_copy0, not obsavestring.
6355 * dbxread.c: Use obstack_copy0, not obsavestring.
6356 * dwarf2read.c: Use obstack_copy0, not obsavestring.
6357 * jit.c: Use obstack_copy0, not obsavestring.
6358 * mdebugread.c: Use obstack_copy0, not obsavestring.
6359 * psymtab.c: Use obstack_copy0, not obsavestring.
6360 * stabsread.c: Use obstack_copy0, not obsavestring.
6361 * xcoffread.c: Use obstack_copy0, not obsavestring.
6362
6363 2013-01-21 Tom Tromey <tromey@redhat.com>
6364
6365 * dwarf2read.c (fixup_go_packaging): Save package name
6366 on objfile obstack.
6367 * gdbtypes.c (init_type): Don't copy name.
6368
6369 2013-01-21 Tom Tromey <tromey@redhat.com>
6370
6371 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
6372 const.
6373 (struct attribute) <u.str>: Now const.
6374 (struct fnfieldlist) <name>: Now const.
6375 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
6376 (partial_die_parent_scope): Make return type const.
6377 (partial_die_full_name, add_partial_symbol): Update.
6378 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
6379 'name' const.
6380 (find_file_and_directory): Make 'name' and 'comp_dir' const.
6381 (read_file_scope, read_func_scope, dwarf2_add_field)
6382 (dwarf2_add_member_fn, read_structure_type)
6383 (process_enumeration_scope, read_array_type, read_module_type)
6384 (read_base_type, read_subrange_type): Update.
6385 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
6386 (new_symbol_full, guess_full_die_structure_name): Update.
6387 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
6388 (dwarf2_name): Return const type.
6389 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
6390 const.
6391
6392 2013-01-21 Tom Tromey <tromey@redhat.com>
6393
6394 * gdbtypes.c (init_type): Make 'name' const.
6395 * gdbtypes.h (init_type): Update.
6396
6397 2013-01-21 Tom Tromey <tromey@redhat.com>
6398
6399 * buildsym.c (patch_subfile_names): Use set_last_source_file.
6400 (start_symtab): Make 'name' and 'dirname' const. Use
6401 set_last_source_file.
6402 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
6403 (last_source_file): Define. Now static.
6404 (set_last_source_file, get_last_source_file): New functions.
6405 * buildsym.h (last_source_file): Don't declare.
6406 (start_symtab): Update.
6407 (set_last_source_file, get_last_source_file): Declare.
6408 * coffread.c (complete_symtab): Use set_last_source_file.
6409 (coff_end_symtab): Likewise.
6410 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
6411 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
6412 set_last_source_file.
6413 (process_one_symbol): Use get_last_source_file.
6414 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
6415 (psymtab_to_symtab_1): Use get_last_source_file.
6416 * xcoffread.c (process_linenos): Use get_last_source_file.
6417 (complete_symtab): Use set_last_source_file.
6418 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
6419 (scan_xcoff_symtab): Use set_last_source_file.
6420
6421 2013-01-21 Tom Tromey <tromey@redhat.com>
6422
6423 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
6424 (symbol_set_names): Remove casts. Handle field const-ness.
6425
6426 2013-01-21 Tom Tromey <tromey@redhat.com>
6427
6428 * dwarf2read.c (new_symbol_full): Remove cast.
6429 * symtab.c (symbol_set_demangled_name): Make 'name' const.
6430 * symtab.h (symbol_set_demangled_name): Update.
6431
6432 2013-01-21 Tom Tromey <tromey@redhat.com>
6433
6434 * main.c (captured_main): Call bfd_init.
6435
6436 2013-01-21 Tom Tromey <tromey@redhat.com>
6437
6438 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
6439 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
6440 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
6441 * NEWS: Update.
6442
6443 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6444
6445 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
6446
6447 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6448
6449 Fix gdb.fortran/common-block.exp crash in PIE mode.
6450 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
6451 LOC_COMMON_BLOCK.
6452 * f-valprint.c (info_common_command_for_block): Expect
6453 LOC_COMMON_BLOCK in gdb_assert.
6454 * symtab.h (struct general_symbol_info): Update comment for the
6455 common_block member.
6456 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
6457 (enum address_class): New member LOC_COMMON_BLOCK.
6458
6459 2013-01-18 David Blaikie <dblaikie@gmail.com>
6460
6461 * MAINTAINERS (Write After Approval): Add "David Blaikie".
6462
6463 2013-01-18 Tom Tromey <tromey@redhat.com>
6464
6465 PR c++/14999:
6466 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
6467 Call require_rvalue.
6468
6469 2013-01-18 Yao Qi <yao@codesourcery.com>
6470
6471 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
6472 (dbx_read_symtab): New declaration.
6473 (dbx_psymtab_to_symtab): Delete.
6474 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
6475 Rename parameter PST to SELF. Exchanged two parameters.
6476 (start_psymtab): Caller update.
6477 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
6478 (dwarf2_read_symtab): New declaration.
6479 (dwarf2_psymtab_to_symtab): Delete.
6480 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
6481 Rename parameter PST to SELF. Exchanged two parameters.
6482 (create_partial_symtab): Caller update.
6483 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
6484 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
6485 Rename parameter PST to SELF. Exchanged two parameters.
6486 (parse_partial_symbols, new_psymtab): Caller update.
6487 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
6488 two parameters.
6489 * psymtab.c (psymtab_to_symtab): Caller update.
6490 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
6491 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
6492 Rename parameter PST to SELF. Exchanged two parameters.
6493 (xcoff_start_psymtab): Caller update.
6494
6495 2013-01-18 Yao Qi <yao@codesourcery.com>
6496
6497 * infrun.c (proceed): Rename local variable 'oneproc' to
6498 'force_step'.
6499
6500 2013-01-17 Doug Evans <dje@google.com>
6501
6502 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
6503 (dw2_build_type_unit_groups): Delete. All uses updated.
6504
6505 * symtab.h (struct symbol_search): Add comment.
6506
6507 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6508
6509 * symtab.c (compare_filenames_for_search): New comment for
6510 HAS_DRIVE_SPEC.
6511
6512 2013-01-17 Tom Tromey <tromey@redhat.com>
6513
6514 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
6515
6516 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6517
6518 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
6519 initialize it by existing make_cleanup. Call new do_cleanups.
6520
6521 2013-01-17 Tom Tromey <tromey@redhat.com>
6522
6523 * cp-abi.c (cp_abi_completer): New function.
6524 (_initialize_cp_abi): Set completer for "set cp-abi".
6525
6526 2013-01-17 Tom Tromey <tromey@redhat.com>
6527
6528 * mem-break.c: Remove obsolete comment.
6529 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
6530
6531 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
6532
6533 * jit.c (jit_reader_load_command): Interpret the jit reader name
6534 as an absolute path if it begins with a forward slash.
6535
6536 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
6537
6538 PR gdb/14550
6539
6540 * jit.c (finalize_symtab): Ensure that only the global block has a
6541 NULL superblock.
6542
6543 2013-01-17 Pedro Alves <palves@redhat.com>
6544
6545 * acinclude.m4: Include ../config/plugins.m4,
6546 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
6547 * Makefile.in (aclocal_m4_deps): Update.
6548 * aclocal.m4: Renegerate.
6549
6550 2013-01-16 Doug Evans <dje@google.com>
6551
6552 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
6553
6554 2013-01-16 Pedro Alves <palves@redhat.com>
6555 Tom Tromey <tromey@redhat.com>
6556
6557 PR cli/7221:
6558 * NEWS: Add "catch signal".
6559 * breakpoint.c (base_breakpoint_ops): No longer static.
6560 (bpstat_explains_signal): New function.
6561 (init_catchpoint): No longer static.
6562 (base_breakpoint_explains_signal): New function.
6563 (base_breakpoint_ops): Initialize new field.
6564 * breakpoint.h (enum bpstat_signal_value): New.
6565 (struct breakpoint_ops) <explains_signal>: New field.
6566 (bpstat_explains_signal): Remove macro, declare as function.
6567 (base_breakpoint_ops, init_catchpoint): Declare.
6568 * break-catch-sig.c: New file.
6569 * inferior.h (signal_catch_update): Declare.
6570 * infrun.c (signal_catch): New global.
6571 (handle_syscall_event): Update for change to
6572 bpstat_explains_signal.
6573 (handle_inferior_event): Likewise. Always handle random signals
6574 via bpstats.
6575 (signal_cache_update): Check signal_catch.
6576 (signal_catch_update): New function.
6577 (_initialize_infrun): Initialize signal_catch.
6578 * Makefile.in (SFILES): Add break-catch-sig.c.
6579 (COMMON_OBS): Add break-catch-sig.o.
6580
6581 2013-01-16 Tom Tromey <tromey@redhat.com>
6582
6583 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
6584 (print_one_catch_solib, print_one_catch_syscall)
6585 (print_one_catch_exec, print_one_exception_catchpoint): Emit
6586 "catch-type".
6587
6588 2013-01-16 Yao Qi <yao@codesourcery.com>
6589
6590 * printcmd.c (current_display_number): Make it static.
6591
6592 2013-01-16 Yao Qi <yao@codesourcery.com>
6593
6594 * infcmd.c (step_once): Don't check '!single_inst' as it was
6595 checked before.
6596
6597 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6598
6599 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
6600
6601 2013-01-14 Tom Tromey <tromey@redhat.com>
6602
6603 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
6604 set command.
6605 * command.h (add_setshow_string_noescape_cmd): Update.
6606 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
6607 (complete_set_gnutarget): New function.
6608 (_initialize_core): Set the "set gnutarget" completer.
6609
6610 2013-01-14 Tom Tromey <tromey@redhat.com>
6611
6612 PR symtab/14442:
6613 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
6614 (c_type_print_modifier): Likewise.
6615 * dwarf2read.c (read_tag_restrict_type): New function.
6616 (read_type_die_1): Handle DW_TAG_restrict_type.
6617 * gdbtypes.c (make_restrict_type): New function.
6618 (recursive_dump_type): Handle TYPE_RESTRICT.
6619 * gdbtypes.h (enum type_flag_values): Renumber.
6620 (enum type_instance_flag_value): Add
6621 TYPE_INSTANCE_FLAG_RESTRICT.
6622 (TYPE_RESTRICT): New macro.
6623 (make_restrict_type): Declare.
6624
6625 2013-01-14 Tom Tromey <tromey@redhat.com>
6626
6627 PR symtab/14931:
6628 * psymtab.c (struct psymtab_state): New.
6629 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
6630 functions.
6631 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
6632 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
6633
6634 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
6635 Pedro Alves <palves@redhat.com>
6636
6637 PR remote/14786
6638
6639 * remote.c (remote_threads_info): Make a copy of the reply from
6640 qfThreadInfo and use that instead of rs->buf.
6641
6642 2013-01-14 Yao Qi <yao@codesourcery.com>
6643
6644 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
6645 (dbx_psymtab_to_symtab): Likewise.
6646 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
6647 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
6648 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
6649
6650 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6651
6652 * parse.c (parse_exp_in_context): New variable inner_chain. Call
6653 make_cleanup_restore_current_language. Call set_language. Move
6654 OLD_CHAIN and INNER_CHAIN cleanups.
6655 * utils.c (do_restore_current_language)
6656 (make_cleanup_restore_current_language): New functions.
6657 * utils.h (make_cleanup_restore_current_language): New declaration.
6658
6659 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6660
6661 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
6662 non-existing files.
6663
6664 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
6665 non-existing files if FILENAME is already absolute.
6666
6667 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6668
6669 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
6670 fputs_filtered. Append trailing newline.
6671
6672 2013-01-11 Yao Qi <yao@codesourcery.com>
6673 Stan Shebs <stan@codesourcery.com>
6674
6675 * psymtab.c (init_psymbol_list): Clarify the comment.
6676
6677 2013-01-11 Yao Qi <yao@codesourcery.com>
6678
6679 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
6680 (update_dprintf_command_list): Assert that 'printf_line' is
6681 non-null. Remove condition check.
6682
6683 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6684
6685 Code cleanup.
6686 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
6687 type const char *.
6688 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
6689 const char *.
6690 * tui/tui-source.h (tui_source_is_displayed): Likewise.
6691
6692 2013-01-09 Anthony Green <green@moxielogic.com>
6693
6694 * cp-abi.c (cplus_print_vtable): Don't return value from void
6695 function.
6696 * ada-lang.c (re_set_catch_assert): Ditto.
6697
6698 2013-01-09 Doug Evans <dje@google.com>
6699
6700 * symfile.h (quick_symbol_functions): Delete member
6701 pre_expand_symtabs_matching. All uses removed.
6702 * dwarf2read.c (dw2_lookup_symbol): Implement.
6703 (dw2_do_expand_symtabs_matching): Delete.
6704 (dw2_pre_expand_symtabs_matching): Delete.
6705 (struct dw2_symtab_iterator): New type.
6706 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
6707 (dw2_expand_symtabs_for_function): Rewrite.
6708 (dwarf2_gdb_index_functions): Update.
6709 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
6710 (psym_functions): Update.
6711
6712 2013-01-09 Tom Tromey <tromey@redhat.com>
6713
6714 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
6715 * configure: Rebuild.
6716 * configure.ac: Add somread.o to the build if BFD has SOM
6717 support.
6718 * somread.c: Include som/aout.h, not syms.h.
6719 (som_symtab_read): Use som_external_symbol_dictionary_record.
6720 Unpack records manually.
6721 (_initialize_somread): Declare.
6722
6723 2012-01-08 Mike Frysinger <vapier@gentoo.org>
6724
6725 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
6726 Cast return_address to 64bits.
6727
6728 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
6729
6730 * printcmd.c: Remove define of function output_command.
6731 * tracepoint.c: Remove extern of function output_command.
6732 * valprint.h: (output_command): New extern.
6733
6734 2013-01-07 Tom Tromey <tromey@redhat.com>
6735
6736 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
6737 Remove.
6738 (objc_language_defn): Use c_printchar, c_printstr,
6739 c_emit_char.
6740
6741 2013-01-07 Tom Tromey <tromey@redhat.com>
6742
6743 PR cli/7719:
6744 * NEWS: Update.
6745 * ada-valprint.c (printstr, print_field_values): Remove
6746 "inspect_it" code.
6747 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
6748 code.
6749 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
6750 code.
6751 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
6752 * main.c (captured_main): Remove "epoch" argument.
6753 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
6754 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
6755 * p-valprint.c (pascal_object_print_value_fields): Remove
6756 "inspect_it" code.
6757 * printcmd.c (print_command_1): Remove 'inspect' argument.
6758 (print_command, call_command): Update.
6759 (inspect_command): Remove.
6760 (_initialize_printcmd): Make "inspect" an alias for "print".
6761 * top.c (epoch_interface): Remove.
6762 * top.h (epoch_interface): Remove.
6763 * valprint.c (user_print_options): Update.
6764 (print_converted_chars_to_obstack): Remove "inspect_it" code.
6765 * valprint.h (struct value_print_options) <inspect_it>: Remove
6766 field.
6767
6768 2013-01-04 Tom Tromey <tromey@redhat.com>
6769
6770 * valprint.h (read_string): Add 'extern'.
6771
6772 2013-01-07 Joel Brobecker <brobecker@adacore.com>
6773
6774 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
6775 used to decide whether to define darwin_read_dyld_info or not.
6776
6777 2013-01-03 Pierre Muller <muller@sourceware.org>
6778
6779 * main.c (relocate_gdb_directory): Avoid calling stat function
6780 if DIR is empty.
6781
6782 2013-01-03 Yao Qi <yao@codesourcery.com>
6783
6784 * psymtab.c (fixup_psymbol_section): Update declaration.
6785 (fixup_psymbol_section): Remove code returning value.
6786
6787 2013-01-03 Yao Qi <yao@codesourcery.com>
6788
6789 * symtab.h: Remove some out of date comments.
6790 (enum exception_event_kind): Move it ...
6791 * breakpoint.c: ... here.
6792
6793 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
6794
6795 PR gdb/14405
6796 * darwin-nat.c (darwin_read_dyld_info): Only build if
6797 TASK_DYLD_INFO_COUNT is defined.
6798 (darwin_xfer_partial): Call darwin_read_dyld_info only if
6799 TASK_DYLD_INFO_COUNT is defined.
6800
6801 2013-01-02 Tom Tromey <tromey@redhat.com>
6802
6803 * symfile.h (struct ecoff_debug_hack): Remove.
6804 * objfiles.c: Don't include mdebugread.h.
6805
6806 2013-01-02 Tom Tromey <tromey@redhat.com>
6807
6808 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
6809 * configure.ac: Check for Mach-O support in BFD. Update
6810 CONFIG_OBS.
6811 * configure: Rebuild.
6812
6813 2013-01-02 Tom Tromey <tromey@redhat.com>
6814
6815 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
6816 * configure.ac: Use GDB_AC_CHECK_BFD.
6817 * configure: Rebuild.
6818
6819 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
6820
6821 * MAINTAINERS: Update my email.
6822
6823 2013-01-01 Joel Brobecker <brobecker@adacore.com>
6824
6825 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
6826
6827 2013-01-01 Joel Brobecker <brobecker@adacore.com>
6828
6829 * rs6000-nat.c (bss_data_overlap): New function.
6830 (vmap_symtab): Use it to adjust the .bss section's offset.
6831
6832 2013-01-01 Joel Brobecker <brobecker@adacore.com>
6833
6834 Update year range in copyright notice of all files.
6835
6836 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
6837
6838 * top.c (print_gdb_version): Update copyright year.
6839
6840 For older changes see ChangeLog-2012.
6841 \f
6842 Local Variables:
6843 mode: change-log
6844 left-margin: 8
6845 fill-column: 74
6846 version-control: never
6847 coding: utf-8
6848 End:
This page took 0.157036 seconds and 3 git commands to generate.