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