Add missing empty line after declarations in "if" block (py-type.c).
[binutils-gdb.git] / gdb / ChangeLog
1 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2
3 * python/py-type.c (convert_field): Add missing empty line
4 after declarations.
5
6 2014-01-14 Doug Evans <dje@google.com>
7
8 * symfile.h (expand_symtabs_matching): Renamed from
9 expand_partial_symbol_names. Update prototype.
10 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11 * symfile.c (expand_symtabs_matching): Renamed from
12 expand_partial_symbol_names. New args file_matcher, kind.
13 Rename arg fun to symbol_matcher.
14 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
16 ada_expand_partial_symbol_name.
17 (ada_make_symbol_completion_list): Update to call
18 expand_symtabs_matching.
19 (ada_add_global_exceptions): Call expand_symtabs_matching.
20 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
21 call map_symbol_filenames.
22 * symtab.c (sources_info): Update to call map_symbol_filenames.
23 (search_symbols): Call expand_symtabs_matching.
24 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
25 (default_make_symbol_completion_list_break_on): Update to call
26 expand_symtabs_matching.
27 (make_source_files_completion_list): Update to call
28 map_symbol_filenames.
29
30 2014-01-14 Doug Evans <dje@google.com>
31
32 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
33 (expand_symtabs_symbol_matcher_ftype): New typedef.
34 (quick_symbol_functions.expand_symtabs_matching): Update to use.
35 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
36 * symfile.c (expand_partial_symbol_names): Update to use
37 expand_symtabs_symbol_matcher_ftype.
38 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
39 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
40 Arg name_matcher renamed to symbol_matcher.
41 * psymtab.c (recursively_search_psymtabs): Update to use
42 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
43 sym_matcher.
44 (expand_symtabs_matching_via_partial): Update to use
45 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
46 Arg name_matcher renamed to symbol_matcher.
47
48 2014-01-14 Doug Evans <dje@google.com>
49
50 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
51 (map_partial_symbol_filenames): Ditto.
52 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
53 (map_partial_symbol_filenames): Ditto.
54 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
55 (map_partial_symbol_filenames): Ditto.
56 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
57 (map_partial_symbol_filenames): Ditto.
58 * symtab.c: Delete #include "psymtab.h".
59
60 2014-01-14 Pedro Alves <palves@redhat.com>
61 Tom Tromey <tromey@redhat.com>
62
63 * infrun.c (use_displaced_stepping): Use find_record_target
64 instead of RECORD_IS_USED.
65 (adjust_pc_after_break): Use record_full_is_used instead of
66 RECORD_IS_USED.
67 * record-btrace.c (record_btrace_open): Call record_preopen
68 instead of checking RECORD_IS_USED.
69 * record-full.c (record_full_shortname)
70 (record_full_core_shortname): New globals.
71 (record_full_is_used): New function.
72 (find_full_open): Call record_preopen instead of checking
73 RECORD_IS_USED.
74 (init_record_full_ops): Set the target's shortname to
75 record_full_shortname.
76 (init_record_full_core_ops): Set the target's shortname to
77 record_full_core_shortname.
78 * record-full.h (record_full_is_used): Declare.
79 * record.c (find_record_target): Make extern.
80 (record_preopen): New function.
81 * record.h (RECORD_IS_USED): Delete macro.
82 (find_record_target, record_preopen): Declare functions.
83
84 2014-01-14 Yao Qi <yao@codesourcery.com>
85
86 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
87 'len''s type to ULONGEST.
88 (core_xfer_shared_libraries_aix): Likewise.
89 * gdbarch.c, gdbarch.h: Regenerated.
90 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
91 Change type of 'len' to ULONGEST.
92 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
93 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
94
95 2014-01-14 Yao Qi <yao@codesourcery.com>
96
97 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
98 type of 'len' to ULONGEST.
99 (linux_xfer_osdata_processgroups): Likewise.
100 (linux_xfer_osdata_threads): Likewise.
101 (linux_xfer_osdata_fds): Likewise.
102 (linux_xfer_osdata_isockets): Likewise.
103 (linux_xfer_osdata_shm): Likewise.
104 (linux_xfer_osdata_sem): Likewise.
105 (linux_xfer_osdata_msg): Likewise.
106 (linux_common_xfer_osdata): Likewise.
107 (struct osdata_type) <getter>: Likewise.
108 * common/linux-osdata.h (linux_common_xfer_osdata): Update
109 the declaration.
110
111 2014-01-14 Yao Qi <yao@codesourcery.com>
112
113 * target.h (target_xfer_partial_ftype): Update.
114 (struct target_ops) <to_xfer_partial>: Change 'len' type to
115 ULONGEST.
116 * aix-thread.c (aix_thread_xfer_partial): Change type of
117 argument 'len' to ULONGEST.
118 * auxv.c (procfs_xfer_auxv): Likewise.
119 (ld_so_xfer_auxv): Likewise.
120 (memory_xfer_auxv): Likewise.
121 * bfd-target.c (target_bfd_xfer_partial): Likewise.
122 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
123 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
124 * corelow.c (core_xfer_partial): Likewise.
125 * ctf.c (ctf_xfer_partial): Likewise.
126 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
127 '%u'.
128 (darwin_read_dyld_info): Likewise.
129 (darwin_xfer_partial): Likewise.
130 * exec.c (section_table_xfer_memory_partial): Likewise.
131 (exec_xfer_partial): Likewise.
132 * exec.h (section_table_xfer_memory_partial): Update
133 declaration.
134 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
135 instead of plongest.
136 (gnu_xfer_partial): Likewise.
137 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
138 (ia64_hpux_xfer_solib_got): Likewise.
139 (ia64_hpux_xfer_partial): Likewise.
140 * ia64-linux-nat.c (ia64_linux_xfer_partial):
141 * inf-ptrace.c (inf_ptrace_xfer_partial):
142 * inf-ttrace.c (inf_ttrace_xfer_partial):
143 * linux-nat.c (linux_xfer_siginfo): Likewise.
144 (linux_nat_xfer_partial): Likewise.
145 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
146 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
147 * monitor.c (monitor_xfer_memory): Likewise.
148 (monitor_xfer_partial): Likewise.
149 * procfs.c (procfs_xfer_partial): Likewise.
150 * record-full.c (record_full_xfer_partial): Likewise.
151 (record_full_core_xfer_partial): Likewise.
152 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
153 instead of plongest.
154 (gdbsim_xfer_partial): Likewise.
155 * remote.c (remote_xfer_partial): Likewise.
156 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
157 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
158 declaration.
159 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
160 (rs6000_xfer_shared_libraries): Likewise.
161 * sol-thread.c (sol_thread_xfer_partial): Likewise.
162 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
163 (sparc_xfer_partial): Likewise.
164 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
165 (spu_xfer_partial): Likewise.
166 * spu-multiarch.c (spu_xfer_partial): Likewise.
167 * target.c (target_read_live_memory): Likewise.
168 (memory_xfer_live_readonly_partial): Likewise.
169 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
170 (target_xfer_partial, default_xfer_partial): Likewise.
171 (current_xfer_partial): Likewise.
172 * tracepoint.c (tfile_xfer_partial): Likewise.
173 * windows-nat.c (windows_xfer_memory): Likewise. Call
174 pulongest instead of plongest.
175 (windows_xfer_partial): Likewise.
176 (windows_xfer_shared_libraries): Likewise.
177
178 2014-01-14 Yao Qi <yao@codesourcery.com>
179
180 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
181 target_xfer_partial_ftype.
182
183 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
184
185 PR python/15464
186 PR python/16113
187 * valops.c (value_struct_elt_bitpos): New function
188 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
189 object to 'None' if the field name is an empty string ("").
190 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
191 attribute to look for a field when 'name' is 'None'.
192 (get_field_type): New function
193
194 2014-01-13 Doug Evans <dje@google.com>
195
196 PR symtab/16426
197 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
198 (try_open_dwop_file): Ditto.
199 * gdb_bfd.c: #include "vec.h".
200 (bfdp): New typedef.
201 (struct gdb_bfd_data): New member included_bfds.
202 (gdb_bfd_unref): Unref all included bfds.
203 (gdb_bfd_record_inclusion): New function.
204 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
205
206 2014-01-13 Tom Tromey <tromey@redhat.com>
207
208 * gdbcore.h (deprecated_core_resize_section_table): Remove.
209
210 2014-01-13 Tom Tromey <tromey@redhat.com>
211
212 * defs.h (use_windows): Remove.
213 * gdb.c (main): Update.
214 * main.c (captured_main, gdb_main): Update.
215 * main.h (struct captured_main_args) <use_windows>: Remove.
216 * top.c (use_windows): Remove.
217
218 2014-01-13 Tom Tromey <tromey@redhat.com>
219
220 * defs.h (deprecated_flush_hook): Remove.
221
222 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
223
224 PR threads/16216
225 * linux-thread-db.c (try_thread_db_load): Add parameter
226 check_auto_load_safe. Move here the file_is_auto_load_safe call.
227 (try_thread_db_load_from_pdir_1): Move it there from here.
228 (try_thread_db_load_from_sdir): Update caller.
229 (try_thread_db_load_from_dir): Move it there from here.
230
231 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
232
233 * regformats/regdat.sh: Always rewrite the register file.
234
235 2014-01-13 Pedro Alves <palves@redhat.com>
236
237 * Makefile.in (CHECK_HEADERS): New variable.
238 (check-headers:): New rule.
239
240 2014-01-13 Tom Tromey <tromey@redhat.com>
241
242 * cli/cli-setshow.c (do_set_command): Update.
243 * defs.h (deprecated_set_hook): Remove.
244 * top.c (deprecated_set_hook): Remove.
245
246 2014-01-13 Pedro Alves <palves@redhat.com>
247
248 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
249 the tracepoint if the PC is a pseudo-register.
250
251 2014-01-13 Tom Tromey <tromey@redhat.com>
252
253 * defs.h (XCALLOC): Remove.
254 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
255 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
256 * dwarf2loc.c (allocate_piece_closure): Likewise.
257 * elfread.c (elf_symfile_segments): Likewise.
258 (elf_symfile_segments): Likewise.
259 * gdbtypes.c (copy_type_recursive): Likewise.
260 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
261 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
262 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
263 XCALLOC.
264 * mt-tdep.c (mt_gdbarch_init): Likewise.
265 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
266 XCALLOC.
267 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
268 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
269 * registry.c (registry_alloc_data): Likewise.
270 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
271 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
272 * serial.c (serial_fdopen_ops): Likewise.
273 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
274 XCALLOC.
275 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
276 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
277 not XCALLOC.
278
279 2014-01-13 Tom Tromey <tromey@redhat.com>
280
281 * defs.h (XMALLOC): Remove.
282 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
283 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
284 * cli-out.c (struct ui_out *): Likewise.
285 * cli/cli-dump.c (add_dump_command): Likewise.
286 (add_dump_command): Likewise.
287 * complaints.c (get_complaints): Likewise.
288 (find_complaint): Likewise.
289 * dwarf2-frame.c (execute_cfa_program): Likewise.
290 * dwarf2read.c (abbrev_table_read_table): Likewise.
291 * gdbarch.sh: Likewise.
292 * gdbarch.c: Rebuild.
293 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
294 * interps.c (interp_new): Likewise.
295 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
296 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
297 * mi/mi-console.c (mi_console_file_new): Likewise.
298 * mi/mi-interp.c (mi_interpreter_init): Likewise.
299 * mi/mi-out.c (mi_out_new): Likewise.
300 * mi/mi-parse.c (mi_parse): Likewise.
301 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
302 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
303 * observer.c (xalloc_observer_list_node): Likewise.
304 * regcache.c (regcache_xmalloc_1): Likewise.
305 * reggroups.c (reggroup_new): Likewise.
306 (_initialize_reggroup): Likewise.
307 * registry.c (register_data_with_cleanup): Likewise.
308 * remote.c (remote_notif_stop_alloc_reply): Likewise.
309 * ser-base.c (serial_ttystate): Likewise.
310 * ser-mingw.c (make_pipe_state): Likewise.
311 * ser-pipe.c (pipe_open): Likewise.
312 * serial.c (serial_open): Likewise.
313 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
314 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
315 (tui_alloc_win_info): Likewise.
316 (tui_add_content_elements): Likewise.
317 * tui/tui-file.c (tui_file_new): Likewise.
318 * tui/tui-out.c (tui_out_new): Likewise.
319 * ui-file.c (mem_file_new): Likewise.
320 * ui-out.c (push_level): Likewise.
321 (make_cleanup_ui_out_end): Likewise.
322 (append_header_to_list): Likewise.
323 (ui_out_new): Likewise.
324 * user-regs.c (user_reg_add_builtin): Likewise.
325
326 2014-01-13 Tom Tromey <tromey@redhat.com>
327
328 * defs.h (XZALLOC): Remove.
329 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
330 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
331 (get_ada_tasks_inferior_data): Likewise.
332 * auto-load.c (get_auto_load_pspace_data): Likewise.
333 * auxv.c (get_auxv_inferior_data): Likewise.
334 * bfd-target.c (target_bfd_reopen): Likewise.
335 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
336 (deprecated_insert_raw_breakpoint): Likewise.
337 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
338 * corelow.c (core_open): Likewise.
339 * darwin-nat.c (darwin_check_new_threads): Likewise.
340 (darwin_attach_pid): Likewise.
341 * dummy-frame.c (dummy_frame_push): Likewise.
342 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
343 * dwarf2loc.c (allocate_piece_closure): Likewise.
344 * elfread.c (elf_symfile_segments): Likewise.
345 * eval.c (ptrmath_type_p): Likewise.
346 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
347 * gdbtypes.c (alloc_type_arch): Likewise.
348 (alloc_type_instance): Likewise.
349 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
350 * inf-child.c (inf_child_can_use_agent): Likewise.
351 * inflow.c (get_inflow_inferior_data): Likewise.
352 * infrun.c (save_infcall_suspend_state): Likewise.
353 * jit.c (jit_reader_load): Likewise.
354 (get_jit_objfile_data): Likewise.
355 (get_jit_program_space_data): Likewise.
356 (jit_object_open_impl): Likewise.
357 (jit_symtab_open_impl): Likewise.
358 (jit_block_open_impl): Likewise.
359 (jit_frame_sniffer): Likewise.
360 * linux-fork.c (add_fork): Likewise.
361 * maint.c (make_command_stats_cleanup): Likewise.
362 * objfiles.c (get_objfile_pspace_data): Likewise.
363 * opencl-lang.c (struct lval_closure): Likewise.
364 * osdata.c (osdata_start_osdata): Likewise.
365 * progspace.c (new_address_space): Likewise.
366 (add_program_space): Likewise.
367 * remote-sim.c (get_sim_inferior_data): Likewise.
368 * sh-tdep.c (sh_gdbarch_init): Likewise.
369 * skip.c (Ignore): Likewise.
370 (skip_delete_command): Likewise.
371 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
372 (library_list_start_library): Likewise.
373 (solib_aix_current_sos): Likewise.
374 * solib-darwin.c (get_darwin_info): Likewise.
375 (darwin_current_sos): Likewise.
376 * solib-dsbt.c (get_dsbt_info): Likewise.
377 * solib-ia64-hpux.c (new_so_list): Likewise.
378 (ia64_hpux_get_solib_linkage_addr): Likewise.
379 * solib-spu.c (append_ocl_sos): Likewise.
380 (spu_current_sos): Likewise.
381 * solib-svr4.c (get_svr4_info): Likewise.
382 (svr4_keep_data_in_core): Likewise.
383 (library_list_start_library): Likewise.
384 (svr4_default_sos): Likewise.
385 (svr4_read_so_list): Likewise.
386 * solib-target.c (library_list_start_library): Likewise.
387 (solib_target_current_sos): Likewise.
388 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
389 * symfile-debug.c (install_symfile_debug_logging): Likewise.
390 * symfile.c (default_symfile_segments): Likewise.
391 * target-descriptions.c (tdesc_data_init): Likewise.
392 (tdesc_create_reg): Likewise.
393 (struct tdesc_type *): Likewise.
394 (tdesc_create_vector): Likewise.
395 (tdesc_set_struct_size): Likewise.
396 (struct tdesc_type *): Likewise.
397 (tdesc_free_feature): Likewise.
398 (tdesc_create_feature): Likewise.
399 * windows-nat.c (windows_add_thread): Likewise.
400 (windows_make_so): Likewise.
401 * xml-support.c (gdb_xml_body_text): Likewise.
402 (gdb_xml_create_parser_and_cleanup): Likewise.
403 (xml_process_xincludes): Likewise.
404 * xml-syscall.c (allocate_syscalls_info): Likewise.
405 (syscall_create_syscall_desc): Likewise.
406
407 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
408
409 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
410 function, with code from i386_stap_parse_special_token.
411 (i386_stap_parse_special_token_three_arg_disp): Likewise.
412 (i386_stap_parse_special_token): Move code to the two functions
413 above; simplify it.
414
415 2014-01-09 Pedro Alves <palves@redhat.com>
416 Hui Zhu <hui@codesourcery.com>
417
418 PR gdb/16101
419 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
420 bp_err_string. Don't mark the location shlib_disabled if the
421 error thrown wasn't a generic or memory error. Catch errors
422 thrown while inserting breakpoints in overlayed code. Output
423 error message of software breakpoints.
424 * remote.c (remote_insert_breakpoint): If this breakpoint has
425 target-side commands but this stub doesn't support Z0 packets,
426 throw NOT_SUPPORTED_ERROR error.
427 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
428 * target.h (target_insert_breakpoint): Extend comment.
429 (target_insert_hw_breakpoint): Add comment.
430
431 2014-01-08 Pedro Alves <palves@redhat.com>
432
433 * remote.c (remote_add_thread): Add threads silently if starting
434 up.
435 (remote_notice_new_inferior): If in all-stop, and starting up,
436 don't call notice_new_inferior.
437 (get_current_thread): New function, factored out from ...
438 (add_current_inferior_and_thread): ... this. Adjust.
439 (remote_start_remote) <all-stop>: Fetch the thread list. If we
440 found any thread, then select the remote's current thread as GDB's
441 current thread too.
442
443 2014-01-08 Joel Brobecker <brobecker@adacore.com>
444
445 * NEWS: Create a new section for the next release branch.
446 Rename the section of the current branch, now that it has
447 been cut.
448
449 2014-01-08 Joel Brobecker <brobecker@adacore.com>
450
451 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
452 * version.in: Bump version to 7.7.50.DATE-cvs.
453
454 2014-01-08 Yao Qi <yao@codesourcery.com>
455
456 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
457 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
458 (spu_xfer_partial): Cast 'buf' to 'const char *'.
459
460 2014-01-08 Yao Qi <yao@codesourcery.com>
461
462 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
463 return value of bfd_get_filename to symbol_file_add_from_bfd.
464
465 2014-01-08 Pierre Muller <muller@sourceware.org>
466
467 Fix PR16201.
468 * coff-pe-read.c (struct read_pe_section_data): Add index field.
469 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
470 to prim_record_mininal_symbol_and_info.
471 (add_pe_forwarded_sym): Use known section number of forwarded symbol
472 in call to prim_record_minimal_symbol_and_info.
473 (read_pe_exported_syms): Set index field of section_data.
474
475 2014-01-07 Andrew Pinski <apinski@cavium.com>
476
477 * features/aarch64-core.xml (cpsr): Change to be 64bit.
478 * features/aarch64.c: Regenerate.
479
480 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
481
482 * target.c (return_null): Define.
483 (update_current_target): Use it instead of return_zero for
484 functions that return a pointer.
485
486 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
487
488 * source.c (add_path): Fix check for duplicated paths in the previously
489 included paths.
490
491 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
492
493 * ada-lang.c: Remove duplicated include statements.
494 * alphabsd-nat.c: Ditto.
495 * amd64-darwin-tdep.c: Ditto.
496 * amd64fbsd-nat.c: Ditto.
497 * auto-load.c: Ditto.
498 * ax-gdb.c: Ditto.
499 * breakpoint.c: Ditto.
500 * dbxread.c: Ditto.
501 * fork-child.c: Ditto.
502 * gdb_usleep.c: Ditto.
503 * i386-darwin-tdep.c: Ditto.
504 * i386fbsd-nat.c: Ditto.
505 * infcmd.c: Ditto.
506 * inferior.c: Ditto.
507 * jv-lang.c: Ditto.
508 * linux-nat.c: Ditto.
509 * linux-tdep.c: Ditto.
510 * m68kbsd-nat.c: Ditto.
511 * m68klinux-nat.c: Ditto.
512 * microblaze-tdep.c: Ditto.
513 * mips-linux-tdep.c: Ditto.
514 * mn10300-tdep.c: Ditto.
515 * nto-tdep.c: Ditto.
516 * opencl-lang.c: Ditto.
517 * osdata.c: Ditto.
518 * printcmd.c: Ditto.
519 * regcache.c: Ditto.
520 * remote-m32r-sdi.c: Ditto.
521 * remote.c: Ditto.
522 * symfile.c: Ditto.
523 * symtab.c: Ditto.
524 * tilegx-linux-nat.c: Ditto.
525 * tilegx-tdep.c: Ditto.
526 * tracepoint.c: Ditto.
527 * valops.c: Ditto.
528 * vaxbsd-nat.c: Ditto.
529 * windows-nat.c: Ditto.
530 * xtensa-tdep.c: Ditto.
531
532 2014-01-07 Yao Qi <yao@codesourcery.com>
533
534 * spu-linux-nat.c (_initialize_spu_nat): Declare.
535
536 2014-01-07 Yao Qi <yao@codesourcery.com>
537 Joel Brobecker <brobecker@adacore.com>
538
539 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
540 (pdc_write_regs): Likewise.
541 (fetch_regs_kernel_thread): Likewise.
542 (store_regs_kernel_thread): Likewise.
543
544 2014-01-07 Joel Brobecker <brobecker@adacore.com>
545
546 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
547 tagged type objects to their actual type.
548
549 2014-01-07 Joel Brobecker <brobecker@adacore.com>
550
551 * ada-valprint.c (print_field_values): Add "language" parameter.
552 Update calls to print_field_values and print_variant_part.
553 Pass new parameter "language" in call to val_print instead
554 of "current_language". Replace call to ada_val_print by call
555 to val_print.
556 (print_variant_part): Add "language" parameter.
557 (ada_val_print_struct_union): Update call to print_field_values.
558
559 2014-01-07 Joel Brobecker <brobecker@adacore.com>
560
561 * ada-valprint.c (ui_memcpy): Delete.
562 (ada_print_floating): Update documentation. Add empty line
563 between between function documentation and implementation.
564 Delete variable "buffer". Use ui_file_xstrdup in place of
565 ui_file_put. Minor adjustments following this change.
566
567 2014-01-07 Joel Brobecker <brobecker@adacore.com>
568
569 * ada-valprint.c (ada_val_print_string): New function,
570 extracted from ada_val_print_array.
571 (ada_val_print_array): Replace extracted code by call
572 to ada_val_print_string followed by a return. Move
573 "else" branch to the function's top block.
574
575 2014-01-07 Joel Brobecker <brobecker@adacore.com>
576
577 * ada-valprint.c (ada_val_print_array): Move implementation
578 down. Rename parameter "offset" and "val" into "offset_aligned"
579 and "original_value" respectively. Add parameter "offset".
580
581 2014-01-07 Joel Brobecker <brobecker@adacore.com>
582
583 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
584 re-organizing the code. Change the "???" message printed
585 when target type is a TYPE_CODE_UNDEF into
586 "<ref to undefined type>".
587
588 2014-01-07 Joel Brobecker <brobecker@adacore.com>
589
590 * ada-valprint.c (print_record): Delete, implementation inlined...
591 (ada_val_print_struct_union): ... here. Remove call to
592 ada_check_typedef in inlined implementation.
593
594 2014-01-07 Joel Brobecker <brobecker@adacore.com>
595
596 * ada-valprint.c (ada_val_print_gnat_array): New function,
597 extracted from ada_val_print_1;
598 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
599 (ada_val_print_flt, ada_val_print_struct_union)
600 (ada_val_print_ref): Likewise.
601 (ada_val_print_1): Delete variables i and elttype.
602 Replace extracted-out code by call to corresponding
603 new functions.
604
605 2014-01-07 Joel Brobecker <brobecker@adacore.com>
606
607 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
608
609 2014-01-07 Joel Brobecker <brobecker@adacore.com>
610
611 * ada-valprint.c (ada_val_print_1): Replace calls to
612 ada_val_print_1 by calls to val_print.
613
614 2014-01-07 Joel Brobecker <brobecker@adacore.com>
615
616 * ada-valprint.c (ada_val_print_1): Add parameter "language".
617 Update calls to self accordingly. Replace calls to c_val_print
618 by calls to val_print.
619
620 2014-01-07 Joel Brobecker <brobecker@adacore.com>
621
622 * ada-valprint.c (print_record): Delete declaration.
623 (adjust_type_signedness, ada_val_print_1): Likewise.
624 (ada_val_print): Move function implementation down.
625 (print_variant_part, print_field_values, print_record):
626 Move function implementation up.
627
628 2014-01-07 Joel Brobecker <brobecker@adacore.com>
629
630 * python/py-type.c (typy_get_name): New function.
631 (type_object_getset): Add entry for attribute "name".
632 * NEWS: Add entry mentioning this new attribute.
633
634 2014-01-07 Yao Qi <yao@codesourcery.com>
635
636 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
637 statement.
638
639 2014-01-07 Yao Qi <yao@codesourcery.com>
640
641 * gnu-nat.c (info_port_rights): Add qualifier const to
642 argument args.
643
644 2014-01-07 Yao Qi <yao@codesourcery.com>
645
646 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
647
648 2014-01-07 Yao Qi <yao@codesourcery.com>
649
650 * gnu-nat.c (make_inf) Update declaration.
651 (make_inf): Make it static.
652 (inf_set_traced): Likewise.
653 (inf_port_to_thread, inf_task_died_status): Likewise.
654
655 2014-01-07 Yao Qi <yao@codesourcery.com>
656
657 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
658
659 2014-01-07 Yao Qi <yao@codesourcery.com>
660
661 * gnu-nat.c (_initialize_gnu_nat): Declare.
662
663 2014-01-07 Yao Qi <yao@codesourcery.com>
664
665 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
666 'enum bfd_endian'.
667 (struct gdbarch_info) <byte_order>: Change type to
668 'enum bfd_endian'.
669 <byte_order_for_code>: Likewise.
670 * gdbarch.c, gdbarch.h: Regenerated.
671
672 2014-01-06 Sasha Smundak <asmundak@google.com>
673
674 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
675
676 2014-01-06 Tom Tromey <tromey@redhat.com>
677
678 * doublest.c (convert_doublest_to_floatformat): Use const, not
679 CONST.
680 * somread.c (som_symtab_read): Likewise.
681
682 2014-01-07 Hui Zhu <hui@codesourcery.com>
683
684 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
685 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
686 (gdb_bfd_fopen): Ditto.
687 (gdb_bfd_openr): Ditto.
688 (gdb_bfd_openw): Ditto.
689 (gdb_bfd_openr_iovec): Ditto.
690 (gdb_bfd_fdopenr): Ditto.
691 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
692 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
693 with xstrdup.
694 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
695 with xstrdup.
696 * symfile-mem.c (symbol_file_add_from_memory): Removed
697 gdb_bfd_stash_filename.
698
699 2014-01-03 Doug Evans <dje@google.com>
700
701 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
702 output.
703
704 2014-01-01 Joel Brobecker <brobecker@adacore.com>
705
706 Update year range in copyright notice of all files.
707
708 2014-01-01 Joel Brobecker <brobecker@adacore.com>
709
710 * top.c (print_gdb_version): Set copyright year to 2014.
711
712 2014-01-01 Joel Brobecker <brobecker@adacore.com>
713
714 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
715
716 For older changes see ChangeLog-2013.
717 \f
718 Local Variables:
719 mode: change-log
720 left-margin: 8
721 fill-column: 74
722 version-control: never
723 coding: utf-8
724 End: