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