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