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