Fix FIXME: xstrdup should not be here
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-10-04 Yao Qi <yao@codesourcery.com>
2
3 * varobj.c (create_child_with_value): Remove 'const' from the
4 type of parameter 'name'.
5 (varobj_add_child): Likewise.
6 (install_dynamic_child): Remove 'const' from the type of
7 parameter 'name'.
8 (varobj_add_child): Likewise.
9 (create_child_with_value): Likewise. Update comments. Don't
10 duplicate 'name'.
11 (update_dynamic_varobj_children): Duplicate 'name'
12 and pass it to install_dynamic_child.
13
14 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
15
16 * python/py-value.c (convert_value_from_python): Move PyInt_Check
17 conversion logic to occur after PyLong_Check. Comment on order
18 change significance.
19 * python/py-arch.c (archpy_disassemble): Comment on order of
20 conversion for integers and longs.
21
22 2013-10-03 Pedro Alves <palves@redhat.com>
23
24 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
25 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
26 functions. Always test for PTRACE_O_TRACESYSGOOD even if
27 PTRACE_O_TRACEFORK is not supported.
28 (linux_test_for_tracesysgood): New function.
29 (linux_test_for_tracefork): New function, factored out from
30 linux_check_ptrace_features, and also don't kill child_pid here.
31
32 2013-10-03 Tristan Gingold <gingold@adacore.com>
33
34 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
35 Remove verbose error reporting. Use detected state to
36 thread_set_state call.
37 (i386_darwin_dr_get): Fix return type. Remove verbose error
38 report.
39 Remove trailing spaces.
40
41 2013-10-02 Pedro Alves <palves@redhat.com>
42
43 * cp-valprint.c (cp_print_value_fields): Adjust calls to
44 val_print_optimized_out.
45 * jv-valprint.c (java_print_value_fields): Likewise.
46 * p-valprint.c (pascal_object_print_value_fields): Likewise.
47 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
48 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
49 new optimized out value.
50 * findvar.c (address_from_register): Likewise.
51 * frame.c (put_frame_register): Tweak error string to say the
52 register was not saved, rather than optimized out.
53 * infcmd.c (default_print_one_register_info): Adjust call to
54 val_print_optimized_out. Use value_of_register instead of
55 get_frame_register_value.
56 * mi/mi-main.c (output_register): Use value_of_register instead of
57 get_frame_register_value.
58 * valprint.c (valprint_check_validity): Likewise.
59 (val_print_optimized_out): New value parameter. If the value is
60 lval_register, print <not saved> instead.
61 (value_check_printable, val_print_scalar_formatted): Adjust calls
62 to val_print_optimized_out.
63 * valprint.h (val_print_optimized_out): New value parameter.
64 * value.c (struct value) <optimized_out>: Extend comment.
65 (error_value_optimized_out): New function.
66 (require_not_optimized_out): Use it. Use a different string for
67 lval_register values.
68 * value.h (error_value_optimized_out): New declaration.
69 * NEWS: Mention <not saved>.
70
71 2013-10-02 Joel Brobecker <brobecker@adacore.com>
72
73 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
74 strcmp to compare two symtab filenames.
75
76 2013-10-02 Joel Brobecker <brobecker@adacore.com>
77
78 * symtab.c (search_symbols_equal): Delete.
79 (sort_search_symbols_remove_dups): Replace call to
80 search_symbols_equal by call to compare_search_syms,
81 adjusting as necessary.
82
83 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
84
85 PR python/15579
86
87 * python/python.c: Document gdb.execute command in Python help.
88
89 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
90
91 * python/py-frame.c (frame_info_to_frame_object): Use
92 gdbpy_convert_exception. Clean up Python object on failure.
93
94 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
95
96 * python/lib/gdb/command/frame_filters.py
97 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
98 (ShowFrameFilterPriority.invoke): Ditto.
99
100 2013-10-01 Keith Seitz <keiths@redhat.com>
101
102 * linespec.c (struct ls_parser): Make 'saved_arg' const.
103 (parse_linespec): Make 'argptr' const.
104 Remove temporary cast of 'argptr' to const char **.
105 (decode_line_full): Pass const pointer to parse_linespec.
106 (decode_line_1): Likewise.
107 (decode_objc): Make local variable 'new_argptr' const.
108 (find_function_symbols): Remove temporary cast to char *
109 to find_imps.
110 * objc-lang.c (find_imps): Make argument 'method' const.
111 Return const.
112 * objc-lang.h (find_imps): Likewise.
113
114 2013-10-01 Keith Seitz <keiths@redhat.com>
115
116 * completer.c (skip_quoted_chars): Make all arguments const.
117 Return const.
118 (skip_quoted): Likewise.
119 * completer.h (skip_quoted_chars): Likewise.
120 (skip_quoted): Likewise.
121 * defs.h (skip_quoted): Remove duplicate declaration.
122 * jv-exp.y: Include completer.h.
123 (yylex): Remove unneccessary cast to char * fro skip_quoted.
124 * p-exp.y: Include completer.h.
125
126 2013-10-01 Keith Seitz <keiths@redhat.com>
127
128 * c-exp.y (parse_number): Make first argument const.
129 Make a copy of the input to manipulate.
130 (c_parse_escape): Make first argument const.
131 Make local variable 'tokptr' const.
132 (parse_string_or_char): Make first two arguments const.
133 (macro_original_text): Make const.
134 (lex_one_token): Make local variable 'tokstart' const.
135 Likewise for local variables named 'p'.
136 Cast away const for struct stoken (temporary).
137 * c-lang.h (c_parse_escpae): Make first argument const.
138 * cli/cli-cmds.c (echo_command): Make local variable 'p'
139 const.
140 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
141 var_string case.
142 * f-exp.y (parse_number): Make first argument const.
143 (match_string_literal): Make local variable 'tokstart'
144 const.
145 (yylex): Make local variable 'p' const.
146 Cast away const for struct stoken (temporary).
147 * go-exp.y (parse_number): Make first argument const.
148 (parse_string_or_char): Likewise.
149 Make local variable 'tokstart' const.
150 (lex_one_token): Likewise for numerous locals called 'p'.
151 Cast away const for struct stoken (temporary).
152 * jv-exp.y (parse_number): Make first argument const.
153 Make local variables 'tokstart' and 'tokptr' const.
154 Cast away const for call to skip_quoted (temporary).
155 (yylex): Make local variable 'p' const.
156 Cast away const for struct stoken (temporary).
157 * m2-exp.y (parse_number): Make local variable 'p' const.
158 (yylex): Likewise for 'tokstart'.
159 Cast away const for struct stoken (temporary).
160 Make local variable 'p' const.
161 * macroexp.c (get_character_constant): Pass a const string
162 to c_parse_escape.
163 (get_string_literal): Likewise.
164 (macro_expand_next): Make first argument const.
165 Cast away const for init_shared_buffer.
166 * macroexp.h (macro_expand_next): Make first argument const.
167 * p-exp.y (yylex): Make a local copy of 'lexptr'.
168 Pass a const string to c_parse_escape.
169 Make local variables 'p' and 'namestart' const.
170 * parse.c (lexptr): Make const.
171 (prev_lexptr): Likewise.
172 (find_template_name_end): Return const.
173 Make argument const, too.
174 (parse_exp_in_context): Make first argument const.
175 Remove the entire const_hack.
176 (parse_exp_in_context_1): Make first argument const.
177 * parser-defs.h (find_template_name_end): Return const.
178 Make argument const, too.
179 (lexptr): Make const.
180 (prev_lexptr): Likewise.
181 * utils.c (parse_escape): Make second argument const.
182 * utils.h (parse_escape): Likewise.
183
184 2013-10-01 Keith Seitz <keiths@redhat.com>
185
186 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
187 is now const.
188 (block_lookup): Make 'raw_name' and 'name' const.
189 * ada-lex.l (processString): Update for struct stoken.ptr.
190 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
191 (operator_stoken): Likewise.
192 (lex_one_token): Remove temporary cast to char * for
193 'yylval.sval.ptr'.
194 * f-exp.y (yylex): Likewise.
195 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
196 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
197 * go-exp.y (lex_one_token): Remove temporary cast to char * for
198 'yylval.sval.ptr'.
199 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
200 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
201 * linespec.c (struct ls_parser): Make 'stream' const.
202 (find_parameter_list_end): Make argument 'input' and local
203 variable 'p' const.
204 (linespec_lexer_lex_string): Make local variables 'start' and
205 'p' const.
206 Use skip_spaces_const instead of skip_spaces.
207 (linespec_lexer_peek_token): Make local variable 'saved_stream'
208 const.
209 (parse_linespec): Temporarily cast 'argptr' to const for
210 'parser->lexer.stream'.
211 * m2-exp.y (yylex): Remove temporary cast to char * for
212 'yylval.sval.ptr'.
213 * objc-lang.c (add_msglist): Make local variable 'p' const.
214 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
215 (exp : STRING): Make 'sp' const.
216 (parse_number): Make argument 'p' const.
217 * parser-defs.h (struct stoken): Make 'ptr' const.
218
219 2013-10-01 Doug Evans <dje@google.com>
220
221 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
222
223 2013-10-01 Yao Qi <yao@codesourcery.com>
224
225 * varobj.c (c_value_of_root): Remove declaration.
226 (cplus_value_of_root, java_value_of_root): Likewise.
227 (ada_value_of_root): Likewise.
228 (struct language_specific) <value_of_root>: Remove.
229 (languages): Update initialization.
230 (check_scope): Move earlier.
231 (c_value_of_root): Move earlier and rename to ...
232 (value_of_root_1): ... this.
233 (value_of_root): Caller update.
234 (cplus_value_of_root, java_value_of_root): Remove.
235 (ada_value_of_root): Remove.
236
237 2013-10-01 Yao Qi <yao@codesourcery.com>
238
239 * varobj.c (varobj_format_string): Remove "unknown".
240 (languages): Remove the first element.
241 * varobj.h (enum varobj_languages): Remove vlang_c.
242
243 2013-10-01 Yao Qi <yao@codesourcery.com>
244
245 * varobj.c (struct language_specific) <language>: Remove.
246 (languages): Update the initialization.
247
248 2013-10-01 Yao Qi <yao@codesourcery.com>
249
250 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
251 "solib-target.h". Include "windows-tdep.h".
252 (arm_wince_init_abi): Call windows_init_abi. Remove call to
253 set_solib_ops and set_gdbarch_has_dos_based_file_system.
254 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
255 windows-tdep.o to gdb_target_obs.
256
257 2013-10-01 Yao Qi <yao@codesourcery.com>
258
259 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
260 "solib-target.h".
261 (amd64_windows_init_abi): Don't call set_solib_ops and
262 set_gdbarch_iterate_over_objfiles_in_search_order. Call
263 windows_init_abi instead.
264 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
265 "solib-target.h".
266 (i386_cygwin_init_abi): Don't call set_solib_ops,
267 set_gdbarch_has_dos_based_file_system and
268 set_gdbarch_iterate_over_objfiles_in_search_order. Call
269 windows_init_abi instead.
270 * windows-tdep.c: Include "solib.h" and "solib-target.h".
271 (windows_init_abi): New function.
272 (windows_iterate_over_objfiles_in_search_order): Make it
273 static.
274 * windows-tdep.h (windows_init_abi): Declare.
275 (windows_iterate_over_objfiles_in_search_order): Remove
276 declaration.
277
278 2013-10-01 Jerome Guitton <guitton@adacore.com>
279
280 Checked in by Joel Brobecker <brobecker@adacore.com>
281 * system-gdbinit/elinos.py (get_elinos_environment): Return an
282 incomplete dictionnary instead of None in case of missing
283 environment variables.
284 (elinos_init): in case of an incomplete environment, best
285 effort to load system libraries instead of abort.
286
287 2013-10-01 Joel Brobecker <brobecker@adacore.com>
288
289 * ada-lang.c (ada_has_this_exception_support): Ignore
290 mst_solib_trampoline minimal symbols.
291
292 2013-09-30 Tristan Gingold <gingold@adacore.com>
293
294 * i386-darwin-nat.c (darwin_complete_target): Install methods for
295 hardware watchpoint.
296 (i386_darwin_dr_set): Support 32 and 64 bit states.
297 (i386_darwin_dr_get): Likewise.
298 (i386_darwin_dr_set_control): Make static.
299 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
300 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
301
302 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
303
304 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
305 Replace TIDGET with ptid_get_lwp.
306 Replace GET_LWP with ptid_get_lwp.
307 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
308 Replace BUILD_THREAD with ptid_build.
309 Replace BUILD_LWP with ptid_build.
310 Replace PIDGET with ptid_get_pid.
311 Replace TIDGET with ptid_get_lwp.
312 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
313 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
314 Replace TIDGET with ptid_get_lwp.
315 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
316 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
317 Replace TIDGET with ptid_get_lwp.
318 Replace GET_LWP with ptid_get_lwp.
319 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
320 * auxv.c: Likewise.
321 * breakpoint.c: Likewise.
322 * common/ptid.c (ptid_is_pid): Condense check for
323 null_ptid and minus_one_ptid.
324 (ptid_lwp_p): New function.
325 (ptid_tid_p): New function.
326 * common/ptid.h: Update comments for accessors.
327 (ptid_lwp_p): New prototype.
328 (ptid_tid_p): New prototype.
329 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
330 * gcore.c: Replace PIDGET with ptid_get_pid.
331 * gdbthread.h: Likewise.
332 * gnu-nat.c: Likewise.
333 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
334 Replace TIDGET with ptid_get_lwp.
335 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
336 * hppanbsd-nat.c: Likewise.
337 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
338 Replace TIDGET with ptid_get_lwp.
339 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
340 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
341 * infcmd.c: Likewise.
342 * inferior.h: Likewise.
343 * inflow.c: Likewise.
344 * infrun.c: Likewise.
345 * linux-fork.c: Likewise.
346 * linux-nat.c: Replace PIDGET with ptid_get_pid.
347 Replace GET_PID with ptid_get_pid.
348 Replace is_lwp with ptid_lwp_p.
349 Replace GET_LWP with ptid_get_lwp.
350 Replace BUILD_LWP with ptid_build.
351
352 2013-09-28 Mike Frysinger <vapier@gentoo.org>
353
354 * common/linux-btrace.c: Move sys/syscall.h out of the
355 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
356 Also check for SYS_perf_event_open before attempting to buid.
357
358 2013-09-27 Doug Evans <dje@google.com>
359
360 * dwarf2read.c (dwarf2_section_info): Add comment.
361 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
362 All uses updated.
363 (dwarf2_section_empty_p): Rename arg from "info" to "section".
364 (dwarf2_read_section): Delete unused local "header". Add section
365 name to error message.
366 (create_dwo_in_dwp): Tweak comment.
367 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
368
369 * dwarf2read.c (die_reader_specs): Tweak comment.
370 (get_section_bfd_owner, get_section_bfd_section): New functions.
371 (get_section_name, get_section_file_name): New functions.
372 (get_section_id, get_section_flags): New functions.
373 (*): Use new functions to access section fields.
374
375 * dwarf2read.c (struct dwo_file): Add/tweak comments.
376 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
377 arg "htab". All callers updated.
378 (create_debug_types_hash_table): Remove redundant copy of
379 abbrev_section.
380 (create_dwo_in_dwp): Tweak comments.
381 (read_str_index): Tweak comment. Record dwarf form name in static
382 local.
383
384 2013-09-27 Pedro Alves <palves@redhat.com>
385
386 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
387 (remote_filename_p): Add comment.
388 * remote.c (remote_filename_p): Adjust to use
389 REMOTE_SYSROOT_PREFIX.
390 * solib.c (solib_find): When deciding whether we need to add a
391 directory separator, check whether the sysroot is "remote:"
392 instead of checking whether the patch has a drive spec. Add
393 comments.
394
395 2013-09-27 Pedro Alves <palves@redhat.com>
396
397 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
398 Delete fields.
399 (remote_parse_stop_reply): Adjust, setting event->ws.kind
400 directly.
401
402 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
403
404 Fix set debug frame output.
405 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
406 SENTINEL_FRAME entry lower to match enum frame_type order.
407
408 2013-09-26 Pierre Muller <muller@sourceware.org>
409
410 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
411 AMD64_R15_REGNUM when a register index is expected.
412 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
413 Substitute in array.
414 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
415 (amd64_push_arguments): Substitute in integer_regnum array.
416
417 2013-09-25 Doug Evans <dje@google.com>
418
419 * objfiles.c (allocate_objfile): Move comment to better place.
420
421 New option "set debug symfile on".
422 * NEWS: Mention "set debug symfile".
423 * Makefile.in (SFILES): Add symfile-debug.c.
424 (COMMON_OBS): Add symfile-debug.o.
425 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
426 objfile's symbol functions.
427 * objfiles.h (objfile_set_sym_fns): Declare.
428 * symfile-debug.c: New file.
429 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
430 objfile's symbol functions.
431 (reread_symbols): Ditto.
432
433 * symfile.h (struct sym_fns): Delete member "sym_flavour".
434 All uses updated.
435 (add_symtab_fns): Update prototype.
436 * symfile.c (sym_fns_ptr): Delete. Replace with ...
437 (registered_sym_fns): ... this.
438 (symtab_fns): Update.
439 (add_symtab_fns): New arg "flavour". All callers updated.
440 (find_sym_fns): Rewrite to use new sym_fns registry.
441
442 * symfile.h (struct sym_fns): Add "objfile" argument to
443 sym_read_linetable. All uses updated.
444
445 * symtab.c (domain_name, search_domain_name): New functions.
446 * symtab.h (domain_name, search_domain_name): Declare.
447
448 * symfile.h (struct quick_symbol_functions): Reorg arg list of
449 map_matching_symbols so objfile is first. All uses updated.
450 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
451 * psymtab.c (map_matching_symbols_psymtab): Update signature.
452
453 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
454
455 PR shlibs/8882
456 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
457 link map entries.
458
459 2013-09-24 Doug Evans <dje@google.com>
460
461 * objfiles.c (free_objfile): Move comment.
462
463 2013-09-24 Joel Brobecker <brobecker@adacore.com>
464
465 * ada-exp.y (string_to_operator): Delete.
466 (dummy_string_to_ada_operator): Delete.
467
468 2013-09-24 Joel Brobecker <brobecker@adacore.com>
469
470 Revert:
471 * i386-tdep.h (enum amd64_reg_class): New, moved here from
472 amd64-tdep.c.
473 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
474 call_dummy_integer_regs, and classify.
475 * amd64-tdep.h (amd64_classify): Add declaration.
476 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
477 (amd64_reg_class): Delete, moved to i386-tdep.h.
478 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
479 Replace call to amd64_classify by call to tdep->classify.
480 (amd64_push_arguments): Get the list of registers to use for
481 passing integer parameters from the gdbarch tdep structure,
482 rather than using a hardcoded one. Replace calls to amd64_classify
483 by calls to tdep->classify.
484 (amd64_push_dummy_call): Get the register number used for
485 the "hidden" argument from tdep->call_dummy_integer_regs.
486 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
487 and tdep->call_dummy_integer_regs. Set tdep->classify.
488
489 2013-09-24 Joel Brobecker <brobecker@adacore.com>
490
491 Revert:
492 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
493 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
494 where tdep->memory_args_by_pointer is non-zero.
495
496 2013-09-24 Joel Brobecker <brobecker@adacore.com>
497
498 Revert:
499 * i386-tdep.h (struct gdbarch_tdep): Add new field
500 integer_param_regs_saved_in_caller_frame.
501 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
502 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
503
504 2013-09-24 Joel Brobecker <brobecker@adacore.com>
505
506 * amd64-windows-tdep.c: #include "value.h"
507 (amd64_windows_classify): Delete.
508 (amd64_windows_passed_by_integer_register)
509 (amd64_windows_passed_by_xmm_register)
510 (amd64_windows_passed_by_pointer)
511 (amd64_windows_adjust_args_passed_by_pointer)
512 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
513 (amd64_windows_push_dummy_call): New functions.
514 (amd64_windows_init_abi): Remove setting of
515 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
516 tdep->classify, tdep->memory_args_by_pointer and
517 tdep->integer_param_regs_saved_in_caller_frame.
518 Add call to set_gdbarch_push_dummy_call.
519
520 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
521
522 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
523 objfile->original_name.
524
525 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
526
527 Pass down original filename for objfile.
528 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
529 * elfread.c (elf_symfile_read): Likewise.
530 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
531 longer set ORIGINAL_NAME.
532 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
533 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
534 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
535 symbol_file_add_from_bfd call.
536 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
537 (macho_check_dsym): Add parameter filenamep. Change function comment.
538 Set *filenamep.
539 (macho_symfile_read): New variable dsym_filename. Update
540 macho_check_dsym call. Use it for symbol_file_add_separate.
541 * objfiles.c (allocate_objfile): Add parameter name. New comment for
542 it. Use it for objfile->original_name.
543 (objfile_name): Return OBFD's filename, if available.
544 * objfiles.h (allocate_objfile): Add new parameter name.
545 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
546 * symfile-mem.c (symbol_file_add_from_memory): Update
547 symbol_file_add_from_bfd call.
548 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
549 comment for it.
550 (symbol_file_add_with_addrs): New parameter name, add function comment
551 for it. Remove variable name. Update allocate_objfile call.
552 (symbol_file_add_separate): New parameter name, add function comment
553 for it. Update symbol_file_add_with_addrs call.
554 (symbol_file_add_from_bfd): New parameter name. Update
555 symbol_file_add_with_addrs call.
556 (symbol_file_add): Update symbol_file_add_from_bfd call.
557 (reread_symbols): New variable original_name. Save
558 objfile->original_name by it.
559 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
560 second parameter.
561
562 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
563
564 Code cleanup: Add objfile_name accessor function.
565 * ada-lang.c (is_known_support_routine): Use objfile_name.
566 * auto-load.c (source_gdb_script_for_objfile)
567 (auto_load_objfile_script): Likewise.
568 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
569 * dbxread.c (dbx_symfile_read): Likewise.
570 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
571 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
572 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
573 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
574 (lookup_dwp_signatured_type, lookup_dwo_unit)
575 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
576 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
577 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
578 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
579 (dwarf2_record_block_ranges, read_common_block, read_typedef)
580 (read_subrange_type, load_partial_dies, read_partial_die)
581 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
582 (die_containing_type, build_error_marker_type, lookup_die_type)
583 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
584 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
585 (get_DW_AT_signature_type, write_psymtabs_to_index)
586 (save_gdb_index_command): Likewise.
587 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
588 Likewise.
589 * expprint.c (dump_subexp_body_standard): Likewise.
590 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
591 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
592 original_name.
593 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
594 obj_name, use objfile_name for it, use the variable.
595 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
596 Use objfile_name.
597 * machoread.c (macho_symtab_read, macho_check_dsym)
598 (macho_symfile_relocate): Likewise.
599 * maint.c (maintenance_translate_address): Likewise.
600 * minidebug.c (find_separate_debug_file_in_section): Likewise.
601 * minsyms.c (install_minimal_symbols): Likewise.
602 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
603 original_name.
604 (filter_overlapping_sections): Use objfile_name.
605 (objfile_name): New function.
606 * objfiles.h (struct objfile): Rename field name to original_name.
607 (objfile_name): New prototype.
608 * printcmd.c (sym_info, address_info): Use objfile_name.
609 * probe.c (parse_probes, collect_probes, compare_probes)
610 (info_probes_for_ops): Likewise.
611 * progspace.c (clone_program_space): Likewise.
612 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
613 (maintenance_info_psymtabs): Likewise.
614 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
615 (source_section_scripts): Likewise.
616 * python/py-objfile.c (objfpy_get_filename): Likewise.
617 * python/py-progspace.c (pspy_get_filename): Likewise.
618 * solib-aix.c (solib_aix_get_toc_value): Likewise.
619 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
620 * solib.c (solib_read_symbols): Likewise.
621 * stabsread.c (scan_file_globals): Likewise.
622 * stap-probe.c (handle_stap_probe): Likewise.
623 * symfile.c (symbol_file_clear, separate_debug_file_exists)
624 (find_separate_debug_file_by_debuglink): Likewise.
625 (reread_symbols): Likewise. Use the objfile field name renamed to
626 original_name.
627 (allocate_symtab): Use objfile_name.
628 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
629 (dump_objfile, dump_msymbols, dump_symtab_1)
630 (maintenance_print_msymbols, maintenance_print_objfiles)
631 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
632 * target.c (target_translate_tls_address, target_info): Likewise.
633 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
634 objfile_name.
635
636 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
637
638 Code cleanup.
639 * probe.c (parse_probes): Rename variable objfile_name to
640 objfile_namestr.
641
642 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
643
644 Remove solib-sunos.c.
645 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
646 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
647 * objfiles.c (rt_common_objfile): Remove.
648 (free_objfile): Remove rt_common_objfile comparison.
649 * objfiles.h (rt_common_objfile): Remove.
650 * solib-sunos.c: Remove.
651 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
652
653 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
654
655 Remove a.out NetBSD and OpenBSD hosts.
656 * NEWS (Removed native configurations): New.
657 * config/arm/nbsdaout.mh: Remove.
658 * config/i386/nbsdaout.mh: Remove.
659 * config/i386/obsdaout.mh: Remove.
660 * config/m68k/nbsdaout.mh: Remove.
661 * config/sparc/nbsdaout.mh: Remove.
662 * config/vax/nbsdaout.mh: Remove.
663 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
664 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
665 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
666 error.
667 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
668 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
669 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
670
671 2013-09-23 Tom Tromey <tromey@redhat.com>
672
673 * linespec.c (struct minsym_and_objfile): Remove.
674 (minsym_and_objfile_d): Remove.
675 (struct linespec, struct collect_info, linespec_parse_basic)
676 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
677 (compare_msymbols, find_method, find_function_symbols)
678 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
679 (add_minsym, search_minsyms_for_name): Update.
680
681 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
682
683 * regcache.c: Add include of valprint.h.
684 (dump_endian_bytes): Delete.
685 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
686
687 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
688
689 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
690
691 2013-09-19 Pedro Alves <palves@redhat.com>
692
693 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
694 breakpoints.
695
696 2013-09-19 Pedro Alves <palves@redhat.com>
697 Thomas Schwinge <thomas@codesourcery.com>
698 Yue Lu <hacklu.newborn@gmail.com>
699
700 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
701 Take a gdb_byte pointer instead of a char pointer.
702
703 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
704 gnu_xfer_partial helper.
705 (gnu_xfer_partial): New function.
706 (gnu_target): Don't install a deprecated_xfer_memory hook.
707 Install a to_xfer_partial hook.
708
709 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
710
711 Constification.
712 * main.c (captured_main): Replace catch_command_errors by
713 catch_command_errors_const. Twice.
714 * symfile.c (symbol_file_add_main_1): Make args parameter const.
715 (symbol_file_add): Make name parameter const.
716 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
717 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
718 variable name. Change their usage accordingly.
719 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
720 const.
721 (symbol_file_add_main): Make args parameter const.
722
723 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
724 Ulrich Weigand <uweigand@de.ibm.com>
725
726 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
727 of c_value member.
728 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
729
730 2013-09-18 Pedro Alves <palves@redhat.com>
731 Yue Lu <hacklu.newborn@gmail.com>
732
733 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
734 (gnu_create_inferior)
735 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
736 (set_sig_thread_cmd): Use the lwpid field of ptids to
737 store/extract thread ids instead of the tid field.
738 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
739
740 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
741
742 * infcmd.c (default_print_one_register_info): Add detection of
743 optimized out values.
744 (default_print_registers_info): Switch to using
745 get_frame_register_value.
746
747 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
748
749 * infrun.c (handle_inferior_event): Check if we know the
750 function start address before setting a resume breakpoint.
751
752 2013-09-18 Pedro Alves <palves@redhat.com>
753
754 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
755 minus_one_ptid instead of looking at the ptid's tid field and
756 comparing that to -1.
757
758 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
759
760 * main.h (get_gdb_program_name): Remove extra whitespace.
761
762 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
763
764 * main.h (get_gdb_program_name): Add declaration.
765 * main.c (get_gdb_program_name): Add definition.
766
767 2013-09-17 Doug Evans <dje@google.com>
768
769 * dwarf2read.c: Move definitions of complaint functions to after
770 forward declarations of local functions.
771
772 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
773 Pedro Alves <palves@redhat.com>
774
775 PR gdb/11568
776 * breakpoint.c (remove_threaded_breakpoints): New function.
777 (_initialize_breakpoint): Attach remove_threaded_breakpoints
778 as thread_exit observer.
779
780 2013-09-17 Pedro Alves <palves@redhat.com>
781
782 PR gdb/15911
783 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
784 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
785 * corelow.c (core_open):
786 * frame.h (print_stack_frame, print_frame_info): New
787 'set_current_sal' parameter.
788 * infcmd.c (finish_command, kill_command): Adjust call to
789 print_stack_frame.
790 * inferior.c (inferior_command): Likewise.
791 * infrun.c (normal_stop): Likewise.
792 * linux-fork.c (linux_fork_context): Likewise.
793 * record-full.c (record_full_goto_entry, record_full_restore):
794 Likewise.
795 * remote-mips.c (common_open): Likewise.
796 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
797 Use it.
798 (print_frame_info): New 'set_current_sal' parameter. Set the last
799 displayed sal depending on the new paremeter instead of looking at
800 print_what.
801 (backtrace_command_1, select_and_print_frame, frame_command)
802 (current_frame_command, up_command, down_command): Adjust call to
803 print_stack_frame.
804 * thread.c (print_thread_info, restore_selected_frame)
805 (do_captured_thread_select): Adjust call to print_stack_frame.
806 * tracepoint.c (tfind_1): Likewise.
807 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
808 (mi_cmd_stack_info_frame): Likewise.
809 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
810 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
811
812 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
813
814 * value.c (isvoid_internal_fn): Replace "parameter" with
815 "argument".
816
817 2013-09-16 Stan Shebs <stan@codesourcery.com>
818
819 * README: Update references to writing code for GDB.
820 * configure.ac (build_warnings): Remove obsolete comment.
821 * configure: Regenerate.
822 * gdbarch.sh: Remove references to gdbint.texinfo.
823 * gdbarch.h: Regenerate.
824 * gdbtypes.c (objfile_type): Remove comments referencing internals
825 manual and D10V.
826
827 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
828
829 * NEWS: Mention new convenience function $_isvoid.
830 * value.c (isvoid_internal_fn): New function.
831 (_initialize_values): Add new convenience function $_isvoid.
832
833 2013-09-16 Pierre Muller <muller@sourceware.org>
834
835 * arm-linux-tdep.c: Add "elf/common.h" header.
836 Remove AT_HWCAP macro definintion as it is provided in
837 added include file.
838 * s390-tdep.c: Remove system header <elf.h>
839 Add "elf/common.h" header for AT_HWCAP definition.
840 (s390_core_read_description): Use correct CORE_ADDR
841 for hwcap local variable used as third parameter
842 of function target_auxv_search.
843
844 2013-09-14 Pierre Muller <muller@sourceware.org>
845 Tom Tromey <tromey@redhat.com>
846 Pedro Alves <palves@redhat.com>
847
848 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
849 mode if operating system doesn't know O_CLOEXEC.
850
851 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
852
853 Code cleanup.
854 * symfile.c (reread_symbols): Move variable obfd_filename to a more
855 inner block.
856
857 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
858
859 * NEWS: Mention TDB support.
860 * features/s390-tdb.xml: New file.
861 * features/s390-te-linux64.xml: New file.
862 * features/s390x-te-linux64.xml: New file.
863 * features/Makefile (WHICH): Add new tdescs above.
864 (s390-te-linux64-expedite): Set.
865 (s390x-te-linux64-expedite): Set.
866 * features/s390-te-linux64.c: New file (generated).
867 * features/s390x-te-linux64.c: New file (generated).
868 * regformats/s390-te-linux64.dat: New file (generated).
869 * regformats/s390x-te-linux64.dat: New file (generated).
870 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
871 (HWCAP_S390_TE): Likewise.
872 (S390_TDB_DWORD0_REGNUM): Likewise.
873 (S390_TDB_DWORD0_REGNUM): Likewise.
874 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
875 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
876 (S390_TDB_ATIA_REGNUM): Likewise.
877 (S390_TDB_R0_REGNUM): Likewise.
878 (S390_TDB_R1_REGNUM): Likewise.
879 (S390_TDB_R2_REGNUM): Likewise.
880 (S390_TDB_R3_REGNUM): Likewise.
881 (S390_TDB_R4_REGNUM): Likewise.
882 (S390_TDB_R5_REGNUM): Likewise.
883 (S390_TDB_R6_REGNUM): Likewise.
884 (S390_TDB_R7_REGNUM): Likewise.
885 (S390_TDB_R8_REGNUM): Likewise.
886 (S390_TDB_R9_REGNUM): Likewise.
887 (S390_TDB_R10_REGNUM): Likewise.
888 (S390_TDB_R11_REGNUM): Likewise.
889 (S390_TDB_R12_REGNUM): Likewise.
890 (S390_TDB_R13_REGNUM): Likewise.
891 (S390_TDB_R14_REGNUM): Likewise.
892 (S390_TDB_R15_REGNUM): Likewise.
893 (S390_NUM_REGS): Increase.
894 (S390_IS_TDBREGSET_REGNUM): New macro.
895 (s390_regmap_tdb): Declare.
896 (s390_sizeof_tdbregset): Define.
897 (tdesc_s390_te_linux64): Declare.
898 (tdesc_s390x_te_linux64): Likewise.
899 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
900 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
901 (s390_regmap_tdb): New regmap.
902 (s390_supply_tdb_regset): New function.
903 (s390_tdb_regset): New regset.
904 (s390_linux64v2_regset_sections): Add TDB regset to list.
905 (s390x_linux64v2_regset_sections): Likewise.
906 (s390_regset_from_core_section): Recognize TDB core note section.
907 (s390_core_read_description): If HWCAP indicates TE support,
908 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
909 (s390_gdbarch_init): Handle TDB regset.
910 (_initialize_s390_tdep): Initialize new tdescs.
911 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
912 (have_regset_tdb): New variable.
913 (s390_native_supply): Support register invalidation.
914 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
915 (check_regset): Treat ENODATA as "regset exists".
916 (s390_linux_fetch_inferior_registers): Add TDB.
917 (s390_read_description): Check for TDB existence and select
918 appropriate tdesc.
919 * gdbserver/Makefile.in (clean): Add removal of new makefile
920 targets.
921 (s390-te-linux64.c): New makefile target.
922 (s390x-te-linux64.c): Likewise.
923 * gdbserver/configure.srv (srv_regobj): Append new objects
924 s390-te-linux64.o and s390x-te-linux64.o.
925 (srv_xmlfiles): Append new files s390-te-linux64.xml,
926 s390x-te-linux64.xml, and s390-tdb.xml.
927 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
928 declaration.
929 (tdesc_s390_te_linux64): Likewise.
930 (init_registers_s390x_te_linux64): Likewise.
931 (tdesc_s390x_te_linux64): Likewise.
932 (s390_check_regset): Treat ENODATA as "regset exists".
933 (s390_arch_setup): Add TDB regset support.
934 (initialize_low_arch): Initialize registers for new tdescs.
935
936 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
937
938 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
939 (S390_IS_FPREGSET_REGNUM): New macro.
940 * s390-tdep.c (s390_dwarf_regmap): Make const.
941 (regnum_is_gpr_full): New function for replacing repeated code.
942 (s390_pseudo_register_name): Use it.
943 (s390_pseudo_register_type): Likewise.
944 (s390_pseudo_register_read): Likewise.
945 (s390_pseudo_register_write): Likewise.
946 (s390_unwind_pseudo_register): Likewise.
947 (s390_regmap_gregset): New format for regmap.
948 (s390x_regmap_gregset): Likewise.
949 (s390_regmap_fpregset): Likewise.
950 (s390_regmap_upper): Likewise.
951 (s390_regmap_last_break): Likewise.
952 (s390_regmap_system_call): Likewise.
953 (s390_supply_regset): Adjust to new regmap format.
954 (s390_collect_regset): Likewise.
955 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
956 (s390_native_collect): Likewise.
957 (supply_gregset): Likewise.
958 (fill_gregset): Likewise.
959 (supply_fpregset): Likewise.
960 (fill_fpregset): Likewise.
961 (fetch_regset): Likewise.
962 (store_regset): Likewise.
963 (s390_linux_fetch_inferior_registers): Likewise.
964 (s390_linux_fetch_inferior_registers): Likewise.
965
966 2013-09-12 Andrew Pinski <apinski@cavium.com>
967
968 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
969
970 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
971
972 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
973
974 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
975
976 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
977
978 2013-09-06 Pedro Alves <palves@redhat.com>
979
980 * remote-sim.c (dump_mem, gdbsim_fetch_register)
981 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
982 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
983 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
984 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
985 gdb_stdlog.
986
987 2013-09-06 Pedro Alves <palves@redhat.com>
988
989 * remote-sim.c (dump_mem): Constify buf parameter.
990 gdbsim_xfer_inferior_memory): Rename to ...
991 (gdbsim_xfer_memory): ... this. Adjust interface as
992 target_xfer_partial helper.
993 (gdbsim_xfer_partial): New function.
994 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
995 Install a to_xfer_partial hook. Send output to gdb_stdlog.
996
997 2013-09-06 Pedro Alves <palves@redhat.com>
998
999 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1000 host_address_to_string, and send debug output to gdb_stdlog.
1001
1002 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1003
1004 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1005 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1006 gdb_target_obs for cris target.
1007 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1008 (cris_gdbarch_init): Move calls to
1009 set_gdbarch_fetch_tls_load_module_address and
1010 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1011 Add call to gdbarch_init_osabi.
1012 * cris-linux-tdep.c: New file.
1013 * cris-tdep.h: New file.
1014
1015 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1016
1017 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1018 to deprecated_init_ui_hook.
1019
1020 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1021
1022 * cli/cli-interp.c (_initialize_cli_interp): Add a
1023 command_loop_proc to interp_procs.
1024 * event-top.c (cli_command_loop): Change signature to match
1025 interp_command_loop_ftype.
1026 * event-top.h (cli_command_loop): Same.
1027 * interps.c (interp_new): Require every interpreter to have a
1028 command_loop_proc.
1029 (current_interp_command_loop): Just call the command_loop_proc on
1030 the current interpreter.
1031 * tui/tui-interp.c (_initialize_tui_interp): Add a
1032 command_loop_proc to interp_procs.
1033
1034 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1035
1036 * cris-tdep.c (cris_gdbarch_init): Add call to
1037 get_gdbarch_fetch_tls_load_module_address.
1038
1039 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1040
1041 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1042 (cris_elf_gregset_t): Rename from elf_gregset_t.
1043 (crisv32_elf_gregset_t): Adjust.
1044 (cris_supply_gregset, fetch_core_registers): Adjust.
1045
1046 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1047
1048 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1049
1050 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
1051
1052 * defs.h (deprecated_command_loop_hook): Remove, including
1053 references in comments.
1054 * interps.c (current_interp_command_loop): No longer use
1055 deprecated_command_loop_hook.
1056 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1057 setup.
1058 * top.c (deprecated_command_loop_hook): Remove.
1059
1060 2013-09-05 Pedro Alves <palves@redhat.com>
1061
1062 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1063 local is now int instead of ULONGEST. Print it with %d
1064 instead of paddress.
1065
1066 2013-09-05 Tristan Gingold <gingold@adacore.com>
1067
1068 * MAINTAINERS: Remove avr maintainership.
1069
1070 2013-09-05 Pedro Alves <palves@redhat.com>
1071
1072 * findvar.c (value_of_register): Rework in terms of
1073 value_of_register_lazy.
1074
1075 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1076
1077 * symfile.c (add_symbol_file_command): Remove trailing
1078 whitespaces and blank line after comment.
1079
1080 2013-09-05 Pedro Alves <palves@redhat.com>
1081
1082 * tui/tui-regs.c (tui_register_format): Don't look at the
1083 register's name here. Return string representing register
1084 value instead of storing it in the data element.
1085 (tui_get_register): Compare register string representations
1086 instead of register value states and contents.
1087
1088 2013-09-05 Pedro Alves <palves@redhat.com>
1089
1090 PR tui/15933
1091 * tui/tui-regs.c (tui_show_registers): Show registers of the
1092 selected frame, not the current frame.
1093
1094 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
1095
1096 * MAINTAINERS (Write After Approval): Add myself to the list.
1097
1098 2013-09-04 Doug Evans <dje@google.com>
1099
1100 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1101 (queue_and_load_dwo_tu): New function.
1102 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1103 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1104 Make dependent_cu optional.
1105 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1106 and an older .gdb_index is in use, queue and load all its TUs too.
1107
1108 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1109
1110 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1111 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1112 variable search_flags.
1113 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1114 (OPF_RETURN_REALPATH): ... here.
1115 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1116 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1117 call. Twice.
1118 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1119 openp call.
1120 * solib.c (solib_find): Likewise. Four times.
1121 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1122 in the function comment and for the realpath_fptr variable.
1123 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1124 (find_and_open_source): Likewise. Twice.
1125 * symfile.c (symfile_bfd_open): Likewise, also twice.
1126
1127 2013-09-04 Doug Evans <dje@google.com>
1128
1129 * progspace.c (save_current_space_and_thread): Remove unnecessary
1130 call to save_current_inferior.
1131
1132 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
1133
1134 * sh64-tdep.c (sh64_do_register): Return after printing message
1135 about unavailable register contents.
1136
1137 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1138 Pedro Alves <palves@redhat.com>
1139
1140 * symfile.c (add_symbol_file_command): Error out on unknown
1141 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1142 options and collapse into single conditional branch.
1143
1144 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
1145
1146 * inf-child.c (inf_child_follow_fork): New parameter
1147 detach_fork.
1148 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1149 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1150 * inferior.h (detach_fork): Remove.
1151 * infrun.c (detach_fork): Adjust comment and make it
1152 static.
1153 (follow_fork): Pass detach_fork parameter to
1154 target_follow_fork.
1155 * linux-nat.c (linux_child_follow_fork): New parameter
1156 detach_fork.
1157 * target.c (target_follow_fork): New parameter detach_fork.
1158 Pass detach_fork as parameter and print its value.
1159 * target.h (struct target_ops) <to_follow_fork>: New int
1160 parameter.
1161 (target_follow_fork): New parameter detach_fork.
1162
1163 2013-09-03 Joel Brobecker <brobecker@adacore.com>
1164
1165 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1166 Replace sec->bfd by sec->the_bfd_section->owner.
1167
1168 2013-09-03 Yao Qi <yao@codesourcery.com>
1169
1170 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1171 from linux_has_shared_address_space.
1172 (linux_has_shared_address_space): Call linux_is_uclinux.
1173 * linux-tdep.h (linux_is_uclinux): Declare.
1174 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1175 linux_is_uclinux.
1176
1177 2013-09-03 Yao Qi <yao@codesourcery.com>
1178
1179 * config/djgpp/fnchange.lst: Remove entry of
1180 i386-interix-nat.c and i386-interix-tdep.c.
1181 * configure.ac: Remove '*-*-interix*'.
1182 * configure: Re-generated.
1183 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1184 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1185 obsolete comments.
1186 * osabi.c (gdb_osabi_names): Remove "Interix".
1187
1188 2013-09-03 Yao Qi <yao@codesourcery.com>
1189
1190 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1191
1192 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1193
1194 * record.h (record_print_flag) <record_print_src_line,
1195 record_print_insn_range>: Rename into ...
1196 (record_print_flag) <record_print_src_line,
1197 record_print_insn_range>: ... this. Update all users.
1198
1199 2013-09-02 Pierre Muller <muller@sourceware.org>
1200
1201 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1202 error code.
1203
1204 2013-09-02 Pierre Muller <muller@sourceware.org>
1205
1206 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1207 by use of plongest function.
1208
1209 2013-09-02 Tristan Gingold <gingold@adacore.com>
1210
1211 * NEWS: Add entry mentioning support for native Windows x64
1212 SEH data.
1213
1214 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1215 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1216 (struct amd64_windows_frame_cache): New struct.
1217 (amd64_windows_w2gdb_regnum): New global.
1218 (pc_in_range, amd64_windows_frame_decode_epilogue)
1219 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1220 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1221 (amd64_windows_frame_this_id): New functions.
1222 (amd64_windows_frame_unwind): New static global.
1223 (amd64_windows_skip_prologue): New function.
1224 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1225 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1226 with amd64_windows_skip_prologue.
1227
1228 2013-08-30 Joel Brobecker <brobecker@adacore.com>
1229
1230 GDB 7.6.1 released.
1231
1232 2013-08-30 Pedro Alves <palves@redhat.com>
1233
1234 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1235 SRC_AND_LOC.
1236
1237 2013-08-30 Pedro Alves <palves@redhat.com>
1238
1239 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1240 warning text.
1241
1242 2013-08-30 Pedro Alves <palves@redhat.com>
1243
1244 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1245 Adjust arguments to print_stack_frame.
1246
1247 2013-08-30 Pedro Alves <palves@redhat.com>
1248
1249 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1250
1251 2013-08-30 Pedro Alves <palves@redhat.com>
1252
1253 * frame.h (show_and_print_stack_frame): Delete declaration.
1254
1255 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1256
1257 PR python/15461
1258
1259 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1260 (archpy_name): Check for valid architecture.
1261 (archpy_disassemble): Ditto.
1262
1263 2013-08-29 Joel Brobecker <brobecker@adacore.com>
1264
1265 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1266 instead of "long long" in call to ptrace64.
1267
1268 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
1269
1270 * mi/mi-interp.c (mi_command_loop): Change signature to match
1271 interp_command_loop_ftype.
1272 (mi1_command_loop): Remove.
1273 (mi2_command_loop): Remove.
1274 (mi3_command_loop): Remove.
1275 (mi_interpreter_resume): Remove setting of
1276 deprecated_command_loop_hook.
1277 (_initialize_mi_interp): Set mi_command_loop as the command loop
1278 callback.
1279
1280 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1281
1282 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1283 value_type.
1284
1285 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1286
1287 * value.c (allocate_value_contents): Make static.
1288 * value.h (allocate_value_contents): Remove prototype.
1289
1290 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1291
1292 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1293 of assembling value via allocate_value_lazy and attribute setter.
1294 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1295 assembling value via allocate_value_lazy and attribute setter.
1296 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1297 assembling value via allocate_value_lazy and attribute setter.
1298
1299 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1300
1301 * value.c (value_from_contents_and_address): Replace allocate_value and
1302 memcpy with value_from_contents.
1303
1304 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1305
1306 * python/py-framefilter.c (py_print_frame): Remove usage of
1307 PyString_AsString. Use python_string_to_host_string instead.
1308 Refactor function to work with a string as a new allocation
1309 instead of a pointer.
1310 (py_print_frame): Ditto.
1311 * python/lib/gdb/frames.py (return_list): Cain iterators together
1312 instead of adding them as a list.
1313 (_sort_list): Call return_list, and remove duplicate code.
1314 (execute_frame_filters): Convert iterator to a list with list().
1315 * python/lib/gdb/command/frame_filters.py
1316 (SetFrameFilterPriority._set_filter_priority): Convert priority
1317 attribute to an integer.
1318 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1319 wrapper function __next__.
1320 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1321 define as "str".
1322
1323 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1324
1325 PR python/15752
1326 * python/py-framefilter.c (apply_frame_filter): Check
1327 gdb_python_initialized. Exit if the Python frame-filter code
1328 cannot be initialized.
1329
1330 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1331
1332 PR cli/15842
1333 * top.c (print_gdb_version): Remove erroneous newline after help
1334 text.
1335
1336 2013-08-29 Yao Qi <yao@codesourcery.com>
1337
1338 * varobj.c (install_dynamic_child): Remove trailing space.
1339 Add one blank line after variable declaration.
1340
1341 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1342
1343 PR gdb/15415
1344 * corefile.c (get_exec_file): Use exec_filename.
1345 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
1346 * exec.c (exec_close): Free EXEC_FILENAME.
1347 (exec_file_attach): New variable canonical_pathname. Use
1348 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
1349 EXEC_FILENAME.
1350 * exec.h (exec_filename): New.
1351 * inferior.c (print_inferior, inferior_command): Use
1352 PSPACE_EXEC_FILENAME.
1353 * mi/mi-main.c (print_one_inferior): Likewise.
1354 * progspace.c (clone_program_space, print_program_space): Likewise.
1355 * progspace.h (struct program_space): New field pspace_exec_filename.
1356 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
1357 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
1358
1359 2013-08-28 Will Newton <will.newton@linaro.org>
1360
1361 * common/linux-ptrace.c: Include stdint.h unconditionally.
1362
1363 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1364
1365 Code cleanup.
1366 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
1367
1368 2013-08-28 Yao Qi <yao@codesourcery.com>
1369 Pedro Alves <palves@redhat.com>
1370
1371 * event-top.c (gdb_setup_readline): Call stderr_fileopen
1372 instead of stdio_fileopen.
1373 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
1374 .Call stderr_fileopen instead of stdio_fileopen.
1375 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
1376 [__MINGW32__] (stderr_file_fputs): New function.
1377 (stderr_fileopen): New function.
1378 * ui-file.h (stderr_fileopen): Declare.
1379
1380 2013-08-27 Doug Evans <dje@google.com>
1381
1382 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
1383 (struct dwarf2_per_cu_data): Ditto.
1384 (maybe_queue_comp_unit): Delete forward decl. Add comment.
1385 (process_imported_unit_die): Ditto.
1386 (follow_die_sig_1): Simplify assert.
1387
1388 2013-08-27 Pedro Alves <palves@redhat.com>
1389
1390 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
1391 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
1392 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
1393 windows_xfer_memory directly.
1394 (init_windows_ops): Don't install a deprecated_xfer_memory method.
1395
1396 2013-08-27 Pedro Alves <palves@redhat.com>
1397
1398 * darwin-nat.c (darwin_xfer_memory): Delete.
1399 (_initialize_darwin_inferior): Don't install a
1400 deprecated_xfer_memory method.
1401
1402 2013-08-27 Pedro Alves <pedro@codesourcery.com>
1403 Yao Qi <yao@codesourcery.com>
1404
1405 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
1406 (parse_no_frames_option): Remove.
1407 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
1408 (mi_cmd_stack_list_args): Adjust.
1409 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
1410 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
1411 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
1412 Caller update.
1413 (list_args_or_locals): New parameter 'skip_unavailable'.
1414 Handle it.
1415 * valprint.c (scalar_type_p): Rename to ...
1416 (val_print_scalar_type_p): ... this. Make extern.
1417 (val_print, value_check_printable): Adjust.
1418 * valprint.h (val_print_scalar_type_p): Declare.
1419 * value.c (value_entirely_unavailable): New function.
1420 * value.h (value_entirely_unavailable): Declare.
1421
1422 * NEWS: Mention the new option "--skip-unavailable" to MI
1423 commands '-stack-list-locals', '-stack-list-arguments' and
1424 '-stack-list-variables'.
1425
1426 2013-08-27 Yao Qi <yao@codesourcery.com>
1427
1428 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
1429 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
1430 options.
1431 * mi/mi-getopt.c (mi_getopt): Remove.
1432 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
1433 'error_on_unknown'.
1434 (mi_getopt): Call mi_getopt_1.
1435 (mi_getopt_silent): New.
1436 * mi/mi-getopt.h (mi_getopt_silent): Declare.
1437
1438 2013-08-26 Doug Evans <dje@google.com>
1439
1440 PR symtab/15885
1441 * dwarf2read.c (dw2_dump): Print some minimal information indicating
1442 .gdb_index is in use.
1443 * symfile.c (reread_symbols): Reset objfile->sf.
1444
1445 * NEWS: Document "mt print objfiles" now takes optional regexp.
1446 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
1447 regexp of objfiles to print.
1448 (_initialize_symmisc): Update doc string for "mt print objfiles".
1449
1450 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
1451 missing debug info checks.
1452
1453 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
1454 Ulrich Weigand <uweigand@de.ibm.com>
1455
1456 * xcoffread.c (arrange_linetable): Add fix to correctly handle
1457 line tables generated by XLC compiled binaries.
1458
1459 2013-08-23 Doug Evans <dje@google.com>
1460
1461 * symmisc.c (dump_symtab): Delete prototype.
1462 (dump_msymbols, dump_objfile): Ditto.
1463 (maintenance_info_symtabs): Mark as dont_repeat.
1464 (_initialize_symmisc): Improve doc string for "mt info symtabs".
1465
1466 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
1467 debugging printf to better location.
1468
1469 2013-08-23 Pedro Alves <palves@redhat.com>
1470
1471 * target.c (target_read_live_memory): Change type of 'ret' local
1472 to LONGEST.
1473
1474 2013-08-23 Pedro Alves <palves@redhat.com>
1475
1476 * remote.c (remote_write_bytes_aux, remote_write_bytes)
1477 (remote_read_bytes): Change return type to LONGEST, and adjust to
1478 return a target_xfer_error on error.
1479 (remote_xfer_memory): Delete.
1480 (remote_flash_write): Change type of 'ret' local to LONGEST.
1481 (remote_xfer_partial, remote_xfer_partial): Adjust.
1482 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
1483
1484 2013-08-23 Pierre Muller <muller@sourceware.org>
1485
1486 ARI fix: Push # directives to start of line.
1487 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
1488
1489 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
1490
1491 PR gdb/15501
1492 * breakpoint.c (enable_command, disable_command): Iterate over
1493 all specified breakpoint locations.
1494
1495 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
1496
1497 * common/linux-ptrace.c (linux_fork_to_function): Push #
1498 directives to the start of the line.
1499 (linux_check_ptrace_features): Fix warning message to use
1500 the "_" markup.
1501
1502 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
1503
1504 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
1505 nat/linux-waitpid.h.
1506 (linux-waitpid.o): New object file rule.
1507 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
1508 (current_ptrace_options): Moved from linux-nat.c.
1509 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
1510 parameters.
1511 (linux_fork_to_function): New function.
1512 (linux_grandchild_function): Likewise.
1513 (linux_child_function): Likewise.
1514 (linux_check_ptrace_features): New function, heavily
1515 based on linux-nat.c:linux_test_for_tracefork.
1516 (linux_enable_event_reporting): New function.
1517 (ptrace_supports_feature): Likewise.
1518 (linux_supports_tracefork): Likewise.
1519 (linux_supports_traceclone): Likewise.
1520 (linux_supports_tracevforkdone): Likewise.
1521 (linux_supports_tracesysgood): Likewise.
1522 * common/linux-ptrace.h (HAS_NOMMU): Moved from
1523 gdbserver/linux-low.c.
1524 (linux_enable_event_reporting): New declaration.
1525 (linux_supports_tracefork): Likewise.
1526 (linux_supports_traceclone): Likewise.
1527 (linux_supports_tracevforkdone): Likewise.
1528 (linux_supports_tracesysgood): Likewise.
1529 * config.in (PTRACE_TYPE_ARG4): Regenerate.
1530 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
1531 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1532 * config/arm/linux.mh (NATDEPFILES): Likewise.
1533 * config/i386/linux.mh (NATDEPFILES): Likewise.
1534 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1535 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1536 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1537 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1538 * config/mips/linux.mh (NATDEPFILES): Likewise.
1539 * config/pa/linux.mh (NATDEPFILES): Likewise..
1540 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
1541 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1542 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1543 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1544 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1545 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1546 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1547 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
1548 ptrace's 4th argument's types.
1549 Check the type of PTRACE_TYPE_ARG4.
1550 * configure: Regenerate.
1551 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
1552 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
1553 (linux_supports_tracefork_flag): Remove.
1554 (linux_supports_tracesysgood_flag): Likewise.
1555 (linux_supports_tracevforkdone_flag): Likewise.
1556 (current_ptrace_options): Moved to
1557 common/linux-ptrace.c.
1558 (linux_tracefork_child): Remove.
1559 (my_waitpid): Remove.
1560 (linux_test_for_tracefork): Renamed to
1561 linux_check_ptrace_features and moved to common/linux-ptrace.c.
1562 (linux_test_for_tracesysgood): Remove.
1563 (linux_supports_tracesysgood): Remove.
1564 (linux_supports_tracefork): Remove.
1565 (linux_supports_tracevforkdone): Remove.
1566 (linux_enable_tracesysgood): Remove.
1567 (linux_enable_event_reporting): Remove.
1568 (linux_init_ptrace): New function.
1569 (linux_child_post_attach): Call linux_init_ptrace.
1570 (linux_child_post_startup_inferior): Call linux_init_ptrace.
1571 (linux_child_follow_fork): Call linux_supports_tracefork
1572 and linux_supports_tracevforkdone.
1573 (linux_child_insert_fork_catchpoint): Call
1574 linux_supports_tracefork.
1575 (linux_child_insert_vfork_catchpoint): Likewise.
1576 (linux_child_set_syscall_catchpoint): Call
1577 linux_supports_tracesysgood.
1578 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
1579 * nat/linux-nat.h: New file.
1580 * nat/linux-waitpid.c: New file.
1581 * nat/linux-waitpid.h: New file.
1582
1583 2013-08-22 Samuel Bronson <naesten@gmail.com>
1584
1585 ARM Linux support for `catch syscall'.
1586 * syscalls/arm-linux.py: New file.
1587 * syscalls/arm-linux.xml: Likewise.
1588 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
1589 (arm_linux_init_abi): Register the new function and syscall xml file.
1590 * data-directory/Makefile.in: Install the new syscall xml file.
1591 * NEWS: Brag about this.
1592
1593 2013-08-22 Pedro Alves <palves@redhat.com>
1594
1595 PR gdb/15871
1596 * corefile.c (target_xfer_memory_error): New function.
1597 (memory_error): Defer EIO to target_memory_error.
1598 (read_memory): Use target_xfer_partial, and handle finer-grained
1599 target xfer errors.
1600 * target.c (target_xfer_error_to_string): New function.
1601 (memory_xfer_partial_1): If memory is known to be
1602 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
1603 (target_xfer_partial): Make extern.
1604 * target.h (enum target_xfer_error): New enum.
1605 (target_xfer_error_to_string): Declare function.
1606 (target_xfer_partial): Declare function.
1607 (struct target_ops) <xfer_partial>: Adjust describing comment.
1608
1609 2013-08-22 Alan Modra <amodra@gmail.com>
1610
1611 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
1612 * configure.tgt: Likewise as targets.
1613
1614 2013-08-20 Doug Evans <dje@google.com>
1615
1616 * buildsym.c (subfile_stack): Move here from buildsym.h.
1617 (pending_macros): Ditto.
1618 (get_macro_table): New function.
1619 (buildsym_init): Initialize subfile_stack.
1620 * coffread.c (type_vector,type_vector_length): Moved here from
1621 buildsym.h.
1622 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1623 (coff_symtab_read): Use it.
1624 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
1625 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
1626 with call to get_macro_table.
1627 * stabsread.c (type_vector,type_vector_length): Moved here from
1628 buildsym.h.
1629 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1630 * buildsym.h (get_macro_table): Declare.
1631
1632 2013-08-20 Tom Tromey <tromey@redhat.com>
1633
1634 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
1635 Update.
1636 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
1637
1638 2013-08-20 Doug Evans <dje@google.com>
1639
1640 * blockframe.c: Remove #include "psymtab.h".
1641 * cp-support.c: Ditto.
1642 * source.c: Ditto.
1643 * stack.c: Ditto.
1644
1645 2013-08-20 Tom Tromey <tromey@redhat.com>
1646
1647 PR python/15816:
1648 * exceptions.h (return_mask): Now an enum.
1649 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
1650 enum constants.
1651
1652 2013-08-20 Tom Tromey <tromey@redhat.com>
1653
1654 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1655 get_objfile_arch.
1656 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
1657 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
1658 * jit.c (jit_object_close_impl): Update.
1659 * jv-lang.c (get_dynamics_objfile): Update.
1660 * linespec.c (add_minsym): Use get_dynamics_objfile.
1661 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
1662 (allocate_objfile): Don't initialize 'gdbarch' field.
1663 (get_objfile_arch): Update.
1664 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
1665 moved from...
1666 (struct objfile) <gdbarch>: ... here. Remove.
1667 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
1668 get_objfile_arch.
1669 * symfile.c (init_entry_point_info): Use get_objfile_arch.
1670
1671 2013-08-20 Alan Modra <amodra@gmail.com>
1672
1673 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
1674 for IBM long double nan and inf.
1675 (floatformat_is_negative, floatformat_classify,
1676 floatformat_mantissa): Similarly.
1677 (floatformat_ieee_single, floatformat_ieee_double,
1678 floatformat_ieee_quad, floatformat_arm_ext,
1679 floatformat_ia64_spill): Delete unused vars.
1680 (_initialize_doublest): Delete unused function.
1681 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
1682 little-endian variants of floatformat_ibm_long_double.
1683
1684 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
1685
1686 * Makefile.in (SFILES): Remove common/target-common.c and
1687 add target/waitstatus.c.
1688 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
1689 target/resume.h, target/wait.h and target/waitstatus.h.
1690 (COMMON_OBS): Remove target-common.o and add
1691 waitstatus.o.
1692 (target-common.o): Remove.
1693 (waitstatus.o): New target object file.
1694 * common/target-common.c: Move contents to
1695 target/waitstatus.c and remove.
1696 * common/target-common.h: Move contents to other files and
1697 remove.
1698 (enum resume_kind: Move to target/resume.h.
1699 (TARGET_WNOHANG): Move to target/wait.h.
1700 (enum target_waitkind): Move to target/waitstatus.h.
1701 (struct target_waitstatus): Likewise.
1702 * target.h: Do not include target-common.h and
1703 include target/resume.h, target/wait.h and
1704 target/waitstatus.h.
1705 * target/resume.h: New file.
1706 * target/wait.h: New file.
1707 * target/waitstatus.h: New file.
1708 * target/waitstatus.c: New file.
1709
1710 2013-08-19 Pedro Alves <palves@redhat.com>
1711
1712 * linux-nat.c (linux_test_for_tracefork)
1713 (linux_test_for_tracesysgood, linux_child_follow_fork)
1714 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
1715 (linux_nat_wait_1): Extend comment.
1716 (linux_async_pipe): Add comment.
1717
1718 2013-08-15 Kevin Buettner <kevinb@redhat.com>
1719
1720 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
1721 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
1722 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
1723 Update to account for fact that PC is now a pseudo-register.
1724 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
1725 cases for RL78_PC_REGNUM.
1726
1727 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
1728
1729 PR cli/15841
1730 * top.c (quit_force): Skip writing history file
1731 if input is not from terminal.
1732
1733 2013-08-14 Tom Tromey <tromey@redhat.com>
1734
1735 * remote.c (struct remote_state) <echo_nextthread, nextthread,
1736 resultthreadlist>: New fields.
1737 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
1738 (remote_get_threadlist, remote_threadlist_iterator): Use
1739 new fields. Remove static variables.
1740
1741 2013-08-14 Tom Tromey <tromey@redhat.com>
1742
1743 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
1744 remote_watch_data_address>: New fields.
1745 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
1746 (process_stop_reply, remote_wait_as)
1747 (remote_check_watch_resources, remote_stopped_data_address): Update.
1748
1749 2013-08-14 Tom Tromey <tromey@redhat.com>
1750
1751 * remote.c (struct remote_state) <async_client_callback,
1752 async_client_context>: New fields.
1753 (async_client_callback, async_client_context): Remove.
1754 (remote_async_serial_handler, remote_async): Update.
1755
1756 2013-08-14 Tom Tromey <tromey@redhat.com>
1757
1758 * remote.c (sizeof_pkt): Remove.
1759 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
1760
1761 2013-08-14 Tom Tromey <tromey@redhat.com>
1762
1763 * remote.c (struct remote_state) <use_threadinfo_query,
1764 use_threadextra_query>: New fields.
1765 (remote_threads_info, remote_threads_extra_info)
1766 (remote_open_1): Update.
1767
1768 2013-08-14 Tom Tromey <tromey@redhat.com>
1769
1770 * remote.c (struct remote_state) <finished_object,
1771 finished_annex, finished_offset>: New fields.
1772 (remote_read_qxfer): Use remote_state fields; remove static
1773 variables.
1774
1775 2013-08-14 Tom Tromey <tromey@redhat.com>
1776
1777 * remote.c (struct remote_state) <last_sent_step>:
1778 New field.
1779 (last_sent_step): Remove.
1780 (remote_resume, remote_wait_as): Update.
1781
1782 2013-08-14 Tom Tromey <tromey@redhat.com>
1783
1784 * remote.c (struct remote_state) <last_sent_signal>:
1785 New field.
1786 (last_sent_signal): Remove.
1787 (new_remote_state, remote_resume, remote_wait_as): Update.
1788
1789 2013-08-14 Tom Tromey <tromey@redhat.com>
1790
1791 * remote.c (struct remote_state) <last_program_signals_packet>:
1792 New field.
1793 (last_program_signals_packet): Remove.
1794 (remote_program_signals, remote_open_1): Update.
1795
1796 2013-08-14 Tom Tromey <tromey@redhat.com>
1797
1798 * remote.c (struct remote_state) <last_pass_packet>:
1799 New field.
1800 (last_pass_packet): Remove.
1801 (remote_pass_signals, remote_open_1): Update.
1802
1803 2013-08-14 Tom Tromey <tromey@redhat.com>
1804
1805 * remote.c (struct remote_state) <remote_traceframe_number>:
1806 New field.
1807 (remote_traceframe_number): Remove.
1808 (new_remote_state, remote_open_1, set_remote_traceframe)
1809 (remote_trace_find): Update.
1810
1811 2013-08-14 Tom Tromey <tromey@redhat.com>
1812
1813 * remote.c (struct remote_state) <general_thread, continue_thread>:
1814 New fields.
1815 (general_thread, continue_thread): Remove.
1816 (record_currthread, set_thread, set_general_process)
1817 (remote_open_1, extended_remote_attach_1, remote_wait_as)
1818 (extended_remote_mourn_1): Update.
1819
1820 2013-08-14 Tom Tromey <tromey@redhat.com>
1821
1822 * remote.c (struct remote_state) <remote_desc>: New field.
1823 (remote_desc): Remove.
1824 (remote_threads_info, remote_threads_extra_info, remote_close)
1825 (send_interrupt_sequence, remote_start_remote, remote_open_1)
1826 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
1827 (remote_hostio_send_command, remote_file_put, remote_file_get)
1828 (remote_file_delete, remote_can_async_p, remote_is_async_p)
1829 (remote_async, remote_new_objfile, set_range_stepping): Update.
1830
1831 2013-08-14 Tom Tromey <tromey@redhat.com>
1832
1833 * remote.c (remote_state): Now a pointer.
1834 (get_remote_state_raw): Update.
1835 (new_remote_state): New function.
1836 (_initialize_remote): Use new_remote_state.
1837
1838 2013-08-14 Tom Tromey <tromey@redhat.com>
1839
1840 * remote.c (remote_protocol_features): Now const.
1841
1842 2013-08-14 Tom Tromey <tromey@redhat.com>
1843
1844 * remote.c (crc32_table, crc32): Remove.
1845 (remote_verify_memory): Use xcrc32.
1846
1847 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
1848
1849 * value.h (create_internalvar_type_lazy): Adjust prototype
1850 declaration.
1851
1852 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
1853
1854 * common/format.c (parse_format_string): Don't allow '#' flag for
1855 pointer arguments in format string.
1856
1857 2013-08-13 Pierre Muller <muller@sourceware.org>
1858
1859 * utils.c (init_page_info): Only call tgetnum function
1860 if rl_get_screen_size did not return useful values.
1861
1862 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
1863
1864 PR breakpoints/15117
1865 * linespec.c (linespec_parse_basic): Check for convenience
1866 variable or history value while parsing.
1867
1868 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
1869
1870 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
1871 AVR.
1872 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
1873 different signals between the generic Linux kernel implementation
1874 and AVR's.
1875 (avr_linux_gdb_signal_from_target): Delete.
1876 (avr_linux_gdb_signal_to_target): Delete.
1877 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
1878
1879 2013-08-09 Doug Evans <dje@google.com>
1880
1881 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
1882 entries.
1883
1884 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
1885
1886 * linux-tdep.c: Define enum with generic signal numbers.
1887 (linux_gdb_signal_from_target): New function.
1888 (linux_gdb_signal_to_target): Likewise.
1889 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1890 methods to the functions above.
1891 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
1892 (linux_gdb_signal_to_target): Likewise.
1893 * alpha-linux-tdep.c: Define new enum with signals different
1894 from generic Linux kernel.
1895 (alpha_linux_gdb_signal_from_target): New function.
1896 (alpha_linux_gdb_signal_to_target): Likewise.
1897 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1898 with the functions mentioned above.
1899 * avr-tdep.c: Define enum with differences between Linux kernel
1900 and AVR signals.
1901 (avr_linux_gdb_signal_from_target): New function.
1902 (avr_linux_gdb_signal_to_target): Likewise.
1903 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
1904 the functions mentioned above.
1905 * sparc-linux-tdep.c: Define enum with differences between SPARC
1906 and generic Linux kernel signal numbers.
1907 (sparc32_linux_gdb_signal_from_target): New function.
1908 (sparc32_linux_gdb_signal_to_target): Likewise.
1909 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1910 to the functions defined above.
1911 * xtensa-linux-tdep.c: Define enum with differences between
1912 Xtensa and Linux kernel generic signals.
1913 (xtensa_linux_gdb_signal_from_target): New function.
1914 (xtensa_linux_gdb_signal_to_target): Likewise.
1915 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
1916 to the functions defined above.
1917 * mips-linux-tdep.c: Define enum with differences between
1918 signals in MIPS and Linux kernel generic ones.
1919 (mips_gdb_signal_to_target): New function.
1920 (mips_gdb_signal_from_target): Redefine to use new enum, handle
1921 only different signals from the Linux kernel generic.
1922 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1923 the functions defined above.
1924 * mips-linux-tdep.h (enum mips_signals): Remove.
1925
1926 2013-08-09 Pedro Alves <palves@redhat.com>
1927
1928 * avr-tdep.c (XMALLOC): Delete macro.
1929 * cli/cli-dump.c (XMALLOC): Delete macro.
1930
1931 2013-08-09 Pedro Alves <palves@redhat.com>
1932
1933 * cli/cli-dump.c: Don't include cli/cli-dump.h.
1934 (scan_expression_with_cleanup, scan_filename_with_cleanup)
1935 (fopen_with_cleanup, add_dump_command): Make static.
1936 * cli/cli-dump.h: Delete file.
1937 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
1938 cli/cli-dump.h.
1939
1940 2013-08-09 Pedro Alves <palves@redhat.com>
1941
1942 * tracepoint.c (tfile_start): Show tilde-expanded filename in
1943 error message.
1944
1945 2013-08-09 Pedro Alves <palves@redhat.com>
1946
1947 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
1948 error message.
1949
1950 2013-08-09 Pedro Alves <palves@redhat.com>
1951
1952 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
1953 (gcore_command): Use tilde_expand here, and when showing the
1954 filename to the user, show the expanded version.
1955
1956 2013-08-09 Yao Qi <yao@codesourcery.com>
1957
1958 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
1959 'entryval' is set.
1960
1961 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
1962
1963 * gcore.c (create_gcore_bfd): Use tilde_expand.
1964
1965 2013-08-08 Yao Qi <yao@codesourcery.com>
1966
1967 * frame.h (read_frame_local): Declare.
1968 * mi/mi-cmd-stack.c (list_args_or_locals): Call
1969 read_frame_local.
1970 * stack.c (read_frame_local): New.
1971
1972 2013-08-08 Yao Qi <yao@codesourcery.com>
1973
1974 * mi/mi-cmd-stack.c: Update comments to function
1975 list_args_or_locals.
1976
1977 2013-08-07 Tom Tromey <tromey@redhat.com>
1978
1979 PR symtab/15028:
1980 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
1981 (process_psymtab_comp_unit_reader): Use it.
1982 (process_psymtab_comp_unit): Update. Add "pretend_language"
1983 argument.
1984 (dwarf2_build_psymtabs_hard): Update.
1985 (scan_partial_symbols): Pass CU's language to
1986 process_psymtab_comp_unit.
1987
1988 2013-08-07 Tom Tromey <tromey@redhat.com>
1989
1990 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
1991 (dwarf2_gdb_index_functions): Update.
1992 * psymtab.c (find_symbol_file_from_partial): Remove.
1993 (psym_functions): Update.
1994 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
1995 Remove.
1996
1997 2013-08-07 Tom Tromey <tromey@redhat.com>
1998
1999 * symfile.c (set_initial_language): Look up "main" symbol
2000 and use its language.
2001 * symtab.c (find_main_filename): Remove.
2002 * symtab.h (find_main_filename): Remove.
2003
2004 2013-08-07 Tom Tromey <tromey@redhat.com>
2005
2006 * dwarf2read.c (recursively_compute_inclusions): Add
2007 "immediate_parent" argument. Set symtab's "user" field
2008 if not set.
2009 (compute_symtab_includes): Update.
2010
2011 2013-08-07 Tom Tromey <tromey@redhat.com>
2012
2013 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2014 when adding label symbols.
2015
2016 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2017 Ulrich Weigand <uweigand@de.ibm.com>
2018
2019 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2020 * configure.host (powerpc64-*-aix*): Likewise.
2021
2022 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2023 Ulrich Weigand <uweigand@de.ibm.com>
2024
2025 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2026 is defined.
2027 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2028 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2029 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2030 * configure.ac: Check for ptrace64.
2031 * configure, config.in: Regenerate.
2032
2033 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2034 Ulrich Weigand <uweigand@de.ibm.com>
2035
2036 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2037 Call ptrace64 instead of ptrace if defined.
2038 Add macro addr_ptr to take care of ptrace address argument.
2039 (pdc_read_regs): Likewise.
2040 (pdc_write_regs): Likewise.
2041 (aix_thread_resume): Likewise.
2042 (fetch_regs_kernel_thread): Likewise.
2043 (store_regs_kernel_thread): Likewise.
2044
2045 2013-08-07 Anton Blanchard <anton@samba.org>
2046
2047 * MAINTAINERS: Add myself to Write After Approval.
2048
2049 2013-08-05 Tom Tromey <tromey@redhat.com>
2050
2051 * aix-thread.c (_initialize_aix_thread): Use
2052 complete_target_initialization.
2053 * bsd-uthread.c (_initialize_bsd_uthread): Use
2054 complete_target_initialization.
2055 * dec-thread.c (_initialize_dec_thread): Use
2056 complete_target_initialization.
2057 * ravenscar-thread.c (_initialize_ravenscar): Use
2058 complete_target_initialization.
2059 * sol-thread.c (_initialize_sol_thread): Use
2060 complete_target_initialization.
2061 * spu-multiarch.c (_initialize_spu_multiarch): Use
2062 complete_target_initialization.
2063
2064 2013-08-05 Tom Tromey <tromey@redhat.com>
2065
2066 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2067 * ada-lang.c (ada_lookup_simple_minsym): Return
2068 bound_minimal_symbol.
2069 * ada-lang.h (ada_lookup_simple_minsym): Update.
2070 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2071 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2072 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2073 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2074 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2075 * minsyms.c (msymbol_objfile): Remove.
2076 (lookup_minimal_symbol_internal): New function, from
2077 lookup_minimal_symbol.
2078 (lookup_minimal_symbol): Rewrite using
2079 lookup_minimal_symbol_internal.
2080 (lookup_bound_minimal_symbol): New function.
2081 * minsyms.h (msymbol_objfile): Remove.
2082 (lookup_bound_minimal_symbol): Declare.
2083 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2084 * parse.c (write_exp_msymbol): Change parameter to a
2085 bound_minimal_symbol.
2086 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2087 * parser-defs.h (write_exp_msymbol): Update.
2088 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2089 * symfile.c (simple_read_overlay_table): Use
2090 lookup_bound_minimal_symbol.
2091 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2092 (search_symbols): Likewise.
2093 (print_msymbol_info): Take a bound_minimal_symbol argument.
2094 (symtab_symbol_info, rbreak_command): Update.
2095 * symtab.h (struct symbol_search) <msymbol>: Change type
2096 to bound_minimal_symbol.
2097 * valops.c (find_function_in_inferior): Use
2098 lookup_bound_minimal_symbol.
2099 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2100
2101 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2102
2103 Code cleanup.
2104 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2105 to ...
2106 (async_cleanup_sigint_signal_handler): ... this.
2107 (initialize_sigint_signal_handler): Remove declaration.
2108 (handle_remote_sigint): Rename the declaration to ...
2109 (async_handle_remote_sigint): ... this.
2110 (handle_remote_sigint_twice): Rename the declaration to ...
2111 (async_handle_remote_sigint_twice): ... this.
2112 (async_remote_interrupt, async_remote_interrupt_twice)
2113 (remote_interrupt): Remove the declarations.
2114 (remote_interrupt_twice): Rename the declaration ...
2115 (sync_remote_interrupt_twice): ... this.
2116 (sigint_remote_twice_token): Rename the variable to ...
2117 (async_sigint_remote_twice_token): ... this.
2118 (sigint_remote_token): Rename the variable to ...
2119 (async_sigint_remote_token): ... this.
2120 (initialize_sigint_signal_handler): Rename the function to ...
2121 (async_initialize_sigint_signal_handler): ... this. Update the name
2122 inside.
2123 (handle_remote_sigint): Rename the function to ...
2124 (async_handle_remote_sigint): ... this. Update the names inside.
2125 (handle_remote_sigint_twice): Rename the function to ...
2126 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2127 (cleanup_sigint_signal_handler): Rename the function to ...
2128 (async_cleanup_sigint_signal_handler): ... this.
2129 (remote_interrupt): Rename the function to ...
2130 (sync_remote_interrupt): this. Update the names inside.
2131 (remote_interrupt_twice): Rename the function to ...
2132 (sync_remote_interrupt_twice): this. Update the names inside.
2133 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2134 (_initialize_remote): Update the names inside.
2135
2136 2013-08-02 Tom Tromey <tromey@redhat.com>
2137
2138 PR symtab/15719:
2139 * breakpoint.c (update_watchpoint, watchpoint_check)
2140 (watch_command_1): Update.
2141 * eval.c (fetch_subexp_value): Add "preserve_errors"
2142 parameter.
2143 * ppc-linux-nat.c (check_condition): Update.
2144 * value.h (fetch_subexp_value): Update.
2145
2146 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
2147
2148 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2149 add_file_handler.
2150
2151 2013-08-01 Doug Evans <dje@google.com>
2152
2153 PR symtab/15691
2154 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2155 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2156 Add assert of sig_entry->dwo_unit == NULL.
2157 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2158 had already been read.
2159 (read_signatured_type): Set per_cu.tu_read.
2160
2161 PR symtab/15695
2162 * valops.c (value_struct_elt): Add missing call to check_typedef.
2163 (value_find_oload_method_list): Ditto.
2164
2165 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2166 effectively, struct symbol_search **.
2167 (make_cleanup_free_search_symbols): Change arg to struct
2168 symbol_search **. All callers updated.
2169 (compare_search_syms): Compare symtab file name and block as well.
2170 (search_symbols_equal): New function.
2171 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2172 New args new_head, new_tail. Result is now void. Remove dups after
2173 sorting the symbols.
2174 (search_symbols): Sort all found symbols once, after all have been
2175 found, and remove duplicates. Simplify cleanup tracking of result.
2176 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2177
2178 Further workarounds for binutils/15021.
2179 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2180 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2181 Watch for duplicate symtabs coming from type units.
2182 (compute_symtab_includes): Update call to
2183 recursively_compute_inclusions. Build vector of included symtabs
2184 instead of per_cus.
2185 * symtab.h (symtab_ptr): New typedef.
2186 (DEF_VEC_P (symtab_ptr)): New VEC type.
2187 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2188 instead.
2189
2190 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
2191
2192 * cli/cli-script.c (script_from_file): Remove use of
2193 error_pre_print.
2194 * main.c (captured_main): Remove use of error_pre_print and
2195 quit_pre_print.
2196 * utils.c (error_pre_print, quit_pre_print): Remove.
2197 * utils.h (error_pre_print, quit_pre_print): Likewise.
2198
2199 2013-08-01 Yao Qi <yao@codesourcery.com>
2200
2201 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2202 with mi_getopt.
2203 (mi_cmd_stack_list_variables): Likewise.
2204
2205 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2206
2207 * exceptions.c (deprecated_throw_reason): Remove.
2208 * exceptions.h (deprecated_throw_reason): Remove.
2209
2210 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2211
2212 * remote-mips.c (mips_error): Replace use of
2213 deprecated_throw_reason with throw_verror. Use the error message
2214 passed to mips_error as the error message for throw_verror.
2215
2216 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2217
2218 * monitor.c (monitor_interrupt_query): Replace use of
2219 deprecated_throw_reason with quit.
2220 * nto-procfs.c (interrupt_query): Likewise.
2221 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2222 * remote-mips.c (mips_kill): Likewise.
2223 * remote.c (interrupt_query): Likewise.
2224
2225 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2226
2227 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2228 with call to fatal.
2229
2230 2013-07-31 Pedro Alves <pedro@codesourcery.com>
2231 Yao Qi <yao@codesourcery.com>
2232
2233 * tracepoint.c (trace_dump_command): Select the current frame.
2234
2235 2013-07-30 Doug Evans <dje@google.com>
2236
2237 * dwarf2read.c (process_queue): Add type signature to debug output.
2238
2239 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
2240
2241 * value.c (value_fetch_lazy): Mark optimized out values as such
2242 rather than raising an error.
2243
2244 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
2245
2246 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2247 before checking which bits of the parent, not the child, value are
2248 valid.
2249
2250 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2251
2252 PR gdb/15715
2253 * top.c: Include "filenames.h".
2254 (set_history_filename): New function.
2255 (init_main): Install it as set hook of the "set history filename"
2256 command.
2257
2258 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2259
2260 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2261 attribute parameter.
2262 (dwarf2_const_value_data): Constify struct attribute parameter.
2263 (dwarf2_const_value): Constify struct attribute parameter.
2264 (dwarf2_const_value_attr): Constify struct attribute parameter.
2265 (lookup_die_type): Constify struct attribute parameter.
2266 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2267 (follow_die_ref_or_sig): Constify struct attribute parameter.
2268 (follow_die_ref): Constify struct attribute parameter.
2269 (follow_die_sig): Constify struct attribute parameter.
2270 (get_DW_AT_signature_type): Constify struct attribute parameter.
2271 (get_type_unit_group): Constify struct attribute parameter.
2272 (fill_in_loclist_baton): Constify struct attribute parameter.
2273 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2274 (type_unit_group): Constify struct attribute parameter.
2275
2276 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2277
2278 * dwarf2read.c (attr_form_is_block): Make argument const.
2279 (attr_form_is_section_offset): Make argument const.
2280 (attr_form_is_constant): Make argument const.
2281 (attr_form_is_ref): Make argument const.
2282
2283 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2284
2285 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2286 All uses updated.
2287 (attr_form_is_ref): Moved below attr_form_is_constant.
2288
2289 2013-07-29 Doug Evans <dje@google.com>
2290
2291 * main.c (captured_command_loop): Tweak comment.
2292
2293 * target.c (target_async_permitted_1): Fix comment.
2294
2295 * symtab.c (iterate_over_some_symtabs): Add comment.
2296
2297 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2298
2299 2013-07-27 Yao Qi <yao@codesourcery.com>
2300
2301 * NEWS: Mention that GDBserver now supports hardware
2302 watchpoints on the MIPS GNU/Linux target.
2303
2304 2013-07-27 Yao Qi <yao@codesourcery.com>
2305
2306 * Makefile.in (HFILES_NO_SRCDIR): Add
2307 common/mips-linux-watch.h.
2308 (mips-linux-watch.o): New rule.
2309 * common/mips-linux-watch.c: New.
2310 * common/mips-linux-watch.h: New.
2311 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2312 * mips-linux-nat.c: Include mips-linux-watch.h.
2313 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2314 to common/mips-linux-watch.h.
2315 (MAX_DEBUG_REGISTER): Likewise.
2316 (enum pt_watch_style): Likewise.
2317 (struct mips32_watch_regs): Likewise.
2318 (struct mips64_watch_regs): Likewise.
2319 (struct pt_watch_regs): Likewise.
2320 (struct mips_watchpoint): Likewise.
2321 (mips_linux_watch_get_irw_mask): Move to
2322 common/mips-linux-watch.c.
2323 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2324 (mips_linux_watch_get_watchlo): Likewise.
2325 (mips_linux_watch_set_watchlo): Likewise.
2326 (mips_linux_watch_get_watchhi): Likewise.
2327 (mips_linux_watch_set_watchhi): Likewise.
2328 (mips_linux_read_watch_registers): Likewise.
2329 (mips_linux_watch_type_to_irw): Likewise.
2330 (mips_linux_stopped_data_address, fill_mask): Likewise.
2331 (mips_linux_watch_try_one_watch): Likewise.
2332 (mips_linux_watch_populate_regs): Likewise.
2333
2334 2013-07-27 Yao Qi <yao@codesourcery.com>
2335
2336 * mips-linux-nat.c (get_irw_mask): Rename to ...
2337 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
2338 'set' to 'n'. Update function comment. All callers changed.
2339 (get_reg_mask): Rename parameter 'set' to 'n'. Update
2340 function comment. All callers changed.
2341 (get_num_valid): Rename to ...
2342 (mips_linux_watch_get_num_valid): ... this. Rename parameter
2343 'set' to 'n'. Update function comment. All callers changed.
2344 (get_watchlo): Rename to ...
2345 (mips_linux_watch_get_watchlo): ... this. Rename parameter
2346 'set' to 'n'. Update function comment. All callers changed.
2347 (set_watchlo): Rename to ...
2348 (mips_linux_watch_set_watchlo): ... this. Rename parameter
2349 'set' to 'n'. Update function comment. All callers changed.
2350 (get_watchhi): Rename to ...
2351 (mips_linux_watch_get_watchhi): ... this. Update function
2352 comment. All callers changed.
2353 (set_watchhi): Rename to ...
2354 (mips_linux_watch_set_watchhi): ... this. Update function
2355 comment. All callers changed.
2356 (mips_linux_read_watch_registers): Update function comment.
2357 Add new parameters 'lwpid', 'watch_readback', and
2358 'watch_readback_valid'. Update.
2359 (type_to_irw): Rename to ...
2360 (mips_linux_watch_type_to_irw): ... this. Update function
2361 comment. All callers changed.
2362 (fill_mask): Update function comment.
2363 (try_one_watch): Rename to ...
2364 (mips_linux_watch_try_one_watch): ... this. Change the type
2365 of parameter 'irw' from 'unsigned' to 'uint32_t'.
2366 (populate_regs_from_watches): Rename to ...
2367 (mips_linux_watch_populate_regs): ... this. Add parameter
2368 'current_watches'. All callers changed.
2369
2370 2013-07-27 Yao Qi <yao@codesourcery.com>
2371
2372 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
2373 the code.
2374 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
2375 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
2376 (struct pt_watch_regs): Likewise.
2377 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
2378 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
2379 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
2380 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
2381 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
2382
2383 2013-07-27 Yao Qi <yao@codesourcery.com>
2384
2385 * breakpoint.h: Include break-common.h.
2386 (enum target_hw_bp_type): Move to ...
2387 * common/break-common.h: ... here. New.
2388
2389 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
2390
2391 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
2392 process group regardless of having tty on stdin.
2393
2394 2013-07-25 Doug Evans <dje@google.com>
2395
2396 * linux-fork.h (detach_fork): Delete.
2397
2398 2013-07-25 Tom Tromey <tromey@redhat.com>
2399
2400 PR remote/15256, PR remote/15266:
2401 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
2402 * monitor.c (monitor_detach): Use unpush_target.
2403 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
2404 * remote-mips.c (mips_detach): Use unpush_target. Don't
2405 call mips_close.
2406 * remote-sim.c (gdbsim_detach): Use unpush_target.
2407 * target.c (pop_target): Remove.
2408 (pop_all_targets_above): Don't call target_close.
2409 (target_close): Assert that the target is unpushed.
2410 * target.h (pop_target): Don't declare.
2411 * tracepoint.c (tfile_open): Use unpush_target.
2412
2413 2013-07-25 Tom Tromey <tromey@redhat.com>
2414
2415 * linux-thread-db.c (init_thread_db_ops): Call
2416 complete_target_initialization.
2417 (_initialize_thread_db): Don't call add_target.
2418 * target.c (complete_target_initialization): New function.
2419 (add_target_with_completer): Call it.
2420 * target.h (complete_target_initialization): Declare.
2421
2422 2013-07-25 Mark Kettenis <kettenis@gnu.org>
2423
2424 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
2425 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
2426 (HPPANBSD_SIZEOF_GREGS): New define.
2427 (hppaobsd_supply_gregset): Handle additional registers.
2428 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
2429 we provide more registers now.
2430 (hppabsd_supply_gregset): Supply additional registers.
2431 (hppabsd_collect_gregset): Collect additional registers.
2432
2433 2013-07-25 Mark Kettenis <kettenis@gnu.org>
2434
2435 * hppabsd-tdep.c: Include "dwarf2-frame.h".
2436 (hppabsd_dwarf2_frame_init_reg): New function.
2437 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
2438
2439 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
2440
2441 * mi/mi-main.c (output_register): Make MI 'r' format use standard
2442 'z' format code. Remove error for optimized out values, standard
2443 code will handle these fine.
2444
2445 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
2446
2447 * NEWS: Mention new 'z' formatter.
2448 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
2449 (_initialize_printcmd): Mention 'z' formatter in help text of the
2450 'x' command.
2451
2452 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
2453
2454 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
2455 formatting.
2456
2457 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
2458
2459 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
2460 interface can evaluate arguments. Fallback to the old mode if it
2461 cannot.
2462 (create_exception_master_breakpoint): Likewise.
2463 * elfread.c (elf_can_evaluate_probe_arguments): New function.
2464 (struct sym_probe_fns elf_probe_fns): Export function above to the
2465 probe interface.
2466 * probe.c (can_evaluate_probe_arguments): New function.
2467 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
2468 function pointer.
2469 (can_evaluate_probe_arguments): New function prototype.
2470 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
2471 probe interface can evaluate arguments. Fallback to the old mode
2472 if it cannot.
2473 * stap-probe.c (stap_get_probe_argument_count): Check if probe
2474 interface can evaluate arguments. Warning the user if it cannot.
2475 (stap_can_evaluate_probe_arguments): New function.
2476 (struct probe_ops stap_probe_ops): Export function above to the
2477 probe interface.
2478 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
2479 New function pointer.
2480
2481 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
2482
2483 * Makefile.in (SFILES): Add common/target-common.c.
2484 Add common/target-common.h to headers.
2485 (COMMON_OBS): Add target-common.o.
2486 (target-common.o): New target.
2487 * linux-nat.h (resume_kind): Move to common/target-common.h.
2488 * target.c (target_waitstatus_to_string): Move to
2489 common/target-common.c.
2490 * target.h: Include target-common.h.
2491 (target_waitkind): Move to common/target-common.h.
2492 (target_waitstatus): Likewise.
2493 (TARGET_WNOHANG): Likewise.
2494 * common/target-common.c: New file.
2495 * common/target-common.h: New file.
2496
2497 2013-07-24 Doug Evans <dje@google.com>
2498
2499 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
2500 a warning.
2501
2502 2013-07-23 Yao Qi <yao@codesourcery.com>
2503
2504 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
2505 parameter 'gdbarch'.
2506 (i386_stack_tramp_frame_sniffer): Caller update.
2507 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
2508 parameter 'gdbarch' and 'target'.
2509 (i386_linux_core_read_description): Caller update.
2510 * amd64-linux-tdep.c (amd64_linux_core_read_description):
2511 Likewise.
2512 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
2513 declaration.
2514
2515 2013-07-23 Tom Tromey <tromey@redhat.com>
2516
2517 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
2518 2013-07-22.
2519
2520 2013-07-22 Doug Evans <dje@google.com>
2521
2522 * exec.h (remove_target_sections): Delete arg abfd.
2523 * exec.c (exec_close): Update call to remove_target_sections.
2524 (remove_target_sections): Delete arg abfd.
2525 * solib.c (update_solib_list): Ditto.
2526 (reload_shared_libraries_1): Ditto.
2527 (clear_solib): Ditto, and unconditionally call remove_target_sections.
2528 * target.h (struct target_section): Rename key to owner.
2529 All uses updated.
2530
2531 2013-07-22 Tom Tromey <tromey@redhat.com>
2532
2533 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
2534
2535 2013-07-22 Tom Tromey <tromey@redhat.com>
2536
2537 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
2538 Simplify cleanup handling.
2539
2540 2013-07-22 Tom Tromey <tromey@redhat.com>
2541
2542 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
2543 on all return paths.
2544
2545 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2546
2547 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
2548 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
2549 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
2550
2551 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
2552
2553 * top.c (print_gdb_version): Add help, apropos description and
2554 url to online documentation.
2555
2556 2013-07-19 Hui Zhu <hui@codesourcery.com>
2557
2558 PR gdb/15692
2559 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
2560
2561 2013-07-19 Yao Qi <yao@codesourcery.com>
2562
2563 * target.c (update_current_target): Change the default action
2564 of 'to_traceframe_info' from tcomplain to return_zero.
2565 * target.h (struct target_ops) <to_traceframe_info>: Add more
2566 comments.
2567 * valops.c (read_value_memory): Call
2568 traceframe_available_memory unconditionally.
2569
2570 2013-07-18 Yao Qi <yao@codesourcery.com>
2571
2572 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
2573 if the name is prefixed by "__imp_" or "_imp_", look for minimal
2574 symbol without prefix. If found, set its type to
2575 'mst_solib_trampoline'.
2576
2577 2013-07-17 Doug Evans <dje@google.com>
2578
2579 * NEWS: Mention "set print raw frame-arguments".
2580 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
2581 * stack.c (print_raw_frame_arguments): New static global.
2582 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
2583 (_initialize_stack): New command "set/show print raw frame-arguments".
2584 * valprint.c (setprintrawlist, showprintrawlist): New globals.
2585 (set_print_raw, show_print_raw): New functions.
2586 (_initialize_valprint): New prefix command "set/show print raw".
2587 * valprint.h (value_print_options): Improve comments.
2588
2589 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
2590 of all *list variables.
2591
2592 * gdbcmd.h (togglelist): Delete.
2593 * cli/cli-cmds.c (togglelist): Delete.
2594 (init_cmd_lists): Update.
2595 * cli/cli-cmds.h (togglelist): Delete.
2596
2597 2013-07-17 Tom Tromey <tromey@redhat.com>
2598
2599 * dwarf2read.c (dwarf2_per_objfile_free): Clear
2600 dwarf2_per_objfile.
2601
2602 2013-07-16 Doug Evans <dje@google.com>
2603
2604 * nto-tdep.c (nto_relocate_section_addresses): Update,
2605 target_section.bfd deleted.
2606 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
2607 * s390-tdep.c (s390_load): Ditto.
2608 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
2609
2610 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
2611
2612 * common/format.c (parse_format_string): Add checks for NULL
2613 character before calling strchr.
2614
2615 2013-07-16 Doug Evans <dje@google.com>
2616
2617 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
2618 temp_pathname argument.
2619 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
2620 when opening the file fails.
2621
2622 * target.h (struct target_section): Delete member bfd.
2623 All users updated to use the_bfd_section->owner instead.
2624 * exec.c (add_to_section_table): Assert bfd is expected value.
2625 Remove initialization of target_section.bfd.
2626 (remove_target_sections): Update.
2627 (section_table_available_memory): Update.
2628 (section_table_xfer_memory_partial): Update.
2629 (print_section_info): Update.
2630 (exec_set_section_address): Update.
2631 * record-full.c (record_full_core_xfer_partial): Update.
2632 * solib-svr4.c (svr4_relocate_section_addresses): Update.
2633 * solib-target.c (solib_target_relocate_section_addresses): Update.
2634 * symfile.c (build_section_addr_info_from_section_table): Update.
2635 * target.c (memory_xfer_live_readonly_partial): Update.
2636 (memory_xfer_partial_1): Update.
2637
2638 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2639
2640 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
2641 now available for embedded (BookE) and server (BookS) processors,
2642 correct mentions of 'booke' and adjust comments accordingly in order to
2643 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
2644 (have_ptrace_booke_interface): Rename function and variable
2645 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
2646 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
2647 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
2648 'hwdebug_point_cmp'. Update all uses.
2649 (booke_find_thread_points_by_tid): Rename function
2650 'booke_find_thread_points_by_tid' to
2651 'hwdebug_find_thread_points_by_tid'. Update all uses.
2652 (booke_insert_point): Rename function 'booke_insert_point' to
2653 'hwdebug_insert_point'. Update all uses.
2654 (booke_remove_point): Rename function 'booke_remove_point' to
2655 'hwdebug_remove_point'. Update all uses.
2656
2657 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
2658
2659 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
2660 numbers with enum values.
2661
2662 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
2663
2664 PR threads/13217
2665 * thread.c (thread_apply_all_command): Check for valid threads
2666 and thread count.
2667 (thread_array_cleanup): New struct.
2668 (set_thread_refcount): New function.
2669
2670 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
2671
2672 * infcmd.c (default_print_one_register_info): Reuse function
2673 print_hex_chars.
2674
2675 2013-07-10 Tom Tromey <tromey@redhat.com>
2676
2677 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
2678 (ada-exp.o): New target.
2679
2680 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
2681
2682 * mt-tdep.c (mt_registers_info): Call
2683 get_no_prettyformat_print_options instead of
2684 get_raw_print_options (regression by last patch from Doug
2685 Evans).
2686
2687 2013-07-09 Pedro Alves <palves@redhat.com>
2688
2689 Checked in by Joel Brobecker <brobecker@adacore.com>.
2690 * ada-lang.c (coerce_unspec_val_to_type): Use
2691 value_optimized_out_const.
2692 * value.c (value_optimized_out_const): New function.
2693 * value.h (value_optimized_out_const): New declaration.
2694
2695 2013-07-09 Doug Evans <dje@google.com>
2696
2697 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
2698 Enum values rename as well. All uses updated.
2699 * valprint.h (value_print_options): Rename member pretty to
2700 pretty format. Rename member prettyprint_arrays to
2701 prettyformat_arrays. Rename member prettyprint_structs to
2702 prettyformat_structs. All uses updated.
2703 (get_no_prettyformat_print_options): Renamed from
2704 get_raw_print_options.
2705 * valprint.c (get_no_prettyformat_print_options): Renamed from
2706 get_raw_print_options. All callers updated.
2707 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
2708 All callers updated.
2709 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
2710 All callers updated.
2711 (_initialize_valprint): Improve help text for "set print pretty" and
2712 "set print arrays".
2713
2714 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
2715
2716 * value.c (value_bits_valid): Revert previous change, and change
2717 by Pedro on 2013-07-04, due to regressions in
2718 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
2719
2720 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
2721 Pedro Alves <palves@redhat.com>
2722
2723 * value.c (value_bits_valid): If the value is not lval_computed
2724 or has no check validity handler then the answer is the
2725 optimized_out flag, otherwise defer to the handler.
2726
2727 2013-07-06 Eli Zaretskii <eliz@gnu.org>
2728
2729 * top.c (print_gdb_configuration): Explain in output of
2730 --configuration what does "relocatable" mean.
2731
2732 * main.c (print_gdb_help): Regroup options in the --help text.
2733 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
2734 the relevant discussions.
2735
2736 2013-07-06 Yao Qi <yao@codesourcery.com>
2737
2738 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
2739 Remove parameter 'lsal'.
2740 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
2741 to inner block. Caller update.
2742 (base_breakpoint_create_breakpoints_sal): Update.
2743 (bkpt_create_breakpoints_sal): Likewise.
2744 (tracepoint_create_breakpoints_sal): Likewise.
2745 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
2746 element 0 of vector 'canonical->sals'.
2747
2748 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
2749
2750 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
2751 register number instead of the pseudo register one.
2752 (rs6000_dwarf2_reg_to_regnum): Likewise.
2753
2754 2013-07-04 Pedro Alves <palves@redhat.com>
2755
2756 * findvar.c (value_of_register): Use allocate_optimized_out_value
2757 if the register has been optimized out, instead of
2758 set_value_optimized_out.
2759 * frame-unwind.c (frame_unwind_got_optimized): Use
2760 allocate_optimized_out_value.
2761
2762 2013-07-04 Pedro Alves <palves@redhat.com>
2763
2764 * value.c (value_bits_valid): If the value is not lval_computed,
2765 or doesn't have a check_validity hook, assume the value is entirely
2766 valid.
2767
2768 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
2769
2770 * stack.c (read_frame_arg): No longer fetch lazy values.
2771 * value.c (value_optimized_out): If the value is not already
2772 marked optimized out, and is lazy then fetch it.
2773 (value_primitive_field): Move optimized out check to later in the
2774 function, after we have loaded any lazy values.
2775 (value_fetch_lazy): Use optimized out flag directly rather than
2776 calling optimized_out method.
2777
2778 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
2779
2780 * valops.c: Don't include "user-regs.h".
2781 (value_fetch_lazy): Moved to value.c.
2782 * value.c: Include "user-regs.h".
2783 (value_fetch_lazy): Moved from valops.c.
2784
2785 2013-07-04 Yao Qi <yao@codesourcery.com>
2786
2787 Revert:
2788 2013-06-27 Yao Qi <yao@codesourcery.com>
2789
2790 * common/create-version.sh: Update comments. Handle the case
2791 that TARGET_ALIAS is empty.
2792
2793 2013-07-03 Pedro Alves <palves@redhat.com>
2794
2795 * Makefile.in (config.status): Depend on development.sh.
2796 (aclocal_m4_deps): Add libmcheck.m4.
2797 * acinclude.m4: Include libmcheck.m4.
2798 * configure.ac: Source development.sh instead of setting
2799 'development' here. --enable-libmcheck/--disable-libmcheck code
2800 factored out to GDB_AC_LIBMCHECK. Run it.
2801 * development.sh: New file.
2802 * libmcheck.m4: New file.
2803 * configure: Regenerate.
2804
2805 2013-07-02 Tom Tromey <tromey@redhat.com>
2806
2807 * contrib/ari/update-web-ari.sh: Update for version.in change.
2808
2809 2013-07-02 Tom Tromey <tromey@redhat.com>
2810
2811 * common/ptid.h: Comment fixes.
2812
2813 2013-07-01 Tom Tromey <tromey@redhat.com>
2814
2815 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
2816 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
2817 (dwarf2_read_index, create_all_comp_units): Update.
2818
2819 2013-07-01 Tom Tromey <tromey@redhat.com>
2820
2821 * configure.ac (build_warnings): Add -Wold-style-definition.
2822 * configure: Rebuild.
2823 * machoread.c (_initialize_machoread): Use "(void)".
2824 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
2825 use "(void)".
2826
2827 2013-07-01 Tom Tromey <tromey@redhat.com>
2828
2829 * configure.ac (build_warnings): Add -Wold-style-declaration.
2830 * configure: Rebuild.
2831 * dsrec.c (make_srec): Use "static const", not "const static".
2832 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
2833 not "const static".
2834 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
2835 Use "static const", not "const static".
2836 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
2837 not "const static".
2838 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
2839 not "const static".
2840 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
2841 not "const static".
2842 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
2843 not "const static".
2844 (v850_dbtrap_breakpoint_from_pc): Likewise.
2845 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
2846 not "const static".
2847
2848 2013-07-01 Tom Tromey <tromey@redhat.com>
2849
2850 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
2851 * configure: Rebuild.
2852
2853 2013-07-01 Pedro Alves <palves@redhat.com>
2854
2855 * defs.h: Include "pathmax.h".
2856 * utils.c: Don't include sys/param.h.
2857 (gdb_realpath): Remove code that checks for MAXPATHLEN.
2858 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
2859 instead of MAXPATHLEN.
2860 * solib-sunos.c: Don't include sys/param.h.
2861 * xcoffread.c: Don't include sys/param.h.
2862 * bsd-kvm.c: Don't include sys/param.h.
2863 * darwin-nat.c: Don't include sys/param.h.
2864 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
2865 * darwin-nat-info.c: Don't include sys/param.h.
2866 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
2867 MAXPATHLEN.
2868 * i386obsd-nat.c: Don't include sys/param.h.
2869 * inf-child.c: Don't include sys/param.h.
2870 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
2871 * linux-fork.c: Don't include sys/param.h.
2872 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
2873 * linux-nat.c: Don't include sys/param.h.
2874 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
2875 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
2876 * m68klinux-nat.c: Don't include sys/param.h.
2877 * nbsd-nat.c: Don't include sys/param.h.
2878 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
2879 * ppc-linux-nat.c: Don't include sys/param.h.
2880 * rs6000-nat.c: Don't include sys/param.h.
2881 * spu-linux-nat.c. Don't include sys/param.h.
2882 * windows-nat.c: Don't include sys/param.h.
2883 * xtensa-linux-nat.c: Don't include sys/param.h.
2884 * config/i386/nm-fbsd.h: Don't include sys/param.h.
2885
2886 2013-07-01 Pedro Alves <palves@redhat.com>
2887
2888 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
2889 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
2890 * gnulib/aclocal.m4: Regenerate.
2891 * gnulib/config.in: Regenerate.
2892 * gnulib/configure: Regenerate.
2893 * gnulib/import/pathmax.h: New file.
2894 * gnulib/import/Makefile.am: Regenerate.
2895 * gnulib/import/Makefile.in: Regenerate.
2896 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2897 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
2898 * gnulib/import/m4/pathmax.m4: New file.
2899
2900 2013-07-01 Pedro Alves <palves@redhat.com>
2901
2902 * configure.ac (GDBINIT): Define, depending on host.
2903 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
2904 * top.c (PATH_MAX): Delete fallback definition.
2905 (GDBINIT_FILENAME): Delete.
2906 (gdbinit): Reimplement as const char array set to the GDBINIT
2907 string constant.
2908 * top.h (gdbinit): Make const.
2909 * configure, config.in: Regenerate.
2910
2911 2013-07-01 Pedro Alves <palves@redhat.com>
2912
2913 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
2914 * cli/cli-cmds.h (source_script): Likewise.
2915 * exceptions.c (catch_command_errors_const): New function.
2916 * exceptions.h (catch_command_errors_const): Declare.
2917 * main.c (get_init_files): Make parameters const, and adjust.
2918 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
2919 'local_gdbinit' locals const. Adjust to use
2920 catch_command_errors_const.
2921 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
2922 'local_gdbinit' locals const.
2923
2924 2013-07-01 Pedro Alves <palves@redhat.com>
2925
2926 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
2927 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
2928 * tracepoint.c: Don't check HAVE_UNISTD_H before including
2929 <unistd.h>.
2930
2931 2013-07-01 Pedro Alves <palves@redhat.com>
2932
2933 Import the "unistd" gnulib module.
2934 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
2935 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
2936 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
2937 import/m4/unistd_h.m4.
2938 * gnulib/aclocal.m4: Renenerate.
2939 * gnulib/config.in: Renenerate.
2940 * gnulib/configure: Renenerate.
2941 * gnulib/import/Makefile.am: Renenerate.
2942 * gnulib/import/Makefile.in: Renenerate.
2943 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
2944 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
2945 * gnulib/import/m4/off_t.m4: New file.
2946 * gnulib/import/m4/ssize_t.m4: New file.
2947 * gnulib/import/m4/sys_types_h.m4: New file.
2948 * gnulib/import/m4/unistd_h.m4: New file.
2949 * gnulib/import/sys_types.in.h: New file.
2950 * gnulib/import/unistd.c: New file.
2951 * gnulib/import/unistd.in.h: New file.
2952
2953 2013-07-01 Pedro Alves <palves@redhat.com>
2954
2955 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
2956 defined instead of checking HAVE_UNISTD_H.
2957
2958 2013-07-01 Pedro Alves <palves@redhat.com>
2959
2960 Reimport gnulib from scratch.
2961 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
2962 import/m4/onceonly.m4.
2963 * gnulib/aclocal.m4: Renegerate.
2964 * gnulib/config.in: Renegerate.
2965 * gnulib/configure: Renegerate.
2966 * gnulib/import/Makefile.in: Renegerate.
2967 * gnulib/import/extra/update-copyright: Renegerate.
2968 * gnulib/import/m4/onceonly.m4: Delete.
2969
2970 2013-07-01 Pedro Alves <palves@redhat.com>
2971
2972 * tui/tui-regs.c (pagination_enabled): Delete declaration.
2973
2974 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2975
2976 Code cleanup.
2977 * remote.c (async_remote_interrupt_twice): Make it static.
2978 * remote.h (async_remote_interrupt_twice): Remove the declaration.
2979
2980 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
2981
2982 * ia64-linux-tdep.c: Include <ctype.h>.
2983 (ia64_linux_stap_is_single_operand): New function.
2984 (ia64_linux_init_abi): Initialize SystemTap related attributes.
2985
2986 2013-06-28 Tom Tromey <tromey@redhat.com>
2987
2988 * Makefile.in (version.c): Use version.in, not
2989 common/version.in.
2990 * common/create-version.sh: Likewise.
2991 * common/version.in: Move...
2992 * version.in: ...here.
2993
2994 2013-06-28 Pedro Alves <palves@redhat.com>
2995
2996 * infrun.c (set_observer_mode): Don't declare pagination_enabled
2997 here.
2998 * utils.h (pagination_enabled): Declare.
2999
3000 2013-06-28 Pedro Alves <palves@redhat.com>
3001
3002 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3003 Move higher up in file.
3004
3005 2013-06-28 Tom Tromey <tromey@redhat.com>
3006
3007 * tracepoint.c (deprecated_readline_begin_hook)
3008 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3009 declare.
3010
3011 2013-06-28 Pedro Alves <palves@redhat.com>
3012
3013 PR tui/14880
3014 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3015 checking if they're available.
3016 * value.c (value_available_contents_eq): Change comment.
3017 * value.h (value_available_contents_eq): Expand comment.
3018
3019 2013-06-27 Tom Tromey <tromey@redhat.com>
3020
3021 * target.c (find_run_target): Remove.
3022 * target.h (find_run_target): Remove.
3023
3024 2013-06-27 Tom Tromey <tromey@redhat.com>
3025
3026 * corelow.c (core_gdbarch): Now static.
3027
3028 2013-06-27 Tom Tromey <tromey@redhat.com>
3029
3030 * target.c (target_struct_index): Remove.
3031
3032 2013-06-27 Pedro Alves <palves@redhat.com>
3033
3034 * infrun.c: Remove comment describing the 'stepping over runtime
3035 loader dynamic symbol resolution code' mechanism; moved to
3036 gdbint.texinfo.
3037
3038 2013-06-27 Pedro Alves <palves@redhat.com>
3039
3040 * exceptions.c (catch_command_errors): Remove spurious space.
3041 * exceptions.h (catch_command_errors): Second parameter is "arg",
3042 not "command".
3043
3044 2013-06-27 Yao Qi <yao@codesourcery.com>
3045
3046 * common/create-version.sh: Update comments. Handle the case
3047 that TARGET_ALIAS is empty.
3048
3049 2013-06-26 Pedro Alves <palves@redhat.com>
3050
3051 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3052 comment.
3053
3054 2013-06-26 Pedro Alves <palves@redhat.com>
3055
3056 * infrun.c: Update comments on stepping over runtime loader
3057 dynamic symbol resolution code.
3058
3059 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3060
3061 * ax-gdb.h (union exp_element): Forward declare.
3062 * parser-defs.h: Include expression.h.
3063
3064 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3065
3066 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3067
3068 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3069
3070 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3071
3072 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3073
3074 Fix trace-status to output proper start-time and stop-time.
3075 * tracepoint.c (trace_status_command): Fix type of printf arg to
3076 prevent improper type conversion.
3077 (trace_status_mi): Likewise.
3078
3079 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3080
3081 * mips-tdep.c (mips_next_pc): Fix a typo.
3082
3083 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3084
3085 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3086
3087 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3088 Yao Qi <yao@codesourcery.com>
3089
3090 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3091 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3092 * mi/mi-main.c (print_variable_or_computed): New function.
3093 (mi_cmd_trace_frame_collected): New function.
3094 * tracepoint.c (find_trace_state_variable_by_number): New.
3095 (struct traceframe_info): Move to tracepoint.h
3096 (struct collection_list): Likewise.
3097 (do_collect_symbol): Include locals and arguments in the
3098 collected variables list.
3099 (clear_collection_list): Clear wholly collected variables list
3100 and computed variables list.
3101 (append_exp): New function.
3102 (encode_actions_1): Include variables in the wholly
3103 collected variables list. Include memory ranges and
3104 full-fledged expressions in the computed expressions list.
3105 (encode_actions): Move some code to ...
3106 Return the cleanup chain.
3107 (encode_actions_rsp): ... here. New function.
3108 (get_traceframe_location, get_traceframe_info): Remove static.
3109 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3110 (struct collection_list): Moved from tracepoint.c. Add two
3111 new fields 'wholly_collected' and 'computed'.
3112 (find_trace_state_variable_by_number): Declare.
3113 (encode_actions): Adjust declaration.
3114 (encode_actions_rsp): Declare.
3115 (get_traceframe_info, get_traceframe_location): Declare.
3116
3117 * NEWS: Mention new MI command -trace-frame-collected.
3118
3119 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3120 Yao Qi <yao@codesourcery.com>
3121
3122 * ctf.c (ctf_traceframe_info): Push trace state variables
3123 present in the trace data into the traceframe info object.
3124 * breakpoint.c (DEF_VEC_I): Remove.
3125 * common/filestuff.c (DEF_VEC_I): Likewise.
3126 * dwarf2loc.c (DEF_VEC_I): Likewise.
3127 * mi/mi-main.c (DEF_VEC_I): Likewise.
3128 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3129 * features/traceframe-info.dtd: Add tvar element and its
3130 attributes.
3131 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3132 (build_traceframe_info): Push trace state variables present in
3133 the trace data into the traceframe info object.
3134 (traceframe_info_start_tvar): New function.
3135 (tvar_attributes): New.
3136 (traceframe_info_children): Add "tvar" element.
3137 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3138
3139 * NEWS: Mention the change in GDB and GDBserver.
3140
3141 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3142 Yao Qi <yao@codesourcery.com>
3143
3144 * tracepoint.c (trace_dump_command): Move code to ...
3145 (get_traceframe_location): ... here. New.
3146
3147 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3148 Yao Qi <yao@codesourcery.com>
3149
3150 * tracepoint.c (trace_dump_command): GDB emits an error
3151 instead of a warning when a traceframe is not selected.
3152
3153 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3154 Yao Qi <yao@codesourcery.com>
3155
3156 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3157 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3158 in collection_list.
3159 (do_clear_collection_list, init_collection_list): New.
3160 (encode_actions): Add local variables 'tracepoint_list' and
3161 'stepping_list'. Call init_collection_list and make cleanup
3162 which calls do_clear_collection_list. Don't call
3163 clear_collection_list.
3164 (_initialize_tracepoint): Delete references to
3165 'tracepoint_list' and 'stepping_list'.
3166
3167 2013-06-25 Tom Tromey <tromey@redhat.com>
3168
3169 * common/create-version.sh (date): Use "$", not "$$" in sed
3170 expression.
3171
3172 2013-06-25 Kevin Buettner <kevinb@redhat.com>
3173
3174 * NEWS (New targets): Add entry for TI MSP430.
3175
3176 2013-06-25 Yao Qi <yao@codesourcery.com>
3177
3178 * remote.c (remote_start_remote): Move code to upload tsv
3179 earlier.
3180
3181 2013-06-25 Yao Qi <yao@codesourcery.com>
3182 Hui Zhu <hui@codesourcery.com>
3183 Pedro Alves <palves@redhat.com>
3184
3185 PR breakpoints/15075
3186 PR breakpoints/15434
3187 * breakpoint.c (bpstat_stop_status): Call
3188 b->ops->after_condition_true.
3189 (update_dprintf_command_list): Don't append "continue" command
3190 to the command list of dprintf breakpoint.
3191 (base_breakpoint_after_condition_true): New function.
3192 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3193 (dprintf_after_condition_true): New function.
3194 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3195 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3196
3197 2013-06-24 Kevin Buettner <kevinb@redhat.com>
3198
3199 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3200 (ALLDEPFILES): Add msp430-tdep.c.
3201 * configure.tgt (msp430*-*-elf): New target.
3202 * msp430-tdep.c: New file.
3203
3204 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3205
3206 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3207 microMIPS synthetic symbols.
3208
3209 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3210
3211 * objfiles.h (pc_in_section): New prototype.
3212 (in_plt_section): Remove name argument, replace prototype with
3213 static inline function.
3214 * mips-tdep.h: Include "objfiles.h".
3215 (in_mips_stubs_section): New function.
3216 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3217 in_solib_call_trampoline member.
3218 (hppa_in_solib_call_trampoline): Remove name argument.
3219 * objfiles.c (pc_in_section): New function.
3220 (in_plt_section): Remove function.
3221 * mips-linux-tdep.c: Include "objfiles.h".
3222 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3223 name argument. Return 1 rather than the low 16-bit halfword of
3224 any instruction examined.
3225 (mips_linux_in_dynsym_resolve_code): Update
3226 mips_linux_in_dynsym_stub call accordingly.
3227 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3228 rather than an equivalent hand-coded sequence.
3229 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3230 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3231 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3232 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3233 in_opd_section.
3234 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3235 on call to tdep->in_solib_call_trampoline.
3236 (hppa_in_solib_call_trampoline): Remove name argument, update
3237 according to in_plt_section change.
3238 (hppa_skip_trampoline_code): Update according to in_plt_section
3239 change.
3240 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3241 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3242 Likewise.
3243 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3244 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3245 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3246 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3247 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3248 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3249 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3250 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3251 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3252 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3253 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3254 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3255 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3256
3257 2013-06-24 Joel Brobecker <brobecker@adacore.com>
3258
3259 * common/create-version.sh: Fix expansion of $host_alias
3260 and $target_alias in generation of HOST_NAME and TARGET_NAME
3261 (resp.).
3262
3263 2013-06-24 Tom Tromey <tromey@redhat.com>
3264
3265 * common/create-version.sh: New file.
3266 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3267 create-version.sh.
3268 (HFILES_NO_SRCDIR): Use common/version.h.
3269 * version.in: Move to ...
3270 * common/version.in: ... here. Replace date with "DATE".
3271 * version.h: Move to ...
3272 * common/version.h: ... here.
3273
3274 2013-06-21 Joel Brobecker <brobecker@adacore.com>
3275
3276 * gdb/gnulib/Makefile.in: Update date in copyright header.
3277 * gdb/gnulib/configure.ac: Ditto.
3278 * gdb/gnulib/update-gnulib.sh: Ditto.
3279
3280 2013-06-21 Joel Brobecker <brobecker@adacore.com>
3281
3282 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3283 "gdb/gnulib/import".
3284
3285 2013-06-21 Will Newton <will.newton@linaro.org>
3286
3287 * doublest.c (ldfrexp): Remove function.
3288 (convert_doublest_to_floatformat): Call frexpl instead of
3289 ldfrexp.
3290
3291 2013-06-21 Will Newton <will.newton@linaro.org>
3292
3293 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3294 * gnulib/aclocal.m4: Regenerate.
3295 * gnulib/config.in: Regenerate.
3296 * gnulib/configure: Regenerate.
3297 * gnulib/import/Makefile.am: Update.
3298 * gnulib/import/Makefile.in: Update.
3299 * gnulib/import/m4/gnulib-cache.m4: Update.
3300 * gnulib/import/m4/gnulib-comp.m4: Update.
3301 * gnulib/import/float+.h: Import.
3302 * gnulib/import/float.c: Import.
3303 * gnulib/import/float.in.h: Import.
3304 * gnulib/import/fpucw.h: Import.
3305 * gnulib/import/frexp.c: Import.
3306 * gnulib/import/frexpl.c: Import.
3307 * gnulib/import/isnan.c: Import.
3308 * gnulib/import/isnand-nolibm.h: Import.
3309 * gnulib/import/isnand.c: Import.
3310 * gnulib/import/isnanl-nolibm.h: Import.
3311 * gnulib/import/isnanl.c: Import.
3312 * gnulib/import/itold.c: Import.
3313 * gnulib/import/m4/exponentd.m4: Import.
3314 * gnulib/import/m4/exponentl.m4: Import.
3315 * gnulib/import/m4/float_h.m4: Import.
3316 * gnulib/import/m4/fpieee.m4: Import.
3317 * gnulib/import/m4/frexp.m4: Import.
3318 * gnulib/import/m4/frexpl.m4: Import.
3319 * gnulib/import/m4/isnand.m4: Import.
3320 * gnulib/import/m4/isnanl.m4: Import.
3321 * gnulib/import/m4/math_h.m4: Import.
3322 * gnulib/import/math.c: Import.
3323 * gnulib/import/math.in.h: Import.
3324
3325 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3326
3327 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
3328 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
3329 signature_INTEL_edx comparisons.
3330
3331 2013-06-20 Doug Evans <dje@google.com>
3332
3333 symtab/15652
3334 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
3335 All callers updated.
3336 (open_dwp_file): If we can't find the dwp file, search the basename
3337 in debug-file-directory.
3338
3339 * dwarf2read.c (struct dwp_file): Fix comment.
3340 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
3341
3342 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
3343 better.
3344
3345 2013-06-20 Yao Qi <yao@codesourcery.com>
3346
3347 * breakpoint.c (create_breakpoint): Fix code indentation.
3348
3349 2013-06-20 Yao Qi <yao@codesourcery.com>
3350
3351 * breakpoint.c (create_breakpoints_sal_default): Remove
3352 parameter 'lsal'. Update declaration.
3353 (bkpt_create_breakpoints_sal): Caller update.
3354 (tracepoint_create_breakpoints_sal): Likewise.
3355
3356 2013-06-20 Pedro Alves <pedro@codesourcery.com>
3357 Yao Qi <yao@codesourcery.com>
3358
3359 * NEWS: Mention the new option '--skip-unavailable' of command
3360 -data-list-register-values.
3361 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
3362 --skip-unavailable option. Adjust to use output_register.
3363 (output_register): Add new 'skip_unavailable' parameter.
3364 Handle it.
3365
3366 2013-06-19 Mike Frysinger <vapier@gentoo.org>
3367
3368 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
3369 common/i386-gcc-cpuid.h.
3370 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
3371 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
3372 Copy the latest version from upstream gcc.
3373 * common/linux-btrace.c: Include i386-cpuid.h.
3374 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
3375 call to i386_cpuid.
3376 (cpu_supports_btrace): Likewise.
3377 * go32-nat.c: Include i386-cpuid.h.
3378 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
3379
3380 2013-06-19 Doug Evans <dje@google.com>
3381
3382 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
3383 (get_section_index): Ditto.
3384
3385 2013-06-19 Tom Tromey <tromey@redhat.com>
3386
3387 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
3388 "dprintf" help.
3389
3390 2013-06-18 Doug Evans <dje@google.com>
3391
3392 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
3393 before using it.
3394 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
3395 Move test of cu_index closer to use. Print complaint if cu_index
3396 is bad.
3397
3398 2013-06-18 Joel Brobecker <brobecker@adacore.com>
3399
3400 * machoread.c (oso_vector): Delete this global.
3401 (macho_register_oso): Add new parameter "oso_vector_ptr".
3402 Use it instead of the "oso_vector" global.
3403 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
3404 (macho_symfile_read): Use a local oso_vector, to be free'ed
3405 at the end of this function, in place of the old "oso_vector"
3406 global. Update various function calls accordingly. Use one
3407 single cleanup chain for the entire function.
3408
3409 2013-06-18 Joel Brobecker <brobecker@adacore.com>
3410
3411 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
3412 DWARF2_PER_OBJFILE by uses of DATA instead.
3413
3414 2013-06-18 Tom Tromey <tromey@redhat.com>
3415
3416 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
3417 argument.
3418 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
3419 Special case signals other than GDB_SIGNAL_TRAP.
3420 (explains_signal_watchpoint): New function.
3421 (base_breakpoint_explains_signal): Add 'sig' argument.
3422 (initialize_breakpoint_ops): Set 'explains_signal' method for
3423 watchpoints.
3424 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
3425 signal argument.
3426 (bpstat_explains_signal): Likewise.
3427 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
3428
3429 2013-06-18 Tom Tromey <tromey@redhat.com>
3430
3431 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
3432
3433 2013-06-18 Tom Tromey <tromey@redhat.com>
3434
3435 * python/python.c (finish_python_initialization): Decref
3436 'pythondir' on failure path as well.
3437
3438 2013-06-18 Tom Tromey <tromey@redhat.com>
3439
3440 PR symtab/15391:
3441 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
3442 after taking bits_to_skip into account. Sign extend byte_offset.
3443 * utils.h (gdb_sign_extend): Declare.
3444 * utils.c (gdb_sign_extend): New function.
3445
3446 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3447
3448 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
3449
3450 2013-06-17 Pierre Muller <muller@sourceware.org>
3451
3452 * corelow.c (core_open): Print GDB signal name instead of target
3453 signal number.
3454
3455 2013-06-17 Mike Frysinger <vapier@gentoo.org>
3456
3457 * .gitignore: Add /gcore.
3458
3459 2013-06-13 Doug Evans <dje@google.com>
3460
3461 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
3462 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
3463
3464 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
3465
3466 * stack.c (backtrace_command_1): Fix indentation.
3467
3468 2013-06-11 Joel Brobecker <brobecker@adacore.com>
3469
3470 * window-nat.c (thread_rec): Add missing empty line after
3471 local variable declaration.
3472
3473 2013-06-11 Joel Brobecker <brobecker@adacore.com>
3474
3475 * windows-nat.c (thread_rec): Revert format used to print
3476 error code returned by SuspendThread from %d back to %u.
3477
3478 2013-06-11 Joel Brobecker <brobecker@adacore.com>
3479
3480 * windows-nat.c (windows_continue): Add "0x" prefix for thread
3481 ID in debug trace.
3482 (get_windows_debug_event): Likewise, for all debug traces.
3483
3484 2013-06-11 Joel Brobecker <brobecker@adacore.com>
3485
3486 * window-nat.c (thread_rec): Add thread ID in SuspendThread
3487 warning message.
3488
3489 2013-06-08 Pedro Alves <pedro@codesourcery.com>
3490 Yao Qi <yao@codesourcery.com>
3491
3492 * mi/mi-main.c (get_register): Remove declaration.
3493 (output_register): Declare.
3494 (mi_cmd_data_list_register_values): Remove local variable
3495 'tuple_cleanup'. Move some code into output_register.
3496 (get_register): Renamed to ...
3497 (output_register): ... this. Output the register's
3498 "number" ui_out tuple here.
3499
3500 2013-06-07 Pedro Alves <palves@redhat.com>
3501
3502 * darwin-nat.c: Fix formating in copyright header.
3503 * darwin-nat.h: Likewise.
3504 * gnu-nat.c: Likewise.
3505 * machoread.c: Likewise.
3506
3507 2013-06-07 Pedro Alves <palves@redhat.com>
3508
3509 PR server/14823
3510 * regformats/regdat.sh: Output #include tdesc.h. Make globals
3511 static. Output a global target description pointer.
3512 (init_registers_${name}): Adjust to initialize a
3513 target description structure.
3514
3515 2013-06-07 Will Newton <will.newton@linaro.org>
3516
3517 * printcmd.c (build_address_symbolic): Call
3518 gdbarch_addr_bits_remove for text minimal symbols.
3519
3520 2013-06-07 Will Newton <will.newton@linaro.org>
3521
3522 * MAINTAINERS: Add myself to Write After Approval.
3523
3524 2013-06-07 Yao Qi <yao@codesourcery.com>
3525
3526 * tracepoint.c (start_tracing): Move code to ...
3527 (trace_reset_local_state): ... here. New.
3528 (disconnect_tracing): Don't call set_current_traceframe,
3529 set_tracepoint_num, and set_traceframe_context. Call
3530 trace_reset_local_state instead.
3531 (tfile_close): Call trace_reset_local_state.
3532 * ctf.c (ctf_close): Likewise.
3533 * remote.c (remote_close): Likewise.
3534 * tracepoint.h (trace_reset_local_state): Declare.
3535
3536 2013-06-06 Doug Evans <dje@google.com>
3537
3538 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
3539 and fix header docs.
3540
3541 2013-06-05 Doug Evans <dje@google.com>
3542 Keith Seitz <keiths@redhat.com>
3543
3544 PR 15519
3545 * cp-namespace.c (find_symbol_in_baseclass): Call
3546 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
3547 Check result of call to lookup_symbol_static.
3548 Call lookup_static_symbol_aux unconditionally.
3549 Call check_typedef on base types before accessing them.
3550 (cp_lookup_nested_symbol): Fix comment.
3551
3552 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
3553
3554 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
3555 minimal symbols pointing to function descriptors.
3556
3557 2013-06-05 Tom Tromey <tromey@redhat.com>
3558
3559 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
3560
3561 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
3562 Pedro Alves <palves@redhat.com>
3563
3564 * remote.c (remote_wait_as): Restore signal handler before returning
3565 when GDB gets a notification.
3566
3567 2013-06-04 Gary Benson <gbenson@redhat.com>
3568
3569 PR 2328
3570 * breakpoint.h (handle_solib_event): Moved function declaration
3571 to solib.h.
3572 * breakpoint.c (handle_solib_event): Moved function to solib.c.
3573 (bpstat_stop_status): Pass new argument to handle_solib_event.
3574 * solib.h (update_solib_breakpoints): New function declaration.
3575 (handle_solib_event): Moved function declaration from
3576 breakpoint.h.
3577 * solib.c (update_solib_breakpoints): New function.
3578 (handle_solib_event): Moved function from breakpoint.c.
3579 Updated to call solib_ops->handle_event if not NULL.
3580 * solist.h (target_so_ops): New fields "update_breakpoints" and
3581 "handle_event".
3582 * infrun.c (set_stop_on_solib_events): New function.
3583 (_initialize_infrun): Use the above for "set
3584 stop-on-solib-events".
3585 (handle_inferior_event): Pass new argument to handle_solib_event.
3586 * solib-svr4.c (probe.h): New include.
3587 (svr4_free_library_list): New forward declaration.
3588 (probe_action): New enum.
3589 (probe_info): New struct.
3590 (probe_info): New static variable.
3591 (NUM_PROBES): New definition.
3592 (svr4_info): New fields "using_xfer", "probes_table" and
3593 "solib_list".
3594 (free_probes_table): New function.
3595 (free_solib_list): New function.
3596 (svr4_pspace_data_cleanup): Free probes table and solib list.
3597 (svr4_copy_library_list): New function.
3598 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
3599 (svr4_read_so_list): New parameter "prev_lm".
3600 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
3601 (svr4_current_sos): New function.
3602 (probe_and_action): New struct.
3603 (hash_probe_and_action): New function.
3604 (equal_probe_and_action): Likewise.
3605 (register_solib_event_probe): Likewise.
3606 (solib_event_probe_at): Likewise.
3607 (solib_event_probe_action): Likewise.
3608 (solist_update_full): Likewise.
3609 (solist_update_incremental): Likewise.
3610 (disable_probes_interface_cleanup): Likewise.
3611 (svr4_handle_solib_event): Likewise.
3612 (svr4_update_solib_event_breakpoint): Likewise.
3613 (svr4_update_solib_event_breakpoints): Likewise.
3614 (svr4_create_solib_event_breakpoints): Likewise.
3615 (enable_break): Free probes table before creating breakpoints.
3616 Use svr4_create_solib_event_breakpoints to create breakpoints.
3617 (svr4_solib_create_inferior_hook): Free the solib list.
3618 (_initialize_svr4_solib): Initialise
3619 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
3620
3621 2013-06-04 Gary Benson <gbenson@redhat.com>
3622
3623 * target.h (target_ops): New field
3624 "to_augmented_libraries_svr4_read".
3625 (target_augmented_libraries_svr4_read): New macro.
3626 * target.c (update_current_target): Handle
3627 to_augmented_libraries_svr4_read.
3628 * remote.c (remote_state): New field
3629 "augmented_libraries_svr4_read".
3630 (remote_augmented_libraries_svr4_read_feature): New function.
3631 (remote_protocol_features): Add entry for
3632 "augmented-libraries-svr4-read".
3633 (remote_augmented_libraries_svr4_read): New function.
3634 (init_remote_ops): Initialize
3635 remote_ops.to_augmented_libraries_svr4_read.
3636
3637 2013-06-04 Gary Benson <gbenson@redhat.com>
3638
3639 * NEWS: Update.
3640
3641 2013-06-04 Gary Benson <gbenson@redhat.com>
3642
3643 * objfiles.h (inhibit_section_map_updates): New function
3644 declaration.
3645 (resume_section_map_updates): Likewise.
3646 (resume_section_map_updates_cleanup): Likewise.
3647 * objfiles.c (objfile_pspace_info): Removed field
3648 "objfiles_changed_p". New fields "new_objfiles_available",
3649 "section_map_dirty" and "inhibit_updates".
3650 (allocate_objfile): Set new_objfiles_available.
3651 (free_objfile): Set section_map_dirty.
3652 (objfile_relocate1): Likewise.
3653 (in_plt_section): Likewise.
3654 (find_pc_section): Update the conditions under which the
3655 section map will be updated.
3656 (inhibit_section_map_updates): New function.
3657 (resume_section_map_updates): Likewise.
3658 (resume_section_map_updates_cleanup): Likewise.
3659
3660 2013-06-04 Gary Benson <gbenson@redhat.com>
3661
3662 * probe.h (get_probe_argument_count): New declaration.
3663 (evaluate_probe_argument): Likewise.
3664 * probe.c (get_probe_argument_count): New function.
3665 (evaluate_probe_argument): Likewise.
3666 (probe_safe_evaluate_at_pc): Use the above new functions.
3667
3668 2013-06-04 Alan Modra <amodra@gmail.com>
3669
3670 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
3671 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
3672 (ppc_insns_match_pattern): Add frame param. Avoid multiple
3673 target mem reads on optional insns.
3674 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
3675 ppc_insns_match_pattern calls.
3676 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
3677 Add match for power7 thread safety insns, and new order of
3678 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
3679 invocation in comment, and update rest of comment.
3680 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
3681 PPC64_STANDARD_LINKAGE3_LEN): Delete.
3682 (ppc64_standard_linkage2_target): Update insn offsets.
3683 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
3684 stubs first. Update calls.
3685
3686 2013-06-04 Yao Qi <yao@codesourcery.com>
3687
3688 * solib.c (solib_find): Don't need dir separator if path has
3689 drive spec.
3690
3691 2013-06-03 Joel Brobecker <brobecker@adacore.com>
3692
3693 Revert (indirectly causes a SIGSEGV):
3694 * machoread.c (macho_symfile_read): Assign first cleanup to
3695 'back_to'.
3696
3697 2013-06-03 Yao Qi <yao@codesourcery.com>
3698
3699 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
3700 mi-parse.c. Make them static.
3701 (mi_all_values): Likewise.
3702 (mi_parse_values_option): Move to mi-parse.c. Rename it to
3703 mi_parse_print_values. Make it external.
3704 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
3705 Remove the declarations.
3706 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
3707 * mi/mi-parse.h (mi_parse_print_values): Declare.
3708 * mi/mi-cmd-stack.c: Include mi-parse.h.
3709 (parse_print_values): Remove
3710 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
3711 of parse_print_values.
3712 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
3713
3714 2013-05-31 Pedro Alves <pedro@codesourcery.com>
3715 Yao Qi <yao@codesourcery.com>
3716
3717 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
3718 (encode_actions): Move code to ...
3719 (all_tracepoint_actions_and_cleanup): ... here. New.
3720 (trace_dump_command): Likewise.
3721
3722 2013-05-30 Tom Tromey <tromey@redhat.com>
3723
3724 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
3725
3726 2013-05-30 Tom Tromey <tromey@redhat.com>
3727
3728 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
3729 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
3730 'old_chain' argument. Add 'parser_result' argument.
3731 (gdb_xml_create_parser_and_cleanup): Remove old version.
3732 (gdb_xml_parse_quick): Update.
3733 (xml_process_xincludes): Update.
3734 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
3735 declare.
3736
3737 2013-05-30 Tom Tromey <tromey@redhat.com>
3738
3739 * probe.c (collect_probes): Check arguments for NULL before
3740 calling compile_rx_or_error.
3741 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
3742 Remove NULL return.
3743
3744 2013-05-30 Tom Tromey <tromey@redhat.com>
3745
3746 * infrun.c (adjust_pc_after_break): Introduce an outer null
3747 cleanup.
3748
3749 2013-05-30 Tom Tromey <tromey@redhat.com>
3750
3751 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
3752
3753 2013-05-30 Tom Tromey <tromey@redhat.com>
3754
3755 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
3756 for 'old_chain'. Do not check 'head' before processing
3757 cleanups.
3758
3759 2013-05-30 Tom Tromey <tromey@redhat.com>
3760
3761 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
3762 "cleanup_tuple".
3763
3764 2013-05-30 Tom Tromey <tromey@redhat.com>
3765
3766 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
3767 inner scope. Unconditionally call do_cleanups.
3768
3769 2013-05-30 Tom Tromey <tromey@redhat.com>
3770
3771 * source.c (find_and_open_source): Call do_cleanups.
3772
3773 2013-05-30 Tom Tromey <tromey@redhat.com>
3774
3775 * linux-thread-db.c (thread_db_load_search): Unconditionally
3776 call do_cleanups.
3777
3778 2013-05-30 Tom Tromey <tromey@redhat.com>
3779
3780 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
3781 for 'cleanup'; instead use a later one.
3782
3783 2013-05-30 Tom Tromey <tromey@redhat.com>
3784
3785 * python/py-breakpoint.c (bppy_get_commands): Use
3786 explicit, unconditional return.
3787 * python/py-frame.c (frapy_read_var): Likewise.
3788 * python/python.c (gdbpy_decode_line): Likewise.
3789
3790 2013-05-30 Tom Tromey <tromey@redhat.com>
3791
3792 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
3793 do_cleanups on all return paths.
3794
3795 2013-05-30 Tom Tromey <tromey@redhat.com>
3796
3797 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
3798
3799 2013-05-30 Tom Tromey <tromey@redhat.com>
3800
3801 * stabsread.c (read_struct_type): Call do_cleanups along
3802 all return paths.
3803
3804 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
3805
3806 * mips-linux-tdep.c: Adjust formatting throughout.
3807
3808 2013-05-30 Tom Tromey <tromey@redhat.com>
3809
3810 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
3811 along all return paths.
3812
3813 2013-05-30 Tom Tromey <tromey@redhat.com>
3814
3815 * symfile.c (find_separate_debug_file): Call do_cleanups
3816 along all return paths.
3817
3818 2013-05-30 Tom Tromey <tromey@redhat.com>
3819
3820 * symtab.c (search_symbols): Introduce a null cleanup for
3821 'retval_chain'.
3822
3823 2013-05-30 Tom Tromey <tromey@redhat.com>
3824
3825 * python/py-value.c (valpy_binop): Call do_cleanups before
3826 exiting loop.
3827
3828 2013-05-30 Tom Tromey <tromey@redhat.com>
3829
3830 * python/py-prettyprint.c (print_children): Remove extra
3831 do_cleanups call.
3832
3833 2013-05-30 Tom Tromey <tromey@redhat.com>
3834
3835 * python/py-frame.c (frapy_read_var): Call do_cleanups along
3836 all return paths.
3837
3838 2013-05-30 Tom Tromey <tromey@redhat.com>
3839
3840 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
3841 along all return paths.
3842
3843 2013-05-30 Tom Tromey <tromey@redhat.com>
3844
3845 * cli/cli-logging.c (set_logging_redirect): Unconditionally
3846 call do_cleanups.
3847
3848 2013-05-30 Tom Tromey <tromey@redhat.com>
3849
3850 * varobj.c (c_value_of_root): Call do_cleanups along all
3851 return paths.
3852
3853 2013-05-30 Tom Tromey <tromey@redhat.com>
3854
3855 * tracepoint.c (trace_dump_command): Unconditionally call
3856 do_cleanups.
3857
3858 2013-05-30 Tom Tromey <tromey@redhat.com>
3859
3860 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
3861 do_cleanups earlier.
3862
3863 2013-05-30 Tom Tromey <tromey@redhat.com>
3864
3865 * machoread.c (macho_symfile_read): Assign first cleanup to
3866 'back_to'.
3867
3868 2013-05-30 Tom Tromey <tromey@redhat.com>
3869
3870 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
3871
3872 2013-05-30 Tom Tromey <tromey@redhat.com>
3873
3874 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
3875
3876 2013-05-30 Tom Tromey <tromey@redhat.com>
3877
3878 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
3879 call discard_cleanups.
3880 (inf_ptrace_attach): Likewise.
3881
3882 2013-05-30 Tom Tromey <tromey@redhat.com>
3883
3884 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
3885 return paths.
3886 (mips_initialize): Likewise.
3887 (common_open): Call do_cleanups.
3888
3889 2013-05-30 Tom Tromey <tromey@redhat.com>
3890
3891 * utils.c (internal_vproblem): Call do_cleanups.
3892
3893 2013-05-30 Tom Tromey <tromey@redhat.com>
3894
3895 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
3896
3897 2013-05-30 Tom Tromey <tromey@redhat.com>
3898
3899 * cli/cli-script.c (setup_user_args): Don't return after error.
3900
3901 2013-05-30 Tom Tromey <tromey@redhat.com>
3902
3903 * somread.c (som_symtab_read): Call do_cleanups.
3904
3905 2013-05-30 Tom Tromey <tromey@redhat.com>
3906
3907 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
3908
3909 2013-05-30 Tom Tromey <tromey@redhat.com>
3910
3911 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
3912 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
3913 * interps.c (interpreter_exec_cmd): Call do_cleanups.
3914 * source.c (show_substitute_path_command): Call do_cleanups.
3915 (unset_substitute_path_command, set_substitute_path_command):
3916 Likewise.
3917 * symfile.c (load_command): Call do_cleanups.
3918
3919 2013-05-30 Tom Tromey <tromey@redhat.com>
3920
3921 * contrib/cleanup_check.py: New file.
3922 * contrib/gcc-with-excheck: Add option parsing.
3923
3924 2013-05-30 Joel Brobecker <brobecker@adacore.com>
3925
3926 * windows-nat.c (windows_delete_thread): Add missing space
3927 in cast expression.
3928
3929 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
3930
3931 * inferior.c (top level): Include tilde.h.
3932 (add_inferior_command): Call tilde_expand on the value of 'exec'
3933 argument.
3934
3935 2013-05-30 Pedro Alves <pedro@codesourcery.com>
3936 Yao Qi <yao@codesourcery.com>
3937
3938 * tracepoint.c (encode_actions_1): Remove parameter 't'.
3939 Caller update.
3940 (encode_actions): Likewise.
3941 * remote.c (remote_download_tracepoint): Caller update.
3942 * tracepoint.h (encode_actions): Update declaration.
3943
3944 2013-05-30 Pedro Alves <palves@redhat.com>
3945
3946 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
3947 pointer.
3948
3949 2013-05-30 Yao Qi <yao@codesourcery.com>
3950
3951 * remote.c (remote_check_symbols): Remove unused parameter
3952 'objfile'.
3953 Declaration update.
3954 (remote_start_remote, remote_new_objfile): Caller update.
3955
3956 2013-05-30 Yao Qi <yao@codesourcery.com>
3957
3958 * mi/mi-cmds.c (mi_cmds): Define MI command
3959 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
3960 DEF_MI_CMD_CLI.
3961
3962 2013-05-29 Pedro Alves <palves@redhat.com>
3963
3964 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
3965 (remote_insert_watchpoint, remote_remove_watchpoint)
3966 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
3967 (remote_verify_memory, compare_sections_command)
3968 (remote_search_memory): Set the general process/thread on the
3969 remote side.
3970
3971 2013-05-29 Pedro Alves <palves@redhat.com>
3972
3973 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
3974 (_initialize_aarch64_tdep): Don't call
3975 initialize_tdesc_aarch64_without_fpu.
3976 * features/Makefile (WHICH): Remove reference to
3977 aarch64-without-fpu.
3978 * features/aarch64-without-fpu.c: Delete file.
3979 * regformats/aarch64-without-fpu.dat: Delete file.
3980
3981 2013-05-28 Yao Qi <yao@codesourcery.com>
3982
3983 * tracepoint.c (stringify_collection_list): Remove parameter
3984 'string'.
3985 (encode_actions): Caller update. Remove local variables.
3986
3987 2013-05-24 Yao Qi <yao@codesourcery.com>
3988
3989 * tracepoint.c (TFILE_PID): Remove.
3990 (tfile_open): Don't add thread and inferior.
3991 (tfile_close): Don't set 'inferior_ptid'. Don't call
3992 exit_inferior_silent.
3993 (tfile_thread_alive): Remove.
3994 (init_tfile_ops): Don't set field 'to_thread_alive' of
3995 tfile_ops.
3996
3997 2013-05-23 Doug Evans <dje@google.com>
3998
3999 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4000
4001 2013-05-23 Pedro Alves <palves@redhat.com>
4002
4003 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4004 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4005 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4006 Only define if HAVE_SOCKETS is defined.
4007 * configure.ac: Check for sys/socket.h.
4008 * config.in, configure: Regenerate.
4009
4010 2013-05-23 Pedro Alves <palves@redhat.com>
4011
4012 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4013 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4014 printing uint32_t variables.
4015
4016 2013-05-23 Pedro Alves <palves@redhat.com>
4017
4018 * NEWS: Mention GDBserver range stepping support.
4019
4020 2013-05-23 Yao Qi <yao@codesourcery.com>
4021 Pedro Alves <palves@redhat.com>
4022
4023 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4024 field.
4025 * infcmd.c (step_once, until_next_command): Enable range stepping.
4026 * infrun.c (displaced_step_prepare): Disable range stepping.
4027 (resume): Disable range stepping if stepping over a breakpoint or
4028 we have software watchpoints. If range stepping is enabled,
4029 assert the thread is in the stepping range.
4030 (clear_proceed_status_thread): Clear may_range_step.
4031 (handle_inferior_event): Disable range stepping as soon as we know
4032 the thread that hit the event. Re-enable it whenever we're going
4033 to step with a step range.
4034 * remote.c (struct vCont_action_support) <r>: New field.
4035 (use_range_stepping): New global.
4036 (remote_vcont_probe): Handle 'r' action.
4037 (append_resumption): Append an 'r' action if the thread may range
4038 step.
4039 (show_range_stepping): New function.
4040 (set_range_stepping): New function.
4041 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4042 'set range-stepping' and 'show range-stepping' commands.
4043 * NEWS: Mention range stepping, the new vCont;r action, and the
4044 new "set/show range-stepping" commands.
4045
4046 2013-05-23 Yao Qi <yao@codesourcery.com>
4047 Pedro Alves <palves@redhat.com>
4048
4049 * remote.c (struct vCont_action_support): New struct.
4050 (struct remote_state) <support_vCont_t>: Remove field.
4051 <vCont_actions_support>: New field.
4052 (remote_vcont_probe, remote_stop_ns): Update.
4053
4054 2013-05-23 Yao Qi <yao@codesourcery.com>
4055 Pedro Alves <palves@redhat.com>
4056
4057 * gdbthread.h (pc_in_thread_step_range): New declaration.
4058 * thread.c (pc_in_thread_step_range): New function.
4059 * infrun.c (handle_inferior_event): Use it.
4060
4061 2013-05-23 Joel Brobecker <brobecker@adacore.com>
4062
4063 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4064 of sprintf.
4065
4066 2013-05-22 Keith Seitz <keiths@redhat.com>
4067
4068 * ada-lang.c (is_known_support_routine): Add explicit free of
4069 'func_name' from find_frame_funname.
4070 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4071 for func_name from find_frame_funname.
4072 * python/py-frame.c (frapy_name): Add explicit free of
4073 'name' from find_frame_funname.
4074 * stack.c (find_frame_funname): Add comment explaining that
4075 funcp must be freed by the caller.
4076 Return copy of symbol names instead of pointers.
4077 (print_frame): Add a cleanup for 'funname' from
4078 find_frame_funname.
4079 * stack.h (find_frame_funname): Remove "const" from
4080 'funname' parameter.
4081
4082 2013-05-22 Tom Tromey <tromey@redhat.com>
4083
4084 PR c++/15401:
4085 * c-valprint.c (c_value_print): Use value_addr for
4086 references. Convert back to reference type with value_ref.
4087
4088 2013-05-22 Eli Zaretskii <eliz@gnu.org>
4089
4090 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4091 unloaded DLL, it will be done by handle_solib_event. See
4092 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4093 details.
4094
4095 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4096
4097 * ui-out.c: Create typedef ui_out_level_p and define vector
4098 operations for that type.
4099 (struct ui_out): Use a vector instead of an array.
4100 (current_level): Return level from a vector.
4101 (push_level): Create a level in a vector.
4102 (pop_level): Delete a level in a vector.
4103 (ui_out_new): Create initial level zero level, and store in a
4104 vector.
4105 (ui_out_destroy): Add vector cleanup.
4106
4107 2013-05-22 Pedro Alves <palves@redhat.com>
4108
4109 * python/python-internal.h (gdb_Py_DECREF): Tag with
4110 "ARI: editCase function".
4111
4112 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4113
4114 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4115
4116 2013-05-21 Pedro Alves <palves@redhat.com>
4117
4118 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4119 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4120 * python/py-utils.c (py_decref): Don't check for NULL before
4121 calling Py_DECREF.
4122
4123 2013-05-21 Pedro Alves <palves@redhat.com>
4124
4125 * python/py-utils.c (py_decref): Remove extra braces.
4126 (gdb_pymodule_addobject): Remove extra braces.
4127 * python-internal.h (gdb_Py_DECREF): New static inline function.
4128 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4129
4130 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4131
4132 * breakpoints.c (detach_breakpoints): Do not
4133 detach breakpoints locations with loc_type bp_loc_other.
4134
4135 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4136
4137 Workaround Python 2.6.
4138 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4139 a block.
4140
4141 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4142
4143 Code cleanup: constification.
4144 * solib.c (solib_ops): Make return type and ops variable type const.
4145 (set_solib_ops): Make the new_ops parameter and ops variable const.
4146 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4147 (solib_add, solib_keep_data_in_core, clear_solib)
4148 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4149 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4150 const.
4151 * solib.h (set_solib_ops): Make the new_ops parameter const.
4152
4153 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4154
4155 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4156 variable.
4157 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4158 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4159 (SYSTEM_GDBINIT_FILES): New variables.
4160 (all): Add stamp-system-gdbinit.
4161 (stamp-system-gdbinit): New rule.
4162 (clean-system-gdbinit, install-system-gdbinit)
4163 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4164 (install-only): Add dependency on install-system-gdbinit.
4165 (uninstall): Add dependency on uninstall-system-gdbinit.
4166 (clean): Add dependency on clean-system-gdbinit.
4167 * system-gdbinit/elinos.py: New file.
4168 * system-gdbinit/wrs-linux.py: New file.
4169
4170 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4171
4172 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4173
4174 2013-05-21 Hui Zhu <hui@codesourcery.com>
4175
4176 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4177 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4178 * mi/mi-cmd-break.c (ctype.h): New include.
4179 (gdb_obstack.h): New include.
4180 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4181 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4182 (mi_cmd_dprintf_insert): New.
4183 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4184 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4185
4186 2013-05-20 Tom Tromey <tromey@redhat.com>
4187
4188 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4189
4190 2013-05-20 Tom Tromey <tromey@redhat.com>
4191
4192 * python/py-value.c (valpy_get_dynamic_type): Simplify
4193 dynamic_type assignment. Use Py_XINCREF.
4194
4195 2013-05-20 Tom Tromey <tromey@redhat.com>
4196
4197 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4198
4199 2013-05-20 Tom Tromey <tromey@redhat.com>
4200
4201 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4202 (gdbpy_selected_frame): Move object-construction code
4203 out of TRY_CATCH.
4204
4205 2013-05-20 Tom Tromey <tromey@redhat.com>
4206
4207 * python/py-arch.c (gdbpy_initialize_arch): Use
4208 gdb_pymodule_addobject.
4209 * python/py-block.c (gdbpy_initialize_blocks): Use
4210 gdb_pymodule_addobject.
4211 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4212 gdb_pymodule_addobject.
4213 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4214 gdb_pymodule_addobject.
4215 * python/py-event.c (gdbpy_initialize_event_generic): Use
4216 gdb_pymodule_addobject.
4217 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4218 gdb_pymodule_addobject.
4219 * python/py-evts.c (add_new_registry): Use
4220 gdb_pymodule_addobject.
4221 (gdbpy_initialize_py_events): Likewise.
4222 * python/py-finishbreakpoint.c
4223 (gdbpy_initialize_finishbreakpoints): Use
4224 gdb_pymodule_addobject.
4225 * python/py-frame.c (gdbpy_initialize_frames): Use
4226 gdb_pymodule_addobject.
4227 * python/py-function.c (gdbpy_initialize_functions): Use
4228 gdb_pymodule_addobject.
4229 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4230 gdb_pymodule_addobject.
4231 * python/py-infthread.c (gdbpy_initialize_thread): Use
4232 gdb_pymodule_addobject.
4233 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4234 gdb_pymodule_addobject.
4235 * python/py-param.c (gdbpy_initialize_parameters): Use
4236 gdb_pymodule_addobject.
4237 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4238 gdb_pymodule_addobject.
4239 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4240 gdb_pymodule_addobject.
4241 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4242 gdb_pymodule_addobject.
4243 * python/py-type.c (gdbpy_initialize_types): Use
4244 gdb_pymodule_addobject.
4245 * python/py-utils.c (gdb_pymodule_addobject): New function.
4246 * python/py-value.c (gdbpy_initialize_values): Use
4247 gdb_pymodule_addobject.
4248 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4249 * python/python.c (_initialize_python): Use
4250 gdb_pymodule_addobject.
4251
4252 2013-05-20 Tom Tromey <tromey@redhat.com>
4253
4254 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4255 * python/py-param.c (get_set_value, get_show_value): Use
4256 explicit decrefs.
4257 * python/python.c (start_type_printers, apply_type_printers):
4258 Use explicit decrefs.
4259
4260 2013-05-20 Tom Tromey <tromey@redhat.com>
4261
4262 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4263 incref the module.
4264
4265 2013-05-20 Tom Tromey <tromey@redhat.com>
4266
4267 * python/python.c (gdbpy_run_events): Decref the result
4268 of PyObject_CallObject.
4269
4270 2013-05-20 Tom Tromey <tromey@redhat.com>
4271
4272 * python/py-symtab.c (set_sal): Use
4273 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4274 (symtab_and_line_to_sal_object): Update.
4275
4276 2013-05-20 Tom Tromey <tromey@redhat.com>
4277
4278 * python/py-param.c (compute_enum_values): Decref 'item'.
4279
4280 2013-05-20 Tom Tromey <tromey@redhat.com>
4281
4282 * mi/mi-main.c: Include python-internal.h.
4283 (mi_cmd_list_features): Check gdb_python_initialized.
4284 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4285 (python_inferior_exit, python_new_objfile, add_thread_object)
4286 (delete_thread_object, py_free_inferior): Check
4287 gdb_python_initialized.
4288 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4289 gdb_python_initialized.
4290 * python/py-type.c (save_objfile_types): Check
4291 gdb_python_initialized.
4292 * python/python-internal.h (gdb_python_initialized): Declare.
4293 * python/python.c (ensure_python_env): Throw exception if
4294 Python not initialized.
4295 (before_prompt_hook, source_python_script_for_objfile)
4296 (start_type_printers, apply_type_printers,
4297 free_type_printers): Check gdb_python_initialized.
4298 * varobj.c (varobj_get_display_hint)
4299 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4300 (install_new_value_visualizer, varobj_set_visualizer)
4301 (value_get_print_value): Check gdb_python_initialized.
4302
4303 2013-05-20 Tom Tromey <tromey@redhat.com>
4304
4305 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4306 Check errors.
4307 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4308 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4309 Check errors.
4310 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4311 Check errors.
4312 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4313 Check errors.
4314 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4315 Check errors.
4316 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4317 init function to return 'int'.
4318 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4319 Return 'int'. Check errors.
4320 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4321 Check errors.
4322 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4323 Return 'int'. Check errors.
4324 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4325 Check errors.
4326 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4327 Check errors.
4328 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
4329 Check errors.
4330 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
4331 Check errors.
4332 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
4333 Check errors.
4334 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
4335 Check errors.
4336 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
4337 Check errors.
4338 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
4339 Check errors.
4340 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
4341 Check errors.
4342 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
4343 Check errors.
4344 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
4345 Check errors.
4346 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
4347 Check errors.
4348 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
4349 Check errors.
4350 * python/python-internal.h (gdbpy_initialize_auto_load,
4351 gdbpy_initialize_values, gdbpy_initialize_frames,
4352 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
4353 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
4354 gdbpy_initialize_blocks, gdbpy_initialize_types,
4355 gdbpy_initialize_functions, gdbpy_initialize_pspace,
4356 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
4357 gdbpy_initialize_finishbreakpoints,
4358 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
4359 gdbpy_initialize_thread, gdbpy_initialize_inferior,
4360 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
4361 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
4362 gdbpy_initialize_signal_event,
4363 gdbpy_initialize_breakpoint_event,
4364 gdbpy_initialize_continue_event,
4365 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
4366 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
4367 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4368 * python/python.c (gdb_python_initialized): New global.
4369 (gdbpy_initialize_events): Return 'int'. Check errors.
4370 (_initialize_python): Check errors. Set
4371 gdb_python_initialized.
4372
4373 2013-05-20 Tom Tromey <tromey@redhat.com>
4374
4375 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
4376 Decref the reslut of PyObject_CallMethod.
4377
4378 2013-05-20 Tom Tromey <tromey@redhat.com>
4379
4380 * python/py-event.c (gdbpy_initialize_event_generic): Return
4381 early if PyType_Ready fails.
4382
4383 2013-05-20 Tom Tromey <tromey@redhat.com>
4384
4385 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
4386 as 'default' in the switch.
4387
4388 2013-05-20 Tom Tromey <tromey@redhat.com>
4389
4390 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
4391 get_addr_from_python calls out of TRY_CATCH.
4392 (infpy_write_memory, infpy_search_memory): Likewise.
4393 * python/py-utils.c (get_addr_from_python): Return negative
4394 value on error. Use TRY_CATCH.
4395 * python/python-internal.h (get_addr_from_python): Use
4396 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4397
4398 2013-05-20 Tom Tromey <tromey@redhat.com>
4399
4400 * python/py-event.c (evpy_emit_event): Decref the
4401 result of PyObject_CallFunctionObjArgs.
4402
4403 2013-05-20 Tom Tromey <tromey@redhat.com>
4404
4405 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
4406 Correctly decref.
4407
4408 2013-05-20 Tom Tromey <tromey@redhat.com>
4409
4410 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
4411
4412 2013-05-20 Tom Tromey <tromey@redhat.com>
4413
4414 * python/py-event.h (gdbpy_initialize_event_generic): Use
4415 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4416 * python/py-evts.c (add_new_registry): Use
4417 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4418 * python/python-internal.h
4419 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
4420
4421 2013-05-20 Tom Tromey <tromey@redhat.com>
4422
4423 * python/py-arch.c (archpy_disassemble): Update.
4424 * python/py-type.c (typy_get_composite, typy_lookup_typename)
4425 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
4426 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
4427 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
4428 macro.
4429 (GDB_PY_HANDLE_EXCEPTION): Update.
4430 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
4431
4432 2013-05-20 Tom Tromey <tromey@redhat.com>
4433
4434 * python/python-internal.h (events_object_type): Remove.
4435
4436 2013-05-20 Tom Tromey <tromey@redhat.com>
4437
4438 * python/py-event.h (evpy_emit_event): Use
4439 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
4440 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
4441 New macro.
4442
4443 2013-05-20 Tom Tromey <tromey@redhat.com>
4444
4445 * py-evtregistry.c (create_event_object): Decref
4446 eventregistry_object if PyList_New fails.
4447
4448 2013-05-20 Tom Tromey <tromey@redhat.com>
4449
4450 * py-cmd.c (gdbpy_string_to_argv): Check result of
4451 PyList_New.
4452
4453 2013-05-20 Tom Tromey <tromey@redhat.com>
4454
4455 * python/python.c (before_prompt_hook): Add cleanup to
4456 decref 'hook'.
4457
4458 2013-05-20 Tom Tromey <tromey@redhat.com>
4459
4460 * python/py-function.c (fnpy_init): Decref result of
4461 PyObject_GetAttrString.
4462
4463 2013-05-20 Tom Tromey <tromey@redhat.com>
4464
4465 * python/py-threadevent.c (get_event_thread): Use
4466 CPYCHECKER_RETURNS_BORROWED_REF.
4467 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
4468 New define.
4469 (pspace_to_pspace_object, objfile_to_objfile_object)
4470 (find_thread_object): Use it.
4471
4472 2013-05-20 Tom Tromey <tromey@redhat.com>
4473
4474 * python/py-arch.c (arch_object_type): Use
4475 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4476 * python/py-block.c (block_syms_iterator_object_type):
4477 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4478 * python/py-bpevent.c (breakpoint_event_object_type):
4479 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4480 * python/py-cmd.c (cmdpy_object_type): Use
4481 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4482 * python/py-continueevent.c (continue_event_object_type):
4483 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4484 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
4485 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4486 * python/py-events.h (thread_event_object_type):
4487 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4488 * python/py-evtregistry.c (eventregistry_object_type): Use
4489 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4490 * python/py-exitedevent.c (exited_event_object_type):
4491 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4492 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
4493 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4494 * python/py-function.c (fnpy_object_type): Use
4495 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4496 * python/py-inferior.c (inferior_object_type, membuf_object_type):
4497 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4498 * python/py-infthread.c (thread_object_type): Use
4499 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4500 * python/py-lazy-string.c (lazy_string_object_type):
4501 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4502 * python/py-newobjfileevent.c (new_objfile_event_object_type):
4503 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4504 * python/py-objfile.c (objfile_object_type): Use
4505 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4506 * python/py-param.c (parmpy_object_type):
4507 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4508 * python/py-progspace.c (pspace_object_type):
4509 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4510 * python/py-signalevent.c (signal_event_object_type):
4511 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4512 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
4513 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4514 * python/py-type.c (type_object_type, field_object_type)
4515 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4516 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
4517 define.
4518 (value_object_type, block_object_type, symbol_object_type)
4519 (event_object_type, stop_event_object_type, breakpoint_object_type)
4520 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4521
4522 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
4523
4524 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
4525 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
4526
4527 2013-05-20 Doug Evans <dje@google.com>
4528
4529 When reading CU, stay in DWO. Be more tolerent of bad debug info.
4530 For Fission.
4531 * dwarf2read.c (struct dwarf2_per_cu_data): New member
4532 reading_dwo_directly.
4533 (struct signatured_type): New member dwo_unit.
4534 (struct die_reader_specs): New member comp_dir.
4535 (create_signatured_type_table_from_index): Use malloc for
4536 all_type_units instead of objfile's obstack.
4537 (create_all_type_units): Ditto.
4538 (fill_in_sig_entry_from_dwo_entry): New function.
4539 (add_type_unit): New function.
4540 (lookup_dwo_signatured_type): New function.
4541 (lookup_dwp_signatured_type): New function.
4542 (lookup_signatured_type): New arg cu. All callers updated.
4543 (init_cu_die_reader): Initialize comp_dir.
4544 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
4545 Change assert of matching type signatures to call error on mismatch.
4546 (lookup_dwo_unit): Add assert.
4547 (init_tu_and_read_dwo_dies): New function.
4548 (init_cutu_and_read_dies): Call it.
4549 (build_type_unit_groups): Handle case of no type unit groups created.
4550 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
4551 (lookup_dwo_cutu): Tweak complaint.
4552 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
4553 (dwarf2_per_objfile_free): Free all_type_units.
4554
4555 2013-05-20 Joel Brobecker <brobecker@adacore.com>
4556
4557 * windows-nat.c (handle_unload_dll): Add missing empty line.
4558
4559 2013-05-20 Joel Brobecker <brobecker@adacore.com>
4560
4561 * dwarf2read.c (prototyped_function_p): New function.
4562 (read_subroutine_type): Use it.
4563
4564 2013-05-20 Joel Brobecker <brobecker@adacore.com>
4565
4566 * rs6000-aix-tdep.c: De-indent some example code provided
4567 as a comment.
4568
4569 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
4570
4571 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
4572 region is ok for a hardware watchpoint using the new ptrace interface
4573 on Power servers.
4574
4575 2013-05-17 Doug Evans <dje@google.com>
4576
4577 * NEWS: Mention new maintenance commands check-symtabs, and
4578 expand-symtabs, and renamed check-psymtabs.
4579 * psymtab.c (maintenance_check_psymtabs): Renamed from
4580 maintenance_check_symtabs. Only process already-expanded symbol
4581 tables.
4582 (_initialize_psymtab): Update.
4583 * symmisc.c (maintenance_check_symtabs): New function.
4584 (maintenance_expand_name_matcher): New function
4585 (maintenance_expand_file_matcher): New function
4586 (maintenance_expand_symtabs): New function.
4587 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
4588 commands.
4589
4590 2013-05-17 Tom Tromey <tromey@redhat.com>
4591
4592 * python/py-inferior.c (infpy_read_memory): Don't call
4593 PyErr_SetString if PyObject_New fails.
4594 * python/py-frame.c (frame_info_to_frame_object): Don't call
4595 PyErr_SetString if PyObject_New fails.
4596
4597 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
4598
4599 * acinclude.m4: Add check for dlopen in libdl.
4600 * configure.ac: Ditto.
4601 * configure: Regenerate.
4602
4603 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
4604
4605 * frame.c (frame_stash): Convert to htab.
4606 (frame_addr_hash): New function.
4607 (frame_addr_hash_eq): New function.
4608 (frame_stash_create): Convert function to create
4609 a hash table.
4610 (frame_stash_add): Convert function to add an entry to a hash
4611 table.
4612 (frame_stash_find): Convert function to search the hash table.
4613 (frame_stash_invalidate): Convert function to empty the hash
4614 table.
4615 (get_frame_id): Only add to stash if a frame_id is created.
4616 (_initialize_frame): Call frame_stash_create.
4617
4618 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
4619
4620 * configure.ac: Ensure MIG is available when building for GNU Hurd
4621 hosts.
4622 * configure: Regenerate.
4623
4624 2013-05-16 Joel Brobecker <brobecker@adacore.com>
4625
4626 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
4627
4628 2013-05-16 Joel Brobecker <brobecker@adacore.com>
4629
4630 * ada-lang.c (ada_make_symbol_completion_list): Make sure
4631 all cleanups are done before returning from this function.
4632
4633 2013-05-15 Joel Brobecker <brobecker@adacore.com>
4634
4635 * utils.h: #include "exceptions.h".
4636 (enum errors): Remove partial declaration.
4637
4638 2013-05-15 Joel Brobecker <brobecker@adacore.com>
4639
4640 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
4641 * gdbarch.h, gdbarch.c: Regenerate.
4642 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
4643 handling.
4644
4645 * rs6000-aix-tdep.h: New file.
4646 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
4647 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
4648 "xml-utils.h".
4649 (struct field_info, struct ld_info_desc): New types.
4650 (ld_info32_desc, ld_info64_desc): New static constants.
4651 (struct ld_info): New type.
4652 (rs6000_aix_extract_ld_info): New function.
4653 (rs6000_aix_shared_library_to_xml): Likewise.
4654 (rs6000_aix_ld_info_to_xml): Likewise.
4655 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
4656 (rs6000_aix_init_osabi): Add call to
4657 set_gdbarch_core_xfer_shared_libraries_aix.
4658 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
4659 Remove "xml-utils.h" include.
4660 (LdInfo): Delete typedef.
4661 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
4662 Delete macros.
4663 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
4664 Adjust code accordingly.
4665 (rs6000_core_ldinfo): Delete, folded into
4666 rs6000_aix_core_xfer_shared_libraries_aix.
4667 (rs6000_xfer_shared_library): Delete.
4668 (rs6000_xfer_shared_libraries): Reimplement.
4669
4670 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
4671
4672 * record.c (record_goto_cmdlist): New.
4673 (cmd_record_goto): Split into this ...
4674 (cmd_record_goto_begin): ... this
4675 (cmd_record_goto_end): ... and this.
4676 (_initialize_record): Change "record goto" to prefix command.
4677 Add commands for "record goto begin" and "record goto end".
4678 Add an alias for "record goto start" to "record goto begin".
4679
4680 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4681
4682 * linespec.c (convert_linespec_to_sals): New comment for
4683 SOURCE_FILENAME assignment.
4684
4685 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4686
4687 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
4688 internal_warning.
4689
4690 2013-05-14 Tom Tromey <tromey@redhat.com>
4691
4692 * eval.c (parse_and_eval_long): Make 'exp' const.
4693 * value.h (parse_and_eval_long): Update.
4694
4695 2013-05-14 Tom Tromey <tromey@redhat.com>
4696
4697 * ui-file.c (gdb_fopen): Make arguments const.
4698 * ui-file.h (gdb_fopen): Make arguments const.
4699
4700 2013-05-14 Tom Tromey <tromey@redhat.com>
4701
4702 * remote.c (remote_set_trace_notes): Make arguments const.
4703 * target.c (update_current_target): Update cast.
4704 * target.h (to_set_trace_notes): Make arguments const.
4705
4706 2013-05-14 Tom Tromey <tromey@redhat.com>
4707
4708 * go32-nat.c (go32_terminal_info): Make 'args' const.
4709 * inferior.h (child_terminal_info): Update.
4710 * inflow.c (child_terminal_info): Make 'args' const.
4711 * target.c (default_terminal_info): Make 'args' const.
4712 (debug_to_terminal_save_ours): Likewise.
4713 * target.h (struct target_ops) <to_terminal_info>: Make argument
4714 const.
4715
4716 2013-05-13 Tom Tromey <tromey@redhat.com>
4717
4718 * gcore.c (create_gcore_bfd): Make 'filename' const.
4719 * gcore.h (create_gcore_bfd): Make 'filename' const.
4720 * record-full.c (record_full_save): Make 'recfilename' const.
4721 * target.c (target_save_record): Make 'filename' const.
4722 * target.h (struct target_ops) <to_save_record>: Make 'filename'
4723 const.
4724 (target_save_record): Likewise.
4725
4726 2013-05-13 Tom Tromey <tromey@redhat.com>
4727
4728 PR gdb/15338:
4729 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
4730 ranges section has been read.
4731
4732 2013-05-13 Tom Tromey <tromey@redhat.com>
4733
4734 PR exp/15364:
4735 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
4736 STRUCTOP_PTR>: Return a not_lval value for
4737 EVAL_AVOID_SIDE_EFFECTS.
4738 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
4739 for EVAL_AVOID_SIDE_EFFECTS.
4740
4741 2013-05-13 Joel Brobecker <brobecker@adacore.com>
4742
4743 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
4744 floating point registers to register type before storing
4745 value.
4746 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
4747 Likewise.
4748
4749 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4750 Tom Tromey <tromey@redhat.com>
4751
4752 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
4753 New functions.
4754 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
4755 Declare.
4756 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
4757 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
4758 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
4759 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
4760
4761 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
4762 Tom Tromey <tromey@redhat.com>
4763
4764 PR build/15414:
4765 * configure: Rebuild.
4766 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
4767 with -Wno-format.
4768
4769 2013-05-10 Pedro Alves <palves@redhat.com>
4770
4771 * remote.c (_initialize_remote): Fix spelling of
4772 qXfer:traceframe-info:read packet in packet config command.
4773
4774 2013-05-10 David Taylor <dtaylor@emc.com>
4775
4776 PR remote/15455
4777
4778 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
4779 "QTro" at start of packet.
4780
4781 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4782
4783 * solib-aix.c (solib_aix_relocate_section_addresses):
4784 For the .bss section action, apply the same offset as
4785 the .data section.
4786
4787 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4788
4789 * solib-aix.c (solib_aix_relocate_section_addresses):
4790 Remove FIXME comment.
4791
4792 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4793
4794 PR tdep/15420:
4795 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
4796 New functions, directly copied from sparc-sol-thread.c.
4797 * sparc-sol-thread.c: Delete.
4798 * configure.ac: Remove code handling sparc-solaris-thread.c.
4799 * configure: Regenerate.
4800
4801 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
4802
4803 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
4804 filter logic.
4805 (backtrace_command): Add "no-filters" option parsing.
4806 (_initialize_stack): Alter help to reflect "no-filters" option.
4807 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
4808 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
4809 (py-frame.o): Add target
4810 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
4811 filter files.
4812 * python/python.h: Add new frame filter constants, and flag enum.
4813 (apply_frame_filter): Add definition.
4814 * python/python.c (apply_frame_filter): New non-Python
4815 enabled function.
4816 * python/py-utils.c (py_xdecref): New function.
4817 (make_cleanup_py_xdecref): Ditto.
4818 * python/py-objfile.c: Declare frame_filters dictionary.
4819 (objfpy_dealloc): Add frame_filters dealloc.
4820 (objfpy_new): Initialize frame_filters attribute.
4821 (objfile_to_objfile_object): Ditto.
4822 (objfpy_get_frame_filters): New function.
4823 (objfpy_set_frame_filters): New function.
4824 * python/py-progspace.c: Declare frame_filters dictionary.
4825 (pspy_dealloc): Add frame_filters dealloc.
4826 (pspy_new): Initialize frame_filters attribute.
4827 (pspacee_to_pspace_object): Ditto.
4828 (pspy_get_frame_filters): New function.
4829 (pspy_set_frame_filters): New function.
4830 * python/py-framefilter.c: New file.
4831 * python/lib/gdb/command/frame_filters.py: New file.
4832 * python/lib/gdb/frames.py: New file.
4833 * python/lib/gdb/__init__.py: Initialize global frame_filters
4834 dictionary
4835 * python/lib/gdb/FrameDecorator.py: New file.
4836 * python/lib/gdb/FrameIterator.py: New file.
4837 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
4838 * mi/mi-cmds.h: Declare.
4839 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
4840 --no-frame-filter logic, and Python frame filter logic.
4841 (stack_enable_frame_filters): New function.
4842 (parse_no_frame_option): Ditto.
4843 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
4844 filter logic.
4845 (mi_cmd_stack_list_locals): Ditto.
4846 (mi_cmd_stack_list_args): Ditto.
4847 (mi_cmd_stack_list_variables): Ditto.
4848 * NEWS: Add frame filter note.
4849
4850 2013-05-09 Doug Evans <dje@google.com>
4851
4852 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
4853 All callers updated.
4854 (syms_from_objfile): Ditto. Make static.
4855 (symbol_file_add_with_addrs): Renamed from
4856 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
4857 num_offsets. All callers updated.
4858 * symfile.h (syms_from_objfile): Delete.
4859
4860 * symfile.c (decrement_reading_symtab): Add assert.
4861 (increment_reading_symtab): Ditto.
4862
4863 2013-05-09 Joel Brobecker <brobecker@adacore.com>
4864
4865 * source.c (forward_search_command): Replace call to getc
4866 by call to fgetc.
4867 (reverse_search_command): Likewise.
4868
4869 2013-05-08 Doug Evans <dje@google.com>
4870
4871 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
4872 matching test.
4873
4874 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4875
4876 * sol-thread.c (info_cb): Factorize the code a little.
4877
4878 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4879
4880 * sol-thread.c (info_cb): Rework the output of the "maintenance
4881 info sol-threads" command a bit.
4882
4883 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4884
4885 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
4886 Replace ti.ti_startfunc by ti.ti_pc.
4887
4888 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4889
4890 * solib-aix.c (solib_aix_free_library_list): New function
4891 for the case where HAVE_LIBEXPAT is not defined.
4892
4893 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4894
4895 PR breakpoints/15413:
4896 * breakpoint.c (condition_completer): Simplify the code to
4897 disconsider multiple locations of breakpoints when completing the
4898 "condition" command.
4899
4900 2013-05-07 Pierre Muller <muller@sourceware.org>
4901
4902 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
4903 instead of <sys/wait.h>.
4904
4905 2013-05-07 Pierre Muller <muller@sourceware.org>
4906
4907 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
4908 trailing new line from warning message.
4909
4910 2013-05-07 Pierre Muller <muller@sourceware.org>
4911
4912 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
4913 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
4914
4915 2013-05-07 Joel Brobecker <brobecker@adacore.com>
4916
4917 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
4918 error message (ARI fix).
4919
4920 2013-05-07 Joel Brobecker <brobecker@adacore.com>
4921
4922 * features/library-list-aix.dtd: Replace library-list by
4923 library-list-aix.
4924 * rs6000-nat.c: Replace library-list by library-list-aix
4925 throughout.
4926 * solib-aix.c: Likewise.
4927
4928 2013-05-07 Joel Brobecker <brobecker@adacore.com>
4929
4930 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
4931 Renames TARGET_OBJECT_AIX_LIBRARIES.
4932 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
4933 TARGET_OBJECT_LIBRARIES_AIX throughout.
4934 * solib-aix.c: Likwise.
4935
4936 2013-05-07 Yao Qi <yao@codesourcery.com>
4937
4938 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
4939 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
4940
4941 2013-05-07 Yao Qi <yao@codesourcery.com>
4942
4943 * solib-dsbt.c (enable_break): Declare.
4944 (dsbt_current_sos): Remove call to enable_break2.
4945 (enable_break2): Rename to enable_break. Set solib breakpoint
4946 on '_dl_debug_state'.
4947 (enable_break): Remove.
4948
4949 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
4950
4951 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
4952 debug state prior to replicating existing hardware watchpoints or
4953 breakpoints.
4954
4955 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4956
4957 * gcore.c (gcore_create_callback): Ignore sections with
4958 separate_debug_objfile_backlink != NULL.
4959
4960 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
4961 Andrew Jenner <andrew@codesourcery.com>
4962 Chung-Lin Tang <cltang@codesourcery.com>
4963 Julian Brown <julian@codesourcery.com>
4964
4965 Based on the nios2-elf port from Altera Corporation.
4966
4967 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
4968 nios2-linux-tdep.o.
4969 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
4970 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
4971 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
4972 * nios2-tdep.h: New.
4973 * nios2-tdep.c: New.
4974 * nios2-linux-tdep.c: New.
4975 * features/Makefile (WHICH): Add nios2-linux.
4976 (nios2-linux-expedite): Set.
4977 * features/nios2-cpu.xml: New.
4978 * features/nios2.xml: New.
4979 * features/nios2-linux.xml: New.
4980 * features/nios2.c: New (autogenerated).
4981 * features/nios2-linux.c: New (autogenerated).
4982 * regformats/nios2-linux.dat: New (autogenerated).
4983 * NEWS (Changes since GDB 7.6): Add new Nios II targets
4984 and commands.
4985
4986 2013-05-06 Doug Evans <dje@google.com>
4987
4988 * symfile.c: Whitespace cleanup.
4989
4990 * solist.h (struct target_so_ops): New member clear_so.
4991 * solib-svr4.c (svr4_clear_so): New function.
4992 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
4993 * solib.c (clear_so): Renamed from free_so_symbols.
4994 All callers updated. Call target clear_so if it exists.
4995
4996 2013-05-06 Tom Tromey <tromey@redhat.com>
4997
4998 * ada-lang.c (ada_value_primitive_packed_val): Don't
4999 call value_incref.
5000 * value.c (set_value_parent): Incref the new parent and decref
5001 the old parent.
5002 (value_copy, value_primitive_field): Use set_value_parent.
5003
5004 2013-05-06 Tom Tromey <tromey@redhat.com>
5005
5006 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5007 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5008 if needed.
5009 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5010 * dwarf2read.c (write_constant_as_bytes)
5011 (dwarf2_fetch_constant_bytes): New functions.
5012
5013 2013-05-06 Tom Tromey <tromey@redhat.com>
5014
5015 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5016 parameters.
5017 (dwarf2_const_value_attr): Update.
5018
5019 2013-05-06 Tom Tromey <tromey@redhat.com>
5020
5021 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5022 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5023 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5024 Remove declaration.
5025
5026 2013-05-06 Tom Tromey <tromey@redhat.com>
5027
5028 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5029 objfile's obstack.
5030
5031 2013-05-06 Doug Evans <dje@google.com>
5032
5033 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5034 * stabsread.h (process_one_symbol): Update declaration.
5035 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5036 * elfread.c (elf_symfile_relocate_probe): Ditto.
5037 * psymtab.c (relocate_psymtabs): Ditto.
5038 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5039 (objfile_relocate): Ditto.
5040 * objfiles.h (objfile_relocate): Update declaration.
5041 * symfile.c (relative_addr_info_to_section_offsets): Constify
5042 addrs parameter.
5043 (default_symfile_offsets): Ditto.
5044 (syms_from_objfile_1): Constify offsets parameter.
5045 (syms_from_objfile): Ditto.
5046 (symbol_file_add_with_addrs_or_offsets): Ditto.
5047 (symfile_map_offsets_to_segments): Constify data parameter.
5048 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5049 delta parameters of member relocate.
5050 (struct sym_probe_fns): Constify new_offsets,
5051 delta parameters of member sym_relocate_probe.
5052 (struct sym_fns): Constify section_addr_info parameter of member
5053 sym_offsets.
5054 (relative_addr_info_to_section_offsets): Update declaration.
5055 (default_symfile_offsets): Ditto.
5056 (syms_from_objfile): Ditto.
5057 (symfile_map_offsets_to_segments): Ditto.
5058
5059 * symfile.c (syms_from_objfile_1): Use correct section count when
5060 objfile->sf == NULL.
5061
5062 2013-05-06 Mike Frysinger <vapier@gentoo.org>
5063
5064 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5065
5066 2013-05-06 Doug Evans <dje@google.com>
5067
5068 * psympriv.h (struct partial_symtab): Augment comment for member
5069 section_offsets.
5070
5071 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5072
5073 Reimplement shared library support on ppc-aix...
5074 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5075 * features/library-list-aix.dtd: New file.
5076 * solib-aix.h, solib-aix.c: New file.
5077 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5078 (rs6000_find_toc_address_hook): Delete.
5079 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5080 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5081 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5082 "xml-utils.h".
5083 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5084 (vmap_symtab, fixup_breakpoints): Delete.
5085 (rs6000_xfer_shared_libraries): New function.
5086 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5087 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5088 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5089 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5090 (rs6000_xfer_shared_library): New function.
5091 (find_toc_address): Delete.
5092 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5093 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5094 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5095 before creating minimal symbol. Adjust function description
5096 accordingly.
5097 (scan_xcoff_symtab): Replace call to
5098 prim_record_minimal_symbol_and_info by call to
5099 record_minimal_symbol.
5100 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5101 around default_symfile_offsets.
5102 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5103 powerpc-aix targets.
5104 * config/rs6000/nm-rs6000.h: Delete.
5105 * config/powerpc/aix.mh (NAT_FILE): Delete.
5106 (NATDEPFILES): Remove xcoffsolib.o.
5107 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5108 (ALL_TARGET_OBS): Add solib-aix.o.
5109 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5110 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5111 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5112 * xcoffsolib.h, xcoffsolib.c: Delete.
5113
5114 * solib.c (reload_shared_libraries): Remove reference to
5115 SOLIB_CREATE_INFERIOR_HOOK.
5116 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5117 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5118 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5119 comment.
5120 * corelow.c (deprecated_core_resize_section_table): Delete.
5121 * exec.c: Remove include of xcoffsolib.h".
5122 (map_vmap, vmap): Delete.
5123 (exec_close_1): Remove references to vmap.
5124 (exec_file_attach): Remove vmap handling code, and reference
5125 to DEPRECATED_IBM6000_TARGET.
5126 (bfdsec_to_vmap): Delete.
5127 (exec_files_info): Remove block of code handling VMAP.
5128 * infcmd.c (post_create_inferior): Remove reference to
5129 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5130 * infrun.c (follow_exec): Remove reference to
5131 SOLIB_CREATE_INFERIOR_HOOK.
5132 * stack.c (print_frame): Remove reference to PC_SOLIB.
5133 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5134 (dsbt_relocate_main_executable): Likewise.
5135 * solib-frv.c (frv_current_sos): Likewise.
5136
5137 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5138
5139 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5140 to target_write_memory and target_read_memory.
5141
5142 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5143
5144 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5145 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5146
5147 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5148
5149 * darwin-nat.c: Replace all "%x" instances in format strings
5150 into "0x%x" throughout.
5151
5152 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5153
5154 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5155 gdb_assert by call to MACH_CHECK_ERROR.
5156 (darwin_attach_pid): Raise an error rather than a failed
5157 assertion when various system calls failed. Report a warning
5158 instead of raising a failed assertion when PREV_NOT is not NULL
5159 after call to mach_port_request_notification.
5160 (darwin_ptrace_me): Raise an error rather than a failed
5161 assertion when read returns nonzero.
5162
5163 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5164
5165 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5166
5167 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5168
5169 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5170
5171 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5172
5173 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5174 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5175 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5176 a stale cleanup. Fix double free of NAME.
5177
5178 2013-05-04 Eli Zaretskii <eliz@gnu.org>
5179
5180 * windows-nat.c (windows_delete_thread): Accept an additional
5181 argument, the thread's exit code, and announce thread death when
5182 print_thread_events is non-zero and we are deleting a thread that
5183 is not the main thread.
5184 (get_windows_debug_event): Pass thread exit code to
5185 windows_delete_thread.
5186
5187 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5188
5189 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5190 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5191 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5192 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5193 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5194 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5195 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5196 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5197 (gdbarch_tdep): New struct.
5198 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5199 E_NUM_REGS.
5200 (v850e3v5_register_name): New function.
5201 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5202 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5203 code handling the struct return conventions for the RH850 ABI.
5204 Update all callers.
5205 (v850_eight_byte_align_p): New function.
5206 (v850_push_call_dummy): Push structs by value, not by reference
5207 for the RH850 ABI. Add support for eight byte alignment.
5208 (v850_dbtrap_breakpoint_from_pc): New function.
5209 (v850_gdbarch_init): Add ABI detection code. Register
5210 v850e3v5_register_name for the v850e3v5 architecture. Set the
5211 number of registers for v850e3v5. Register
5212 v850_dbtrap_breakpoint_from_pc as appropriate.
5213 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5214
5215 2013-05-03 Doug Evans <dje@google.com>
5216
5217 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5218 of bfd_count_sections.
5219 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5220 * symfile.c (default_symfile_offsets): Ditto.
5221 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5222 one entry, not bfd_count_sections entries.
5223
5224 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5225
5226 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5227 `save' and `restore' register groups. Don't include SPL
5228 or SPH in these groups.
5229 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5230 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5231 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5232 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5233 dwarf2_append_unwinders().
5234
5235 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5236
5237 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5238 ignore SIGINT and SIGTRAP in case these internal signals are
5239 caught explicitely.
5240
5241 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5242
5243 * darwin-nat.c (darwin_read_write_inferior): Change types
5244 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5245 of copy_count to "mach_msg_type_number_t".
5246 (darwin_read_dyld_info): Change type of parameter
5247 rdaddr to "gdb_byte *".
5248
5249 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5250
5251 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5252 of &info->load_map from "char *" to "gdb_byte *".
5253
5254 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5255
5256 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5257 from "char *" to "gdb_byte *".
5258 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5259
5260 2013-04-30 Doug Evans <dje@google.com>
5261
5262 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5263 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5264 DWO stub. If DWO isn't found, just use stub.
5265 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5266
5267 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5268 calling init_cutu_and_read_dies.
5269
5270 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5271
5272 * target-descriptions.c (maint_print_c_tdesc_cmd):
5273 Add case to parse structures as register types and
5274 bitfields.
5275
5276 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
5277
5278 * MAINTAINERS (Write After Approval): Add myself to the list.
5279
5280 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5281
5282 * sol-thread.c (rw_common): Change type of parameter "buf"
5283 to "gdb_byte *".
5284 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5285 rw_common to "gdb_byte *" instead of "char *".
5286
5287 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5288
5289 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5290 of local variable msym to const struct bound_minimal_symbol.
5291 Adjust use accordingly.
5292 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5293
5294 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
5295
5296 * i386gnu-nat.c (CREG_OFFSET): New macro.
5297 (creg_offset): New array.
5298 (CREG_ADDR): Use creg_offset instead of reg_offset.
5299
5300 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5301
5302 * mep-tdep.c (mep_write_pc): Delete.
5303 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5304 Add call to set_gdbarch_pc_regnum.
5305
5306 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5307
5308 * common/filestuff.c: Replace #include <dirent.h> by
5309 #include "gdb_dirent.h".
5310
5311 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5312
5313 * common/filestuff.c: Replace #include <sys/stat.h> by
5314 #include "gdb_stat.h".
5315
5316 2013-04-29 Pierre Muller <muller@sourceware.org>
5317
5318 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5319 editCase function rule.
5320 (get_DW_AT_signature_type): Likewise.
5321
5322 2013-04-29 Joel Brobecker <brobecker@adacore.com>
5323
5324 * m32r-tdep.c (m32r_write_pc): Delete.
5325 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5326 Add call to set_gdbarch_pc_regnum.
5327
5328 2013-04-29 Pierre Muller <muller@sourceware.org>
5329
5330 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
5331
5332 2013-04-29 Joel Brobecker <brobecker@adacore.com>
5333
5334 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
5335
5336 2013-04-28 Yao Qi <yao@codesourcery.com>
5337
5338 * solib-dsbt.c (fetch_loadmap): Re-indent.
5339 (displacement_from_map, enable_break2): Likewise.
5340 (dsbt_relocate_section_addresses): Likewise.
5341
5342 2013-04-26 Joel Brobecker <brobecker@adacore.com>
5343
5344 GDB 7.6 released.
5345
5346 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
5347
5348 PR corefiles/14983:
5349 * dwarf2read.c (process_full_comp_unit): Always create a static
5350 block.
5351
5352 2013-04-25 Hui Zhu <hui@codesourcery.com>
5353
5354 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
5355 to loc->cmd_bytecode.
5356
5357 2013-04-24 Doug Evans <dje@google.com>
5358
5359 * dwarf2read.c (setup_type_unit_groups): Fix comment.
5360
5361 2013-04-22 Keith Seitz <keiths@redhat.com>
5362
5363 * tracepoint.c (trace_save): Call the writer's start method.
5364
5365 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
5366
5367 PR gdb/10462
5368 * cli/cli-decode.c (lookup_command): Show an error if there is no space
5369 before argument.
5370
5371 2013-04-23 Tom Tromey <tromey@redhat.com>
5372
5373 * common/filestuff.c: Check USE_WIN32API before including
5374 sys/socket.h.
5375 (HAVE_F_GETFD): New define.
5376 (mark_cloexec): Check HAVE_F_GETFD.
5377 (gdb_open_cloexec): Change 'mode' to unsigned long.
5378 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
5379 (gdb_pipe_cloexec): Check HAVE_PIPE.
5380 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
5381 long.
5382
5383 2013-04-23 Hui Zhu <hui@codesourcery.com>
5384
5385 PR gdb/15293
5386 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
5387
5388 2013-04-23 Hui Zhu <hui@codesourcery.com>
5389
5390 PR gdb/15165
5391 * breakpoint.c (dprintf_print_recreate): New.
5392 (save_breakpoints): Let it not save dprintf commands.
5393 (initialize_breakpoint_ops): Set dprintf_print_recreate.
5394
5395 2013-04-22 Tom Tromey <tromey@redhat.com>
5396
5397 PR gdb/7912:
5398 * Makefile.in (SFILES): Add filestuff.c
5399 (COMMON_OBS): Add filestuff.o.
5400 (filestuff.o): New target.
5401 * auto-load.c (auto_load_objfile_script_1): Use
5402 gdb_fopen_cloexec.
5403 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
5404 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
5405 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
5406 * common/agent.c (gdb_connect_sync_socket): Use
5407 gdb_socket_cloexec.
5408 * common/filestuff.c: New file.
5409 * common/filestuff.h: New file.
5410 * common/linux-osdata.c (linux_common_core_of_thread)
5411 (command_from_pid, commandline_from_pid, print_source_lines)
5412 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
5413 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
5414 gdb_fopen_cloexec.
5415 * common/linux-procfs.c (linux_proc_get_int)
5416 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
5417 * config.in, configure: Rebuild.
5418 * configure.ac: Don't check for sys/socket.h. Check for
5419 fdwalk, pipe2.
5420 * corelow.c (core_open): Use gdb_open_cloexec.
5421 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
5422 * fork-child.c (fork_inferior): Call close_most_fds.
5423 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
5424 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
5425 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
5426 Use gdb_fopen_cloexec.
5427 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
5428 gdb_open_cloexec.
5429 (linux_async_pipe): Use gdb_pipe_cloexec.
5430 * remote-fileio.c (remote_fileio_func_open): Use
5431 gdb_open_cloexec.
5432 * remote.c (remote_file_put, remote_file_get): Use
5433 gdb_fopen_cloexec.
5434 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
5435 close_most_fds.
5436 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
5437 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
5438 * solib.c (solib_find): Use gdb_open_cloexec.
5439 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
5440 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
5441 (tfile_open): Use gdb_open_cloexec.
5442 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
5443 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
5444 * xml-support.c (xml_fetch_content_from_file): Use
5445 gdb_fopen_cloexec.
5446 * main.c (captured_main): Call notice_open_fds.
5447
5448 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
5449
5450 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
5451 'char *' to 'gdb_byte *'.
5452 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
5453 'gdb_byte'.
5454
5455 2013-04-22 Yao Qi <yao@codesourcery.com>
5456
5457 * infrun.c: Fix typo in comment.
5458
5459 2013-04-22 Andrew Haley <aph@redhat.com>
5460
5461 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
5462 instead of "long".
5463
5464 2013-04-20 Yao Qi <yao@codesourcery.com>
5465
5466 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
5467 'char *' to 'gdb_byte *'. Cast the return value of
5468 'bt_ctf_get_char_array' to 'gdb_byte *'.
5469
5470 2013-04-19 Pedro Alves <palves@redhat.com>
5471
5472 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
5473 -Wpointer-sign.
5474 * configure: Regenerate.
5475
5476 2013-04-19 Pedro Alves <palves@redhat.com>
5477
5478 * ser-tcp.c (net_read_prim): Cast second argument to recv to
5479 'void *'.
5480
5481 2013-04-19 Pedro Alves <palves@redhat.com>
5482
5483 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
5484 Change type of 'myaddr' parameter to gdb_byte pointer.
5485 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
5486 to 'long long' pointer instead of to 'unsigned long long'.
5487 (monitor_write_memory_block, monitor_read_memory_single)
5488 (monitor_read_memory): Change type of 'myaddr' parameter to
5489 gdb_byte pointer.
5490
5491 2013-04-19 Pedro Alves <palves@redhat.com>
5492
5493 * record.c (validate_history_size): Make parameter 'setting'
5494 unsigned.
5495
5496 2013-04-19 Pedro Alves <palves@redhat.com>
5497
5498 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
5499 to 'gdb_byte *'.
5500
5501 2013-04-19 Pedro Alves <palves@redhat.com>
5502
5503 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
5504 local to int.
5505
5506 2013-04-19 Pedro Alves <palves@redhat.com>
5507
5508 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
5509 * ada-tasks.c (read_fat_string_value): Likewise.
5510
5511 2013-04-19 Pedro Alves <palves@redhat.com>
5512
5513 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
5514 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
5515 'offset', and adjust.
5516
5517 2013-04-19 Pedro Alves <palves@redhat.com>
5518
5519 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
5520 (read_index_from_section): Add cast to 'char *'.
5521
5522 2013-04-19 Pedro Alves <palves@redhat.com>
5523
5524 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
5525
5526 2013-04-19 Pedro Alves <palves@redhat.com>
5527
5528 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
5529
5530 2013-04-19 Pedro Alves <palves@redhat.com>
5531
5532 * record-full.c (record_full_get_bookmark): Change local 'ret'
5533 type to char * and add cast to gdb_byte *.
5534 (record_full_goto_bookmark): Handle 'bookmark' argument as a
5535 string.
5536 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
5537
5538 2013-04-19 Pedro Alves <palves@redhat.com>
5539
5540 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
5541 * python/py-prettyprint.c (print_string_repr): Change type of
5542 'output' local to char *. Add cast to gdb_byte * in
5543 LA_PRINT_STRING call.
5544 (print_children): Change type of 'output' local to char *.
5545 * python/py-value.c (valpy_string): Add cast to const char * in
5546 PyUnicode_Decode call.
5547
5548 2013-04-19 Pedro Alves <palves@redhat.com>
5549
5550 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
5551 and change its type to 'const char *'. Adjust.
5552 (mips_send_packet): Add cast to 'char *', and remove cast to
5553 'unsigned char *'.
5554 (mips_receive_packet): Remove cast to 'unsigned char *'.
5555 (mips_load_srec): Use bfd_byte.
5556 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
5557 (pmon_checkset): Make 'value' parameter unsigned.
5558
5559 2013-04-19 Pedro Alves <palves@redhat.com>
5560
5561 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
5562
5563 2013-04-19 Pedro Alves <palves@redhat.com>
5564
5565 * remote.c (remote_write_bytes_aux, compare_sections_command)
5566 (remote_read_qxfer)
5567 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
5568 (remote_hostio_readlink, remote_bfd_iovec_pread)
5569 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
5570 binary buffer, and char when buffer is used as string.
5571 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
5572 (trace_save, tfile_open, traceframe_walk_blocks)
5573 (tfile_fetch_registers): Likewise.
5574
5575 2013-04-19 Pedro Alves <palves@redhat.com>
5576
5577 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
5578 buffer and size_t size. Adjust.
5579 * ser-base.h (ser_base_write): Adjust.
5580 * ser-go32.c (cnts): Change type to size_t.
5581 (dos_write): Change prototype -- take 'void *'
5582 buffer and size_t size. Adjust.
5583 (dos_info): Print elements of 'cnts' as unsigned long.
5584 * serial.c (serial_write): Likewise.
5585 * serial.h (serial_write): Adjust.
5586 (struct serial_ops) <write>: Change prototype -- take 'void *'
5587 buffer and size_t size. Adjust.
5588
5589 2013-04-19 Pedro Alves <palves@redhat.com>
5590
5591 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
5592 gdb_byte *.
5593 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
5594
5595 2013-04-19 Pedro Alves <palves@redhat.com>
5596
5597 * alpha-tdep.c (alpha_extract_return_value): Use
5598 regcache_cooked_read_unsigned to read 'v0'.
5599
5600 2013-04-19 Pedro Alves <palves@redhat.com>
5601
5602 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
5603 parameters 'at', 'as' and 'offset' to uint32_t.
5604
5605 2013-04-19 Pedro Alves <palves@redhat.com>
5606
5607 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
5608 'is64' to signed 'int'.
5609
5610 2013-04-19 Pedro Alves <palves@redhat.com>
5611
5612 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
5613 parameter to int *.
5614
5615 2013-04-19 Pedro Alves <palves@redhat.com>
5616
5617 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
5618 'insnbuf' buffer type to unsigned int[].
5619
5620 2013-04-19 Pedro Alves <palves@redhat.com>
5621
5622 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
5623
5624 2013-04-19 Pedro Alves <palves@redhat.com>
5625
5626 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
5627 unsigned long *.
5628
5629 2013-04-19 Pedro Alves <palves@redhat.com>
5630
5631 * alpha-tdep.c (heuristic_fence_post): Change type to int.
5632 (alpha_heuristic_proc_start): Adjust to check -1 instead of
5633 UINT_MAX.
5634 * mips-tdep.c (heuristic_fence_post): Change type to int.
5635 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
5636
5637 2013-04-19 Pedro Alves <palves@redhat.com>
5638
5639 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
5640 (struct gdbarch_tdep) <cris_version>: Make unsigned.
5641 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
5642
5643 2013-04-19 Pedro Alves <palves@redhat.com>
5644
5645 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
5646 it to get a string view of the byte buffer.
5647 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
5648 type to gdb_byte *. Adjust.
5649 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
5650 Change local to char *.
5651 * solib-darwin.c (find_program_interpreter): Change return type to
5652 char *. Adjust.
5653 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
5654 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
5655 * solib-frv.c (enable_break2): Change local 'buf' to char *.
5656 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
5657 * solib-svr4.c (find_program_interpreter): Change return type to
5658 char *. Adjust.
5659 (enable_break): Change local 'interp_name' to char *.
5660 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
5661 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
5662 (spu_pseudo_register_write_spu): Use char for string buffer.
5663 Adjust.
5664 (info_spu_event_command, info_spu_signal_command): Add casts to
5665 'char *'.
5666
5667 2013-04-19 Pedro Alves <palves@redhat.com>
5668
5669 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
5670 gdb_byte[].
5671 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
5672 * ada-lang.c (ada_value_assign): Use gdb_byte.
5673 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
5674 (alphanbsd_sigtramp_offset): Use gdb_byte.
5675 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
5676 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
5677 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
5678 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
5679 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
5680 * arm-tdep.c (arm_stub_unwind_sniffer)
5681 (arm_displaced_init_closure): Use gdb_byte.
5682 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
5683 (arm_default_thumb_le_breakpoint)
5684 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
5685 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
5686 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
5687 * arm-wince-tdep.c (arm_wince_le_breakpoint)
5688 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
5689 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
5690 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
5691 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
5692 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
5693 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
5694 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
5695 (cris_store_return_value, cris_extract_return_value): Use
5696 gdb_byte.
5697 (constraint): Change type of parameter to char * from signed
5698 char*. Use gdb_byte.
5699 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
5700 of local buffer to gdb_byte *.
5701 * dwarf2read.c (read_index_from_section): Use gdb_byte.
5702 (create_dwp_hash_table): Change type of locals to gdb_byte *.
5703 (add_address_entry): Change type of local buffer to gdb_byte[].
5704 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
5705 (frv_push_dummy_call): Use gdb_byte.
5706 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
5707 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
5708 (hppa_hpux_supply_save_state): Use gdb_byte.
5709 * hppa-tdep.c (hppa32_push_dummy_call)
5710 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
5711 * ia64-tdep.c (extract_bit_field, replace_bit_field)
5712 (slotN_contents, replace_slotN_contents): Change type of parameter
5713 to gdb_byte *.
5714 (fetch_instruction, ia64_pseudo_register_write)
5715 (ia64_register_to_value, ia64_value_to_register)
5716 (ia64_extract_return_value, ia64_store_return_value)
5717 (ia64_push_dummy_call): Use gdb_byte.
5718 * m32c-tdep.c (m32c_return_value): Remove cast.
5719 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
5720 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
5721 gdb_byte.
5722 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
5723 * mn10300-tdep.c (mn10300_store_return_value)
5724 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
5725 gdb_byte.
5726 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
5727 (moxie_process_record): Remove casts.
5728 * ppc-ravenscar-thread.c (supply_register_at_address)
5729 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
5730 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
5731 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
5732 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
5733 * remote.c (compare_sections_command): Use gdb_byte.
5734 * score-tdep.c (score7_free_memblock): Change type of parameter to
5735 gdb_byte *.
5736 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
5737 gdb_byte *. Use gdb_byte.
5738 (sh_push_dummy_call_fpu): Use gdb_byte.
5739 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
5740 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
5741 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
5742 Change parameter type to 'gdb_byte *'. Use gdb_byte.
5743 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
5744 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
5745 (sh64_store_return_value, sh64_register_convert_to_virtual):
5746 Change parameter type to 'gdb_byte *'. Use gdb_byte.
5747 (sh64_pseudo_register_write): Use gdb_byte.
5748 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
5749 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
5750 buffer.
5751 (irix_current_sos): Use gdb_byte.
5752 * solib-som.c (som_current_sos): Use gdb_byte.
5753 * sparc-ravenscar-thread.c (supply_register_at_address)
5754 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
5755 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
5756 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
5757 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
5758 'gdb_byte *'.
5759 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
5760 'gdb_byte *'.
5761 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
5762 * xstormy16-tdep.c (xstormy16_extract_return_value)
5763 (xstormy16_store_return_value): Change parameter type to
5764 'gdb_byte *'. Adjust.
5765 (xstormy16_push_dummy_call): Use gdb_byte.
5766 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
5767 (call0_analyze_prologue, execute_code): Use gdb_byte.
5768
5769 2013-04-19 Vladimir Kargov <kargov@gmail.com>
5770 Pedro Alves <palves@redhat.com>
5771
5772 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
5773 value contents.
5774
5775 2013-04-17 Doug Evans <dje@google.com>
5776
5777 * dwarf2read.c (struct signatured_type): New member type.
5778 (struct attribute): Replace member signatured_type with signature.
5779 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
5780 (read_call_site_scope): Call follow_die_ref instead of
5781 follow_die_ref_or_sig.
5782 (read_structure_type): Rewrite handling of signatured types.
5783 (read_enumeration_type): Ditto.
5784 (read_attribute_value): Update.
5785 (build_error_marker_type): New function.
5786 (lookup_die_type): Add assert. Rewrite handling of signatured types.
5787 Don't call error for bad types, just build an error marker type.
5788 (dump_die_shallow): Update.
5789 (follow_die_sig_1): Renamed from follow_die_sig.
5790 Don't call error for bad types, instead return NULL.
5791 (follow_die_sig): New function.
5792 (get_signatured_type, get_DW_AT_signature_type): New functions.
5793
5794 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
5795
5796 * aarch64-tdep.c (aarch64_write_pc): Removed.
5797 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
5798 function.
5799
5800 2013-04-17 Yao Qi <yao@codesourcery.com>
5801
5802 * top.c (print_gdb_configuration): Print configure-time
5803 parameter on using libbabeltrace or not.
5804
5805 2013-04-16 Pedro Alves <palves@redhat.com>
5806
5807 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
5808
5809 2013-04-16 Pedro Alves <palves@redhat.com>
5810
5811 * common/glibc_thread_db.h: Update from upstream glibc
5812 (git 568035b7874a099087b77f7bba3e36a1173787b0).
5813
5814 2013-04-16 Pedro Alves <palves@redhat.com>
5815
5816 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
5817 * common/glibc_thread_db.h: ... this new file ...
5818 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
5819
5820 2013-04-16 Will Newton <will.newton@gmail.com>
5821 Pedro Alves <palves@redhat.com>
5822
5823 PR build/11881
5824
5825 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
5826 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
5827 HAVE_THREAD_DB_H.
5828
5829 2013-04-16 Pedro Alves <palves@redhat.com>
5830 Eli Zaretskii <eliz@gnu.org>
5831
5832 * NEWS: Mention "set foo unlimited".
5833
5834 2013-04-15 Doug Evans <dje@google.com>
5835
5836 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
5837 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
5838 (create_dwo_cu_reader): Renamed from
5839 create_dwo_debug_info_hash_table_reader.
5840 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
5841 Remove support for multiple CUs in a DWO file.
5842 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
5843
5844 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
5845 instead of phex.
5846 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
5847 (create_dwo_in_dwp): Ditto.
5848
5849 2013-04-15 Tom Tromey <tromey@redhat.com>
5850
5851 * NEWS: Move recent entries into "since 7.6" section.
5852
5853 2013-04-15 Tom Tromey <tromey@redhat.com>
5854
5855 PR c++/13588:
5856 * NEWS: Update.
5857 * break-catch-throw.c (struct exception_catchpoint)
5858 <exception_rx, pattern>: New fields.
5859 (fetch_probe_arguments, dtor_exception_catchpoint)
5860 (check_status_exception_catchpoint)
5861 (print_one_detail_exception_catchpoint): New functions.
5862 (handle_gnu_v3_exceptions): Add "except_rx" argument.
5863 Compile regular expression if needed.
5864 (extract_exception_regexp): New function.
5865 (catch_exception_command_1): Use extract_exception_regexp.
5866 (compute_exception): Use fetch_probe_arguments.
5867 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
5868 and check_status fields.
5869 * cp-abi.c (cplus_typename_from_type_info): New function.
5870 * cp-abi.h (cplus_typename_from_type_info): Declare.
5871 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
5872 * gdb_regex.h (compile_rx_or_error): Declare.
5873 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
5874 comment.
5875 (init_gnuv3_ops): Set get_type_from_type_info field.
5876 * probe.c (compile_rx_or_error): Move...
5877 * utils.c (compile_rx_or_error): ... here.
5878
5879 2013-04-15 Tom Tromey <tromey@redhat.com>
5880
5881 PR c++/15176:
5882 * NEWS: Update.
5883 * break-catch-throw.c (compute_exception): New function.
5884 (exception_funcs): New global.
5885 (_initialize_break_catch_throw): Create $_exception.
5886 * cp-abi.c (cplus_type_from_type_info): New function.
5887 * cp-abi.h (cplus_type_from_type_info): Declare.
5888 (struct cp_abi_ops) <get_type_from_type_info>: New field.
5889 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
5890 (gnuv3_get_type_from_type_info): New functions.
5891 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
5892
5893 2013-04-15 Tom Tromey <tromey@redhat.com>
5894
5895 * break-catch-throw.c (struct exception_names): New.
5896 (exception_functions): Change type.
5897 (re_set_exception_catchpoint): Look for SDT probes.
5898
5899 2013-04-15 Tom Tromey <tromey@redhat.com>
5900
5901 PR c++/10119:
5902 * break-catch-throw.c (exception_functions): New global.
5903 (gnu_v3_exception_catchpoint_ops): Move earlier.
5904 (struct exception_catchpoint): New.
5905 (classify_exception_breakpoint): Rewrite.
5906 (re_set_exception_catchpoint): New function.
5907 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
5908 Allocate a struct exception_catchpoint.
5909 (catch_exception_command_1): Update.
5910 (initialize_throw_catchpoint_ops): Set 're_set' method.
5911
5912 2013-04-15 Tom Tromey <tromey@redhat.com>
5913
5914 * Makefile.in (SFILES): Add break-catch-throw.c
5915 (COMMON_OBS): Add break-catch-throw.o.
5916 * break-catch-throw.c: New file.
5917 * breakpoint.c: Move exception-catching code to new file.
5918 (ep_parse_optional_if_clause): No longer static.
5919 * breakpoint.h (ep_parse_optional_if_clause): Declare.
5920
5921 2013-04-15 Tom Tromey <tromey@redhat.com>
5922
5923 PR c++/9065:
5924 * NEWS: Update.
5925 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
5926 * c-exp.y (TYPEID): New token.
5927 (exp): Add new TYPEID productions.
5928 (ident_tokens): Add "typeid".
5929 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
5930 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
5931 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
5932 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
5933 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
5934 case.
5935 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
5936 (build_std_type_info_type, gnuv3_get_typeid_type)
5937 (gnuv3_get_typeid): New functions.
5938 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
5939 new fields on ABI object.
5940 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
5941 * std-operator.def (OP_TYPEID): New.
5942
5943 2013-04-15 Tom Tromey <tromey@redhat.com>
5944
5945 * elfread.c (elf_symtab_read): Install versioned symbol under
5946 unversioned name as well.
5947
5948 2013-04-15 Tom Tromey <tromey@redhat.com>
5949
5950 PR c++/11990:
5951 * c-lang.c (cplus_language_defn): Use gdb_demangle.
5952 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
5953 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
5954 (gdb_demangle): New function.
5955 * cp-support.h (gdb_demangle): Declare.
5956 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
5957 (dwarf2_name): Use gdb_demangle.
5958 * gdbtypes.c (check_stub_method): Use gdb_demangle.
5959 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
5960 suffixes from name.
5961 (gnuv3_print_method_ptr): Use gdb_demangle.
5962 * jv-lang.c (java_demangle): Use gdb_demangle.
5963 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
5964 * language.c (unk_lang_demangle): Use gdb_demangle.
5965 * symtab.c (symbol_find_demangled_name)
5966 (demangle_for_lookup): Use gdb_demangle.
5967
5968 2013-04-15 Tom Tromey <tromey@redhat.com>
5969
5970 PR c++/12824:
5971 * NEWS: Update.
5972 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
5973 New constant.
5974 (classify_exception_breakpoint): New function.
5975 (print_it_exception_catchpoint, print_one_exception_catchpoint)
5976 (print_mention_exception_catchpoint)
5977 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
5978 (catch_exception_command_1): Handle "rethrow" catchpoint.
5979 (catch_rethrow_command): New function.
5980 (_initialize_breakpoint): Add "catch rethrow" command.
5981
5982 2013-04-15 Pierre Muller <muller@sourceware.org>
5983
5984 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
5985 set_gdbarch_write_pc as deprecated anymore.
5986
5987 2013-04-15 Joel Brobecker <brobecker@adacore.com>
5988
5989 * spu-tdep.c (spu_write_pc): Add empty line after local variable
5990 declarations.
5991
5992 2013-04-13 Yao Qi <yao@codesourcery.com>
5993
5994 * ctf.c (_initialize_ctf): Include "completer.h".
5995 Call add_target_with_completer instead of add_target.
5996
5997 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5998
5999 Fix GDB regression related to PR binutils/14813.
6000 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6001 * minidebug.c (lzma_close): Add return value comment.
6002 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6003 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6004 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6005
6006 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6007
6008 * config.in: Regenerate.
6009
6010 2013-04-12 Tom Tromey <tromey@redhat.com>
6011
6012 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6013 const.
6014 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6015 (struct die_reader_specs) <buffer>: Likewise.
6016 (die_reader_func_ftype): Make 'info_ptr' const.
6017 (struct line_header) <include_dirs, statement_program_start,
6018 statement_program_end>: Now const.
6019 (struct file_entry) <name>: Likewise.
6020 (struct partial_die_info) <sibling>: Likewise.
6021 (struct dwarf_block) <data>: Likewise.
6022 (dwarf2_read_section): Remove cast.
6023 (dwarf2_get_section_info): Make 'bufp' const.
6024 (read_index_from_section): Constify.
6025 (dw2_get_file_names_reader): Make 'info_ptr' const.
6026 (dw2_get_primary_filename_reader): Likewise.
6027 (read_comp_unit_head): Make 'info_ptr' and return type const.
6028 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6029 Likewise.
6030 (read_abbrev_offset): Constify.
6031 (dwarf2_create_include_psymtab): Make 'name' const.
6032 (create_debug_types_hash_table): Update.
6033 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6034 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6035 Constify.
6036 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6037 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6038 (read_comp_units_from_section): Constify.
6039 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6040 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6041 const.
6042 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6043 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6044 (create_dwp_hash_table, dwarf2_ranges_read)
6045 (dwarf2_record_block_ranges): Constify.
6046 (read_die_and_children, read_die_and_siblings_1)
6047 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6048 const.
6049 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6050 (abbrev_table_read_table): Constify.
6051 (load_partial_dies): Make 'info_ptr' const.
6052 (read_partial_die, read_attribute_value, read_attribute): Make
6053 'info_ptr' and return type const.
6054 (read_address, read_initial_length)
6055 (read_checked_initial_length_and_offset, read_offset)
6056 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6057 const.
6058 (read_direct_string): Make 'buf' and return type const.
6059 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6060 (read_indirect_string): Make return type const.
6061 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6062 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6063 'info_ptr' const.
6064 (read_str_index): Make return type const.
6065 (add_include_dir): Make 'include_dir' const.
6066 (add_file_name): Make 'name' const.
6067 (dwarf_decode_line_header): Constify.
6068 (psymtab_include_file_name): Make return type const.
6069 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6070 (dwarf2_start_subfile): Make 'filename' const.
6071 (dwarf2_const_value_attr): Make 'bytes' const.
6072 (read_signatured_type_reader): Make 'info_ptr' const.
6073 (decode_locdesc): Constify.
6074 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6075 const.
6076 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6077 'mac_end', and return type const.
6078 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6079 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6080 type const.
6081 (per_cu_header_read_in): Constify.
6082 * symfile.h (dwarf2_get_section_info): Update.
6083
6084 2013-04-12 Tom Tromey <tromey@redhat.com>
6085
6086 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6087
6088 2013-04-12 Eli Zaretskii <eliz@gnu.org>
6089
6090 * NEWS: Mention "show configuration", --configuration.
6091 * top.c (print_gdb_configuration): New function, displays the
6092 details about GDB configure-time parameters.
6093 (print_gdb_version): Mention "show configuration".
6094 * cli/cli-cmds.c (show_configuration): New function.
6095 (_initialize_cli_cmds): Add the "show configuration" command.
6096 * main.c (captured_main) <print_configuration>: New static var.
6097 <long_options>: Use it.
6098 If --configuration was given, call print_gdb_configuration.
6099
6100 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6101 Pedro Alves <palves@redhat.com>
6102
6103 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6104 (generated_files): Add gcore.
6105 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6106 HAVE_NATIVE_GCORE_HOST.
6107 (gcore): New.
6108 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6109 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6110 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6111 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6112 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6113 Add HAVE_NATIVE_GCORE_HOST.
6114 * configure: Regenerate.
6115 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6116 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6117 AC_CONFIG_FILES for gcore.
6118 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6119 gdb_have_gcore.
6120 * gdb_gcore.sh: Rename to ...
6121 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6122 and GCORE_TRANSFORM_NAME substitutions.
6123
6124 Fix parsing tabs in ${gdb_target_obs}.
6125 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6126
6127 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6128
6129 * remote.c (unpush_and_perror): Add output message final dot.
6130
6131 2013-04-11 Yao Qi <yao@codesourcery.com>
6132
6133 * tracepoint.c (tfile_interp_line): Fit parameters line and
6134 utpp in one line.
6135
6136 2013-04-10 Joel Brobecker <brobecker@adacore.com>
6137
6138 * solib.c (solib_map_sections): Remove code overwriting
6139 SO->SO_NAME with the bfd's filename.
6140
6141 2013-04-10 Pedro Alves <palves@redhat.com>
6142
6143 * cli/cli-decode.c (integer_unlimited_completer): New function.
6144 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6145 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6146 completer.
6147 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6148 (is_unlimited_literal): New function.
6149 (do_set_command): Handle literal "unlimited" arguments.
6150 * frame.c (_initialize_frame) <set backtrace limit>: Document
6151 "unlimited".
6152 * printcmd.c (_initialize_printcmd) <set print
6153 max-symbolic-offset>: Add help text.
6154 * record-full.c (_initialize_record_full) <set record full
6155 insn-number-max>: Likewise.
6156 * record.c (_initialize_record) <set record
6157 instruction-history-size, set record function-call-history-size>:
6158 Add help text.
6159 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6160 help text.
6161 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6162 Likewise.
6163 * source.c (_initialize_source) <set listsize>: Add help text.
6164 * utils.c (initialize_utils) <set height, set width>: Likewise.
6165 <set pagination>: Mention "set height unlimited".
6166 * valprint.c (_initialize_valprint) <set print elements, set print
6167 repeats>: Document "unlimited".
6168
6169 2013-04-10 Pedro Alves <palves@redhat.com>
6170
6171 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6172 instead of disconnect_tracing.
6173 * infcmd.c (detach_command, disconnect_command): Call
6174 query_if_trace_running. Adjust.
6175 * top.c: Include "tracepoint.h".
6176 (quit_target): Delete. Contents moved ...
6177 (quit_force): ... here. Wrap each stage of teardown in
6178 TRY_CATCH. Call disconnect_tracing before detaching.
6179
6180 2013-04-10 Hui Zhu <hui@codesourcery.com>
6181 Yao Qi <yao@codesourcery.com>
6182
6183 * configure.ac: Check libbabeltrace is installed.
6184 * config.in: Regenerate.
6185 * configure: Regenerate.
6186 * Makefile.in (LIBBABELTRACE): New.
6187 (CLIBS): Add LIBBABELTRACE.
6188 * ctf.c: Include "exec.h".
6189 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6190 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6191 (ctf_save_metadata_header): Define new type aliases in
6192 metadata.
6193 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6194 in metadata. Start a new faked packet for trace status.
6195 (ctf_write_status): Write trace status to CTF.
6196 (ctf_write_uploaded_tsv): Write TSV to CTF.
6197 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6198 (ctf_write_definition_end): End the faked packet.
6199
6200 (ctx, ctf_iter, trace_dirname): New.
6201 (start_pos): New variable.
6202 (ctf_destroy, ctf_open_dir, ctf_open): New.
6203 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6204 macros.
6205 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6206 (ctf_fetch_registers, ctf_xfer_partial): New.
6207 (ctf_get_trace_state_variable_value): New.
6208 (ctf_get_tpnum_from_frame_event): New.
6209 (ctf_get_traceframe_address): New.
6210 (ctf_trace_find, ctf_has_stack): New.
6211 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6212 (ctf_get_trace_status, ctf_read_status): New.
6213 (_initialize_ctf): New.
6214 * tracepoint.c (get_tracepoint_number): New
6215 (get_uploaded_tsv): Remove 'static'.
6216 (struct traceframe_info, trace_regblock_size): Move it to ...
6217 * tracepoint.h: ... here.
6218 (get_tracepoint_number): Declare it.
6219 (get_uploaded_tsv): Declare it.
6220
6221 * NEWS: Mention new configure option.
6222
6223 2013-04-10 Pedro Alves <palves@redhat.com>
6224 Hui Zhu <hui@codesourcery.com>
6225
6226 * breakpoint.c (dprintf_re_set): New.
6227 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6228 to dprintf_re_set.
6229
6230 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6231
6232 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6233 Remove solib-svr4.o from the list.
6234
6235 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6236
6237 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6238 Use gdb_assert_not_reached instead of invalid boolean expression.
6239
6240 2013-04-09 Pedro Alves <palves@redhat.com>
6241
6242 * remote.c (unpush_and_perror): New function.
6243 (readchar, remote_serial_write): Use it.
6244
6245 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6246
6247 * NEWS: Mention new btrace RSP packets.
6248
6249 2013-04-08 Tom Tromey <tromey@redhat.com>
6250
6251 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6252 long.
6253
6254 2013-04-08 Tom Tromey <tromey@redhat.com>
6255
6256 * maint.c (print_bfd_section_info): Print the section index.
6257 * symmisc.c (dump_msymbols): Print the section index.
6258
6259 2013-04-08 Tom Tromey <tromey@redhat.com>
6260
6261 PR symtab/8424:
6262 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6263 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6264 * breakpoint.c (resolve_sal_pc): Update.
6265 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6266 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6267 (minsym_lookup_iterator_cb): Use it.
6268 (default_read_var_value): Update.
6269 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6270 Update.
6271 * infcmd.c (jump_command): Update.
6272 * linespec.c (minsym_found): Update.
6273 * maint.c (maintenance_translate_address): Update.
6274 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6275 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6276 * parse.c (write_exp_msymbol): Update.
6277 * printcmd.c (address_info): Update.
6278 * psymtab.c (find_pc_sect_psymbol): Update.
6279 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6280 SYMBOL_OBJ_SECTION.
6281 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6282 Don't initialize SYMBOL_OBJ_SECTION.
6283 * spu-tdep.c (spu_catch_start): Update.
6284 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6285 * symmisc.c (dump_msymbols, print_symbol): Update.
6286 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6287 how fallback section is computed.
6288 (fixup_symbol_section): Update.
6289 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6290 Update.
6291 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6292 Initialize SYMBOL_SECTION.
6293 * symtab.h (struct general_symbol_info) <section>: Update comment.
6294 <obj_section>: Remove.
6295 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6296 (SYMBOL_OBJFILE): New macro.
6297
6298 2013-04-08 Tom Tromey <tromey@redhat.com>
6299
6300 * coffread.c (record_minimal_symbol): Update.
6301 * dbxread.c (record_minimal_symbol): Update.
6302 * elfread.c (record_minimal_symbol): Update.
6303 * machoread.c (macho_symtab_add_minsym): Update.
6304 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6305 Update.
6306 * minsyms.c (prim_record_minimal_symbol): Update.
6307 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6308 argument.
6309 (prim_record_minimal_symbol_and_info): Likewise.
6310 * minsyms.h (prim_record_minimal_symbol_full)
6311 (prim_record_minimal_symbol_and_info): Update.
6312 * symtab.c (allocate_symbol, initialize_symbol)
6313 (allocate_template_symbol): Initialize SYMBOL_SECTION.
6314 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6315 Update.
6316
6317 2013-04-08 Tom Tromey <tromey@redhat.com>
6318
6319 PR symtab/8423:
6320 * solib-som.c (som_solib_section_offsets): Use BFD section
6321 indices. Set offsets for all sections.
6322 * somread.c (som_symtab_read): Compute BFD section for
6323 symbol. Use prim_record_minimal_symbol_and_info.
6324 (som_symfile_read): Fix comment.
6325 (struct find_section_offset_arg): New.
6326 (find_section_offset, set_section_index): New functions.
6327 (som_symfile_offsets): Use set_section_index to compute
6328 section indices.
6329
6330 2013-04-08 Tom Tromey <tromey@redhat.com>
6331
6332 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
6333 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
6334 gdb_bfd_section_index.
6335 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
6336 New functions.
6337 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
6338 Declare.
6339 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
6340 Update.
6341 * objfiles.c (add_to_objfile_sections_full): New function.
6342 (add_to_objfile_sections): Use it.
6343 (build_section_table): Rewrite.
6344 (objfile_relocate1): Use gdb_bfd_section_index. Update.
6345 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
6346 (struct objfile) <sections>: Update comment.
6347 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
6348 is NULL.
6349 (ALL_OBJSECTIONS): Use it.
6350 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6351 * solib-frv.c (frv_relocate_main_executable): Update.
6352 * solib-target.c (solib_target_relocate_section_addresses):
6353 Use gdb_bfd_section_index.
6354 * symfile.c (build_section_addr_info_from_section_table):
6355 Use gdb_bfd_section_index.
6356 (build_section_addr_info_from_bfd, place_section): Likewise.
6357 * symtab.c (fixup_section): Update.
6358 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
6359
6360 2013-04-08 Tom Tromey <tromey@redhat.com>
6361
6362 * minsyms.h (struct bound_minimal_symbol): New.
6363 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6364 Remove objfile argument.
6365 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6366 Return bound_minimal_symbol.
6367 * minsyms.c (lookup_minimal_symbol_by_pc_1)
6368 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6369 Return bound_minimal_symbol.
6370 (in_gnu_ifunc_stub): Update.
6371 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6372 Remove 'objfile_p' argument.
6373 (lookup_solib_trampoline_symbol_by_pc): Update.
6374 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
6375 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
6376 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
6377 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
6378 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
6379 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
6380 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
6381 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
6382 stack.c, symtab.c, tui/tui-disasm.c: Update.
6383
6384 2013-04-08 Tom Tromey <tromey@redhat.com>
6385
6386 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
6387 Use symbol's obstack, not an objfile.
6388 * coffread.c (process_coff_symbol): Update.
6389 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
6390 * jv-lang.c (add_class_symbol): Update.
6391 * mdebugread.c (new_symbol): Update.
6392 * minsyms.c (prim_record_minimal_symbol_full)
6393 (terminate_minimal_symbol_table): Update.
6394 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
6395 * stabsread.c (define_symbol, read_enum_type): Update.
6396 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
6397 Handle Ada specially.
6398 (symbol_set_language): Add 'obstack' argument.
6399 (symbol_set_names): Update.
6400 (symbol_natural_name, symbol_demangled_name): Always use
6401 ada_decode_symbol.
6402 * symtab.h (struct general_symbol_info)
6403 <language_specific::obstack>: New field.
6404 <ada_mangled>: New field.
6405 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
6406 (symbol_set_language): Update.
6407
6408 2013-04-08 Tom Tromey <tromey@redhat.com>
6409
6410 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
6411 Take an obstack, not an objfile.
6412 (symbol_set_names): Update.
6413 * symtab.h (symbol_set_demangled_name): Update.
6414
6415 2013-04-08 Tom Tromey <tromey@redhat.com>
6416
6417 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
6418 allocate_symbol.
6419 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
6420 (read_func_scope): Call allocate_template_symbol.
6421 (new_symbol_full): Call allocate_symbol.
6422 * jit.c (finalize_symtab): Call allocate_symbol.
6423 * jv-lang.c (add_class_symbol): Call allocate_symbol.
6424 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
6425 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6426 (common_block_end): Call allocate_symbol.
6427 * symtab.c (allocate_symbol, initialize_symbol)
6428 (allocate_template_symbol): New functions.
6429 * symtab.c (allocate_symbol, initialize_symbol)
6430 (allocate_template_symbol): Declare.
6431 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
6432
6433 2013-04-08 Pedro Alves <palves@redhat.com>
6434 Keith Seitz <keiths@redhat.com>
6435
6436 * breakpoint.c (create_breakpoint): Rename
6437 "parse_condition_and_thread" parameter to "parse_arg". Update
6438 describing comment. If !PARSE_ARG, then error out if ARG is not
6439 the empty string after extracting the location.
6440 * breakpoint.h (create_breakpoint): Rename
6441 "parse_condition_and_thread" parameter to "parse_arg".
6442
6443 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
6444
6445 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
6446
6447 2013-04-07 Yao Qi <yao@codesourcery.com>
6448
6449 * remote.c (remote_trace_find): Change type of parameters 'addr1'
6450 and 'addr2' to CORE_ADDR.
6451 * target.c (update_current_target): Update.
6452 * target.h (struct target_ops) <to_trace_find>: Change parameter
6453 type to CORE_ADDR.
6454 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
6455 'addr2' to CORE_ADDR.
6456 (tfile_trace_find): Likewise.
6457 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
6458 Change local variable 'addr' to type CORE_ADDR.
6459 * tracepoint.h (tfind_1): Update declaration.
6460
6461 2013-04-06 Eli Zaretskii <eliz@gnu.org>
6462
6463 * windows-nat.c (windows_get_absolute_argv0): Move from here...
6464 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
6465 Include main.h.
6466
6467 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
6468 here...
6469 * main.h (windows_get_absolute_argv0): ...to here.
6470
6471 2013-04-05 Doug Evans <dje@google.com>
6472
6473 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
6474 (read_cutu_die_from_dwo): Add comments.
6475 (read_structure_type): Update comment.
6476 (read_enumeration_type, read_namespace_type): Update comment.
6477 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
6478
6479 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6480
6481 Convert man pages to texinfo, new gdbinit.5 texinfo page.
6482 * Makefile.in (gdb.z): Remove.
6483 (install-only): Remove $(man1dir) and gdb.1 installation.
6484 * gdb.1: Remove.
6485
6486 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6487
6488 Fix compatibility with Linux kernel 3.8.3.
6489 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
6490 to more inner block. Remove parsing of NUMBER from outer block.
6491 Parse NUMBER only if KEYWORD has been identified.
6492
6493 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6494
6495 Fix variable name shadowing.
6496 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
6497 filename to mapsfilename and update its uses.
6498
6499 2013-04-05 Eli Zaretskii <eliz@gnu.org>
6500
6501 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
6502 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
6503 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
6504 details of the problem.
6505
6506 2013-04-04 Pedro Alves <palves@redhat.com>
6507 Hui Zhu <hui@codesourcery.com>
6508
6509 * breakpoint.c (validate_commands_for_breakpoint): If validating a
6510 tracepoint, reset its STEP_COUNT and call validate_actionline.
6511
6512 2013-04-03 Doug Evans <dje@google.com>
6513
6514 * dwarf2read.c (read_die_and_siblings_1): Renamed from
6515 read_die_and_siblings.
6516 (read_die_and_siblings): New function.
6517 (read_cutu_die_from_dwo): Dump die if requested.
6518 (read_die_and_children): Call read_full_die_1 and
6519 read_die_and_siblings_1.
6520 (read_full_die): Dump die if requested.
6521
6522 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
6523
6524 * dwarf2read.c (struct dwo_file): New member comp_dir.
6525 Rename member name to dwo_name. All uses updated.
6526 (hash_dwo_file): Include comp_dir in computation.
6527 (eq_dwo_file): Ditto.
6528 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
6529 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
6530
6531 * psymtab.c (read_psymtabs_with_fullname): Don't call
6532 psymtab_to_fullname if the basenames are different.
6533
6534 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6535
6536 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
6537 New entry about "fullname" presence.
6538
6539 2013-04-03 Pedro Alves <palves@redhat.com>
6540
6541 * NEWS: Mention x86_64/Cygwin as new native configuration.
6542
6543 2013-04-02 Doug Evans <dje@google.com>
6544
6545 * dwarf2read.c (read_structure_type): Fix typo in comment.
6546
6547 2013-04-02 Pedro Alves <palves@redhat.com>
6548
6549 * NEWS: Mention "set/show debug aarch64", "set/show debug
6550 coff-pe-read" and "set/show debug mach-o".
6551
6552 2013-04-02 Pedro Alves <palves@redhat.com>
6553
6554 * NEWS: Mention "set/show remote trace-buffer-size-packet".
6555
6556 2013-04-02 Eli Zaretskii <eliz@gnu.org>
6557
6558 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
6559 gdb_string.h is now in common/.
6560
6561 2013-04-02 Pedro Alves <palves@redhat.com>
6562
6563 * NEWS: Move "set debug notification" and "set trace-buffer-size"
6564 under "New options".
6565
6566 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6567
6568 Revert this patch:
6569 PR gdb/15275
6570 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6571
6572 2013-04-02 Pedro Alves <palves@redhat.com>
6573
6574 PR gdb/15275
6575
6576 * remote.c (send_interrupt_sequence): Use remote_serial_write.
6577 (remote_serial_write): New function.
6578 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
6579
6580 2013-04-01 Jiong Wang <jiwang@tilera.com>
6581
6582 * NEWS: Mention TILE-Gx in "New native configurations" and
6583 "New targets" sections.
6584
6585 2013-04-01 Doug Evans <dje@google.com>
6586
6587 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
6588 (process_enumeration_scope): Simplify.
6589
6590 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
6591 type_unit_group ...
6592 (struct signatured_type): ... to here.
6593 (sig_type_ptr): New typedef.
6594 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
6595 out of union 't'. All uses updated.
6596 (dw2_get_file_names_reader): Assert not called for a type unit.
6597 (dw2_get_file_names): Assert not called for a type unit or type
6598 unit group.
6599 (build_type_psymtabs_reader): Assert called for a type unit.
6600 (build_type_psymtab_dependencies): Assert called for a type unit group.
6601
6602 * dwarf2read.c (free_dwo_file): Add comment.
6603 (dwarf2_per_objfile_free): Unref dwp bfd.
6604
6605 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6606
6607 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
6608 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
6609 (read_pe_exported_syms): Remove unused 'exportix'.
6610 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
6611 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
6612 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
6613
6614 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6615
6616 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
6617 (print_it_watchpoint): Remove unused 'bl'.
6618 (say_where): Remove unused 'uiout'.
6619 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
6620 (bkpt_breakpoint_hit): Remove unused 'b'.
6621 (internal_bkpt_print_it): Remove unused 'uiout'.
6622 * buildsym.c (augment_type_symtab): Remove unused 'i'.
6623
6624 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
6625
6626 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
6627 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
6628
6629 2013-03-29 Doug Evans <dje@google.com>
6630
6631 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
6632 Delete arg is_dwp. All callers updated.
6633 (open_dwp_file): New function.
6634 (open_and_init_dwp_file): Call it.
6635 (get_dwp_file): New function.
6636 (lookup_dwo_cutu): Call it.
6637
6638 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
6639 unnecessary, cleanup.
6640
6641 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
6642
6643 * dwarf2read.c (read_cutu_die_from_dwo): New function.
6644 (lookup_dwo_unit): New function.
6645 (init_cutu_and_read_dies): Move DWO handling to new functions.
6646
6647 * dwarf2read.c (struct signatured_type): Tweak comment.
6648 (struct dwo_unit): Tweak comment.
6649 (create_debug_types_hash_table): Tweak comment. Reformat long line.
6650 (create_dwo_debug_info_hash_table): Tweak comment.
6651 (dwarf2_per_cu_offset_and_type): Tweak comment.
6652
6653 * dwarf2read.c (lookup_signatured_type): Remove complaint about
6654 missing .debug_types section.
6655
6656 2013-03-29 Yao Qi <yao@codesourcery.com>
6657
6658 * corelow.c: Include "completer.h".
6659 (_initialize_corelow): Call add_target_with_completer with
6660 argument 'filename_completer'.
6661 * tracepoint.c: Likewise.
6662 * exec.c (_initialize_exec): Likewise.
6663 * target.c (add_target): Rename to ...
6664 (add_target_with_completer): ... this. Call set_cmd_completer
6665 if parameter completer is not NULL.
6666 (add_target): New.
6667 * target.h: Include "command.h".
6668 (add_target_with_completer): Declare it.
6669
6670 2013-03-28 Joel Brobecker <brobecker@adacore.com>
6671
6672 * coffread.c (is_import_fixup_symbol): New function.
6673 (record_minimal_symbol): Use is_import_fixup_symbol to
6674 detect import fixup symbols, and discard them.
6675
6676 2013-03-28 Doug Evans <dje@google.com>
6677
6678 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
6679 types hash table until we know we need it.
6680
6681 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
6682 index numbers.
6683
6684 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
6685 All callers updated.
6686 (dw2_print_stats): Print #read CUs too.
6687 (dump_die_shallow): Print signatured types better.
6688
6689 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
6690 info_or_types_section to section. All uses updated.
6691 (struct dwo_unit): Ditto.
6692
6693 2013-03-28 Pedro Alves <palves@redhat.com>
6694
6695 * NEWS (New options): New section.
6696 (New options): Mention set/show remote trace-status-packet.
6697 * remote.c (PACKET_qTStatus): New enumeration value.
6698 (remote_get_trace_status): Skip sending qTStatus if the packet is
6699 disabled. Use packet_ok.
6700 (_initialize_remote): Register a configuration command for
6701 qTStatus packet.
6702
6703 2013-03-28 Doug Evans <dje@google.com>
6704
6705 * symfile.c (find_separate_debug_file): Add comment.
6706 (terminate_after_last_dir_separator): Tweak comment.
6707
6708 * dwarf2read.c (create_partial_symtab): Add forward decl.
6709 (create_partial_symtab): Move to be closer to other psymtab functions.
6710 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
6711
6712 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
6713 (compute_symtab_includes): Remove unnecessary forward declaration.
6714 (die_needs_namespace): Add comment marking group of functions for
6715 dwarf2 name computation.
6716
6717 * typeprint.c (_initialize_typeprint): Improve type help text.
6718
6719 * python/python.c (finish_python_initialization): Provide suggestion
6720 for how to tell gdb to find its python files.
6721
6722 2013-03-28 Pedro Alves <palves@redhat.com>
6723
6724 PR gdb/15294
6725
6726 * source.c (_initialize_source): Change back "set listsize" to an
6727 integer command.
6728
6729 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
6730
6731 PR gdb/15275
6732 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6733
6734 2013-03-27 Pedro Alves <palves@redhat.com>
6735
6736 * top.c (history_size): Rename to ...
6737 (history_size_setshow_var): ... this. Add comment.
6738 (show_commands): Use readline's 'history_length' instead of
6739 computing the history length by calling history_get in a loop.
6740 (set_history_size_command): Error out for sizes over INT_MAX.
6741 Restore previous history size on invalid size.
6742 (init_history): If HISTSIZE is negative, leave the history size as
6743 zero. Add comments.
6744 (init_main): Adjust.
6745
6746 2013-03-27 Pedro Alves <palves@redhat.com>
6747
6748 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
6749 coff_pe_read" command to "set debug coff-pe-read".
6750
6751 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
6752
6753 * record.c (command_size_to_target_size): Fix size comparison.
6754 Change parameter type from pointer to integer to integer.
6755 Update all users.
6756
6757 2013-03-27 Pierre Muller <muller@sourceware.org>
6758
6759 * windows-nat.c (handle_output_debug_string): Avoid typecast
6760 from integer of different size warning.
6761
6762 2013-03-26 Joel Brobecker <brobecker@adacore.com>
6763
6764 * windows-nat.c (handle_output_debug_string): Add empty line
6765 after local block variable definition.
6766
6767 2013-03-26 Pedro Alves <palves@redhat.com>
6768
6769 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
6770 (net_open): Make 'polls' local unsigned.
6771
6772 2013-03-26 Pedro Alves <palves@redhat.com>
6773
6774 * remote.c (_initialize_remote): Make "set remoteaddresssize"
6775 a zuinteger command instead of uinteger.
6776
6777 2013-03-26 Pedro Alves <palves@redhat.com>
6778
6779 * record-full.c (record_full_insn_num): Make it unsigned.
6780 (record_full_check_insn_num, record_full_message)
6781 (record_full_registers_change, record_full_xfer_partial): Remove
6782 record_full_insn_max_num check (it's always != 0).
6783 (record_full_info, record_full_restore): Use %u as format string.
6784 (): Use %u as format string.
6785 (set_record_full_insn_max_num): Remove record_full_insn_max_num
6786 check (it's always != 0).
6787
6788 2013-03-26 Pedro Alves <palves@redhat.com>
6789
6790 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
6791 and "set dcache size" commands zuinteger instead of uinteger.
6792
6793 2013-03-26 Pedro Alves <palves@redhat.com>
6794
6795 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
6796 command zuinteger instead of uinteger.
6797
6798 2013-03-26 Pedro Alves <palves@redhat.com>
6799
6800 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
6801 zuinteger instead of uinteger.
6802
6803 2013-03-26 Pedro Alves <palves@redhat.com>
6804
6805 * record.c (record_insn_history_size_setshow_var)
6806 (record_call_history_size_setshow_var): New globals.
6807 (command_size_to_target_size): New function.
6808 (cmd_record_insn_history, cmd_record_call_history): Use
6809 command_size_to_target_size instead of cast.
6810 (validate_history_size, set_record_insn_history_size)
6811 (set_record_call_history_size): New functions.
6812 (_initialize_record): Install set_record_insn_history_size and
6813 set_record_call_history_size as "set" hooks of "set record
6814 instruction-history-size" and "set record
6815 function-call-history-size".
6816
6817 2013-03-26 Pedro Alves <palves@redhat.com>
6818
6819 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
6820 use with history_max_entries use. Remove FIXME note.
6821
6822 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
6823
6824 * record-btrace.c (record_btrace_close): Call
6825 record_btrace_auto_disable.
6826
6827 2013-03-25 Joel Brobecker <brobecker@adacore.com>
6828
6829 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
6830
6831 2013-03-25 Doug Evans <dje@google.com>
6832
6833 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
6834
6835 2013-03-25 Tom Tromey <tromey@redhat.com>
6836
6837 PR symtab/11462:
6838 * c-exp.y (exp): Add new productions for destructors after '.' and
6839 '->'.
6840 (write_destructor_name): New function.
6841
6842 2013-03-25 Tom Tromey <tromey@redhat.com>
6843
6844 PR c++/9197:
6845 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
6846 value_struct_elt, not lookup_struct_elt_type.
6847 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6848 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
6849 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
6850
6851 2013-03-25 Yao Qi <yao@codesourcery.com>
6852
6853 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
6854 instead of '_mkdir'.
6855
6856 2013-03-23 Eli Zaretskii <eliz@gnu.org>
6857
6858 * windows-nat.c (windows_get_absolute_argv0): New function.
6859 * windows-nat.h: Add its prototype.
6860
6861 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
6862 Use IS_DIR_SEPARATOR instead of looking for a character inside
6863 SLASH_STRING. Include filenames.h.
6864 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
6865 relocate_gdb_directory works when passed gdb_program_name.
6866 Include windows-nat.h.
6867
6868 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6869
6870 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
6871 * remote.c (trace_error): Remove the special handling of '2'.
6872 (readchar) <SERIAL_EOF>
6873 (readchar) <SERIAL_ERROR>
6874 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
6875 (remote_get_trace_status): Call throw_exception if EX is
6876 TARGET_CLOSE_ERROR.
6877 * utils.c (perror_with_name): Rename to ...
6878 (throw_perror_with_name): ... here. New parameter errcode, describe it
6879 in the function comment.
6880 (perror_with_name): New function wrapper.
6881 * utils.h (enum errors): New stub declaration.
6882 (throw_perror_with_name): New declaration.
6883
6884 2013-03-22 Pedro Alves <palves@redhat.com>
6885 Yao Qi <yao@codesourcery.com>
6886 Mark Kettenis <kettenis@gnu.org>
6887
6888 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
6889 Don't let the user set the value to UINT_MAX directly.
6890 <var_integer>: Don't let the user set the value to INT_MAX
6891 directly.
6892
6893 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6894
6895 * remote.c (remote_unpush_target): New function.
6896 (remote_open_1): Remove two pop_target calls, update one comment, add
6897 comment to target_preopen call. Replace pop_target call by
6898 remote_unpush_target call.
6899 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
6900 pop_target calls by remote_unpush_target calls.
6901
6902 2013-03-22 Pedro Alves <palves@redhat.com>
6903
6904 * linux-nat.c (linux_child_follow_fork): Don't call
6905 linux_enable_event_reporting.
6906 (linux_handle_extended_wait): Don't call
6907 linux_enable_event_reporting.
6908
6909 2013-03-22 Pedro Alves <palves@redhat.com>
6910
6911 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
6912 use it to rewrite the trampoline buffers with type gdb_byte[], and
6913 undefine the macro. Remove char* cast.
6914
6915 2013-03-21 Doug Evans <dje@google.com>
6916
6917 New commands "mt set per-command {space,time,symtab} {on,off}".
6918 * NEWS: Add entry.
6919 * event-top.c: #include "maint.h".
6920 * main.c: #include "maint.h".
6921 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
6922 timeval-utils.h, maint.h, cli/cli-setshow.h.
6923 (per_command_time, per_command_space): New static globals.
6924 (per_command_symtab): New static global.
6925 (per_command_setlist, per_command_showlist): New static globals.
6926 (struct cmd_stats): Move here from utils.c.
6927 (set_per_command_time): Renamed from set_display_time in utils.c
6928 and moved here. All callers updated.
6929 (set_per_command_space): Renamed from set_display_space in utils.c
6930 and moved here. All callers updated.
6931 (count_symtabs_and_blocks): New function.
6932 (report_command_stats): Moved here from utils.c. Add support for
6933 printing symtab stats. Only print data if enabled before command
6934 executed.
6935 (make_command_stats_cleanup): Ditto.
6936 (sert_per_command_cmd, show_per_command_cmd): New functions.
6937 (_initialize_maint_cmds): Add new commands
6938 mt set per-command {space,time,symtab} {on,off}.
6939 * maint.h: New file.
6940 * top.c: #include "maint.h".
6941 * utils.c (reset_prompt_for_continue_wait_time): New function.
6942 (get_prompt_for_continue_wait_time): New function.
6943 * utils.h (reset_prompt_for_continue_wait_time): Declare
6944 (get_prompt_for_continue_wait_time): Declare.
6945 (make_command_stats_cleanup): Moved to maint.h.
6946 (set_display_time, set_display_space): Moved to maint.h and renamed
6947 to set_per_command_time, set_per_command_space.
6948 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
6949 parse_binary_operation and made non-static. Don't call error,
6950 just return an error marker. All callers updated.
6951 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
6952
6953 2013-03-21 Tom Tromey <tromey@redhat.com>
6954
6955 * symfile.c (alloc_section_addr_info): Update header. Don't set
6956 'num_sections' field.
6957 (build_section_addr_info_from_section_table): Set 'num_sections'.
6958 (build_section_addr_info_from_bfd): Likewise.
6959 (build_section_addr_info_from_objfile): Remove dead loop
6960 condition.
6961 (free_section_addr_info): Unconditionally call xfree.
6962 (relative_addr_info_to_section_offsets, addrs_section_sort)
6963 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
6964 condition.
6965 (syms_from_objfile_1): Remove dead 'if' condition. Check
6966 'num_sections'.
6967 (add_symbol_file_command): Set 'num_sections'.
6968 * symfile-mem.c (symbol_file_add_from_memory): Set
6969 'num_sections'.
6970 * somread.c (som_symfile_offsets): Remove dead loop condition.
6971 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
6972 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
6973
6974 2013-03-21 Tom Tromey <tromey@redhat.com>
6975
6976 * tracepoint.h (decode_agent_options): Add 'trace_string'
6977 argument.
6978 * tracepoint.c (decode_agent_options): Add 'trace_string'
6979 argument.
6980 (validate_actionline): Update.
6981 (collect_symbol): Add 'trace_string' argument.
6982 (struct add_local_symbols_data) <trace_string>: New field.
6983 (do_collect_symbol): Update.
6984 (add_local_symbols): Add 'trace_string' argument.
6985 (encode_actions_1): Update.
6986 (trace_dump_actions): Update.
6987 * dwarf2loc.c (access_memory): Update.
6988 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
6989 * ax-general.c (new_agent_expr): Update.
6990 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
6991 (gen_trace_for_return_address): Add argument.
6992 (trace_kludge, trace_string_kludge): Remove.
6993 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
6994 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
6995 (gen_trace_for_var): Add 'trace_string' argument.
6996 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
6997 (gen_printf, agent_eval_command_one): Update.
6998
6999 2013-03-21 Tom Tromey <tromey@redhat.com>
7000
7001 PR exp/15109:
7002 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7003 Handle FILENAME token.
7004
7005 2013-03-21 Tom Tromey <tromey@redhat.com>
7006
7007 * c-exp.y (YYPRINT): Define.
7008 (c_print_token): New function.
7009
7010 2013-03-21 Tom Tromey <tromey@redhat.com>
7011
7012 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7013
7014 2013-03-21 Yao Qi <yao@codesourcery.com>
7015
7016 * ctf.c: Include "gdb_stat.h".
7017 [USE_WIN32API]: New macro 'mkdir'.
7018 (ctf_start): Use permission bits macros if they are defined.
7019
7020 2013-03-20 Keith Seitz <keiths@redhat.com>
7021
7022 * breakpoint.h (struct breakpoint): Add comment to
7023 extra_string indicating that this member is mallod'd.
7024 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7025
7026 2013-03-20 Pedro Alves <palves@redhat.com>
7027
7028 PR gdb/15289
7029
7030 * cli/cli-setshow.c (do_set_command)
7031 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7032 the result of parsing the command argument. Throw error if the
7033 value is greater than UINT_MAX. Print the invalid value with
7034 plongest.
7035 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7036 result of parsing the command argument. Throw error if the value
7037 is greater than INT_MAX, not greater or equal. Also throw error
7038 if the value is less than INT_MIN. Print the invalid value with
7039 plongest.
7040 <var_zuinteger_unlimited>: Throw error if the value is greater
7041 than INT_MAX, not greater or equal.
7042 (do_show_command) <var_integer, var_zinteger,
7043 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7044
7045 2013-03-20 Tom Tromey <tromey@redhat.com>
7046
7047 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7048 if possible.
7049 * dwarf2read.c (read_func_scope): Remove old FIXME.
7050 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7051 not LOC_COMPUTED.
7052 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7053 Unconditionally call via computed ops, if possible.
7054 * printcmd.c (address_info): Unconditionally call via computed ops,
7055 if possible.
7056 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7057 if possible.
7058 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7059 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7060 if possible.
7061
7062 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7063 Tom Tromey <tromey@redhat.com>
7064
7065 PR symtab/8421:
7066 * coffread.c (coff_register_index): New global.
7067 (process_coff_symbol, coff_read_enum_type): Set
7068 SYMBOL_ACLASS_INDEX.
7069 (_initialize_coffread): Initialize new global.
7070 * dwarf2loc.c (locexpr_find_frame_base_location)
7071 (dwarf2_block_frame_base_locexpr_funcs)
7072 (loclist_find_frame_base_location)
7073 (dwarf2_block_frame_base_loclist_funcs): New.
7074 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7075 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7076 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7077 (dwarf2_block_frame_base_loclist_funcs): New.
7078 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7079 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7080 globals.
7081 (read_func_scope): Update.
7082 (fixup_go_packaging, mark_common_block_symbol_computed)
7083 (var_decode_location, new_symbol_full, dwarf2_const_value):
7084 Set SYMBOL_ACLASS_INDEX.
7085 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7086 (_initialize_dwarf2_read): Initialize new globals.
7087 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7088 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7089 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7090 globals.
7091 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7092 (_initialize_mdebugread): Initialize new globals.
7093 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7094 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7095 (stab_register_index, stab_regparm_index): New globals.
7096 (define_symbol, read_enum_type, common_block_end): Set
7097 SYMBOL_ACLASS_INDEX.
7098 (_initialize_stabsread): Initialize new globals.
7099 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7100 globals.
7101 (MAX_SYMBOL_IMPLS): New define.
7102 (register_symbol_computed_impl, register_symbol_block_impl)
7103 (register_symbol_register_impl)
7104 (initialize_ordinary_address_classes): New functions.
7105 (_initialize_symtab): Call initialize_ordinary_address_classes.
7106 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7107 (struct symbol_impl): New.
7108 (SYMBOL_ACLASS_BITS): New define.
7109 (struct symbol) <aclass, ops>: Remove fields.
7110 <aclass_index>: New field.
7111 (symbol_impls): Declare.
7112 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7113 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7114 (register_symbol_computed_impl, register_symbol_block_impl)
7115 (register_symbol_register_impl): Declare.
7116 (struct symbol_computed_ops): Add location_has_loclist.
7117 (struct symbol_block_ops): New.
7118 (SYMBOL_BLOCK_OPS): New.
7119 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7120
7121 2013-03-20 Tom Tromey <tromey@redhat.com>
7122
7123 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7124 (print_partial_symbols, recursively_search_psymtabs): Use
7125 PSYMBOL_CLASS.
7126
7127 2013-03-20 Pierre Muller <muller@sourceware.org>
7128
7129 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7130 addtion, subtraction, multiplication and division binary operator.
7131
7132 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7133
7134 Code cleanup.
7135 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7136 * bsd-kvm.c (bsd_kvm_close): Likewise.
7137 * bsd-uthread.c (bsd_uthread_close): Likewise.
7138 * corelow.c (core_close): Likewise.
7139 (core_close_cleanup): Remove parameter quitting from a caller.
7140 * event-top.c (async_disconnect): Likewise.
7141 * exec.c (exec_close_1): Remove parameter quitting.
7142 * go32-nat.c (go32_close): Likewise.
7143 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7144 parameter quitting from a caller.
7145 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7146 variable.
7147 (mips_linux_close): Remove parameter quitting. Remove parameter
7148 quitting from a caller.
7149 * monitor.c (monitor_close): Remove parameter quitting.
7150 * monitor.h (monitor_close): Likewise.
7151 * record-btrace.c (record_btrace_close): Likewise.
7152 * record-full.c (record_full_close): Likewise.
7153 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7154 it also from fprintf_unfiltered.
7155 * remote-mips.c (mips_close): Remove parameter quitting.
7156 (mips_detach): Remove parameter quitting from a caller.
7157 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7158 (gdbsim_close): Remove duplicate function comment. Remove parameter
7159 quitting and remove it also from printf_filtered.
7160 * remote.c (remote_close): Remove parameter quitting.
7161 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7162 * target.c (update_current_target): Remove parameter int from to_close
7163 de_fault.
7164 (push_target, unpush_target, pop_target): Remove parameter quitting from
7165 a caller.
7166 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7167 Remove parameter quitting from a caller.
7168 (target_preopen): Remove parameter quitting from a caller.
7169 (target_close): Remove parameter quitting. Remove parameter quitting
7170 from a caller two times. Remove parameter quitting also from
7171 fprintf_unfiltered.
7172 * target.h (struct target_ops): Remove parameter quitting and as int
7173 from fields to_xclose and to_close.
7174 (extern struct target_ops current_target):
7175 (target_close, pop_all_targets): Remove parameter quitting. Update the
7176 comment.
7177 (pop_all_targets_above): Remove parameter quitting.
7178 * top.c (quit_target): Remove parameter quitting from a caller.
7179 * tracepoint.c (tfile_close): Remove parameter quitting.
7180 * windows-nat.c (windows_close): Remove parameter quitting.
7181
7182 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
7183
7184 * windows-nat.c (handle_output_debug_string): Replace call
7185 to string_to_core_addr with call to strtoull.
7186
7187 2013-03-20 Yao Qi <yao@codesourcery.com>
7188
7189 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7190 and write it to CTF metadata.
7191
7192 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
7193
7194 * windows-nat.c (handle_output_debug_string): Change type of n to
7195 SIZE_T to avoid crash on 64 bit systems.
7196
7197 2013-03-17 Eli Zaretskii <eliz@gnu.org>
7198
7199 * python/python-internal.h (HAVE_SNPRINTF)
7200 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7201 about redefinition of snprintf by pyerrors.h.
7202
7203 2013-03-15 Steve Ellcey <sellcey@mips.com>
7204
7205 * remote-sim.c (sim_command_completer): Make char arguments const.
7206
7207 2013-03-15 Tom Tromey <tromey@redhat.com>
7208
7209 PR c++/15116:
7210 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7211
7212 2013-03-14 Tom Tromey <tromey@redhat.com>
7213
7214 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7215 New fields.
7216 (get_file_crc): Move from symfile.c.
7217 (gdb_bfd_crc): New function.
7218 * gdb_bfd.h (gdb_bfd_crc): Declare.
7219 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7220 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7221 (separate_debug_file_exists): Use gdb_bfd_crc.
7222
7223 2013-03-14 Tom Tromey <tromey@redhat.com>
7224
7225 * symfile.c (get_debug_link_info): Remove.
7226 (find_separate_debug_file_by_debuglink): Use
7227 bfd_get_debug_link_info.
7228
7229 2013-03-14 Tom Tromey <tromey@redhat.com>
7230
7231 * symtab.c (error_in_psymtab_expansion): New function.
7232 (lookup_symbol_aux_quick)
7233 (basic_lookup_transparent_type_quick): Remove "last resort"
7234 code. Use error_in_psymtab_expansion.
7235
7236 2013-03-14 Doug Evans <dje@google.com>
7237 Jan Kratochvil <jan.kratochvil@redhat.com>
7238
7239 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7240 any successful compare_filenames_for_search or FILENAME_CMP.
7241 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7242 * symtab.c (iterate_over_some_symtabs): Likewise.
7243
7244 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7245
7246 * source.c (print_source_lines_base): Make a local copy of
7247 symtab_to_fullname.
7248
7249 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
7250 Jan Kratochvil <jan.kratochvil@redhat.com>
7251
7252 * source.c (print_source_lines_base): Suppress "file" for TUI.
7253
7254 2013-03-14 Keith Seitz <keiths@redhat.com>
7255 Alan Matsuoka <alanm@redhat.com>
7256
7257 PR c++/15203
7258 PR c++/15210
7259 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7260 TYPE_CODE_METHOD.
7261 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7262 symbols.
7263
7264 2013-03-14 Yao Qi <yao@codesourcery.com>
7265
7266 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7267 status to tfile if trace is stopped by command 'tstop'.
7268
7269 2013-03-14 Yao Qi <yao@codesourcery.com>
7270
7271 * tracepoint.c (tfile_write_status): Write trace notes and user
7272 name into tfile if they are not NULL.
7273
7274 2013-03-14 Hui Zhu <hui@codesourcery.com>
7275 Yao Qi <yao@codesourcery.com>
7276
7277 * Makefile.in (REMOTE_OBS): Add ctf.o.
7278 (SFILES): Add ctf.c.
7279 (HFILES_NO_SRCDIR): Add ctf.h.
7280 * ctf.c, ctf.h: New files.
7281 * tracepoint.c: Include 'ctf.h'.
7282 (collect_pseudocommand): Remove static.
7283 (trace_save_command): Parse option "-ctf".
7284 Produce different trace file writers per option.
7285 Adjust output message.
7286 (trace_save_tfile, trace_save_ctf): New.
7287 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7288 * mi/mi-main.c: Include 'ctf.h'.
7289 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7290 trace_save_tfile or trace_save_ctf.
7291 * NEWS: Mention these changes.
7292
7293 2013-03-14 Yao Qi <yao@codesourcery.com>
7294
7295 * tracepoint.c (trace_file_writer_xfree): New.
7296 (struct tfile_writer_data): New.
7297 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7298 (tfile_write_header, tfile_write_regblock_type): New.
7299 (tfile_write_status, tfile_write_uploaded_tsv): New.
7300 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7301 (tfile_write_raw_data, (tfile_end): New.
7302 (tfile_write_ops): New global variable.
7303 (TRACE_WRITE_R_BLOCK): New macro.
7304 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7305 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7306 (TRACE_WRITE_V_BLOCK): New macro.
7307 (trace_save): Add extra one parameter WRITER. Make it static.
7308 Use WRITER to writer trace.
7309 (tfile_trace_file_writer_new): New.
7310 (trace_save_command): Caller update.
7311 (trace_save_tfile): Write trace data in TFILE format.
7312 * tracepoint.h (struct trace_frame_write_ops): New.
7313 (struct trace_file_write_ops): New.
7314 (struct trace_file_writer): New.
7315 (trace_save): Remove its declaration.
7316 (trace_save_tfile): Declare it.
7317 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7318 instead of trace_save.
7319
7320 2013-03-13 Pedro Alves <palves@redhat.com>
7321
7322 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7323
7324 2013-03-13 Pedro Alves <palves@redhat.com>
7325
7326 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7327 commented out code.
7328 * demangle.c (current_demangling_style_string): Make it const.
7329 (set_demangling_command): Assert the demangling style is known.
7330 Remove all handling of unknown styles. Set
7331 'current_demangling_style_string' to an element of the
7332 demangling_style_names array.
7333 (set_demangling_style): Delete.
7334 (_initialize_demangler): Set current_demangling_style_string to the
7335 element of the demangling_style_names array that corresponds to
7336 the default demangling style. Remove FIXME note. Don't call
7337 set_demangling_style.
7338 * gdb-demangle.h (set_demangling_style): Remove declaration.
7339
7340 2013-03-13 Pedro Alves <palves@redhat.com>
7341
7342 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
7343 fields const.
7344 (ada_make_symbol_completion_list): Make "text0" parameter const.
7345 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
7346 * breakpoint.c (condition_completer): Make "text" and "word"
7347 parameters const. Adjust.
7348 (check_tracepoint_command): Adjust to validate_actionline
7349 prototype change.
7350 (catch_syscall_completer): Make "text" and "word" parameters
7351 const.
7352 * cli/cli-cmds.c (show_user): Make "comname" local const.
7353 (valid_command_p): Make "command" parameter const.
7354 (alias_command): Make "alias_prefix" and "command_prefix" locals
7355 const.
7356 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
7357 (add_alias_cmd): Make "name" and "oldname" parameters const.
7358 Adjust. No longer make copy of OLDNAME.
7359 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
7360 (add_setshow_cmd_full, add_setshow_enum_cmd)
7361 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7362 (add_setshow_filename_cmd, add_setshow_string_cmd)
7363 (add_setshow_string_noescape_cmd)
7364 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7365 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7366 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
7367 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
7368 Make "name" parameter const.
7369 (help_cmd): Rename "command" parameter to "arg". New const local
7370 "command".
7371 (find_cmd): Make "command" parameter const.
7372 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
7373 deprecated_cmd_warning prototype change.
7374 (undef_cmd_error): Make "cmdtype" parameter const.
7375 (lookup_cmd): Make "line" parameter const.
7376 (deprecated_cmd_warning): Change type of "text" parameter to
7377 pointer to const char, from pointer to pointer to char. Adjust.
7378 (lookup_cmd_composition): Make "text" parameter const.
7379 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
7380 parameters const.
7381 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
7382 const.
7383 * cli/cli-script.c (validate_comname): Make "tem" local const.
7384 (define_command): New const local "tem_c". Use it in calls to
7385 lookup_cmd.
7386 (document_command): Make "tem" and "comfull" locals const.
7387 (show_user_1): Make "prefix" and "name" parameters const.
7388 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
7389 const.
7390 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
7391 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
7392 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
7393 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
7394 (complete_on_enum, add_setshow_enum_cmd)
7395 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7396 (add_setshow_filename_cmd, add_setshow_string_cmd)
7397 (add_setshow_string_noescape_cmd)
7398 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7399 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7400 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
7401 Change prototypes, constifying strings.
7402 * completer.c (noop_completer, filename_completer): Make "text"
7403 and "prefix" parameters const.
7404 (location_completer, expression_completer)
7405 (complete_line_internal): Make "text" and "prefix" parameters
7406 const and adjust.
7407 (command_completer, signal_completer): Make "text" and "prefix"
7408 parameters const.
7409 * completer.h (noop_completer, filename_completer)
7410 (expression_completer, location_completer, command_completer)
7411 (signal_completer): Change prototypes.
7412 * corefile.c (complete_set_gnutarget): Make "text" and "word"
7413 parameters const.
7414 * cp-abi.c (cp_abi_completer): Likewise.
7415 * expression.h (parse_expression_for_completion): Change
7416 prototype.
7417 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
7418 parameters const.
7419 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
7420 * infrun.c (handle_completer): Make "text" and "word" parameters
7421 const.
7422 * interps.c (interpreter_completer): Make "text" and "word"
7423 parameters const.
7424 * language.h (struct language_defn)
7425 <la_make_symbol_completion_list>: Make "text" and "word"
7426 parameters const.
7427 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
7428 (parse_exp_in_context): Rename to ...
7429 (parse_exp_in_context_1): ... this.
7430 (parse_exp_in_context): Reimplement, with const hack from
7431 parse_exp_1.
7432 (parse_expression_for_completion): Make "string" parameter const.
7433 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
7434 to pointer to const char. Adjust.
7435 (print_command_1): Make "exp" parameter const.
7436 (output_command): Rename to ...
7437 (output_command_const): ... this. Make "exp" parameter const.
7438 (output_command): Reimplement.
7439 (x_command): Adjust.
7440 (display_command): Rename "exp" parameter to "arg". New "exp"
7441 local, const version of "arg".
7442 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
7443 "cmd_name" local const.
7444 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
7445 call.
7446 (cmdpy_completer): Make "text" and "word" parameters const.
7447 (gdbpy_parse_command_name): Make "prefix_text2" local const.
7448 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
7449 const.
7450 * remote.c (_initialize_remote): Make "cmd_name" local const.
7451 * symtab.c (language_search_unquoted_string): Make "text" and "p"
7452 parameters const. Adjust.
7453 (completion_list_add_fields): Make "sym_text", "text" and "word"
7454 parameters const.
7455 (struct add_name_data) <sym_text, text, word>: Make fields const.
7456 (default_make_symbol_completion_list_break_on): Make "text" and
7457 "word" parameters const. Adjust locals.
7458 (default_make_symbol_completion_list)
7459 (make_symbol_completion_list, make_symbol_completion_type)
7460 (make_symbol_completion_list_fn): Make "text" and "word"
7461 parameters const.
7462 (make_file_symbol_completion_list): Make "text", "word" and
7463 "srcfile" parameters const. Adjust locals.
7464 (add_filename_to_list): Make "text" and "word" parameters const.
7465 (struct add_partial_filename_data) <text, word>: Make fields
7466 const.
7467 (make_source_files_completion_list): Make "text" and "word"
7468 parameters const.
7469 * symtab.h (default_make_symbol_completion_list_break_on)
7470 (default_make_symbol_completion_list, make_symbol_completion_list)
7471 (make_symbol_completion_type enum type_code)
7472 (make_symbol_completion_list_fn make_file_symbol_completion_list)
7473 (make_source_files_completion_list): Change prototype.
7474 * top.c (execute_command): Adjust to pass pointer to pointer to
7475 const char to lookup_cmd, and to deprecated_cmd_warning prototype
7476 change.
7477 (set_verbose): Make "cmdname" local const.
7478 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
7479 and adjust.
7480 (validate_actionline): Make "line" parameter a pointer to const
7481 char, and adjust.
7482 (encode_actions_1): Make "action_exp" local const, and adjust.
7483 (encode_actions): Adjust.
7484 (replace_comma): Delete.
7485 (trace_dump_actions): Make "action_exp" and "next_comma" locals
7486 const, and adjust. Don't frob the action string while splitting
7487 it at commas. Instead, make a copy of each split substring in
7488 turn.
7489 (trace_dump_command): Adjust to validate_actionline prototype
7490 change.
7491 * tracepoint.h (decode_agent_options, decode_agent_options)
7492 (encode_actions, validate_actionline): Change prototypes.
7493 * valprint.h (output_command): Delete declaration.
7494 (output_command_const): Declare.
7495 * value.c (function_destroyer): Cast const away in xfree call.
7496
7497 2013-03-13 Pedro Alves <palves@redhat.com>
7498
7499 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
7500 rather than casting 'const char * const *' to 'const char **'.
7501 * ada-lex.l (processInt): Make "trailer" local const. Remove
7502 'const char **' cast.
7503 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
7504 locals, and use those as strtol output pointer, instead than doing
7505 invalid casts to from 'const char **' to 'char **'.
7506 (_initialize_demangle): Remove cast.
7507 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
7508 locals, and use those as strtol output pointer, instead than doing
7509 invalid casts to from 'const char **' to 'char **'.
7510 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
7511 casts.
7512 * stap-probe.c (stap_parse_register_operand)
7513 (stap_parse_single_operand): Likewise.
7514
7515 2013-03-13 Yao Qi <yao@codesourcery.com>
7516
7517 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
7518 the last matched 'V' blcok in trace frame.
7519
7520 2013-03-12 Joel Brobecker <brobecker@adacore.com>
7521
7522 * NEWS: Create a new section for the next release branch.
7523 Rename the section of the current branch, now that it has
7524 been cut.
7525
7526 2013-03-12 Joel Brobecker <brobecker@adacore.com>
7527
7528 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
7529 * version.in: Bump version to 7.6.50.20130312-cvs.
7530
7531 2013-03-12 Keith Seitz <keiths@redhat.com>
7532
7533 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
7534 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
7535 Remove temporary copy of input string.
7536 (mi_execute_command_wrapper): Make "cmd" const.
7537 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
7538 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
7539 Use const strings.
7540 (mi_parse): Make "cmd" const.
7541 Use const strings.
7542 * mi/mi-parse.h (mi_parse): Make "cmd" const.
7543
7544 2013-03-12 Keith Seitz <keiths@redhat.com>
7545
7546 * ada-lang.c (ada_read_renaming_var_value): Pass const
7547 pointer to expression string to parse_exp_1.
7548 (create_excep_cond_exprs): Likewise.
7549 * ax-gdb.c (agent_eval_command_one): Likewise.
7550 (maint_agent_printf_command): Likewise.
7551 Constify much of the string handling/parsing.
7552 * breakpoint.c (set_breakpoint_condition): Pass const
7553 pointer to expression string to parse_exp_1.
7554 (update_watchpoint): Likewise.
7555 (parse_cmd_to_aexpr): Constify string handling.
7556 Pass const pointer to parse_exp_1.
7557 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
7558 (find_condition_and_thread): Likewise.
7559 Make TOK const.
7560 (watch_command_1): Make "arg" const.
7561 Constify string handling.
7562 Copy the expression string instead of changing the input
7563 string.
7564 (update_breakpoint_location): Pass const pointer to
7565 parse_exp_1.
7566 * eval.c (parse_and_eval_address): Make "exp" const.
7567 (parse_to_comma_and_eval): Make "expp" const.
7568 (parse_and_eval): Make "exp" const.
7569 * expression.h (parse_expression): Make argument const.
7570 (parse_exp_1): Make first argument const.
7571 * findcmd.c (parse_find_args): Treat "args" as const.
7572 * linespec.c (parse_linespec): Pass const pointer to
7573 linespec_expression_to_pc.
7574 (linespec_expression_to_pc): Make "exp_ptr" const.
7575 * parse.c (parse_exp_1): Make "stringptr" const.
7576 Make a copy of the expression to pass to parse_exp_in_context until
7577 this whole interface can be constified.
7578 (parse_expression): Make "string" const.
7579 * printcmd.c (ui_printf): Treat "arg" as const.
7580 Handle const strings.
7581 * tracepoint.c (validate_actionline): Pass const pointer to
7582 all calls to parse_exp_1.
7583 (encode_actions_1): Likewise.
7584 * value.h (parse_to_comma_and_eval): Make argument const.
7585 (parse_and_eval_address): Likewise.
7586 (parse_and_eval): Likewise.
7587 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
7588 (varobj_set_value): Likewise.
7589 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
7590 constify string handling.
7591 Pass const pointers to parse_and_eval_address and
7592 parse_to_comman_and_eval.
7593 * cli/cli-utils.c (skip_to_space): Rename to ...
7594 (skip_to_space_const): ... this. Handle const strings.
7595 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
7596 skip_to_space_const.
7597 (skip_to_space_const): Declare.
7598 * common/format.c (parse_format_string): Make "arg" const.
7599 Handle const strings.
7600 * common/format.h (parse_format_string): Make "arg" const.
7601 * gdbserver/ax.c (ax_printf): Make "format" const.
7602 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
7603 of the expression string.
7604
7605 2013-03-12 Hui Zhu <hui@codesourcery.com>
7606
7607 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
7608
7609 2013-03-12 Yao Qi <yao@codesourcery.com>
7610 Hui Zhu <hui@codesourcery.com>
7611
7612 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
7613 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
7614 DW_OP_deref_size.
7615
7616 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
7617
7618 * ada-lex.l (rules): Only recognize 'thread' as a
7619 delimiter when followed by numerals, as for c-exp.y.
7620 Use new rewind_to_char function to rewind the input for
7621 expression-delimiting tokens.
7622 (rewind_to_char): New function.
7623
7624 2013-03-11 Pedro Alves <palves@redhat.com>
7625 Jan Kratochvil <jan.kratochvil@redhat.com>
7626
7627 * configure: Regenerate.
7628 * configure.ac (check dynamic export flag): Link python test with
7629 $PYTHON_LIBS.
7630
7631 2013-03-11 Doug Evans <dje@google.com>
7632 Keith Seitz <keiths@redhat.com>
7633
7634 * linespec.c (find_linespec_symbols): Call find_function_symbols
7635 first, and then call lookup_prefix_sym/find_method.
7636
7637 2013-03-11 Pedro Alves <palves@redhat.com>
7638
7639 * charset.c (convert_between_encodings): Don't cast between
7640 different pointer to pointer types. Instead, make the 'inp' local
7641 be of the type iconv expects.
7642 (wchar_iterate): Don't cast between different pointer to pointer
7643 types. Instead, use new pointer local of the type iconv expects.
7644 * target.c (target_read_stralloc, target_fileio_read_stralloc):
7645 Add new local of type char pointer, and use it to get a
7646 char/string view of the byte buffer, instead of casting between
7647 pointer to pointer types.
7648
7649 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
7650
7651 * remote.c (remote_set_trace_buffer_size): Move != operator
7652 to the start of next line to fix an ARI warning.
7653
7654 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7655
7656 * NEWS: Add record changes.
7657
7658 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7659
7660 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
7661 the instruction history disassembly.
7662 * disasm.c (dump_insns): Omit the pc prefix, if requested.
7663 * disasm.h (DISASSEMBLY_OMIT_PC): New.
7664
7665 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7666
7667 * Makefile.in (SFILES): Add record-btrace.c
7668 (COMMON_OBS): Add record-btrace.o
7669 * record-btrace.c: New.
7670 * objfiles.c: Include btrace.h.
7671 (free_objfile): call btrace_free_objfile.
7672
7673 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7674
7675 * target.c (target_call_history, target_call_history_from,
7676 target_call_history_range): New.
7677 * target.h (target_ops) <to_call_history, to_call_history_from,
7678 to_call_history_range>: New fields.
7679 (target_call_history, target_call_history_from,
7680 target_call_history_range): New declaration.
7681 * record.c (get_call_history_modifiers, cmd_record_call_history,
7682 record_call_history_size): New.
7683 (_initialize_record): Add the "record function-call-history" command.
7684 Add "set/show record function-call-history-size" commands.
7685 * record.h (record_print_flag): New.
7686
7687 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7688
7689 * target.h (target_ops) <to_insn_history, to_insn_history_from,
7690 to_insn_history_range>: New fields.
7691 (target_insn_history): New.
7692 (target_insn_history_from): New.
7693 (target_insn_history_range): New.
7694 * target.c (target_insn_history): New.
7695 (target_insn_history_from): New.
7696 (target_insn_history_range): New.
7697 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
7698 (record_insn_history_size): New.
7699 (get_insn_number): New.
7700 (get_context_size): New.
7701 (no_chunk): New.
7702 (get_insn_history_modifiers): New.
7703 (cmd_record_insn_history): New.
7704 (_initialize_record): Add "set/show record instruction-history-size"
7705 command. Add "record instruction-history" command.
7706
7707 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7708
7709 * record.h (record_disconnect): New.
7710 (record_detach): New.
7711 (record_mourn_inferior): New.
7712 (record_kill): New.
7713 * record-full.c (record_disconnect, record_detach,
7714 record_mourn_inferior, record_kill): Move to...
7715 * record.c: ...here.
7716 (DEBUG): New.
7717 (record_stop): New.
7718 (record_unpush): New.
7719 (cmd_record_stop): Call record_stop. Replace unpush_target
7720 call with record_unpush call.
7721 (record_disconnect, record_detach): Assert that the target
7722 is of record stratum. Call record_unpush, record_stop, and
7723 DEBUG.
7724 (record_mourn_inferior, record_kill): Assert that the target
7725 is of record stratum. Call record_unpush and DEBUG.
7726
7727 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7728
7729 * record-full.h, record-full.c (record_memory_query): Rename
7730 to ...
7731 (record_full_memory_query): ...this. Update all users.
7732 (record_arch_list_add_reg): Rename to ...
7733 (record_full_arch_list_add_reg): ...this. Update all users.
7734 (record_arch_list_add_mem): Rename to ...
7735 (record_full_arch_list_add_mem): ...this. Update all users.
7736 (record_arch_list_add_end): Rename to ...
7737 (record_full_arch_list_add_end): ...this. Update all users.
7738 (record_gdb_operation_disable_set): Rename to ...
7739 (record_full_gdb_operation_disable_set): ...this.
7740 Update all users.
7741
7742 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7743
7744 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
7745 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
7746 (RECORD_IS_REPLAY): Renamed to ...
7747 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
7748 (RECORD_FILE_MAGIC): Renamed to ...
7749 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
7750 (record_mem_entry): Renamed to ...
7751 (record_full_mem_entry): ... this. Updated all users.
7752 (record_reg_entry): Renamed to ...
7753 (record_full_reg_entry): ... this. Updated all users.
7754 (record_end_entry): Renamed to ...
7755 (record_full_end_entry): ... this. Updated all users.
7756 (record_type) <record_end, record_reg, record_mem>: Renamed
7757 to ...
7758 (record_full_type) <record_full_end, record_full_reg,
7759 record_full_mem>: ... this. Updated all users.
7760 (record_entry): Renamed to ...
7761 (record_full_entry): ... this. Updated all users.
7762 (record_core_buf_entry): Renamed to ...
7763 (record_full_core_buf_entry): ... this. Updated all users.
7764 (record_core_regbuf): Renamed to ...
7765 (record_full_core_regbuf): ... this. Updated all users.
7766 (record_core_start): Renamed to ...
7767 (record_full_core_start): ... this. Updated all users.
7768 (record_core_end): Renamed to ...
7769 (record_full_core_end): ... this. Updated all users.
7770 (record_core_buf_list): Renamed to ...
7771 (record_full_core_buf_list): ... this. Updated all users.
7772 (record_first): Renamed to ...
7773 (record_full_first): ... this. Updated all users.
7774 (record_list): Renamed to ...
7775 (record_full_list): ... this. Updated all users.
7776 (record_arch_list_head): Renamed to ...
7777 (record_full_arch_list_head): ... this. Updated all users.
7778 (record_arch_list_tail): Renamed to ...
7779 (record_full_arch_list_tail): ... this. Updated all users.
7780 (record_stop_at_limit): Renamed to ...
7781 (record_full_stop_at_limit): ... this. Updated all users.
7782 (record_insn_max_num): Renamed to ...
7783 (record_full_insn_max_num): ... this. Updated all users.
7784 (record_insn_num): Renamed to ...
7785 (record_full_insn_num): ... this. Updated all users.
7786 (record_insn_count): Renamed to ...
7787 (record_full_insn_count): ... this. Updated all users.
7788 (record_ops): Renamed to ...
7789 (record_full_ops): ... this. Updated all users.
7790 (record_core_ops): Renamed to ...
7791 (record_full_core_ops): ... this. Updated all users.
7792 (set_record_cmdlist): Renamed to ...
7793 (set_record_full_cmdlist): ... this. Updated all users.
7794 (show_record_cmdlist): Renamed to ...
7795 (show_record_full_cmdlist): ... this. Updated all users.
7796 (record_cmdlist): Renamed to ...
7797 (record_full_cmdlist): ... this. Updated all users.
7798 (record_beneath_to_resume_ops): Renamed to ...
7799 (record_full_beneath_to_resume_ops): ... this. Updated all users.
7800 (record_beneath_to_resume): Renamed to ...
7801 (record_full_beneath_to_resume): ... this. Updated all users.
7802 (record_beneath_to_wait_ops): Renamed to ...
7803 (record_full_beneath_to_wait_ops): ... this. Updated all users.
7804 (record_beneath_to_wait): Renamed to ...
7805 (record_full_beneath_to_wait): ... this. Updated all users.
7806 (record_beneath_to_store_registers_ops): Renamed to ...
7807 (record_full_beneath_to_store_registers_ops): ... this.
7808 Updated all users.
7809 (record_beneath_to_store_registers): Renamed to ...
7810 (record_full_beneath_to_store_registers): ... this.
7811 Updated all users.
7812 (record_beneath_to_xfer_partial_ops): Renamed to ...
7813 (record_full_beneath_to_xfer_partial_ops): ... this.
7814 Updated all users.
7815 (record_beneath_to_xfer_partial): Renamed to ...
7816 (record_full_beneath_to_xfer_partial): ... this.
7817 Updated all users.
7818 (record_beneath_to_insert_breakpoint): Renamed to ...
7819 (record_full_beneath_to_insert_breakpoint): ... this.
7820 Updated all users.
7821 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
7822 (record_full_beneath_to_stopped_by_watchpoint): ... this.
7823 Updated all users.
7824 (record_beneath_to_stopped_data_address): Renamed to ...
7825 (record_full_beneath_to_stopped_data_address): ... this.
7826 Updated all users.
7827 (record_beneath_to_async): Renamed to ...
7828 (record_full_beneath_to_async): ... this. Updated all users.
7829 (record_goto_insn): Renamed to ...
7830 (record_full_goto_insn): ... this. Updated all users.
7831 (record_save): Renamed to ...
7832 (record_full_save): ... this. Updated all users.
7833 (record_reg_alloc): Renamed to ...
7834 (record_full_reg_alloc): ... this. Updated all users.
7835 (record_reg_release): Renamed to ...
7836 (record_full_reg_release): ... this. Updated all users.
7837 (record_mem_alloc): Renamed to ...
7838 (record_full_mem_alloc): ... this. Updated all users.
7839 (record_mem_release): Renamed to ...
7840 (record_full_mem_release): ... this. Updated all users.
7841 (record_end_alloc): Renamed to ...
7842 (record_full_end_alloc): ... this. Updated all users.
7843 (record_end_release): Renamed to ...
7844 (record_full_end_release): ... this. Updated all users.
7845 (record_entry_release): Renamed to ...
7846 (record_full_entry_release): ... this. Updated all users.
7847 (record_list_release): Renamed to ...
7848 (record_full_list_release): ... this. Updated all users.
7849 (record_list_release_following): Renamed to ...
7850 (record_full_list_release_following): ... this.
7851 Updated all users.
7852 (record_list_release_first): Renamed to ...
7853 (record_full_list_release_first): ... this. Updated all users.
7854 (record_arch_list_add): Renamed to ...
7855 (record_full_arch_list_add): ... this. Updated all users.
7856 (record_get_loc): Renamed to ...
7857 (record_full_get_loc): ... this. Updated all users.
7858 (record_check_insn_num): Renamed to ...
7859 (record_full_check_insn_num): ... this. Updated all users.
7860 (record_arch_list_cleanups): Renamed to ...
7861 (record_full_arch_list_cleanups): ... this. Updated all users.
7862 (record_message): Renamed to ...
7863 (record_full_message): ... this. Updated all users.
7864 (record_message_wrapper): Renamed to ...
7865 (record_full_message_wrapper): ... this. Updated all users.
7866 (record_message_wrapper_safe): Renamed to ...
7867 (record_full_message_wrapper_safe): ... this. Updated all users.
7868 (record_gdb_operation_disable): Renamed to ...
7869 (record_full_gdb_operation_disable): ... this. Updated all users.
7870 (record_hw_watchpoint): Renamed to ...
7871 (record_full_hw_watchpoint): ... this. Updated all users.
7872 (record_exec_insn): Renamed to ...
7873 (record_full_exec_insn): ... this. Updated all users.
7874 (record_restore): Renamed to ...
7875 (record_full_restore): ... this. Updated all users.
7876 (record_async_inferior_event_token): Renamed to ...
7877 (record_full_async_inferior_event_token): ... this.
7878 Updated all users.
7879 (record_async_inferior_event_handler): Renamed to ...
7880 (record_full_async_inferior_event_handler): ... this.
7881 Updated all users.
7882 (record_core_open_1): Renamed to ...
7883 (record_full_core_open_1): ... this. Updated all users.
7884 (record_open_1): Renamed to ...
7885 (record_full_open_1): ... this. Updated all users.
7886 (record_open): Renamed to ...
7887 (record_full_open): ... this. Updated all users.
7888 (record_close): Renamed to ...
7889 (record_full_close): ... this. Updated all users.
7890 (record_resume_step): Renamed to ...
7891 (record_full_resume_step): ... this. Updated all users.
7892 (record_resumed): Renamed to ...
7893 (record_full_resumed): ... this. Updated all users.
7894 (record_execution_dir): Renamed to ...
7895 (record_full_execution_dir): ... this. Updated all users.
7896 (record_resume): Renamed to ...
7897 (record_full_resume): ... this. Updated all users.
7898 (record_get_sig): Renamed to ...
7899 (record_full_get_sig): ... this. Updated all users.
7900 (record_sig_handler): Renamed to ...
7901 (record_full_sig_handler): ... this. Updated all users.
7902 (record_wait_cleanups): Renamed to ...
7903 (record_full_wait_cleanups): ... this. Updated all users.
7904 (record_wait_1): Renamed to ...
7905 (record_full_wait_1): ... this. Updated all users.
7906 (record_wait): Renamed to ...
7907 (record_full_wait): ... this. Updated all users.
7908 (record_stopped_by_watchpoint): Renamed to ...
7909 (record_full_stopped_by_watchpoint): ... this. Updated all users.
7910 (record_disconnect): Renamed to ...
7911 (record_full_disconnect): ... this. Updated all users.
7912 (record_detach): Renamed to ...
7913 (record_full_detach): ... this. Updated all users.
7914 (record_mourn_inferior): Renamed to ...
7915 (record_full_mourn_inferior): ... this. Updated all users.
7916 (record_kill): Renamed to ...
7917 (record_full_kill): ... this. Updated all users.
7918 (record_stopped_data_address): Renamed to ...
7919 (record_full_stopped_data_address): ... this. Updated all users.
7920 (record_registers_change): Renamed to ...
7921 (record_full_registers_change): ... this. Updated all users.
7922 (record_store_registers): Renamed to ...
7923 (record_full_store_registers): ... this. Updated all users.
7924 (record_xfer_partial): Renamed to ...
7925 (record_full_xfer_partial): ... this. Updated all users.
7926 (record_breakpoint): Renamed to ...
7927 (record_full_breakpoint): ... this. Updated all users.
7928 (record_breakpoint_p): Renamed to ...
7929 (record_full_breakpoint_p): ... this. Updated all users.
7930 (record_breakpoints): Renamed to ...
7931 (record_full_breakpoints): ... this. Updated all users.
7932 (record_sync_record_breakpoints): Renamed to ...
7933 (record_full_sync_record_breakpoints): ... this.
7934 Updated all users.
7935 (record_init_record_breakpoints): Renamed to ...
7936 (record_full_init_record_breakpoints): ... this.
7937 Updated all users.
7938 (record_insert_breakpoint): Renamed to ...
7939 (record_full_insert_breakpoint): ... this. Updated all users.
7940 (record_remove_breakpoint): Renamed to ...
7941 (record_full_remove_breakpoint): ... this. Updated all users.
7942 (record_can_execute_reverse): Renamed to ...
7943 (record_full_can_execute_reverse): ... this. Updated all users.
7944 (record_get_bookmark): Renamed to ...
7945 (record_full_get_bookmark): ... this. Updated all users.
7946 (record_goto_bookmark): Renamed to ...
7947 (record_full_goto_bookmark): ... this. Updated all users.
7948 (record_async): Renamed to ...
7949 (record_full_async): ... this. Updated all users.
7950 (record_can_async_p): Renamed to ...
7951 (record_full_can_async_p): ... this. Updated all users.
7952 (record_is_async_p): Renamed to ...
7953 (record_full_is_async_p): ... this. Updated all users.
7954 (record_execution_direction): Renamed to ...
7955 (record_full_execution_direction): ... this. Updated all users.
7956 (record_info): Renamed to ...
7957 (record_full_info): ... this. Updated all users.
7958 (record_delete): Renamed to ...
7959 (record_full_delete): ... this. Updated all users.
7960 (record_is_replaying): Renamed to ...
7961 (record_full_is_replaying): ... this. Updated all users.
7962 (record_goto_entry): Renamed to ...
7963 (record_full_goto_entry): ... this. Updated all users.
7964 (record_goto_begin): Renamed to ...
7965 (record_full_goto_begin): ... this. Updated all users.
7966 (record_goto_end): Renamed to ...
7967 (record_full_goto_end): ... this. Updated all users.
7968 (record_goto): Renamed to ...
7969 (record_full_goto): ... this. Updated all users.
7970 (init_record_ops): Renamed to ...
7971 (init_record_full_ops): ... this. Updated all users.
7972 (record_core_resume): Renamed to ...
7973 (record_full_core_resume): ... this. Updated all users.
7974 (record_core_kill): Renamed to ...
7975 (record_full_core_kill): ... this. Updated all users.
7976 (record_core_fetch_registers): Renamed to ...
7977 (record_full_core_fetch_registers): ... this. Updated all users.
7978 (record_core_prepare_to_store): Renamed to ...
7979 (record_full_core_prepare_to_store): ... this. Updated all users.
7980 (record_core_store_registers): Renamed to ...
7981 (record_full_core_store_registers): ... this. Updated all users.
7982 (record_core_xfer_partial): Renamed to ...
7983 (record_full_core_xfer_partial): ... this. Updated all users.
7984 (record_core_insert_breakpoint): Renamed to ...
7985 (record_full_core_insert_breakpoint): ... this. Updated all users.
7986 (record_core_remove_breakpoint): Renamed to ...
7987 (record_full_core_remove_breakpoint): ... this. Updated all users.
7988 (record_core_has_execution): Renamed to ...
7989 (record_full_core_has_execution): ... this. Updated all users.
7990 (init_record_core_ops): Renamed to ...
7991 (init_record_full_core_ops): ... this. Updated all users.
7992 (cmd_record_restore): Renamed to ...
7993 (cmd_record_full_restore): ... this. Updated all users.
7994 (record_save_cleanups): Renamed to ...
7995 (record_full_save_cleanups): ... this. Updated all users.
7996 (cmd_record_start): Renamed to ...
7997 (cmd_record_full_start): ... this. Updated all users.
7998 (set_record_insn_max_num): Renamed to ...
7999 (set_record_full_insn_max_num): ... this. Updated all users.
8000 (set_record_command): Renamed to ...
8001 (set_record_full_command): ... this. Updated all users.
8002 (show_record_command): Renamed to ...
8003 (show_record_full_command): ... this. Updated all users.
8004 (_initialize_record): Renamed to ...
8005 (_initialize_record_full): ... this. Updated all users.
8006
8007 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8008
8009 * record.h: Split into this and ...
8010 * record-full.h: ... this.
8011 * record.c: Split into this and ...
8012 * record-full.c: ... this.
8013 * target.h (target_ops): Add new fields to_info_record,
8014 to_save_record, to_delete_record, to_record_is_replaying,
8015 to_goto_record_begin, to_goto_record_end, to_goto_record.
8016 (target_info_record): New.
8017 (target_save_record): New.
8018 (target_supports_delete_record): New.
8019 (target_delete_record): New.
8020 (target_record_is_replaying): New.
8021 (target_goto_record_begin): New.
8022 (target_goto_record_end): New.
8023 (target_goto_record): New.
8024 * target.c (target_info_record): New.
8025 (target_save_record): New.
8026 (target_supports_delete_record): New.
8027 (target_delete_record): New.
8028 (target_record_is_replaying): New.
8029 (target_goto_record_begin): New.
8030 (target_goto_record_end): New.
8031 (target_goto_record): New.
8032 * record.h: Declare struct cmd_list_element.
8033 (record_cmdlist): New declaration.
8034 (set_record_cmdlist): New declaration.
8035 (show_record_cmdlist): New declaration.
8036 (info_record_cmdlist): New declaration.
8037 (cmd_record_goto): New declaration.
8038 * record.c: Remove unnecessary includes.
8039 Include inferior.h.
8040 (cmd_record_goto): Remove declaration.
8041 (record_cmdlist): Now extern. Initialize.
8042 (set_record_cmdlist): Now extern. Initialize.
8043 (show_record_cmdlist): Now extern. Initialize.
8044 (info_record_cmdlist): Now extern. Initialize.
8045 (find_record_target): New.
8046 (require_record_target): New.
8047 (cmd_record_start): Update.
8048 (cmd_record_delete): Remove target-specific code.
8049 Call target_delete_record.
8050 (cmd_record_stop): Unpush any record target.
8051 (set_record_insn_max_num): Move to record-full.c
8052 (set_record_command): Add comment.
8053 (show_record_command): Add comment.
8054 (info_record_command): Update comment.
8055 Remove target-specific code.
8056 Call the record target's to_info_record.
8057 (cmd_record_start): New.
8058 (cmd_record_goto): Now extern.
8059 Remove target-specific code.
8060 Call target_goto_begin, target_goto_end, or target_goto.
8061 (_initialize_record): Move record target ops initialization to
8062 record-full.c.
8063 Change "record" command help text.
8064 Move "record restore", "record set", and "record show" commands to
8065 record-full.c.
8066 * Makefile.in (SFILES): Add record-full.c.
8067 (HFILES_NO_SRCDIR): Add record-full.h.
8068 (COMMON_OBS): Add record-full.o.
8069 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8070 * arm-tdep.c: Include record-full.h.
8071 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8072 * i386-tdep.c: Include record-full.h.
8073 * infrun.c: Include record-full.h.
8074 * linux-record.c: Include record-full.h.
8075 * moxie-tdep.c: Include record-full.h.
8076 * record-full.c: Include record-full.h.
8077 Change module comment.
8078 (set_record_full_cmdlist): New.
8079 (show_record_full_cmdlist): New.
8080 (record_full_cmdlist): New.
8081 (record_goto_insn): New declaration.
8082 (record_save): New declaration.
8083 (record_check_insn_num): Change query string.
8084 (record_info): New.
8085 (record_delete): New.
8086 (record_is_replaying): New.
8087 (record_goto_entry): New.
8088 (record_goto_begin): New.
8089 (record_goto_end): New.
8090 (record_goto): New.
8091 (init_record_ops): Update.
8092 (init_record_core_ops): Update.
8093 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8094 (cmd_record_start): New.
8095 (set_record_insn_max_num): Moved from record.c
8096 (set_record_full_command): New.
8097 (show_record_full_command): New.
8098 (_initialize_record_full): New.
8099
8100 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8101
8102 * target.h (add_deprecated_target_alias): New.
8103 * target.c (add_deprecated_target_alias): New.
8104
8105 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8106
8107 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8108 and signal.h.
8109 (linux_supports_btrace): Add kernel and
8110 cpuid check.
8111 (kernel_supports_btrace): New function.
8112 (cpu_supports_btrace): New function.
8113 (intel_supports_btrace): New function.
8114
8115 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8116
8117 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8118 * remote.c: Include btrace.h.
8119 (struct btrace_target_info): New struct.
8120 (remote_supports_btrace): New function.
8121 (send_Qbtrace): New function.
8122 (remote_enable_btrace): New function.
8123 (remote_disable_btrace): New function.
8124 (remote_teardown_btrace): New function.
8125 (remote_read_btrace): New function.
8126 (init_remote_ops): Add btrace ops.
8127 (enum <unnamed>): Add btrace packets.
8128 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8129 (_initialize_remote): Add packet configuration for branch tracing.
8130
8131 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8132
8133 * features/btrace.dtd: New file.
8134 * Makefile.in (XMLFILES): Add btrace.dtd.
8135 * btrace.h (parse_xml_btrace): New declaration.
8136 * btrace.c: Include xml-support.h.
8137 (parse_xml_btrace): New function.
8138 (parse_xml_btrace_block): New function.
8139 (block_attributes): New struct.
8140 (btrace_attributes): New struct.
8141 (btrace_children): New struct.
8142 (btrace_elements): New struct.
8143
8144 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8145
8146 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8147 (amd64_linux_enable_btrace): New.
8148 (amd64_linux_disable_btrace): New.
8149 (amd64_linux_teardown_btrace): New.
8150 (_initialize_amd64_linux_nat): Initialize btrace ops.
8151 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8152 (i386_linux_enable_btrace): New.
8153 (i386_linux_disable_btrace): New.
8154 (i386_linux_teardown_btrace): New.
8155 (_initialize_i386_linux_nat): Initialize btrace ops.
8156 * config/i386/linux.mh: Add linux-btrace.o.
8157 * config/i386/linux64.mh: Add linux-btrace.o.
8158
8159 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8160
8161 * common/linux_btrace.h: New file.
8162 * common/linux_btrace.c: New file.
8163 * Makefile.in (SFILES): Add btrace.c.
8164 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8165 (COMMON_OBS): Add btrace.o.
8166 (linux-btrace.o): New rule.
8167
8168 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8169
8170 * target.h: Include btrace.h.
8171 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8172 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8173 * target.c (target_supports_btrace): New function.
8174 (target_enable_btrace): New function.
8175 (target_disable_btrace): New function.
8176 (target_teardown_btrace): New function.
8177 (target_read_btrace): New function.
8178 * btrace.h: New file.
8179 * btrace.c: New file.
8180 * Makefile.in: Add btrace.c.
8181 * gdbthread.h: Include btrace.h.
8182 (struct thread_info): Add btrace field.
8183 * thread.c: Include btrace.h.
8184 (clear_thread_inferior_resources): Call target_teardown_btrace.
8185 * common/btrace-common.h: New file.
8186
8187 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8188
8189 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8190 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8191 kill_status to outer block.
8192
8193 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8194
8195 Fix entry-values if the callee called a noreturn function.
8196 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8197 get_frame_address_in_block. Add new comment.
8198
8199 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8200
8201 Fix entry-values in C++ across CUs.
8202 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8203 lookup_minimal_symbol. Add a comment.
8204 * dwarf2read.c
8205 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8206 DW_AT_linkage_name.
8207
8208 2013-03-08 Yao Qi <yao@codesourcery.com>
8209
8210 * tracepoint.c (_initialize_tracepoint): Indent the code.
8211
8212 2013-03-08 Pedro Alves <palves@redhat.com>
8213
8214 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8215 (parse_find_args, find_command): Change type of pattern buffer
8216 locals to 'gdb_byte *'.
8217
8218 2013-03-08 Stan Shebs <stan@codesourcery.com>
8219 Hafiz Abid Qadeer <abidh@codesourcery.com>
8220
8221 * NEWS: Mention set and show trace-buffer-size commands.
8222 Mention new packet.
8223 * target.h (struct target_ops): New method
8224 to_set_trace_buffer_size.
8225 (target_set_trace_buffer_size): New macro.
8226 * target.c (update_current_target): Set up new method.
8227 * tracepoint.c (trace_buffer_size): New global.
8228 (start_tracing): Send it to the target.
8229 (set_trace_buffer_size): New function.
8230 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8231 * remote.c (remote_set_trace_buffer_size): New function.
8232 (_initialize_remote): Use it.
8233 (QTBuffer:size) New remote command.
8234 (PACKET_QTBuffer_size): New enum.
8235 (remote_protocol_features): Add an entry for
8236 PACKET_QTBuffer_size.
8237
8238 2013-03-08 Tom Tromey <tromey@redhat.com>
8239
8240 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8241 variable.
8242
8243 2013-03-07 Pedro Alves <palves@redhat.com>
8244
8245 * target.c (target_read_stralloc, target_fileio_read_alloc):
8246 *Cast pointer to 'gdb_byte *' in target call.
8247
8248 2013-03-07 Pedro Alves <palves@redhat.com>
8249
8250 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8251 call.
8252
8253 2013-03-07 Keith Seitz <keiths@redhat.com>
8254
8255 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8256 (trace_pass_command): Likewise.
8257 * cli/cli-cmds.c: Include cli/cli-utils.h.
8258 (source_command): Use skip-spaces.
8259 (disassemble_command): Likewise.
8260 * findcmd.c: Include cli/cli-utils.h.
8261 (parse_find_args): Use skip_spaces.
8262 * go32-nat.c: Include cli/cli-utils.h.
8263 (go32_sldt): Use skip_spaces.
8264 (go32_sgdt): Likewise.
8265 (go32_sidt): Likewise.
8266 (go32_pde): Likewise.
8267 (go32_pte): Likewise.
8268 (go32_pte_for_address): Likewise.
8269 * infcmd.c: Include cli/cli-utils.h.
8270 (registers_info): Use skip_spaces.
8271 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8272 (linux_info_proc): Likewise.
8273 * linux-thread-db.c: Include cli/cli-utils.h.
8274 (info_auto_load_libthread_db): Use skip_spaces_const.
8275 * m32r-rom.c: Include cli/cli-utils.h.
8276 (m32r_upload_command): Use skip_spaces.
8277 * maint.c: Include cli/cli-utils.h.
8278 (maintenance_translate_address): Use skip_spaces.
8279 * mi/mi-parse.c: Include cli/cli-utils.h.
8280 (mi_parse_argv): Use skip_spaces.
8281 (mi_parse): Likewise.
8282 * minsyms.c: Include cli/cli-utils.h.
8283 (msymbol_hash_iw): Use skip_spaces_const.
8284 * objc-lang.c: Include cli/cli-utils.h.
8285 (parse_selector): Use skip_spaces.
8286 (parse_method): Likewise.
8287 * python/python.c: Include cli/cli-utils.h.
8288 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8289 (python_command)[HAVE_PYTHON]: Likewise.
8290 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8291 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8292 (m32r_load): Use skip_spaces.
8293 * serial.c: Include cli/cli-utils.h.
8294 (serial_open): Use skip_spaces_const.
8295 * stack.c: Include cli/cli-utils.h.
8296 (parse_frame_specification_1): Use skip_spaces_const.
8297 * symfile.c: Include cli/cli-utils.h.
8298 (set_ext_lang_command): Use skip_spaces.
8299 * symtab.c: Include cli/cli-utils.h.
8300 (rbreak_command): Use skip_spaces.
8301 * thread.c (thread_name_command): Use skip_spaces.
8302 * tracepoint.c (validate_actionline): Use skip_spaces.
8303 (encode_actions_1): Likewise.
8304 (trace_find_range_command): Likewise.
8305 (trace_find_outside_command): Likewise.
8306 (trace_dump_actions): Likewise.
8307
8308 2013-03-07 Pedro Alves <palves@redhat.com>
8309
8310 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8311 * expprint.c (print_subexp_standard): Likewise.
8312 * utils.c (host_char_to_target): Likewise.
8313 * valprint.c (generic_emit_char, generic_printstr): Likewise.
8314 * varobj.c (value_get_print_value): Change type of local to char*.
8315 Cast it gdb_byte * in call to language printer.
8316
8317 2013-03-07 Pedro Alves <palves@redhat.com>
8318
8319 * charset.c (struct wchar_iterator) <input>: Change type to 'const
8320 gdb_byte *'.
8321 (make_wchar_iterator): Remove cast to char*.
8322 (wchar_iterate): Change type of local.
8323
8324 2013-03-07 Pedro Alves <palves@redhat.com>
8325
8326 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8327 for 'regcache->register_status'.
8328
8329 2013-03-07 Pedro Alves <palves@redhat.com>
8330
8331 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
8332 int.
8333
8334 2013-03-07 Pedro Alves <palves@redhat.com>
8335
8336 * stap-probe.c (handle_stap_probe): Add cast to char*.
8337
8338 2013-03-07 Pedro Alves <palves@redhat.com>
8339
8340 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
8341 RECORD_MSGRCV>: Pass a signed variable to
8342 regcache_raw_read_signed, instead of an unsigned one.
8343
8344 2013-03-07 Pedro Alves <palves@redhat.com>
8345
8346 * remote-notif.c (notif_debug): Change type to int.
8347 * remote-notif.h (notif_debug): Likewise.
8348
8349 2013-03-07 Pedro Alves <palves@redhat.com>
8350
8351 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
8352
8353 2013-03-07 Pedro Alves <palves@redhat.com>
8354
8355 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
8356 * remote.h (hex2bin, bin2hex): ... here.
8357 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
8358
8359 2013-03-07 Eli Zaretskii <eliz@gnu.org>
8360
8361 * utils.c (initialize_utils): Improve doc strings of "set/show
8362 width", "set/show height", and "set/show pagination".
8363
8364 2013-03-06 Keith Seitz <keiths@redhat.com>
8365
8366 * ax-gdb.c (gen_printf): Make FORMAT const.
8367 * ax-gdb.h (gen_printf): Likewise.
8368 * ax-general.c (ax_string): Make STR const.
8369 * ax.h (ax_string): Likewise.
8370
8371 2013-03-06 Doug Evans <dje@google.com>
8372
8373 * elfread.c (elf_symfile_read): Move debugging printf to more
8374 logical location.
8375
8376 2013-03-06 Pedro Alves <palves@redhat.com>
8377
8378 * python/py-utils.c (target_string_to_unicode): Delete function.
8379 * python/python-internal.h (target_string_to_unicode): Delete
8380 declaration.
8381
8382 2013-03-06 Pierre Muller <muller@sourceware.org>
8383
8384 * linespec.c (get_current_search_block): ARI fix, use (void)
8385 for empty parameter list.
8386
8387 2013-03-05 Doug Evans <dje@google.com>
8388
8389 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
8390 of old ada_lookup_symbol_list. In !full_search case, don't
8391 search superblocks.
8392 (ada_lookup_symbol_list): Delete arg full_search, all callers
8393 updated. Call ada_lookup_symbol_list_worker.
8394 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
8395 * ada-lang.h (ada_lookup_symbol_list): Update.
8396 * language.h (language_defn): Update comment for
8397 la_iterate_over_symbols.
8398 * linespec.c (iterate_over_file_blocks): New function.
8399 (iterate_over_all_matching_symtabs): Call it.
8400 (lookup_prefix_sym): Ditto.
8401 (get_current_search_block): New function.
8402 (get_search_block): Delete.
8403 (find_label_symbols): Call get_current_search_block.
8404 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
8405 * symtab.c (iterate_over_symbols): Don't search superblocks.
8406
8407 2013-03-05 Yao Qi <yao@codesourcery.com>
8408
8409 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
8410 parameter VAR's type from "unsigned int" to "int".
8411 * command.h (var_zuinteger_unlimited): Update its comments.
8412 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
8413
8414 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
8415
8416 * NEWS: Mention new target x86_64-*-cygwin*.
8417
8418 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
8419
8420 * configure.host: Add x86_64-*-cygwin* as host.
8421 * configure.tgt: Add x86_64-*-cygwin* as target.
8422 * config/i386/cygwin64.mh: New file.
8423
8424 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8425
8426 * linespec.c (decode_line_2): Fix duplicate request off by two message.
8427
8428 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8429
8430 * linespec.c (struct linespec_canonical_name): New.
8431 (struct linespec_state): Change canonical_names type to it.
8432 (add_sal_to_sals): Change variable canonical_name to canonical. Change
8433 xrealloc element size. Initialize the different CANONICAL fields.
8434 (canonical_to_fullform): New.
8435 (filter_results): Use it. Add variables canonical, fullform and
8436 cleanup.
8437 (struct decode_line_2_item, decode_line_2_compare_items): New.
8438 (decode_line_2): Remove variables iter and item_names, add variables
8439 items and items_count. Modify the code for these new variables.
8440
8441 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
8442
8443 * coff-pe-read.c (read_pe_exported_syms): Don't return without
8444 calling do_cleanup.
8445
8446 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
8447
8448 * tracepoint.c (build_traceframe_info): Add code for byte order.
8449
8450 2013-03-02 Kevin Buettner <kevinb@redhat.com>
8451
8452 * v850-tdep.c: (v850e2_register_name): Revise system register
8453 names to match current V850E2M architecture specifications.
8454 Update register number enum comments too.
8455
8456 2013-03-01 Jiong Wang <jiwang@tilera.com>
8457 Pedro Alves <palves@redhat.com>
8458
8459 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
8460 to END_ADDR.
8461 (tilegx_skip_prologue): Limit prologue analysis to section end.
8462
8463 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8464
8465 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
8466 use it.
8467
8468 2013-03-01 Pedro Alves <palves@redhat.com>
8469
8470 Use gdb_byte for bytes from the program being debugged.
8471
8472 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
8473 Change type of local 'buf' to gdb_byte.
8474 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
8475 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
8476 * cris-tdep.c (cris_sigcontext_addr)
8477 (cris_sigtramp_frame_unwind_cache): Likewise.
8478 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
8479 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
8480 Likewise.
8481 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
8482 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
8483 (hppa32_hpux_search_dummy_call_sequence)
8484 (hppa_hpux_supply_save_state): Likewise.
8485 * hppa-linux-tdep.c (insns_match_pattern)
8486 (hppa_linux_find_global_pointer): Likewise.
8487 * hppa-tdep.c (hppa_in_function_epilogue_p)
8488 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
8489 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
8490 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
8491 (i386fbsd_collect_uthread): Likewise.
8492 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
8493 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
8494 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
8495 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
8496 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
8497 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
8498 (ia64_libunwind_frame_prev_register)
8499 (ia64_libunwind_sigtramp_frame_this_id)
8500 (ia64_find_global_pointer_from_dynamic_section)
8501 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
8502 (ia64_unwind_pc): Likewise.
8503 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
8504 * m68hc11-tdep.c (m68hc11_push_dummy_call)
8505 (m68hc11_extract_return_value): Likewise.
8506 * m68klinux-nat.c (fetch_register, store_register): Likewise.
8507 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
8508 (mep_get_insn, mep_push_dummy_call): Likewise.
8509 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
8510 (mips_linux_in_dynsym_stub): Likewise.
8511 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
8512 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
8513 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
8514 to gdb_byte.
8515 * remote-mips.c (mips_set_register): Likewise.
8516 * remote-sim.c (gdbsim_fetch_register): Likewise.
8517 * score-tdep.c (score7_fetch_inst): Change type of parameter
8518 'memblock' and local 'buf' to gdb_byte.
8519 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
8520 Change type of local 'buf' to gdb_byte. Adjust.
8521 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
8522 to gdb_byte**.
8523 (score7_analyze_prologue): Change type of 'memblock' and
8524 'memblock_ptr' locals to gdb_byte*.
8525 * sh64-tdep.c (sh64_extract_return_value)
8526 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
8527 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
8528 * solib-pa64.c (pa64_solib_create_inferior_hook)
8529 (pa64_open_symbol_file_object): Remove local 'buf'.
8530 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
8531 (som_open_symbol_file_object): Likewise.
8532 * solib-spu.c (spu_current_sos): Likewise.
8533 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
8534 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
8535 (spu_store_registers): Likewise.
8536 * target.c (debug_print_register): Likewise.
8537 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
8538 * xstormy16-tdep.c (xstormy16_store_return_value)
8539 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
8540 (xstormy16_find_jmp_table_entry): Likewise.
8541
8542 2013-03-01 Jiong Wang <jiwang@tilera.com>
8543
8544 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
8545 (tilegx_gdbarch_init): Install it.
8546
8547 2013-02-28 Tom Tromey <tromey@redhat.com>
8548
8549 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
8550 PyLong_Check.
8551
8552 2013-02-28 Doug Evans <dje@google.com>
8553
8554 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
8555 * python/python.c (gdbpy_find_pc_line): Ditto.
8556
8557 2013-02-28 Tom Tromey <tromey@redhat.com>
8558
8559 * contrib/excheck.py: New file.
8560 * contrib/exsummary.py: New file.
8561 * contrib/gcc-with-excheck: New file.
8562
8563 2013-02-28 Tom Tromey <tromey@redhat.com>
8564
8565 * python/python.c (gdbpy_print_stack): Call begin_line and
8566 fprintf_filtered inside TRY_CATCH.
8567
8568 2013-02-28 Tom Tromey <tromey@redhat.com>
8569
8570 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
8571 inside TRY_CATCH.
8572
8573 2013-02-28 Tom Tromey <tromey@redhat.com>
8574
8575 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
8576 frame_object_to_frame_info inside TRY_CATCH.
8577
8578 2013-02-28 Tom Tromey <tromey@redhat.com>
8579
8580 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
8581 TRY_CATCH.
8582
8583 2013-02-28 Tom Tromey <tromey@redhat.com>
8584
8585 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
8586
8587 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
8588
8589 * windows-nat.c: Throughout, fix format strings and casts of
8590 printf-like functions to avoid type related warnings on all
8591 platforms.
8592 (handle_output_debug_string): Fetch context information address
8593 from debug string using string_to_core_addr.
8594
8595 2013-02-27 Jiong Wang <jiwang@tilera.com>
8596
8597 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
8598 * regformats/reg-tilegx32.dat: New.
8599
8600 2013-02-27 Jiong Wang <jiwang@tilera.com>
8601
8602 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
8603
8604 2013-02-27 Jiong Wang <jiwang@tilera.com>
8605
8606 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
8607
8608 2013-02-27 Yao Qi <yao@codesourcery.com>
8609 Pedro Alves <palves@redhat.com>
8610
8611 * tracepoint.c (tfile_trace_find): For tfind
8612 pc/tp/range/outside, look for the next trace frame instead of
8613 always starting from frame 0.
8614
8615 2013-02-26 Anthony Green <green@moxielogic.com>
8616
8617 * configure.tgt: Add support for moxie-*-rtems* target.
8618
8619 2013-02-25 Pedro Alves <palves@redhat.com>
8620
8621 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
8622 warning text.
8623
8624 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8625
8626 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
8627 if $fp is used as the virtual frame pointer.
8628
8629 2013-02-23 Alan Modra <amodra@gmail.com>
8630
8631 * elfread.c (elf_symtab_read): Do not use udata.p here to find
8632 symbol size.
8633 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
8634 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
8635 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
8636 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
8637
8638 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8639
8640 Code cleanup.
8641 * elfread.c (build_id_bfd_get): Make the return type const.
8642 (build_id_verify): Make the check parameter const.
8643 (build_id_to_debug_filename): Make the build_id parameter and variable
8644 data const.
8645 (find_separate_debug_file_by_buildid): Make the variable build_id const.
8646
8647 2013-02-21 Alan Modra <amodra@gmail.com>
8648
8649 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
8650
8651 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
8652
8653 Add a new method 'disassemble' to gdb.Architecture class.
8654 * python/py-arch.c (archpy_disassmble): Implementation of the
8655 new method gdb.Architecture.disassemble.
8656 (arch_object_methods): Add entry for the new method.
8657
8658 2013-02-20 Jiong Wang <jiwang@tilera.com>
8659
8660 * MAINTAINERS (Write After Approval): Add myself to the list.
8661
8662 2013-02-19 Pedro Alves <palves@redhat.com>
8663
8664 Garbage collect 'struct monitor_ops'::load_routine.
8665
8666 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
8667 * monitor.c (monitor_load): No longer call
8668 current_monitor->load_routine.
8669 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
8670 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
8671 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
8672
8673 2013-02-19 Pedro Alves <palves@redhat.com>
8674
8675 PR gdb/15161
8676
8677 Harmonize with generic_load.
8678
8679 * monitor.c: Include "readline/readline.h".
8680 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
8681 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
8682 long/strtol for the 'load_offset' local. Error out if no argument
8683 is given or if too many arguments are given. Tilde expand the
8684 passed in file name.
8685
8686 2013-02-19 Kai Tietz <ktietz@redhat.com>
8687
8688 PR gdb/15161
8689 * symfile.c (load_section_data): Change type of load_offset
8690 to CORE_ADDR.
8691 (generic_load): User strtoulst instead of strtoul for conversion
8692 of load_offset.
8693
8694 2013-02-19 Jiong Wang <jiwang@tilera.com>
8695
8696 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
8697 for return address, "lr" register, saved on stack.
8698 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
8699 after we invoke tilegx_analyze_prologue.
8700
8701 2013-02-19 Jiong Wang <jiwang@tilera.com>
8702
8703 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
8704
8705 2013-02-19 Jiong Wang <jiwang@tilera.com>
8706
8707 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
8708
8709 2013-02-19 Jiong Wang <jiwang@tilera.com>
8710
8711 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
8712 (tilegx_write_pc): New function.
8713 (tilegx_cannot_reference_register): Return zero if REGNO
8714 is TILEGX_FAULTNUM_REGNUM.
8715 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
8716 (tilegx_register_name): Add handling of "faultnum" register.
8717 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
8718 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
8719 handling of TILEGX_FAULTNUM_REGNUM.
8720 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
8721
8722 2013-02-19 Jiong Wang <jiwang@tilera.com>
8723
8724 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
8725 should be aligned to 64bit.
8726
8727 2013-02-19 Kai Tietz <ktietz@redhat.com>
8728
8729 * windows-nat.c (windows_xfer_memory): Fix debug-output
8730 for LLP64.
8731
8732 2013-02-19 Lei Liu <lei.liu2@windriver.com>
8733
8734 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
8735 Don't check DSP register number if HAVE_DSP is not set.
8736
8737 2013-02-19 Alan Modra <amodra@gmail.com>
8738
8739 * elfread.c (struct build_id): Delete. Use struct elf_build_id
8740 throughout file instead.
8741 (build_id_bfd_get): Update to use new elf_tdata build_id field.
8742 Don't xmalloc return value.
8743 (build_id_verify): Similarly. Don't xfree.
8744 (build_id_to_debug_filename): Update.
8745 (find_separate_debug_file_by_buildid): Update, don't xfree.
8746
8747 2013-02-18 Tom Tromey <tromey@redhat.com>
8748
8749 PR gdb/15102:
8750 * dwarf2read.c (read_subrange_type): Use result of
8751 'check_typedef'.
8752
8753 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
8754
8755 * frame.c: Remove one extra white space after #include
8756 directive.
8757
8758 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8759
8760 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
8761
8762 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8763
8764 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
8765 and dir commands into an if block.
8766
8767 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
8768
8769 * python/py-breakpoint (struct pybp_code): Use int instead of
8770 enum type_code.
8771
8772 2013-02-15 Pedro Alves <pedro@codesourcery.com>
8773 Hafiz Abid Qadeer <abidh@codesourcery.com>
8774
8775 * NEWS: Mention new field "trace-file".
8776 * tracepoint.c (trace_status_mi): Output "trace-file" field.
8777 (tfile_open): Record the trace file's filename in the trace
8778 status.
8779 (tfile_files_info): Mention the name of the trace file.
8780 Check the "filename" field explicitely.
8781 (trace_status_command): Explicitely check "filename" field.
8782 (trace_find_command): Ditto.
8783 (trace_find_pc_command): Ditto.
8784 (trace_find_tracepoint_command): Ditto.
8785 (trace_find_line_command): Ditto.
8786 (trace_find_range_command): Ditto.
8787 (trace_find_outside_command): Ditto.
8788 * tracepoint.h (struct trace_status) <from_file>: Rename it
8789 to "filename" and make it hold the trace file's filename
8790 instead of a boolean.
8791 * remote.c (remote_get_trace_status): Initialize "filename"
8792 field with NULL instead of 0.
8793
8794 2013-02-15 Yao Qi <yao@codesourcery.com>
8795
8796 * remote.c: Fix a typo.
8797
8798 2013-02-14 Pierre Muller <muller@sourceware.org>
8799
8800 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
8801
8802 2013-02-14 Pedro Alves <palves@redhat.com>
8803
8804 * utils.c (savestring): Don't #undef it. Move function to
8805 common/common-utils.c.
8806 * common/common-utils.c: Include gdb_string.h.
8807 (savestring): Move here from utils.c.
8808 * common/common-utils.h (savestring): Declare.
8809
8810 2013-02-14 Pedro Alves <palves@redhat.com>
8811
8812 * utils.c (savestring): Rename parameter 'size' to 'len'.
8813
8814 2013-02-14 Pedro Alves <palves@redhat.com>
8815 Yufeng Zhang <yufeng.zhang@arm.com>
8816
8817 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
8818 (aarch64_inferior_data, struct aarch64_inferior_data):
8819 Delete.
8820 (struct aarch64_process_info): New.
8821 (aarch64_process_list): New global.
8822 (aarch64_find_process_pid, aarch64_add_process)
8823 (aarch64_process_info_get): New functions.
8824 (aarch64_inferior_data_get): Delete.
8825 (aarch64_process_info_get): New function.
8826 (aarch64_forget_process): New function.
8827 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
8828 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
8829 aarch64_get_debug_reg_state.
8830 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
8831 instead of linux_nat_iterate_watchpoint_lwps.
8832 (aarch64_linux_new_fork): New function.
8833 (aarch64_linux_child_post_startup_inferior): Use
8834 aarch64_forget_process instead of aarch64_init_debug_reg_state.
8835 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
8836 (aarch64_linux_remove_hw_breakpoint)
8837 (aarch64_handle_aligned_watchpoint)
8838 (aarch64_handle_unaligned_watchpoint)
8839 (aarch64_linux_insert_watchpoint)
8840 (aarch64_linux_remove_watchpoint)
8841 (aarch64_linux_stopped_data_address): Adjust to pass the current
8842 process id to aarch64_debug_reg_state.
8843 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
8844 linux_nat_new_fork hook, and aarch64_forget_process as
8845 linux_nat_forget_process hook; remove the call to
8846 register_inferior_data_with_cleanup.
8847
8848 2013-02-14 Pedro Alves <palves@redhat.com>
8849
8850 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
8851 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
8852 lval_memory.
8853
8854 2013-02-14 Pedro Alves <pedro@codesourcery.com>
8855 Hafiz Abid Qadeer <abidh@codesourcery.com>
8856
8857 * tracepoint.h (validate_trace_state_variable_name): Declare.
8858 * tracepoint.c (validate_trace_state_variable_name): New.
8859 (trace_variable_command): Parse the trace state variable's name
8860 without using parse_expression. Do several validations.
8861 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
8862 trace state variable's name with parse_expression. Validate it.
8863
8864 2013-02-14 Yao Qi <yao@codesourcery.com>
8865
8866 * infcmd.c (breakpoint_proceeded): Remove it.
8867
8868 2013-02-14 Yao Qi <yao@codesourcery.com>
8869
8870 * tracepoint.c (end_actions_pseudocommand): Make it static.
8871 (while_stepping_pseudocommand): Likewise.
8872 * tracepoint.h (end_actions_pseudocommand): Remove the
8873 declaration.
8874 (while_stepping_pseudocommand): Likewise.
8875
8876 2013-02-14 Yao Qi <yao@codesourcery.com>
8877
8878 * cli/cli-decode.c (help_cmd): Remove the declaration of
8879 "cmdlist".
8880 (help_all): Likewise.
8881
8882 2013-02-13 Pedro Alves <palves@redhat.com>
8883
8884 * amd64-linux-nat.c (update_debug_registers_callback):
8885 Update comment.
8886 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8887 iterate_over_lwps.
8888 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
8889 i386_debug_reg_state.
8890 (amd64_linux_new_fork): New function.
8891 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
8892 linux_nat_new_fork hook, and i386_forget_process as
8893 linux_nat_forget_process hook.
8894 * i386-linux-nat.c (update_debug_registers_callback):
8895 Update comment.
8896 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8897 iterate_over_lwps.
8898 (i386_linux_prepare_to_resume): Pass the lwp's pid to
8899 i386_debug_reg_state.
8900 (i386_linux_new_fork): New function.
8901 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
8902 linux_nat_new_fork hook, and i386_forget_process as
8903 linux_nat_forget_process hook.
8904 * i386-nat.c (i386_init_dregs): Delete.
8905 (i386_inferior_data, struct i386_inferior_data):
8906 Delete.
8907 (struct i386_process_info): New.
8908 (i386_process_list): New global.
8909 (i386_find_process_pid, i386_add_process, i386_process_info_get):
8910 New functions.
8911 (i386_inferior_data_get): Delete.
8912 (i386_process_info_get): New function.
8913 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
8914 (i386_forget_process): New function.
8915 (i386_cleanup_dregs): Rewrite.
8916 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
8917 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
8918 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8919 (i386_remove_hw_breakpoint): Adjust to pass the current process id
8920 to i386_debug_reg_state.
8921 (i386_use_watchpoints): Don't register inferior data.
8922 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
8923 adjust comment.
8924 (i386_forget_process): Declare.
8925 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
8926 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
8927 New static globals.
8928 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
8929 (add_initial_lwp): New, factored out from ...
8930 (add_lwp): ... this. Don't check the number of lwps before
8931 calling linux_nat_new_thread.
8932 (linux_nat_iterate_watchpoint_lwps): Delete.
8933 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
8934 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
8935 forks and vforks.
8936 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
8937 initial lwp.
8938 (linux_nat_kill, linux_nat_mourn_inferior): Call
8939 linux_nat_forget_process.
8940 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8941 (linux_nat_forget_process): New functions.
8942 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
8943 type.
8944 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
8945 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
8946 types.
8947 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8948 (linux_nat_forget_process): New declarations.
8949
8950 * amd64fbsd-nat.c (super_mourn_inferior): New global.
8951 (amd64fbsd_mourn_inferior): New function.
8952 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
8953 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
8954
8955 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8956
8957 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
8958 Adding _().
8959
8960 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8961
8962 * aarch64-linux-nat.c (debug_reg_change_callback)
8963 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
8964 %s and phex().
8965
8966 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8967
8968 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
8969 with LONGEST.
8970
8971 2013-02-13 Pedro Alves <palves@redhat.com>
8972 Hafiz Abid Qadeer <abidh@codesourcery.com>
8973
8974 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
8975
8976 2013-02-12 Tom Tromey <tromey@redhat.com>
8977
8978 PR symtab/11464:
8979 * c-exp.y (lex_one_token): Initialize other fields of yylval on
8980 NAME return.
8981 (classify_inner_name): Remove 'first_name' argument, add
8982 'context'. Remove unused variable.
8983 (yylex): Explicitly maintain the context type. Exit loop earlier
8984 if NAME result is seen.
8985
8986 2013-02-12 Pedro Alves <palves@redhat.com>
8987
8988 * amd64-darwin-tdep.c: Add (C) after Copyright.
8989 * cli/cli-cmds.h: Ditto.
8990 * cli/cli-decode.c: Ditto.
8991 * cli/cli-decode.h: Ditto.
8992 * cli/cli-dump.c: Ditto.
8993 * cli/cli-dump.h: Ditto.
8994 * cli/cli-interp.c: Ditto.
8995 * cli/cli-logging.c: Ditto.
8996 * cli/cli-script.c: Ditto.
8997 * cli/cli-script.h: Ditto.
8998 * cli/cli-setshow.c: Ditto.
8999 * cli/cli-setshow.h: Ditto.
9000 * cli/cli-utils.c: Ditto.
9001 * cli/cli-utils.h: Ditto.
9002 * config/alpha/nm-osf3.h: Ditto.
9003 * config/djgpp/djconfig.sh: Ditto.
9004 * config/i386/nm-fbsd.h: Ditto.
9005 * config/i386/nm-i386gnu.h: Ditto.
9006 * config/nm-linux.h: Ditto.
9007 * config/nm-nto.h: Ditto.
9008 * config/rs6000/nm-rs6000.h: Ditto.
9009 * config/sparc/nm-sol2.h: Ditto.
9010 * darwin-nat-info.c: Ditto.
9011 * dfp.c: Ditto.
9012 * dfp.h: Ditto.
9013 * gdb-demangle.h: Ditto.
9014 * i386-darwin-nat.c: Ditto.
9015 * i386-darwin-tdep.c: Ditto.
9016 * linux-fork.h: Ditto.
9017 * m32c-tdep.c: Ditto.
9018 * microblaze-linux-tdep.c: Ditto.
9019 * microblaze-rom.c: Ditto.
9020 * microblaze-tdep.c: Ditto.
9021 * microblaze-tdep.h: Ditto.
9022 * mips-linux-tdep.h: Ditto.
9023 * ppc-ravenscar-thread.c: Ditto.
9024 * ppc-ravenscar-thread.h: Ditto.
9025 * prologue-value.c: Ditto.
9026 * prologue-value.h: Ditto.
9027 * ravenscar-thread.c: Ditto.
9028 * ravenscar-thread.h: Ditto.
9029 * sparc-ravenscar-thread.c: Ditto.
9030 * sparc-ravenscar-thread.h: Ditto.
9031 * tilegx-linux-tdep.c: Ditto.
9032 * unwind_stop_reasons.def: Ditto.
9033 * windows-nat.h: Ditto.
9034 * xtensa-linux-tdep.c: Ditto.
9035 * xtensa-xtregs.c: Ditto.
9036 * regformats/regdat.sh: Ditto.
9037 * regformats/regdef.h: Ditto.
9038
9039 2013-02-12 Pedro Alves <palves@redhat.com>
9040
9041 * break-catch-sig.c: Update copyright years.
9042
9043 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9044
9045 Add support for a destructor for ui_out data and use it to
9046 provide a ui_out destructor.
9047 * ui-out.h: Declare the new ui_out destructor.
9048 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9049 * ui-out.c (default_data_destroy): Add a default data destructor
9050 which does nothing.
9051 (default_ui_out_impl): Set the new data_destroy field to
9052 default_data_destroy
9053 (uo_data_destroy): Local function which invokes the data
9054 destructor if present.
9055 (clear_table): Local function which clears the table data of a
9056 ui_out object.
9057 (ui_out_destroy): Public function which frees a ui_out object.
9058 (ui_out_table_end): Use the new clear_table function.
9059 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9060 NULL.
9061 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9062 to NULL.
9063
9064 2013-02-11 Doug Evans <dje@google.com>
9065
9066 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9067 (printf_decfloat): New function. Broken out from ui_printf.
9068 Remove unnecessary code to shift the entire format string down.
9069 (printf_pointer): New function.
9070 (ui_printf): Code to print C strings, wide C strings, decfloats,
9071 and pointers moved to separate functions.
9072
9073 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9074
9075 * valops.c (value_assign): Handling bitfield offset in
9076 `lval_internalvar_component' case.
9077
9078 2013-02-08 Doug Evans <dje@google.com>
9079
9080 * common/format.c (parse_format_string): Fix whitespace.
9081
9082 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9083
9084 * stack.c (return_command): Work around uninitialized variable
9085 warning.
9086
9087 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9088
9089 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9090 number of the registers from 36 to 34.
9091
9092 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9093
9094 * NEWS: Mention new AArch64 native and target support.
9095
9096 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9097
9098 * MAINTAINERS (Write After Approval): Add myself.
9099
9100 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9101 Marcus Shawcroft <marcus.shawcroft@arm.com>
9102 Nigel Stephens <nigel.stephens@arm.com>
9103 Yufeng Zhang <yufeng.zhang@arm.com>
9104
9105 * aarch64-linux-nat.c: New file.
9106 * config/aarch64/linux.mh: New file.
9107 * configure.host: Add AArch64.
9108 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9109
9110 2013-02-07 Doug Evans <dje@google.com>
9111
9112 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9113 disassemble command.
9114
9115 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9116
9117 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9118 set_gdbarch_fetch_tls_load_module_address.
9119
9120 2013-02-06 David S. Miller <davem@davemloft.net>
9121
9122 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9123 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9124 * value.c (struct_return_convention): New function.
9125 (using_struct_return): Implement in terms of struct_return_convention.
9126 * value.h (struct_return_convention): Declare.
9127 * stack.c (return_command): Allow successful overriding of the return
9128 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9129
9130 2013-02-06 Tom Tromey <tromey@redhat.com>
9131
9132 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9133 outside of TRY_CATCH.
9134
9135 2013-02-06 Yao Qi <yao@codesourcery.com>
9136
9137 * mi/mi-interp.c: Include "tracepoint.h".
9138 (mi_tsv_modified): Declare.
9139 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9140 (mi_interpreter_init): Call observer_attach_tsv_modified.
9141 (mi_tsv_modified): New.
9142 (mi_tsv_created, mi_tsv_deleted): Update.
9143 * tracepoint.c (trace_variable_command): Call
9144 observer_notify_tsv_modified if the initial value of tsv is
9145 changed.
9146 (delete_trace_state_variable): Call
9147 observer_notify_tsv_deleted earlier.
9148 (trace_variable_command): Caller update.
9149 (create_tsv_from_upload): Likewise.
9150 * observer.sh: Declare "struct trace_state_variable".
9151
9152 * NEWS: Mention the new MI notification "=tsv-modified".
9153
9154 2013-02-05 Doug Evans <dje@google.com>
9155
9156 * completer.c (location_completer): Fix typo in comment.
9157
9158 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9159
9160 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9161 ADDRESS sorted.
9162
9163 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9164
9165 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9166 Refactor if statement to avoid trailing || operator.
9167
9168 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
9169
9170 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9171
9172 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
9173
9174 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9175 * configure.host: Add powerpc*-*-freebsd* target.
9176 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9177 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9178 * config/powerpc/fbsd.mh: New file.
9179
9180 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9181 Denys Vlasenko <dvlasenk@redhat.com>
9182 Pedro Alves <palves@redhat.com>
9183
9184 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9185 (struct elf_internal_linux_prpsinfo): Forward declare.
9186 * gdbarch.h, gdbarch.c: Regenerate.
9187 * linux-tdep.c: Include `cli/cli-utils.h'.
9188 (linux_fill_prpsinfo): New function.
9189 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9190 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9191 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9192 depending on gdbarch pointer bitness.
9193 * ppc-linux-tdep.c: Include elf-bfd.h.
9194 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9195 on 32-bit.
9196
9197 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9198 Marcus Shawcroft <marcus.shawcroft@arm.com>
9199 Nigel Stephens <nigel.stephens@arm.com>
9200 Yufeng Zhang <yufeng.zhang@arm.com>
9201
9202 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9203
9204 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9205 Marcus Shawcroft <marcus.shawcroft@arm.com>
9206 Nigel Stephens <nigel.stephens@arm.com>
9207 Yufeng Zhang <yufeng.zhang@arm.com>
9208
9209 * aarch64-newlib-tdep.c: New file.
9210 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9211 aarch64*-*-elf.
9212 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9213 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9214 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9215 * osabi.c (gdb_osabi_names): Add "Newlib".
9216
9217 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9218 Marcus Shawcroft <marcus.shawcroft@arm.com>
9219 Nigel Stephens <nigel.stephens@arm.com>
9220 Yufeng Zhang <yufeng.zhang@arm.com>
9221
9222 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9223 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9224 * aarch64-linux-tdep.c: New file.
9225 * aarch64-linux-tdep.h: New file.
9226 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9227 * configure.tgt: Add aarch64-none-linux-gnu.
9228
9229 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9230 Marcus Shawcroft <marcus.shawcroft@arm.com>
9231 Nigel Stephens <nigel.stephens@arm.com>
9232 Yufeng Zhang <yufeng.zhang@arm.com>
9233
9234 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9235 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9236 (ALLDEPFILES): Add aarch64-tdep.c.
9237 * aarch64-tdep.c: New file.
9238 * aarch64-tdep.h: New file.
9239 * configure.tgt: Add AArch64.
9240 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9241 (aarch64-expedite): New definition.
9242 * features/aarch64-core.xml: New file.
9243 * features/aarch64-fpu.xml: New file.
9244 * features/aarch64-without-fpu.c: New file (generated).
9245 * features/aarch64-without-fpu.xml: New file.
9246 * features/aarch64.c: New file (generated).
9247 * features/aarch64.xml: New file.
9248 * regformats/aarch64-without-fpu.dat: New file (generated).
9249 * regformats/aarch64.dat: New file (generated).
9250
9251 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9252
9253 * contrib/expect-read1.c: New file.
9254 * contrib/expect-read1.sh: New file.
9255
9256 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9257
9258 * dwarf2read.c (file_file_name): New function with code from
9259 file_full_name.
9260 (file_full_name): Move most of the code to file_file_name.
9261 (macro_start_file): Rename variable full_name to file_name and use
9262 file_file_name for it. Add comp_dir parameter to new_macro_table.
9263 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9264 macro_source_file->filename access by macro_source_fullname call.
9265 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9266 caller.
9267 * macrotab.c (struct macro_table): New field comp_dir.
9268 (macro_include): New variables link_fullname and source_fullname.
9269 Replace any macro_source_file->filename access by macro_source_fullname
9270 call.
9271 (macro_lookup_inclusion): Remove the partial filenames checking code.
9272 (check_for_redefinition): New variables source_fullname and
9273 found_key_fullname. Replace any macro_source_file->filename access by
9274 macro_source_fullname call.
9275 (macro_undef): New variables source_fullname and key_fullname. Replace
9276 any macro_source_file->filename access by macro_source_fullname call.
9277 (macro_lookup_definition): New variables retval and source_fullname.
9278 Replace any macro_source_file->filename access by macro_source_fullname
9279 call.
9280 (foreach_macro): New variable key_fullname. Replace any
9281 macro_source_file->filename access by macro_source_fullname call.
9282 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9283 macro_source_file->filename access by macro_source_fullname call.
9284 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9285 (macro_source_fullname): New function.
9286 * macrotab.h (struct macro_source_file): Extent the filename field
9287 comment.
9288 (new_macro_table): New parameter comp_dir, add a comment for it.
9289 (macro_source_fullname): new declaration.
9290
9291 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9292
9293 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9294 this_real_name to outer block. Use it also for
9295 compare_filenames_for_search.
9296 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9297 with dw2_get_real_path for file_matcher, considering also
9298 BASENAMES_MAY_DIFFER.
9299 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9300
9301 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9302
9303 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9304 to the file_matcher parameter. Pass 0 to it.
9305 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9306 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9307 NULL psymtab_to_fullname result.
9308 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9309 an expected filename instead.
9310 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9311 file_matcher parameter. Call also psymtab_to_fullname, after newly
9312 considering BASENAMES_MAY_DIFFER.
9313 * source.c (rewrite_source_path): Remove static.
9314 * source.h (rewrite_source_path): New declaration.
9315 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9316 the expand_symtabs_matching field. Comment it.
9317 * symtab.c (file_matches): New function comment. Add parameter
9318 basenames, implement it.
9319 (search_symbols_file_matches): Add basenames parameter. Update the
9320 file_matches caller.
9321 (search_symbols): Match FILES also against symtab_to_fullname.
9322 Optimize it for BASENAMES_MAY_DIFFER.
9323
9324 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9325
9326 * source.c (print_source_lines_base): Print for TUI also "fullname".
9327 * tui/tui-data.c (init_content_element): Change tui_locator_element
9328 field to full_name.
9329 * tui/tui-data.h (struct tui_locator_element): Likewise.
9330 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
9331 tui_update_locator_filename calls to tui_update_locator_fullname.
9332 Replace symtab->filename refererence by symtab_to_fullname call.
9333 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
9334 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
9335 field to full_name. Replace symtab->filename refererence by
9336 symtab_to_fullname call.
9337 (tui_show_symtab_source): Rename parameter to fullname. Change
9338 tui_locator_element field to full_name.
9339 * tui/tui-stack.c: Include source.h.
9340 (tui_set_locator_filename): Rename the declaration to ...
9341 (tui_set_locator_fullname): ... here. Rename its parameter to
9342 fullname, updates its comment.
9343 (tui_set_locator_info): Rename its parameter to fullname.
9344 (tui_set_locator_filename): Rename the definition to ...
9345 (tui_set_locator_fullname): ... here. Rename its parameter to
9346 fullname, updates its comment. Change tui_locator_element field to
9347 full_name.
9348 (tui_set_locator_info): Rename its parameter to fullname.
9349 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
9350 (tui_update_locator_filename): Rename to ...
9351 (tui_update_locator_fullname): ... here. Rename callee to
9352 tui_set_locator_fullname.
9353 (tui_show_frame_info): Replace symtab->filename refererence by
9354 symtab_to_fullname call.
9355 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
9356 (tui_update_locator_fullname): ... here.
9357 * tui/tui-winsource.c (tui_display_main): Rename the callee to
9358 tui_update_locator_fullname. Replace symtab->filename refererence by
9359 symtab_to_fullname call.
9360 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
9361 Rename the callee to tui_update_locator_fullname.
9362 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
9363
9364 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9365
9366 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
9367 by symtab_to_filename_for_display calls.
9368 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
9369 (clear_command): New variable sal_fullname, initialize it. Replace
9370 compare_filenames_for_search by filename_cmp with sal_fullname.
9371 (say_where, update_static_tracepoint): Replace symtab->filename
9372 refererences by symtab_to_filename_for_display calls.
9373 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
9374 Likewise.
9375 * dwarf2read.c: Include source.h.
9376 (fixup_go_packaging): Replace symtab->filename refererences by
9377 symtab_to_filename_for_display calls.
9378 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
9379 Replace symtab->filename refererences by symtab_to_filename_for_display
9380 calls.
9381 (create_sals_line_offset, convert_linespec_to_sals): New variable
9382 fullname, initialize it, replace symtab->filename reference by the
9383 variable.
9384 * linux-fork.c: Include source.h.
9385 (info_checkpoints_command): Replace symtab->filename refererences by
9386 symtab_to_filename_for_display calls.
9387 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
9388 by symtab_to_filename_for_display calls.
9389 * mdebugread.c: Include source.h.
9390 (psymtab_to_symtab_1): Replace symtab->filename refererences by
9391 symtab_to_filename_for_display calls.
9392 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9393 (mi_cmd_file_list_exec_source_files): Likewise.
9394 * printcmd.c: Include source.h.
9395 (build_address_symbolic): Replace symtab->filename refererences by
9396 symtab_to_filename_for_display calls.
9397 * psymtab.c (partial_map_symtabs_matching_filename)
9398 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
9399 with psymtab_to_fullname.
9400 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
9401 by symtab_to_filename_for_display calls.
9402 (stpy_get_filename): New variable filename, initialize it, use instead
9403 of symtab->filename refererences.
9404 (salpy_str): Make variable filename const char *. Replace
9405 symtab->filename refererences by symtab_to_filename_for_display calls.
9406 * skip.c: Include source.h and filenames.h.
9407 (skip_file_command): Remove const from the symtab variable. Replace
9408 symtab->filename refererences by symtab_to_fullname call.
9409 (function_name_is_marked_for_skip): New variables searched_for_fullname
9410 and fullname. Use them to search also with symtab's fullname.
9411 * source.c (find_source_lines): Replace symtab->filename refererences
9412 by symtab_to_filename_for_display calls.
9413 (print_source_lines_base): New variable filename, use it instead of
9414 symtab->filename. Replace symtab->filename refererences by
9415 symtab_to_filename_for_display calls.
9416 (line_info, forward_search_command): Replace symtab->filename
9417 refererences by symtab_to_filename_for_display calls.
9418 (reverse_search_command): Replace symtab->filename refererences by
9419 symtab_to_filename_for_display calls. New variable filename for it.
9420 * stack.c (frame_info): Likewise.
9421 * symmisc.c: Include source.h.
9422 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
9423 (maintenance_info_symtabs): Replace symtab->filename refererences by
9424 symtab_to_filename_for_display calls.
9425 * symtab.c (iterate_over_some_symtabs): Call
9426 compare_filenames_for_search also with symtab_to_fullname.
9427 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
9428 symtab->filename refererences by symtab_to_filename_for_display calls.
9429 (find_line_symtab): Replace symtab->filename refererences by
9430 symtab_to_filename_for_display calls.
9431 (file_matches): Replace filename_cmp by compare_filenames_for_search.
9432 (print_symbol_info): Make the last parameter const char *. New
9433 variable s_filename. Use it in the function.
9434 (symtab_symbol_info): Make the last_filename variable const char *.
9435 Replace symtab->filename refererences by symtab_to_filename_for_display
9436 calls.
9437 (rbreak_command): New variable fullname. Use it. Replace
9438 symtab->filename refererence by symtab_to_filename_for_display call.
9439 * tracepoint.c (set_traceframe_context, trace_find_line_command)
9440 (print_one_static_tracepoint_marker): Replace symtab->filename
9441 refererences by symtab_to_filename_for_display calls.
9442 * tui/tui-source.c (tui_set_source_content): New variables filename and
9443 s_filename. Replace symtab->filename refererences by this variable.
9444 Replace other symtab->filename refererences by
9445 symtab_to_filename_for_display calls.
9446
9447 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
9448 Jan Kratochvil <jan.kratochvil@redhat.com>
9449
9450 Add a new variable that controls a way in which filenames are
9451 displayed.
9452 * NEWS (set filename-display): New entry.
9453 * source.c (filename_display_basename, filename_display_relative)
9454 (filename_display_absolute, filename_display_kind_names)
9455 (filename_display_string, show_filename_display_string)
9456 (symtab_to_filename_for_display): New.
9457 (_initialize_source): Added initialization of 'filename-display'
9458 variable.
9459 * source.h (symtab_to_filename_for_display): Added declaration.
9460 * stack.c (print_frame): Added new variable and calling of a new
9461 function and condition with this variable. Changed third argument of
9462 calling of a function.
9463
9464 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9465
9466 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
9467 Rename field reference filename to fullname.
9468 * tui/tui-data.h (struct tui_source_info): Rename field filename to
9469 fullname. New comment for it.
9470 * tui/tui-source.c (tui_set_source_content): Rename field reference
9471 filename to fullname. Initialize field by symtab_to_fullname now.
9472 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
9473 reference filename to fullname. Use symtab_to_fullname during
9474 comparison.
9475
9476 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9477
9478 Code cleanup.
9479 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
9480 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
9481 filename to fullname. Rename variable this_name to this_fullname.
9482 Lowercase FILENAME_CMP call.
9483 (dw2_find_symbol_file): New comment for the returned string.
9484 (dwarf2_gdb_index_functions): Rename the function to
9485 dw2_expand_symtabs_with_fullname.
9486 * psymtab.c (read_psymtabs_with_filename): Rename to ...
9487 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
9488 fullname.
9489 (psym_functions): Rename the function to read_psymtabs_with_fullname.
9490 * symfile.h (struct quick_symbol_functions): Rename field
9491 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
9492 parameter filename to fullname. Document returned string meaning for
9493 find_symbol_file.
9494 * symtab.c (find_line_symtab): Rename the called function to
9495 expand_symtabs_with_fullname.
9496
9497 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9498
9499 Code cleanup.
9500 * breakpoint.c (clear_command): Remove variable is_abs, unify the
9501 call of filename_cmp with compare_filenames_for_search.
9502 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
9503 is_abs, unify the call of FILENAME_CMP with
9504 compare_filenames_for_search. New gdb_asserts for real_path and name.
9505 Unify the call of compare_filenames_for_search with FILENAME_CMP.
9506 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9507 * symfile.h (struct quick_symbol_functions): Extend the comment for
9508 map_symtabs_matching_filename.
9509 * symtab.c (compare_filenames_for_search): Remove the function comment
9510 relative path requirement. Handle absolute filenames, with a comment.
9511 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
9512 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
9513 real_path and name. Unify the call of compare_filenames_for_search
9514 with FILENAME_CMP.
9515 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
9516
9517 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9518
9519 Code cleanup.
9520 * breakpoint.c (print_breakpoint_location): Replace bp_location field
9521 source_file references by symtab field references. Remove variables
9522 sal and fullname.
9523 (momentary_breakpoint_from_master, add_location_to_breakpoint):
9524 (clear_command, say_where): Replace bp_location field source_file
9525 references by symtab field references.
9526 (bp_location_dtor): Remove the source_file reference.
9527 (update_static_tracepoint): Replace bp_location field source_file
9528 references by symtab field references.
9529 (breakpoint_free_objfile): New function.
9530 * breakpoint.h (struct bp_location): Extend the comment for line_number.
9531 Replace the field source_file by field symtab, extend its comment.
9532 (breakpoint_free_objfile): New declaration.
9533 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
9534 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
9535 field source_file references by symtab field references.
9536
9537 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9538
9539 Replace xfullpath calls by gdb_realpath calls.
9540 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
9541 function comment.
9542 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
9543 Remove it from the iterate_over_some_symtabs call.
9544 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
9545 Remove it from the dw2_map_expand_apply calls, remove a block handling
9546 it.
9547 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
9548 Remove it from the iterate_over_some_symtabs call.
9549 (partial_map_symtabs_matching_filename): Remove parameter full_path.
9550 Remove it from the partial_map_expand_apply calls, remove a block
9551 handling it. Drop gdb_realpath call and cleanups from the real_path
9552 handling.
9553 * source.c (openp): Drop the comment part about xfullpath. Replace
9554 xfullpath calls by gdb_realpath calls.
9555 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
9556 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
9557 from method map_symtabs_matching_filename and its comment.
9558 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
9559 gdb_realpath call.
9560 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
9561 remove it also from the function comment, remove a block handling it.
9562 Drop gdb_realpath call and cleanups from the real_path handling.
9563 (iterate_over_symtabs): Drop variable full_path and its use.
9564 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
9565 * utils.c (xfullpath): Remove.
9566 * utils.h (xfullpath): Remove.
9567
9568 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
9569
9570 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
9571 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
9572 (ALLDEPFILES): Add ppc64-tdep.c.
9573 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
9574 ppc64-tdep.o to gdb_target_obs.
9575 * ppc64-tdep.h: New file.
9576 * ppc64-tdep.c: New file.
9577 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
9578 ppc-linux-tdep.c to here.
9579 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
9580 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
9581 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
9582 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
9583 from ppc-linux-tdep.c to here.
9584 (ppc64_convert_from_func_ptr_addr): Rename from
9585 ppc64_linux_convert_from_func_ptr_addr to
9586 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
9587 here.
9588 * rs6000-tdep.c:
9589 (read_insn): Move from ppc-linux-tdep.c to here.
9590 (insns_match_pattern, insn_d_field, insn_ds_field): Move
9591 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
9592 * ppc-linux-tdep.c: Include ppc64-tdep.h.
9593 Removed above functions.
9594 (ppc_linux_init_abi): Adjust.
9595
9596 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
9597
9598 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
9599
9600 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
9601
9602 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
9603
9604 2013-02-01 Pedro Alves <palves@redhat.com>
9605
9606 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
9607 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
9608
9609 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9610
9611 * elfread.c (elf_symfile_read): Limit separate debug info additions to
9612 files with no separate debug info.
9613 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
9614 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
9615 only for files with no separate debug info.
9616
9617 2013-01-31 Tom Tromey <tromey@redhat.com>
9618
9619 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
9620 change type.
9621 (struct jit_program_space_data): Rename from jit_inferior_data.
9622 Update comments.
9623 (get_jit_program_space_data): Rename from get_jit_inferior_data.
9624 Change return type. Attach data to program space.
9625 (jit_program_space_data_cleanup): Rename from
9626 jit_inferior_data_cleanup; change argument type.
9627 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
9628 change type.
9629 (jit_register_code): Update.
9630 (jit_update_inferior_cache): Remove.
9631 (jit_breakpoint_deleted): Get jit data from the location's program
9632 space.
9633 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
9634 'ps_data', change type.
9635 (jit_inferior_init, jit_breakpoint_re_set_internal)
9636 (jit_event_handler): Update.
9637 (free_objfile_data): Get data from objfile's program space.
9638 (_initialize_jit): Update.
9639
9640 2013-01-31 Tom Tromey <tromey@redhat.com>
9641
9642 PR gdb/13987:
9643 * jit.c (struct jit_inferior_data) <cached_code_address,
9644 jit_breakpoint>: New fields.
9645 (jit_breakpoint_re_set_internal): Fix logging. Only create
9646 breakpoint if cached address has changed.
9647 (jit_update_inferior_cache, jit_breakpoint_deleted): New
9648 functions.
9649 (_initialize_jit): Register breakpoint deleted observer.
9650
9651 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9652
9653 * infrun.c (handle_syscall_event): Remove unused gdbarch.
9654 (save_infcall_suspend_state): Ifdef out unused inf.
9655 (restore_infcall_suspend_state): Ifdef out unused inf.
9656 * jit.c (jit_register_code): Remove unused i, b, inf_data.
9657 (jit_frame_sniffer): Remove unused inf_data.
9658
9659 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9660
9661 * c-exp.y (classify_inner_name): Remove unused type.
9662 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
9663 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
9664 need_escape.
9665 (c_get_string): Remove unused kind.
9666 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
9667
9668 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9669
9670 * charset.c (intermediate_encoding): Remove unused i.
9671 * completer.c (signal_completer): Remove unused i.
9672 * continuations.c (discard_my_continuations_1): Remove unused
9673 continuation_ptr.
9674 * corelow.c (core_close): Remove unuseD name.
9675 (get_core_siginfo): Remove unused pid.
9676 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
9677 i, cps.
9678 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
9679 (loclist_describe_location): Remove unused first.
9680 * event-top.c (command_line_handler): Remove unused got_eof.
9681 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
9682 (resize_section_table): Remove unused old_value.
9683 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
9684 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
9685 * i386-tdep.c (i386_process_record): Remove unused rex.
9686 * infcmd.c (get_return_value): Remove unused uiout.
9687 * jv-lang.c (type_from_class): Remove unused is_array.
9688 * jv-valprint.c (java_val_print): Remove unused i.
9689 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
9690 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
9691 * m2-typeprint.c (m2_print_type): Remove unused code.
9692 * macroexp.c (get_character_constant): Remove unused body_start.
9693 (macro_stringify): Remove unused result.
9694 * objc-lang.c (find_methods): Remove unused gdbarch.
9695 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
9696 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
9697 * stack.c (print_frame_args): Remove unused summary.
9698 * thread.c (thread_apply_command): Remove unused p.
9699 * valarith.c (value_x_unop): Remove unused mangle_ptr.
9700 * valops.c (search_struct_method): Remove unused skip.
9701 * valprint.c (generic_val_print): Remove unused byte_order.
9702 * varobj.c (varobj_update): Remove unused changed.
9703 * cli/cli-cmds.c (complete_command): Remove unused next_item.
9704 (alias_command): Remove unused c.
9705 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
9706 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
9707 format.
9708 (mi_cmd_data_write_memory): Remove unused word_format.
9709 (mi_cmd_data_write_memory_bytes): Remove unused r.
9710 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
9711 p_start, p_end.
9712 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
9713 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
9714 line_width.
9715
9716 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9717
9718 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
9719 * symtab.c (iterate_over_symtabs): Remove unused s.
9720 (find_pc_sect_symtab): Remove unused pspAce.
9721 (find_pc_sect_line): Remove unused alt_symtab.
9722 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
9723 (completion_list_add_name): Remove unused newsize.
9724
9725 2013-01-31 Tom Tromey <tromey@redhat.com>
9726
9727 PR c++/14998:
9728 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
9729 TYPE_CODE_FUNC.
9730
9731 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9732
9733 * target.c (target_read_string): Remove unused origlen.
9734
9735 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9736
9737 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
9738 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
9739 * ax-general.c (ax_print): Remove unused is_float.
9740 * blockframe.c (block_innermost_frame): Remove unused start, end.
9741 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
9742
9743 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9744
9745 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
9746 (svr4_read_so_list): Remove unused lmo.
9747 * solib-target.c (solib_target_relocate_section_addresses): Remove
9748 unused flags.
9749
9750 2013-01-30 Tom Tromey <tromey@redhat.com>
9751
9752 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
9753
9754 2013-01-30 Tom Tromey <tromey@redhat.com>
9755
9756 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
9757 * utils.c (gnu_debuglink_crc32): Remove.
9758 * utils.h (gnu_debuglink_crc32): Don't declare.
9759
9760 2013-01-30 Tom Tromey <tromey@redhat.com>
9761
9762 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
9763 (read_structure_type, read_enumeration_type): Remove cast.
9764
9765 2013-01-30 Tom Tromey <tromey@redhat.com>
9766
9767 * dwarf2read.c (read_namespace_type): Remove cast.
9768 (read_typedef): Likewise.
9769
9770 2013-01-29 Tom Tromey <tromey@redhat.com>
9771
9772 * dwarf2read.c (free_dwo_file): Remove assert.
9773
9774 2013-01-29 Tom Tromey <tromey@redhat.com>
9775
9776 * value.c (deprecated_set_value_modifiable): Remove.
9777 * value.h (deprecated_set_value_modifiable): Remove.
9778
9779 2013-01-28 Doug Evans <dje@google.com>
9780
9781 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
9782 to addresses from dwo files.
9783
9784 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
9785
9786 * valops.c (find_overload_match): Remove unused argument 'lax'.
9787 * value.h: Remove unused argument 'lax' from the declaration of
9788 find_overload_match.
9789 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
9790 to find_overload_match.
9791 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
9792 argument to find_overload_match.
9793
9794 2013-01-25 Tom Tromey <tromey@redhat.com>
9795
9796 * dwarf2read.c (processing_has_namespace_info): Remove.
9797 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
9798 (process_die, read_func_scope, dwarf2_start_symtab)
9799 (new_symbol_full): Update.
9800
9801 2013-01-25 Tom Tromey <tromey@redhat.com>
9802
9803 * cp-namespace.c (cp_set_block_scope): Remove.
9804 * cp-support.h (cp_set_block_scope): Remove.
9805 * dbxread.c: Include block.h.
9806 (cp_set_block_scope): New function.
9807 (process_one_symbol): Update.
9808 * dwarf2read.c (read_func_scope): Use block_set_scope.
9809
9810 2013-01-25 Pedro Alves <palves@redhat.com>
9811
9812 * remote.c (add_current_inferior_and_thread): Tweak comment.
9813
9814 2013-01-25 Tom Tromey <tromey@redhat.com>
9815
9816 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
9817 (cp_add_using_directive): Add 'copy_names' argument.
9818 * cp-support.h (cp_add_using_directive): Update.
9819 (struct using_direct) <import_src, import_dest, alias,
9820 declaration>: Now const.
9821 * dwarf2read.c (read_import_statement): Use obconcat.
9822 Don't copy names passed to cp_add_using_directive.
9823
9824 2013-01-25 Tom Tromey <tromey@redhat.com>
9825
9826 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
9827
9828 2013-01-25 Pedro Alves <palves@redhat.com>
9829
9830 * remote.c (stop_reply_extract_thread): New.
9831 (add_current_inferior_and_thread): New parameter 'wait_status'.
9832 Handle it.
9833 (remote_start_remote): Pass wait status to
9834 add_current_inferior_and_thread.
9835 (extended_remote_run): Update comment.
9836 (extended_remote_create_inferior_1): Pass wait status to
9837 add_current_inferior_and_thread.
9838
9839 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
9840 Ulrich Weigand <uweigand@de.ibm.com>
9841
9842 * valarith.c (value_vector_widen): New function for replicating a
9843 scalar into a vector.
9844 (value_binop): Use value_vector_widen to widen scalar to vector
9845 rather than casting, this better matches gcc C behaviour.
9846 * valops.c (value_casst): Update logic for casting between vector
9847 types, and for casting from scalar to vector, try to match gcc C
9848 behaviour.
9849 * value.h (value_vector_widen): Declare.
9850 * opencl-lang.c (opencl_value_cast): New opencl specific casting
9851 function, handle special case for casting scalar to vector.
9852 (opencl_relop): Use opencl_value_cast.
9853 (evaluate_subexp_opencl): Use opencl_value_cast instead of
9854 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
9855 in order to use opencl_value_cast.
9856
9857 2013-01-25 Yao Qi <yao@codesourcery.com>
9858
9859 * event-loop.c: Include "queue.h".
9860 (gdb_event_p): New typedef.
9861 (DECLARE_QUEUE_P): Use.
9862 (DEFINE_QUEUE_P): Use.
9863 (async_queue_event): Remove.
9864 (gdb_event_xfree): New.
9865 (initialize_event_loop): New.
9866 (process_event): Use QUEUE macros.
9867 (event_queue): Remove.
9868 (gdb_wait_for_event): Caller update.
9869 (check_async_event_handlers): Likewise.
9870 (poll_timers): Likewise.
9871 * event-loop.h (initialize_event_loop): Declare.
9872 * event-loop.c (gdb_event_xfree): New.
9873 * top.c (gdb_init): Call initialize_event_loop.
9874
9875 2013-01-25 Yao Qi <yao@codesourcery.com>
9876
9877 * event-loop.c (async_queue_event): Remove one parameter
9878 'position'. Remove code handling 'position' == TAIL.
9879 (gdb_wait_for_event): Caller update.
9880 (check_async_event_handlers): Caller update.
9881 (poll_timers): Caller update.
9882 * event-loop.h (enum queue_position): Remove.
9883
9884 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
9885
9886 * MAINTAINERS: Update my email.
9887
9888 2013-01-25 Yao Qi <yao@codesourcery.com>
9889
9890 * main.c (print_gdb_help): Remove "--epoch" from the help
9891 message.
9892
9893 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
9894
9895 * symtab.c (skip_prologue_using_sal): Consider a file
9896 change the same as an increased line number
9897
9898 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
9899
9900 * MAINTAINERS (Write After Approval): Add myself to the list.
9901
9902 2013-01-24 Tom Tromey <tromey@redhat.com>
9903
9904 * ada-lang.h (ada_decode_symbol): Make return type const.
9905 * ada-lang.c (ada_decode_symbol): Likewise.
9906
9907 2013-01-23 Doug Evans <dje@google.com>
9908
9909 * linespec.c (find_linespec_symbols): Make static.
9910
9911 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9912
9913 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
9914 type on float conversion for complex type.
9915
9916 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
9917
9918 Add a new class gdb.Architecture which exposes GDB's
9919 internal representation of architecture via GDB Python API.
9920 * Makefile.in: Add entries corresponding to the new file
9921 python/py-arch.c.
9922 * NEWS (Python Scripting): Add entries for the new class
9923 gdb.Architecture and the new method gdb.Frame.architecture.
9924 * python/py-arch.c: Implement gdb.Architecture class.
9925 * python/py-frame.c (frapy_arch): Implement the method
9926 gdb.Frame.architecture().
9927 (frame_object_methods): Add 'architecture' to the method table.
9928 * python/python-internal.h: Add declarations of new utility
9929 functions.
9930 * python/python.c (_initialize_python): Initialize
9931 gdb.Architecture class.
9932
9933 2013-01-23 Doug Evans <dje@google.com>
9934
9935 Work around binutils/15021.
9936 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
9937 type_unit_group out of union s. All uses updated.
9938 (read_index_from_section): Watch for index version 8.
9939 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
9940 an imported symtab.
9941 (write_psymtabs_to_index): Increment version number to 8.
9942
9943 2013-01-22 Pedro Alves <palves@redhat.com>
9944
9945 * annotate.c (breakpoint_changed): Skip if breakpoint is not
9946 user-visible.
9947
9948 2013-01-22 Pedro Alves <palves@redhat.com>
9949
9950 * annotate.c (annotate_breakpoints_changed): Rename to ...
9951 (annotate_breakpoints_invalid): ... this. Make static.
9952 (breakpoint_changed): Adjust.
9953 (_initialize_annotate): Always install the observers. Install a
9954 "breakpoint_created" observer.
9955 * annotate.h (annotate_breakpoints_changed): Delete declaration.
9956 * breakpoint.c (set_breakpoint_condition)
9957 (breakpoint_set_commands, do_map_commands_command)
9958 (init_raw_breakpoint, clear_command, set_ignore_count)
9959 (enable_breakpoint_disp): No longer call
9960 annotate_breakpoints_changed.
9961
9962 2013-01-22 Pedro Alves <palves@redhat.com>
9963
9964 * annotate.c: Include "inferior.h".
9965 (frames_invalid_emitted)
9966 (breakpoints_invalid_emitted): New globals.
9967 (async_background_execution_p): New function.
9968 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
9969 emitting the annotation if it has already been emitted.
9970 (annotate_display_prompt): New function.
9971 * annotate.h (annotate_display_prompt): New declaration.
9972 * event-top.c: Include annotate.h.
9973 (display_gdb_prompt): Call annotate_display_prompt.
9974
9975 2013-01-22 Pedro Alves <palves@redhat.com>
9976
9977 * annotate.c (ignore_count_changed): Delete.
9978 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
9979 (annotate_ignore_count_change): Delete.
9980 (annotate_stopped): Don't emit a delayed breakpoints-changed
9981 annotation.
9982 * annotate.h (annotate_ignore_count_change): Delete.
9983 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
9984 annotate_ignore_count_change.
9985
9986 2013-01-22 Tom Tromey <tromey@redhat.com>
9987
9988 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
9989 require_rvalue for a register location.
9990
9991 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
9992
9993 * breakpoint.c (print_one_breakpoint_location): Add MI
9994 field 'thread-groups' when printing a breakpoint.
9995 (output_thread_groups): New function.
9996
9997 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
9998
9999 * python/lib/gdb/commands/explore.py
10000 (CompoundExplorer.explore_expr): Correct the name of a method
10001 being invoked.
10002 (ExploreTypeCommand.invoke): Add a missing 'return'.
10003
10004 2013-01-21 Tom Tromey <tromey@redhat.com>
10005
10006 * gdb_obstack.h (obconcat): Move declaration here, from...
10007 * symfile.h (obconcat): ... here.
10008 * gdb_obstack.c: New file.
10009 (obconcat): Move from...
10010 * symfile.c (obconcat): ... here.
10011 * Makefile.in (SFILES): Add gdb_obstack.c.
10012 (COMMON_OBS): Add gdb_obstack.o.
10013
10014 2013-01-21 Tom Tromey <tromey@redhat.com>
10015
10016 * symfile.h (obsavestring): Don't declare.
10017 * symfile.c (obsavestring): Remove.
10018 * ada-exp.y: Use obstack_copy0, not obsavestring.
10019 * ada-lang.c: Use obstack_copy0, not obsavestring.
10020 * coffread.c: Use obstack_copy0, not obsavestring.
10021 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10022 * dbxread.c: Use obstack_copy0, not obsavestring.
10023 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10024 * jit.c: Use obstack_copy0, not obsavestring.
10025 * mdebugread.c: Use obstack_copy0, not obsavestring.
10026 * psymtab.c: Use obstack_copy0, not obsavestring.
10027 * stabsread.c: Use obstack_copy0, not obsavestring.
10028 * xcoffread.c: Use obstack_copy0, not obsavestring.
10029
10030 2013-01-21 Tom Tromey <tromey@redhat.com>
10031
10032 * dwarf2read.c (fixup_go_packaging): Save package name
10033 on objfile obstack.
10034 * gdbtypes.c (init_type): Don't copy name.
10035
10036 2013-01-21 Tom Tromey <tromey@redhat.com>
10037
10038 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10039 const.
10040 (struct attribute) <u.str>: Now const.
10041 (struct fnfieldlist) <name>: Now const.
10042 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10043 (partial_die_parent_scope): Make return type const.
10044 (partial_die_full_name, add_partial_symbol): Update.
10045 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10046 'name' const.
10047 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10048 (read_file_scope, read_func_scope, dwarf2_add_field)
10049 (dwarf2_add_member_fn, read_structure_type)
10050 (process_enumeration_scope, read_array_type, read_module_type)
10051 (read_base_type, read_subrange_type): Update.
10052 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10053 (new_symbol_full, guess_full_die_structure_name): Update.
10054 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10055 (dwarf2_name): Return const type.
10056 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10057 const.
10058
10059 2013-01-21 Tom Tromey <tromey@redhat.com>
10060
10061 * gdbtypes.c (init_type): Make 'name' const.
10062 * gdbtypes.h (init_type): Update.
10063
10064 2013-01-21 Tom Tromey <tromey@redhat.com>
10065
10066 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10067 (start_symtab): Make 'name' and 'dirname' const. Use
10068 set_last_source_file.
10069 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10070 (last_source_file): Define. Now static.
10071 (set_last_source_file, get_last_source_file): New functions.
10072 * buildsym.h (last_source_file): Don't declare.
10073 (start_symtab): Update.
10074 (set_last_source_file, get_last_source_file): Declare.
10075 * coffread.c (complete_symtab): Use set_last_source_file.
10076 (coff_end_symtab): Likewise.
10077 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10078 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10079 set_last_source_file.
10080 (process_one_symbol): Use get_last_source_file.
10081 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10082 (psymtab_to_symtab_1): Use get_last_source_file.
10083 * xcoffread.c (process_linenos): Use get_last_source_file.
10084 (complete_symtab): Use set_last_source_file.
10085 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10086 (scan_xcoff_symtab): Use set_last_source_file.
10087
10088 2013-01-21 Tom Tromey <tromey@redhat.com>
10089
10090 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10091 (symbol_set_names): Remove casts. Handle field const-ness.
10092
10093 2013-01-21 Tom Tromey <tromey@redhat.com>
10094
10095 * dwarf2read.c (new_symbol_full): Remove cast.
10096 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10097 * symtab.h (symbol_set_demangled_name): Update.
10098
10099 2013-01-21 Tom Tromey <tromey@redhat.com>
10100
10101 * main.c (captured_main): Call bfd_init.
10102
10103 2013-01-21 Tom Tromey <tromey@redhat.com>
10104
10105 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10106 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10107 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10108 * NEWS: Update.
10109
10110 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10111
10112 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10113
10114 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10115
10116 Fix gdb.fortran/common-block.exp crash in PIE mode.
10117 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10118 LOC_COMMON_BLOCK.
10119 * f-valprint.c (info_common_command_for_block): Expect
10120 LOC_COMMON_BLOCK in gdb_assert.
10121 * symtab.h (struct general_symbol_info): Update comment for the
10122 common_block member.
10123 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10124 (enum address_class): New member LOC_COMMON_BLOCK.
10125
10126 2013-01-18 David Blaikie <dblaikie@gmail.com>
10127
10128 * MAINTAINERS (Write After Approval): Add "David Blaikie".
10129
10130 2013-01-18 Tom Tromey <tromey@redhat.com>
10131
10132 PR c++/14999:
10133 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10134 Call require_rvalue.
10135
10136 2013-01-18 Yao Qi <yao@codesourcery.com>
10137
10138 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10139 (dbx_read_symtab): New declaration.
10140 (dbx_psymtab_to_symtab): Delete.
10141 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10142 Rename parameter PST to SELF. Exchanged two parameters.
10143 (start_psymtab): Caller update.
10144 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10145 (dwarf2_read_symtab): New declaration.
10146 (dwarf2_psymtab_to_symtab): Delete.
10147 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10148 Rename parameter PST to SELF. Exchanged two parameters.
10149 (create_partial_symtab): Caller update.
10150 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10151 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10152 Rename parameter PST to SELF. Exchanged two parameters.
10153 (parse_partial_symbols, new_psymtab): Caller update.
10154 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10155 two parameters.
10156 * psymtab.c (psymtab_to_symtab): Caller update.
10157 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10158 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10159 Rename parameter PST to SELF. Exchanged two parameters.
10160 (xcoff_start_psymtab): Caller update.
10161
10162 2013-01-18 Yao Qi <yao@codesourcery.com>
10163
10164 * infrun.c (proceed): Rename local variable 'oneproc' to
10165 'force_step'.
10166
10167 2013-01-17 Doug Evans <dje@google.com>
10168
10169 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10170 (dw2_build_type_unit_groups): Delete. All uses updated.
10171
10172 * symtab.h (struct symbol_search): Add comment.
10173
10174 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10175
10176 * symtab.c (compare_filenames_for_search): New comment for
10177 HAS_DRIVE_SPEC.
10178
10179 2013-01-17 Tom Tromey <tromey@redhat.com>
10180
10181 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10182
10183 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10184
10185 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10186 initialize it by existing make_cleanup. Call new do_cleanups.
10187
10188 2013-01-17 Tom Tromey <tromey@redhat.com>
10189
10190 * cp-abi.c (cp_abi_completer): New function.
10191 (_initialize_cp_abi): Set completer for "set cp-abi".
10192
10193 2013-01-17 Tom Tromey <tromey@redhat.com>
10194
10195 * mem-break.c: Remove obsolete comment.
10196 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10197
10198 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10199
10200 * jit.c (jit_reader_load_command): Interpret the jit reader name
10201 as an absolute path if it begins with a forward slash.
10202
10203 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10204
10205 PR gdb/14550
10206
10207 * jit.c (finalize_symtab): Ensure that only the global block has a
10208 NULL superblock.
10209
10210 2013-01-17 Pedro Alves <palves@redhat.com>
10211
10212 * acinclude.m4: Include ../config/plugins.m4,
10213 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10214 * Makefile.in (aclocal_m4_deps): Update.
10215 * aclocal.m4: Renegerate.
10216
10217 2013-01-16 Doug Evans <dje@google.com>
10218
10219 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10220
10221 2013-01-16 Pedro Alves <palves@redhat.com>
10222 Tom Tromey <tromey@redhat.com>
10223
10224 PR cli/7221:
10225 * NEWS: Add "catch signal".
10226 * breakpoint.c (base_breakpoint_ops): No longer static.
10227 (bpstat_explains_signal): New function.
10228 (init_catchpoint): No longer static.
10229 (base_breakpoint_explains_signal): New function.
10230 (base_breakpoint_ops): Initialize new field.
10231 * breakpoint.h (enum bpstat_signal_value): New.
10232 (struct breakpoint_ops) <explains_signal>: New field.
10233 (bpstat_explains_signal): Remove macro, declare as function.
10234 (base_breakpoint_ops, init_catchpoint): Declare.
10235 * break-catch-sig.c: New file.
10236 * inferior.h (signal_catch_update): Declare.
10237 * infrun.c (signal_catch): New global.
10238 (handle_syscall_event): Update for change to
10239 bpstat_explains_signal.
10240 (handle_inferior_event): Likewise. Always handle random signals
10241 via bpstats.
10242 (signal_cache_update): Check signal_catch.
10243 (signal_catch_update): New function.
10244 (_initialize_infrun): Initialize signal_catch.
10245 * Makefile.in (SFILES): Add break-catch-sig.c.
10246 (COMMON_OBS): Add break-catch-sig.o.
10247
10248 2013-01-16 Tom Tromey <tromey@redhat.com>
10249
10250 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10251 (print_one_catch_solib, print_one_catch_syscall)
10252 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10253 "catch-type".
10254
10255 2013-01-16 Yao Qi <yao@codesourcery.com>
10256
10257 * printcmd.c (current_display_number): Make it static.
10258
10259 2013-01-16 Yao Qi <yao@codesourcery.com>
10260
10261 * infcmd.c (step_once): Don't check '!single_inst' as it was
10262 checked before.
10263
10264 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10265
10266 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10267
10268 2013-01-14 Tom Tromey <tromey@redhat.com>
10269
10270 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10271 set command.
10272 * command.h (add_setshow_string_noescape_cmd): Update.
10273 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10274 (complete_set_gnutarget): New function.
10275 (_initialize_core): Set the "set gnutarget" completer.
10276
10277 2013-01-14 Tom Tromey <tromey@redhat.com>
10278
10279 PR symtab/14442:
10280 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10281 (c_type_print_modifier): Likewise.
10282 * dwarf2read.c (read_tag_restrict_type): New function.
10283 (read_type_die_1): Handle DW_TAG_restrict_type.
10284 * gdbtypes.c (make_restrict_type): New function.
10285 (recursive_dump_type): Handle TYPE_RESTRICT.
10286 * gdbtypes.h (enum type_flag_values): Renumber.
10287 (enum type_instance_flag_value): Add
10288 TYPE_INSTANCE_FLAG_RESTRICT.
10289 (TYPE_RESTRICT): New macro.
10290 (make_restrict_type): Declare.
10291
10292 2013-01-14 Tom Tromey <tromey@redhat.com>
10293
10294 PR symtab/14931:
10295 * psymtab.c (struct psymtab_state): New.
10296 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10297 functions.
10298 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10299 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10300
10301 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
10302 Pedro Alves <palves@redhat.com>
10303
10304 PR remote/14786
10305
10306 * remote.c (remote_threads_info): Make a copy of the reply from
10307 qfThreadInfo and use that instead of rs->buf.
10308
10309 2013-01-14 Yao Qi <yao@codesourcery.com>
10310
10311 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10312 (dbx_psymtab_to_symtab): Likewise.
10313 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10314 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10315 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10316
10317 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10318
10319 * parse.c (parse_exp_in_context): New variable inner_chain. Call
10320 make_cleanup_restore_current_language. Call set_language. Move
10321 OLD_CHAIN and INNER_CHAIN cleanups.
10322 * utils.c (do_restore_current_language)
10323 (make_cleanup_restore_current_language): New functions.
10324 * utils.h (make_cleanup_restore_current_language): New declaration.
10325
10326 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10327
10328 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
10329 non-existing files.
10330
10331 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
10332 non-existing files if FILENAME is already absolute.
10333
10334 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10335
10336 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
10337 fputs_filtered. Append trailing newline.
10338
10339 2013-01-11 Yao Qi <yao@codesourcery.com>
10340 Stan Shebs <stan@codesourcery.com>
10341
10342 * psymtab.c (init_psymbol_list): Clarify the comment.
10343
10344 2013-01-11 Yao Qi <yao@codesourcery.com>
10345
10346 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
10347 (update_dprintf_command_list): Assert that 'printf_line' is
10348 non-null. Remove condition check.
10349
10350 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10351
10352 Code cleanup.
10353 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
10354 type const char *.
10355 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
10356 const char *.
10357 * tui/tui-source.h (tui_source_is_displayed): Likewise.
10358
10359 2013-01-09 Anthony Green <green@moxielogic.com>
10360
10361 * cp-abi.c (cplus_print_vtable): Don't return value from void
10362 function.
10363 * ada-lang.c (re_set_catch_assert): Ditto.
10364
10365 2013-01-09 Doug Evans <dje@google.com>
10366
10367 * symfile.h (quick_symbol_functions): Delete member
10368 pre_expand_symtabs_matching. All uses removed.
10369 * dwarf2read.c (dw2_lookup_symbol): Implement.
10370 (dw2_do_expand_symtabs_matching): Delete.
10371 (dw2_pre_expand_symtabs_matching): Delete.
10372 (struct dw2_symtab_iterator): New type.
10373 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
10374 (dw2_expand_symtabs_for_function): Rewrite.
10375 (dwarf2_gdb_index_functions): Update.
10376 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
10377 (psym_functions): Update.
10378
10379 2013-01-09 Tom Tromey <tromey@redhat.com>
10380
10381 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
10382 * configure: Rebuild.
10383 * configure.ac: Add somread.o to the build if BFD has SOM
10384 support.
10385 * somread.c: Include som/aout.h, not syms.h.
10386 (som_symtab_read): Use som_external_symbol_dictionary_record.
10387 Unpack records manually.
10388 (_initialize_somread): Declare.
10389
10390 2012-01-08 Mike Frysinger <vapier@gentoo.org>
10391
10392 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
10393 Cast return_address to 64bits.
10394
10395 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
10396
10397 * printcmd.c: Remove define of function output_command.
10398 * tracepoint.c: Remove extern of function output_command.
10399 * valprint.h: (output_command): New extern.
10400
10401 2013-01-07 Tom Tromey <tromey@redhat.com>
10402
10403 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
10404 Remove.
10405 (objc_language_defn): Use c_printchar, c_printstr,
10406 c_emit_char.
10407
10408 2013-01-07 Tom Tromey <tromey@redhat.com>
10409
10410 PR cli/7719:
10411 * NEWS: Update.
10412 * ada-valprint.c (printstr, print_field_values): Remove
10413 "inspect_it" code.
10414 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
10415 code.
10416 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
10417 code.
10418 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
10419 * main.c (captured_main): Remove "epoch" argument.
10420 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
10421 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
10422 * p-valprint.c (pascal_object_print_value_fields): Remove
10423 "inspect_it" code.
10424 * printcmd.c (print_command_1): Remove 'inspect' argument.
10425 (print_command, call_command): Update.
10426 (inspect_command): Remove.
10427 (_initialize_printcmd): Make "inspect" an alias for "print".
10428 * top.c (epoch_interface): Remove.
10429 * top.h (epoch_interface): Remove.
10430 * valprint.c (user_print_options): Update.
10431 (print_converted_chars_to_obstack): Remove "inspect_it" code.
10432 * valprint.h (struct value_print_options) <inspect_it>: Remove
10433 field.
10434
10435 2013-01-04 Tom Tromey <tromey@redhat.com>
10436
10437 * valprint.h (read_string): Add 'extern'.
10438
10439 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10440
10441 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
10442 used to decide whether to define darwin_read_dyld_info or not.
10443
10444 2013-01-03 Pierre Muller <muller@sourceware.org>
10445
10446 * main.c (relocate_gdb_directory): Avoid calling stat function
10447 if DIR is empty.
10448
10449 2013-01-03 Yao Qi <yao@codesourcery.com>
10450
10451 * psymtab.c (fixup_psymbol_section): Update declaration.
10452 (fixup_psymbol_section): Remove code returning value.
10453
10454 2013-01-03 Yao Qi <yao@codesourcery.com>
10455
10456 * symtab.h: Remove some out of date comments.
10457 (enum exception_event_kind): Move it ...
10458 * breakpoint.c: ... here.
10459
10460 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
10461
10462 PR gdb/14405
10463 * darwin-nat.c (darwin_read_dyld_info): Only build if
10464 TASK_DYLD_INFO_COUNT is defined.
10465 (darwin_xfer_partial): Call darwin_read_dyld_info only if
10466 TASK_DYLD_INFO_COUNT is defined.
10467
10468 2013-01-02 Tom Tromey <tromey@redhat.com>
10469
10470 * symfile.h (struct ecoff_debug_hack): Remove.
10471 * objfiles.c: Don't include mdebugread.h.
10472
10473 2013-01-02 Tom Tromey <tromey@redhat.com>
10474
10475 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
10476 * configure.ac: Check for Mach-O support in BFD. Update
10477 CONFIG_OBS.
10478 * configure: Rebuild.
10479
10480 2013-01-02 Tom Tromey <tromey@redhat.com>
10481
10482 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
10483 * configure.ac: Use GDB_AC_CHECK_BFD.
10484 * configure: Rebuild.
10485
10486 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10487
10488 * MAINTAINERS: Update my email.
10489
10490 2013-01-01 Joel Brobecker <brobecker@adacore.com>
10491
10492 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
10493
10494 2013-01-01 Joel Brobecker <brobecker@adacore.com>
10495
10496 * rs6000-nat.c (bss_data_overlap): New function.
10497 (vmap_symtab): Use it to adjust the .bss section's offset.
10498
10499 2013-01-01 Joel Brobecker <brobecker@adacore.com>
10500
10501 Update year range in copyright notice of all files.
10502
10503 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
10504
10505 * top.c (print_gdb_version): Update copyright year.
10506
10507 For older changes see ChangeLog-2012.
10508 \f
10509 Local Variables:
10510 mode: change-log
10511 left-margin: 8
10512 fill-column: 74
10513 version-control: never
10514 coding: utf-8
10515 End:
This page took 0.318132 seconds and 5 git commands to generate.