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