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