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