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