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