PR gdb/15415
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 PR gdb/15415
4 * corefile.c (get_exec_file): Use exec_filename.
5 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
6 * exec.c (exec_close): Free EXEC_FILENAME.
7 (exec_file_attach): New variable canonical_pathname. Use
8 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
9 EXEC_FILENAME.
10 * exec.h (exec_filename): New.
11 * inferior.c (print_inferior, inferior_command): Use
12 PSPACE_EXEC_FILENAME.
13 * mi/mi-main.c (print_one_inferior): Likewise.
14 * progspace.c (clone_program_space, print_program_space): Likewise.
15 * progspace.h (struct program_space): New field pspace_exec_filename.
16 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
17 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
18
19 2013-08-28 Will Newton <will.newton@linaro.org>
20
21 * common/linux-ptrace.c: Include stdint.h unconditionally.
22
23 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
24
25 Code cleanup.
26 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
27
28 2013-08-28 Yao Qi <yao@codesourcery.com>
29 Pedro Alves <palves@redhat.com>
30
31 * event-top.c (gdb_setup_readline): Call stderr_fileopen
32 instead of stdio_fileopen.
33 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
34 .Call stderr_fileopen instead of stdio_fileopen.
35 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
36 [__MINGW32__] (stderr_file_fputs): New function.
37 (stderr_fileopen): New function.
38 * ui-file.h (stderr_fileopen): Declare.
39
40 2013-08-27 Doug Evans <dje@google.com>
41
42 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
43 (struct dwarf2_per_cu_data): Ditto.
44 (maybe_queue_comp_unit): Delete forward decl. Add comment.
45 (process_imported_unit_die): Ditto.
46 (follow_die_sig_1): Simplify assert.
47
48 2013-08-27 Pedro Alves <palves@redhat.com>
49
50 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
51 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
52 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
53 windows_xfer_memory directly.
54 (init_windows_ops): Don't install a deprecated_xfer_memory method.
55
56 2013-08-27 Pedro Alves <palves@redhat.com>
57
58 * darwin-nat.c (darwin_xfer_memory): Delete.
59 (_initialize_darwin_inferior): Don't install a
60 deprecated_xfer_memory method.
61
62 2013-08-27 Pedro Alves <pedro@codesourcery.com>
63 Yao Qi <yao@codesourcery.com>
64
65 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
66 (parse_no_frames_option): Remove.
67 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
68 (mi_cmd_stack_list_args): Adjust.
69 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
70 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
71 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
72 Caller update.
73 (list_args_or_locals): New parameter 'skip_unavailable'.
74 Handle it.
75 * valprint.c (scalar_type_p): Rename to ...
76 (val_print_scalar_type_p): ... this. Make extern.
77 (val_print, value_check_printable): Adjust.
78 * valprint.h (val_print_scalar_type_p): Declare.
79 * value.c (value_entirely_unavailable): New function.
80 * value.h (value_entirely_unavailable): Declare.
81
82 * NEWS: Mention the new option "--skip-unavailable" to MI
83 commands '-stack-list-locals', '-stack-list-arguments' and
84 '-stack-list-variables'.
85
86 2013-08-27 Yao Qi <yao@codesourcery.com>
87
88 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
89 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
90 options.
91 * mi/mi-getopt.c (mi_getopt): Remove.
92 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
93 'error_on_unknown'.
94 (mi_getopt): Call mi_getopt_1.
95 (mi_getopt_silent): New.
96 * mi/mi-getopt.h (mi_getopt_silent): Declare.
97
98 2013-08-26 Doug Evans <dje@google.com>
99
100 PR symtab/15885
101 * dwarf2read.c (dw2_dump): Print some minimal information indicating
102 .gdb_index is in use.
103 * symfile.c (reread_symbols): Reset objfile->sf.
104
105 * NEWS: Document "mt print objfiles" now takes optional regexp.
106 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
107 regexp of objfiles to print.
108 (_initialize_symmisc): Update doc string for "mt print objfiles".
109
110 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
111 missing debug info checks.
112
113 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
114 Ulrich Weigand <uweigand@de.ibm.com>
115
116 * xcoffread.c (arrange_linetable): Add fix to correctly handle
117 line tables generated by XLC compiled binaries.
118
119 2013-08-23 Doug Evans <dje@google.com>
120
121 * symmisc.c (dump_symtab): Delete prototype.
122 (dump_msymbols, dump_objfile): Ditto.
123 (maintenance_info_symtabs): Mark as dont_repeat.
124 (_initialize_symmisc): Improve doc string for "mt info symtabs".
125
126 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
127 debugging printf to better location.
128
129 2013-08-23 Pedro Alves <palves@redhat.com>
130
131 * target.c (target_read_live_memory): Change type of 'ret' local
132 to LONGEST.
133
134 2013-08-23 Pedro Alves <palves@redhat.com>
135
136 * remote.c (remote_write_bytes_aux, remote_write_bytes)
137 (remote_read_bytes): Change return type to LONGEST, and adjust to
138 return a target_xfer_error on error.
139 (remote_xfer_memory): Delete.
140 (remote_flash_write): Change type of 'ret' local to LONGEST.
141 (remote_xfer_partial, remote_xfer_partial): Adjust.
142 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
143
144 2013-08-23 Pierre Muller <muller@sourceware.org>
145
146 ARI fix: Push # directives to start of line.
147 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
148
149 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
150
151 PR gdb/15501
152 * breakpoint.c (enable_command, disable_command): Iterate over
153 all specified breakpoint locations.
154
155 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
156
157 * common/linux-ptrace.c (linux_fork_to_function): Push #
158 directives to the start of the line.
159 (linux_check_ptrace_features): Fix warning message to use
160 the "_" markup.
161
162 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
163
164 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
165 nat/linux-waitpid.h.
166 (linux-waitpid.o): New object file rule.
167 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
168 (current_ptrace_options): Moved from linux-nat.c.
169 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
170 parameters.
171 (linux_fork_to_function): New function.
172 (linux_grandchild_function): Likewise.
173 (linux_child_function): Likewise.
174 (linux_check_ptrace_features): New function, heavily
175 based on linux-nat.c:linux_test_for_tracefork.
176 (linux_enable_event_reporting): New function.
177 (ptrace_supports_feature): Likewise.
178 (linux_supports_tracefork): Likewise.
179 (linux_supports_traceclone): Likewise.
180 (linux_supports_tracevforkdone): Likewise.
181 (linux_supports_tracesysgood): Likewise.
182 * common/linux-ptrace.h (HAS_NOMMU): Moved from
183 gdbserver/linux-low.c.
184 (linux_enable_event_reporting): New declaration.
185 (linux_supports_tracefork): Likewise.
186 (linux_supports_traceclone): Likewise.
187 (linux_supports_tracevforkdone): Likewise.
188 (linux_supports_tracesysgood): Likewise.
189 * config.in (PTRACE_TYPE_ARG4): Regenerate.
190 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
191 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
192 * config/arm/linux.mh (NATDEPFILES): Likewise.
193 * config/i386/linux.mh (NATDEPFILES): Likewise.
194 * config/i386/linux64.mh (NATDEPFILES): Likewise.
195 * config/ia64/linux.mh (NATDEPFILES): Likewise.
196 * config/m32r/linux.mh (NATDEPFILES): Likewise.
197 * config/m68k/linux.mh (NATDEPFILES): Likewise.
198 * config/mips/linux.mh (NATDEPFILES): Likewise.
199 * config/pa/linux.mh (NATDEPFILES): Likewise..
200 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
201 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
202 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
203 * config/sparc/linux.mh (NATDEPFILES): Likewise.
204 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
205 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
206 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
207 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
208 ptrace's 4th argument's types.
209 Check the type of PTRACE_TYPE_ARG4.
210 * configure: Regenerate.
211 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
212 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
213 (linux_supports_tracefork_flag): Remove.
214 (linux_supports_tracesysgood_flag): Likewise.
215 (linux_supports_tracevforkdone_flag): Likewise.
216 (current_ptrace_options): Moved to
217 common/linux-ptrace.c.
218 (linux_tracefork_child): Remove.
219 (my_waitpid): Remove.
220 (linux_test_for_tracefork): Renamed to
221 linux_check_ptrace_features and moved to common/linux-ptrace.c.
222 (linux_test_for_tracesysgood): Remove.
223 (linux_supports_tracesysgood): Remove.
224 (linux_supports_tracefork): Remove.
225 (linux_supports_tracevforkdone): Remove.
226 (linux_enable_tracesysgood): Remove.
227 (linux_enable_event_reporting): Remove.
228 (linux_init_ptrace): New function.
229 (linux_child_post_attach): Call linux_init_ptrace.
230 (linux_child_post_startup_inferior): Call linux_init_ptrace.
231 (linux_child_follow_fork): Call linux_supports_tracefork
232 and linux_supports_tracevforkdone.
233 (linux_child_insert_fork_catchpoint): Call
234 linux_supports_tracefork.
235 (linux_child_insert_vfork_catchpoint): Likewise.
236 (linux_child_set_syscall_catchpoint): Call
237 linux_supports_tracesysgood.
238 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
239 * nat/linux-nat.h: New file.
240 * nat/linux-waitpid.c: New file.
241 * nat/linux-waitpid.h: New file.
242
243 2013-08-22 Samuel Bronson <naesten@gmail.com>
244
245 ARM Linux support for `catch syscall'.
246 * syscalls/arm-linux.py: New file.
247 * syscalls/arm-linux.xml: Likewise.
248 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
249 (arm_linux_init_abi): Register the new function and syscall xml file.
250 * data-directory/Makefile.in: Install the new syscall xml file.
251 * NEWS: Brag about this.
252
253 2013-08-22 Pedro Alves <palves@redhat.com>
254
255 PR gdb/15871
256 * corefile.c (target_xfer_memory_error): New function.
257 (memory_error): Defer EIO to target_memory_error.
258 (read_memory): Use target_xfer_partial, and handle finer-grained
259 target xfer errors.
260 * target.c (target_xfer_error_to_string): New function.
261 (memory_xfer_partial_1): If memory is known to be
262 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
263 (target_xfer_partial): Make extern.
264 * target.h (enum target_xfer_error): New enum.
265 (target_xfer_error_to_string): Declare function.
266 (target_xfer_partial): Declare function.
267 (struct target_ops) <xfer_partial>: Adjust describing comment.
268
269 2013-08-22 Alan Modra <amodra@gmail.com>
270
271 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
272 * configure.tgt: Likewise as targets.
273
274 2013-08-20 Doug Evans <dje@google.com>
275
276 * buildsym.c (subfile_stack): Move here from buildsym.h.
277 (pending_macros): Ditto.
278 (get_macro_table): New function.
279 (buildsym_init): Initialize subfile_stack.
280 * coffread.c (type_vector,type_vector_length): Moved here from
281 buildsym.h.
282 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
283 (coff_symtab_read): Use it.
284 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
285 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
286 with call to get_macro_table.
287 * stabsread.c (type_vector,type_vector_length): Moved here from
288 buildsym.h.
289 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
290 * buildsym.h (get_macro_table): Declare.
291
292 2013-08-20 Tom Tromey <tromey@redhat.com>
293
294 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
295 Update.
296 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
297
298 2013-08-20 Doug Evans <dje@google.com>
299
300 * blockframe.c: Remove #include "psymtab.h".
301 * cp-support.c: Ditto.
302 * source.c: Ditto.
303 * stack.c: Ditto.
304
305 2013-08-20 Tom Tromey <tromey@redhat.com>
306
307 PR python/15816:
308 * exceptions.h (return_mask): Now an enum.
309 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
310 enum constants.
311
312 2013-08-20 Tom Tromey <tromey@redhat.com>
313
314 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
315 get_objfile_arch.
316 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
317 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
318 * jit.c (jit_object_close_impl): Update.
319 * jv-lang.c (get_dynamics_objfile): Update.
320 * linespec.c (add_minsym): Use get_dynamics_objfile.
321 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
322 (allocate_objfile): Don't initialize 'gdbarch' field.
323 (get_objfile_arch): Update.
324 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
325 moved from...
326 (struct objfile) <gdbarch>: ... here. Remove.
327 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
328 get_objfile_arch.
329 * symfile.c (init_entry_point_info): Use get_objfile_arch.
330
331 2013-08-20 Alan Modra <amodra@gmail.com>
332
333 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
334 for IBM long double nan and inf.
335 (floatformat_is_negative, floatformat_classify,
336 floatformat_mantissa): Similarly.
337 (floatformat_ieee_single, floatformat_ieee_double,
338 floatformat_ieee_quad, floatformat_arm_ext,
339 floatformat_ia64_spill): Delete unused vars.
340 (_initialize_doublest): Delete unused function.
341 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
342 little-endian variants of floatformat_ibm_long_double.
343
344 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
345
346 * Makefile.in (SFILES): Remove common/target-common.c and
347 add target/waitstatus.c.
348 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
349 target/resume.h, target/wait.h and target/waitstatus.h.
350 (COMMON_OBS): Remove target-common.o and add
351 waitstatus.o.
352 (target-common.o): Remove.
353 (waitstatus.o): New target object file.
354 * common/target-common.c: Move contents to
355 target/waitstatus.c and remove.
356 * common/target-common.h: Move contents to other files and
357 remove.
358 (enum resume_kind: Move to target/resume.h.
359 (TARGET_WNOHANG): Move to target/wait.h.
360 (enum target_waitkind): Move to target/waitstatus.h.
361 (struct target_waitstatus): Likewise.
362 * target.h: Do not include target-common.h and
363 include target/resume.h, target/wait.h and
364 target/waitstatus.h.
365 * target/resume.h: New file.
366 * target/wait.h: New file.
367 * target/waitstatus.h: New file.
368 * target/waitstatus.c: New file.
369
370 2013-08-19 Pedro Alves <palves@redhat.com>
371
372 * linux-nat.c (linux_test_for_tracefork)
373 (linux_test_for_tracesysgood, linux_child_follow_fork)
374 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
375 (linux_nat_wait_1): Extend comment.
376 (linux_async_pipe): Add comment.
377
378 2013-08-15 Kevin Buettner <kevinb@redhat.com>
379
380 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
381 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
382 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
383 Update to account for fact that PC is now a pseudo-register.
384 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
385 cases for RL78_PC_REGNUM.
386
387 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
388
389 PR cli/15841
390 * top.c (quit_force): Skip writing history file
391 if input is not from terminal.
392
393 2013-08-14 Tom Tromey <tromey@redhat.com>
394
395 * remote.c (struct remote_state) <echo_nextthread, nextthread,
396 resultthreadlist>: New fields.
397 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
398 (remote_get_threadlist, remote_threadlist_iterator): Use
399 new fields. Remove static variables.
400
401 2013-08-14 Tom Tromey <tromey@redhat.com>
402
403 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
404 remote_watch_data_address>: New fields.
405 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
406 (process_stop_reply, remote_wait_as)
407 (remote_check_watch_resources, remote_stopped_data_address): Update.
408
409 2013-08-14 Tom Tromey <tromey@redhat.com>
410
411 * remote.c (struct remote_state) <async_client_callback,
412 async_client_context>: New fields.
413 (async_client_callback, async_client_context): Remove.
414 (remote_async_serial_handler, remote_async): Update.
415
416 2013-08-14 Tom Tromey <tromey@redhat.com>
417
418 * remote.c (sizeof_pkt): Remove.
419 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
420
421 2013-08-14 Tom Tromey <tromey@redhat.com>
422
423 * remote.c (struct remote_state) <use_threadinfo_query,
424 use_threadextra_query>: New fields.
425 (remote_threads_info, remote_threads_extra_info)
426 (remote_open_1): Update.
427
428 2013-08-14 Tom Tromey <tromey@redhat.com>
429
430 * remote.c (struct remote_state) <finished_object,
431 finished_annex, finished_offset>: New fields.
432 (remote_read_qxfer): Use remote_state fields; remove static
433 variables.
434
435 2013-08-14 Tom Tromey <tromey@redhat.com>
436
437 * remote.c (struct remote_state) <last_sent_step>:
438 New field.
439 (last_sent_step): Remove.
440 (remote_resume, remote_wait_as): Update.
441
442 2013-08-14 Tom Tromey <tromey@redhat.com>
443
444 * remote.c (struct remote_state) <last_sent_signal>:
445 New field.
446 (last_sent_signal): Remove.
447 (new_remote_state, remote_resume, remote_wait_as): Update.
448
449 2013-08-14 Tom Tromey <tromey@redhat.com>
450
451 * remote.c (struct remote_state) <last_program_signals_packet>:
452 New field.
453 (last_program_signals_packet): Remove.
454 (remote_program_signals, remote_open_1): Update.
455
456 2013-08-14 Tom Tromey <tromey@redhat.com>
457
458 * remote.c (struct remote_state) <last_pass_packet>:
459 New field.
460 (last_pass_packet): Remove.
461 (remote_pass_signals, remote_open_1): Update.
462
463 2013-08-14 Tom Tromey <tromey@redhat.com>
464
465 * remote.c (struct remote_state) <remote_traceframe_number>:
466 New field.
467 (remote_traceframe_number): Remove.
468 (new_remote_state, remote_open_1, set_remote_traceframe)
469 (remote_trace_find): Update.
470
471 2013-08-14 Tom Tromey <tromey@redhat.com>
472
473 * remote.c (struct remote_state) <general_thread, continue_thread>:
474 New fields.
475 (general_thread, continue_thread): Remove.
476 (record_currthread, set_thread, set_general_process)
477 (remote_open_1, extended_remote_attach_1, remote_wait_as)
478 (extended_remote_mourn_1): Update.
479
480 2013-08-14 Tom Tromey <tromey@redhat.com>
481
482 * remote.c (struct remote_state) <remote_desc>: New field.
483 (remote_desc): Remove.
484 (remote_threads_info, remote_threads_extra_info, remote_close)
485 (send_interrupt_sequence, remote_start_remote, remote_open_1)
486 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
487 (remote_hostio_send_command, remote_file_put, remote_file_get)
488 (remote_file_delete, remote_can_async_p, remote_is_async_p)
489 (remote_async, remote_new_objfile, set_range_stepping): Update.
490
491 2013-08-14 Tom Tromey <tromey@redhat.com>
492
493 * remote.c (remote_state): Now a pointer.
494 (get_remote_state_raw): Update.
495 (new_remote_state): New function.
496 (_initialize_remote): Use new_remote_state.
497
498 2013-08-14 Tom Tromey <tromey@redhat.com>
499
500 * remote.c (remote_protocol_features): Now const.
501
502 2013-08-14 Tom Tromey <tromey@redhat.com>
503
504 * remote.c (crc32_table, crc32): Remove.
505 (remote_verify_memory): Use xcrc32.
506
507 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
508
509 * value.h (create_internalvar_type_lazy): Adjust prototype
510 declaration.
511
512 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
513
514 * common/format.c (parse_format_string): Don't allow '#' flag for
515 pointer arguments in format string.
516
517 2013-08-13 Pierre Muller <muller@sourceware.org>
518
519 * utils.c (init_page_info): Only call tgetnum function
520 if rl_get_screen_size did not return useful values.
521
522 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
523
524 PR breakpoints/15117
525 * linespec.c (linespec_parse_basic): Check for convenience
526 variable or history value while parsing.
527
528 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
529
530 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
531 AVR.
532 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
533 different signals between the generic Linux kernel implementation
534 and AVR's.
535 (avr_linux_gdb_signal_from_target): Delete.
536 (avr_linux_gdb_signal_to_target): Delete.
537 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
538
539 2013-08-09 Doug Evans <dje@google.com>
540
541 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
542 entries.
543
544 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
545
546 * linux-tdep.c: Define enum with generic signal numbers.
547 (linux_gdb_signal_from_target): New function.
548 (linux_gdb_signal_to_target): Likewise.
549 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
550 methods to the functions above.
551 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
552 (linux_gdb_signal_to_target): Likewise.
553 * alpha-linux-tdep.c: Define new enum with signals different
554 from generic Linux kernel.
555 (alpha_linux_gdb_signal_from_target): New function.
556 (alpha_linux_gdb_signal_to_target): Likewise.
557 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
558 with the functions mentioned above.
559 * avr-tdep.c: Define enum with differences between Linux kernel
560 and AVR signals.
561 (avr_linux_gdb_signal_from_target): New function.
562 (avr_linux_gdb_signal_to_target): Likewise.
563 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
564 the functions mentioned above.
565 * sparc-linux-tdep.c: Define enum with differences between SPARC
566 and generic Linux kernel signal numbers.
567 (sparc32_linux_gdb_signal_from_target): New function.
568 (sparc32_linux_gdb_signal_to_target): Likewise.
569 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
570 to the functions defined above.
571 * xtensa-linux-tdep.c: Define enum with differences between
572 Xtensa and Linux kernel generic signals.
573 (xtensa_linux_gdb_signal_from_target): New function.
574 (xtensa_linux_gdb_signal_to_target): Likewise.
575 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
576 to the functions defined above.
577 * mips-linux-tdep.c: Define enum with differences between
578 signals in MIPS and Linux kernel generic ones.
579 (mips_gdb_signal_to_target): New function.
580 (mips_gdb_signal_from_target): Redefine to use new enum, handle
581 only different signals from the Linux kernel generic.
582 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
583 the functions defined above.
584 * mips-linux-tdep.h (enum mips_signals): Remove.
585
586 2013-08-09 Pedro Alves <palves@redhat.com>
587
588 * avr-tdep.c (XMALLOC): Delete macro.
589 * cli/cli-dump.c (XMALLOC): Delete macro.
590
591 2013-08-09 Pedro Alves <palves@redhat.com>
592
593 * cli/cli-dump.c: Don't include cli/cli-dump.h.
594 (scan_expression_with_cleanup, scan_filename_with_cleanup)
595 (fopen_with_cleanup, add_dump_command): Make static.
596 * cli/cli-dump.h: Delete file.
597 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
598 cli/cli-dump.h.
599
600 2013-08-09 Pedro Alves <palves@redhat.com>
601
602 * tracepoint.c (tfile_start): Show tilde-expanded filename in
603 error message.
604
605 2013-08-09 Pedro Alves <palves@redhat.com>
606
607 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
608 error message.
609
610 2013-08-09 Pedro Alves <palves@redhat.com>
611
612 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
613 (gcore_command): Use tilde_expand here, and when showing the
614 filename to the user, show the expanded version.
615
616 2013-08-09 Yao Qi <yao@codesourcery.com>
617
618 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
619 'entryval' is set.
620
621 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
622
623 * gcore.c (create_gcore_bfd): Use tilde_expand.
624
625 2013-08-08 Yao Qi <yao@codesourcery.com>
626
627 * frame.h (read_frame_local): Declare.
628 * mi/mi-cmd-stack.c (list_args_or_locals): Call
629 read_frame_local.
630 * stack.c (read_frame_local): New.
631
632 2013-08-08 Yao Qi <yao@codesourcery.com>
633
634 * mi/mi-cmd-stack.c: Update comments to function
635 list_args_or_locals.
636
637 2013-08-07 Tom Tromey <tromey@redhat.com>
638
639 PR symtab/15028:
640 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
641 (process_psymtab_comp_unit_reader): Use it.
642 (process_psymtab_comp_unit): Update. Add "pretend_language"
643 argument.
644 (dwarf2_build_psymtabs_hard): Update.
645 (scan_partial_symbols): Pass CU's language to
646 process_psymtab_comp_unit.
647
648 2013-08-07 Tom Tromey <tromey@redhat.com>
649
650 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
651 (dwarf2_gdb_index_functions): Update.
652 * psymtab.c (find_symbol_file_from_partial): Remove.
653 (psym_functions): Update.
654 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
655 Remove.
656
657 2013-08-07 Tom Tromey <tromey@redhat.com>
658
659 * symfile.c (set_initial_language): Look up "main" symbol
660 and use its language.
661 * symtab.c (find_main_filename): Remove.
662 * symtab.h (find_main_filename): Remove.
663
664 2013-08-07 Tom Tromey <tromey@redhat.com>
665
666 * dwarf2read.c (recursively_compute_inclusions): Add
667 "immediate_parent" argument. Set symtab's "user" field
668 if not set.
669 (compute_symtab_includes): Update.
670
671 2013-08-07 Tom Tromey <tromey@redhat.com>
672
673 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
674 when adding label symbols.
675
676 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
677 Ulrich Weigand <uweigand@de.ibm.com>
678
679 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
680 * configure.host (powerpc64-*-aix*): Likewise.
681
682 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
683 Ulrich Weigand <uweigand@de.ibm.com>
684
685 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
686 is defined.
687 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
688 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
689 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
690 * configure.ac: Check for ptrace64.
691 * configure, config.in: Regenerate.
692
693 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
694 Ulrich Weigand <uweigand@de.ibm.com>
695
696 * aixthread.c: Call ptrace64 instead of ptracex if defined.
697 Call ptrace64 instead of ptrace if defined.
698 Add macro addr_ptr to take care of ptrace address argument.
699 (pdc_read_regs): Likewise.
700 (pdc_write_regs): Likewise.
701 (aix_thread_resume): Likewise.
702 (fetch_regs_kernel_thread): Likewise.
703 (store_regs_kernel_thread): Likewise.
704
705 2013-08-07 Anton Blanchard <anton@samba.org>
706
707 * MAINTAINERS: Add myself to Write After Approval.
708
709 2013-08-05 Tom Tromey <tromey@redhat.com>
710
711 * aix-thread.c (_initialize_aix_thread): Use
712 complete_target_initialization.
713 * bsd-uthread.c (_initialize_bsd_uthread): Use
714 complete_target_initialization.
715 * dec-thread.c (_initialize_dec_thread): Use
716 complete_target_initialization.
717 * ravenscar-thread.c (_initialize_ravenscar): Use
718 complete_target_initialization.
719 * sol-thread.c (_initialize_sol_thread): Use
720 complete_target_initialization.
721 * spu-multiarch.c (_initialize_spu_multiarch): Use
722 complete_target_initialization.
723
724 2013-08-05 Tom Tromey <tromey@redhat.com>
725
726 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
727 * ada-lang.c (ada_lookup_simple_minsym): Return
728 bound_minimal_symbol.
729 * ada-lang.h (ada_lookup_simple_minsym): Update.
730 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
731 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
732 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
733 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
734 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
735 * minsyms.c (msymbol_objfile): Remove.
736 (lookup_minimal_symbol_internal): New function, from
737 lookup_minimal_symbol.
738 (lookup_minimal_symbol): Rewrite using
739 lookup_minimal_symbol_internal.
740 (lookup_bound_minimal_symbol): New function.
741 * minsyms.h (msymbol_objfile): Remove.
742 (lookup_bound_minimal_symbol): Declare.
743 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
744 * parse.c (write_exp_msymbol): Change parameter to a
745 bound_minimal_symbol.
746 (write_dollar_variable): Use lookup_bound_minimal_symbol.
747 * parser-defs.h (write_exp_msymbol): Update.
748 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
749 * symfile.c (simple_read_overlay_table): Use
750 lookup_bound_minimal_symbol.
751 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
752 (search_symbols): Likewise.
753 (print_msymbol_info): Take a bound_minimal_symbol argument.
754 (symtab_symbol_info, rbreak_command): Update.
755 * symtab.h (struct symbol_search) <msymbol>: Change type
756 to bound_minimal_symbol.
757 * valops.c (find_function_in_inferior): Use
758 lookup_bound_minimal_symbol.
759 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
760
761 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
762
763 Code cleanup.
764 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
765 to ...
766 (async_cleanup_sigint_signal_handler): ... this.
767 (initialize_sigint_signal_handler): Remove declaration.
768 (handle_remote_sigint): Rename the declaration to ...
769 (async_handle_remote_sigint): ... this.
770 (handle_remote_sigint_twice): Rename the declaration to ...
771 (async_handle_remote_sigint_twice): ... this.
772 (async_remote_interrupt, async_remote_interrupt_twice)
773 (remote_interrupt): Remove the declarations.
774 (remote_interrupt_twice): Rename the declaration ...
775 (sync_remote_interrupt_twice): ... this.
776 (sigint_remote_twice_token): Rename the variable to ...
777 (async_sigint_remote_twice_token): ... this.
778 (sigint_remote_token): Rename the variable to ...
779 (async_sigint_remote_token): ... this.
780 (initialize_sigint_signal_handler): Rename the function to ...
781 (async_initialize_sigint_signal_handler): ... this. Update the name
782 inside.
783 (handle_remote_sigint): Rename the function to ...
784 (async_handle_remote_sigint): ... this. Update the names inside.
785 (handle_remote_sigint_twice): Rename the function to ...
786 (async_handle_remote_sigint_twice): ... this. Update the names inside.
787 (cleanup_sigint_signal_handler): Rename the function to ...
788 (async_cleanup_sigint_signal_handler): ... this.
789 (remote_interrupt): Rename the function to ...
790 (sync_remote_interrupt): this. Update the names inside.
791 (remote_interrupt_twice): Rename the function to ...
792 (sync_remote_interrupt_twice): this. Update the names inside.
793 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
794 (_initialize_remote): Update the names inside.
795
796 2013-08-02 Tom Tromey <tromey@redhat.com>
797
798 PR symtab/15719:
799 * breakpoint.c (update_watchpoint, watchpoint_check)
800 (watch_command_1): Update.
801 * eval.c (fetch_subexp_value): Add "preserve_errors"
802 parameter.
803 * ppc-linux-nat.c (check_condition): Update.
804 * value.h (fetch_subexp_value): Update.
805
806 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
807
808 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
809 add_file_handler.
810
811 2013-08-01 Doug Evans <dje@google.com>
812
813 PR symtab/15691
814 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
815 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
816 Add assert of sig_entry->dwo_unit == NULL.
817 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
818 had already been read.
819 (read_signatured_type): Set per_cu.tu_read.
820
821 PR symtab/15695
822 * valops.c (value_struct_elt): Add missing call to check_typedef.
823 (value_find_oload_method_list): Ditto.
824
825 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
826 effectively, struct symbol_search **.
827 (make_cleanup_free_search_symbols): Change arg to struct
828 symbol_search **. All callers updated.
829 (compare_search_syms): Compare symtab file name and block as well.
830 (search_symbols_equal): New function.
831 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
832 New args new_head, new_tail. Result is now void. Remove dups after
833 sorting the symbols.
834 (search_symbols): Sort all found symbols once, after all have been
835 found, and remove duplicates. Simplify cleanup tracking of result.
836 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
837
838 Further workarounds for binutils/15021.
839 * dwarf2read.c (recursively_compute_inclusions): Change type of result
840 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
841 Watch for duplicate symtabs coming from type units.
842 (compute_symtab_includes): Update call to
843 recursively_compute_inclusions. Build vector of included symtabs
844 instead of per_cus.
845 * symtab.h (symtab_ptr): New typedef.
846 (DEF_VEC_P (symtab_ptr)): New VEC type.
847 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
848 instead.
849
850 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
851
852 * cli/cli-script.c (script_from_file): Remove use of
853 error_pre_print.
854 * main.c (captured_main): Remove use of error_pre_print and
855 quit_pre_print.
856 * utils.c (error_pre_print, quit_pre_print): Remove.
857 * utils.h (error_pre_print, quit_pre_print): Likewise.
858
859 2013-08-01 Yao Qi <yao@codesourcery.com>
860
861 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
862 with mi_getopt.
863 (mi_cmd_stack_list_variables): Likewise.
864
865 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
866
867 * exceptions.c (deprecated_throw_reason): Remove.
868 * exceptions.h (deprecated_throw_reason): Remove.
869
870 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
871
872 * remote-mips.c (mips_error): Replace use of
873 deprecated_throw_reason with throw_verror. Use the error message
874 passed to mips_error as the error message for throw_verror.
875
876 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
877
878 * monitor.c (monitor_interrupt_query): Replace use of
879 deprecated_throw_reason with quit.
880 * nto-procfs.c (interrupt_query): Likewise.
881 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
882 * remote-mips.c (mips_kill): Likewise.
883 * remote.c (interrupt_query): Likewise.
884
885 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
886
887 * utils.c (internal_verror): Replace use of deprecated_throw_reason
888 with call to fatal.
889
890 2013-07-31 Pedro Alves <pedro@codesourcery.com>
891 Yao Qi <yao@codesourcery.com>
892
893 * tracepoint.c (trace_dump_command): Select the current frame.
894
895 2013-07-30 Doug Evans <dje@google.com>
896
897 * dwarf2read.c (process_queue): Add type signature to debug output.
898
899 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
900
901 * value.c (value_fetch_lazy): Mark optimized out values as such
902 rather than raising an error.
903
904 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
905
906 * value.c (value_fetch_lazy): Ensure parent value is not lazy
907 before checking which bits of the parent, not the child, value are
908 valid.
909
910 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
911
912 PR gdb/15715
913 * top.c: Include "filenames.h".
914 (set_history_filename): New function.
915 (init_main): Install it as set hook of the "set history filename"
916 command.
917
918 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
919
920 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
921 attribute parameter.
922 (dwarf2_const_value_data): Constify struct attribute parameter.
923 (dwarf2_const_value): Constify struct attribute parameter.
924 (dwarf2_const_value_attr): Constify struct attribute parameter.
925 (lookup_die_type): Constify struct attribute parameter.
926 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
927 (follow_die_ref_or_sig): Constify struct attribute parameter.
928 (follow_die_ref): Constify struct attribute parameter.
929 (follow_die_sig): Constify struct attribute parameter.
930 (get_DW_AT_signature_type): Constify struct attribute parameter.
931 (get_type_unit_group): Constify struct attribute parameter.
932 (fill_in_loclist_baton): Constify struct attribute parameter.
933 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
934 (type_unit_group): Constify struct attribute parameter.
935
936 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
937
938 * dwarf2read.c (attr_form_is_block): Make argument const.
939 (attr_form_is_section_offset): Make argument const.
940 (attr_form_is_constant): Make argument const.
941 (attr_form_is_ref): Make argument const.
942
943 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
944
945 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
946 All uses updated.
947 (attr_form_is_ref): Moved below attr_form_is_constant.
948
949 2013-07-29 Doug Evans <dje@google.com>
950
951 * main.c (captured_command_loop): Tweak comment.
952
953 * target.c (target_async_permitted_1): Fix comment.
954
955 * symtab.c (iterate_over_some_symtabs): Add comment.
956
957 * symtab.c (iterate_over_some_symtabs): Fix indentation.
958
959 2013-07-27 Yao Qi <yao@codesourcery.com>
960
961 * NEWS: Mention that GDBserver now supports hardware
962 watchpoints on the MIPS GNU/Linux target.
963
964 2013-07-27 Yao Qi <yao@codesourcery.com>
965
966 * Makefile.in (HFILES_NO_SRCDIR): Add
967 common/mips-linux-watch.h.
968 (mips-linux-watch.o): New rule.
969 * common/mips-linux-watch.c: New.
970 * common/mips-linux-watch.h: New.
971 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
972 * mips-linux-nat.c: Include mips-linux-watch.h.
973 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
974 to common/mips-linux-watch.h.
975 (MAX_DEBUG_REGISTER): Likewise.
976 (enum pt_watch_style): Likewise.
977 (struct mips32_watch_regs): Likewise.
978 (struct mips64_watch_regs): Likewise.
979 (struct pt_watch_regs): Likewise.
980 (struct mips_watchpoint): Likewise.
981 (mips_linux_watch_get_irw_mask): Move to
982 common/mips-linux-watch.c.
983 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
984 (mips_linux_watch_get_watchlo): Likewise.
985 (mips_linux_watch_set_watchlo): Likewise.
986 (mips_linux_watch_get_watchhi): Likewise.
987 (mips_linux_watch_set_watchhi): Likewise.
988 (mips_linux_read_watch_registers): Likewise.
989 (mips_linux_watch_type_to_irw): Likewise.
990 (mips_linux_stopped_data_address, fill_mask): Likewise.
991 (mips_linux_watch_try_one_watch): Likewise.
992 (mips_linux_watch_populate_regs): Likewise.
993
994 2013-07-27 Yao Qi <yao@codesourcery.com>
995
996 * mips-linux-nat.c (get_irw_mask): Rename to ...
997 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
998 'set' to 'n'. Update function comment. All callers changed.
999 (get_reg_mask): Rename parameter 'set' to 'n'. Update
1000 function comment. All callers changed.
1001 (get_num_valid): Rename to ...
1002 (mips_linux_watch_get_num_valid): ... this. Rename parameter
1003 'set' to 'n'. Update function comment. All callers changed.
1004 (get_watchlo): Rename to ...
1005 (mips_linux_watch_get_watchlo): ... this. Rename parameter
1006 'set' to 'n'. Update function comment. All callers changed.
1007 (set_watchlo): Rename to ...
1008 (mips_linux_watch_set_watchlo): ... this. Rename parameter
1009 'set' to 'n'. Update function comment. All callers changed.
1010 (get_watchhi): Rename to ...
1011 (mips_linux_watch_get_watchhi): ... this. Update function
1012 comment. All callers changed.
1013 (set_watchhi): Rename to ...
1014 (mips_linux_watch_set_watchhi): ... this. Update function
1015 comment. All callers changed.
1016 (mips_linux_read_watch_registers): Update function comment.
1017 Add new parameters 'lwpid', 'watch_readback', and
1018 'watch_readback_valid'. Update.
1019 (type_to_irw): Rename to ...
1020 (mips_linux_watch_type_to_irw): ... this. Update function
1021 comment. All callers changed.
1022 (fill_mask): Update function comment.
1023 (try_one_watch): Rename to ...
1024 (mips_linux_watch_try_one_watch): ... this. Change the type
1025 of parameter 'irw' from 'unsigned' to 'uint32_t'.
1026 (populate_regs_from_watches): Rename to ...
1027 (mips_linux_watch_populate_regs): ... this. Add parameter
1028 'current_watches'. All callers changed.
1029
1030 2013-07-27 Yao Qi <yao@codesourcery.com>
1031
1032 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
1033 the code.
1034 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
1035 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
1036 (struct pt_watch_regs): Likewise.
1037 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
1038 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
1039 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
1040 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
1041 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
1042
1043 2013-07-27 Yao Qi <yao@codesourcery.com>
1044
1045 * breakpoint.h: Include break-common.h.
1046 (enum target_hw_bp_type): Move to ...
1047 * common/break-common.h: ... here. New.
1048
1049 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
1050
1051 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
1052 process group regardless of having tty on stdin.
1053
1054 2013-07-25 Doug Evans <dje@google.com>
1055
1056 * linux-fork.h (detach_fork): Delete.
1057
1058 2013-07-25 Tom Tromey <tromey@redhat.com>
1059
1060 PR remote/15256, PR remote/15266:
1061 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
1062 * monitor.c (monitor_detach): Use unpush_target.
1063 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
1064 * remote-mips.c (mips_detach): Use unpush_target. Don't
1065 call mips_close.
1066 * remote-sim.c (gdbsim_detach): Use unpush_target.
1067 * target.c (pop_target): Remove.
1068 (pop_all_targets_above): Don't call target_close.
1069 (target_close): Assert that the target is unpushed.
1070 * target.h (pop_target): Don't declare.
1071 * tracepoint.c (tfile_open): Use unpush_target.
1072
1073 2013-07-25 Tom Tromey <tromey@redhat.com>
1074
1075 * linux-thread-db.c (init_thread_db_ops): Call
1076 complete_target_initialization.
1077 (_initialize_thread_db): Don't call add_target.
1078 * target.c (complete_target_initialization): New function.
1079 (add_target_with_completer): Call it.
1080 * target.h (complete_target_initialization): Declare.
1081
1082 2013-07-25 Mark Kettenis <kettenis@gnu.org>
1083
1084 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
1085 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
1086 (HPPANBSD_SIZEOF_GREGS): New define.
1087 (hppaobsd_supply_gregset): Handle additional registers.
1088 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
1089 we provide more registers now.
1090 (hppabsd_supply_gregset): Supply additional registers.
1091 (hppabsd_collect_gregset): Collect additional registers.
1092
1093 2013-07-25 Mark Kettenis <kettenis@gnu.org>
1094
1095 * hppabsd-tdep.c: Include "dwarf2-frame.h".
1096 (hppabsd_dwarf2_frame_init_reg): New function.
1097 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
1098
1099 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
1100
1101 * mi/mi-main.c (output_register): Make MI 'r' format use standard
1102 'z' format code. Remove error for optimized out values, standard
1103 code will handle these fine.
1104
1105 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
1106
1107 * NEWS: Mention new 'z' formatter.
1108 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
1109 (_initialize_printcmd): Mention 'z' formatter in help text of the
1110 'x' command.
1111
1112 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
1113
1114 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
1115 formatting.
1116
1117 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
1118
1119 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
1120 interface can evaluate arguments. Fallback to the old mode if it
1121 cannot.
1122 (create_exception_master_breakpoint): Likewise.
1123 * elfread.c (elf_can_evaluate_probe_arguments): New function.
1124 (struct sym_probe_fns elf_probe_fns): Export function above to the
1125 probe interface.
1126 * probe.c (can_evaluate_probe_arguments): New function.
1127 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
1128 function pointer.
1129 (can_evaluate_probe_arguments): New function prototype.
1130 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
1131 probe interface can evaluate arguments. Fallback to the old mode
1132 if it cannot.
1133 * stap-probe.c (stap_get_probe_argument_count): Check if probe
1134 interface can evaluate arguments. Warning the user if it cannot.
1135 (stap_can_evaluate_probe_arguments): New function.
1136 (struct probe_ops stap_probe_ops): Export function above to the
1137 probe interface.
1138 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
1139 New function pointer.
1140
1141 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
1142
1143 * Makefile.in (SFILES): Add common/target-common.c.
1144 Add common/target-common.h to headers.
1145 (COMMON_OBS): Add target-common.o.
1146 (target-common.o): New target.
1147 * linux-nat.h (resume_kind): Move to common/target-common.h.
1148 * target.c (target_waitstatus_to_string): Move to
1149 common/target-common.c.
1150 * target.h: Include target-common.h.
1151 (target_waitkind): Move to common/target-common.h.
1152 (target_waitstatus): Likewise.
1153 (TARGET_WNOHANG): Likewise.
1154 * common/target-common.c: New file.
1155 * common/target-common.h: New file.
1156
1157 2013-07-24 Doug Evans <dje@google.com>
1158
1159 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
1160 a warning.
1161
1162 2013-07-23 Yao Qi <yao@codesourcery.com>
1163
1164 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
1165 parameter 'gdbarch'.
1166 (i386_stack_tramp_frame_sniffer): Caller update.
1167 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
1168 parameter 'gdbarch' and 'target'.
1169 (i386_linux_core_read_description): Caller update.
1170 * amd64-linux-tdep.c (amd64_linux_core_read_description):
1171 Likewise.
1172 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
1173 declaration.
1174
1175 2013-07-23 Tom Tromey <tromey@redhat.com>
1176
1177 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
1178 2013-07-22.
1179
1180 2013-07-22 Doug Evans <dje@google.com>
1181
1182 * exec.h (remove_target_sections): Delete arg abfd.
1183 * exec.c (exec_close): Update call to remove_target_sections.
1184 (remove_target_sections): Delete arg abfd.
1185 * solib.c (update_solib_list): Ditto.
1186 (reload_shared_libraries_1): Ditto.
1187 (clear_solib): Ditto, and unconditionally call remove_target_sections.
1188 * target.h (struct target_section): Rename key to owner.
1189 All uses updated.
1190
1191 2013-07-22 Tom Tromey <tromey@redhat.com>
1192
1193 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
1194
1195 2013-07-22 Tom Tromey <tromey@redhat.com>
1196
1197 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
1198 Simplify cleanup handling.
1199
1200 2013-07-22 Tom Tromey <tromey@redhat.com>
1201
1202 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
1203 on all return paths.
1204
1205 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1206
1207 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
1208 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
1209 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
1210
1211 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
1212
1213 * top.c (print_gdb_version): Add help, apropos description and
1214 url to online documentation.
1215
1216 2013-07-19 Hui Zhu <hui@codesourcery.com>
1217
1218 PR gdb/15692
1219 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
1220
1221 2013-07-19 Yao Qi <yao@codesourcery.com>
1222
1223 * target.c (update_current_target): Change the default action
1224 of 'to_traceframe_info' from tcomplain to return_zero.
1225 * target.h (struct target_ops) <to_traceframe_info>: Add more
1226 comments.
1227 * valops.c (read_value_memory): Call
1228 traceframe_available_memory unconditionally.
1229
1230 2013-07-18 Yao Qi <yao@codesourcery.com>
1231
1232 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
1233 if the name is prefixed by "__imp_" or "_imp_", look for minimal
1234 symbol without prefix. If found, set its type to
1235 'mst_solib_trampoline'.
1236
1237 2013-07-17 Doug Evans <dje@google.com>
1238
1239 * NEWS: Mention "set print raw frame-arguments".
1240 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
1241 * stack.c (print_raw_frame_arguments): New static global.
1242 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
1243 (_initialize_stack): New command "set/show print raw frame-arguments".
1244 * valprint.c (setprintrawlist, showprintrawlist): New globals.
1245 (set_print_raw, show_print_raw): New functions.
1246 (_initialize_valprint): New prefix command "set/show print raw".
1247 * valprint.h (value_print_options): Improve comments.
1248
1249 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
1250 of all *list variables.
1251
1252 * gdbcmd.h (togglelist): Delete.
1253 * cli/cli-cmds.c (togglelist): Delete.
1254 (init_cmd_lists): Update.
1255 * cli/cli-cmds.h (togglelist): Delete.
1256
1257 2013-07-17 Tom Tromey <tromey@redhat.com>
1258
1259 * dwarf2read.c (dwarf2_per_objfile_free): Clear
1260 dwarf2_per_objfile.
1261
1262 2013-07-16 Doug Evans <dje@google.com>
1263
1264 * nto-tdep.c (nto_relocate_section_addresses): Update,
1265 target_section.bfd deleted.
1266 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
1267 * s390-tdep.c (s390_load): Ditto.
1268 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
1269
1270 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
1271
1272 * common/format.c (parse_format_string): Add checks for NULL
1273 character before calling strchr.
1274
1275 2013-07-16 Doug Evans <dje@google.com>
1276
1277 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
1278 temp_pathname argument.
1279 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
1280 when opening the file fails.
1281
1282 * target.h (struct target_section): Delete member bfd.
1283 All users updated to use the_bfd_section->owner instead.
1284 * exec.c (add_to_section_table): Assert bfd is expected value.
1285 Remove initialization of target_section.bfd.
1286 (remove_target_sections): Update.
1287 (section_table_available_memory): Update.
1288 (section_table_xfer_memory_partial): Update.
1289 (print_section_info): Update.
1290 (exec_set_section_address): Update.
1291 * record-full.c (record_full_core_xfer_partial): Update.
1292 * solib-svr4.c (svr4_relocate_section_addresses): Update.
1293 * solib-target.c (solib_target_relocate_section_addresses): Update.
1294 * symfile.c (build_section_addr_info_from_section_table): Update.
1295 * target.c (memory_xfer_live_readonly_partial): Update.
1296 (memory_xfer_partial_1): Update.
1297
1298 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1299
1300 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
1301 now available for embedded (BookE) and server (BookS) processors,
1302 correct mentions of 'booke' and adjust comments accordingly in order to
1303 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
1304 (have_ptrace_booke_interface): Rename function and variable
1305 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
1306 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
1307 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
1308 'hwdebug_point_cmp'. Update all uses.
1309 (booke_find_thread_points_by_tid): Rename function
1310 'booke_find_thread_points_by_tid' to
1311 'hwdebug_find_thread_points_by_tid'. Update all uses.
1312 (booke_insert_point): Rename function 'booke_insert_point' to
1313 'hwdebug_insert_point'. Update all uses.
1314 (booke_remove_point): Rename function 'booke_remove_point' to
1315 'hwdebug_remove_point'. Update all uses.
1316
1317 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
1318
1319 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
1320 numbers with enum values.
1321
1322 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
1323
1324 PR threads/13217
1325 * thread.c (thread_apply_all_command): Check for valid threads
1326 and thread count.
1327 (thread_array_cleanup): New struct.
1328 (set_thread_refcount): New function.
1329
1330 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
1331
1332 * infcmd.c (default_print_one_register_info): Reuse function
1333 print_hex_chars.
1334
1335 2013-07-10 Tom Tromey <tromey@redhat.com>
1336
1337 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
1338 (ada-exp.o): New target.
1339
1340 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
1341
1342 * mt-tdep.c (mt_registers_info): Call
1343 get_no_prettyformat_print_options instead of
1344 get_raw_print_options (regression by last patch from Doug
1345 Evans).
1346
1347 2013-07-09 Pedro Alves <palves@redhat.com>
1348
1349 Checked in by Joel Brobecker <brobecker@adacore.com>.
1350 * ada-lang.c (coerce_unspec_val_to_type): Use
1351 value_optimized_out_const.
1352 * value.c (value_optimized_out_const): New function.
1353 * value.h (value_optimized_out_const): New declaration.
1354
1355 2013-07-09 Doug Evans <dje@google.com>
1356
1357 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
1358 Enum values rename as well. All uses updated.
1359 * valprint.h (value_print_options): Rename member pretty to
1360 pretty format. Rename member prettyprint_arrays to
1361 prettyformat_arrays. Rename member prettyprint_structs to
1362 prettyformat_structs. All uses updated.
1363 (get_no_prettyformat_print_options): Renamed from
1364 get_raw_print_options.
1365 * valprint.c (get_no_prettyformat_print_options): Renamed from
1366 get_raw_print_options. All callers updated.
1367 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
1368 All callers updated.
1369 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
1370 All callers updated.
1371 (_initialize_valprint): Improve help text for "set print pretty" and
1372 "set print arrays".
1373
1374 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
1375
1376 * value.c (value_bits_valid): Revert previous change, and change
1377 by Pedro on 2013-07-04, due to regressions in
1378 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
1379
1380 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
1381 Pedro Alves <palves@redhat.com>
1382
1383 * value.c (value_bits_valid): If the value is not lval_computed
1384 or has no check validity handler then the answer is the
1385 optimized_out flag, otherwise defer to the handler.
1386
1387 2013-07-06 Eli Zaretskii <eliz@gnu.org>
1388
1389 * top.c (print_gdb_configuration): Explain in output of
1390 --configuration what does "relocatable" mean.
1391
1392 * main.c (print_gdb_help): Regroup options in the --help text.
1393 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
1394 the relevant discussions.
1395
1396 2013-07-06 Yao Qi <yao@codesourcery.com>
1397
1398 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
1399 Remove parameter 'lsal'.
1400 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
1401 to inner block. Caller update.
1402 (base_breakpoint_create_breakpoints_sal): Update.
1403 (bkpt_create_breakpoints_sal): Likewise.
1404 (tracepoint_create_breakpoints_sal): Likewise.
1405 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
1406 element 0 of vector 'canonical->sals'.
1407
1408 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
1409
1410 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
1411 register number instead of the pseudo register one.
1412 (rs6000_dwarf2_reg_to_regnum): Likewise.
1413
1414 2013-07-04 Pedro Alves <palves@redhat.com>
1415
1416 * findvar.c (value_of_register): Use allocate_optimized_out_value
1417 if the register has been optimized out, instead of
1418 set_value_optimized_out.
1419 * frame-unwind.c (frame_unwind_got_optimized): Use
1420 allocate_optimized_out_value.
1421
1422 2013-07-04 Pedro Alves <palves@redhat.com>
1423
1424 * value.c (value_bits_valid): If the value is not lval_computed,
1425 or doesn't have a check_validity hook, assume the value is entirely
1426 valid.
1427
1428 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
1429
1430 * stack.c (read_frame_arg): No longer fetch lazy values.
1431 * value.c (value_optimized_out): If the value is not already
1432 marked optimized out, and is lazy then fetch it.
1433 (value_primitive_field): Move optimized out check to later in the
1434 function, after we have loaded any lazy values.
1435 (value_fetch_lazy): Use optimized out flag directly rather than
1436 calling optimized_out method.
1437
1438 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
1439
1440 * valops.c: Don't include "user-regs.h".
1441 (value_fetch_lazy): Moved to value.c.
1442 * value.c: Include "user-regs.h".
1443 (value_fetch_lazy): Moved from valops.c.
1444
1445 2013-07-04 Yao Qi <yao@codesourcery.com>
1446
1447 Revert:
1448 2013-06-27 Yao Qi <yao@codesourcery.com>
1449
1450 * common/create-version.sh: Update comments. Handle the case
1451 that TARGET_ALIAS is empty.
1452
1453 2013-07-03 Pedro Alves <palves@redhat.com>
1454
1455 * Makefile.in (config.status): Depend on development.sh.
1456 (aclocal_m4_deps): Add libmcheck.m4.
1457 * acinclude.m4: Include libmcheck.m4.
1458 * configure.ac: Source development.sh instead of setting
1459 'development' here. --enable-libmcheck/--disable-libmcheck code
1460 factored out to GDB_AC_LIBMCHECK. Run it.
1461 * development.sh: New file.
1462 * libmcheck.m4: New file.
1463 * configure: Regenerate.
1464
1465 2013-07-02 Tom Tromey <tromey@redhat.com>
1466
1467 * contrib/ari/update-web-ari.sh: Update for version.in change.
1468
1469 2013-07-02 Tom Tromey <tromey@redhat.com>
1470
1471 * common/ptid.h: Comment fixes.
1472
1473 2013-07-01 Tom Tromey <tromey@redhat.com>
1474
1475 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
1476 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
1477 (dwarf2_read_index, create_all_comp_units): Update.
1478
1479 2013-07-01 Tom Tromey <tromey@redhat.com>
1480
1481 * configure.ac (build_warnings): Add -Wold-style-definition.
1482 * configure: Rebuild.
1483 * machoread.c (_initialize_machoread): Use "(void)".
1484 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
1485 use "(void)".
1486
1487 2013-07-01 Tom Tromey <tromey@redhat.com>
1488
1489 * configure.ac (build_warnings): Add -Wold-style-declaration.
1490 * configure: Rebuild.
1491 * dsrec.c (make_srec): Use "static const", not "const static".
1492 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
1493 not "const static".
1494 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
1495 Use "static const", not "const static".
1496 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
1497 not "const static".
1498 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
1499 not "const static".
1500 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
1501 not "const static".
1502 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
1503 not "const static".
1504 (v850_dbtrap_breakpoint_from_pc): Likewise.
1505 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
1506 not "const static".
1507
1508 2013-07-01 Tom Tromey <tromey@redhat.com>
1509
1510 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
1511 * configure: Rebuild.
1512
1513 2013-07-01 Pedro Alves <palves@redhat.com>
1514
1515 * defs.h: Include "pathmax.h".
1516 * utils.c: Don't include sys/param.h.
1517 (gdb_realpath): Remove code that checks for MAXPATHLEN.
1518 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
1519 instead of MAXPATHLEN.
1520 * solib-sunos.c: Don't include sys/param.h.
1521 * xcoffread.c: Don't include sys/param.h.
1522 * bsd-kvm.c: Don't include sys/param.h.
1523 * darwin-nat.c: Don't include sys/param.h.
1524 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
1525 * darwin-nat-info.c: Don't include sys/param.h.
1526 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
1527 MAXPATHLEN.
1528 * i386obsd-nat.c: Don't include sys/param.h.
1529 * inf-child.c: Don't include sys/param.h.
1530 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
1531 * linux-fork.c: Don't include sys/param.h.
1532 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
1533 * linux-nat.c: Don't include sys/param.h.
1534 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
1535 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
1536 * m68klinux-nat.c: Don't include sys/param.h.
1537 * nbsd-nat.c: Don't include sys/param.h.
1538 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
1539 * ppc-linux-nat.c: Don't include sys/param.h.
1540 * rs6000-nat.c: Don't include sys/param.h.
1541 * spu-linux-nat.c. Don't include sys/param.h.
1542 * windows-nat.c: Don't include sys/param.h.
1543 * xtensa-linux-nat.c: Don't include sys/param.h.
1544 * config/i386/nm-fbsd.h: Don't include sys/param.h.
1545
1546 2013-07-01 Pedro Alves <palves@redhat.com>
1547
1548 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
1549 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
1550 * gnulib/aclocal.m4: Regenerate.
1551 * gnulib/config.in: Regenerate.
1552 * gnulib/configure: Regenerate.
1553 * gnulib/import/pathmax.h: New file.
1554 * gnulib/import/Makefile.am: Regenerate.
1555 * gnulib/import/Makefile.in: Regenerate.
1556 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1557 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1558 * gnulib/import/m4/pathmax.m4: New file.
1559
1560 2013-07-01 Pedro Alves <palves@redhat.com>
1561
1562 * configure.ac (GDBINIT): Define, depending on host.
1563 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
1564 * top.c (PATH_MAX): Delete fallback definition.
1565 (GDBINIT_FILENAME): Delete.
1566 (gdbinit): Reimplement as const char array set to the GDBINIT
1567 string constant.
1568 * top.h (gdbinit): Make const.
1569 * configure, config.in: Regenerate.
1570
1571 2013-07-01 Pedro Alves <palves@redhat.com>
1572
1573 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
1574 * cli/cli-cmds.h (source_script): Likewise.
1575 * exceptions.c (catch_command_errors_const): New function.
1576 * exceptions.h (catch_command_errors_const): Declare.
1577 * main.c (get_init_files): Make parameters const, and adjust.
1578 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
1579 'local_gdbinit' locals const. Adjust to use
1580 catch_command_errors_const.
1581 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
1582 'local_gdbinit' locals const.
1583
1584 2013-07-01 Pedro Alves <palves@redhat.com>
1585
1586 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
1587 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
1588 * tracepoint.c: Don't check HAVE_UNISTD_H before including
1589 <unistd.h>.
1590
1591 2013-07-01 Pedro Alves <palves@redhat.com>
1592
1593 Import the "unistd" gnulib module.
1594 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
1595 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
1596 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
1597 import/m4/unistd_h.m4.
1598 * gnulib/aclocal.m4: Renenerate.
1599 * gnulib/config.in: Renenerate.
1600 * gnulib/configure: Renenerate.
1601 * gnulib/import/Makefile.am: Renenerate.
1602 * gnulib/import/Makefile.in: Renenerate.
1603 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
1604 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
1605 * gnulib/import/m4/off_t.m4: New file.
1606 * gnulib/import/m4/ssize_t.m4: New file.
1607 * gnulib/import/m4/sys_types_h.m4: New file.
1608 * gnulib/import/m4/unistd_h.m4: New file.
1609 * gnulib/import/sys_types.in.h: New file.
1610 * gnulib/import/unistd.c: New file.
1611 * gnulib/import/unistd.in.h: New file.
1612
1613 2013-07-01 Pedro Alves <palves@redhat.com>
1614
1615 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
1616 defined instead of checking HAVE_UNISTD_H.
1617
1618 2013-07-01 Pedro Alves <palves@redhat.com>
1619
1620 Reimport gnulib from scratch.
1621 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
1622 import/m4/onceonly.m4.
1623 * gnulib/aclocal.m4: Renegerate.
1624 * gnulib/config.in: Renegerate.
1625 * gnulib/configure: Renegerate.
1626 * gnulib/import/Makefile.in: Renegerate.
1627 * gnulib/import/extra/update-copyright: Renegerate.
1628 * gnulib/import/m4/onceonly.m4: Delete.
1629
1630 2013-07-01 Pedro Alves <palves@redhat.com>
1631
1632 * tui/tui-regs.c (pagination_enabled): Delete declaration.
1633
1634 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1635
1636 Code cleanup.
1637 * remote.c (async_remote_interrupt_twice): Make it static.
1638 * remote.h (async_remote_interrupt_twice): Remove the declaration.
1639
1640 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
1641
1642 * ia64-linux-tdep.c: Include <ctype.h>.
1643 (ia64_linux_stap_is_single_operand): New function.
1644 (ia64_linux_init_abi): Initialize SystemTap related attributes.
1645
1646 2013-06-28 Tom Tromey <tromey@redhat.com>
1647
1648 * Makefile.in (version.c): Use version.in, not
1649 common/version.in.
1650 * common/create-version.sh: Likewise.
1651 * common/version.in: Move...
1652 * version.in: ...here.
1653
1654 2013-06-28 Pedro Alves <palves@redhat.com>
1655
1656 * infrun.c (set_observer_mode): Don't declare pagination_enabled
1657 here.
1658 * utils.h (pagination_enabled): Declare.
1659
1660 2013-06-28 Pedro Alves <palves@redhat.com>
1661
1662 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
1663 Move higher up in file.
1664
1665 2013-06-28 Tom Tromey <tromey@redhat.com>
1666
1667 * tracepoint.c (deprecated_readline_begin_hook)
1668 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
1669 declare.
1670
1671 2013-06-28 Pedro Alves <palves@redhat.com>
1672
1673 PR tui/14880
1674 * tui/tui-regs.c (tui_get_register): Fetch value contents before
1675 checking if they're available.
1676 * value.c (value_available_contents_eq): Change comment.
1677 * value.h (value_available_contents_eq): Expand comment.
1678
1679 2013-06-27 Tom Tromey <tromey@redhat.com>
1680
1681 * target.c (find_run_target): Remove.
1682 * target.h (find_run_target): Remove.
1683
1684 2013-06-27 Tom Tromey <tromey@redhat.com>
1685
1686 * corelow.c (core_gdbarch): Now static.
1687
1688 2013-06-27 Tom Tromey <tromey@redhat.com>
1689
1690 * target.c (target_struct_index): Remove.
1691
1692 2013-06-27 Pedro Alves <palves@redhat.com>
1693
1694 * infrun.c: Remove comment describing the 'stepping over runtime
1695 loader dynamic symbol resolution code' mechanism; moved to
1696 gdbint.texinfo.
1697
1698 2013-06-27 Pedro Alves <palves@redhat.com>
1699
1700 * exceptions.c (catch_command_errors): Remove spurious space.
1701 * exceptions.h (catch_command_errors): Second parameter is "arg",
1702 not "command".
1703
1704 2013-06-27 Yao Qi <yao@codesourcery.com>
1705
1706 * common/create-version.sh: Update comments. Handle the case
1707 that TARGET_ALIAS is empty.
1708
1709 2013-06-26 Pedro Alves <palves@redhat.com>
1710
1711 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
1712 comment.
1713
1714 2013-06-26 Pedro Alves <palves@redhat.com>
1715
1716 * infrun.c: Update comments on stepping over runtime loader
1717 dynamic symbol resolution code.
1718
1719 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
1720
1721 * ax-gdb.h (union exp_element): Forward declare.
1722 * parser-defs.h: Include expression.h.
1723
1724 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
1725
1726 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
1727
1728 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
1729
1730 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
1731
1732 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
1733
1734 Fix trace-status to output proper start-time and stop-time.
1735 * tracepoint.c (trace_status_command): Fix type of printf arg to
1736 prevent improper type conversion.
1737 (trace_status_mi): Likewise.
1738
1739 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
1740
1741 * mips-tdep.c (mips_next_pc): Fix a typo.
1742
1743 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
1744
1745 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
1746
1747 2013-06-26 Pedro Alves <pedro@codesourcery.com>
1748 Yao Qi <yao@codesourcery.com>
1749
1750 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
1751 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
1752 * mi/mi-main.c (print_variable_or_computed): New function.
1753 (mi_cmd_trace_frame_collected): New function.
1754 * tracepoint.c (find_trace_state_variable_by_number): New.
1755 (struct traceframe_info): Move to tracepoint.h
1756 (struct collection_list): Likewise.
1757 (do_collect_symbol): Include locals and arguments in the
1758 collected variables list.
1759 (clear_collection_list): Clear wholly collected variables list
1760 and computed variables list.
1761 (append_exp): New function.
1762 (encode_actions_1): Include variables in the wholly
1763 collected variables list. Include memory ranges and
1764 full-fledged expressions in the computed expressions list.
1765 (encode_actions): Move some code to ...
1766 Return the cleanup chain.
1767 (encode_actions_rsp): ... here. New function.
1768 (get_traceframe_location, get_traceframe_info): Remove static.
1769 * tracepoint.h (struct memrange): Moved from tracepoint.c.
1770 (struct collection_list): Moved from tracepoint.c. Add two
1771 new fields 'wholly_collected' and 'computed'.
1772 (find_trace_state_variable_by_number): Declare.
1773 (encode_actions): Adjust declaration.
1774 (encode_actions_rsp): Declare.
1775 (get_traceframe_info, get_traceframe_location): Declare.
1776
1777 * NEWS: Mention new MI command -trace-frame-collected.
1778
1779 2013-06-26 Pedro Alves <pedro@codesourcery.com>
1780 Yao Qi <yao@codesourcery.com>
1781
1782 * ctf.c (ctf_traceframe_info): Push trace state variables
1783 present in the trace data into the traceframe info object.
1784 * breakpoint.c (DEF_VEC_I): Remove.
1785 * common/filestuff.c (DEF_VEC_I): Likewise.
1786 * dwarf2loc.c (DEF_VEC_I): Likewise.
1787 * mi/mi-main.c (DEF_VEC_I): Likewise.
1788 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
1789 * features/traceframe-info.dtd: Add tvar element and its
1790 attributes.
1791 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
1792 (build_traceframe_info): Push trace state variables present in
1793 the trace data into the traceframe info object.
1794 (traceframe_info_start_tvar): New function.
1795 (tvar_attributes): New.
1796 (traceframe_info_children): Add "tvar" element.
1797 * tracepoint.h (struct traceframe_info) <tvars>: New field.
1798
1799 * NEWS: Mention the change in GDB and GDBserver.
1800
1801 2013-06-26 Pedro Alves <pedro@codesourcery.com>
1802 Yao Qi <yao@codesourcery.com>
1803
1804 * tracepoint.c (trace_dump_command): Move code to ...
1805 (get_traceframe_location): ... here. New.
1806
1807 2013-06-26 Pedro Alves <pedro@codesourcery.com>
1808 Yao Qi <yao@codesourcery.com>
1809
1810 * tracepoint.c (trace_dump_command): GDB emits an error
1811 instead of a warning when a traceframe is not selected.
1812
1813 2013-06-26 Pedro Alves <pedro@codesourcery.com>
1814 Yao Qi <yao@codesourcery.com>
1815
1816 * tracepoint.c (tracepoint_list, stepping_list): Remove.
1817 (clear_collection_list): Free fields 'aexpre_list' and 'list'
1818 in collection_list.
1819 (do_clear_collection_list, init_collection_list): New.
1820 (encode_actions): Add local variables 'tracepoint_list' and
1821 'stepping_list'. Call init_collection_list and make cleanup
1822 which calls do_clear_collection_list. Don't call
1823 clear_collection_list.
1824 (_initialize_tracepoint): Delete references to
1825 'tracepoint_list' and 'stepping_list'.
1826
1827 2013-06-25 Tom Tromey <tromey@redhat.com>
1828
1829 * common/create-version.sh (date): Use "$", not "$$" in sed
1830 expression.
1831
1832 2013-06-25 Kevin Buettner <kevinb@redhat.com>
1833
1834 * NEWS (New targets): Add entry for TI MSP430.
1835
1836 2013-06-25 Yao Qi <yao@codesourcery.com>
1837
1838 * remote.c (remote_start_remote): Move code to upload tsv
1839 earlier.
1840
1841 2013-06-25 Yao Qi <yao@codesourcery.com>
1842 Hui Zhu <hui@codesourcery.com>
1843 Pedro Alves <palves@redhat.com>
1844
1845 PR breakpoints/15075
1846 PR breakpoints/15434
1847 * breakpoint.c (bpstat_stop_status): Call
1848 b->ops->after_condition_true.
1849 (update_dprintf_command_list): Don't append "continue" command
1850 to the command list of dprintf breakpoint.
1851 (base_breakpoint_after_condition_true): New function.
1852 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
1853 (dprintf_after_condition_true): New function.
1854 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
1855 * breakpoint.h (breakpoint_ops): Add after_condition_true.
1856
1857 2013-06-24 Kevin Buettner <kevinb@redhat.com>
1858
1859 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
1860 (ALLDEPFILES): Add msp430-tdep.c.
1861 * configure.tgt (msp430*-*-elf): New target.
1862 * msp430-tdep.c: New file.
1863
1864 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
1865
1866 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
1867 microMIPS synthetic symbols.
1868
1869 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
1870
1871 * objfiles.h (pc_in_section): New prototype.
1872 (in_plt_section): Remove name argument, replace prototype with
1873 static inline function.
1874 * mips-tdep.h: Include "objfiles.h".
1875 (in_mips_stubs_section): New function.
1876 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
1877 in_solib_call_trampoline member.
1878 (hppa_in_solib_call_trampoline): Remove name argument.
1879 * objfiles.c (pc_in_section): New function.
1880 (in_plt_section): Remove function.
1881 * mips-linux-tdep.c: Include "objfiles.h".
1882 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
1883 name argument. Return 1 rather than the low 16-bit halfword of
1884 any instruction examined.
1885 (mips_linux_in_dynsym_resolve_code): Update
1886 mips_linux_in_dynsym_stub call accordingly.
1887 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
1888 rather than an equivalent hand-coded sequence.
1889 * hppa-hpux-tdep.c (in_opd_section): Remove function.
1890 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
1891 (hppa64_hpux_in_solib_call_trampoline): Likewise.
1892 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
1893 in_opd_section.
1894 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
1895 on call to tdep->in_solib_call_trampoline.
1896 (hppa_in_solib_call_trampoline): Remove name argument, update
1897 according to in_plt_section change.
1898 (hppa_skip_trampoline_code): Update according to in_plt_section
1899 change.
1900 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
1901 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
1902 Likewise.
1903 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
1904 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
1905 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
1906 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
1907 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
1908 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
1909 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
1910 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
1911 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
1912 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
1913 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
1914 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
1915 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
1916
1917 2013-06-24 Joel Brobecker <brobecker@adacore.com>
1918
1919 * common/create-version.sh: Fix expansion of $host_alias
1920 and $target_alias in generation of HOST_NAME and TARGET_NAME
1921 (resp.).
1922
1923 2013-06-24 Tom Tromey <tromey@redhat.com>
1924
1925 * common/create-version.sh: New file.
1926 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
1927 create-version.sh.
1928 (HFILES_NO_SRCDIR): Use common/version.h.
1929 * version.in: Move to ...
1930 * common/version.in: ... here. Replace date with "DATE".
1931 * version.h: Move to ...
1932 * common/version.h: ... here.
1933
1934 2013-06-21 Joel Brobecker <brobecker@adacore.com>
1935
1936 * gdb/gnulib/Makefile.in: Update date in copyright header.
1937 * gdb/gnulib/configure.ac: Ditto.
1938 * gdb/gnulib/update-gnulib.sh: Ditto.
1939
1940 2013-06-21 Joel Brobecker <brobecker@adacore.com>
1941
1942 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
1943 "gdb/gnulib/import".
1944
1945 2013-06-21 Will Newton <will.newton@linaro.org>
1946
1947 * doublest.c (ldfrexp): Remove function.
1948 (convert_doublest_to_floatformat): Call frexpl instead of
1949 ldfrexp.
1950
1951 2013-06-21 Will Newton <will.newton@linaro.org>
1952
1953 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
1954 * gnulib/aclocal.m4: Regenerate.
1955 * gnulib/config.in: Regenerate.
1956 * gnulib/configure: Regenerate.
1957 * gnulib/import/Makefile.am: Update.
1958 * gnulib/import/Makefile.in: Update.
1959 * gnulib/import/m4/gnulib-cache.m4: Update.
1960 * gnulib/import/m4/gnulib-comp.m4: Update.
1961 * gnulib/import/float+.h: Import.
1962 * gnulib/import/float.c: Import.
1963 * gnulib/import/float.in.h: Import.
1964 * gnulib/import/fpucw.h: Import.
1965 * gnulib/import/frexp.c: Import.
1966 * gnulib/import/frexpl.c: Import.
1967 * gnulib/import/isnan.c: Import.
1968 * gnulib/import/isnand-nolibm.h: Import.
1969 * gnulib/import/isnand.c: Import.
1970 * gnulib/import/isnanl-nolibm.h: Import.
1971 * gnulib/import/isnanl.c: Import.
1972 * gnulib/import/itold.c: Import.
1973 * gnulib/import/m4/exponentd.m4: Import.
1974 * gnulib/import/m4/exponentl.m4: Import.
1975 * gnulib/import/m4/float_h.m4: Import.
1976 * gnulib/import/m4/fpieee.m4: Import.
1977 * gnulib/import/m4/frexp.m4: Import.
1978 * gnulib/import/m4/frexpl.m4: Import.
1979 * gnulib/import/m4/isnand.m4: Import.
1980 * gnulib/import/m4/isnanl.m4: Import.
1981 * gnulib/import/m4/math_h.m4: Import.
1982 * gnulib/import/math.c: Import.
1983 * gnulib/import/math.in.h: Import.
1984
1985 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1986
1987 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
1988 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
1989 signature_INTEL_edx comparisons.
1990
1991 2013-06-20 Doug Evans <dje@google.com>
1992
1993 symtab/15652
1994 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
1995 All callers updated.
1996 (open_dwp_file): If we can't find the dwp file, search the basename
1997 in debug-file-directory.
1998
1999 * dwarf2read.c (struct dwp_file): Fix comment.
2000 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
2001
2002 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
2003 better.
2004
2005 2013-06-20 Yao Qi <yao@codesourcery.com>
2006
2007 * breakpoint.c (create_breakpoint): Fix code indentation.
2008
2009 2013-06-20 Yao Qi <yao@codesourcery.com>
2010
2011 * breakpoint.c (create_breakpoints_sal_default): Remove
2012 parameter 'lsal'. Update declaration.
2013 (bkpt_create_breakpoints_sal): Caller update.
2014 (tracepoint_create_breakpoints_sal): Likewise.
2015
2016 2013-06-20 Pedro Alves <pedro@codesourcery.com>
2017 Yao Qi <yao@codesourcery.com>
2018
2019 * NEWS: Mention the new option '--skip-unavailable' of command
2020 -data-list-register-values.
2021 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
2022 --skip-unavailable option. Adjust to use output_register.
2023 (output_register): Add new 'skip_unavailable' parameter.
2024 Handle it.
2025
2026 2013-06-19 Mike Frysinger <vapier@gentoo.org>
2027
2028 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
2029 common/i386-gcc-cpuid.h.
2030 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
2031 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
2032 Copy the latest version from upstream gcc.
2033 * common/linux-btrace.c: Include i386-cpuid.h.
2034 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
2035 call to i386_cpuid.
2036 (cpu_supports_btrace): Likewise.
2037 * go32-nat.c: Include i386-cpuid.h.
2038 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
2039
2040 2013-06-19 Doug Evans <dje@google.com>
2041
2042 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
2043 (get_section_index): Ditto.
2044
2045 2013-06-19 Tom Tromey <tromey@redhat.com>
2046
2047 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
2048 "dprintf" help.
2049
2050 2013-06-18 Doug Evans <dje@google.com>
2051
2052 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
2053 before using it.
2054 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
2055 Move test of cu_index closer to use. Print complaint if cu_index
2056 is bad.
2057
2058 2013-06-18 Joel Brobecker <brobecker@adacore.com>
2059
2060 * machoread.c (oso_vector): Delete this global.
2061 (macho_register_oso): Add new parameter "oso_vector_ptr".
2062 Use it instead of the "oso_vector" global.
2063 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
2064 (macho_symfile_read): Use a local oso_vector, to be free'ed
2065 at the end of this function, in place of the old "oso_vector"
2066 global. Update various function calls accordingly. Use one
2067 single cleanup chain for the entire function.
2068
2069 2013-06-18 Joel Brobecker <brobecker@adacore.com>
2070
2071 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
2072 DWARF2_PER_OBJFILE by uses of DATA instead.
2073
2074 2013-06-18 Tom Tromey <tromey@redhat.com>
2075
2076 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
2077 argument.
2078 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
2079 Special case signals other than GDB_SIGNAL_TRAP.
2080 (explains_signal_watchpoint): New function.
2081 (base_breakpoint_explains_signal): Add 'sig' argument.
2082 (initialize_breakpoint_ops): Set 'explains_signal' method for
2083 watchpoints.
2084 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
2085 signal argument.
2086 (bpstat_explains_signal): Likewise.
2087 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
2088
2089 2013-06-18 Tom Tromey <tromey@redhat.com>
2090
2091 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
2092
2093 2013-06-18 Tom Tromey <tromey@redhat.com>
2094
2095 * python/python.c (finish_python_initialization): Decref
2096 'pythondir' on failure path as well.
2097
2098 2013-06-18 Tom Tromey <tromey@redhat.com>
2099
2100 PR symtab/15391:
2101 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
2102 after taking bits_to_skip into account. Sign extend byte_offset.
2103 * utils.h (gdb_sign_extend): Declare.
2104 * utils.c (gdb_sign_extend): New function.
2105
2106 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2107
2108 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
2109
2110 2013-06-17 Pierre Muller <muller@sourceware.org>
2111
2112 * corelow.c (core_open): Print GDB signal name instead of target
2113 signal number.
2114
2115 2013-06-17 Mike Frysinger <vapier@gentoo.org>
2116
2117 * .gitignore: Add /gcore.
2118
2119 2013-06-13 Doug Evans <dje@google.com>
2120
2121 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
2122 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
2123
2124 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
2125
2126 * stack.c (backtrace_command_1): Fix indentation.
2127
2128 2013-06-11 Joel Brobecker <brobecker@adacore.com>
2129
2130 * window-nat.c (thread_rec): Add missing empty line after
2131 local variable declaration.
2132
2133 2013-06-11 Joel Brobecker <brobecker@adacore.com>
2134
2135 * windows-nat.c (thread_rec): Revert format used to print
2136 error code returned by SuspendThread from %d back to %u.
2137
2138 2013-06-11 Joel Brobecker <brobecker@adacore.com>
2139
2140 * windows-nat.c (windows_continue): Add "0x" prefix for thread
2141 ID in debug trace.
2142 (get_windows_debug_event): Likewise, for all debug traces.
2143
2144 2013-06-11 Joel Brobecker <brobecker@adacore.com>
2145
2146 * window-nat.c (thread_rec): Add thread ID in SuspendThread
2147 warning message.
2148
2149 2013-06-08 Pedro Alves <pedro@codesourcery.com>
2150 Yao Qi <yao@codesourcery.com>
2151
2152 * mi/mi-main.c (get_register): Remove declaration.
2153 (output_register): Declare.
2154 (mi_cmd_data_list_register_values): Remove local variable
2155 'tuple_cleanup'. Move some code into output_register.
2156 (get_register): Renamed to ...
2157 (output_register): ... this. Output the register's
2158 "number" ui_out tuple here.
2159
2160 2013-06-07 Pedro Alves <palves@redhat.com>
2161
2162 * darwin-nat.c: Fix formating in copyright header.
2163 * darwin-nat.h: Likewise.
2164 * gnu-nat.c: Likewise.
2165 * machoread.c: Likewise.
2166
2167 2013-06-07 Pedro Alves <palves@redhat.com>
2168
2169 PR server/14823
2170 * regformats/regdat.sh: Output #include tdesc.h. Make globals
2171 static. Output a global target description pointer.
2172 (init_registers_${name}): Adjust to initialize a
2173 target description structure.
2174
2175 2013-06-07 Will Newton <will.newton@linaro.org>
2176
2177 * printcmd.c (build_address_symbolic): Call
2178 gdbarch_addr_bits_remove for text minimal symbols.
2179
2180 2013-06-07 Will Newton <will.newton@linaro.org>
2181
2182 * MAINTAINERS: Add myself to Write After Approval.
2183
2184 2013-06-07 Yao Qi <yao@codesourcery.com>
2185
2186 * tracepoint.c (start_tracing): Move code to ...
2187 (trace_reset_local_state): ... here. New.
2188 (disconnect_tracing): Don't call set_current_traceframe,
2189 set_tracepoint_num, and set_traceframe_context. Call
2190 trace_reset_local_state instead.
2191 (tfile_close): Call trace_reset_local_state.
2192 * ctf.c (ctf_close): Likewise.
2193 * remote.c (remote_close): Likewise.
2194 * tracepoint.h (trace_reset_local_state): Declare.
2195
2196 2013-06-06 Doug Evans <dje@google.com>
2197
2198 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
2199 and fix header docs.
2200
2201 2013-06-05 Doug Evans <dje@google.com>
2202 Keith Seitz <keiths@redhat.com>
2203
2204 PR 15519
2205 * cp-namespace.c (find_symbol_in_baseclass): Call
2206 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
2207 Check result of call to lookup_symbol_static.
2208 Call lookup_static_symbol_aux unconditionally.
2209 Call check_typedef on base types before accessing them.
2210 (cp_lookup_nested_symbol): Fix comment.
2211
2212 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
2213
2214 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
2215 minimal symbols pointing to function descriptors.
2216
2217 2013-06-05 Tom Tromey <tromey@redhat.com>
2218
2219 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
2220
2221 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
2222 Pedro Alves <palves@redhat.com>
2223
2224 * remote.c (remote_wait_as): Restore signal handler before returning
2225 when GDB gets a notification.
2226
2227 2013-06-04 Gary Benson <gbenson@redhat.com>
2228
2229 PR 2328
2230 * breakpoint.h (handle_solib_event): Moved function declaration
2231 to solib.h.
2232 * breakpoint.c (handle_solib_event): Moved function to solib.c.
2233 (bpstat_stop_status): Pass new argument to handle_solib_event.
2234 * solib.h (update_solib_breakpoints): New function declaration.
2235 (handle_solib_event): Moved function declaration from
2236 breakpoint.h.
2237 * solib.c (update_solib_breakpoints): New function.
2238 (handle_solib_event): Moved function from breakpoint.c.
2239 Updated to call solib_ops->handle_event if not NULL.
2240 * solist.h (target_so_ops): New fields "update_breakpoints" and
2241 "handle_event".
2242 * infrun.c (set_stop_on_solib_events): New function.
2243 (_initialize_infrun): Use the above for "set
2244 stop-on-solib-events".
2245 (handle_inferior_event): Pass new argument to handle_solib_event.
2246 * solib-svr4.c (probe.h): New include.
2247 (svr4_free_library_list): New forward declaration.
2248 (probe_action): New enum.
2249 (probe_info): New struct.
2250 (probe_info): New static variable.
2251 (NUM_PROBES): New definition.
2252 (svr4_info): New fields "using_xfer", "probes_table" and
2253 "solib_list".
2254 (free_probes_table): New function.
2255 (free_solib_list): New function.
2256 (svr4_pspace_data_cleanup): Free probes table and solib list.
2257 (svr4_copy_library_list): New function.
2258 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
2259 (svr4_read_so_list): New parameter "prev_lm".
2260 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
2261 (svr4_current_sos): New function.
2262 (probe_and_action): New struct.
2263 (hash_probe_and_action): New function.
2264 (equal_probe_and_action): Likewise.
2265 (register_solib_event_probe): Likewise.
2266 (solib_event_probe_at): Likewise.
2267 (solib_event_probe_action): Likewise.
2268 (solist_update_full): Likewise.
2269 (solist_update_incremental): Likewise.
2270 (disable_probes_interface_cleanup): Likewise.
2271 (svr4_handle_solib_event): Likewise.
2272 (svr4_update_solib_event_breakpoint): Likewise.
2273 (svr4_update_solib_event_breakpoints): Likewise.
2274 (svr4_create_solib_event_breakpoints): Likewise.
2275 (enable_break): Free probes table before creating breakpoints.
2276 Use svr4_create_solib_event_breakpoints to create breakpoints.
2277 (svr4_solib_create_inferior_hook): Free the solib list.
2278 (_initialize_svr4_solib): Initialise
2279 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
2280
2281 2013-06-04 Gary Benson <gbenson@redhat.com>
2282
2283 * target.h (target_ops): New field
2284 "to_augmented_libraries_svr4_read".
2285 (target_augmented_libraries_svr4_read): New macro.
2286 * target.c (update_current_target): Handle
2287 to_augmented_libraries_svr4_read.
2288 * remote.c (remote_state): New field
2289 "augmented_libraries_svr4_read".
2290 (remote_augmented_libraries_svr4_read_feature): New function.
2291 (remote_protocol_features): Add entry for
2292 "augmented-libraries-svr4-read".
2293 (remote_augmented_libraries_svr4_read): New function.
2294 (init_remote_ops): Initialize
2295 remote_ops.to_augmented_libraries_svr4_read.
2296
2297 2013-06-04 Gary Benson <gbenson@redhat.com>
2298
2299 * NEWS: Update.
2300
2301 2013-06-04 Gary Benson <gbenson@redhat.com>
2302
2303 * objfiles.h (inhibit_section_map_updates): New function
2304 declaration.
2305 (resume_section_map_updates): Likewise.
2306 (resume_section_map_updates_cleanup): Likewise.
2307 * objfiles.c (objfile_pspace_info): Removed field
2308 "objfiles_changed_p". New fields "new_objfiles_available",
2309 "section_map_dirty" and "inhibit_updates".
2310 (allocate_objfile): Set new_objfiles_available.
2311 (free_objfile): Set section_map_dirty.
2312 (objfile_relocate1): Likewise.
2313 (in_plt_section): Likewise.
2314 (find_pc_section): Update the conditions under which the
2315 section map will be updated.
2316 (inhibit_section_map_updates): New function.
2317 (resume_section_map_updates): Likewise.
2318 (resume_section_map_updates_cleanup): Likewise.
2319
2320 2013-06-04 Gary Benson <gbenson@redhat.com>
2321
2322 * probe.h (get_probe_argument_count): New declaration.
2323 (evaluate_probe_argument): Likewise.
2324 * probe.c (get_probe_argument_count): New function.
2325 (evaluate_probe_argument): Likewise.
2326 (probe_safe_evaluate_at_pc): Use the above new functions.
2327
2328 2013-06-04 Alan Modra <amodra@gmail.com>
2329
2330 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
2331 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
2332 (ppc_insns_match_pattern): Add frame param. Avoid multiple
2333 target mem reads on optional insns.
2334 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
2335 ppc_insns_match_pattern calls.
2336 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
2337 Add match for power7 thread safety insns, and new order of
2338 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
2339 invocation in comment, and update rest of comment.
2340 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
2341 PPC64_STANDARD_LINKAGE3_LEN): Delete.
2342 (ppc64_standard_linkage2_target): Update insn offsets.
2343 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
2344 stubs first. Update calls.
2345
2346 2013-06-04 Yao Qi <yao@codesourcery.com>
2347
2348 * solib.c (solib_find): Don't need dir separator if path has
2349 drive spec.
2350
2351 2013-06-03 Joel Brobecker <brobecker@adacore.com>
2352
2353 Revert (indirectly causes a SIGSEGV):
2354 * machoread.c (macho_symfile_read): Assign first cleanup to
2355 'back_to'.
2356
2357 2013-06-03 Yao Qi <yao@codesourcery.com>
2358
2359 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
2360 mi-parse.c. Make them static.
2361 (mi_all_values): Likewise.
2362 (mi_parse_values_option): Move to mi-parse.c. Rename it to
2363 mi_parse_print_values. Make it external.
2364 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
2365 Remove the declarations.
2366 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
2367 * mi/mi-parse.h (mi_parse_print_values): Declare.
2368 * mi/mi-cmd-stack.c: Include mi-parse.h.
2369 (parse_print_values): Remove
2370 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
2371 of parse_print_values.
2372 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
2373
2374 2013-05-31 Pedro Alves <pedro@codesourcery.com>
2375 Yao Qi <yao@codesourcery.com>
2376
2377 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
2378 (encode_actions): Move code to ...
2379 (all_tracepoint_actions_and_cleanup): ... here. New.
2380 (trace_dump_command): Likewise.
2381
2382 2013-05-30 Tom Tromey <tromey@redhat.com>
2383
2384 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
2385
2386 2013-05-30 Tom Tromey <tromey@redhat.com>
2387
2388 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
2389 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
2390 'old_chain' argument. Add 'parser_result' argument.
2391 (gdb_xml_create_parser_and_cleanup): Remove old version.
2392 (gdb_xml_parse_quick): Update.
2393 (xml_process_xincludes): Update.
2394 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
2395 declare.
2396
2397 2013-05-30 Tom Tromey <tromey@redhat.com>
2398
2399 * probe.c (collect_probes): Check arguments for NULL before
2400 calling compile_rx_or_error.
2401 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
2402 Remove NULL return.
2403
2404 2013-05-30 Tom Tromey <tromey@redhat.com>
2405
2406 * infrun.c (adjust_pc_after_break): Introduce an outer null
2407 cleanup.
2408
2409 2013-05-30 Tom Tromey <tromey@redhat.com>
2410
2411 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
2412
2413 2013-05-30 Tom Tromey <tromey@redhat.com>
2414
2415 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
2416 for 'old_chain'. Do not check 'head' before processing
2417 cleanups.
2418
2419 2013-05-30 Tom Tromey <tromey@redhat.com>
2420
2421 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
2422 "cleanup_tuple".
2423
2424 2013-05-30 Tom Tromey <tromey@redhat.com>
2425
2426 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
2427 inner scope. Unconditionally call do_cleanups.
2428
2429 2013-05-30 Tom Tromey <tromey@redhat.com>
2430
2431 * source.c (find_and_open_source): Call do_cleanups.
2432
2433 2013-05-30 Tom Tromey <tromey@redhat.com>
2434
2435 * linux-thread-db.c (thread_db_load_search): Unconditionally
2436 call do_cleanups.
2437
2438 2013-05-30 Tom Tromey <tromey@redhat.com>
2439
2440 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
2441 for 'cleanup'; instead use a later one.
2442
2443 2013-05-30 Tom Tromey <tromey@redhat.com>
2444
2445 * python/py-breakpoint.c (bppy_get_commands): Use
2446 explicit, unconditional return.
2447 * python/py-frame.c (frapy_read_var): Likewise.
2448 * python/python.c (gdbpy_decode_line): Likewise.
2449
2450 2013-05-30 Tom Tromey <tromey@redhat.com>
2451
2452 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
2453 do_cleanups on all return paths.
2454
2455 2013-05-30 Tom Tromey <tromey@redhat.com>
2456
2457 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
2458
2459 2013-05-30 Tom Tromey <tromey@redhat.com>
2460
2461 * stabsread.c (read_struct_type): Call do_cleanups along
2462 all return paths.
2463
2464 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
2465
2466 * mips-linux-tdep.c: Adjust formatting throughout.
2467
2468 2013-05-30 Tom Tromey <tromey@redhat.com>
2469
2470 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
2471 along all return paths.
2472
2473 2013-05-30 Tom Tromey <tromey@redhat.com>
2474
2475 * symfile.c (find_separate_debug_file): Call do_cleanups
2476 along all return paths.
2477
2478 2013-05-30 Tom Tromey <tromey@redhat.com>
2479
2480 * symtab.c (search_symbols): Introduce a null cleanup for
2481 'retval_chain'.
2482
2483 2013-05-30 Tom Tromey <tromey@redhat.com>
2484
2485 * python/py-value.c (valpy_binop): Call do_cleanups before
2486 exiting loop.
2487
2488 2013-05-30 Tom Tromey <tromey@redhat.com>
2489
2490 * python/py-prettyprint.c (print_children): Remove extra
2491 do_cleanups call.
2492
2493 2013-05-30 Tom Tromey <tromey@redhat.com>
2494
2495 * python/py-frame.c (frapy_read_var): Call do_cleanups along
2496 all return paths.
2497
2498 2013-05-30 Tom Tromey <tromey@redhat.com>
2499
2500 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
2501 along all return paths.
2502
2503 2013-05-30 Tom Tromey <tromey@redhat.com>
2504
2505 * cli/cli-logging.c (set_logging_redirect): Unconditionally
2506 call do_cleanups.
2507
2508 2013-05-30 Tom Tromey <tromey@redhat.com>
2509
2510 * varobj.c (c_value_of_root): Call do_cleanups along all
2511 return paths.
2512
2513 2013-05-30 Tom Tromey <tromey@redhat.com>
2514
2515 * tracepoint.c (trace_dump_command): Unconditionally call
2516 do_cleanups.
2517
2518 2013-05-30 Tom Tromey <tromey@redhat.com>
2519
2520 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
2521 do_cleanups earlier.
2522
2523 2013-05-30 Tom Tromey <tromey@redhat.com>
2524
2525 * machoread.c (macho_symfile_read): Assign first cleanup to
2526 'back_to'.
2527
2528 2013-05-30 Tom Tromey <tromey@redhat.com>
2529
2530 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
2531
2532 2013-05-30 Tom Tromey <tromey@redhat.com>
2533
2534 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
2535
2536 2013-05-30 Tom Tromey <tromey@redhat.com>
2537
2538 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
2539 call discard_cleanups.
2540 (inf_ptrace_attach): Likewise.
2541
2542 2013-05-30 Tom Tromey <tromey@redhat.com>
2543
2544 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
2545 return paths.
2546 (mips_initialize): Likewise.
2547 (common_open): Call do_cleanups.
2548
2549 2013-05-30 Tom Tromey <tromey@redhat.com>
2550
2551 * utils.c (internal_vproblem): Call do_cleanups.
2552
2553 2013-05-30 Tom Tromey <tromey@redhat.com>
2554
2555 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
2556
2557 2013-05-30 Tom Tromey <tromey@redhat.com>
2558
2559 * cli/cli-script.c (setup_user_args): Don't return after error.
2560
2561 2013-05-30 Tom Tromey <tromey@redhat.com>
2562
2563 * somread.c (som_symtab_read): Call do_cleanups.
2564
2565 2013-05-30 Tom Tromey <tromey@redhat.com>
2566
2567 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
2568
2569 2013-05-30 Tom Tromey <tromey@redhat.com>
2570
2571 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
2572 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
2573 * interps.c (interpreter_exec_cmd): Call do_cleanups.
2574 * source.c (show_substitute_path_command): Call do_cleanups.
2575 (unset_substitute_path_command, set_substitute_path_command):
2576 Likewise.
2577 * symfile.c (load_command): Call do_cleanups.
2578
2579 2013-05-30 Tom Tromey <tromey@redhat.com>
2580
2581 * contrib/cleanup_check.py: New file.
2582 * contrib/gcc-with-excheck: Add option parsing.
2583
2584 2013-05-30 Joel Brobecker <brobecker@adacore.com>
2585
2586 * windows-nat.c (windows_delete_thread): Add missing space
2587 in cast expression.
2588
2589 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
2590
2591 * inferior.c (top level): Include tilde.h.
2592 (add_inferior_command): Call tilde_expand on the value of 'exec'
2593 argument.
2594
2595 2013-05-30 Pedro Alves <pedro@codesourcery.com>
2596 Yao Qi <yao@codesourcery.com>
2597
2598 * tracepoint.c (encode_actions_1): Remove parameter 't'.
2599 Caller update.
2600 (encode_actions): Likewise.
2601 * remote.c (remote_download_tracepoint): Caller update.
2602 * tracepoint.h (encode_actions): Update declaration.
2603
2604 2013-05-30 Pedro Alves <palves@redhat.com>
2605
2606 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
2607 pointer.
2608
2609 2013-05-30 Yao Qi <yao@codesourcery.com>
2610
2611 * remote.c (remote_check_symbols): Remove unused parameter
2612 'objfile'.
2613 Declaration update.
2614 (remote_start_remote, remote_new_objfile): Caller update.
2615
2616 2013-05-30 Yao Qi <yao@codesourcery.com>
2617
2618 * mi/mi-cmds.c (mi_cmds): Define MI command
2619 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
2620 DEF_MI_CMD_CLI.
2621
2622 2013-05-29 Pedro Alves <palves@redhat.com>
2623
2624 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
2625 (remote_insert_watchpoint, remote_remove_watchpoint)
2626 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
2627 (remote_verify_memory, compare_sections_command)
2628 (remote_search_memory): Set the general process/thread on the
2629 remote side.
2630
2631 2013-05-29 Pedro Alves <palves@redhat.com>
2632
2633 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
2634 (_initialize_aarch64_tdep): Don't call
2635 initialize_tdesc_aarch64_without_fpu.
2636 * features/Makefile (WHICH): Remove reference to
2637 aarch64-without-fpu.
2638 * features/aarch64-without-fpu.c: Delete file.
2639 * regformats/aarch64-without-fpu.dat: Delete file.
2640
2641 2013-05-28 Yao Qi <yao@codesourcery.com>
2642
2643 * tracepoint.c (stringify_collection_list): Remove parameter
2644 'string'.
2645 (encode_actions): Caller update. Remove local variables.
2646
2647 2013-05-24 Yao Qi <yao@codesourcery.com>
2648
2649 * tracepoint.c (TFILE_PID): Remove.
2650 (tfile_open): Don't add thread and inferior.
2651 (tfile_close): Don't set 'inferior_ptid'. Don't call
2652 exit_inferior_silent.
2653 (tfile_thread_alive): Remove.
2654 (init_tfile_ops): Don't set field 'to_thread_alive' of
2655 tfile_ops.
2656
2657 2013-05-23 Doug Evans <dje@google.com>
2658
2659 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
2660
2661 2013-05-23 Pedro Alves <palves@redhat.com>
2662
2663 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
2664 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
2665 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
2666 Only define if HAVE_SOCKETS is defined.
2667 * configure.ac: Check for sys/socket.h.
2668 * config.in, configure: Regenerate.
2669
2670 2013-05-23 Pedro Alves <palves@redhat.com>
2671
2672 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
2673 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
2674 printing uint32_t variables.
2675
2676 2013-05-23 Pedro Alves <palves@redhat.com>
2677
2678 * NEWS: Mention GDBserver range stepping support.
2679
2680 2013-05-23 Yao Qi <yao@codesourcery.com>
2681 Pedro Alves <palves@redhat.com>
2682
2683 * gdbthread.h (struct thread_control_state) <may_range_step>: New
2684 field.
2685 * infcmd.c (step_once, until_next_command): Enable range stepping.
2686 * infrun.c (displaced_step_prepare): Disable range stepping.
2687 (resume): Disable range stepping if stepping over a breakpoint or
2688 we have software watchpoints. If range stepping is enabled,
2689 assert the thread is in the stepping range.
2690 (clear_proceed_status_thread): Clear may_range_step.
2691 (handle_inferior_event): Disable range stepping as soon as we know
2692 the thread that hit the event. Re-enable it whenever we're going
2693 to step with a step range.
2694 * remote.c (struct vCont_action_support) <r>: New field.
2695 (use_range_stepping): New global.
2696 (remote_vcont_probe): Handle 'r' action.
2697 (append_resumption): Append an 'r' action if the thread may range
2698 step.
2699 (show_range_stepping): New function.
2700 (set_range_stepping): New function.
2701 (_initialize_remote): Call add_setshow_boolean_cmd to register the
2702 'set range-stepping' and 'show range-stepping' commands.
2703 * NEWS: Mention range stepping, the new vCont;r action, and the
2704 new "set/show range-stepping" commands.
2705
2706 2013-05-23 Yao Qi <yao@codesourcery.com>
2707 Pedro Alves <palves@redhat.com>
2708
2709 * remote.c (struct vCont_action_support): New struct.
2710 (struct remote_state) <support_vCont_t>: Remove field.
2711 <vCont_actions_support>: New field.
2712 (remote_vcont_probe, remote_stop_ns): Update.
2713
2714 2013-05-23 Yao Qi <yao@codesourcery.com>
2715 Pedro Alves <palves@redhat.com>
2716
2717 * gdbthread.h (pc_in_thread_step_range): New declaration.
2718 * thread.c (pc_in_thread_step_range): New function.
2719 * infrun.c (handle_inferior_event): Use it.
2720
2721 2013-05-23 Joel Brobecker <brobecker@adacore.com>
2722
2723 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
2724 of sprintf.
2725
2726 2013-05-22 Keith Seitz <keiths@redhat.com>
2727
2728 * ada-lang.c (is_known_support_routine): Add explicit free of
2729 'func_name' from find_frame_funname.
2730 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
2731 for func_name from find_frame_funname.
2732 * python/py-frame.c (frapy_name): Add explicit free of
2733 'name' from find_frame_funname.
2734 * stack.c (find_frame_funname): Add comment explaining that
2735 funcp must be freed by the caller.
2736 Return copy of symbol names instead of pointers.
2737 (print_frame): Add a cleanup for 'funname' from
2738 find_frame_funname.
2739 * stack.h (find_frame_funname): Remove "const" from
2740 'funname' parameter.
2741
2742 2013-05-22 Tom Tromey <tromey@redhat.com>
2743
2744 PR c++/15401:
2745 * c-valprint.c (c_value_print): Use value_addr for
2746 references. Convert back to reference type with value_ref.
2747
2748 2013-05-22 Eli Zaretskii <eliz@gnu.org>
2749
2750 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
2751 unloaded DLL, it will be done by handle_solib_event. See
2752 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
2753 details.
2754
2755 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
2756
2757 * ui-out.c: Create typedef ui_out_level_p and define vector
2758 operations for that type.
2759 (struct ui_out): Use a vector instead of an array.
2760 (current_level): Return level from a vector.
2761 (push_level): Create a level in a vector.
2762 (pop_level): Delete a level in a vector.
2763 (ui_out_new): Create initial level zero level, and store in a
2764 vector.
2765 (ui_out_destroy): Add vector cleanup.
2766
2767 2013-05-22 Pedro Alves <palves@redhat.com>
2768
2769 * python/python-internal.h (gdb_Py_DECREF): Tag with
2770 "ARI: editCase function".
2771
2772 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
2773
2774 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
2775
2776 2013-05-21 Pedro Alves <palves@redhat.com>
2777
2778 * python/py-prettyprint.c (apply_val_pretty_printer): Check
2779 whether PRINTER is NULL before installing a Py_DECREF cleanup.
2780 * python/py-utils.c (py_decref): Don't check for NULL before
2781 calling Py_DECREF.
2782
2783 2013-05-21 Pedro Alves <palves@redhat.com>
2784
2785 * python/py-utils.c (py_decref): Remove extra braces.
2786 (gdb_pymodule_addobject): Remove extra braces.
2787 * python-internal.h (gdb_Py_DECREF): New static inline function.
2788 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
2789
2790 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2791
2792 * breakpoints.c (detach_breakpoints): Do not
2793 detach breakpoints locations with loc_type bp_loc_other.
2794
2795 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2796
2797 Workaround Python 2.6.
2798 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
2799 a block.
2800
2801 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2802
2803 Code cleanup: constification.
2804 * solib.c (solib_ops): Make return type and ops variable type const.
2805 (set_solib_ops): Make the new_ops parameter and ops variable const.
2806 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
2807 (solib_add, solib_keep_data_in_core, clear_solib)
2808 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2809 (reload_shared_libraries, solib_global_lookup): Make the ops variable
2810 const.
2811 * solib.h (set_solib_ops): Make the new_ops parameter const.
2812
2813 2013-05-21 Joel Brobecker <brobecker@adacore.com>
2814
2815 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
2816 variable.
2817 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
2818 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
2819 (SYSTEM_GDBINIT_FILES): New variables.
2820 (all): Add stamp-system-gdbinit.
2821 (stamp-system-gdbinit): New rule.
2822 (clean-system-gdbinit, install-system-gdbinit)
2823 (uninstall-system-gdbinit): New rules. Make them .PHONY.
2824 (install-only): Add dependency on install-system-gdbinit.
2825 (uninstall): Add dependency on uninstall-system-gdbinit.
2826 (clean): Add dependency on clean-system-gdbinit.
2827 * system-gdbinit/elinos.py: New file.
2828 * system-gdbinit/wrs-linux.py: New file.
2829
2830 2013-05-21 Joel Brobecker <brobecker@adacore.com>
2831
2832 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
2833
2834 2013-05-21 Hui Zhu <hui@codesourcery.com>
2835
2836 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
2837 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
2838 * mi/mi-cmd-break.c (ctype.h): New include.
2839 (gdb_obstack.h): New include.
2840 (mi_argv_to_format, mi_cmd_break_insert_1): New.
2841 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
2842 (mi_cmd_dprintf_insert): New.
2843 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
2844 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
2845
2846 2013-05-20 Tom Tromey <tromey@redhat.com>
2847
2848 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
2849
2850 2013-05-20 Tom Tromey <tromey@redhat.com>
2851
2852 * python/py-value.c (valpy_get_dynamic_type): Simplify
2853 dynamic_type assignment. Use Py_XINCREF.
2854
2855 2013-05-20 Tom Tromey <tromey@redhat.com>
2856
2857 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
2858
2859 2013-05-20 Tom Tromey <tromey@redhat.com>
2860
2861 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
2862 (gdbpy_selected_frame): Move object-construction code
2863 out of TRY_CATCH.
2864
2865 2013-05-20 Tom Tromey <tromey@redhat.com>
2866
2867 * python/py-arch.c (gdbpy_initialize_arch): Use
2868 gdb_pymodule_addobject.
2869 * python/py-block.c (gdbpy_initialize_blocks): Use
2870 gdb_pymodule_addobject.
2871 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
2872 gdb_pymodule_addobject.
2873 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
2874 gdb_pymodule_addobject.
2875 * python/py-event.c (gdbpy_initialize_event_generic): Use
2876 gdb_pymodule_addobject.
2877 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
2878 gdb_pymodule_addobject.
2879 * python/py-evts.c (add_new_registry): Use
2880 gdb_pymodule_addobject.
2881 (gdbpy_initialize_py_events): Likewise.
2882 * python/py-finishbreakpoint.c
2883 (gdbpy_initialize_finishbreakpoints): Use
2884 gdb_pymodule_addobject.
2885 * python/py-frame.c (gdbpy_initialize_frames): Use
2886 gdb_pymodule_addobject.
2887 * python/py-function.c (gdbpy_initialize_functions): Use
2888 gdb_pymodule_addobject.
2889 * python/py-inferior.c (gdbpy_initialize_inferior): Use
2890 gdb_pymodule_addobject.
2891 * python/py-infthread.c (gdbpy_initialize_thread): Use
2892 gdb_pymodule_addobject.
2893 * python/py-objfile.c (gdbpy_initialize_objfile): Use
2894 gdb_pymodule_addobject.
2895 * python/py-param.c (gdbpy_initialize_parameters): Use
2896 gdb_pymodule_addobject.
2897 * python/py-progspace.c (gdbpy_initialize_pspace): Use
2898 gdb_pymodule_addobject.
2899 * python/py-symbol.c (gdbpy_initialize_symbols): Use
2900 gdb_pymodule_addobject.
2901 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
2902 gdb_pymodule_addobject.
2903 * python/py-type.c (gdbpy_initialize_types): Use
2904 gdb_pymodule_addobject.
2905 * python/py-utils.c (gdb_pymodule_addobject): New function.
2906 * python/py-value.c (gdbpy_initialize_values): Use
2907 gdb_pymodule_addobject.
2908 * python/python-internal.h (gdb_pymodule_addobject): Declare.
2909 * python/python.c (_initialize_python): Use
2910 gdb_pymodule_addobject.
2911
2912 2013-05-20 Tom Tromey <tromey@redhat.com>
2913
2914 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
2915 * python/py-param.c (get_set_value, get_show_value): Use
2916 explicit decrefs.
2917 * python/python.c (start_type_printers, apply_type_printers):
2918 Use explicit decrefs.
2919
2920 2013-05-20 Tom Tromey <tromey@redhat.com>
2921
2922 * python/py-evts.c (gdbpy_initialize_py_events): Don't
2923 incref the module.
2924
2925 2013-05-20 Tom Tromey <tromey@redhat.com>
2926
2927 * python/python.c (gdbpy_run_events): Decref the result
2928 of PyObject_CallObject.
2929
2930 2013-05-20 Tom Tromey <tromey@redhat.com>
2931
2932 * python/py-symtab.c (set_sal): Use
2933 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
2934 (symtab_and_line_to_sal_object): Update.
2935
2936 2013-05-20 Tom Tromey <tromey@redhat.com>
2937
2938 * python/py-param.c (compute_enum_values): Decref 'item'.
2939
2940 2013-05-20 Tom Tromey <tromey@redhat.com>
2941
2942 * mi/mi-main.c: Include python-internal.h.
2943 (mi_cmd_list_features): Check gdb_python_initialized.
2944 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
2945 (python_inferior_exit, python_new_objfile, add_thread_object)
2946 (delete_thread_object, py_free_inferior): Check
2947 gdb_python_initialized.
2948 * python/py-prettyprint.c (apply_val_pretty_printer): Check
2949 gdb_python_initialized.
2950 * python/py-type.c (save_objfile_types): Check
2951 gdb_python_initialized.
2952 * python/python-internal.h (gdb_python_initialized): Declare.
2953 * python/python.c (ensure_python_env): Throw exception if
2954 Python not initialized.
2955 (before_prompt_hook, source_python_script_for_objfile)
2956 (start_type_printers, apply_type_printers,
2957 free_type_printers): Check gdb_python_initialized.
2958 * varobj.c (varobj_get_display_hint)
2959 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
2960 (install_new_value_visualizer, varobj_set_visualizer)
2961 (value_get_print_value): Check gdb_python_initialized.
2962
2963 2013-05-20 Tom Tromey <tromey@redhat.com>
2964
2965 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
2966 Check errors.
2967 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
2968 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
2969 Check errors.
2970 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
2971 Check errors.
2972 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
2973 Check errors.
2974 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
2975 Check errors.
2976 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
2977 init function to return 'int'.
2978 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
2979 Return 'int'. Check errors.
2980 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
2981 Check errors.
2982 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
2983 Return 'int'. Check errors.
2984 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
2985 Check errors.
2986 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
2987 Check errors.
2988 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
2989 Check errors.
2990 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
2991 Check errors.
2992 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
2993 Check errors.
2994 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
2995 Check errors.
2996 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
2997 Check errors.
2998 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
2999 Check errors.
3000 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
3001 Check errors.
3002 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
3003 Check errors.
3004 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
3005 Check errors.
3006 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
3007 Check errors.
3008 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
3009 Check errors.
3010 * python/python-internal.h (gdbpy_initialize_auto_load,
3011 gdbpy_initialize_values, gdbpy_initialize_frames,
3012 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
3013 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
3014 gdbpy_initialize_blocks, gdbpy_initialize_types,
3015 gdbpy_initialize_functions, gdbpy_initialize_pspace,
3016 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
3017 gdbpy_initialize_finishbreakpoints,
3018 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
3019 gdbpy_initialize_thread, gdbpy_initialize_inferior,
3020 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
3021 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
3022 gdbpy_initialize_signal_event,
3023 gdbpy_initialize_breakpoint_event,
3024 gdbpy_initialize_continue_event,
3025 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
3026 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
3027 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3028 * python/python.c (gdb_python_initialized): New global.
3029 (gdbpy_initialize_events): Return 'int'. Check errors.
3030 (_initialize_python): Check errors. Set
3031 gdb_python_initialized.
3032
3033 2013-05-20 Tom Tromey <tromey@redhat.com>
3034
3035 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
3036 Decref the reslut of PyObject_CallMethod.
3037
3038 2013-05-20 Tom Tromey <tromey@redhat.com>
3039
3040 * python/py-event.c (gdbpy_initialize_event_generic): Return
3041 early if PyType_Ready fails.
3042
3043 2013-05-20 Tom Tromey <tromey@redhat.com>
3044
3045 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
3046 as 'default' in the switch.
3047
3048 2013-05-20 Tom Tromey <tromey@redhat.com>
3049
3050 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
3051 get_addr_from_python calls out of TRY_CATCH.
3052 (infpy_write_memory, infpy_search_memory): Likewise.
3053 * python/py-utils.c (get_addr_from_python): Return negative
3054 value on error. Use TRY_CATCH.
3055 * python/python-internal.h (get_addr_from_python): Use
3056 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3057
3058 2013-05-20 Tom Tromey <tromey@redhat.com>
3059
3060 * python/py-event.c (evpy_emit_event): Decref the
3061 result of PyObject_CallFunctionObjArgs.
3062
3063 2013-05-20 Tom Tromey <tromey@redhat.com>
3064
3065 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
3066 Correctly decref.
3067
3068 2013-05-20 Tom Tromey <tromey@redhat.com>
3069
3070 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
3071
3072 2013-05-20 Tom Tromey <tromey@redhat.com>
3073
3074 * python/py-event.h (gdbpy_initialize_event_generic): Use
3075 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3076 * python/py-evts.c (add_new_registry): Use
3077 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3078 * python/python-internal.h
3079 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
3080
3081 2013-05-20 Tom Tromey <tromey@redhat.com>
3082
3083 * python/py-arch.c (archpy_disassemble): Update.
3084 * python/py-type.c (typy_get_composite, typy_lookup_typename)
3085 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
3086 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
3087 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
3088 macro.
3089 (GDB_PY_HANDLE_EXCEPTION): Update.
3090 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
3091
3092 2013-05-20 Tom Tromey <tromey@redhat.com>
3093
3094 * python/python-internal.h (events_object_type): Remove.
3095
3096 2013-05-20 Tom Tromey <tromey@redhat.com>
3097
3098 * python/py-event.h (evpy_emit_event): Use
3099 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
3100 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
3101 New macro.
3102
3103 2013-05-20 Tom Tromey <tromey@redhat.com>
3104
3105 * py-evtregistry.c (create_event_object): Decref
3106 eventregistry_object if PyList_New fails.
3107
3108 2013-05-20 Tom Tromey <tromey@redhat.com>
3109
3110 * py-cmd.c (gdbpy_string_to_argv): Check result of
3111 PyList_New.
3112
3113 2013-05-20 Tom Tromey <tromey@redhat.com>
3114
3115 * python/python.c (before_prompt_hook): Add cleanup to
3116 decref 'hook'.
3117
3118 2013-05-20 Tom Tromey <tromey@redhat.com>
3119
3120 * python/py-function.c (fnpy_init): Decref result of
3121 PyObject_GetAttrString.
3122
3123 2013-05-20 Tom Tromey <tromey@redhat.com>
3124
3125 * python/py-threadevent.c (get_event_thread): Use
3126 CPYCHECKER_RETURNS_BORROWED_REF.
3127 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
3128 New define.
3129 (pspace_to_pspace_object, objfile_to_objfile_object)
3130 (find_thread_object): Use it.
3131
3132 2013-05-20 Tom Tromey <tromey@redhat.com>
3133
3134 * python/py-arch.c (arch_object_type): Use
3135 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3136 * python/py-block.c (block_syms_iterator_object_type):
3137 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3138 * python/py-bpevent.c (breakpoint_event_object_type):
3139 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3140 * python/py-cmd.c (cmdpy_object_type): Use
3141 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3142 * python/py-continueevent.c (continue_event_object_type):
3143 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3144 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
3145 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3146 * python/py-events.h (thread_event_object_type):
3147 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3148 * python/py-evtregistry.c (eventregistry_object_type): Use
3149 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3150 * python/py-exitedevent.c (exited_event_object_type):
3151 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3152 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
3153 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3154 * python/py-function.c (fnpy_object_type): Use
3155 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3156 * python/py-inferior.c (inferior_object_type, membuf_object_type):
3157 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3158 * python/py-infthread.c (thread_object_type): Use
3159 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3160 * python/py-lazy-string.c (lazy_string_object_type):
3161 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3162 * python/py-newobjfileevent.c (new_objfile_event_object_type):
3163 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3164 * python/py-objfile.c (objfile_object_type): Use
3165 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3166 * python/py-param.c (parmpy_object_type):
3167 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3168 * python/py-progspace.c (pspace_object_type):
3169 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3170 * python/py-signalevent.c (signal_event_object_type):
3171 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3172 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
3173 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3174 * python/py-type.c (type_object_type, field_object_type)
3175 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3176 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
3177 define.
3178 (value_object_type, block_object_type, symbol_object_type)
3179 (event_object_type, stop_event_object_type, breakpoint_object_type)
3180 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3181
3182 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
3183
3184 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
3185 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
3186
3187 2013-05-20 Doug Evans <dje@google.com>
3188
3189 When reading CU, stay in DWO. Be more tolerent of bad debug info.
3190 For Fission.
3191 * dwarf2read.c (struct dwarf2_per_cu_data): New member
3192 reading_dwo_directly.
3193 (struct signatured_type): New member dwo_unit.
3194 (struct die_reader_specs): New member comp_dir.
3195 (create_signatured_type_table_from_index): Use malloc for
3196 all_type_units instead of objfile's obstack.
3197 (create_all_type_units): Ditto.
3198 (fill_in_sig_entry_from_dwo_entry): New function.
3199 (add_type_unit): New function.
3200 (lookup_dwo_signatured_type): New function.
3201 (lookup_dwp_signatured_type): New function.
3202 (lookup_signatured_type): New arg cu. All callers updated.
3203 (init_cu_die_reader): Initialize comp_dir.
3204 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
3205 Change assert of matching type signatures to call error on mismatch.
3206 (lookup_dwo_unit): Add assert.
3207 (init_tu_and_read_dwo_dies): New function.
3208 (init_cutu_and_read_dies): Call it.
3209 (build_type_unit_groups): Handle case of no type unit groups created.
3210 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
3211 (lookup_dwo_cutu): Tweak complaint.
3212 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
3213 (dwarf2_per_objfile_free): Free all_type_units.
3214
3215 2013-05-20 Joel Brobecker <brobecker@adacore.com>
3216
3217 * windows-nat.c (handle_unload_dll): Add missing empty line.
3218
3219 2013-05-20 Joel Brobecker <brobecker@adacore.com>
3220
3221 * dwarf2read.c (prototyped_function_p): New function.
3222 (read_subroutine_type): Use it.
3223
3224 2013-05-20 Joel Brobecker <brobecker@adacore.com>
3225
3226 * rs6000-aix-tdep.c: De-indent some example code provided
3227 as a comment.
3228
3229 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
3230
3231 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
3232 region is ok for a hardware watchpoint using the new ptrace interface
3233 on Power servers.
3234
3235 2013-05-17 Doug Evans <dje@google.com>
3236
3237 * NEWS: Mention new maintenance commands check-symtabs, and
3238 expand-symtabs, and renamed check-psymtabs.
3239 * psymtab.c (maintenance_check_psymtabs): Renamed from
3240 maintenance_check_symtabs. Only process already-expanded symbol
3241 tables.
3242 (_initialize_psymtab): Update.
3243 * symmisc.c (maintenance_check_symtabs): New function.
3244 (maintenance_expand_name_matcher): New function
3245 (maintenance_expand_file_matcher): New function
3246 (maintenance_expand_symtabs): New function.
3247 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
3248 commands.
3249
3250 2013-05-17 Tom Tromey <tromey@redhat.com>
3251
3252 * python/py-inferior.c (infpy_read_memory): Don't call
3253 PyErr_SetString if PyObject_New fails.
3254 * python/py-frame.c (frame_info_to_frame_object): Don't call
3255 PyErr_SetString if PyObject_New fails.
3256
3257 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
3258
3259 * acinclude.m4: Add check for dlopen in libdl.
3260 * configure.ac: Ditto.
3261 * configure: Regenerate.
3262
3263 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
3264
3265 * frame.c (frame_stash): Convert to htab.
3266 (frame_addr_hash): New function.
3267 (frame_addr_hash_eq): New function.
3268 (frame_stash_create): Convert function to create
3269 a hash table.
3270 (frame_stash_add): Convert function to add an entry to a hash
3271 table.
3272 (frame_stash_find): Convert function to search the hash table.
3273 (frame_stash_invalidate): Convert function to empty the hash
3274 table.
3275 (get_frame_id): Only add to stash if a frame_id is created.
3276 (_initialize_frame): Call frame_stash_create.
3277
3278 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
3279
3280 * configure.ac: Ensure MIG is available when building for GNU Hurd
3281 hosts.
3282 * configure: Regenerate.
3283
3284 2013-05-16 Joel Brobecker <brobecker@adacore.com>
3285
3286 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
3287
3288 2013-05-16 Joel Brobecker <brobecker@adacore.com>
3289
3290 * ada-lang.c (ada_make_symbol_completion_list): Make sure
3291 all cleanups are done before returning from this function.
3292
3293 2013-05-15 Joel Brobecker <brobecker@adacore.com>
3294
3295 * utils.h: #include "exceptions.h".
3296 (enum errors): Remove partial declaration.
3297
3298 2013-05-15 Joel Brobecker <brobecker@adacore.com>
3299
3300 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
3301 * gdbarch.h, gdbarch.c: Regenerate.
3302 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
3303 handling.
3304
3305 * rs6000-aix-tdep.h: New file.
3306 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
3307 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
3308 "xml-utils.h".
3309 (struct field_info, struct ld_info_desc): New types.
3310 (ld_info32_desc, ld_info64_desc): New static constants.
3311 (struct ld_info): New type.
3312 (rs6000_aix_extract_ld_info): New function.
3313 (rs6000_aix_shared_library_to_xml): Likewise.
3314 (rs6000_aix_ld_info_to_xml): Likewise.
3315 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3316 (rs6000_aix_init_osabi): Add call to
3317 set_gdbarch_core_xfer_shared_libraries_aix.
3318 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
3319 Remove "xml-utils.h" include.
3320 (LdInfo): Delete typedef.
3321 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
3322 Delete macros.
3323 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
3324 Adjust code accordingly.
3325 (rs6000_core_ldinfo): Delete, folded into
3326 rs6000_aix_core_xfer_shared_libraries_aix.
3327 (rs6000_xfer_shared_library): Delete.
3328 (rs6000_xfer_shared_libraries): Reimplement.
3329
3330 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
3331
3332 * record.c (record_goto_cmdlist): New.
3333 (cmd_record_goto): Split into this ...
3334 (cmd_record_goto_begin): ... this
3335 (cmd_record_goto_end): ... and this.
3336 (_initialize_record): Change "record goto" to prefix command.
3337 Add commands for "record goto begin" and "record goto end".
3338 Add an alias for "record goto start" to "record goto begin".
3339
3340 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3341
3342 * linespec.c (convert_linespec_to_sals): New comment for
3343 SOURCE_FILENAME assignment.
3344
3345 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3346
3347 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
3348 internal_warning.
3349
3350 2013-05-14 Tom Tromey <tromey@redhat.com>
3351
3352 * eval.c (parse_and_eval_long): Make 'exp' const.
3353 * value.h (parse_and_eval_long): Update.
3354
3355 2013-05-14 Tom Tromey <tromey@redhat.com>
3356
3357 * ui-file.c (gdb_fopen): Make arguments const.
3358 * ui-file.h (gdb_fopen): Make arguments const.
3359
3360 2013-05-14 Tom Tromey <tromey@redhat.com>
3361
3362 * remote.c (remote_set_trace_notes): Make arguments const.
3363 * target.c (update_current_target): Update cast.
3364 * target.h (to_set_trace_notes): Make arguments const.
3365
3366 2013-05-14 Tom Tromey <tromey@redhat.com>
3367
3368 * go32-nat.c (go32_terminal_info): Make 'args' const.
3369 * inferior.h (child_terminal_info): Update.
3370 * inflow.c (child_terminal_info): Make 'args' const.
3371 * target.c (default_terminal_info): Make 'args' const.
3372 (debug_to_terminal_save_ours): Likewise.
3373 * target.h (struct target_ops) <to_terminal_info>: Make argument
3374 const.
3375
3376 2013-05-13 Tom Tromey <tromey@redhat.com>
3377
3378 * gcore.c (create_gcore_bfd): Make 'filename' const.
3379 * gcore.h (create_gcore_bfd): Make 'filename' const.
3380 * record-full.c (record_full_save): Make 'recfilename' const.
3381 * target.c (target_save_record): Make 'filename' const.
3382 * target.h (struct target_ops) <to_save_record>: Make 'filename'
3383 const.
3384 (target_save_record): Likewise.
3385
3386 2013-05-13 Tom Tromey <tromey@redhat.com>
3387
3388 PR gdb/15338:
3389 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
3390 ranges section has been read.
3391
3392 2013-05-13 Tom Tromey <tromey@redhat.com>
3393
3394 PR exp/15364:
3395 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
3396 STRUCTOP_PTR>: Return a not_lval value for
3397 EVAL_AVOID_SIDE_EFFECTS.
3398 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
3399 for EVAL_AVOID_SIDE_EFFECTS.
3400
3401 2013-05-13 Joel Brobecker <brobecker@adacore.com>
3402
3403 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
3404 floating point registers to register type before storing
3405 value.
3406 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
3407 Likewise.
3408
3409 2013-05-10 Joel Brobecker <brobecker@adacore.com>
3410 Tom Tromey <tromey@redhat.com>
3411
3412 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
3413 New functions.
3414 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
3415 Declare.
3416 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
3417 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
3418 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
3419 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
3420
3421 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
3422 Tom Tromey <tromey@redhat.com>
3423
3424 PR build/15414:
3425 * configure: Rebuild.
3426 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
3427 with -Wno-format.
3428
3429 2013-05-10 Pedro Alves <palves@redhat.com>
3430
3431 * remote.c (_initialize_remote): Fix spelling of
3432 qXfer:traceframe-info:read packet in packet config command.
3433
3434 2013-05-10 David Taylor <dtaylor@emc.com>
3435
3436 PR remote/15455
3437
3438 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
3439 "QTro" at start of packet.
3440
3441 2013-05-10 Joel Brobecker <brobecker@adacore.com>
3442
3443 * solib-aix.c (solib_aix_relocate_section_addresses):
3444 For the .bss section action, apply the same offset as
3445 the .data section.
3446
3447 2013-05-10 Joel Brobecker <brobecker@adacore.com>
3448
3449 * solib-aix.c (solib_aix_relocate_section_addresses):
3450 Remove FIXME comment.
3451
3452 2013-05-10 Joel Brobecker <brobecker@adacore.com>
3453
3454 PR tdep/15420:
3455 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
3456 New functions, directly copied from sparc-sol-thread.c.
3457 * sparc-sol-thread.c: Delete.
3458 * configure.ac: Remove code handling sparc-solaris-thread.c.
3459 * configure: Regenerate.
3460
3461 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
3462
3463 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
3464 filter logic.
3465 (backtrace_command): Add "no-filters" option parsing.
3466 (_initialize_stack): Alter help to reflect "no-filters" option.
3467 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
3468 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
3469 (py-frame.o): Add target
3470 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
3471 filter files.
3472 * python/python.h: Add new frame filter constants, and flag enum.
3473 (apply_frame_filter): Add definition.
3474 * python/python.c (apply_frame_filter): New non-Python
3475 enabled function.
3476 * python/py-utils.c (py_xdecref): New function.
3477 (make_cleanup_py_xdecref): Ditto.
3478 * python/py-objfile.c: Declare frame_filters dictionary.
3479 (objfpy_dealloc): Add frame_filters dealloc.
3480 (objfpy_new): Initialize frame_filters attribute.
3481 (objfile_to_objfile_object): Ditto.
3482 (objfpy_get_frame_filters): New function.
3483 (objfpy_set_frame_filters): New function.
3484 * python/py-progspace.c: Declare frame_filters dictionary.
3485 (pspy_dealloc): Add frame_filters dealloc.
3486 (pspy_new): Initialize frame_filters attribute.
3487 (pspacee_to_pspace_object): Ditto.
3488 (pspy_get_frame_filters): New function.
3489 (pspy_set_frame_filters): New function.
3490 * python/py-framefilter.c: New file.
3491 * python/lib/gdb/command/frame_filters.py: New file.
3492 * python/lib/gdb/frames.py: New file.
3493 * python/lib/gdb/__init__.py: Initialize global frame_filters
3494 dictionary
3495 * python/lib/gdb/FrameDecorator.py: New file.
3496 * python/lib/gdb/FrameIterator.py: New file.
3497 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
3498 * mi/mi-cmds.h: Declare.
3499 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
3500 --no-frame-filter logic, and Python frame filter logic.
3501 (stack_enable_frame_filters): New function.
3502 (parse_no_frame_option): Ditto.
3503 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
3504 filter logic.
3505 (mi_cmd_stack_list_locals): Ditto.
3506 (mi_cmd_stack_list_args): Ditto.
3507 (mi_cmd_stack_list_variables): Ditto.
3508 * NEWS: Add frame filter note.
3509
3510 2013-05-09 Doug Evans <dje@google.com>
3511
3512 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
3513 All callers updated.
3514 (syms_from_objfile): Ditto. Make static.
3515 (symbol_file_add_with_addrs): Renamed from
3516 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
3517 num_offsets. All callers updated.
3518 * symfile.h (syms_from_objfile): Delete.
3519
3520 * symfile.c (decrement_reading_symtab): Add assert.
3521 (increment_reading_symtab): Ditto.
3522
3523 2013-05-09 Joel Brobecker <brobecker@adacore.com>
3524
3525 * source.c (forward_search_command): Replace call to getc
3526 by call to fgetc.
3527 (reverse_search_command): Likewise.
3528
3529 2013-05-08 Doug Evans <dje@google.com>
3530
3531 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
3532 matching test.
3533
3534 2013-05-08 Joel Brobecker <brobecker@adacore.com>
3535
3536 * sol-thread.c (info_cb): Factorize the code a little.
3537
3538 2013-05-08 Joel Brobecker <brobecker@adacore.com>
3539
3540 * sol-thread.c (info_cb): Rework the output of the "maintenance
3541 info sol-threads" command a bit.
3542
3543 2013-05-08 Joel Brobecker <brobecker@adacore.com>
3544
3545 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
3546 Replace ti.ti_startfunc by ti.ti_pc.
3547
3548 2013-05-08 Joel Brobecker <brobecker@adacore.com>
3549
3550 * solib-aix.c (solib_aix_free_library_list): New function
3551 for the case where HAVE_LIBEXPAT is not defined.
3552
3553 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3554
3555 PR breakpoints/15413:
3556 * breakpoint.c (condition_completer): Simplify the code to
3557 disconsider multiple locations of breakpoints when completing the
3558 "condition" command.
3559
3560 2013-05-07 Pierre Muller <muller@sourceware.org>
3561
3562 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
3563 instead of <sys/wait.h>.
3564
3565 2013-05-07 Pierre Muller <muller@sourceware.org>
3566
3567 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
3568 trailing new line from warning message.
3569
3570 2013-05-07 Pierre Muller <muller@sourceware.org>
3571
3572 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
3573 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
3574
3575 2013-05-07 Joel Brobecker <brobecker@adacore.com>
3576
3577 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
3578 error message (ARI fix).
3579
3580 2013-05-07 Joel Brobecker <brobecker@adacore.com>
3581
3582 * features/library-list-aix.dtd: Replace library-list by
3583 library-list-aix.
3584 * rs6000-nat.c: Replace library-list by library-list-aix
3585 throughout.
3586 * solib-aix.c: Likewise.
3587
3588 2013-05-07 Joel Brobecker <brobecker@adacore.com>
3589
3590 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
3591 Renames TARGET_OBJECT_AIX_LIBRARIES.
3592 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
3593 TARGET_OBJECT_LIBRARIES_AIX throughout.
3594 * solib-aix.c: Likwise.
3595
3596 2013-05-07 Yao Qi <yao@codesourcery.com>
3597
3598 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
3599 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
3600
3601 2013-05-07 Yao Qi <yao@codesourcery.com>
3602
3603 * solib-dsbt.c (enable_break): Declare.
3604 (dsbt_current_sos): Remove call to enable_break2.
3605 (enable_break2): Rename to enable_break. Set solib breakpoint
3606 on '_dl_debug_state'.
3607 (enable_break): Remove.
3608
3609 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
3610
3611 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
3612 debug state prior to replicating existing hardware watchpoints or
3613 breakpoints.
3614
3615 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3616
3617 * gcore.c (gcore_create_callback): Ignore sections with
3618 separate_debug_objfile_backlink != NULL.
3619
3620 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
3621 Andrew Jenner <andrew@codesourcery.com>
3622 Chung-Lin Tang <cltang@codesourcery.com>
3623 Julian Brown <julian@codesourcery.com>
3624
3625 Based on the nios2-elf port from Altera Corporation.
3626
3627 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
3628 nios2-linux-tdep.o.
3629 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
3630 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
3631 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
3632 * nios2-tdep.h: New.
3633 * nios2-tdep.c: New.
3634 * nios2-linux-tdep.c: New.
3635 * features/Makefile (WHICH): Add nios2-linux.
3636 (nios2-linux-expedite): Set.
3637 * features/nios2-cpu.xml: New.
3638 * features/nios2.xml: New.
3639 * features/nios2-linux.xml: New.
3640 * features/nios2.c: New (autogenerated).
3641 * features/nios2-linux.c: New (autogenerated).
3642 * regformats/nios2-linux.dat: New (autogenerated).
3643 * NEWS (Changes since GDB 7.6): Add new Nios II targets
3644 and commands.
3645
3646 2013-05-06 Doug Evans <dje@google.com>
3647
3648 * symfile.c: Whitespace cleanup.
3649
3650 * solist.h (struct target_so_ops): New member clear_so.
3651 * solib-svr4.c (svr4_clear_so): New function.
3652 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
3653 * solib.c (clear_so): Renamed from free_so_symbols.
3654 All callers updated. Call target clear_so if it exists.
3655
3656 2013-05-06 Tom Tromey <tromey@redhat.com>
3657
3658 * ada-lang.c (ada_value_primitive_packed_val): Don't
3659 call value_incref.
3660 * value.c (set_value_parent): Incref the new parent and decref
3661 the old parent.
3662 (value_copy, value_primitive_field): Use set_value_parent.
3663
3664 2013-05-06 Tom Tromey <tromey@redhat.com>
3665
3666 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
3667 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
3668 if needed.
3669 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
3670 * dwarf2read.c (write_constant_as_bytes)
3671 (dwarf2_fetch_constant_bytes): New functions.
3672
3673 2013-05-06 Tom Tromey <tromey@redhat.com>
3674
3675 * dwarf2read.c (dwarf2_const_value_data): Remove unused
3676 parameters.
3677 (dwarf2_const_value_attr): Update.
3678
3679 2013-05-06 Tom Tromey <tromey@redhat.com>
3680
3681 * somread.c (som_symfile_offsets): Add 'const' to addrs.
3682 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
3683 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
3684 Remove declaration.
3685
3686 2013-05-06 Tom Tromey <tromey@redhat.com>
3687
3688 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
3689 objfile's obstack.
3690
3691 2013-05-06 Doug Evans <dje@google.com>
3692
3693 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
3694 * stabsread.h (process_one_symbol): Update declaration.
3695 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
3696 * elfread.c (elf_symfile_relocate_probe): Ditto.
3697 * psymtab.c (relocate_psymtabs): Ditto.
3698 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
3699 (objfile_relocate): Ditto.
3700 * objfiles.h (objfile_relocate): Update declaration.
3701 * symfile.c (relative_addr_info_to_section_offsets): Constify
3702 addrs parameter.
3703 (default_symfile_offsets): Ditto.
3704 (syms_from_objfile_1): Constify offsets parameter.
3705 (syms_from_objfile): Ditto.
3706 (symbol_file_add_with_addrs_or_offsets): Ditto.
3707 (symfile_map_offsets_to_segments): Constify data parameter.
3708 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
3709 delta parameters of member relocate.
3710 (struct sym_probe_fns): Constify new_offsets,
3711 delta parameters of member sym_relocate_probe.
3712 (struct sym_fns): Constify section_addr_info parameter of member
3713 sym_offsets.
3714 (relative_addr_info_to_section_offsets): Update declaration.
3715 (default_symfile_offsets): Ditto.
3716 (syms_from_objfile): Ditto.
3717 (symfile_map_offsets_to_segments): Ditto.
3718
3719 * symfile.c (syms_from_objfile_1): Use correct section count when
3720 objfile->sf == NULL.
3721
3722 2013-05-06 Mike Frysinger <vapier@gentoo.org>
3723
3724 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
3725
3726 2013-05-06 Doug Evans <dje@google.com>
3727
3728 * psympriv.h (struct partial_symtab): Augment comment for member
3729 section_offsets.
3730
3731 2013-05-06 Joel Brobecker <brobecker@adacore.com>
3732
3733 Reimplement shared library support on ppc-aix...
3734 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
3735 * features/library-list-aix.dtd: New file.
3736 * solib-aix.h, solib-aix.c: New file.
3737 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
3738 (rs6000_find_toc_address_hook): Delete.
3739 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
3740 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
3741 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
3742 "xml-utils.h".
3743 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
3744 (vmap_symtab, fixup_breakpoints): Delete.
3745 (rs6000_xfer_shared_libraries): New function.
3746 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
3747 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
3748 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
3749 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
3750 (rs6000_xfer_shared_library): New function.
3751 (find_toc_address): Delete.
3752 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
3753 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
3754 * xcoffread.c (record_minimal_symbol): Reloate symbol address
3755 before creating minimal symbol. Adjust function description
3756 accordingly.
3757 (scan_xcoff_symtab): Replace call to
3758 prim_record_minimal_symbol_and_info by call to
3759 record_minimal_symbol.
3760 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
3761 around default_symfile_offsets.
3762 * configure.tgt: Add solib-aix.o to gdb_target_obs for
3763 powerpc-aix targets.
3764 * config/rs6000/nm-rs6000.h: Delete.
3765 * config/powerpc/aix.mh (NAT_FILE): Delete.
3766 (NATDEPFILES): Remove xcoffsolib.o.
3767 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
3768 (ALL_TARGET_OBS): Add solib-aix.o.
3769 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
3770 config/rs6000/nm-rs6000.h. Add solib-aix.h.
3771 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
3772 * xcoffsolib.h, xcoffsolib.c: Delete.
3773
3774 * solib.c (reload_shared_libraries): Remove reference to
3775 SOLIB_CREATE_INFERIOR_HOOK.
3776 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
3777 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
3778 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
3779 comment.
3780 * corelow.c (deprecated_core_resize_section_table): Delete.
3781 * exec.c: Remove include of xcoffsolib.h".
3782 (map_vmap, vmap): Delete.
3783 (exec_close_1): Remove references to vmap.
3784 (exec_file_attach): Remove vmap handling code, and reference
3785 to DEPRECATED_IBM6000_TARGET.
3786 (bfdsec_to_vmap): Delete.
3787 (exec_files_info): Remove block of code handling VMAP.
3788 * infcmd.c (post_create_inferior): Remove reference to
3789 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
3790 * infrun.c (follow_exec): Remove reference to
3791 SOLIB_CREATE_INFERIOR_HOOK.
3792 * stack.c (print_frame): Remove reference to PC_SOLIB.
3793 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
3794 (dsbt_relocate_main_executable): Likewise.
3795 * solib-frv.c (frv_current_sos): Likewise.
3796
3797 2013-05-06 Joel Brobecker <brobecker@adacore.com>
3798
3799 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
3800 to target_write_memory and target_read_memory.
3801
3802 2013-05-06 Joel Brobecker <brobecker@adacore.com>
3803
3804 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
3805 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
3806
3807 2013-05-06 Joel Brobecker <brobecker@adacore.com>
3808
3809 * darwin-nat.c: Replace all "%x" instances in format strings
3810 into "0x%x" throughout.
3811
3812 2013-05-06 Joel Brobecker <brobecker@adacore.com>
3813
3814 * darwin-nat.c (darwin_mourn_inferior): Replace call to
3815 gdb_assert by call to MACH_CHECK_ERROR.
3816 (darwin_attach_pid): Raise an error rather than a failed
3817 assertion when various system calls failed. Report a warning
3818 instead of raising a failed assertion when PREV_NOT is not NULL
3819 after call to mach_port_request_notification.
3820 (darwin_ptrace_me): Raise an error rather than a failed
3821 assertion when read returns nonzero.
3822
3823 2013-05-06 Joel Brobecker <brobecker@adacore.com>
3824
3825 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
3826
3827 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3828
3829 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
3830
3831 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3832
3833 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
3834 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
3835 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
3836 a stale cleanup. Fix double free of NAME.
3837
3838 2013-05-04 Eli Zaretskii <eliz@gnu.org>
3839
3840 * windows-nat.c (windows_delete_thread): Accept an additional
3841 argument, the thread's exit code, and announce thread death when
3842 print_thread_events is non-zero and we are deleting a thread that
3843 is not the main thread.
3844 (get_windows_debug_event): Pass thread exit code to
3845 windows_delete_thread.
3846
3847 2013-05-03 Kevin Buettner <kevinb@redhat.com>
3848
3849 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
3850 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
3851 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
3852 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
3853 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
3854 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
3855 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
3856 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
3857 (gdbarch_tdep): New struct.
3858 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
3859 E_NUM_REGS.
3860 (v850e3v5_register_name): New function.
3861 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
3862 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
3863 code handling the struct return conventions for the RH850 ABI.
3864 Update all callers.
3865 (v850_eight_byte_align_p): New function.
3866 (v850_push_call_dummy): Push structs by value, not by reference
3867 for the RH850 ABI. Add support for eight byte alignment.
3868 (v850_dbtrap_breakpoint_from_pc): New function.
3869 (v850_gdbarch_init): Add ABI detection code. Register
3870 v850e3v5_register_name for the v850e3v5 architecture. Set the
3871 number of registers for v850e3v5. Register
3872 v850_dbtrap_breakpoint_from_pc as appropriate.
3873 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
3874
3875 2013-05-03 Doug Evans <dje@google.com>
3876
3877 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
3878 of bfd_count_sections.
3879 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
3880 * symfile.c (default_symfile_offsets): Ditto.
3881 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
3882 one entry, not bfd_count_sections entries.
3883
3884 2013-05-03 Kevin Buettner <kevinb@redhat.com>
3885
3886 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
3887 `save' and `restore' register groups. Don't include SPL
3888 or SPH in these groups.
3889 (rl78_dwarf_reg_to_regnum): Adjust mapping for
3890 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
3891 RL78_ES_REGNUM, and RL78_CS_REGNUM.
3892 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
3893 dwarf2_append_unwinders().
3894
3895 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3896
3897 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
3898 ignore SIGINT and SIGTRAP in case these internal signals are
3899 caught explicitely.
3900
3901 2013-05-01 Joel Brobecker <brobecker@adacore.com>
3902
3903 * darwin-nat.c (darwin_read_write_inferior): Change types
3904 of parameters rdaddr and wraddr to "gdb_byte *". Change type
3905 of copy_count to "mach_msg_type_number_t".
3906 (darwin_read_dyld_info): Change type of parameter
3907 rdaddr to "gdb_byte *".
3908
3909 2013-05-01 Joel Brobecker <brobecker@adacore.com>
3910
3911 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
3912 of &info->load_map from "char *" to "gdb_byte *".
3913
3914 2013-05-01 Joel Brobecker <brobecker@adacore.com>
3915
3916 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
3917 from "char *" to "gdb_byte *".
3918 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
3919
3920 2013-04-30 Doug Evans <dje@google.com>
3921
3922 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
3923 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
3924 DWO stub. If DWO isn't found, just use stub.
3925 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
3926
3927 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
3928 calling init_cutu_and_read_dies.
3929
3930 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
3931
3932 * target-descriptions.c (maint_print_c_tdesc_cmd):
3933 Add case to parse structures as register types and
3934 bitfields.
3935
3936 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
3937
3938 * MAINTAINERS (Write After Approval): Add myself to the list.
3939
3940 2013-04-30 Joel Brobecker <brobecker@adacore.com>
3941
3942 * sol-thread.c (rw_common): Change type of parameter "buf"
3943 to "gdb_byte *".
3944 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
3945 rw_common to "gdb_byte *" instead of "char *".
3946
3947 2013-04-30 Joel Brobecker <brobecker@adacore.com>
3948
3949 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
3950 of local variable msym to const struct bound_minimal_symbol.
3951 Adjust use accordingly.
3952 [ti.ti_state == TD_THR_SLEEP]: Likewise.
3953
3954 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
3955
3956 * i386gnu-nat.c (CREG_OFFSET): New macro.
3957 (creg_offset): New array.
3958 (CREG_ADDR): Use creg_offset instead of reg_offset.
3959
3960 2013-04-30 Joel Brobecker <brobecker@adacore.com>
3961
3962 * mep-tdep.c (mep_write_pc): Delete.
3963 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
3964 Add call to set_gdbarch_pc_regnum.
3965
3966 2013-04-30 Joel Brobecker <brobecker@adacore.com>
3967
3968 * common/filestuff.c: Replace #include <dirent.h> by
3969 #include "gdb_dirent.h".
3970
3971 2013-04-30 Joel Brobecker <brobecker@adacore.com>
3972
3973 * common/filestuff.c: Replace #include <sys/stat.h> by
3974 #include "gdb_stat.h".
3975
3976 2013-04-29 Pierre Muller <muller@sourceware.org>
3977
3978 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
3979 editCase function rule.
3980 (get_DW_AT_signature_type): Likewise.
3981
3982 2013-04-29 Joel Brobecker <brobecker@adacore.com>
3983
3984 * m32r-tdep.c (m32r_write_pc): Delete.
3985 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
3986 Add call to set_gdbarch_pc_regnum.
3987
3988 2013-04-29 Pierre Muller <muller@sourceware.org>
3989
3990 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
3991
3992 2013-04-29 Joel Brobecker <brobecker@adacore.com>
3993
3994 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
3995
3996 2013-04-28 Yao Qi <yao@codesourcery.com>
3997
3998 * solib-dsbt.c (fetch_loadmap): Re-indent.
3999 (displacement_from_map, enable_break2): Likewise.
4000 (dsbt_relocate_section_addresses): Likewise.
4001
4002 2013-04-26 Joel Brobecker <brobecker@adacore.com>
4003
4004 GDB 7.6 released.
4005
4006 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
4007
4008 PR corefiles/14983:
4009 * dwarf2read.c (process_full_comp_unit): Always create a static
4010 block.
4011
4012 2013-04-25 Hui Zhu <hui@codesourcery.com>
4013
4014 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
4015 to loc->cmd_bytecode.
4016
4017 2013-04-24 Doug Evans <dje@google.com>
4018
4019 * dwarf2read.c (setup_type_unit_groups): Fix comment.
4020
4021 2013-04-22 Keith Seitz <keiths@redhat.com>
4022
4023 * tracepoint.c (trace_save): Call the writer's start method.
4024
4025 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
4026
4027 PR gdb/10462
4028 * cli/cli-decode.c (lookup_command): Show an error if there is no space
4029 before argument.
4030
4031 2013-04-23 Tom Tromey <tromey@redhat.com>
4032
4033 * common/filestuff.c: Check USE_WIN32API before including
4034 sys/socket.h.
4035 (HAVE_F_GETFD): New define.
4036 (mark_cloexec): Check HAVE_F_GETFD.
4037 (gdb_open_cloexec): Change 'mode' to unsigned long.
4038 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
4039 (gdb_pipe_cloexec): Check HAVE_PIPE.
4040 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
4041 long.
4042
4043 2013-04-23 Hui Zhu <hui@codesourcery.com>
4044
4045 PR gdb/15293
4046 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
4047
4048 2013-04-23 Hui Zhu <hui@codesourcery.com>
4049
4050 PR gdb/15165
4051 * breakpoint.c (dprintf_print_recreate): New.
4052 (save_breakpoints): Let it not save dprintf commands.
4053 (initialize_breakpoint_ops): Set dprintf_print_recreate.
4054
4055 2013-04-22 Tom Tromey <tromey@redhat.com>
4056
4057 PR gdb/7912:
4058 * Makefile.in (SFILES): Add filestuff.c
4059 (COMMON_OBS): Add filestuff.o.
4060 (filestuff.o): New target.
4061 * auto-load.c (auto_load_objfile_script_1): Use
4062 gdb_fopen_cloexec.
4063 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
4064 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
4065 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
4066 * common/agent.c (gdb_connect_sync_socket): Use
4067 gdb_socket_cloexec.
4068 * common/filestuff.c: New file.
4069 * common/filestuff.h: New file.
4070 * common/linux-osdata.c (linux_common_core_of_thread)
4071 (command_from_pid, commandline_from_pid, print_source_lines)
4072 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4073 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
4074 gdb_fopen_cloexec.
4075 * common/linux-procfs.c (linux_proc_get_int)
4076 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
4077 * config.in, configure: Rebuild.
4078 * configure.ac: Don't check for sys/socket.h. Check for
4079 fdwalk, pipe2.
4080 * corelow.c (core_open): Use gdb_open_cloexec.
4081 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
4082 * fork-child.c (fork_inferior): Call close_most_fds.
4083 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
4084 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
4085 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
4086 Use gdb_fopen_cloexec.
4087 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
4088 gdb_open_cloexec.
4089 (linux_async_pipe): Use gdb_pipe_cloexec.
4090 * remote-fileio.c (remote_fileio_func_open): Use
4091 gdb_open_cloexec.
4092 * remote.c (remote_file_put, remote_file_get): Use
4093 gdb_fopen_cloexec.
4094 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
4095 close_most_fds.
4096 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
4097 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
4098 * solib.c (solib_find): Use gdb_open_cloexec.
4099 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
4100 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
4101 (tfile_open): Use gdb_open_cloexec.
4102 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
4103 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
4104 * xml-support.c (xml_fetch_content_from_file): Use
4105 gdb_fopen_cloexec.
4106 * main.c (captured_main): Call notice_open_fds.
4107
4108 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
4109
4110 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
4111 'char *' to 'gdb_byte *'.
4112 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
4113 'gdb_byte'.
4114
4115 2013-04-22 Yao Qi <yao@codesourcery.com>
4116
4117 * infrun.c: Fix typo in comment.
4118
4119 2013-04-22 Andrew Haley <aph@redhat.com>
4120
4121 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
4122 instead of "long".
4123
4124 2013-04-20 Yao Qi <yao@codesourcery.com>
4125
4126 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
4127 'char *' to 'gdb_byte *'. Cast the return value of
4128 'bt_ctf_get_char_array' to 'gdb_byte *'.
4129
4130 2013-04-19 Pedro Alves <palves@redhat.com>
4131
4132 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
4133 -Wpointer-sign.
4134 * configure: Regenerate.
4135
4136 2013-04-19 Pedro Alves <palves@redhat.com>
4137
4138 * ser-tcp.c (net_read_prim): Cast second argument to recv to
4139 'void *'.
4140
4141 2013-04-19 Pedro Alves <palves@redhat.com>
4142
4143 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
4144 Change type of 'myaddr' parameter to gdb_byte pointer.
4145 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
4146 to 'long long' pointer instead of to 'unsigned long long'.
4147 (monitor_write_memory_block, monitor_read_memory_single)
4148 (monitor_read_memory): Change type of 'myaddr' parameter to
4149 gdb_byte pointer.
4150
4151 2013-04-19 Pedro Alves <palves@redhat.com>
4152
4153 * record.c (validate_history_size): Make parameter 'setting'
4154 unsigned.
4155
4156 2013-04-19 Pedro Alves <palves@redhat.com>
4157
4158 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
4159 to 'gdb_byte *'.
4160
4161 2013-04-19 Pedro Alves <palves@redhat.com>
4162
4163 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
4164 local to int.
4165
4166 2013-04-19 Pedro Alves <palves@redhat.com>
4167
4168 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
4169 * ada-tasks.c (read_fat_string_value): Likewise.
4170
4171 2013-04-19 Pedro Alves <palves@redhat.com>
4172
4173 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
4174 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
4175 'offset', and adjust.
4176
4177 2013-04-19 Pedro Alves <palves@redhat.com>
4178
4179 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
4180 (read_index_from_section): Add cast to 'char *'.
4181
4182 2013-04-19 Pedro Alves <palves@redhat.com>
4183
4184 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
4185
4186 2013-04-19 Pedro Alves <palves@redhat.com>
4187
4188 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
4189
4190 2013-04-19 Pedro Alves <palves@redhat.com>
4191
4192 * record-full.c (record_full_get_bookmark): Change local 'ret'
4193 type to char * and add cast to gdb_byte *.
4194 (record_full_goto_bookmark): Handle 'bookmark' argument as a
4195 string.
4196 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
4197
4198 2013-04-19 Pedro Alves <palves@redhat.com>
4199
4200 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
4201 * python/py-prettyprint.c (print_string_repr): Change type of
4202 'output' local to char *. Add cast to gdb_byte * in
4203 LA_PRINT_STRING call.
4204 (print_children): Change type of 'output' local to char *.
4205 * python/py-value.c (valpy_string): Add cast to const char * in
4206 PyUnicode_Decode call.
4207
4208 2013-04-19 Pedro Alves <palves@redhat.com>
4209
4210 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
4211 and change its type to 'const char *'. Adjust.
4212 (mips_send_packet): Add cast to 'char *', and remove cast to
4213 'unsigned char *'.
4214 (mips_receive_packet): Remove cast to 'unsigned char *'.
4215 (mips_load_srec): Use bfd_byte.
4216 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
4217 (pmon_checkset): Make 'value' parameter unsigned.
4218
4219 2013-04-19 Pedro Alves <palves@redhat.com>
4220
4221 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
4222
4223 2013-04-19 Pedro Alves <palves@redhat.com>
4224
4225 * remote.c (remote_write_bytes_aux, compare_sections_command)
4226 (remote_read_qxfer)
4227 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
4228 (remote_hostio_readlink, remote_bfd_iovec_pread)
4229 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
4230 binary buffer, and char when buffer is used as string.
4231 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
4232 (trace_save, tfile_open, traceframe_walk_blocks)
4233 (tfile_fetch_registers): Likewise.
4234
4235 2013-04-19 Pedro Alves <palves@redhat.com>
4236
4237 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
4238 buffer and size_t size. Adjust.
4239 * ser-base.h (ser_base_write): Adjust.
4240 * ser-go32.c (cnts): Change type to size_t.
4241 (dos_write): Change prototype -- take 'void *'
4242 buffer and size_t size. Adjust.
4243 (dos_info): Print elements of 'cnts' as unsigned long.
4244 * serial.c (serial_write): Likewise.
4245 * serial.h (serial_write): Adjust.
4246 (struct serial_ops) <write>: Change prototype -- take 'void *'
4247 buffer and size_t size. Adjust.
4248
4249 2013-04-19 Pedro Alves <palves@redhat.com>
4250
4251 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
4252 gdb_byte *.
4253 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
4254
4255 2013-04-19 Pedro Alves <palves@redhat.com>
4256
4257 * alpha-tdep.c (alpha_extract_return_value): Use
4258 regcache_cooked_read_unsigned to read 'v0'.
4259
4260 2013-04-19 Pedro Alves <palves@redhat.com>
4261
4262 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
4263 parameters 'at', 'as' and 'offset' to uint32_t.
4264
4265 2013-04-19 Pedro Alves <palves@redhat.com>
4266
4267 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
4268 'is64' to signed 'int'.
4269
4270 2013-04-19 Pedro Alves <palves@redhat.com>
4271
4272 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
4273 parameter to int *.
4274
4275 2013-04-19 Pedro Alves <palves@redhat.com>
4276
4277 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
4278 'insnbuf' buffer type to unsigned int[].
4279
4280 2013-04-19 Pedro Alves <palves@redhat.com>
4281
4282 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
4283
4284 2013-04-19 Pedro Alves <palves@redhat.com>
4285
4286 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
4287 unsigned long *.
4288
4289 2013-04-19 Pedro Alves <palves@redhat.com>
4290
4291 * alpha-tdep.c (heuristic_fence_post): Change type to int.
4292 (alpha_heuristic_proc_start): Adjust to check -1 instead of
4293 UINT_MAX.
4294 * mips-tdep.c (heuristic_fence_post): Change type to int.
4295 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
4296
4297 2013-04-19 Pedro Alves <palves@redhat.com>
4298
4299 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
4300 (struct gdbarch_tdep) <cris_version>: Make unsigned.
4301 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
4302
4303 2013-04-19 Pedro Alves <palves@redhat.com>
4304
4305 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
4306 it to get a string view of the byte buffer.
4307 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
4308 type to gdb_byte *. Adjust.
4309 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
4310 Change local to char *.
4311 * solib-darwin.c (find_program_interpreter): Change return type to
4312 char *. Adjust.
4313 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
4314 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
4315 * solib-frv.c (enable_break2): Change local 'buf' to char *.
4316 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
4317 * solib-svr4.c (find_program_interpreter): Change return type to
4318 char *. Adjust.
4319 (enable_break): Change local 'interp_name' to char *.
4320 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
4321 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
4322 (spu_pseudo_register_write_spu): Use char for string buffer.
4323 Adjust.
4324 (info_spu_event_command, info_spu_signal_command): Add casts to
4325 'char *'.
4326
4327 2013-04-19 Pedro Alves <palves@redhat.com>
4328
4329 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
4330 gdb_byte[].
4331 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
4332 * ada-lang.c (ada_value_assign): Use gdb_byte.
4333 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
4334 (alphanbsd_sigtramp_offset): Use gdb_byte.
4335 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
4336 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
4337 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
4338 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
4339 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
4340 * arm-tdep.c (arm_stub_unwind_sniffer)
4341 (arm_displaced_init_closure): Use gdb_byte.
4342 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
4343 (arm_default_thumb_le_breakpoint)
4344 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
4345 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
4346 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
4347 * arm-wince-tdep.c (arm_wince_le_breakpoint)
4348 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
4349 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
4350 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
4351 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
4352 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
4353 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
4354 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
4355 (cris_store_return_value, cris_extract_return_value): Use
4356 gdb_byte.
4357 (constraint): Change type of parameter to char * from signed
4358 char*. Use gdb_byte.
4359 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
4360 of local buffer to gdb_byte *.
4361 * dwarf2read.c (read_index_from_section): Use gdb_byte.
4362 (create_dwp_hash_table): Change type of locals to gdb_byte *.
4363 (add_address_entry): Change type of local buffer to gdb_byte[].
4364 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
4365 (frv_push_dummy_call): Use gdb_byte.
4366 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
4367 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
4368 (hppa_hpux_supply_save_state): Use gdb_byte.
4369 * hppa-tdep.c (hppa32_push_dummy_call)
4370 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
4371 * ia64-tdep.c (extract_bit_field, replace_bit_field)
4372 (slotN_contents, replace_slotN_contents): Change type of parameter
4373 to gdb_byte *.
4374 (fetch_instruction, ia64_pseudo_register_write)
4375 (ia64_register_to_value, ia64_value_to_register)
4376 (ia64_extract_return_value, ia64_store_return_value)
4377 (ia64_push_dummy_call): Use gdb_byte.
4378 * m32c-tdep.c (m32c_return_value): Remove cast.
4379 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
4380 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
4381 gdb_byte.
4382 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
4383 * mn10300-tdep.c (mn10300_store_return_value)
4384 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
4385 gdb_byte.
4386 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
4387 (moxie_process_record): Remove casts.
4388 * ppc-ravenscar-thread.c (supply_register_at_address)
4389 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
4390 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
4391 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
4392 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
4393 * remote.c (compare_sections_command): Use gdb_byte.
4394 * score-tdep.c (score7_free_memblock): Change type of parameter to
4395 gdb_byte *.
4396 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
4397 gdb_byte *. Use gdb_byte.
4398 (sh_push_dummy_call_fpu): Use gdb_byte.
4399 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
4400 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
4401 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
4402 Change parameter type to 'gdb_byte *'. Use gdb_byte.
4403 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
4404 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
4405 (sh64_store_return_value, sh64_register_convert_to_virtual):
4406 Change parameter type to 'gdb_byte *'. Use gdb_byte.
4407 (sh64_pseudo_register_write): Use gdb_byte.
4408 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
4409 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
4410 buffer.
4411 (irix_current_sos): Use gdb_byte.
4412 * solib-som.c (som_current_sos): Use gdb_byte.
4413 * sparc-ravenscar-thread.c (supply_register_at_address)
4414 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
4415 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
4416 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
4417 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
4418 'gdb_byte *'.
4419 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
4420 'gdb_byte *'.
4421 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
4422 * xstormy16-tdep.c (xstormy16_extract_return_value)
4423 (xstormy16_store_return_value): Change parameter type to
4424 'gdb_byte *'. Adjust.
4425 (xstormy16_push_dummy_call): Use gdb_byte.
4426 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
4427 (call0_analyze_prologue, execute_code): Use gdb_byte.
4428
4429 2013-04-19 Vladimir Kargov <kargov@gmail.com>
4430 Pedro Alves <palves@redhat.com>
4431
4432 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
4433 value contents.
4434
4435 2013-04-17 Doug Evans <dje@google.com>
4436
4437 * dwarf2read.c (struct signatured_type): New member type.
4438 (struct attribute): Replace member signatured_type with signature.
4439 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
4440 (read_call_site_scope): Call follow_die_ref instead of
4441 follow_die_ref_or_sig.
4442 (read_structure_type): Rewrite handling of signatured types.
4443 (read_enumeration_type): Ditto.
4444 (read_attribute_value): Update.
4445 (build_error_marker_type): New function.
4446 (lookup_die_type): Add assert. Rewrite handling of signatured types.
4447 Don't call error for bad types, just build an error marker type.
4448 (dump_die_shallow): Update.
4449 (follow_die_sig_1): Renamed from follow_die_sig.
4450 Don't call error for bad types, instead return NULL.
4451 (follow_die_sig): New function.
4452 (get_signatured_type, get_DW_AT_signature_type): New functions.
4453
4454 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
4455
4456 * aarch64-tdep.c (aarch64_write_pc): Removed.
4457 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
4458 function.
4459
4460 2013-04-17 Yao Qi <yao@codesourcery.com>
4461
4462 * top.c (print_gdb_configuration): Print configure-time
4463 parameter on using libbabeltrace or not.
4464
4465 2013-04-16 Pedro Alves <palves@redhat.com>
4466
4467 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
4468
4469 2013-04-16 Pedro Alves <palves@redhat.com>
4470
4471 * common/glibc_thread_db.h: Update from upstream glibc
4472 (git 568035b7874a099087b77f7bba3e36a1173787b0).
4473
4474 2013-04-16 Pedro Alves <palves@redhat.com>
4475
4476 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
4477 * common/glibc_thread_db.h: ... this new file ...
4478 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
4479
4480 2013-04-16 Will Newton <will.newton@gmail.com>
4481 Pedro Alves <palves@redhat.com>
4482
4483 PR build/11881
4484
4485 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
4486 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
4487 HAVE_THREAD_DB_H.
4488
4489 2013-04-16 Pedro Alves <palves@redhat.com>
4490 Eli Zaretskii <eliz@gnu.org>
4491
4492 * NEWS: Mention "set foo unlimited".
4493
4494 2013-04-15 Doug Evans <dje@google.com>
4495
4496 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
4497 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
4498 (create_dwo_cu_reader): Renamed from
4499 create_dwo_debug_info_hash_table_reader.
4500 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
4501 Remove support for multiple CUs in a DWO file.
4502 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
4503
4504 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
4505 instead of phex.
4506 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
4507 (create_dwo_in_dwp): Ditto.
4508
4509 2013-04-15 Tom Tromey <tromey@redhat.com>
4510
4511 * NEWS: Move recent entries into "since 7.6" section.
4512
4513 2013-04-15 Tom Tromey <tromey@redhat.com>
4514
4515 PR c++/13588:
4516 * NEWS: Update.
4517 * break-catch-throw.c (struct exception_catchpoint)
4518 <exception_rx, pattern>: New fields.
4519 (fetch_probe_arguments, dtor_exception_catchpoint)
4520 (check_status_exception_catchpoint)
4521 (print_one_detail_exception_catchpoint): New functions.
4522 (handle_gnu_v3_exceptions): Add "except_rx" argument.
4523 Compile regular expression if needed.
4524 (extract_exception_regexp): New function.
4525 (catch_exception_command_1): Use extract_exception_regexp.
4526 (compute_exception): Use fetch_probe_arguments.
4527 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
4528 and check_status fields.
4529 * cp-abi.c (cplus_typename_from_type_info): New function.
4530 * cp-abi.h (cplus_typename_from_type_info): Declare.
4531 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
4532 * gdb_regex.h (compile_rx_or_error): Declare.
4533 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
4534 comment.
4535 (init_gnuv3_ops): Set get_type_from_type_info field.
4536 * probe.c (compile_rx_or_error): Move...
4537 * utils.c (compile_rx_or_error): ... here.
4538
4539 2013-04-15 Tom Tromey <tromey@redhat.com>
4540
4541 PR c++/15176:
4542 * NEWS: Update.
4543 * break-catch-throw.c (compute_exception): New function.
4544 (exception_funcs): New global.
4545 (_initialize_break_catch_throw): Create $_exception.
4546 * cp-abi.c (cplus_type_from_type_info): New function.
4547 * cp-abi.h (cplus_type_from_type_info): Declare.
4548 (struct cp_abi_ops) <get_type_from_type_info>: New field.
4549 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
4550 (gnuv3_get_type_from_type_info): New functions.
4551 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
4552
4553 2013-04-15 Tom Tromey <tromey@redhat.com>
4554
4555 * break-catch-throw.c (struct exception_names): New.
4556 (exception_functions): Change type.
4557 (re_set_exception_catchpoint): Look for SDT probes.
4558
4559 2013-04-15 Tom Tromey <tromey@redhat.com>
4560
4561 PR c++/10119:
4562 * break-catch-throw.c (exception_functions): New global.
4563 (gnu_v3_exception_catchpoint_ops): Move earlier.
4564 (struct exception_catchpoint): New.
4565 (classify_exception_breakpoint): Rewrite.
4566 (re_set_exception_catchpoint): New function.
4567 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
4568 Allocate a struct exception_catchpoint.
4569 (catch_exception_command_1): Update.
4570 (initialize_throw_catchpoint_ops): Set 're_set' method.
4571
4572 2013-04-15 Tom Tromey <tromey@redhat.com>
4573
4574 * Makefile.in (SFILES): Add break-catch-throw.c
4575 (COMMON_OBS): Add break-catch-throw.o.
4576 * break-catch-throw.c: New file.
4577 * breakpoint.c: Move exception-catching code to new file.
4578 (ep_parse_optional_if_clause): No longer static.
4579 * breakpoint.h (ep_parse_optional_if_clause): Declare.
4580
4581 2013-04-15 Tom Tromey <tromey@redhat.com>
4582
4583 PR c++/9065:
4584 * NEWS: Update.
4585 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
4586 * c-exp.y (TYPEID): New token.
4587 (exp): Add new TYPEID productions.
4588 (ident_tokens): Add "typeid".
4589 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
4590 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
4591 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
4592 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
4593 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
4594 case.
4595 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
4596 (build_std_type_info_type, gnuv3_get_typeid_type)
4597 (gnuv3_get_typeid): New functions.
4598 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
4599 new fields on ABI object.
4600 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
4601 * std-operator.def (OP_TYPEID): New.
4602
4603 2013-04-15 Tom Tromey <tromey@redhat.com>
4604
4605 * elfread.c (elf_symtab_read): Install versioned symbol under
4606 unversioned name as well.
4607
4608 2013-04-15 Tom Tromey <tromey@redhat.com>
4609
4610 PR c++/11990:
4611 * c-lang.c (cplus_language_defn): Use gdb_demangle.
4612 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
4613 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
4614 (gdb_demangle): New function.
4615 * cp-support.h (gdb_demangle): Declare.
4616 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
4617 (dwarf2_name): Use gdb_demangle.
4618 * gdbtypes.c (check_stub_method): Use gdb_demangle.
4619 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
4620 suffixes from name.
4621 (gnuv3_print_method_ptr): Use gdb_demangle.
4622 * jv-lang.c (java_demangle): Use gdb_demangle.
4623 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
4624 * language.c (unk_lang_demangle): Use gdb_demangle.
4625 * symtab.c (symbol_find_demangled_name)
4626 (demangle_for_lookup): Use gdb_demangle.
4627
4628 2013-04-15 Tom Tromey <tromey@redhat.com>
4629
4630 PR c++/12824:
4631 * NEWS: Update.
4632 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
4633 New constant.
4634 (classify_exception_breakpoint): New function.
4635 (print_it_exception_catchpoint, print_one_exception_catchpoint)
4636 (print_mention_exception_catchpoint)
4637 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
4638 (catch_exception_command_1): Handle "rethrow" catchpoint.
4639 (catch_rethrow_command): New function.
4640 (_initialize_breakpoint): Add "catch rethrow" command.
4641
4642 2013-04-15 Pierre Muller <muller@sourceware.org>
4643
4644 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
4645 set_gdbarch_write_pc as deprecated anymore.
4646
4647 2013-04-15 Joel Brobecker <brobecker@adacore.com>
4648
4649 * spu-tdep.c (spu_write_pc): Add empty line after local variable
4650 declarations.
4651
4652 2013-04-13 Yao Qi <yao@codesourcery.com>
4653
4654 * ctf.c (_initialize_ctf): Include "completer.h".
4655 Call add_target_with_completer instead of add_target.
4656
4657 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4658
4659 Fix GDB regression related to PR binutils/14813.
4660 * jit.c (mem_bfd_iovec_close): Return 0 for success.
4661 * minidebug.c (lzma_close): Add return value comment.
4662 * remote.c (remote_bfd_iovec_close): Return 0 for success.
4663 * solib-spu.c (spu_bfd_iovec_close): Likewise.
4664 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
4665
4666 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4667
4668 * config.in: Regenerate.
4669
4670 2013-04-12 Tom Tromey <tromey@redhat.com>
4671
4672 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
4673 const.
4674 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
4675 (struct die_reader_specs) <buffer>: Likewise.
4676 (die_reader_func_ftype): Make 'info_ptr' const.
4677 (struct line_header) <include_dirs, statement_program_start,
4678 statement_program_end>: Now const.
4679 (struct file_entry) <name>: Likewise.
4680 (struct partial_die_info) <sibling>: Likewise.
4681 (struct dwarf_block) <data>: Likewise.
4682 (dwarf2_read_section): Remove cast.
4683 (dwarf2_get_section_info): Make 'bufp' const.
4684 (read_index_from_section): Constify.
4685 (dw2_get_file_names_reader): Make 'info_ptr' const.
4686 (dw2_get_primary_filename_reader): Likewise.
4687 (read_comp_unit_head): Make 'info_ptr' and return type const.
4688 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
4689 Likewise.
4690 (read_abbrev_offset): Constify.
4691 (dwarf2_create_include_psymtab): Make 'name' const.
4692 (create_debug_types_hash_table): Update.
4693 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
4694 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
4695 Constify.
4696 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
4697 (load_partial_comp_unit_reader): Make 'info_ptr' const.
4698 (read_comp_units_from_section): Constify.
4699 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
4700 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
4701 const.
4702 (dwarf2_compute_name, setup_type_unit_groups): Constify.
4703 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
4704 (create_dwp_hash_table, dwarf2_ranges_read)
4705 (dwarf2_record_block_ranges): Constify.
4706 (read_die_and_children, read_die_and_siblings_1)
4707 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
4708 const.
4709 (read_full_die_1, read_full_die): Make 'info_ptr' const.
4710 (abbrev_table_read_table): Constify.
4711 (load_partial_dies): Make 'info_ptr' const.
4712 (read_partial_die, read_attribute_value, read_attribute): Make
4713 'info_ptr' and return type const.
4714 (read_address, read_initial_length)
4715 (read_checked_initial_length_and_offset, read_offset)
4716 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
4717 const.
4718 (read_direct_string): Make 'buf' and return type const.
4719 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
4720 (read_indirect_string): Make return type const.
4721 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
4722 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
4723 'info_ptr' const.
4724 (read_str_index): Make return type const.
4725 (add_include_dir): Make 'include_dir' const.
4726 (add_file_name): Make 'name' const.
4727 (dwarf_decode_line_header): Constify.
4728 (psymtab_include_file_name): Make return type const.
4729 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
4730 (dwarf2_start_subfile): Make 'filename' const.
4731 (dwarf2_const_value_attr): Make 'bytes' const.
4732 (read_signatured_type_reader): Make 'info_ptr' const.
4733 (decode_locdesc): Constify.
4734 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
4735 const.
4736 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
4737 'mac_end', and return type const.
4738 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
4739 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
4740 type const.
4741 (per_cu_header_read_in): Constify.
4742 * symfile.h (dwarf2_get_section_info): Update.
4743
4744 2013-04-12 Tom Tromey <tromey@redhat.com>
4745
4746 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
4747
4748 2013-04-12 Eli Zaretskii <eliz@gnu.org>
4749
4750 * NEWS: Mention "show configuration", --configuration.
4751 * top.c (print_gdb_configuration): New function, displays the
4752 details about GDB configure-time parameters.
4753 (print_gdb_version): Mention "show configuration".
4754 * cli/cli-cmds.c (show_configuration): New function.
4755 (_initialize_cli_cmds): Add the "show configuration" command.
4756 * main.c (captured_main) <print_configuration>: New static var.
4757 <long_options>: Use it.
4758 If --configuration was given, call print_gdb_configuration.
4759
4760 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4761 Pedro Alves <palves@redhat.com>
4762
4763 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
4764 (generated_files): Add gcore.
4765 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
4766 HAVE_NATIVE_GCORE_HOST.
4767 (gcore): New.
4768 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
4769 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
4770 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
4771 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
4772 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
4773 Add HAVE_NATIVE_GCORE_HOST.
4774 * configure: Regenerate.
4775 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
4776 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
4777 AC_CONFIG_FILES for gcore.
4778 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
4779 gdb_have_gcore.
4780 * gdb_gcore.sh: Rename to ...
4781 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
4782 and GCORE_TRANSFORM_NAME substitutions.
4783
4784 Fix parsing tabs in ${gdb_target_obs}.
4785 * configure.tgt (gdb_have_gcore): Replace case with for and if.
4786
4787 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4788
4789 * remote.c (unpush_and_perror): Add output message final dot.
4790
4791 2013-04-11 Yao Qi <yao@codesourcery.com>
4792
4793 * tracepoint.c (tfile_interp_line): Fit parameters line and
4794 utpp in one line.
4795
4796 2013-04-10 Joel Brobecker <brobecker@adacore.com>
4797
4798 * solib.c (solib_map_sections): Remove code overwriting
4799 SO->SO_NAME with the bfd's filename.
4800
4801 2013-04-10 Pedro Alves <palves@redhat.com>
4802
4803 * cli/cli-decode.c (integer_unlimited_completer): New function.
4804 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
4805 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
4806 completer.
4807 * cli/cli-setshow.c: Include "cli/cli-utils.h".
4808 (is_unlimited_literal): New function.
4809 (do_set_command): Handle literal "unlimited" arguments.
4810 * frame.c (_initialize_frame) <set backtrace limit>: Document
4811 "unlimited".
4812 * printcmd.c (_initialize_printcmd) <set print
4813 max-symbolic-offset>: Add help text.
4814 * record-full.c (_initialize_record_full) <set record full
4815 insn-number-max>: Likewise.
4816 * record.c (_initialize_record) <set record
4817 instruction-history-size, set record function-call-history-size>:
4818 Add help text.
4819 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
4820 help text.
4821 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
4822 Likewise.
4823 * source.c (_initialize_source) <set listsize>: Add help text.
4824 * utils.c (initialize_utils) <set height, set width>: Likewise.
4825 <set pagination>: Mention "set height unlimited".
4826 * valprint.c (_initialize_valprint) <set print elements, set print
4827 repeats>: Document "unlimited".
4828
4829 2013-04-10 Pedro Alves <palves@redhat.com>
4830
4831 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
4832 instead of disconnect_tracing.
4833 * infcmd.c (detach_command, disconnect_command): Call
4834 query_if_trace_running. Adjust.
4835 * top.c: Include "tracepoint.h".
4836 (quit_target): Delete. Contents moved ...
4837 (quit_force): ... here. Wrap each stage of teardown in
4838 TRY_CATCH. Call disconnect_tracing before detaching.
4839
4840 2013-04-10 Hui Zhu <hui@codesourcery.com>
4841 Yao Qi <yao@codesourcery.com>
4842
4843 * configure.ac: Check libbabeltrace is installed.
4844 * config.in: Regenerate.
4845 * configure: Regenerate.
4846 * Makefile.in (LIBBABELTRACE): New.
4847 (CLIBS): Add LIBBABELTRACE.
4848 * ctf.c: Include "exec.h".
4849 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
4850 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
4851 (ctf_save_metadata_header): Define new type aliases in
4852 metadata.
4853 (ctf_write_header): Define event type "tsv_def" and "tp_def"
4854 in metadata. Start a new faked packet for trace status.
4855 (ctf_write_status): Write trace status to CTF.
4856 (ctf_write_uploaded_tsv): Write TSV to CTF.
4857 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
4858 (ctf_write_definition_end): End the faked packet.
4859
4860 (ctx, ctf_iter, trace_dirname): New.
4861 (start_pos): New variable.
4862 (ctf_destroy, ctf_open_dir, ctf_open): New.
4863 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
4864 macros.
4865 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
4866 (ctf_fetch_registers, ctf_xfer_partial): New.
4867 (ctf_get_trace_state_variable_value): New.
4868 (ctf_get_tpnum_from_frame_event): New.
4869 (ctf_get_traceframe_address): New.
4870 (ctf_trace_find, ctf_has_stack): New.
4871 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
4872 (ctf_get_trace_status, ctf_read_status): New.
4873 (_initialize_ctf): New.
4874 * tracepoint.c (get_tracepoint_number): New
4875 (get_uploaded_tsv): Remove 'static'.
4876 (struct traceframe_info, trace_regblock_size): Move it to ...
4877 * tracepoint.h: ... here.
4878 (get_tracepoint_number): Declare it.
4879 (get_uploaded_tsv): Declare it.
4880
4881 * NEWS: Mention new configure option.
4882
4883 2013-04-10 Pedro Alves <palves@redhat.com>
4884 Hui Zhu <hui@codesourcery.com>
4885
4886 * breakpoint.c (dprintf_re_set): New.
4887 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
4888 to dprintf_re_set.
4889
4890 2013-04-09 Joel Brobecker <brobecker@adacore.com>
4891
4892 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
4893 Remove solib-svr4.o from the list.
4894
4895 2013-04-09 Joel Brobecker <brobecker@adacore.com>
4896
4897 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
4898 Use gdb_assert_not_reached instead of invalid boolean expression.
4899
4900 2013-04-09 Pedro Alves <palves@redhat.com>
4901
4902 * remote.c (unpush_and_perror): New function.
4903 (readchar, remote_serial_write): Use it.
4904
4905 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
4906
4907 * NEWS: Mention new btrace RSP packets.
4908
4909 2013-04-08 Tom Tromey <tromey@redhat.com>
4910
4911 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
4912 long.
4913
4914 2013-04-08 Tom Tromey <tromey@redhat.com>
4915
4916 * maint.c (print_bfd_section_info): Print the section index.
4917 * symmisc.c (dump_msymbols): Print the section index.
4918
4919 2013-04-08 Tom Tromey <tromey@redhat.com>
4920
4921 PR symtab/8424:
4922 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
4923 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
4924 * breakpoint.c (resolve_sal_pc): Update.
4925 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4926 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
4927 (minsym_lookup_iterator_cb): Use it.
4928 (default_read_var_value): Update.
4929 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
4930 Update.
4931 * infcmd.c (jump_command): Update.
4932 * linespec.c (minsym_found): Update.
4933 * maint.c (maintenance_translate_address): Update.
4934 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
4935 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
4936 * parse.c (write_exp_msymbol): Update.
4937 * printcmd.c (address_info): Update.
4938 * psymtab.c (find_pc_sect_psymbol): Update.
4939 (fixup_psymbol_section): Check SYMBOL_SECTION, not
4940 SYMBOL_OBJ_SECTION.
4941 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
4942 Don't initialize SYMBOL_OBJ_SECTION.
4943 * spu-tdep.c (spu_catch_start): Update.
4944 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
4945 * symmisc.c (dump_msymbols, print_symbol): Update.
4946 * symtab.c (fixup_section): Don't set 'obj_section'. Change
4947 how fallback section is computed.
4948 (fixup_symbol_section): Update.
4949 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
4950 Update.
4951 (allocate_symbol, initialize_symbol, allocate_template_symbol):
4952 Initialize SYMBOL_SECTION.
4953 * symtab.h (struct general_symbol_info) <section>: Update comment.
4954 <obj_section>: Remove.
4955 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
4956 (SYMBOL_OBJFILE): New macro.
4957
4958 2013-04-08 Tom Tromey <tromey@redhat.com>
4959
4960 * coffread.c (record_minimal_symbol): Update.
4961 * dbxread.c (record_minimal_symbol): Update.
4962 * elfread.c (record_minimal_symbol): Update.
4963 * machoread.c (macho_symtab_add_minsym): Update.
4964 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
4965 Update.
4966 * minsyms.c (prim_record_minimal_symbol): Update.
4967 (prim_record_minimal_symbol_full): Remove 'bfd_section'
4968 argument.
4969 (prim_record_minimal_symbol_and_info): Likewise.
4970 * minsyms.h (prim_record_minimal_symbol_full)
4971 (prim_record_minimal_symbol_and_info): Update.
4972 * symtab.c (allocate_symbol, initialize_symbol)
4973 (allocate_template_symbol): Initialize SYMBOL_SECTION.
4974 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
4975 Update.
4976
4977 2013-04-08 Tom Tromey <tromey@redhat.com>
4978
4979 PR symtab/8423:
4980 * solib-som.c (som_solib_section_offsets): Use BFD section
4981 indices. Set offsets for all sections.
4982 * somread.c (som_symtab_read): Compute BFD section for
4983 symbol. Use prim_record_minimal_symbol_and_info.
4984 (som_symfile_read): Fix comment.
4985 (struct find_section_offset_arg): New.
4986 (find_section_offset, set_section_index): New functions.
4987 (som_symfile_offsets): Use set_section_index to compute
4988 section indices.
4989
4990 2013-04-08 Tom Tromey <tromey@redhat.com>
4991
4992 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
4993 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
4994 gdb_bfd_section_index.
4995 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
4996 New functions.
4997 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
4998 Declare.
4999 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
5000 Update.
5001 * objfiles.c (add_to_objfile_sections_full): New function.
5002 (add_to_objfile_sections): Use it.
5003 (build_section_table): Rewrite.
5004 (objfile_relocate1): Use gdb_bfd_section_index. Update.
5005 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
5006 (struct objfile) <sections>: Update comment.
5007 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
5008 is NULL.
5009 (ALL_OBJSECTIONS): Use it.
5010 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
5011 * solib-frv.c (frv_relocate_main_executable): Update.
5012 * solib-target.c (solib_target_relocate_section_addresses):
5013 Use gdb_bfd_section_index.
5014 * symfile.c (build_section_addr_info_from_section_table):
5015 Use gdb_bfd_section_index.
5016 (build_section_addr_info_from_bfd, place_section): Likewise.
5017 * symtab.c (fixup_section): Update.
5018 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
5019
5020 2013-04-08 Tom Tromey <tromey@redhat.com>
5021
5022 * minsyms.h (struct bound_minimal_symbol): New.
5023 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
5024 Remove objfile argument.
5025 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
5026 Return bound_minimal_symbol.
5027 * minsyms.c (lookup_minimal_symbol_by_pc_1)
5028 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
5029 Return bound_minimal_symbol.
5030 (in_gnu_ifunc_stub): Update.
5031 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
5032 Remove 'objfile_p' argument.
5033 (lookup_solib_trampoline_symbol_by_pc): Update.
5034 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
5035 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
5036 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
5037 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
5038 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
5039 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
5040 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
5041 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
5042 stack.c, symtab.c, tui/tui-disasm.c: Update.
5043
5044 2013-04-08 Tom Tromey <tromey@redhat.com>
5045
5046 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
5047 Use symbol's obstack, not an objfile.
5048 * coffread.c (process_coff_symbol): Update.
5049 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
5050 * jv-lang.c (add_class_symbol): Update.
5051 * mdebugread.c (new_symbol): Update.
5052 * minsyms.c (prim_record_minimal_symbol_full)
5053 (terminate_minimal_symbol_table): Update.
5054 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
5055 * stabsread.c (define_symbol, read_enum_type): Update.
5056 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
5057 Handle Ada specially.
5058 (symbol_set_language): Add 'obstack' argument.
5059 (symbol_set_names): Update.
5060 (symbol_natural_name, symbol_demangled_name): Always use
5061 ada_decode_symbol.
5062 * symtab.h (struct general_symbol_info)
5063 <language_specific::obstack>: New field.
5064 <ada_mangled>: New field.
5065 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
5066 (symbol_set_language): Update.
5067
5068 2013-04-08 Tom Tromey <tromey@redhat.com>
5069
5070 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
5071 Take an obstack, not an objfile.
5072 (symbol_set_names): Update.
5073 * symtab.h (symbol_set_demangled_name): Update.
5074
5075 2013-04-08 Tom Tromey <tromey@redhat.com>
5076
5077 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
5078 allocate_symbol.
5079 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
5080 (read_func_scope): Call allocate_template_symbol.
5081 (new_symbol_full): Call allocate_symbol.
5082 * jit.c (finalize_symtab): Call allocate_symbol.
5083 * jv-lang.c (add_class_symbol): Call allocate_symbol.
5084 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
5085 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5086 (common_block_end): Call allocate_symbol.
5087 * symtab.c (allocate_symbol, initialize_symbol)
5088 (allocate_template_symbol): New functions.
5089 * symtab.c (allocate_symbol, initialize_symbol)
5090 (allocate_template_symbol): Declare.
5091 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
5092
5093 2013-04-08 Pedro Alves <palves@redhat.com>
5094 Keith Seitz <keiths@redhat.com>
5095
5096 * breakpoint.c (create_breakpoint): Rename
5097 "parse_condition_and_thread" parameter to "parse_arg". Update
5098 describing comment. If !PARSE_ARG, then error out if ARG is not
5099 the empty string after extracting the location.
5100 * breakpoint.h (create_breakpoint): Rename
5101 "parse_condition_and_thread" parameter to "parse_arg".
5102
5103 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
5104
5105 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
5106
5107 2013-04-07 Yao Qi <yao@codesourcery.com>
5108
5109 * remote.c (remote_trace_find): Change type of parameters 'addr1'
5110 and 'addr2' to CORE_ADDR.
5111 * target.c (update_current_target): Update.
5112 * target.h (struct target_ops) <to_trace_find>: Change parameter
5113 type to CORE_ADDR.
5114 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
5115 'addr2' to CORE_ADDR.
5116 (tfile_trace_find): Likewise.
5117 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
5118 Change local variable 'addr' to type CORE_ADDR.
5119 * tracepoint.h (tfind_1): Update declaration.
5120
5121 2013-04-06 Eli Zaretskii <eliz@gnu.org>
5122
5123 * windows-nat.c (windows_get_absolute_argv0): Move from here...
5124 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
5125 Include main.h.
5126
5127 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
5128 here...
5129 * main.h (windows_get_absolute_argv0): ...to here.
5130
5131 2013-04-05 Doug Evans <dje@google.com>
5132
5133 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
5134 (read_cutu_die_from_dwo): Add comments.
5135 (read_structure_type): Update comment.
5136 (read_enumeration_type, read_namespace_type): Update comment.
5137 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
5138
5139 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5140
5141 Convert man pages to texinfo, new gdbinit.5 texinfo page.
5142 * Makefile.in (gdb.z): Remove.
5143 (install-only): Remove $(man1dir) and gdb.1 installation.
5144 * gdb.1: Remove.
5145
5146 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5147
5148 Fix compatibility with Linux kernel 3.8.3.
5149 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
5150 to more inner block. Remove parsing of NUMBER from outer block.
5151 Parse NUMBER only if KEYWORD has been identified.
5152
5153 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5154
5155 Fix variable name shadowing.
5156 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
5157 filename to mapsfilename and update its uses.
5158
5159 2013-04-05 Eli Zaretskii <eliz@gnu.org>
5160
5161 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
5162 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
5163 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
5164 details of the problem.
5165
5166 2013-04-04 Pedro Alves <palves@redhat.com>
5167 Hui Zhu <hui@codesourcery.com>
5168
5169 * breakpoint.c (validate_commands_for_breakpoint): If validating a
5170 tracepoint, reset its STEP_COUNT and call validate_actionline.
5171
5172 2013-04-03 Doug Evans <dje@google.com>
5173
5174 * dwarf2read.c (read_die_and_siblings_1): Renamed from
5175 read_die_and_siblings.
5176 (read_die_and_siblings): New function.
5177 (read_cutu_die_from_dwo): Dump die if requested.
5178 (read_die_and_children): Call read_full_die_1 and
5179 read_die_and_siblings_1.
5180 (read_full_die): Dump die if requested.
5181
5182 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
5183
5184 * dwarf2read.c (struct dwo_file): New member comp_dir.
5185 Rename member name to dwo_name. All uses updated.
5186 (hash_dwo_file): Include comp_dir in computation.
5187 (eq_dwo_file): Ditto.
5188 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
5189 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
5190
5191 * psymtab.c (read_psymtabs_with_fullname): Don't call
5192 psymtab_to_fullname if the basenames are different.
5193
5194 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5195
5196 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
5197 New entry about "fullname" presence.
5198
5199 2013-04-03 Pedro Alves <palves@redhat.com>
5200
5201 * NEWS: Mention x86_64/Cygwin as new native configuration.
5202
5203 2013-04-02 Doug Evans <dje@google.com>
5204
5205 * dwarf2read.c (read_structure_type): Fix typo in comment.
5206
5207 2013-04-02 Pedro Alves <palves@redhat.com>
5208
5209 * NEWS: Mention "set/show debug aarch64", "set/show debug
5210 coff-pe-read" and "set/show debug mach-o".
5211
5212 2013-04-02 Pedro Alves <palves@redhat.com>
5213
5214 * NEWS: Mention "set/show remote trace-buffer-size-packet".
5215
5216 2013-04-02 Eli Zaretskii <eliz@gnu.org>
5217
5218 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
5219 gdb_string.h is now in common/.
5220
5221 2013-04-02 Pedro Alves <palves@redhat.com>
5222
5223 * NEWS: Move "set debug notification" and "set trace-buffer-size"
5224 under "New options".
5225
5226 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5227
5228 Revert this patch:
5229 PR gdb/15275
5230 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
5231
5232 2013-04-02 Pedro Alves <palves@redhat.com>
5233
5234 PR gdb/15275
5235
5236 * remote.c (send_interrupt_sequence): Use remote_serial_write.
5237 (remote_serial_write): New function.
5238 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
5239
5240 2013-04-01 Jiong Wang <jiwang@tilera.com>
5241
5242 * NEWS: Mention TILE-Gx in "New native configurations" and
5243 "New targets" sections.
5244
5245 2013-04-01 Doug Evans <dje@google.com>
5246
5247 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
5248 (process_enumeration_scope): Simplify.
5249
5250 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
5251 type_unit_group ...
5252 (struct signatured_type): ... to here.
5253 (sig_type_ptr): New typedef.
5254 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
5255 out of union 't'. All uses updated.
5256 (dw2_get_file_names_reader): Assert not called for a type unit.
5257 (dw2_get_file_names): Assert not called for a type unit or type
5258 unit group.
5259 (build_type_psymtabs_reader): Assert called for a type unit.
5260 (build_type_psymtab_dependencies): Assert called for a type unit group.
5261
5262 * dwarf2read.c (free_dwo_file): Add comment.
5263 (dwarf2_per_objfile_free): Unref dwp bfd.
5264
5265 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
5266
5267 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
5268 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
5269 (read_pe_exported_syms): Remove unused 'exportix'.
5270 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
5271 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
5272 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
5273
5274 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
5275
5276 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
5277 (print_it_watchpoint): Remove unused 'bl'.
5278 (say_where): Remove unused 'uiout'.
5279 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
5280 (bkpt_breakpoint_hit): Remove unused 'b'.
5281 (internal_bkpt_print_it): Remove unused 'uiout'.
5282 * buildsym.c (augment_type_symtab): Remove unused 'i'.
5283
5284 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
5285
5286 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
5287 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
5288
5289 2013-03-29 Doug Evans <dje@google.com>
5290
5291 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
5292 Delete arg is_dwp. All callers updated.
5293 (open_dwp_file): New function.
5294 (open_and_init_dwp_file): Call it.
5295 (get_dwp_file): New function.
5296 (lookup_dwo_cutu): Call it.
5297
5298 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
5299 unnecessary, cleanup.
5300
5301 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
5302
5303 * dwarf2read.c (read_cutu_die_from_dwo): New function.
5304 (lookup_dwo_unit): New function.
5305 (init_cutu_and_read_dies): Move DWO handling to new functions.
5306
5307 * dwarf2read.c (struct signatured_type): Tweak comment.
5308 (struct dwo_unit): Tweak comment.
5309 (create_debug_types_hash_table): Tweak comment. Reformat long line.
5310 (create_dwo_debug_info_hash_table): Tweak comment.
5311 (dwarf2_per_cu_offset_and_type): Tweak comment.
5312
5313 * dwarf2read.c (lookup_signatured_type): Remove complaint about
5314 missing .debug_types section.
5315
5316 2013-03-29 Yao Qi <yao@codesourcery.com>
5317
5318 * corelow.c: Include "completer.h".
5319 (_initialize_corelow): Call add_target_with_completer with
5320 argument 'filename_completer'.
5321 * tracepoint.c: Likewise.
5322 * exec.c (_initialize_exec): Likewise.
5323 * target.c (add_target): Rename to ...
5324 (add_target_with_completer): ... this. Call set_cmd_completer
5325 if parameter completer is not NULL.
5326 (add_target): New.
5327 * target.h: Include "command.h".
5328 (add_target_with_completer): Declare it.
5329
5330 2013-03-28 Joel Brobecker <brobecker@adacore.com>
5331
5332 * coffread.c (is_import_fixup_symbol): New function.
5333 (record_minimal_symbol): Use is_import_fixup_symbol to
5334 detect import fixup symbols, and discard them.
5335
5336 2013-03-28 Doug Evans <dje@google.com>
5337
5338 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
5339 types hash table until we know we need it.
5340
5341 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
5342 index numbers.
5343
5344 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
5345 All callers updated.
5346 (dw2_print_stats): Print #read CUs too.
5347 (dump_die_shallow): Print signatured types better.
5348
5349 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
5350 info_or_types_section to section. All uses updated.
5351 (struct dwo_unit): Ditto.
5352
5353 2013-03-28 Pedro Alves <palves@redhat.com>
5354
5355 * NEWS (New options): New section.
5356 (New options): Mention set/show remote trace-status-packet.
5357 * remote.c (PACKET_qTStatus): New enumeration value.
5358 (remote_get_trace_status): Skip sending qTStatus if the packet is
5359 disabled. Use packet_ok.
5360 (_initialize_remote): Register a configuration command for
5361 qTStatus packet.
5362
5363 2013-03-28 Doug Evans <dje@google.com>
5364
5365 * symfile.c (find_separate_debug_file): Add comment.
5366 (terminate_after_last_dir_separator): Tweak comment.
5367
5368 * dwarf2read.c (create_partial_symtab): Add forward decl.
5369 (create_partial_symtab): Move to be closer to other psymtab functions.
5370 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
5371
5372 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
5373 (compute_symtab_includes): Remove unnecessary forward declaration.
5374 (die_needs_namespace): Add comment marking group of functions for
5375 dwarf2 name computation.
5376
5377 * typeprint.c (_initialize_typeprint): Improve type help text.
5378
5379 * python/python.c (finish_python_initialization): Provide suggestion
5380 for how to tell gdb to find its python files.
5381
5382 2013-03-28 Pedro Alves <palves@redhat.com>
5383
5384 PR gdb/15294
5385
5386 * source.c (_initialize_source): Change back "set listsize" to an
5387 integer command.
5388
5389 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
5390
5391 PR gdb/15275
5392 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
5393
5394 2013-03-27 Pedro Alves <palves@redhat.com>
5395
5396 * top.c (history_size): Rename to ...
5397 (history_size_setshow_var): ... this. Add comment.
5398 (show_commands): Use readline's 'history_length' instead of
5399 computing the history length by calling history_get in a loop.
5400 (set_history_size_command): Error out for sizes over INT_MAX.
5401 Restore previous history size on invalid size.
5402 (init_history): If HISTSIZE is negative, leave the history size as
5403 zero. Add comments.
5404 (init_main): Adjust.
5405
5406 2013-03-27 Pedro Alves <palves@redhat.com>
5407
5408 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
5409 coff_pe_read" command to "set debug coff-pe-read".
5410
5411 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
5412
5413 * record.c (command_size_to_target_size): Fix size comparison.
5414 Change parameter type from pointer to integer to integer.
5415 Update all users.
5416
5417 2013-03-27 Pierre Muller <muller@sourceware.org>
5418
5419 * windows-nat.c (handle_output_debug_string): Avoid typecast
5420 from integer of different size warning.
5421
5422 2013-03-26 Joel Brobecker <brobecker@adacore.com>
5423
5424 * windows-nat.c (handle_output_debug_string): Add empty line
5425 after local block variable definition.
5426
5427 2013-03-26 Pedro Alves <palves@redhat.com>
5428
5429 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
5430 (net_open): Make 'polls' local unsigned.
5431
5432 2013-03-26 Pedro Alves <palves@redhat.com>
5433
5434 * remote.c (_initialize_remote): Make "set remoteaddresssize"
5435 a zuinteger command instead of uinteger.
5436
5437 2013-03-26 Pedro Alves <palves@redhat.com>
5438
5439 * record-full.c (record_full_insn_num): Make it unsigned.
5440 (record_full_check_insn_num, record_full_message)
5441 (record_full_registers_change, record_full_xfer_partial): Remove
5442 record_full_insn_max_num check (it's always != 0).
5443 (record_full_info, record_full_restore): Use %u as format string.
5444 (): Use %u as format string.
5445 (set_record_full_insn_max_num): Remove record_full_insn_max_num
5446 check (it's always != 0).
5447
5448 2013-03-26 Pedro Alves <palves@redhat.com>
5449
5450 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
5451 and "set dcache size" commands zuinteger instead of uinteger.
5452
5453 2013-03-26 Pedro Alves <palves@redhat.com>
5454
5455 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
5456 command zuinteger instead of uinteger.
5457
5458 2013-03-26 Pedro Alves <palves@redhat.com>
5459
5460 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
5461 zuinteger instead of uinteger.
5462
5463 2013-03-26 Pedro Alves <palves@redhat.com>
5464
5465 * record.c (record_insn_history_size_setshow_var)
5466 (record_call_history_size_setshow_var): New globals.
5467 (command_size_to_target_size): New function.
5468 (cmd_record_insn_history, cmd_record_call_history): Use
5469 command_size_to_target_size instead of cast.
5470 (validate_history_size, set_record_insn_history_size)
5471 (set_record_call_history_size): New functions.
5472 (_initialize_record): Install set_record_insn_history_size and
5473 set_record_call_history_size as "set" hooks of "set record
5474 instruction-history-size" and "set record
5475 function-call-history-size".
5476
5477 2013-03-26 Pedro Alves <palves@redhat.com>
5478
5479 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
5480 use with history_max_entries use. Remove FIXME note.
5481
5482 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
5483
5484 * record-btrace.c (record_btrace_close): Call
5485 record_btrace_auto_disable.
5486
5487 2013-03-25 Joel Brobecker <brobecker@adacore.com>
5488
5489 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
5490
5491 2013-03-25 Doug Evans <dje@google.com>
5492
5493 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
5494
5495 2013-03-25 Tom Tromey <tromey@redhat.com>
5496
5497 PR symtab/11462:
5498 * c-exp.y (exp): Add new productions for destructors after '.' and
5499 '->'.
5500 (write_destructor_name): New function.
5501
5502 2013-03-25 Tom Tromey <tromey@redhat.com>
5503
5504 PR c++/9197:
5505 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
5506 value_struct_elt, not lookup_struct_elt_type.
5507 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5508 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
5509 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
5510
5511 2013-03-25 Yao Qi <yao@codesourcery.com>
5512
5513 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
5514 instead of '_mkdir'.
5515
5516 2013-03-23 Eli Zaretskii <eliz@gnu.org>
5517
5518 * windows-nat.c (windows_get_absolute_argv0): New function.
5519 * windows-nat.h: Add its prototype.
5520
5521 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
5522 Use IS_DIR_SEPARATOR instead of looking for a character inside
5523 SLASH_STRING. Include filenames.h.
5524 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
5525 relocate_gdb_directory works when passed gdb_program_name.
5526 Include windows-nat.h.
5527
5528 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5529
5530 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
5531 * remote.c (trace_error): Remove the special handling of '2'.
5532 (readchar) <SERIAL_EOF>
5533 (readchar) <SERIAL_ERROR>
5534 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
5535 (remote_get_trace_status): Call throw_exception if EX is
5536 TARGET_CLOSE_ERROR.
5537 * utils.c (perror_with_name): Rename to ...
5538 (throw_perror_with_name): ... here. New parameter errcode, describe it
5539 in the function comment.
5540 (perror_with_name): New function wrapper.
5541 * utils.h (enum errors): New stub declaration.
5542 (throw_perror_with_name): New declaration.
5543
5544 2013-03-22 Pedro Alves <palves@redhat.com>
5545 Yao Qi <yao@codesourcery.com>
5546 Mark Kettenis <kettenis@gnu.org>
5547
5548 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
5549 Don't let the user set the value to UINT_MAX directly.
5550 <var_integer>: Don't let the user set the value to INT_MAX
5551 directly.
5552
5553 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5554
5555 * remote.c (remote_unpush_target): New function.
5556 (remote_open_1): Remove two pop_target calls, update one comment, add
5557 comment to target_preopen call. Replace pop_target call by
5558 remote_unpush_target call.
5559 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
5560 pop_target calls by remote_unpush_target calls.
5561
5562 2013-03-22 Pedro Alves <palves@redhat.com>
5563
5564 * linux-nat.c (linux_child_follow_fork): Don't call
5565 linux_enable_event_reporting.
5566 (linux_handle_extended_wait): Don't call
5567 linux_enable_event_reporting.
5568
5569 2013-03-22 Pedro Alves <palves@redhat.com>
5570
5571 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
5572 use it to rewrite the trampoline buffers with type gdb_byte[], and
5573 undefine the macro. Remove char* cast.
5574
5575 2013-03-21 Doug Evans <dje@google.com>
5576
5577 New commands "mt set per-command {space,time,symtab} {on,off}".
5578 * NEWS: Add entry.
5579 * event-top.c: #include "maint.h".
5580 * main.c: #include "maint.h".
5581 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
5582 timeval-utils.h, maint.h, cli/cli-setshow.h.
5583 (per_command_time, per_command_space): New static globals.
5584 (per_command_symtab): New static global.
5585 (per_command_setlist, per_command_showlist): New static globals.
5586 (struct cmd_stats): Move here from utils.c.
5587 (set_per_command_time): Renamed from set_display_time in utils.c
5588 and moved here. All callers updated.
5589 (set_per_command_space): Renamed from set_display_space in utils.c
5590 and moved here. All callers updated.
5591 (count_symtabs_and_blocks): New function.
5592 (report_command_stats): Moved here from utils.c. Add support for
5593 printing symtab stats. Only print data if enabled before command
5594 executed.
5595 (make_command_stats_cleanup): Ditto.
5596 (sert_per_command_cmd, show_per_command_cmd): New functions.
5597 (_initialize_maint_cmds): Add new commands
5598 mt set per-command {space,time,symtab} {on,off}.
5599 * maint.h: New file.
5600 * top.c: #include "maint.h".
5601 * utils.c (reset_prompt_for_continue_wait_time): New function.
5602 (get_prompt_for_continue_wait_time): New function.
5603 * utils.h (reset_prompt_for_continue_wait_time): Declare
5604 (get_prompt_for_continue_wait_time): Declare.
5605 (make_command_stats_cleanup): Moved to maint.h.
5606 (set_display_time, set_display_space): Moved to maint.h and renamed
5607 to set_per_command_time, set_per_command_space.
5608 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
5609 parse_binary_operation and made non-static. Don't call error,
5610 just return an error marker. All callers updated.
5611 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
5612
5613 2013-03-21 Tom Tromey <tromey@redhat.com>
5614
5615 * symfile.c (alloc_section_addr_info): Update header. Don't set
5616 'num_sections' field.
5617 (build_section_addr_info_from_section_table): Set 'num_sections'.
5618 (build_section_addr_info_from_bfd): Likewise.
5619 (build_section_addr_info_from_objfile): Remove dead loop
5620 condition.
5621 (free_section_addr_info): Unconditionally call xfree.
5622 (relative_addr_info_to_section_offsets, addrs_section_sort)
5623 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
5624 condition.
5625 (syms_from_objfile_1): Remove dead 'if' condition. Check
5626 'num_sections'.
5627 (add_symbol_file_command): Set 'num_sections'.
5628 * symfile-mem.c (symbol_file_add_from_memory): Set
5629 'num_sections'.
5630 * somread.c (som_symfile_offsets): Remove dead loop condition.
5631 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
5632 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
5633
5634 2013-03-21 Tom Tromey <tromey@redhat.com>
5635
5636 * tracepoint.h (decode_agent_options): Add 'trace_string'
5637 argument.
5638 * tracepoint.c (decode_agent_options): Add 'trace_string'
5639 argument.
5640 (validate_actionline): Update.
5641 (collect_symbol): Add 'trace_string' argument.
5642 (struct add_local_symbols_data) <trace_string>: New field.
5643 (do_collect_symbol): Update.
5644 (add_local_symbols): Add 'trace_string' argument.
5645 (encode_actions_1): Update.
5646 (trace_dump_actions): Update.
5647 * dwarf2loc.c (access_memory): Update.
5648 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
5649 * ax-general.c (new_agent_expr): Update.
5650 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
5651 (gen_trace_for_return_address): Add argument.
5652 (trace_kludge, trace_string_kludge): Remove.
5653 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
5654 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
5655 (gen_trace_for_var): Add 'trace_string' argument.
5656 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
5657 (gen_printf, agent_eval_command_one): Update.
5658
5659 2013-03-21 Tom Tromey <tromey@redhat.com>
5660
5661 PR exp/15109:
5662 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
5663 Handle FILENAME token.
5664
5665 2013-03-21 Tom Tromey <tromey@redhat.com>
5666
5667 * c-exp.y (YYPRINT): Define.
5668 (c_print_token): New function.
5669
5670 2013-03-21 Tom Tromey <tromey@redhat.com>
5671
5672 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
5673
5674 2013-03-21 Yao Qi <yao@codesourcery.com>
5675
5676 * ctf.c: Include "gdb_stat.h".
5677 [USE_WIN32API]: New macro 'mkdir'.
5678 (ctf_start): Use permission bits macros if they are defined.
5679
5680 2013-03-20 Keith Seitz <keiths@redhat.com>
5681
5682 * breakpoint.h (struct breakpoint): Add comment to
5683 extra_string indicating that this member is mallod'd.
5684 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
5685
5686 2013-03-20 Pedro Alves <palves@redhat.com>
5687
5688 PR gdb/15289
5689
5690 * cli/cli-setshow.c (do_set_command)
5691 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
5692 the result of parsing the command argument. Throw error if the
5693 value is greater than UINT_MAX. Print the invalid value with
5694 plongest.
5695 <var_integer, var_zinteger>: Use LONGEST for variable holding the
5696 result of parsing the command argument. Throw error if the value
5697 is greater than INT_MAX, not greater or equal. Also throw error
5698 if the value is less than INT_MIN. Print the invalid value with
5699 plongest.
5700 <var_zuinteger_unlimited>: Throw error if the value is greater
5701 than INT_MAX, not greater or equal.
5702 (do_show_command) <var_integer, var_zinteger,
5703 var_zuinteger_unlimited>: Use %d for printing int, not %u.
5704
5705 2013-03-20 Tom Tromey <tromey@redhat.com>
5706
5707 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
5708 if possible.
5709 * dwarf2read.c (read_func_scope): Remove old FIXME.
5710 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
5711 not LOC_COMPUTED.
5712 * findvar.c (symbol_read_needs_frame, default_read_var_value):
5713 Unconditionally call via computed ops, if possible.
5714 * printcmd.c (address_info): Unconditionally call via computed ops,
5715 if possible.
5716 * stack.c (read_frame_arg): Unconditionally call via computed ops,
5717 if possible.
5718 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
5719 * tracepoint.c (scope_info): Unconditionally call via computed ops,
5720 if possible.
5721
5722 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5723 Tom Tromey <tromey@redhat.com>
5724
5725 PR symtab/8421:
5726 * coffread.c (coff_register_index): New global.
5727 (process_coff_symbol, coff_read_enum_type): Set
5728 SYMBOL_ACLASS_INDEX.
5729 (_initialize_coffread): Initialize new global.
5730 * dwarf2loc.c (locexpr_find_frame_base_location)
5731 (dwarf2_block_frame_base_locexpr_funcs)
5732 (loclist_find_frame_base_location)
5733 (dwarf2_block_frame_base_loclist_funcs): New.
5734 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
5735 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
5736 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
5737 (dwarf2_block_frame_base_loclist_funcs): New.
5738 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
5739 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
5740 globals.
5741 (read_func_scope): Update.
5742 (fixup_go_packaging, mark_common_block_symbol_computed)
5743 (var_decode_location, new_symbol_full, dwarf2_const_value):
5744 Set SYMBOL_ACLASS_INDEX.
5745 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
5746 (_initialize_dwarf2_read): Initialize new globals.
5747 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
5748 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
5749 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
5750 globals.
5751 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
5752 (_initialize_mdebugread): Initialize new globals.
5753 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
5754 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
5755 (stab_register_index, stab_regparm_index): New globals.
5756 (define_symbol, read_enum_type, common_block_end): Set
5757 SYMBOL_ACLASS_INDEX.
5758 (_initialize_stabsread): Initialize new globals.
5759 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
5760 globals.
5761 (MAX_SYMBOL_IMPLS): New define.
5762 (register_symbol_computed_impl, register_symbol_block_impl)
5763 (register_symbol_register_impl)
5764 (initialize_ordinary_address_classes): New functions.
5765 (_initialize_symtab): Call initialize_ordinary_address_classes.
5766 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
5767 (struct symbol_impl): New.
5768 (SYMBOL_ACLASS_BITS): New define.
5769 (struct symbol) <aclass, ops>: Remove fields.
5770 <aclass_index>: New field.
5771 (symbol_impls): Declare.
5772 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
5773 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
5774 (register_symbol_computed_impl, register_symbol_block_impl)
5775 (register_symbol_register_impl): Declare.
5776 (struct symbol_computed_ops): Add location_has_loclist.
5777 (struct symbol_block_ops): New.
5778 (SYMBOL_BLOCK_OPS): New.
5779 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
5780
5781 2013-03-20 Tom Tromey <tromey@redhat.com>
5782
5783 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
5784 (print_partial_symbols, recursively_search_psymtabs): Use
5785 PSYMBOL_CLASS.
5786
5787 2013-03-20 Pierre Muller <muller@sourceware.org>
5788
5789 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
5790 addtion, subtraction, multiplication and division binary operator.
5791
5792 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5793
5794 Code cleanup.
5795 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
5796 * bsd-kvm.c (bsd_kvm_close): Likewise.
5797 * bsd-uthread.c (bsd_uthread_close): Likewise.
5798 * corelow.c (core_close): Likewise.
5799 (core_close_cleanup): Remove parameter quitting from a caller.
5800 * event-top.c (async_disconnect): Likewise.
5801 * exec.c (exec_close_1): Remove parameter quitting.
5802 * go32-nat.c (go32_close): Likewise.
5803 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
5804 parameter quitting from a caller.
5805 * mips-linux-nat.c (super_close): Remove parameter quitting from the
5806 variable.
5807 (mips_linux_close): Remove parameter quitting. Remove parameter
5808 quitting from a caller.
5809 * monitor.c (monitor_close): Remove parameter quitting.
5810 * monitor.h (monitor_close): Likewise.
5811 * record-btrace.c (record_btrace_close): Likewise.
5812 * record-full.c (record_full_close): Likewise.
5813 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
5814 it also from fprintf_unfiltered.
5815 * remote-mips.c (mips_close): Remove parameter quitting.
5816 (mips_detach): Remove parameter quitting from a caller.
5817 * remote-sim.c (gdbsim_close): Remove parameter quitting.
5818 (gdbsim_close): Remove duplicate function comment. Remove parameter
5819 quitting and remove it also from printf_filtered.
5820 * remote.c (remote_close): Remove parameter quitting.
5821 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
5822 * target.c (update_current_target): Remove parameter int from to_close
5823 de_fault.
5824 (push_target, unpush_target, pop_target): Remove parameter quitting from
5825 a caller.
5826 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
5827 Remove parameter quitting from a caller.
5828 (target_preopen): Remove parameter quitting from a caller.
5829 (target_close): Remove parameter quitting. Remove parameter quitting
5830 from a caller two times. Remove parameter quitting also from
5831 fprintf_unfiltered.
5832 * target.h (struct target_ops): Remove parameter quitting and as int
5833 from fields to_xclose and to_close.
5834 (extern struct target_ops current_target):
5835 (target_close, pop_all_targets): Remove parameter quitting. Update the
5836 comment.
5837 (pop_all_targets_above): Remove parameter quitting.
5838 * top.c (quit_target): Remove parameter quitting from a caller.
5839 * tracepoint.c (tfile_close): Remove parameter quitting.
5840 * windows-nat.c (windows_close): Remove parameter quitting.
5841
5842 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
5843
5844 * windows-nat.c (handle_output_debug_string): Replace call
5845 to string_to_core_addr with call to strtoull.
5846
5847 2013-03-20 Yao Qi <yao@codesourcery.com>
5848
5849 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
5850 and write it to CTF metadata.
5851
5852 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
5853
5854 * windows-nat.c (handle_output_debug_string): Change type of n to
5855 SIZE_T to avoid crash on 64 bit systems.
5856
5857 2013-03-17 Eli Zaretskii <eliz@gnu.org>
5858
5859 * python/python-internal.h (HAVE_SNPRINTF)
5860 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
5861 about redefinition of snprintf by pyerrors.h.
5862
5863 2013-03-15 Steve Ellcey <sellcey@mips.com>
5864
5865 * remote-sim.c (sim_command_completer): Make char arguments const.
5866
5867 2013-03-15 Tom Tromey <tromey@redhat.com>
5868
5869 PR c++/15116:
5870 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
5871
5872 2013-03-14 Tom Tromey <tromey@redhat.com>
5873
5874 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
5875 New fields.
5876 (get_file_crc): Move from symfile.c.
5877 (gdb_bfd_crc): New function.
5878 * gdb_bfd.h (gdb_bfd_crc): Declare.
5879 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
5880 * symfile.c (get_file_crc): Move to gdb_bfd.c.
5881 (separate_debug_file_exists): Use gdb_bfd_crc.
5882
5883 2013-03-14 Tom Tromey <tromey@redhat.com>
5884
5885 * symfile.c (get_debug_link_info): Remove.
5886 (find_separate_debug_file_by_debuglink): Use
5887 bfd_get_debug_link_info.
5888
5889 2013-03-14 Tom Tromey <tromey@redhat.com>
5890
5891 * symtab.c (error_in_psymtab_expansion): New function.
5892 (lookup_symbol_aux_quick)
5893 (basic_lookup_transparent_type_quick): Remove "last resort"
5894 code. Use error_in_psymtab_expansion.
5895
5896 2013-03-14 Doug Evans <dje@google.com>
5897 Jan Kratochvil <jan.kratochvil@redhat.com>
5898
5899 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
5900 any successful compare_filenames_for_search or FILENAME_CMP.
5901 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
5902 * symtab.c (iterate_over_some_symtabs): Likewise.
5903
5904 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5905
5906 * source.c (print_source_lines_base): Make a local copy of
5907 symtab_to_fullname.
5908
5909 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
5910 Jan Kratochvil <jan.kratochvil@redhat.com>
5911
5912 * source.c (print_source_lines_base): Suppress "file" for TUI.
5913
5914 2013-03-14 Keith Seitz <keiths@redhat.com>
5915 Alan Matsuoka <alanm@redhat.com>
5916
5917 PR c++/15203
5918 PR c++/15210
5919 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
5920 TYPE_CODE_METHOD.
5921 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
5922 symbols.
5923
5924 2013-03-14 Yao Qi <yao@codesourcery.com>
5925
5926 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
5927 status to tfile if trace is stopped by command 'tstop'.
5928
5929 2013-03-14 Yao Qi <yao@codesourcery.com>
5930
5931 * tracepoint.c (tfile_write_status): Write trace notes and user
5932 name into tfile if they are not NULL.
5933
5934 2013-03-14 Hui Zhu <hui@codesourcery.com>
5935 Yao Qi <yao@codesourcery.com>
5936
5937 * Makefile.in (REMOTE_OBS): Add ctf.o.
5938 (SFILES): Add ctf.c.
5939 (HFILES_NO_SRCDIR): Add ctf.h.
5940 * ctf.c, ctf.h: New files.
5941 * tracepoint.c: Include 'ctf.h'.
5942 (collect_pseudocommand): Remove static.
5943 (trace_save_command): Parse option "-ctf".
5944 Produce different trace file writers per option.
5945 Adjust output message.
5946 (trace_save_tfile, trace_save_ctf): New.
5947 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
5948 * mi/mi-main.c: Include 'ctf.h'.
5949 (mi_cmd_trace_save): Handle option '-ctf'. Call either
5950 trace_save_tfile or trace_save_ctf.
5951 * NEWS: Mention these changes.
5952
5953 2013-03-14 Yao Qi <yao@codesourcery.com>
5954
5955 * tracepoint.c (trace_file_writer_xfree): New.
5956 (struct tfile_writer_data): New.
5957 (tfile_dtor, tfile_can_target_save, tfile_start): New.
5958 (tfile_write_header, tfile_write_regblock_type): New.
5959 (tfile_write_status, tfile_write_uploaded_tsv): New.
5960 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
5961 (tfile_write_raw_data, (tfile_end): New.
5962 (tfile_write_ops): New global variable.
5963 (TRACE_WRITE_R_BLOCK): New macro.
5964 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
5965 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
5966 (TRACE_WRITE_V_BLOCK): New macro.
5967 (trace_save): Add extra one parameter WRITER. Make it static.
5968 Use WRITER to writer trace.
5969 (tfile_trace_file_writer_new): New.
5970 (trace_save_command): Caller update.
5971 (trace_save_tfile): Write trace data in TFILE format.
5972 * tracepoint.h (struct trace_frame_write_ops): New.
5973 (struct trace_file_write_ops): New.
5974 (struct trace_file_writer): New.
5975 (trace_save): Remove its declaration.
5976 (trace_save_tfile): Declare it.
5977 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
5978 instead of trace_save.
5979
5980 2013-03-13 Pedro Alves <palves@redhat.com>
5981
5982 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
5983
5984 2013-03-13 Pedro Alves <palves@redhat.com>
5985
5986 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
5987 commented out code.
5988 * demangle.c (current_demangling_style_string): Make it const.
5989 (set_demangling_command): Assert the demangling style is known.
5990 Remove all handling of unknown styles. Set
5991 'current_demangling_style_string' to an element of the
5992 demangling_style_names array.
5993 (set_demangling_style): Delete.
5994 (_initialize_demangler): Set current_demangling_style_string to the
5995 element of the demangling_style_names array that corresponds to
5996 the default demangling style. Remove FIXME note. Don't call
5997 set_demangling_style.
5998 * gdb-demangle.h (set_demangling_style): Remove declaration.
5999
6000 2013-03-13 Pedro Alves <palves@redhat.com>
6001
6002 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
6003 fields const.
6004 (ada_make_symbol_completion_list): Make "text0" parameter const.
6005 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
6006 * breakpoint.c (condition_completer): Make "text" and "word"
6007 parameters const. Adjust.
6008 (check_tracepoint_command): Adjust to validate_actionline
6009 prototype change.
6010 (catch_syscall_completer): Make "text" and "word" parameters
6011 const.
6012 * cli/cli-cmds.c (show_user): Make "comname" local const.
6013 (valid_command_p): Make "command" parameter const.
6014 (alias_command): Make "alias_prefix" and "command_prefix" locals
6015 const.
6016 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
6017 (add_alias_cmd): Make "name" and "oldname" parameters const.
6018 Adjust. No longer make copy of OLDNAME.
6019 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
6020 (add_setshow_cmd_full, add_setshow_enum_cmd)
6021 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
6022 (add_setshow_filename_cmd, add_setshow_string_cmd)
6023 (add_setshow_string_noescape_cmd)
6024 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
6025 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
6026 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
6027 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
6028 Make "name" parameter const.
6029 (help_cmd): Rename "command" parameter to "arg". New const local
6030 "command".
6031 (find_cmd): Make "command" parameter const.
6032 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
6033 deprecated_cmd_warning prototype change.
6034 (undef_cmd_error): Make "cmdtype" parameter const.
6035 (lookup_cmd): Make "line" parameter const.
6036 (deprecated_cmd_warning): Change type of "text" parameter to
6037 pointer to const char, from pointer to pointer to char. Adjust.
6038 (lookup_cmd_composition): Make "text" parameter const.
6039 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
6040 parameters const.
6041 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
6042 const.
6043 * cli/cli-script.c (validate_comname): Make "tem" local const.
6044 (define_command): New const local "tem_c". Use it in calls to
6045 lookup_cmd.
6046 (document_command): Make "tem" and "comfull" locals const.
6047 (show_user_1): Make "prefix" and "name" parameters const.
6048 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
6049 const.
6050 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
6051 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
6052 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
6053 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
6054 (complete_on_enum, add_setshow_enum_cmd)
6055 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
6056 (add_setshow_filename_cmd, add_setshow_string_cmd)
6057 (add_setshow_string_noescape_cmd)
6058 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
6059 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
6060 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
6061 Change prototypes, constifying strings.
6062 * completer.c (noop_completer, filename_completer): Make "text"
6063 and "prefix" parameters const.
6064 (location_completer, expression_completer)
6065 (complete_line_internal): Make "text" and "prefix" parameters
6066 const and adjust.
6067 (command_completer, signal_completer): Make "text" and "prefix"
6068 parameters const.
6069 * completer.h (noop_completer, filename_completer)
6070 (expression_completer, location_completer, command_completer)
6071 (signal_completer): Change prototypes.
6072 * corefile.c (complete_set_gnutarget): Make "text" and "word"
6073 parameters const.
6074 * cp-abi.c (cp_abi_completer): Likewise.
6075 * expression.h (parse_expression_for_completion): Change
6076 prototype.
6077 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
6078 parameters const.
6079 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
6080 * infrun.c (handle_completer): Make "text" and "word" parameters
6081 const.
6082 * interps.c (interpreter_completer): Make "text" and "word"
6083 parameters const.
6084 * language.h (struct language_defn)
6085 <la_make_symbol_completion_list>: Make "text" and "word"
6086 parameters const.
6087 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
6088 (parse_exp_in_context): Rename to ...
6089 (parse_exp_in_context_1): ... this.
6090 (parse_exp_in_context): Reimplement, with const hack from
6091 parse_exp_1.
6092 (parse_expression_for_completion): Make "string" parameter const.
6093 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
6094 to pointer to const char. Adjust.
6095 (print_command_1): Make "exp" parameter const.
6096 (output_command): Rename to ...
6097 (output_command_const): ... this. Make "exp" parameter const.
6098 (output_command): Reimplement.
6099 (x_command): Adjust.
6100 (display_command): Rename "exp" parameter to "arg". New "exp"
6101 local, const version of "arg".
6102 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
6103 "cmd_name" local const.
6104 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
6105 call.
6106 (cmdpy_completer): Make "text" and "word" parameters const.
6107 (gdbpy_parse_command_name): Make "prefix_text2" local const.
6108 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
6109 const.
6110 * remote.c (_initialize_remote): Make "cmd_name" local const.
6111 * symtab.c (language_search_unquoted_string): Make "text" and "p"
6112 parameters const. Adjust.
6113 (completion_list_add_fields): Make "sym_text", "text" and "word"
6114 parameters const.
6115 (struct add_name_data) <sym_text, text, word>: Make fields const.
6116 (default_make_symbol_completion_list_break_on): Make "text" and
6117 "word" parameters const. Adjust locals.
6118 (default_make_symbol_completion_list)
6119 (make_symbol_completion_list, make_symbol_completion_type)
6120 (make_symbol_completion_list_fn): Make "text" and "word"
6121 parameters const.
6122 (make_file_symbol_completion_list): Make "text", "word" and
6123 "srcfile" parameters const. Adjust locals.
6124 (add_filename_to_list): Make "text" and "word" parameters const.
6125 (struct add_partial_filename_data) <text, word>: Make fields
6126 const.
6127 (make_source_files_completion_list): Make "text" and "word"
6128 parameters const.
6129 * symtab.h (default_make_symbol_completion_list_break_on)
6130 (default_make_symbol_completion_list, make_symbol_completion_list)
6131 (make_symbol_completion_type enum type_code)
6132 (make_symbol_completion_list_fn make_file_symbol_completion_list)
6133 (make_source_files_completion_list): Change prototype.
6134 * top.c (execute_command): Adjust to pass pointer to pointer to
6135 const char to lookup_cmd, and to deprecated_cmd_warning prototype
6136 change.
6137 (set_verbose): Make "cmdname" local const.
6138 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
6139 and adjust.
6140 (validate_actionline): Make "line" parameter a pointer to const
6141 char, and adjust.
6142 (encode_actions_1): Make "action_exp" local const, and adjust.
6143 (encode_actions): Adjust.
6144 (replace_comma): Delete.
6145 (trace_dump_actions): Make "action_exp" and "next_comma" locals
6146 const, and adjust. Don't frob the action string while splitting
6147 it at commas. Instead, make a copy of each split substring in
6148 turn.
6149 (trace_dump_command): Adjust to validate_actionline prototype
6150 change.
6151 * tracepoint.h (decode_agent_options, decode_agent_options)
6152 (encode_actions, validate_actionline): Change prototypes.
6153 * valprint.h (output_command): Delete declaration.
6154 (output_command_const): Declare.
6155 * value.c (function_destroyer): Cast const away in xfree call.
6156
6157 2013-03-13 Pedro Alves <palves@redhat.com>
6158
6159 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
6160 rather than casting 'const char * const *' to 'const char **'.
6161 * ada-lex.l (processInt): Make "trailer" local const. Remove
6162 'const char **' cast.
6163 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
6164 locals, and use those as strtol output pointer, instead than doing
6165 invalid casts to from 'const char **' to 'char **'.
6166 (_initialize_demangle): Remove cast.
6167 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
6168 locals, and use those as strtol output pointer, instead than doing
6169 invalid casts to from 'const char **' to 'char **'.
6170 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
6171 casts.
6172 * stap-probe.c (stap_parse_register_operand)
6173 (stap_parse_single_operand): Likewise.
6174
6175 2013-03-13 Yao Qi <yao@codesourcery.com>
6176
6177 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
6178 the last matched 'V' blcok in trace frame.
6179
6180 2013-03-12 Joel Brobecker <brobecker@adacore.com>
6181
6182 * NEWS: Create a new section for the next release branch.
6183 Rename the section of the current branch, now that it has
6184 been cut.
6185
6186 2013-03-12 Joel Brobecker <brobecker@adacore.com>
6187
6188 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
6189 * version.in: Bump version to 7.6.50.20130312-cvs.
6190
6191 2013-03-12 Keith Seitz <keiths@redhat.com>
6192
6193 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
6194 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
6195 Remove temporary copy of input string.
6196 (mi_execute_command_wrapper): Make "cmd" const.
6197 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
6198 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
6199 Use const strings.
6200 (mi_parse): Make "cmd" const.
6201 Use const strings.
6202 * mi/mi-parse.h (mi_parse): Make "cmd" const.
6203
6204 2013-03-12 Keith Seitz <keiths@redhat.com>
6205
6206 * ada-lang.c (ada_read_renaming_var_value): Pass const
6207 pointer to expression string to parse_exp_1.
6208 (create_excep_cond_exprs): Likewise.
6209 * ax-gdb.c (agent_eval_command_one): Likewise.
6210 (maint_agent_printf_command): Likewise.
6211 Constify much of the string handling/parsing.
6212 * breakpoint.c (set_breakpoint_condition): Pass const
6213 pointer to expression string to parse_exp_1.
6214 (update_watchpoint): Likewise.
6215 (parse_cmd_to_aexpr): Constify string handling.
6216 Pass const pointer to parse_exp_1.
6217 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
6218 (find_condition_and_thread): Likewise.
6219 Make TOK const.
6220 (watch_command_1): Make "arg" const.
6221 Constify string handling.
6222 Copy the expression string instead of changing the input
6223 string.
6224 (update_breakpoint_location): Pass const pointer to
6225 parse_exp_1.
6226 * eval.c (parse_and_eval_address): Make "exp" const.
6227 (parse_to_comma_and_eval): Make "expp" const.
6228 (parse_and_eval): Make "exp" const.
6229 * expression.h (parse_expression): Make argument const.
6230 (parse_exp_1): Make first argument const.
6231 * findcmd.c (parse_find_args): Treat "args" as const.
6232 * linespec.c (parse_linespec): Pass const pointer to
6233 linespec_expression_to_pc.
6234 (linespec_expression_to_pc): Make "exp_ptr" const.
6235 * parse.c (parse_exp_1): Make "stringptr" const.
6236 Make a copy of the expression to pass to parse_exp_in_context until
6237 this whole interface can be constified.
6238 (parse_expression): Make "string" const.
6239 * printcmd.c (ui_printf): Treat "arg" as const.
6240 Handle const strings.
6241 * tracepoint.c (validate_actionline): Pass const pointer to
6242 all calls to parse_exp_1.
6243 (encode_actions_1): Likewise.
6244 * value.h (parse_to_comma_and_eval): Make argument const.
6245 (parse_and_eval_address): Likewise.
6246 (parse_and_eval): Likewise.
6247 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
6248 (varobj_set_value): Likewise.
6249 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
6250 constify string handling.
6251 Pass const pointers to parse_and_eval_address and
6252 parse_to_comman_and_eval.
6253 * cli/cli-utils.c (skip_to_space): Rename to ...
6254 (skip_to_space_const): ... this. Handle const strings.
6255 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
6256 skip_to_space_const.
6257 (skip_to_space_const): Declare.
6258 * common/format.c (parse_format_string): Make "arg" const.
6259 Handle const strings.
6260 * common/format.h (parse_format_string): Make "arg" const.
6261 * gdbserver/ax.c (ax_printf): Make "format" const.
6262 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
6263 of the expression string.
6264
6265 2013-03-12 Hui Zhu <hui@codesourcery.com>
6266
6267 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
6268
6269 2013-03-12 Yao Qi <yao@codesourcery.com>
6270 Hui Zhu <hui@codesourcery.com>
6271
6272 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
6273 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
6274 DW_OP_deref_size.
6275
6276 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
6277
6278 * ada-lex.l (rules): Only recognize 'thread' as a
6279 delimiter when followed by numerals, as for c-exp.y.
6280 Use new rewind_to_char function to rewind the input for
6281 expression-delimiting tokens.
6282 (rewind_to_char): New function.
6283
6284 2013-03-11 Pedro Alves <palves@redhat.com>
6285 Jan Kratochvil <jan.kratochvil@redhat.com>
6286
6287 * configure: Regenerate.
6288 * configure.ac (check dynamic export flag): Link python test with
6289 $PYTHON_LIBS.
6290
6291 2013-03-11 Doug Evans <dje@google.com>
6292 Keith Seitz <keiths@redhat.com>
6293
6294 * linespec.c (find_linespec_symbols): Call find_function_symbols
6295 first, and then call lookup_prefix_sym/find_method.
6296
6297 2013-03-11 Pedro Alves <palves@redhat.com>
6298
6299 * charset.c (convert_between_encodings): Don't cast between
6300 different pointer to pointer types. Instead, make the 'inp' local
6301 be of the type iconv expects.
6302 (wchar_iterate): Don't cast between different pointer to pointer
6303 types. Instead, use new pointer local of the type iconv expects.
6304 * target.c (target_read_stralloc, target_fileio_read_stralloc):
6305 Add new local of type char pointer, and use it to get a
6306 char/string view of the byte buffer, instead of casting between
6307 pointer to pointer types.
6308
6309 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
6310
6311 * remote.c (remote_set_trace_buffer_size): Move != operator
6312 to the start of next line to fix an ARI warning.
6313
6314 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6315
6316 * NEWS: Add record changes.
6317
6318 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6319
6320 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
6321 the instruction history disassembly.
6322 * disasm.c (dump_insns): Omit the pc prefix, if requested.
6323 * disasm.h (DISASSEMBLY_OMIT_PC): New.
6324
6325 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6326
6327 * Makefile.in (SFILES): Add record-btrace.c
6328 (COMMON_OBS): Add record-btrace.o
6329 * record-btrace.c: New.
6330 * objfiles.c: Include btrace.h.
6331 (free_objfile): call btrace_free_objfile.
6332
6333 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6334
6335 * target.c (target_call_history, target_call_history_from,
6336 target_call_history_range): New.
6337 * target.h (target_ops) <to_call_history, to_call_history_from,
6338 to_call_history_range>: New fields.
6339 (target_call_history, target_call_history_from,
6340 target_call_history_range): New declaration.
6341 * record.c (get_call_history_modifiers, cmd_record_call_history,
6342 record_call_history_size): New.
6343 (_initialize_record): Add the "record function-call-history" command.
6344 Add "set/show record function-call-history-size" commands.
6345 * record.h (record_print_flag): New.
6346
6347 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6348
6349 * target.h (target_ops) <to_insn_history, to_insn_history_from,
6350 to_insn_history_range>: New fields.
6351 (target_insn_history): New.
6352 (target_insn_history_from): New.
6353 (target_insn_history_range): New.
6354 * target.c (target_insn_history): New.
6355 (target_insn_history_from): New.
6356 (target_insn_history_range): New.
6357 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
6358 (record_insn_history_size): New.
6359 (get_insn_number): New.
6360 (get_context_size): New.
6361 (no_chunk): New.
6362 (get_insn_history_modifiers): New.
6363 (cmd_record_insn_history): New.
6364 (_initialize_record): Add "set/show record instruction-history-size"
6365 command. Add "record instruction-history" command.
6366
6367 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6368
6369 * record.h (record_disconnect): New.
6370 (record_detach): New.
6371 (record_mourn_inferior): New.
6372 (record_kill): New.
6373 * record-full.c (record_disconnect, record_detach,
6374 record_mourn_inferior, record_kill): Move to...
6375 * record.c: ...here.
6376 (DEBUG): New.
6377 (record_stop): New.
6378 (record_unpush): New.
6379 (cmd_record_stop): Call record_stop. Replace unpush_target
6380 call with record_unpush call.
6381 (record_disconnect, record_detach): Assert that the target
6382 is of record stratum. Call record_unpush, record_stop, and
6383 DEBUG.
6384 (record_mourn_inferior, record_kill): Assert that the target
6385 is of record stratum. Call record_unpush and DEBUG.
6386
6387 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6388
6389 * record-full.h, record-full.c (record_memory_query): Rename
6390 to ...
6391 (record_full_memory_query): ...this. Update all users.
6392 (record_arch_list_add_reg): Rename to ...
6393 (record_full_arch_list_add_reg): ...this. Update all users.
6394 (record_arch_list_add_mem): Rename to ...
6395 (record_full_arch_list_add_mem): ...this. Update all users.
6396 (record_arch_list_add_end): Rename to ...
6397 (record_full_arch_list_add_end): ...this. Update all users.
6398 (record_gdb_operation_disable_set): Rename to ...
6399 (record_full_gdb_operation_disable_set): ...this.
6400 Update all users.
6401
6402 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6403
6404 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
6405 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
6406 (RECORD_IS_REPLAY): Renamed to ...
6407 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
6408 (RECORD_FILE_MAGIC): Renamed to ...
6409 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
6410 (record_mem_entry): Renamed to ...
6411 (record_full_mem_entry): ... this. Updated all users.
6412 (record_reg_entry): Renamed to ...
6413 (record_full_reg_entry): ... this. Updated all users.
6414 (record_end_entry): Renamed to ...
6415 (record_full_end_entry): ... this. Updated all users.
6416 (record_type) <record_end, record_reg, record_mem>: Renamed
6417 to ...
6418 (record_full_type) <record_full_end, record_full_reg,
6419 record_full_mem>: ... this. Updated all users.
6420 (record_entry): Renamed to ...
6421 (record_full_entry): ... this. Updated all users.
6422 (record_core_buf_entry): Renamed to ...
6423 (record_full_core_buf_entry): ... this. Updated all users.
6424 (record_core_regbuf): Renamed to ...
6425 (record_full_core_regbuf): ... this. Updated all users.
6426 (record_core_start): Renamed to ...
6427 (record_full_core_start): ... this. Updated all users.
6428 (record_core_end): Renamed to ...
6429 (record_full_core_end): ... this. Updated all users.
6430 (record_core_buf_list): Renamed to ...
6431 (record_full_core_buf_list): ... this. Updated all users.
6432 (record_first): Renamed to ...
6433 (record_full_first): ... this. Updated all users.
6434 (record_list): Renamed to ...
6435 (record_full_list): ... this. Updated all users.
6436 (record_arch_list_head): Renamed to ...
6437 (record_full_arch_list_head): ... this. Updated all users.
6438 (record_arch_list_tail): Renamed to ...
6439 (record_full_arch_list_tail): ... this. Updated all users.
6440 (record_stop_at_limit): Renamed to ...
6441 (record_full_stop_at_limit): ... this. Updated all users.
6442 (record_insn_max_num): Renamed to ...
6443 (record_full_insn_max_num): ... this. Updated all users.
6444 (record_insn_num): Renamed to ...
6445 (record_full_insn_num): ... this. Updated all users.
6446 (record_insn_count): Renamed to ...
6447 (record_full_insn_count): ... this. Updated all users.
6448 (record_ops): Renamed to ...
6449 (record_full_ops): ... this. Updated all users.
6450 (record_core_ops): Renamed to ...
6451 (record_full_core_ops): ... this. Updated all users.
6452 (set_record_cmdlist): Renamed to ...
6453 (set_record_full_cmdlist): ... this. Updated all users.
6454 (show_record_cmdlist): Renamed to ...
6455 (show_record_full_cmdlist): ... this. Updated all users.
6456 (record_cmdlist): Renamed to ...
6457 (record_full_cmdlist): ... this. Updated all users.
6458 (record_beneath_to_resume_ops): Renamed to ...
6459 (record_full_beneath_to_resume_ops): ... this. Updated all users.
6460 (record_beneath_to_resume): Renamed to ...
6461 (record_full_beneath_to_resume): ... this. Updated all users.
6462 (record_beneath_to_wait_ops): Renamed to ...
6463 (record_full_beneath_to_wait_ops): ... this. Updated all users.
6464 (record_beneath_to_wait): Renamed to ...
6465 (record_full_beneath_to_wait): ... this. Updated all users.
6466 (record_beneath_to_store_registers_ops): Renamed to ...
6467 (record_full_beneath_to_store_registers_ops): ... this.
6468 Updated all users.
6469 (record_beneath_to_store_registers): Renamed to ...
6470 (record_full_beneath_to_store_registers): ... this.
6471 Updated all users.
6472 (record_beneath_to_xfer_partial_ops): Renamed to ...
6473 (record_full_beneath_to_xfer_partial_ops): ... this.
6474 Updated all users.
6475 (record_beneath_to_xfer_partial): Renamed to ...
6476 (record_full_beneath_to_xfer_partial): ... this.
6477 Updated all users.
6478 (record_beneath_to_insert_breakpoint): Renamed to ...
6479 (record_full_beneath_to_insert_breakpoint): ... this.
6480 Updated all users.
6481 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
6482 (record_full_beneath_to_stopped_by_watchpoint): ... this.
6483 Updated all users.
6484 (record_beneath_to_stopped_data_address): Renamed to ...
6485 (record_full_beneath_to_stopped_data_address): ... this.
6486 Updated all users.
6487 (record_beneath_to_async): Renamed to ...
6488 (record_full_beneath_to_async): ... this. Updated all users.
6489 (record_goto_insn): Renamed to ...
6490 (record_full_goto_insn): ... this. Updated all users.
6491 (record_save): Renamed to ...
6492 (record_full_save): ... this. Updated all users.
6493 (record_reg_alloc): Renamed to ...
6494 (record_full_reg_alloc): ... this. Updated all users.
6495 (record_reg_release): Renamed to ...
6496 (record_full_reg_release): ... this. Updated all users.
6497 (record_mem_alloc): Renamed to ...
6498 (record_full_mem_alloc): ... this. Updated all users.
6499 (record_mem_release): Renamed to ...
6500 (record_full_mem_release): ... this. Updated all users.
6501 (record_end_alloc): Renamed to ...
6502 (record_full_end_alloc): ... this. Updated all users.
6503 (record_end_release): Renamed to ...
6504 (record_full_end_release): ... this. Updated all users.
6505 (record_entry_release): Renamed to ...
6506 (record_full_entry_release): ... this. Updated all users.
6507 (record_list_release): Renamed to ...
6508 (record_full_list_release): ... this. Updated all users.
6509 (record_list_release_following): Renamed to ...
6510 (record_full_list_release_following): ... this.
6511 Updated all users.
6512 (record_list_release_first): Renamed to ...
6513 (record_full_list_release_first): ... this. Updated all users.
6514 (record_arch_list_add): Renamed to ...
6515 (record_full_arch_list_add): ... this. Updated all users.
6516 (record_get_loc): Renamed to ...
6517 (record_full_get_loc): ... this. Updated all users.
6518 (record_check_insn_num): Renamed to ...
6519 (record_full_check_insn_num): ... this. Updated all users.
6520 (record_arch_list_cleanups): Renamed to ...
6521 (record_full_arch_list_cleanups): ... this. Updated all users.
6522 (record_message): Renamed to ...
6523 (record_full_message): ... this. Updated all users.
6524 (record_message_wrapper): Renamed to ...
6525 (record_full_message_wrapper): ... this. Updated all users.
6526 (record_message_wrapper_safe): Renamed to ...
6527 (record_full_message_wrapper_safe): ... this. Updated all users.
6528 (record_gdb_operation_disable): Renamed to ...
6529 (record_full_gdb_operation_disable): ... this. Updated all users.
6530 (record_hw_watchpoint): Renamed to ...
6531 (record_full_hw_watchpoint): ... this. Updated all users.
6532 (record_exec_insn): Renamed to ...
6533 (record_full_exec_insn): ... this. Updated all users.
6534 (record_restore): Renamed to ...
6535 (record_full_restore): ... this. Updated all users.
6536 (record_async_inferior_event_token): Renamed to ...
6537 (record_full_async_inferior_event_token): ... this.
6538 Updated all users.
6539 (record_async_inferior_event_handler): Renamed to ...
6540 (record_full_async_inferior_event_handler): ... this.
6541 Updated all users.
6542 (record_core_open_1): Renamed to ...
6543 (record_full_core_open_1): ... this. Updated all users.
6544 (record_open_1): Renamed to ...
6545 (record_full_open_1): ... this. Updated all users.
6546 (record_open): Renamed to ...
6547 (record_full_open): ... this. Updated all users.
6548 (record_close): Renamed to ...
6549 (record_full_close): ... this. Updated all users.
6550 (record_resume_step): Renamed to ...
6551 (record_full_resume_step): ... this. Updated all users.
6552 (record_resumed): Renamed to ...
6553 (record_full_resumed): ... this. Updated all users.
6554 (record_execution_dir): Renamed to ...
6555 (record_full_execution_dir): ... this. Updated all users.
6556 (record_resume): Renamed to ...
6557 (record_full_resume): ... this. Updated all users.
6558 (record_get_sig): Renamed to ...
6559 (record_full_get_sig): ... this. Updated all users.
6560 (record_sig_handler): Renamed to ...
6561 (record_full_sig_handler): ... this. Updated all users.
6562 (record_wait_cleanups): Renamed to ...
6563 (record_full_wait_cleanups): ... this. Updated all users.
6564 (record_wait_1): Renamed to ...
6565 (record_full_wait_1): ... this. Updated all users.
6566 (record_wait): Renamed to ...
6567 (record_full_wait): ... this. Updated all users.
6568 (record_stopped_by_watchpoint): Renamed to ...
6569 (record_full_stopped_by_watchpoint): ... this. Updated all users.
6570 (record_disconnect): Renamed to ...
6571 (record_full_disconnect): ... this. Updated all users.
6572 (record_detach): Renamed to ...
6573 (record_full_detach): ... this. Updated all users.
6574 (record_mourn_inferior): Renamed to ...
6575 (record_full_mourn_inferior): ... this. Updated all users.
6576 (record_kill): Renamed to ...
6577 (record_full_kill): ... this. Updated all users.
6578 (record_stopped_data_address): Renamed to ...
6579 (record_full_stopped_data_address): ... this. Updated all users.
6580 (record_registers_change): Renamed to ...
6581 (record_full_registers_change): ... this. Updated all users.
6582 (record_store_registers): Renamed to ...
6583 (record_full_store_registers): ... this. Updated all users.
6584 (record_xfer_partial): Renamed to ...
6585 (record_full_xfer_partial): ... this. Updated all users.
6586 (record_breakpoint): Renamed to ...
6587 (record_full_breakpoint): ... this. Updated all users.
6588 (record_breakpoint_p): Renamed to ...
6589 (record_full_breakpoint_p): ... this. Updated all users.
6590 (record_breakpoints): Renamed to ...
6591 (record_full_breakpoints): ... this. Updated all users.
6592 (record_sync_record_breakpoints): Renamed to ...
6593 (record_full_sync_record_breakpoints): ... this.
6594 Updated all users.
6595 (record_init_record_breakpoints): Renamed to ...
6596 (record_full_init_record_breakpoints): ... this.
6597 Updated all users.
6598 (record_insert_breakpoint): Renamed to ...
6599 (record_full_insert_breakpoint): ... this. Updated all users.
6600 (record_remove_breakpoint): Renamed to ...
6601 (record_full_remove_breakpoint): ... this. Updated all users.
6602 (record_can_execute_reverse): Renamed to ...
6603 (record_full_can_execute_reverse): ... this. Updated all users.
6604 (record_get_bookmark): Renamed to ...
6605 (record_full_get_bookmark): ... this. Updated all users.
6606 (record_goto_bookmark): Renamed to ...
6607 (record_full_goto_bookmark): ... this. Updated all users.
6608 (record_async): Renamed to ...
6609 (record_full_async): ... this. Updated all users.
6610 (record_can_async_p): Renamed to ...
6611 (record_full_can_async_p): ... this. Updated all users.
6612 (record_is_async_p): Renamed to ...
6613 (record_full_is_async_p): ... this. Updated all users.
6614 (record_execution_direction): Renamed to ...
6615 (record_full_execution_direction): ... this. Updated all users.
6616 (record_info): Renamed to ...
6617 (record_full_info): ... this. Updated all users.
6618 (record_delete): Renamed to ...
6619 (record_full_delete): ... this. Updated all users.
6620 (record_is_replaying): Renamed to ...
6621 (record_full_is_replaying): ... this. Updated all users.
6622 (record_goto_entry): Renamed to ...
6623 (record_full_goto_entry): ... this. Updated all users.
6624 (record_goto_begin): Renamed to ...
6625 (record_full_goto_begin): ... this. Updated all users.
6626 (record_goto_end): Renamed to ...
6627 (record_full_goto_end): ... this. Updated all users.
6628 (record_goto): Renamed to ...
6629 (record_full_goto): ... this. Updated all users.
6630 (init_record_ops): Renamed to ...
6631 (init_record_full_ops): ... this. Updated all users.
6632 (record_core_resume): Renamed to ...
6633 (record_full_core_resume): ... this. Updated all users.
6634 (record_core_kill): Renamed to ...
6635 (record_full_core_kill): ... this. Updated all users.
6636 (record_core_fetch_registers): Renamed to ...
6637 (record_full_core_fetch_registers): ... this. Updated all users.
6638 (record_core_prepare_to_store): Renamed to ...
6639 (record_full_core_prepare_to_store): ... this. Updated all users.
6640 (record_core_store_registers): Renamed to ...
6641 (record_full_core_store_registers): ... this. Updated all users.
6642 (record_core_xfer_partial): Renamed to ...
6643 (record_full_core_xfer_partial): ... this. Updated all users.
6644 (record_core_insert_breakpoint): Renamed to ...
6645 (record_full_core_insert_breakpoint): ... this. Updated all users.
6646 (record_core_remove_breakpoint): Renamed to ...
6647 (record_full_core_remove_breakpoint): ... this. Updated all users.
6648 (record_core_has_execution): Renamed to ...
6649 (record_full_core_has_execution): ... this. Updated all users.
6650 (init_record_core_ops): Renamed to ...
6651 (init_record_full_core_ops): ... this. Updated all users.
6652 (cmd_record_restore): Renamed to ...
6653 (cmd_record_full_restore): ... this. Updated all users.
6654 (record_save_cleanups): Renamed to ...
6655 (record_full_save_cleanups): ... this. Updated all users.
6656 (cmd_record_start): Renamed to ...
6657 (cmd_record_full_start): ... this. Updated all users.
6658 (set_record_insn_max_num): Renamed to ...
6659 (set_record_full_insn_max_num): ... this. Updated all users.
6660 (set_record_command): Renamed to ...
6661 (set_record_full_command): ... this. Updated all users.
6662 (show_record_command): Renamed to ...
6663 (show_record_full_command): ... this. Updated all users.
6664 (_initialize_record): Renamed to ...
6665 (_initialize_record_full): ... this. Updated all users.
6666
6667 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6668
6669 * record.h: Split into this and ...
6670 * record-full.h: ... this.
6671 * record.c: Split into this and ...
6672 * record-full.c: ... this.
6673 * target.h (target_ops): Add new fields to_info_record,
6674 to_save_record, to_delete_record, to_record_is_replaying,
6675 to_goto_record_begin, to_goto_record_end, to_goto_record.
6676 (target_info_record): New.
6677 (target_save_record): New.
6678 (target_supports_delete_record): New.
6679 (target_delete_record): New.
6680 (target_record_is_replaying): New.
6681 (target_goto_record_begin): New.
6682 (target_goto_record_end): New.
6683 (target_goto_record): New.
6684 * target.c (target_info_record): New.
6685 (target_save_record): New.
6686 (target_supports_delete_record): New.
6687 (target_delete_record): New.
6688 (target_record_is_replaying): New.
6689 (target_goto_record_begin): New.
6690 (target_goto_record_end): New.
6691 (target_goto_record): New.
6692 * record.h: Declare struct cmd_list_element.
6693 (record_cmdlist): New declaration.
6694 (set_record_cmdlist): New declaration.
6695 (show_record_cmdlist): New declaration.
6696 (info_record_cmdlist): New declaration.
6697 (cmd_record_goto): New declaration.
6698 * record.c: Remove unnecessary includes.
6699 Include inferior.h.
6700 (cmd_record_goto): Remove declaration.
6701 (record_cmdlist): Now extern. Initialize.
6702 (set_record_cmdlist): Now extern. Initialize.
6703 (show_record_cmdlist): Now extern. Initialize.
6704 (info_record_cmdlist): Now extern. Initialize.
6705 (find_record_target): New.
6706 (require_record_target): New.
6707 (cmd_record_start): Update.
6708 (cmd_record_delete): Remove target-specific code.
6709 Call target_delete_record.
6710 (cmd_record_stop): Unpush any record target.
6711 (set_record_insn_max_num): Move to record-full.c
6712 (set_record_command): Add comment.
6713 (show_record_command): Add comment.
6714 (info_record_command): Update comment.
6715 Remove target-specific code.
6716 Call the record target's to_info_record.
6717 (cmd_record_start): New.
6718 (cmd_record_goto): Now extern.
6719 Remove target-specific code.
6720 Call target_goto_begin, target_goto_end, or target_goto.
6721 (_initialize_record): Move record target ops initialization to
6722 record-full.c.
6723 Change "record" command help text.
6724 Move "record restore", "record set", and "record show" commands to
6725 record-full.c.
6726 * Makefile.in (SFILES): Add record-full.c.
6727 (HFILES_NO_SRCDIR): Add record-full.h.
6728 (COMMON_OBS): Add record-full.o.
6729 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
6730 * arm-tdep.c: Include record-full.h.
6731 * i386-linux-tdep.c: Include record-full.h instead of record.h.
6732 * i386-tdep.c: Include record-full.h.
6733 * infrun.c: Include record-full.h.
6734 * linux-record.c: Include record-full.h.
6735 * moxie-tdep.c: Include record-full.h.
6736 * record-full.c: Include record-full.h.
6737 Change module comment.
6738 (set_record_full_cmdlist): New.
6739 (show_record_full_cmdlist): New.
6740 (record_full_cmdlist): New.
6741 (record_goto_insn): New declaration.
6742 (record_save): New declaration.
6743 (record_check_insn_num): Change query string.
6744 (record_info): New.
6745 (record_delete): New.
6746 (record_is_replaying): New.
6747 (record_goto_entry): New.
6748 (record_goto_begin): New.
6749 (record_goto_end): New.
6750 (record_goto): New.
6751 (init_record_ops): Update.
6752 (init_record_core_ops): Update.
6753 (cmd_record_save): Rename to record_save. Remove target and arg checks.
6754 (cmd_record_start): New.
6755 (set_record_insn_max_num): Moved from record.c
6756 (set_record_full_command): New.
6757 (show_record_full_command): New.
6758 (_initialize_record_full): New.
6759
6760 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6761
6762 * target.h (add_deprecated_target_alias): New.
6763 * target.c (add_deprecated_target_alias): New.
6764
6765 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6766
6767 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
6768 and signal.h.
6769 (linux_supports_btrace): Add kernel and
6770 cpuid check.
6771 (kernel_supports_btrace): New function.
6772 (cpu_supports_btrace): New function.
6773 (intel_supports_btrace): New function.
6774
6775 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6776
6777 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
6778 * remote.c: Include btrace.h.
6779 (struct btrace_target_info): New struct.
6780 (remote_supports_btrace): New function.
6781 (send_Qbtrace): New function.
6782 (remote_enable_btrace): New function.
6783 (remote_disable_btrace): New function.
6784 (remote_teardown_btrace): New function.
6785 (remote_read_btrace): New function.
6786 (init_remote_ops): Add btrace ops.
6787 (enum <unnamed>): Add btrace packets.
6788 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
6789 (_initialize_remote): Add packet configuration for branch tracing.
6790
6791 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6792
6793 * features/btrace.dtd: New file.
6794 * Makefile.in (XMLFILES): Add btrace.dtd.
6795 * btrace.h (parse_xml_btrace): New declaration.
6796 * btrace.c: Include xml-support.h.
6797 (parse_xml_btrace): New function.
6798 (parse_xml_btrace_block): New function.
6799 (block_attributes): New struct.
6800 (btrace_attributes): New struct.
6801 (btrace_children): New struct.
6802 (btrace_elements): New struct.
6803
6804 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6805
6806 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
6807 (amd64_linux_enable_btrace): New.
6808 (amd64_linux_disable_btrace): New.
6809 (amd64_linux_teardown_btrace): New.
6810 (_initialize_amd64_linux_nat): Initialize btrace ops.
6811 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
6812 (i386_linux_enable_btrace): New.
6813 (i386_linux_disable_btrace): New.
6814 (i386_linux_teardown_btrace): New.
6815 (_initialize_i386_linux_nat): Initialize btrace ops.
6816 * config/i386/linux.mh: Add linux-btrace.o.
6817 * config/i386/linux64.mh: Add linux-btrace.o.
6818
6819 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6820
6821 * common/linux_btrace.h: New file.
6822 * common/linux_btrace.c: New file.
6823 * Makefile.in (SFILES): Add btrace.c.
6824 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
6825 (COMMON_OBS): Add btrace.o.
6826 (linux-btrace.o): New rule.
6827
6828 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6829
6830 * target.h: Include btrace.h.
6831 (struct target_ops) <to_supports_btrace, to_enable_btrace,
6832 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
6833 * target.c (target_supports_btrace): New function.
6834 (target_enable_btrace): New function.
6835 (target_disable_btrace): New function.
6836 (target_teardown_btrace): New function.
6837 (target_read_btrace): New function.
6838 * btrace.h: New file.
6839 * btrace.c: New file.
6840 * Makefile.in: Add btrace.c.
6841 * gdbthread.h: Include btrace.h.
6842 (struct thread_info): Add btrace field.
6843 * thread.c: Include btrace.h.
6844 (clear_thread_inferior_resources): Call target_teardown_btrace.
6845 * common/btrace-common.h: New file.
6846
6847 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6848
6849 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
6850 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
6851 kill_status to outer block.
6852
6853 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6854
6855 Fix entry-values if the callee called a noreturn function.
6856 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6857 get_frame_address_in_block. Add new comment.
6858
6859 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6860
6861 Fix entry-values in C++ across CUs.
6862 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
6863 lookup_minimal_symbol. Add a comment.
6864 * dwarf2read.c
6865 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
6866 DW_AT_linkage_name.
6867
6868 2013-03-08 Yao Qi <yao@codesourcery.com>
6869
6870 * tracepoint.c (_initialize_tracepoint): Indent the code.
6871
6872 2013-03-08 Pedro Alves <palves@redhat.com>
6873
6874 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
6875 (parse_find_args, find_command): Change type of pattern buffer
6876 locals to 'gdb_byte *'.
6877
6878 2013-03-08 Stan Shebs <stan@codesourcery.com>
6879 Hafiz Abid Qadeer <abidh@codesourcery.com>
6880
6881 * NEWS: Mention set and show trace-buffer-size commands.
6882 Mention new packet.
6883 * target.h (struct target_ops): New method
6884 to_set_trace_buffer_size.
6885 (target_set_trace_buffer_size): New macro.
6886 * target.c (update_current_target): Set up new method.
6887 * tracepoint.c (trace_buffer_size): New global.
6888 (start_tracing): Send it to the target.
6889 (set_trace_buffer_size): New function.
6890 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
6891 * remote.c (remote_set_trace_buffer_size): New function.
6892 (_initialize_remote): Use it.
6893 (QTBuffer:size) New remote command.
6894 (PACKET_QTBuffer_size): New enum.
6895 (remote_protocol_features): Add an entry for
6896 PACKET_QTBuffer_size.
6897
6898 2013-03-08 Tom Tromey <tromey@redhat.com>
6899
6900 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
6901 variable.
6902
6903 2013-03-07 Pedro Alves <palves@redhat.com>
6904
6905 * target.c (target_read_stralloc, target_fileio_read_alloc):
6906 *Cast pointer to 'gdb_byte *' in target call.
6907
6908 2013-03-07 Pedro Alves <palves@redhat.com>
6909
6910 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
6911 call.
6912
6913 2013-03-07 Keith Seitz <keiths@redhat.com>
6914
6915 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
6916 (trace_pass_command): Likewise.
6917 * cli/cli-cmds.c: Include cli/cli-utils.h.
6918 (source_command): Use skip-spaces.
6919 (disassemble_command): Likewise.
6920 * findcmd.c: Include cli/cli-utils.h.
6921 (parse_find_args): Use skip_spaces.
6922 * go32-nat.c: Include cli/cli-utils.h.
6923 (go32_sldt): Use skip_spaces.
6924 (go32_sgdt): Likewise.
6925 (go32_sidt): Likewise.
6926 (go32_pde): Likewise.
6927 (go32_pte): Likewise.
6928 (go32_pte_for_address): Likewise.
6929 * infcmd.c: Include cli/cli-utils.h.
6930 (registers_info): Use skip_spaces.
6931 * linux-tdep.c (read_mapping): Use skip_spaces_const.
6932 (linux_info_proc): Likewise.
6933 * linux-thread-db.c: Include cli/cli-utils.h.
6934 (info_auto_load_libthread_db): Use skip_spaces_const.
6935 * m32r-rom.c: Include cli/cli-utils.h.
6936 (m32r_upload_command): Use skip_spaces.
6937 * maint.c: Include cli/cli-utils.h.
6938 (maintenance_translate_address): Use skip_spaces.
6939 * mi/mi-parse.c: Include cli/cli-utils.h.
6940 (mi_parse_argv): Use skip_spaces.
6941 (mi_parse): Likewise.
6942 * minsyms.c: Include cli/cli-utils.h.
6943 (msymbol_hash_iw): Use skip_spaces_const.
6944 * objc-lang.c: Include cli/cli-utils.h.
6945 (parse_selector): Use skip_spaces.
6946 (parse_method): Likewise.
6947 * python/python.c: Include cli/cli-utils.h.
6948 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
6949 (python_command)[HAVE_PYTHON]: Likewise.
6950 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
6951 * remote-m32r-sdi.c: Include cli/cli-utils.h.
6952 (m32r_load): Use skip_spaces.
6953 * serial.c: Include cli/cli-utils.h.
6954 (serial_open): Use skip_spaces_const.
6955 * stack.c: Include cli/cli-utils.h.
6956 (parse_frame_specification_1): Use skip_spaces_const.
6957 * symfile.c: Include cli/cli-utils.h.
6958 (set_ext_lang_command): Use skip_spaces.
6959 * symtab.c: Include cli/cli-utils.h.
6960 (rbreak_command): Use skip_spaces.
6961 * thread.c (thread_name_command): Use skip_spaces.
6962 * tracepoint.c (validate_actionline): Use skip_spaces.
6963 (encode_actions_1): Likewise.
6964 (trace_find_range_command): Likewise.
6965 (trace_find_outside_command): Likewise.
6966 (trace_dump_actions): Likewise.
6967
6968 2013-03-07 Pedro Alves <palves@redhat.com>
6969
6970 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
6971 * expprint.c (print_subexp_standard): Likewise.
6972 * utils.c (host_char_to_target): Likewise.
6973 * valprint.c (generic_emit_char, generic_printstr): Likewise.
6974 * varobj.c (value_get_print_value): Change type of local to char*.
6975 Cast it gdb_byte * in call to language printer.
6976
6977 2013-03-07 Pedro Alves <palves@redhat.com>
6978
6979 * charset.c (struct wchar_iterator) <input>: Change type to 'const
6980 gdb_byte *'.
6981 (make_wchar_iterator): Remove cast to char*.
6982 (wchar_iterate): Change type of local.
6983
6984 2013-03-07 Pedro Alves <palves@redhat.com>
6985
6986 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
6987 for 'regcache->register_status'.
6988
6989 2013-03-07 Pedro Alves <palves@redhat.com>
6990
6991 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
6992 int.
6993
6994 2013-03-07 Pedro Alves <palves@redhat.com>
6995
6996 * stap-probe.c (handle_stap_probe): Add cast to char*.
6997
6998 2013-03-07 Pedro Alves <palves@redhat.com>
6999
7000 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
7001 RECORD_MSGRCV>: Pass a signed variable to
7002 regcache_raw_read_signed, instead of an unsigned one.
7003
7004 2013-03-07 Pedro Alves <palves@redhat.com>
7005
7006 * remote-notif.c (notif_debug): Change type to int.
7007 * remote-notif.h (notif_debug): Likewise.
7008
7009 2013-03-07 Pedro Alves <palves@redhat.com>
7010
7011 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
7012
7013 2013-03-07 Pedro Alves <palves@redhat.com>
7014
7015 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
7016 * remote.h (hex2bin, bin2hex): ... here.
7017 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
7018
7019 2013-03-07 Eli Zaretskii <eliz@gnu.org>
7020
7021 * utils.c (initialize_utils): Improve doc strings of "set/show
7022 width", "set/show height", and "set/show pagination".
7023
7024 2013-03-06 Keith Seitz <keiths@redhat.com>
7025
7026 * ax-gdb.c (gen_printf): Make FORMAT const.
7027 * ax-gdb.h (gen_printf): Likewise.
7028 * ax-general.c (ax_string): Make STR const.
7029 * ax.h (ax_string): Likewise.
7030
7031 2013-03-06 Doug Evans <dje@google.com>
7032
7033 * elfread.c (elf_symfile_read): Move debugging printf to more
7034 logical location.
7035
7036 2013-03-06 Pedro Alves <palves@redhat.com>
7037
7038 * python/py-utils.c (target_string_to_unicode): Delete function.
7039 * python/python-internal.h (target_string_to_unicode): Delete
7040 declaration.
7041
7042 2013-03-06 Pierre Muller <muller@sourceware.org>
7043
7044 * linespec.c (get_current_search_block): ARI fix, use (void)
7045 for empty parameter list.
7046
7047 2013-03-05 Doug Evans <dje@google.com>
7048
7049 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
7050 of old ada_lookup_symbol_list. In !full_search case, don't
7051 search superblocks.
7052 (ada_lookup_symbol_list): Delete arg full_search, all callers
7053 updated. Call ada_lookup_symbol_list_worker.
7054 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
7055 * ada-lang.h (ada_lookup_symbol_list): Update.
7056 * language.h (language_defn): Update comment for
7057 la_iterate_over_symbols.
7058 * linespec.c (iterate_over_file_blocks): New function.
7059 (iterate_over_all_matching_symtabs): Call it.
7060 (lookup_prefix_sym): Ditto.
7061 (get_current_search_block): New function.
7062 (get_search_block): Delete.
7063 (find_label_symbols): Call get_current_search_block.
7064 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
7065 * symtab.c (iterate_over_symbols): Don't search superblocks.
7066
7067 2013-03-05 Yao Qi <yao@codesourcery.com>
7068
7069 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
7070 parameter VAR's type from "unsigned int" to "int".
7071 * command.h (var_zuinteger_unlimited): Update its comments.
7072 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
7073
7074 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
7075
7076 * NEWS: Mention new target x86_64-*-cygwin*.
7077
7078 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
7079
7080 * configure.host: Add x86_64-*-cygwin* as host.
7081 * configure.tgt: Add x86_64-*-cygwin* as target.
7082 * config/i386/cygwin64.mh: New file.
7083
7084 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7085
7086 * linespec.c (decode_line_2): Fix duplicate request off by two message.
7087
7088 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7089
7090 * linespec.c (struct linespec_canonical_name): New.
7091 (struct linespec_state): Change canonical_names type to it.
7092 (add_sal_to_sals): Change variable canonical_name to canonical. Change
7093 xrealloc element size. Initialize the different CANONICAL fields.
7094 (canonical_to_fullform): New.
7095 (filter_results): Use it. Add variables canonical, fullform and
7096 cleanup.
7097 (struct decode_line_2_item, decode_line_2_compare_items): New.
7098 (decode_line_2): Remove variables iter and item_names, add variables
7099 items and items_count. Modify the code for these new variables.
7100
7101 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
7102
7103 * coff-pe-read.c (read_pe_exported_syms): Don't return without
7104 calling do_cleanup.
7105
7106 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
7107
7108 * tracepoint.c (build_traceframe_info): Add code for byte order.
7109
7110 2013-03-02 Kevin Buettner <kevinb@redhat.com>
7111
7112 * v850-tdep.c: (v850e2_register_name): Revise system register
7113 names to match current V850E2M architecture specifications.
7114 Update register number enum comments too.
7115
7116 2013-03-01 Jiong Wang <jiwang@tilera.com>
7117 Pedro Alves <palves@redhat.com>
7118
7119 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
7120 to END_ADDR.
7121 (tilegx_skip_prologue): Limit prologue analysis to section end.
7122
7123 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7124
7125 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
7126 use it.
7127
7128 2013-03-01 Pedro Alves <palves@redhat.com>
7129
7130 Use gdb_byte for bytes from the program being debugged.
7131
7132 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
7133 Change type of local 'buf' to gdb_byte.
7134 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
7135 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
7136 * cris-tdep.c (cris_sigcontext_addr)
7137 (cris_sigtramp_frame_unwind_cache): Likewise.
7138 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
7139 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
7140 Likewise.
7141 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
7142 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
7143 (hppa32_hpux_search_dummy_call_sequence)
7144 (hppa_hpux_supply_save_state): Likewise.
7145 * hppa-linux-tdep.c (insns_match_pattern)
7146 (hppa_linux_find_global_pointer): Likewise.
7147 * hppa-tdep.c (hppa_in_function_epilogue_p)
7148 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
7149 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
7150 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
7151 (i386fbsd_collect_uthread): Likewise.
7152 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
7153 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
7154 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
7155 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
7156 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
7157 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
7158 (ia64_libunwind_frame_prev_register)
7159 (ia64_libunwind_sigtramp_frame_this_id)
7160 (ia64_find_global_pointer_from_dynamic_section)
7161 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
7162 (ia64_unwind_pc): Likewise.
7163 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
7164 * m68hc11-tdep.c (m68hc11_push_dummy_call)
7165 (m68hc11_extract_return_value): Likewise.
7166 * m68klinux-nat.c (fetch_register, store_register): Likewise.
7167 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
7168 (mep_get_insn, mep_push_dummy_call): Likewise.
7169 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
7170 (mips_linux_in_dynsym_stub): Likewise.
7171 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
7172 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
7173 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
7174 to gdb_byte.
7175 * remote-mips.c (mips_set_register): Likewise.
7176 * remote-sim.c (gdbsim_fetch_register): Likewise.
7177 * score-tdep.c (score7_fetch_inst): Change type of parameter
7178 'memblock' and local 'buf' to gdb_byte.
7179 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
7180 Change type of local 'buf' to gdb_byte. Adjust.
7181 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
7182 to gdb_byte**.
7183 (score7_analyze_prologue): Change type of 'memblock' and
7184 'memblock_ptr' locals to gdb_byte*.
7185 * sh64-tdep.c (sh64_extract_return_value)
7186 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
7187 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
7188 * solib-pa64.c (pa64_solib_create_inferior_hook)
7189 (pa64_open_symbol_file_object): Remove local 'buf'.
7190 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
7191 (som_open_symbol_file_object): Likewise.
7192 * solib-spu.c (spu_current_sos): Likewise.
7193 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7194 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
7195 (spu_store_registers): Likewise.
7196 * target.c (debug_print_register): Likewise.
7197 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
7198 * xstormy16-tdep.c (xstormy16_store_return_value)
7199 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
7200 (xstormy16_find_jmp_table_entry): Likewise.
7201
7202 2013-03-01 Jiong Wang <jiwang@tilera.com>
7203
7204 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
7205 (tilegx_gdbarch_init): Install it.
7206
7207 2013-02-28 Tom Tromey <tromey@redhat.com>
7208
7209 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
7210 PyLong_Check.
7211
7212 2013-02-28 Doug Evans <dje@google.com>
7213
7214 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
7215 * python/python.c (gdbpy_find_pc_line): Ditto.
7216
7217 2013-02-28 Tom Tromey <tromey@redhat.com>
7218
7219 * contrib/excheck.py: New file.
7220 * contrib/exsummary.py: New file.
7221 * contrib/gcc-with-excheck: New file.
7222
7223 2013-02-28 Tom Tromey <tromey@redhat.com>
7224
7225 * python/python.c (gdbpy_print_stack): Call begin_line and
7226 fprintf_filtered inside TRY_CATCH.
7227
7228 2013-02-28 Tom Tromey <tromey@redhat.com>
7229
7230 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
7231 inside TRY_CATCH.
7232
7233 2013-02-28 Tom Tromey <tromey@redhat.com>
7234
7235 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
7236 frame_object_to_frame_info inside TRY_CATCH.
7237
7238 2013-02-28 Tom Tromey <tromey@redhat.com>
7239
7240 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
7241 TRY_CATCH.
7242
7243 2013-02-28 Tom Tromey <tromey@redhat.com>
7244
7245 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
7246
7247 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
7248
7249 * windows-nat.c: Throughout, fix format strings and casts of
7250 printf-like functions to avoid type related warnings on all
7251 platforms.
7252 (handle_output_debug_string): Fetch context information address
7253 from debug string using string_to_core_addr.
7254
7255 2013-02-27 Jiong Wang <jiwang@tilera.com>
7256
7257 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
7258 * regformats/reg-tilegx32.dat: New.
7259
7260 2013-02-27 Jiong Wang <jiwang@tilera.com>
7261
7262 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
7263
7264 2013-02-27 Jiong Wang <jiwang@tilera.com>
7265
7266 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
7267
7268 2013-02-27 Yao Qi <yao@codesourcery.com>
7269 Pedro Alves <palves@redhat.com>
7270
7271 * tracepoint.c (tfile_trace_find): For tfind
7272 pc/tp/range/outside, look for the next trace frame instead of
7273 always starting from frame 0.
7274
7275 2013-02-26 Anthony Green <green@moxielogic.com>
7276
7277 * configure.tgt: Add support for moxie-*-rtems* target.
7278
7279 2013-02-25 Pedro Alves <palves@redhat.com>
7280
7281 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
7282 warning text.
7283
7284 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7285
7286 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
7287 if $fp is used as the virtual frame pointer.
7288
7289 2013-02-23 Alan Modra <amodra@gmail.com>
7290
7291 * elfread.c (elf_symtab_read): Do not use udata.p here to find
7292 symbol size.
7293 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
7294 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
7295 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
7296 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
7297
7298 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7299
7300 Code cleanup.
7301 * elfread.c (build_id_bfd_get): Make the return type const.
7302 (build_id_verify): Make the check parameter const.
7303 (build_id_to_debug_filename): Make the build_id parameter and variable
7304 data const.
7305 (find_separate_debug_file_by_buildid): Make the variable build_id const.
7306
7307 2013-02-21 Alan Modra <amodra@gmail.com>
7308
7309 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
7310
7311 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
7312
7313 Add a new method 'disassemble' to gdb.Architecture class.
7314 * python/py-arch.c (archpy_disassmble): Implementation of the
7315 new method gdb.Architecture.disassemble.
7316 (arch_object_methods): Add entry for the new method.
7317
7318 2013-02-20 Jiong Wang <jiwang@tilera.com>
7319
7320 * MAINTAINERS (Write After Approval): Add myself to the list.
7321
7322 2013-02-19 Pedro Alves <palves@redhat.com>
7323
7324 Garbage collect 'struct monitor_ops'::load_routine.
7325
7326 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
7327 * monitor.c (monitor_load): No longer call
7328 current_monitor->load_routine.
7329 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
7330 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
7331 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
7332
7333 2013-02-19 Pedro Alves <palves@redhat.com>
7334
7335 PR gdb/15161
7336
7337 Harmonize with generic_load.
7338
7339 * monitor.c: Include "readline/readline.h".
7340 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
7341 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
7342 long/strtol for the 'load_offset' local. Error out if no argument
7343 is given or if too many arguments are given. Tilde expand the
7344 passed in file name.
7345
7346 2013-02-19 Kai Tietz <ktietz@redhat.com>
7347
7348 PR gdb/15161
7349 * symfile.c (load_section_data): Change type of load_offset
7350 to CORE_ADDR.
7351 (generic_load): User strtoulst instead of strtoul for conversion
7352 of load_offset.
7353
7354 2013-02-19 Jiong Wang <jiwang@tilera.com>
7355
7356 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
7357 for return address, "lr" register, saved on stack.
7358 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
7359 after we invoke tilegx_analyze_prologue.
7360
7361 2013-02-19 Jiong Wang <jiwang@tilera.com>
7362
7363 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
7364
7365 2013-02-19 Jiong Wang <jiwang@tilera.com>
7366
7367 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
7368
7369 2013-02-19 Jiong Wang <jiwang@tilera.com>
7370
7371 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
7372 (tilegx_write_pc): New function.
7373 (tilegx_cannot_reference_register): Return zero if REGNO
7374 is TILEGX_FAULTNUM_REGNUM.
7375 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
7376 (tilegx_register_name): Add handling of "faultnum" register.
7377 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
7378 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
7379 handling of TILEGX_FAULTNUM_REGNUM.
7380 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
7381
7382 2013-02-19 Jiong Wang <jiwang@tilera.com>
7383
7384 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
7385 should be aligned to 64bit.
7386
7387 2013-02-19 Kai Tietz <ktietz@redhat.com>
7388
7389 * windows-nat.c (windows_xfer_memory): Fix debug-output
7390 for LLP64.
7391
7392 2013-02-19 Lei Liu <lei.liu2@windriver.com>
7393
7394 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
7395 Don't check DSP register number if HAVE_DSP is not set.
7396
7397 2013-02-19 Alan Modra <amodra@gmail.com>
7398
7399 * elfread.c (struct build_id): Delete. Use struct elf_build_id
7400 throughout file instead.
7401 (build_id_bfd_get): Update to use new elf_tdata build_id field.
7402 Don't xmalloc return value.
7403 (build_id_verify): Similarly. Don't xfree.
7404 (build_id_to_debug_filename): Update.
7405 (find_separate_debug_file_by_buildid): Update, don't xfree.
7406
7407 2013-02-18 Tom Tromey <tromey@redhat.com>
7408
7409 PR gdb/15102:
7410 * dwarf2read.c (read_subrange_type): Use result of
7411 'check_typedef'.
7412
7413 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
7414
7415 * frame.c: Remove one extra white space after #include
7416 directive.
7417
7418 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7419
7420 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
7421
7422 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7423
7424 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
7425 and dir commands into an if block.
7426
7427 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
7428
7429 * python/py-breakpoint (struct pybp_code): Use int instead of
7430 enum type_code.
7431
7432 2013-02-15 Pedro Alves <pedro@codesourcery.com>
7433 Hafiz Abid Qadeer <abidh@codesourcery.com>
7434
7435 * NEWS: Mention new field "trace-file".
7436 * tracepoint.c (trace_status_mi): Output "trace-file" field.
7437 (tfile_open): Record the trace file's filename in the trace
7438 status.
7439 (tfile_files_info): Mention the name of the trace file.
7440 Check the "filename" field explicitely.
7441 (trace_status_command): Explicitely check "filename" field.
7442 (trace_find_command): Ditto.
7443 (trace_find_pc_command): Ditto.
7444 (trace_find_tracepoint_command): Ditto.
7445 (trace_find_line_command): Ditto.
7446 (trace_find_range_command): Ditto.
7447 (trace_find_outside_command): Ditto.
7448 * tracepoint.h (struct trace_status) <from_file>: Rename it
7449 to "filename" and make it hold the trace file's filename
7450 instead of a boolean.
7451 * remote.c (remote_get_trace_status): Initialize "filename"
7452 field with NULL instead of 0.
7453
7454 2013-02-15 Yao Qi <yao@codesourcery.com>
7455
7456 * remote.c: Fix a typo.
7457
7458 2013-02-14 Pierre Muller <muller@sourceware.org>
7459
7460 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
7461
7462 2013-02-14 Pedro Alves <palves@redhat.com>
7463
7464 * utils.c (savestring): Don't #undef it. Move function to
7465 common/common-utils.c.
7466 * common/common-utils.c: Include gdb_string.h.
7467 (savestring): Move here from utils.c.
7468 * common/common-utils.h (savestring): Declare.
7469
7470 2013-02-14 Pedro Alves <palves@redhat.com>
7471
7472 * utils.c (savestring): Rename parameter 'size' to 'len'.
7473
7474 2013-02-14 Pedro Alves <palves@redhat.com>
7475 Yufeng Zhang <yufeng.zhang@arm.com>
7476
7477 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
7478 (aarch64_inferior_data, struct aarch64_inferior_data):
7479 Delete.
7480 (struct aarch64_process_info): New.
7481 (aarch64_process_list): New global.
7482 (aarch64_find_process_pid, aarch64_add_process)
7483 (aarch64_process_info_get): New functions.
7484 (aarch64_inferior_data_get): Delete.
7485 (aarch64_process_info_get): New function.
7486 (aarch64_forget_process): New function.
7487 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
7488 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
7489 aarch64_get_debug_reg_state.
7490 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
7491 instead of linux_nat_iterate_watchpoint_lwps.
7492 (aarch64_linux_new_fork): New function.
7493 (aarch64_linux_child_post_startup_inferior): Use
7494 aarch64_forget_process instead of aarch64_init_debug_reg_state.
7495 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
7496 (aarch64_linux_remove_hw_breakpoint)
7497 (aarch64_handle_aligned_watchpoint)
7498 (aarch64_handle_unaligned_watchpoint)
7499 (aarch64_linux_insert_watchpoint)
7500 (aarch64_linux_remove_watchpoint)
7501 (aarch64_linux_stopped_data_address): Adjust to pass the current
7502 process id to aarch64_debug_reg_state.
7503 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
7504 linux_nat_new_fork hook, and aarch64_forget_process as
7505 linux_nat_forget_process hook; remove the call to
7506 register_inferior_data_with_cleanup.
7507
7508 2013-02-14 Pedro Alves <palves@redhat.com>
7509
7510 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
7511 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
7512 lval_memory.
7513
7514 2013-02-14 Pedro Alves <pedro@codesourcery.com>
7515 Hafiz Abid Qadeer <abidh@codesourcery.com>
7516
7517 * tracepoint.h (validate_trace_state_variable_name): Declare.
7518 * tracepoint.c (validate_trace_state_variable_name): New.
7519 (trace_variable_command): Parse the trace state variable's name
7520 without using parse_expression. Do several validations.
7521 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
7522 trace state variable's name with parse_expression. Validate it.
7523
7524 2013-02-14 Yao Qi <yao@codesourcery.com>
7525
7526 * infcmd.c (breakpoint_proceeded): Remove it.
7527
7528 2013-02-14 Yao Qi <yao@codesourcery.com>
7529
7530 * tracepoint.c (end_actions_pseudocommand): Make it static.
7531 (while_stepping_pseudocommand): Likewise.
7532 * tracepoint.h (end_actions_pseudocommand): Remove the
7533 declaration.
7534 (while_stepping_pseudocommand): Likewise.
7535
7536 2013-02-14 Yao Qi <yao@codesourcery.com>
7537
7538 * cli/cli-decode.c (help_cmd): Remove the declaration of
7539 "cmdlist".
7540 (help_all): Likewise.
7541
7542 2013-02-13 Pedro Alves <palves@redhat.com>
7543
7544 * amd64-linux-nat.c (update_debug_registers_callback):
7545 Update comment.
7546 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
7547 iterate_over_lwps.
7548 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
7549 i386_debug_reg_state.
7550 (amd64_linux_new_fork): New function.
7551 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
7552 linux_nat_new_fork hook, and i386_forget_process as
7553 linux_nat_forget_process hook.
7554 * i386-linux-nat.c (update_debug_registers_callback):
7555 Update comment.
7556 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
7557 iterate_over_lwps.
7558 (i386_linux_prepare_to_resume): Pass the lwp's pid to
7559 i386_debug_reg_state.
7560 (i386_linux_new_fork): New function.
7561 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
7562 linux_nat_new_fork hook, and i386_forget_process as
7563 linux_nat_forget_process hook.
7564 * i386-nat.c (i386_init_dregs): Delete.
7565 (i386_inferior_data, struct i386_inferior_data):
7566 Delete.
7567 (struct i386_process_info): New.
7568 (i386_process_list): New global.
7569 (i386_find_process_pid, i386_add_process, i386_process_info_get):
7570 New functions.
7571 (i386_inferior_data_get): Delete.
7572 (i386_process_info_get): New function.
7573 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
7574 (i386_forget_process): New function.
7575 (i386_cleanup_dregs): Rewrite.
7576 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
7577 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
7578 (i386_stopped_data_address, i386_insert_hw_breakpoint)
7579 (i386_remove_hw_breakpoint): Adjust to pass the current process id
7580 to i386_debug_reg_state.
7581 (i386_use_watchpoints): Don't register inferior data.
7582 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
7583 adjust comment.
7584 (i386_forget_process): Declare.
7585 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
7586 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
7587 New static globals.
7588 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
7589 (add_initial_lwp): New, factored out from ...
7590 (add_lwp): ... this. Don't check the number of lwps before
7591 calling linux_nat_new_thread.
7592 (linux_nat_iterate_watchpoint_lwps): Delete.
7593 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
7594 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
7595 forks and vforks.
7596 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
7597 initial lwp.
7598 (linux_nat_kill, linux_nat_mourn_inferior): Call
7599 linux_nat_forget_process.
7600 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7601 (linux_nat_forget_process): New functions.
7602 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
7603 type.
7604 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
7605 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
7606 types.
7607 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7608 (linux_nat_forget_process): New declarations.
7609
7610 * amd64fbsd-nat.c (super_mourn_inferior): New global.
7611 (amd64fbsd_mourn_inferior): New function.
7612 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
7613 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
7614
7615 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
7616
7617 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
7618 Adding _().
7619
7620 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
7621
7622 * aarch64-linux-nat.c (debug_reg_change_callback)
7623 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
7624 %s and phex().
7625
7626 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
7627
7628 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
7629 with LONGEST.
7630
7631 2013-02-13 Pedro Alves <palves@redhat.com>
7632 Hafiz Abid Qadeer <abidh@codesourcery.com>
7633
7634 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
7635
7636 2013-02-12 Tom Tromey <tromey@redhat.com>
7637
7638 PR symtab/11464:
7639 * c-exp.y (lex_one_token): Initialize other fields of yylval on
7640 NAME return.
7641 (classify_inner_name): Remove 'first_name' argument, add
7642 'context'. Remove unused variable.
7643 (yylex): Explicitly maintain the context type. Exit loop earlier
7644 if NAME result is seen.
7645
7646 2013-02-12 Pedro Alves <palves@redhat.com>
7647
7648 * amd64-darwin-tdep.c: Add (C) after Copyright.
7649 * cli/cli-cmds.h: Ditto.
7650 * cli/cli-decode.c: Ditto.
7651 * cli/cli-decode.h: Ditto.
7652 * cli/cli-dump.c: Ditto.
7653 * cli/cli-dump.h: Ditto.
7654 * cli/cli-interp.c: Ditto.
7655 * cli/cli-logging.c: Ditto.
7656 * cli/cli-script.c: Ditto.
7657 * cli/cli-script.h: Ditto.
7658 * cli/cli-setshow.c: Ditto.
7659 * cli/cli-setshow.h: Ditto.
7660 * cli/cli-utils.c: Ditto.
7661 * cli/cli-utils.h: Ditto.
7662 * config/alpha/nm-osf3.h: Ditto.
7663 * config/djgpp/djconfig.sh: Ditto.
7664 * config/i386/nm-fbsd.h: Ditto.
7665 * config/i386/nm-i386gnu.h: Ditto.
7666 * config/nm-linux.h: Ditto.
7667 * config/nm-nto.h: Ditto.
7668 * config/rs6000/nm-rs6000.h: Ditto.
7669 * config/sparc/nm-sol2.h: Ditto.
7670 * darwin-nat-info.c: Ditto.
7671 * dfp.c: Ditto.
7672 * dfp.h: Ditto.
7673 * gdb-demangle.h: Ditto.
7674 * i386-darwin-nat.c: Ditto.
7675 * i386-darwin-tdep.c: Ditto.
7676 * linux-fork.h: Ditto.
7677 * m32c-tdep.c: Ditto.
7678 * microblaze-linux-tdep.c: Ditto.
7679 * microblaze-rom.c: Ditto.
7680 * microblaze-tdep.c: Ditto.
7681 * microblaze-tdep.h: Ditto.
7682 * mips-linux-tdep.h: Ditto.
7683 * ppc-ravenscar-thread.c: Ditto.
7684 * ppc-ravenscar-thread.h: Ditto.
7685 * prologue-value.c: Ditto.
7686 * prologue-value.h: Ditto.
7687 * ravenscar-thread.c: Ditto.
7688 * ravenscar-thread.h: Ditto.
7689 * sparc-ravenscar-thread.c: Ditto.
7690 * sparc-ravenscar-thread.h: Ditto.
7691 * tilegx-linux-tdep.c: Ditto.
7692 * unwind_stop_reasons.def: Ditto.
7693 * windows-nat.h: Ditto.
7694 * xtensa-linux-tdep.c: Ditto.
7695 * xtensa-xtregs.c: Ditto.
7696 * regformats/regdat.sh: Ditto.
7697 * regformats/regdef.h: Ditto.
7698
7699 2013-02-12 Pedro Alves <palves@redhat.com>
7700
7701 * break-catch-sig.c: Update copyright years.
7702
7703 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
7704
7705 Add support for a destructor for ui_out data and use it to
7706 provide a ui_out destructor.
7707 * ui-out.h: Declare the new ui_out destructor.
7708 (ui_out_impl): Add a field for data destructor in ui_out_impl.
7709 * ui-out.c (default_data_destroy): Add a default data destructor
7710 which does nothing.
7711 (default_ui_out_impl): Set the new data_destroy field to
7712 default_data_destroy
7713 (uo_data_destroy): Local function which invokes the data
7714 destructor if present.
7715 (clear_table): Local function which clears the table data of a
7716 ui_out object.
7717 (ui_out_destroy): Public function which frees a ui_out object.
7718 (ui_out_table_end): Use the new clear_table function.
7719 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
7720 NULL.
7721 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
7722 to NULL.
7723
7724 2013-02-11 Doug Evans <dje@google.com>
7725
7726 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
7727 (printf_decfloat): New function. Broken out from ui_printf.
7728 Remove unnecessary code to shift the entire format string down.
7729 (printf_pointer): New function.
7730 (ui_printf): Code to print C strings, wide C strings, decfloats,
7731 and pointers moved to separate functions.
7732
7733 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
7734
7735 * valops.c (value_assign): Handling bitfield offset in
7736 `lval_internalvar_component' case.
7737
7738 2013-02-08 Doug Evans <dje@google.com>
7739
7740 * common/format.c (parse_format_string): Fix whitespace.
7741
7742 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
7743
7744 * stack.c (return_command): Work around uninitialized variable
7745 warning.
7746
7747 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
7748
7749 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
7750 number of the registers from 36 to 34.
7751
7752 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
7753
7754 * NEWS: Mention new AArch64 native and target support.
7755
7756 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
7757
7758 * MAINTAINERS (Write After Approval): Add myself.
7759
7760 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
7761 Marcus Shawcroft <marcus.shawcroft@arm.com>
7762 Nigel Stephens <nigel.stephens@arm.com>
7763 Yufeng Zhang <yufeng.zhang@arm.com>
7764
7765 * aarch64-linux-nat.c: New file.
7766 * config/aarch64/linux.mh: New file.
7767 * configure.host: Add AArch64.
7768 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
7769
7770 2013-02-07 Doug Evans <dje@google.com>
7771
7772 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
7773 disassemble command.
7774
7775 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
7776
7777 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
7778 set_gdbarch_fetch_tls_load_module_address.
7779
7780 2013-02-06 David S. Miller <davem@davemloft.net>
7781
7782 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
7783 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7784 * value.c (struct_return_convention): New function.
7785 (using_struct_return): Implement in terms of struct_return_convention.
7786 * value.h (struct_return_convention): Declare.
7787 * stack.c (return_command): Allow successful overriding of the return
7788 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7789
7790 2013-02-06 Tom Tromey <tromey@redhat.com>
7791
7792 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
7793 outside of TRY_CATCH.
7794
7795 2013-02-06 Yao Qi <yao@codesourcery.com>
7796
7797 * mi/mi-interp.c: Include "tracepoint.h".
7798 (mi_tsv_modified): Declare.
7799 (mi_tsv_created, mi_tsv_deleted): Update declaration.
7800 (mi_interpreter_init): Call observer_attach_tsv_modified.
7801 (mi_tsv_modified): New.
7802 (mi_tsv_created, mi_tsv_deleted): Update.
7803 * tracepoint.c (trace_variable_command): Call
7804 observer_notify_tsv_modified if the initial value of tsv is
7805 changed.
7806 (delete_trace_state_variable): Call
7807 observer_notify_tsv_deleted earlier.
7808 (trace_variable_command): Caller update.
7809 (create_tsv_from_upload): Likewise.
7810 * observer.sh: Declare "struct trace_state_variable".
7811
7812 * NEWS: Mention the new MI notification "=tsv-modified".
7813
7814 2013-02-05 Doug Evans <dje@google.com>
7815
7816 * completer.c (location_completer): Fix typo in comment.
7817
7818 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7819
7820 * breakpoint.c (add_location_to_breakpoint): Insert the location with
7821 ADDRESS sorted.
7822
7823 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
7824
7825 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
7826 Refactor if statement to avoid trailing || operator.
7827
7828 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
7829
7830 * NEWS: Add PowerPC FreeBSD as a new native configuration.
7831
7832 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
7833
7834 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
7835 * configure.host: Add powerpc*-*-freebsd* target.
7836 * configure.tgt: Add target info for powerpc*-*-freebsd*.
7837 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
7838 * config/powerpc/fbsd.mh: New file.
7839
7840 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
7841 Denys Vlasenko <dvlasenk@redhat.com>
7842 Pedro Alves <palves@redhat.com>
7843
7844 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
7845 (struct elf_internal_linux_prpsinfo): Forward declare.
7846 * gdbarch.h, gdbarch.c: Regenerate.
7847 * linux-tdep.c: Include `cli/cli-utils.h'.
7848 (linux_fill_prpsinfo): New function.
7849 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
7850 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
7851 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
7852 depending on gdbarch pointer bitness.
7853 * ppc-linux-tdep.c: Include elf-bfd.h.
7854 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
7855 on 32-bit.
7856
7857 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
7858 Marcus Shawcroft <marcus.shawcroft@arm.com>
7859 Nigel Stephens <nigel.stephens@arm.com>
7860 Yufeng Zhang <yufeng.zhang@arm.com>
7861
7862 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
7863
7864 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
7865 Marcus Shawcroft <marcus.shawcroft@arm.com>
7866 Nigel Stephens <nigel.stephens@arm.com>
7867 Yufeng Zhang <yufeng.zhang@arm.com>
7868
7869 * aarch64-newlib-tdep.c: New file.
7870 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
7871 aarch64*-*-elf.
7872 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
7873 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
7874 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
7875 * osabi.c (gdb_osabi_names): Add "Newlib".
7876
7877 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
7878 Marcus Shawcroft <marcus.shawcroft@arm.com>
7879 Nigel Stephens <nigel.stephens@arm.com>
7880 Yufeng Zhang <yufeng.zhang@arm.com>
7881
7882 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
7883 (ALLDEPFILES): Add aarch64-linux-tdep.c.
7884 * aarch64-linux-tdep.c: New file.
7885 * aarch64-linux-tdep.h: New file.
7886 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
7887 * configure.tgt: Add aarch64-none-linux-gnu.
7888
7889 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
7890 Marcus Shawcroft <marcus.shawcroft@arm.com>
7891 Nigel Stephens <nigel.stephens@arm.com>
7892 Yufeng Zhang <yufeng.zhang@arm.com>
7893
7894 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
7895 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
7896 (ALLDEPFILES): Add aarch64-tdep.c.
7897 * aarch64-tdep.c: New file.
7898 * aarch64-tdep.h: New file.
7899 * configure.tgt: Add AArch64.
7900 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
7901 (aarch64-expedite): New definition.
7902 * features/aarch64-core.xml: New file.
7903 * features/aarch64-fpu.xml: New file.
7904 * features/aarch64-without-fpu.c: New file (generated).
7905 * features/aarch64-without-fpu.xml: New file.
7906 * features/aarch64.c: New file (generated).
7907 * features/aarch64.xml: New file.
7908 * regformats/aarch64-without-fpu.dat: New file (generated).
7909 * regformats/aarch64.dat: New file (generated).
7910
7911 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7912
7913 * contrib/expect-read1.c: New file.
7914 * contrib/expect-read1.sh: New file.
7915
7916 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7917
7918 * dwarf2read.c (file_file_name): New function with code from
7919 file_full_name.
7920 (file_full_name): Move most of the code to file_file_name.
7921 (macro_start_file): Rename variable full_name to file_name and use
7922 file_file_name for it. Add comp_dir parameter to new_macro_table.
7923 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
7924 macro_source_file->filename access by macro_source_fullname call.
7925 * macroscope.c (_initialize_macroscope): Update the new_macro_table
7926 caller.
7927 * macrotab.c (struct macro_table): New field comp_dir.
7928 (macro_include): New variables link_fullname and source_fullname.
7929 Replace any macro_source_file->filename access by macro_source_fullname
7930 call.
7931 (macro_lookup_inclusion): Remove the partial filenames checking code.
7932 (check_for_redefinition): New variables source_fullname and
7933 found_key_fullname. Replace any macro_source_file->filename access by
7934 macro_source_fullname call.
7935 (macro_undef): New variables source_fullname and key_fullname. Replace
7936 any macro_source_file->filename access by macro_source_fullname call.
7937 (macro_lookup_definition): New variables retval and source_fullname.
7938 Replace any macro_source_file->filename access by macro_source_fullname
7939 call.
7940 (foreach_macro): New variable key_fullname. Replace any
7941 macro_source_file->filename access by macro_source_fullname call.
7942 (foreach_macro_in_scope): New variable datum_fullname. Replace any
7943 macro_source_file->filename access by macro_source_fullname call.
7944 (new_macro_table): Add parameter comp_dir. Initialize T with it.
7945 (macro_source_fullname): New function.
7946 * macrotab.h (struct macro_source_file): Extent the filename field
7947 comment.
7948 (new_macro_table): New parameter comp_dir, add a comment for it.
7949 (macro_source_fullname): new declaration.
7950
7951 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7952
7953 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
7954 this_real_name to outer block. Use it also for
7955 compare_filenames_for_search.
7956 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
7957 with dw2_get_real_path for file_matcher, considering also
7958 BASENAMES_MAY_DIFFER.
7959 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
7960
7961 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7962
7963 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
7964 to the file_matcher parameter. Pass 0 to it.
7965 (dwarf2_create_include_psymtab): Copy also DIRNAME.
7966 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
7967 NULL psymtab_to_fullname result.
7968 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
7969 an expected filename instead.
7970 (expand_symtabs_matching_via_partial): Add basenames parameter to the
7971 file_matcher parameter. Call also psymtab_to_fullname, after newly
7972 considering BASENAMES_MAY_DIFFER.
7973 * source.c (rewrite_source_path): Remove static.
7974 * source.h (rewrite_source_path): New declaration.
7975 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
7976 the expand_symtabs_matching field. Comment it.
7977 * symtab.c (file_matches): New function comment. Add parameter
7978 basenames, implement it.
7979 (search_symbols_file_matches): Add basenames parameter. Update the
7980 file_matches caller.
7981 (search_symbols): Match FILES also against symtab_to_fullname.
7982 Optimize it for BASENAMES_MAY_DIFFER.
7983
7984 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7985
7986 * source.c (print_source_lines_base): Print for TUI also "fullname".
7987 * tui/tui-data.c (init_content_element): Change tui_locator_element
7988 field to full_name.
7989 * tui/tui-data.h (struct tui_locator_element): Likewise.
7990 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
7991 tui_update_locator_filename calls to tui_update_locator_fullname.
7992 Replace symtab->filename refererence by symtab_to_fullname call.
7993 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
7994 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
7995 field to full_name. Replace symtab->filename refererence by
7996 symtab_to_fullname call.
7997 (tui_show_symtab_source): Rename parameter to fullname. Change
7998 tui_locator_element field to full_name.
7999 * tui/tui-stack.c: Include source.h.
8000 (tui_set_locator_filename): Rename the declaration to ...
8001 (tui_set_locator_fullname): ... here. Rename its parameter to
8002 fullname, updates its comment.
8003 (tui_set_locator_info): Rename its parameter to fullname.
8004 (tui_set_locator_filename): Rename the definition to ...
8005 (tui_set_locator_fullname): ... here. Rename its parameter to
8006 fullname, updates its comment. Change tui_locator_element field to
8007 full_name.
8008 (tui_set_locator_info): Rename its parameter to fullname.
8009 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
8010 (tui_update_locator_filename): Rename to ...
8011 (tui_update_locator_fullname): ... here. Rename callee to
8012 tui_set_locator_fullname.
8013 (tui_show_frame_info): Replace symtab->filename refererence by
8014 symtab_to_fullname call.
8015 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
8016 (tui_update_locator_fullname): ... here.
8017 * tui/tui-winsource.c (tui_display_main): Rename the callee to
8018 tui_update_locator_fullname. Replace symtab->filename refererence by
8019 symtab_to_fullname call.
8020 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
8021 Rename the callee to tui_update_locator_fullname.
8022 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
8023
8024 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8025
8026 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
8027 by symtab_to_filename_for_display calls.
8028 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
8029 (clear_command): New variable sal_fullname, initialize it. Replace
8030 compare_filenames_for_search by filename_cmp with sal_fullname.
8031 (say_where, update_static_tracepoint): Replace symtab->filename
8032 refererences by symtab_to_filename_for_display calls.
8033 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
8034 Likewise.
8035 * dwarf2read.c: Include source.h.
8036 (fixup_go_packaging): Replace symtab->filename refererences by
8037 symtab_to_filename_for_display calls.
8038 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
8039 Replace symtab->filename refererences by symtab_to_filename_for_display
8040 calls.
8041 (create_sals_line_offset, convert_linespec_to_sals): New variable
8042 fullname, initialize it, replace symtab->filename reference by the
8043 variable.
8044 * linux-fork.c: Include source.h.
8045 (info_checkpoints_command): Replace symtab->filename refererences by
8046 symtab_to_filename_for_display calls.
8047 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
8048 by symtab_to_filename_for_display calls.
8049 * mdebugread.c: Include source.h.
8050 (psymtab_to_symtab_1): Replace symtab->filename refererences by
8051 symtab_to_filename_for_display calls.
8052 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8053 (mi_cmd_file_list_exec_source_files): Likewise.
8054 * printcmd.c: Include source.h.
8055 (build_address_symbolic): Replace symtab->filename refererences by
8056 symtab_to_filename_for_display calls.
8057 * psymtab.c (partial_map_symtabs_matching_filename)
8058 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
8059 with psymtab_to_fullname.
8060 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
8061 by symtab_to_filename_for_display calls.
8062 (stpy_get_filename): New variable filename, initialize it, use instead
8063 of symtab->filename refererences.
8064 (salpy_str): Make variable filename const char *. Replace
8065 symtab->filename refererences by symtab_to_filename_for_display calls.
8066 * skip.c: Include source.h and filenames.h.
8067 (skip_file_command): Remove const from the symtab variable. Replace
8068 symtab->filename refererences by symtab_to_fullname call.
8069 (function_name_is_marked_for_skip): New variables searched_for_fullname
8070 and fullname. Use them to search also with symtab's fullname.
8071 * source.c (find_source_lines): Replace symtab->filename refererences
8072 by symtab_to_filename_for_display calls.
8073 (print_source_lines_base): New variable filename, use it instead of
8074 symtab->filename. Replace symtab->filename refererences by
8075 symtab_to_filename_for_display calls.
8076 (line_info, forward_search_command): Replace symtab->filename
8077 refererences by symtab_to_filename_for_display calls.
8078 (reverse_search_command): Replace symtab->filename refererences by
8079 symtab_to_filename_for_display calls. New variable filename for it.
8080 * stack.c (frame_info): Likewise.
8081 * symmisc.c: Include source.h.
8082 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
8083 (maintenance_info_symtabs): Replace symtab->filename refererences by
8084 symtab_to_filename_for_display calls.
8085 * symtab.c (iterate_over_some_symtabs): Call
8086 compare_filenames_for_search also with symtab_to_fullname.
8087 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
8088 symtab->filename refererences by symtab_to_filename_for_display calls.
8089 (find_line_symtab): Replace symtab->filename refererences by
8090 symtab_to_filename_for_display calls.
8091 (file_matches): Replace filename_cmp by compare_filenames_for_search.
8092 (print_symbol_info): Make the last parameter const char *. New
8093 variable s_filename. Use it in the function.
8094 (symtab_symbol_info): Make the last_filename variable const char *.
8095 Replace symtab->filename refererences by symtab_to_filename_for_display
8096 calls.
8097 (rbreak_command): New variable fullname. Use it. Replace
8098 symtab->filename refererence by symtab_to_filename_for_display call.
8099 * tracepoint.c (set_traceframe_context, trace_find_line_command)
8100 (print_one_static_tracepoint_marker): Replace symtab->filename
8101 refererences by symtab_to_filename_for_display calls.
8102 * tui/tui-source.c (tui_set_source_content): New variables filename and
8103 s_filename. Replace symtab->filename refererences by this variable.
8104 Replace other symtab->filename refererences by
8105 symtab_to_filename_for_display calls.
8106
8107 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
8108 Jan Kratochvil <jan.kratochvil@redhat.com>
8109
8110 Add a new variable that controls a way in which filenames are
8111 displayed.
8112 * NEWS (set filename-display): New entry.
8113 * source.c (filename_display_basename, filename_display_relative)
8114 (filename_display_absolute, filename_display_kind_names)
8115 (filename_display_string, show_filename_display_string)
8116 (symtab_to_filename_for_display): New.
8117 (_initialize_source): Added initialization of 'filename-display'
8118 variable.
8119 * source.h (symtab_to_filename_for_display): Added declaration.
8120 * stack.c (print_frame): Added new variable and calling of a new
8121 function and condition with this variable. Changed third argument of
8122 calling of a function.
8123
8124 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8125
8126 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
8127 Rename field reference filename to fullname.
8128 * tui/tui-data.h (struct tui_source_info): Rename field filename to
8129 fullname. New comment for it.
8130 * tui/tui-source.c (tui_set_source_content): Rename field reference
8131 filename to fullname. Initialize field by symtab_to_fullname now.
8132 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
8133 reference filename to fullname. Use symtab_to_fullname during
8134 comparison.
8135
8136 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8137
8138 Code cleanup.
8139 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
8140 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
8141 filename to fullname. Rename variable this_name to this_fullname.
8142 Lowercase FILENAME_CMP call.
8143 (dw2_find_symbol_file): New comment for the returned string.
8144 (dwarf2_gdb_index_functions): Rename the function to
8145 dw2_expand_symtabs_with_fullname.
8146 * psymtab.c (read_psymtabs_with_filename): Rename to ...
8147 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
8148 fullname.
8149 (psym_functions): Rename the function to read_psymtabs_with_fullname.
8150 * symfile.h (struct quick_symbol_functions): Rename field
8151 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
8152 parameter filename to fullname. Document returned string meaning for
8153 find_symbol_file.
8154 * symtab.c (find_line_symtab): Rename the called function to
8155 expand_symtabs_with_fullname.
8156
8157 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8158
8159 Code cleanup.
8160 * breakpoint.c (clear_command): Remove variable is_abs, unify the
8161 call of filename_cmp with compare_filenames_for_search.
8162 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
8163 is_abs, unify the call of FILENAME_CMP with
8164 compare_filenames_for_search. New gdb_asserts for real_path and name.
8165 Unify the call of compare_filenames_for_search with FILENAME_CMP.
8166 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8167 * symfile.h (struct quick_symbol_functions): Extend the comment for
8168 map_symtabs_matching_filename.
8169 * symtab.c (compare_filenames_for_search): Remove the function comment
8170 relative path requirement. Handle absolute filenames, with a comment.
8171 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
8172 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
8173 real_path and name. Unify the call of compare_filenames_for_search
8174 with FILENAME_CMP.
8175 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
8176
8177 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8178
8179 Code cleanup.
8180 * breakpoint.c (print_breakpoint_location): Replace bp_location field
8181 source_file references by symtab field references. Remove variables
8182 sal and fullname.
8183 (momentary_breakpoint_from_master, add_location_to_breakpoint):
8184 (clear_command, say_where): Replace bp_location field source_file
8185 references by symtab field references.
8186 (bp_location_dtor): Remove the source_file reference.
8187 (update_static_tracepoint): Replace bp_location field source_file
8188 references by symtab field references.
8189 (breakpoint_free_objfile): New function.
8190 * breakpoint.h (struct bp_location): Extend the comment for line_number.
8191 Replace the field source_file by field symtab, extend its comment.
8192 (breakpoint_free_objfile): New declaration.
8193 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
8194 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
8195 field source_file references by symtab field references.
8196
8197 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8198
8199 Replace xfullpath calls by gdb_realpath calls.
8200 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
8201 function comment.
8202 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
8203 Remove it from the iterate_over_some_symtabs call.
8204 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
8205 Remove it from the dw2_map_expand_apply calls, remove a block handling
8206 it.
8207 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
8208 Remove it from the iterate_over_some_symtabs call.
8209 (partial_map_symtabs_matching_filename): Remove parameter full_path.
8210 Remove it from the partial_map_expand_apply calls, remove a block
8211 handling it. Drop gdb_realpath call and cleanups from the real_path
8212 handling.
8213 * source.c (openp): Drop the comment part about xfullpath. Replace
8214 xfullpath calls by gdb_realpath calls.
8215 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
8216 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
8217 from method map_symtabs_matching_filename and its comment.
8218 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
8219 gdb_realpath call.
8220 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
8221 remove it also from the function comment, remove a block handling it.
8222 Drop gdb_realpath call and cleanups from the real_path handling.
8223 (iterate_over_symtabs): Drop variable full_path and its use.
8224 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
8225 * utils.c (xfullpath): Remove.
8226 * utils.h (xfullpath): Remove.
8227
8228 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
8229
8230 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
8231 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
8232 (ALLDEPFILES): Add ppc64-tdep.c.
8233 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
8234 ppc64-tdep.o to gdb_target_obs.
8235 * ppc64-tdep.h: New file.
8236 * ppc64-tdep.c: New file.
8237 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
8238 ppc-linux-tdep.c to here.
8239 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
8240 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
8241 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
8242 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
8243 from ppc-linux-tdep.c to here.
8244 (ppc64_convert_from_func_ptr_addr): Rename from
8245 ppc64_linux_convert_from_func_ptr_addr to
8246 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
8247 here.
8248 * rs6000-tdep.c:
8249 (read_insn): Move from ppc-linux-tdep.c to here.
8250 (insns_match_pattern, insn_d_field, insn_ds_field): Move
8251 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
8252 * ppc-linux-tdep.c: Include ppc64-tdep.h.
8253 Removed above functions.
8254 (ppc_linux_init_abi): Adjust.
8255
8256 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
8257
8258 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
8259
8260 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
8261
8262 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
8263
8264 2013-02-01 Pedro Alves <palves@redhat.com>
8265
8266 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
8267 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
8268
8269 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8270
8271 * elfread.c (elf_symfile_read): Limit separate debug info additions to
8272 files with no separate debug info.
8273 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
8274 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
8275 only for files with no separate debug info.
8276
8277 2013-01-31 Tom Tromey <tromey@redhat.com>
8278
8279 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
8280 change type.
8281 (struct jit_program_space_data): Rename from jit_inferior_data.
8282 Update comments.
8283 (get_jit_program_space_data): Rename from get_jit_inferior_data.
8284 Change return type. Attach data to program space.
8285 (jit_program_space_data_cleanup): Rename from
8286 jit_inferior_data_cleanup; change argument type.
8287 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
8288 change type.
8289 (jit_register_code): Update.
8290 (jit_update_inferior_cache): Remove.
8291 (jit_breakpoint_deleted): Get jit data from the location's program
8292 space.
8293 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
8294 'ps_data', change type.
8295 (jit_inferior_init, jit_breakpoint_re_set_internal)
8296 (jit_event_handler): Update.
8297 (free_objfile_data): Get data from objfile's program space.
8298 (_initialize_jit): Update.
8299
8300 2013-01-31 Tom Tromey <tromey@redhat.com>
8301
8302 PR gdb/13987:
8303 * jit.c (struct jit_inferior_data) <cached_code_address,
8304 jit_breakpoint>: New fields.
8305 (jit_breakpoint_re_set_internal): Fix logging. Only create
8306 breakpoint if cached address has changed.
8307 (jit_update_inferior_cache, jit_breakpoint_deleted): New
8308 functions.
8309 (_initialize_jit): Register breakpoint deleted observer.
8310
8311 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8312
8313 * infrun.c (handle_syscall_event): Remove unused gdbarch.
8314 (save_infcall_suspend_state): Ifdef out unused inf.
8315 (restore_infcall_suspend_state): Ifdef out unused inf.
8316 * jit.c (jit_register_code): Remove unused i, b, inf_data.
8317 (jit_frame_sniffer): Remove unused inf_data.
8318
8319 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8320
8321 * c-exp.y (classify_inner_name): Remove unused type.
8322 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
8323 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
8324 need_escape.
8325 (c_get_string): Remove unused kind.
8326 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
8327
8328 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8329
8330 * charset.c (intermediate_encoding): Remove unused i.
8331 * completer.c (signal_completer): Remove unused i.
8332 * continuations.c (discard_my_continuations_1): Remove unused
8333 continuation_ptr.
8334 * corelow.c (core_close): Remove unuseD name.
8335 (get_core_siginfo): Remove unused pid.
8336 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
8337 i, cps.
8338 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
8339 (loclist_describe_location): Remove unused first.
8340 * event-top.c (command_line_handler): Remove unused got_eof.
8341 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
8342 (resize_section_table): Remove unused old_value.
8343 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
8344 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
8345 * i386-tdep.c (i386_process_record): Remove unused rex.
8346 * infcmd.c (get_return_value): Remove unused uiout.
8347 * jv-lang.c (type_from_class): Remove unused is_array.
8348 * jv-valprint.c (java_val_print): Remove unused i.
8349 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
8350 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
8351 * m2-typeprint.c (m2_print_type): Remove unused code.
8352 * macroexp.c (get_character_constant): Remove unused body_start.
8353 (macro_stringify): Remove unused result.
8354 * objc-lang.c (find_methods): Remove unused gdbarch.
8355 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
8356 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
8357 * stack.c (print_frame_args): Remove unused summary.
8358 * thread.c (thread_apply_command): Remove unused p.
8359 * valarith.c (value_x_unop): Remove unused mangle_ptr.
8360 * valops.c (search_struct_method): Remove unused skip.
8361 * valprint.c (generic_val_print): Remove unused byte_order.
8362 * varobj.c (varobj_update): Remove unused changed.
8363 * cli/cli-cmds.c (complete_command): Remove unused next_item.
8364 (alias_command): Remove unused c.
8365 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
8366 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
8367 format.
8368 (mi_cmd_data_write_memory): Remove unused word_format.
8369 (mi_cmd_data_write_memory_bytes): Remove unused r.
8370 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
8371 p_start, p_end.
8372 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
8373 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
8374 line_width.
8375
8376 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8377
8378 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
8379 * symtab.c (iterate_over_symtabs): Remove unused s.
8380 (find_pc_sect_symtab): Remove unused pspAce.
8381 (find_pc_sect_line): Remove unused alt_symtab.
8382 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
8383 (completion_list_add_name): Remove unused newsize.
8384
8385 2013-01-31 Tom Tromey <tromey@redhat.com>
8386
8387 PR c++/14998:
8388 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
8389 TYPE_CODE_FUNC.
8390
8391 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8392
8393 * target.c (target_read_string): Remove unused origlen.
8394
8395 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8396
8397 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
8398 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
8399 * ax-general.c (ax_print): Remove unused is_float.
8400 * blockframe.c (block_innermost_frame): Remove unused start, end.
8401 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
8402
8403 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8404
8405 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
8406 (svr4_read_so_list): Remove unused lmo.
8407 * solib-target.c (solib_target_relocate_section_addresses): Remove
8408 unused flags.
8409
8410 2013-01-30 Tom Tromey <tromey@redhat.com>
8411
8412 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
8413
8414 2013-01-30 Tom Tromey <tromey@redhat.com>
8415
8416 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
8417 * utils.c (gnu_debuglink_crc32): Remove.
8418 * utils.h (gnu_debuglink_crc32): Don't declare.
8419
8420 2013-01-30 Tom Tromey <tromey@redhat.com>
8421
8422 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
8423 (read_structure_type, read_enumeration_type): Remove cast.
8424
8425 2013-01-30 Tom Tromey <tromey@redhat.com>
8426
8427 * dwarf2read.c (read_namespace_type): Remove cast.
8428 (read_typedef): Likewise.
8429
8430 2013-01-29 Tom Tromey <tromey@redhat.com>
8431
8432 * dwarf2read.c (free_dwo_file): Remove assert.
8433
8434 2013-01-29 Tom Tromey <tromey@redhat.com>
8435
8436 * value.c (deprecated_set_value_modifiable): Remove.
8437 * value.h (deprecated_set_value_modifiable): Remove.
8438
8439 2013-01-28 Doug Evans <dje@google.com>
8440
8441 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
8442 to addresses from dwo files.
8443
8444 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
8445
8446 * valops.c (find_overload_match): Remove unused argument 'lax'.
8447 * value.h: Remove unused argument 'lax' from the declaration of
8448 find_overload_match.
8449 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
8450 to find_overload_match.
8451 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
8452 argument to find_overload_match.
8453
8454 2013-01-25 Tom Tromey <tromey@redhat.com>
8455
8456 * dwarf2read.c (processing_has_namespace_info): Remove.
8457 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
8458 (process_die, read_func_scope, dwarf2_start_symtab)
8459 (new_symbol_full): Update.
8460
8461 2013-01-25 Tom Tromey <tromey@redhat.com>
8462
8463 * cp-namespace.c (cp_set_block_scope): Remove.
8464 * cp-support.h (cp_set_block_scope): Remove.
8465 * dbxread.c: Include block.h.
8466 (cp_set_block_scope): New function.
8467 (process_one_symbol): Update.
8468 * dwarf2read.c (read_func_scope): Use block_set_scope.
8469
8470 2013-01-25 Pedro Alves <palves@redhat.com>
8471
8472 * remote.c (add_current_inferior_and_thread): Tweak comment.
8473
8474 2013-01-25 Tom Tromey <tromey@redhat.com>
8475
8476 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
8477 (cp_add_using_directive): Add 'copy_names' argument.
8478 * cp-support.h (cp_add_using_directive): Update.
8479 (struct using_direct) <import_src, import_dest, alias,
8480 declaration>: Now const.
8481 * dwarf2read.c (read_import_statement): Use obconcat.
8482 Don't copy names passed to cp_add_using_directive.
8483
8484 2013-01-25 Tom Tromey <tromey@redhat.com>
8485
8486 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
8487
8488 2013-01-25 Pedro Alves <palves@redhat.com>
8489
8490 * remote.c (stop_reply_extract_thread): New.
8491 (add_current_inferior_and_thread): New parameter 'wait_status'.
8492 Handle it.
8493 (remote_start_remote): Pass wait status to
8494 add_current_inferior_and_thread.
8495 (extended_remote_run): Update comment.
8496 (extended_remote_create_inferior_1): Pass wait status to
8497 add_current_inferior_and_thread.
8498
8499 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
8500 Ulrich Weigand <uweigand@de.ibm.com>
8501
8502 * valarith.c (value_vector_widen): New function for replicating a
8503 scalar into a vector.
8504 (value_binop): Use value_vector_widen to widen scalar to vector
8505 rather than casting, this better matches gcc C behaviour.
8506 * valops.c (value_casst): Update logic for casting between vector
8507 types, and for casting from scalar to vector, try to match gcc C
8508 behaviour.
8509 * value.h (value_vector_widen): Declare.
8510 * opencl-lang.c (opencl_value_cast): New opencl specific casting
8511 function, handle special case for casting scalar to vector.
8512 (opencl_relop): Use opencl_value_cast.
8513 (evaluate_subexp_opencl): Use opencl_value_cast instead of
8514 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
8515 in order to use opencl_value_cast.
8516
8517 2013-01-25 Yao Qi <yao@codesourcery.com>
8518
8519 * event-loop.c: Include "queue.h".
8520 (gdb_event_p): New typedef.
8521 (DECLARE_QUEUE_P): Use.
8522 (DEFINE_QUEUE_P): Use.
8523 (async_queue_event): Remove.
8524 (gdb_event_xfree): New.
8525 (initialize_event_loop): New.
8526 (process_event): Use QUEUE macros.
8527 (event_queue): Remove.
8528 (gdb_wait_for_event): Caller update.
8529 (check_async_event_handlers): Likewise.
8530 (poll_timers): Likewise.
8531 * event-loop.h (initialize_event_loop): Declare.
8532 * event-loop.c (gdb_event_xfree): New.
8533 * top.c (gdb_init): Call initialize_event_loop.
8534
8535 2013-01-25 Yao Qi <yao@codesourcery.com>
8536
8537 * event-loop.c (async_queue_event): Remove one parameter
8538 'position'. Remove code handling 'position' == TAIL.
8539 (gdb_wait_for_event): Caller update.
8540 (check_async_event_handlers): Caller update.
8541 (poll_timers): Caller update.
8542 * event-loop.h (enum queue_position): Remove.
8543
8544 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
8545
8546 * MAINTAINERS: Update my email.
8547
8548 2013-01-25 Yao Qi <yao@codesourcery.com>
8549
8550 * main.c (print_gdb_help): Remove "--epoch" from the help
8551 message.
8552
8553 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
8554
8555 * symtab.c (skip_prologue_using_sal): Consider a file
8556 change the same as an increased line number
8557
8558 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
8559
8560 * MAINTAINERS (Write After Approval): Add myself to the list.
8561
8562 2013-01-24 Tom Tromey <tromey@redhat.com>
8563
8564 * ada-lang.h (ada_decode_symbol): Make return type const.
8565 * ada-lang.c (ada_decode_symbol): Likewise.
8566
8567 2013-01-23 Doug Evans <dje@google.com>
8568
8569 * linespec.c (find_linespec_symbols): Make static.
8570
8571 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8572
8573 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
8574 type on float conversion for complex type.
8575
8576 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
8577
8578 Add a new class gdb.Architecture which exposes GDB's
8579 internal representation of architecture via GDB Python API.
8580 * Makefile.in: Add entries corresponding to the new file
8581 python/py-arch.c.
8582 * NEWS (Python Scripting): Add entries for the new class
8583 gdb.Architecture and the new method gdb.Frame.architecture.
8584 * python/py-arch.c: Implement gdb.Architecture class.
8585 * python/py-frame.c (frapy_arch): Implement the method
8586 gdb.Frame.architecture().
8587 (frame_object_methods): Add 'architecture' to the method table.
8588 * python/python-internal.h: Add declarations of new utility
8589 functions.
8590 * python/python.c (_initialize_python): Initialize
8591 gdb.Architecture class.
8592
8593 2013-01-23 Doug Evans <dje@google.com>
8594
8595 Work around binutils/15021.
8596 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
8597 type_unit_group out of union s. All uses updated.
8598 (read_index_from_section): Watch for index version 8.
8599 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
8600 an imported symtab.
8601 (write_psymtabs_to_index): Increment version number to 8.
8602
8603 2013-01-22 Pedro Alves <palves@redhat.com>
8604
8605 * annotate.c (breakpoint_changed): Skip if breakpoint is not
8606 user-visible.
8607
8608 2013-01-22 Pedro Alves <palves@redhat.com>
8609
8610 * annotate.c (annotate_breakpoints_changed): Rename to ...
8611 (annotate_breakpoints_invalid): ... this. Make static.
8612 (breakpoint_changed): Adjust.
8613 (_initialize_annotate): Always install the observers. Install a
8614 "breakpoint_created" observer.
8615 * annotate.h (annotate_breakpoints_changed): Delete declaration.
8616 * breakpoint.c (set_breakpoint_condition)
8617 (breakpoint_set_commands, do_map_commands_command)
8618 (init_raw_breakpoint, clear_command, set_ignore_count)
8619 (enable_breakpoint_disp): No longer call
8620 annotate_breakpoints_changed.
8621
8622 2013-01-22 Pedro Alves <palves@redhat.com>
8623
8624 * annotate.c: Include "inferior.h".
8625 (frames_invalid_emitted)
8626 (breakpoints_invalid_emitted): New globals.
8627 (async_background_execution_p): New function.
8628 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
8629 emitting the annotation if it has already been emitted.
8630 (annotate_display_prompt): New function.
8631 * annotate.h (annotate_display_prompt): New declaration.
8632 * event-top.c: Include annotate.h.
8633 (display_gdb_prompt): Call annotate_display_prompt.
8634
8635 2013-01-22 Pedro Alves <palves@redhat.com>
8636
8637 * annotate.c (ignore_count_changed): Delete.
8638 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
8639 (annotate_ignore_count_change): Delete.
8640 (annotate_stopped): Don't emit a delayed breakpoints-changed
8641 annotation.
8642 * annotate.h (annotate_ignore_count_change): Delete.
8643 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
8644 annotate_ignore_count_change.
8645
8646 2013-01-22 Tom Tromey <tromey@redhat.com>
8647
8648 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
8649 require_rvalue for a register location.
8650
8651 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
8652
8653 * breakpoint.c (print_one_breakpoint_location): Add MI
8654 field 'thread-groups' when printing a breakpoint.
8655 (output_thread_groups): New function.
8656
8657 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
8658
8659 * python/lib/gdb/commands/explore.py
8660 (CompoundExplorer.explore_expr): Correct the name of a method
8661 being invoked.
8662 (ExploreTypeCommand.invoke): Add a missing 'return'.
8663
8664 2013-01-21 Tom Tromey <tromey@redhat.com>
8665
8666 * gdb_obstack.h (obconcat): Move declaration here, from...
8667 * symfile.h (obconcat): ... here.
8668 * gdb_obstack.c: New file.
8669 (obconcat): Move from...
8670 * symfile.c (obconcat): ... here.
8671 * Makefile.in (SFILES): Add gdb_obstack.c.
8672 (COMMON_OBS): Add gdb_obstack.o.
8673
8674 2013-01-21 Tom Tromey <tromey@redhat.com>
8675
8676 * symfile.h (obsavestring): Don't declare.
8677 * symfile.c (obsavestring): Remove.
8678 * ada-exp.y: Use obstack_copy0, not obsavestring.
8679 * ada-lang.c: Use obstack_copy0, not obsavestring.
8680 * coffread.c: Use obstack_copy0, not obsavestring.
8681 * cp-namespace.c: Use obstack_copy0, not obsavestring.
8682 * dbxread.c: Use obstack_copy0, not obsavestring.
8683 * dwarf2read.c: Use obstack_copy0, not obsavestring.
8684 * jit.c: Use obstack_copy0, not obsavestring.
8685 * mdebugread.c: Use obstack_copy0, not obsavestring.
8686 * psymtab.c: Use obstack_copy0, not obsavestring.
8687 * stabsread.c: Use obstack_copy0, not obsavestring.
8688 * xcoffread.c: Use obstack_copy0, not obsavestring.
8689
8690 2013-01-21 Tom Tromey <tromey@redhat.com>
8691
8692 * dwarf2read.c (fixup_go_packaging): Save package name
8693 on objfile obstack.
8694 * gdbtypes.c (init_type): Don't copy name.
8695
8696 2013-01-21 Tom Tromey <tromey@redhat.com>
8697
8698 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
8699 const.
8700 (struct attribute) <u.str>: Now const.
8701 (struct fnfieldlist) <name>: Now const.
8702 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
8703 (partial_die_parent_scope): Make return type const.
8704 (partial_die_full_name, add_partial_symbol): Update.
8705 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
8706 'name' const.
8707 (find_file_and_directory): Make 'name' and 'comp_dir' const.
8708 (read_file_scope, read_func_scope, dwarf2_add_field)
8709 (dwarf2_add_member_fn, read_structure_type)
8710 (process_enumeration_scope, read_array_type, read_module_type)
8711 (read_base_type, read_subrange_type): Update.
8712 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
8713 (new_symbol_full, guess_full_die_structure_name): Update.
8714 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
8715 (dwarf2_name): Return const type.
8716 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
8717 const.
8718
8719 2013-01-21 Tom Tromey <tromey@redhat.com>
8720
8721 * gdbtypes.c (init_type): Make 'name' const.
8722 * gdbtypes.h (init_type): Update.
8723
8724 2013-01-21 Tom Tromey <tromey@redhat.com>
8725
8726 * buildsym.c (patch_subfile_names): Use set_last_source_file.
8727 (start_symtab): Make 'name' and 'dirname' const. Use
8728 set_last_source_file.
8729 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
8730 (last_source_file): Define. Now static.
8731 (set_last_source_file, get_last_source_file): New functions.
8732 * buildsym.h (last_source_file): Don't declare.
8733 (start_symtab): Update.
8734 (set_last_source_file, get_last_source_file): Declare.
8735 * coffread.c (complete_symtab): Use set_last_source_file.
8736 (coff_end_symtab): Likewise.
8737 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
8738 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
8739 set_last_source_file.
8740 (process_one_symbol): Use get_last_source_file.
8741 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
8742 (psymtab_to_symtab_1): Use get_last_source_file.
8743 * xcoffread.c (process_linenos): Use get_last_source_file.
8744 (complete_symtab): Use set_last_source_file.
8745 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
8746 (scan_xcoff_symtab): Use set_last_source_file.
8747
8748 2013-01-21 Tom Tromey <tromey@redhat.com>
8749
8750 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
8751 (symbol_set_names): Remove casts. Handle field const-ness.
8752
8753 2013-01-21 Tom Tromey <tromey@redhat.com>
8754
8755 * dwarf2read.c (new_symbol_full): Remove cast.
8756 * symtab.c (symbol_set_demangled_name): Make 'name' const.
8757 * symtab.h (symbol_set_demangled_name): Update.
8758
8759 2013-01-21 Tom Tromey <tromey@redhat.com>
8760
8761 * main.c (captured_main): Call bfd_init.
8762
8763 2013-01-21 Tom Tromey <tromey@redhat.com>
8764
8765 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
8766 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
8767 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
8768 * NEWS: Update.
8769
8770 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8771
8772 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
8773
8774 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8775
8776 Fix gdb.fortran/common-block.exp crash in PIE mode.
8777 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
8778 LOC_COMMON_BLOCK.
8779 * f-valprint.c (info_common_command_for_block): Expect
8780 LOC_COMMON_BLOCK in gdb_assert.
8781 * symtab.h (struct general_symbol_info): Update comment for the
8782 common_block member.
8783 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
8784 (enum address_class): New member LOC_COMMON_BLOCK.
8785
8786 2013-01-18 David Blaikie <dblaikie@gmail.com>
8787
8788 * MAINTAINERS (Write After Approval): Add "David Blaikie".
8789
8790 2013-01-18 Tom Tromey <tromey@redhat.com>
8791
8792 PR c++/14999:
8793 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
8794 Call require_rvalue.
8795
8796 2013-01-18 Yao Qi <yao@codesourcery.com>
8797
8798 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
8799 (dbx_read_symtab): New declaration.
8800 (dbx_psymtab_to_symtab): Delete.
8801 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
8802 Rename parameter PST to SELF. Exchanged two parameters.
8803 (start_psymtab): Caller update.
8804 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
8805 (dwarf2_read_symtab): New declaration.
8806 (dwarf2_psymtab_to_symtab): Delete.
8807 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
8808 Rename parameter PST to SELF. Exchanged two parameters.
8809 (create_partial_symtab): Caller update.
8810 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
8811 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
8812 Rename parameter PST to SELF. Exchanged two parameters.
8813 (parse_partial_symbols, new_psymtab): Caller update.
8814 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
8815 two parameters.
8816 * psymtab.c (psymtab_to_symtab): Caller update.
8817 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
8818 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
8819 Rename parameter PST to SELF. Exchanged two parameters.
8820 (xcoff_start_psymtab): Caller update.
8821
8822 2013-01-18 Yao Qi <yao@codesourcery.com>
8823
8824 * infrun.c (proceed): Rename local variable 'oneproc' to
8825 'force_step'.
8826
8827 2013-01-17 Doug Evans <dje@google.com>
8828
8829 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
8830 (dw2_build_type_unit_groups): Delete. All uses updated.
8831
8832 * symtab.h (struct symbol_search): Add comment.
8833
8834 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8835
8836 * symtab.c (compare_filenames_for_search): New comment for
8837 HAS_DRIVE_SPEC.
8838
8839 2013-01-17 Tom Tromey <tromey@redhat.com>
8840
8841 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
8842
8843 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8844
8845 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
8846 initialize it by existing make_cleanup. Call new do_cleanups.
8847
8848 2013-01-17 Tom Tromey <tromey@redhat.com>
8849
8850 * cp-abi.c (cp_abi_completer): New function.
8851 (_initialize_cp_abi): Set completer for "set cp-abi".
8852
8853 2013-01-17 Tom Tromey <tromey@redhat.com>
8854
8855 * mem-break.c: Remove obsolete comment.
8856 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
8857
8858 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
8859
8860 * jit.c (jit_reader_load_command): Interpret the jit reader name
8861 as an absolute path if it begins with a forward slash.
8862
8863 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
8864
8865 PR gdb/14550
8866
8867 * jit.c (finalize_symtab): Ensure that only the global block has a
8868 NULL superblock.
8869
8870 2013-01-17 Pedro Alves <palves@redhat.com>
8871
8872 * acinclude.m4: Include ../config/plugins.m4,
8873 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
8874 * Makefile.in (aclocal_m4_deps): Update.
8875 * aclocal.m4: Renegerate.
8876
8877 2013-01-16 Doug Evans <dje@google.com>
8878
8879 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
8880
8881 2013-01-16 Pedro Alves <palves@redhat.com>
8882 Tom Tromey <tromey@redhat.com>
8883
8884 PR cli/7221:
8885 * NEWS: Add "catch signal".
8886 * breakpoint.c (base_breakpoint_ops): No longer static.
8887 (bpstat_explains_signal): New function.
8888 (init_catchpoint): No longer static.
8889 (base_breakpoint_explains_signal): New function.
8890 (base_breakpoint_ops): Initialize new field.
8891 * breakpoint.h (enum bpstat_signal_value): New.
8892 (struct breakpoint_ops) <explains_signal>: New field.
8893 (bpstat_explains_signal): Remove macro, declare as function.
8894 (base_breakpoint_ops, init_catchpoint): Declare.
8895 * break-catch-sig.c: New file.
8896 * inferior.h (signal_catch_update): Declare.
8897 * infrun.c (signal_catch): New global.
8898 (handle_syscall_event): Update for change to
8899 bpstat_explains_signal.
8900 (handle_inferior_event): Likewise. Always handle random signals
8901 via bpstats.
8902 (signal_cache_update): Check signal_catch.
8903 (signal_catch_update): New function.
8904 (_initialize_infrun): Initialize signal_catch.
8905 * Makefile.in (SFILES): Add break-catch-sig.c.
8906 (COMMON_OBS): Add break-catch-sig.o.
8907
8908 2013-01-16 Tom Tromey <tromey@redhat.com>
8909
8910 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
8911 (print_one_catch_solib, print_one_catch_syscall)
8912 (print_one_catch_exec, print_one_exception_catchpoint): Emit
8913 "catch-type".
8914
8915 2013-01-16 Yao Qi <yao@codesourcery.com>
8916
8917 * printcmd.c (current_display_number): Make it static.
8918
8919 2013-01-16 Yao Qi <yao@codesourcery.com>
8920
8921 * infcmd.c (step_once): Don't check '!single_inst' as it was
8922 checked before.
8923
8924 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8925
8926 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
8927
8928 2013-01-14 Tom Tromey <tromey@redhat.com>
8929
8930 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
8931 set command.
8932 * command.h (add_setshow_string_noescape_cmd): Update.
8933 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
8934 (complete_set_gnutarget): New function.
8935 (_initialize_core): Set the "set gnutarget" completer.
8936
8937 2013-01-14 Tom Tromey <tromey@redhat.com>
8938
8939 PR symtab/14442:
8940 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
8941 (c_type_print_modifier): Likewise.
8942 * dwarf2read.c (read_tag_restrict_type): New function.
8943 (read_type_die_1): Handle DW_TAG_restrict_type.
8944 * gdbtypes.c (make_restrict_type): New function.
8945 (recursive_dump_type): Handle TYPE_RESTRICT.
8946 * gdbtypes.h (enum type_flag_values): Renumber.
8947 (enum type_instance_flag_value): Add
8948 TYPE_INSTANCE_FLAG_RESTRICT.
8949 (TYPE_RESTRICT): New macro.
8950 (make_restrict_type): Declare.
8951
8952 2013-01-14 Tom Tromey <tromey@redhat.com>
8953
8954 PR symtab/14931:
8955 * psymtab.c (struct psymtab_state): New.
8956 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
8957 functions.
8958 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
8959 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
8960
8961 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
8962 Pedro Alves <palves@redhat.com>
8963
8964 PR remote/14786
8965
8966 * remote.c (remote_threads_info): Make a copy of the reply from
8967 qfThreadInfo and use that instead of rs->buf.
8968
8969 2013-01-14 Yao Qi <yao@codesourcery.com>
8970
8971 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
8972 (dbx_psymtab_to_symtab): Likewise.
8973 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
8974 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
8975 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
8976
8977 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8978
8979 * parse.c (parse_exp_in_context): New variable inner_chain. Call
8980 make_cleanup_restore_current_language. Call set_language. Move
8981 OLD_CHAIN and INNER_CHAIN cleanups.
8982 * utils.c (do_restore_current_language)
8983 (make_cleanup_restore_current_language): New functions.
8984 * utils.h (make_cleanup_restore_current_language): New declaration.
8985
8986 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8987
8988 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
8989 non-existing files.
8990
8991 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
8992 non-existing files if FILENAME is already absolute.
8993
8994 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8995
8996 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
8997 fputs_filtered. Append trailing newline.
8998
8999 2013-01-11 Yao Qi <yao@codesourcery.com>
9000 Stan Shebs <stan@codesourcery.com>
9001
9002 * psymtab.c (init_psymbol_list): Clarify the comment.
9003
9004 2013-01-11 Yao Qi <yao@codesourcery.com>
9005
9006 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
9007 (update_dprintf_command_list): Assert that 'printf_line' is
9008 non-null. Remove condition check.
9009
9010 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9011
9012 Code cleanup.
9013 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
9014 type const char *.
9015 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
9016 const char *.
9017 * tui/tui-source.h (tui_source_is_displayed): Likewise.
9018
9019 2013-01-09 Anthony Green <green@moxielogic.com>
9020
9021 * cp-abi.c (cplus_print_vtable): Don't return value from void
9022 function.
9023 * ada-lang.c (re_set_catch_assert): Ditto.
9024
9025 2013-01-09 Doug Evans <dje@google.com>
9026
9027 * symfile.h (quick_symbol_functions): Delete member
9028 pre_expand_symtabs_matching. All uses removed.
9029 * dwarf2read.c (dw2_lookup_symbol): Implement.
9030 (dw2_do_expand_symtabs_matching): Delete.
9031 (dw2_pre_expand_symtabs_matching): Delete.
9032 (struct dw2_symtab_iterator): New type.
9033 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
9034 (dw2_expand_symtabs_for_function): Rewrite.
9035 (dwarf2_gdb_index_functions): Update.
9036 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
9037 (psym_functions): Update.
9038
9039 2013-01-09 Tom Tromey <tromey@redhat.com>
9040
9041 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
9042 * configure: Rebuild.
9043 * configure.ac: Add somread.o to the build if BFD has SOM
9044 support.
9045 * somread.c: Include som/aout.h, not syms.h.
9046 (som_symtab_read): Use som_external_symbol_dictionary_record.
9047 Unpack records manually.
9048 (_initialize_somread): Declare.
9049
9050 2012-01-08 Mike Frysinger <vapier@gentoo.org>
9051
9052 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
9053 Cast return_address to 64bits.
9054
9055 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
9056
9057 * printcmd.c: Remove define of function output_command.
9058 * tracepoint.c: Remove extern of function output_command.
9059 * valprint.h: (output_command): New extern.
9060
9061 2013-01-07 Tom Tromey <tromey@redhat.com>
9062
9063 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
9064 Remove.
9065 (objc_language_defn): Use c_printchar, c_printstr,
9066 c_emit_char.
9067
9068 2013-01-07 Tom Tromey <tromey@redhat.com>
9069
9070 PR cli/7719:
9071 * NEWS: Update.
9072 * ada-valprint.c (printstr, print_field_values): Remove
9073 "inspect_it" code.
9074 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
9075 code.
9076 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
9077 code.
9078 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
9079 * main.c (captured_main): Remove "epoch" argument.
9080 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
9081 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
9082 * p-valprint.c (pascal_object_print_value_fields): Remove
9083 "inspect_it" code.
9084 * printcmd.c (print_command_1): Remove 'inspect' argument.
9085 (print_command, call_command): Update.
9086 (inspect_command): Remove.
9087 (_initialize_printcmd): Make "inspect" an alias for "print".
9088 * top.c (epoch_interface): Remove.
9089 * top.h (epoch_interface): Remove.
9090 * valprint.c (user_print_options): Update.
9091 (print_converted_chars_to_obstack): Remove "inspect_it" code.
9092 * valprint.h (struct value_print_options) <inspect_it>: Remove
9093 field.
9094
9095 2013-01-04 Tom Tromey <tromey@redhat.com>
9096
9097 * valprint.h (read_string): Add 'extern'.
9098
9099 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9100
9101 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
9102 used to decide whether to define darwin_read_dyld_info or not.
9103
9104 2013-01-03 Pierre Muller <muller@sourceware.org>
9105
9106 * main.c (relocate_gdb_directory): Avoid calling stat function
9107 if DIR is empty.
9108
9109 2013-01-03 Yao Qi <yao@codesourcery.com>
9110
9111 * psymtab.c (fixup_psymbol_section): Update declaration.
9112 (fixup_psymbol_section): Remove code returning value.
9113
9114 2013-01-03 Yao Qi <yao@codesourcery.com>
9115
9116 * symtab.h: Remove some out of date comments.
9117 (enum exception_event_kind): Move it ...
9118 * breakpoint.c: ... here.
9119
9120 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
9121
9122 PR gdb/14405
9123 * darwin-nat.c (darwin_read_dyld_info): Only build if
9124 TASK_DYLD_INFO_COUNT is defined.
9125 (darwin_xfer_partial): Call darwin_read_dyld_info only if
9126 TASK_DYLD_INFO_COUNT is defined.
9127
9128 2013-01-02 Tom Tromey <tromey@redhat.com>
9129
9130 * symfile.h (struct ecoff_debug_hack): Remove.
9131 * objfiles.c: Don't include mdebugread.h.
9132
9133 2013-01-02 Tom Tromey <tromey@redhat.com>
9134
9135 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
9136 * configure.ac: Check for Mach-O support in BFD. Update
9137 CONFIG_OBS.
9138 * configure: Rebuild.
9139
9140 2013-01-02 Tom Tromey <tromey@redhat.com>
9141
9142 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
9143 * configure.ac: Use GDB_AC_CHECK_BFD.
9144 * configure: Rebuild.
9145
9146 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
9147
9148 * MAINTAINERS: Update my email.
9149
9150 2013-01-01 Joel Brobecker <brobecker@adacore.com>
9151
9152 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
9153
9154 2013-01-01 Joel Brobecker <brobecker@adacore.com>
9155
9156 * rs6000-nat.c (bss_data_overlap): New function.
9157 (vmap_symtab): Use it to adjust the .bss section's offset.
9158
9159 2013-01-01 Joel Brobecker <brobecker@adacore.com>
9160
9161 Update year range in copyright notice of all files.
9162
9163 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
9164
9165 * top.c (print_gdb_version): Update copyright year.
9166
9167 For older changes see ChangeLog-2012.
9168 \f
9169 Local Variables:
9170 mode: change-log
9171 left-margin: 8
9172 fill-column: 74
9173 version-control: never
9174 coding: utf-8
9175 End:
This page took 0.336896 seconds and 4 git commands to generate.