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