remove deprecated_set_hook
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-01-13 Tom Tromey <tromey@redhat.com>
2
3 * cli/cli-setshow.c (do_set_command): Update.
4 * defs.h (deprecated_set_hook): Remove.
5 * top.c (deprecated_set_hook): Remove.
6
7 2014-01-13 Pedro Alves <palves@redhat.com>
8
9 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10 the tracepoint if the PC is a pseudo-register.
11
12 2014-01-13 Tom Tromey <tromey@redhat.com>
13
14 * defs.h (XCALLOC): Remove.
15 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
17 * dwarf2loc.c (allocate_piece_closure): Likewise.
18 * elfread.c (elf_symfile_segments): Likewise.
19 (elf_symfile_segments): Likewise.
20 * gdbtypes.c (copy_type_recursive): Likewise.
21 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
22 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
23 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
24 XCALLOC.
25 * mt-tdep.c (mt_gdbarch_init): Likewise.
26 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
27 XCALLOC.
28 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
29 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
30 * registry.c (registry_alloc_data): Likewise.
31 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
32 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
33 * serial.c (serial_fdopen_ops): Likewise.
34 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
35 XCALLOC.
36 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
37 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
38 not XCALLOC.
39
40 2014-01-13 Tom Tromey <tromey@redhat.com>
41
42 * defs.h (XMALLOC): Remove.
43 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
44 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
45 * cli-out.c (struct ui_out *): Likewise.
46 * cli/cli-dump.c (add_dump_command): Likewise.
47 (add_dump_command): Likewise.
48 * complaints.c (get_complaints): Likewise.
49 (find_complaint): Likewise.
50 * dwarf2-frame.c (execute_cfa_program): Likewise.
51 * dwarf2read.c (abbrev_table_read_table): Likewise.
52 * gdbarch.sh: Likewise.
53 * gdbarch.c: Rebuild.
54 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
55 * interps.c (interp_new): Likewise.
56 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
57 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
58 * mi/mi-console.c (mi_console_file_new): Likewise.
59 * mi/mi-interp.c (mi_interpreter_init): Likewise.
60 * mi/mi-out.c (mi_out_new): Likewise.
61 * mi/mi-parse.c (mi_parse): Likewise.
62 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
63 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
64 * observer.c (xalloc_observer_list_node): Likewise.
65 * regcache.c (regcache_xmalloc_1): Likewise.
66 * reggroups.c (reggroup_new): Likewise.
67 (_initialize_reggroup): Likewise.
68 * registry.c (register_data_with_cleanup): Likewise.
69 * remote.c (remote_notif_stop_alloc_reply): Likewise.
70 * ser-base.c (serial_ttystate): Likewise.
71 * ser-mingw.c (make_pipe_state): Likewise.
72 * ser-pipe.c (pipe_open): Likewise.
73 * serial.c (serial_open): Likewise.
74 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
75 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
76 (tui_alloc_win_info): Likewise.
77 (tui_add_content_elements): Likewise.
78 * tui/tui-file.c (tui_file_new): Likewise.
79 * tui/tui-out.c (tui_out_new): Likewise.
80 * ui-file.c (mem_file_new): Likewise.
81 * ui-out.c (push_level): Likewise.
82 (make_cleanup_ui_out_end): Likewise.
83 (append_header_to_list): Likewise.
84 (ui_out_new): Likewise.
85 * user-regs.c (user_reg_add_builtin): Likewise.
86
87 2014-01-13 Tom Tromey <tromey@redhat.com>
88
89 * defs.h (XZALLOC): Remove.
90 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
91 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
92 (get_ada_tasks_inferior_data): Likewise.
93 * auto-load.c (get_auto_load_pspace_data): Likewise.
94 * auxv.c (get_auxv_inferior_data): Likewise.
95 * bfd-target.c (target_bfd_reopen): Likewise.
96 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
97 (deprecated_insert_raw_breakpoint): Likewise.
98 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
99 * corelow.c (core_open): Likewise.
100 * darwin-nat.c (darwin_check_new_threads): Likewise.
101 (darwin_attach_pid): Likewise.
102 * dummy-frame.c (dummy_frame_push): Likewise.
103 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
104 * dwarf2loc.c (allocate_piece_closure): Likewise.
105 * elfread.c (elf_symfile_segments): Likewise.
106 * eval.c (ptrmath_type_p): Likewise.
107 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
108 * gdbtypes.c (alloc_type_arch): Likewise.
109 (alloc_type_instance): Likewise.
110 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
111 * inf-child.c (inf_child_can_use_agent): Likewise.
112 * inflow.c (get_inflow_inferior_data): Likewise.
113 * infrun.c (save_infcall_suspend_state): Likewise.
114 * jit.c (jit_reader_load): Likewise.
115 (get_jit_objfile_data): Likewise.
116 (get_jit_program_space_data): Likewise.
117 (jit_object_open_impl): Likewise.
118 (jit_symtab_open_impl): Likewise.
119 (jit_block_open_impl): Likewise.
120 (jit_frame_sniffer): Likewise.
121 * linux-fork.c (add_fork): Likewise.
122 * maint.c (make_command_stats_cleanup): Likewise.
123 * objfiles.c (get_objfile_pspace_data): Likewise.
124 * opencl-lang.c (struct lval_closure): Likewise.
125 * osdata.c (osdata_start_osdata): Likewise.
126 * progspace.c (new_address_space): Likewise.
127 (add_program_space): Likewise.
128 * remote-sim.c (get_sim_inferior_data): Likewise.
129 * sh-tdep.c (sh_gdbarch_init): Likewise.
130 * skip.c (Ignore): Likewise.
131 (skip_delete_command): Likewise.
132 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
133 (library_list_start_library): Likewise.
134 (solib_aix_current_sos): Likewise.
135 * solib-darwin.c (get_darwin_info): Likewise.
136 (darwin_current_sos): Likewise.
137 * solib-dsbt.c (get_dsbt_info): Likewise.
138 * solib-ia64-hpux.c (new_so_list): Likewise.
139 (ia64_hpux_get_solib_linkage_addr): Likewise.
140 * solib-spu.c (append_ocl_sos): Likewise.
141 (spu_current_sos): Likewise.
142 * solib-svr4.c (get_svr4_info): Likewise.
143 (svr4_keep_data_in_core): Likewise.
144 (library_list_start_library): Likewise.
145 (svr4_default_sos): Likewise.
146 (svr4_read_so_list): Likewise.
147 * solib-target.c (library_list_start_library): Likewise.
148 (solib_target_current_sos): Likewise.
149 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
150 * symfile-debug.c (install_symfile_debug_logging): Likewise.
151 * symfile.c (default_symfile_segments): Likewise.
152 * target-descriptions.c (tdesc_data_init): Likewise.
153 (tdesc_create_reg): Likewise.
154 (struct tdesc_type *): Likewise.
155 (tdesc_create_vector): Likewise.
156 (tdesc_set_struct_size): Likewise.
157 (struct tdesc_type *): Likewise.
158 (tdesc_free_feature): Likewise.
159 (tdesc_create_feature): Likewise.
160 * windows-nat.c (windows_add_thread): Likewise.
161 (windows_make_so): Likewise.
162 * xml-support.c (gdb_xml_body_text): Likewise.
163 (gdb_xml_create_parser_and_cleanup): Likewise.
164 (xml_process_xincludes): Likewise.
165 * xml-syscall.c (allocate_syscalls_info): Likewise.
166 (syscall_create_syscall_desc): Likewise.
167
168 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
169
170 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
171 function, with code from i386_stap_parse_special_token.
172 (i386_stap_parse_special_token_three_arg_disp): Likewise.
173 (i386_stap_parse_special_token): Move code to the two functions
174 above; simplify it.
175
176 2014-01-09 Pedro Alves <palves@redhat.com>
177 Hui Zhu <hui@codesourcery.com>
178
179 PR gdb/16101
180 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
181 bp_err_string. Don't mark the location shlib_disabled if the
182 error thrown wasn't a generic or memory error. Catch errors
183 thrown while inserting breakpoints in overlayed code. Output
184 error message of software breakpoints.
185 * remote.c (remote_insert_breakpoint): If this breakpoint has
186 target-side commands but this stub doesn't support Z0 packets,
187 throw NOT_SUPPORTED_ERROR error.
188 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
189 * target.h (target_insert_breakpoint): Extend comment.
190 (target_insert_hw_breakpoint): Add comment.
191
192 2014-01-08 Pedro Alves <palves@redhat.com>
193
194 * remote.c (remote_add_thread): Add threads silently if starting
195 up.
196 (remote_notice_new_inferior): If in all-stop, and starting up,
197 don't call notice_new_inferior.
198 (get_current_thread): New function, factored out from ...
199 (add_current_inferior_and_thread): ... this. Adjust.
200 (remote_start_remote) <all-stop>: Fetch the thread list. If we
201 found any thread, then select the remote's current thread as GDB's
202 current thread too.
203
204 2014-01-08 Joel Brobecker <brobecker@adacore.com>
205
206 * NEWS: Create a new section for the next release branch.
207 Rename the section of the current branch, now that it has
208 been cut.
209
210 2014-01-08 Joel Brobecker <brobecker@adacore.com>
211
212 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
213 * version.in: Bump version to 7.7.50.DATE-cvs.
214
215 2014-01-08 Yao Qi <yao@codesourcery.com>
216
217 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
218 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
219 (spu_xfer_partial): Cast 'buf' to 'const char *'.
220
221 2014-01-08 Yao Qi <yao@codesourcery.com>
222
223 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
224 return value of bfd_get_filename to symbol_file_add_from_bfd.
225
226 2014-01-08 Pierre Muller <muller@sourceware.org>
227
228 Fix PR16201.
229 * coff-pe-read.c (struct read_pe_section_data): Add index field.
230 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
231 to prim_record_mininal_symbol_and_info.
232 (add_pe_forwarded_sym): Use known section number of forwarded symbol
233 in call to prim_record_minimal_symbol_and_info.
234 (read_pe_exported_syms): Set index field of section_data.
235
236 2014-01-07 Andrew Pinski <apinski@cavium.com>
237
238 * features/aarch64-core.xml (cpsr): Change to be 64bit.
239 * features/aarch64.c: Regenerate.
240
241 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
242
243 * target.c (return_null): Define.
244 (update_current_target): Use it instead of return_zero for
245 functions that return a pointer.
246
247 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
248
249 * source.c (add_path): Fix check for duplicated paths in the previously
250 included paths.
251
252 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
253
254 * ada-lang.c: Remove duplicated include statements.
255 * alphabsd-nat.c: Ditto.
256 * amd64-darwin-tdep.c: Ditto.
257 * amd64fbsd-nat.c: Ditto.
258 * auto-load.c: Ditto.
259 * ax-gdb.c: Ditto.
260 * breakpoint.c: Ditto.
261 * dbxread.c: Ditto.
262 * fork-child.c: Ditto.
263 * gdb_usleep.c: Ditto.
264 * i386-darwin-tdep.c: Ditto.
265 * i386fbsd-nat.c: Ditto.
266 * infcmd.c: Ditto.
267 * inferior.c: Ditto.
268 * jv-lang.c: Ditto.
269 * linux-nat.c: Ditto.
270 * linux-tdep.c: Ditto.
271 * m68kbsd-nat.c: Ditto.
272 * m68klinux-nat.c: Ditto.
273 * microblaze-tdep.c: Ditto.
274 * mips-linux-tdep.c: Ditto.
275 * mn10300-tdep.c: Ditto.
276 * nto-tdep.c: Ditto.
277 * opencl-lang.c: Ditto.
278 * osdata.c: Ditto.
279 * printcmd.c: Ditto.
280 * regcache.c: Ditto.
281 * remote-m32r-sdi.c: Ditto.
282 * remote.c: Ditto.
283 * symfile.c: Ditto.
284 * symtab.c: Ditto.
285 * tilegx-linux-nat.c: Ditto.
286 * tilegx-tdep.c: Ditto.
287 * tracepoint.c: Ditto.
288 * valops.c: Ditto.
289 * vaxbsd-nat.c: Ditto.
290 * windows-nat.c: Ditto.
291 * xtensa-tdep.c: Ditto.
292
293 2014-01-07 Yao Qi <yao@codesourcery.com>
294
295 * spu-linux-nat.c (_initialize_spu_nat): Declare.
296
297 2014-01-07 Yao Qi <yao@codesourcery.com>
298 Joel Brobecker <brobecker@adacore.com>
299
300 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
301 (pdc_write_regs): Likewise.
302 (fetch_regs_kernel_thread): Likewise.
303 (store_regs_kernel_thread): Likewise.
304
305 2014-01-07 Joel Brobecker <brobecker@adacore.com>
306
307 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
308 tagged type objects to their actual type.
309
310 2014-01-07 Joel Brobecker <brobecker@adacore.com>
311
312 * ada-valprint.c (print_field_values): Add "language" parameter.
313 Update calls to print_field_values and print_variant_part.
314 Pass new parameter "language" in call to val_print instead
315 of "current_language". Replace call to ada_val_print by call
316 to val_print.
317 (print_variant_part): Add "language" parameter.
318 (ada_val_print_struct_union): Update call to print_field_values.
319
320 2014-01-07 Joel Brobecker <brobecker@adacore.com>
321
322 * ada-valprint.c (ui_memcpy): Delete.
323 (ada_print_floating): Update documentation. Add empty line
324 between between function documentation and implementation.
325 Delete variable "buffer". Use ui_file_xstrdup in place of
326 ui_file_put. Minor adjustments following this change.
327
328 2014-01-07 Joel Brobecker <brobecker@adacore.com>
329
330 * ada-valprint.c (ada_val_print_string): New function,
331 extracted from ada_val_print_array.
332 (ada_val_print_array): Replace extracted code by call
333 to ada_val_print_string followed by a return. Move
334 "else" branch to the function's top block.
335
336 2014-01-07 Joel Brobecker <brobecker@adacore.com>
337
338 * ada-valprint.c (ada_val_print_array): Move implementation
339 down. Rename parameter "offset" and "val" into "offset_aligned"
340 and "original_value" respectively. Add parameter "offset".
341
342 2014-01-07 Joel Brobecker <brobecker@adacore.com>
343
344 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
345 re-organizing the code. Change the "???" message printed
346 when target type is a TYPE_CODE_UNDEF into
347 "<ref to undefined type>".
348
349 2014-01-07 Joel Brobecker <brobecker@adacore.com>
350
351 * ada-valprint.c (print_record): Delete, implementation inlined...
352 (ada_val_print_struct_union): ... here. Remove call to
353 ada_check_typedef in inlined implementation.
354
355 2014-01-07 Joel Brobecker <brobecker@adacore.com>
356
357 * ada-valprint.c (ada_val_print_gnat_array): New function,
358 extracted from ada_val_print_1;
359 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
360 (ada_val_print_flt, ada_val_print_struct_union)
361 (ada_val_print_ref): Likewise.
362 (ada_val_print_1): Delete variables i and elttype.
363 Replace extracted-out code by call to corresponding
364 new functions.
365
366 2014-01-07 Joel Brobecker <brobecker@adacore.com>
367
368 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
369
370 2014-01-07 Joel Brobecker <brobecker@adacore.com>
371
372 * ada-valprint.c (ada_val_print_1): Replace calls to
373 ada_val_print_1 by calls to val_print.
374
375 2014-01-07 Joel Brobecker <brobecker@adacore.com>
376
377 * ada-valprint.c (ada_val_print_1): Add parameter "language".
378 Update calls to self accordingly. Replace calls to c_val_print
379 by calls to val_print.
380
381 2014-01-07 Joel Brobecker <brobecker@adacore.com>
382
383 * ada-valprint.c (print_record): Delete declaration.
384 (adjust_type_signedness, ada_val_print_1): Likewise.
385 (ada_val_print): Move function implementation down.
386 (print_variant_part, print_field_values, print_record):
387 Move function implementation up.
388
389 2014-01-07 Joel Brobecker <brobecker@adacore.com>
390
391 * python/py-type.c (typy_get_name): New function.
392 (type_object_getset): Add entry for attribute "name".
393 * NEWS: Add entry mentioning this new attribute.
394
395 2014-01-07 Yao Qi <yao@codesourcery.com>
396
397 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
398 statement.
399
400 2014-01-07 Yao Qi <yao@codesourcery.com>
401
402 * gnu-nat.c (info_port_rights): Add qualifier const to
403 argument args.
404
405 2014-01-07 Yao Qi <yao@codesourcery.com>
406
407 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
408
409 2014-01-07 Yao Qi <yao@codesourcery.com>
410
411 * gnu-nat.c (make_inf) Update declaration.
412 (make_inf): Make it static.
413 (inf_set_traced): Likewise.
414 (inf_port_to_thread, inf_task_died_status): Likewise.
415
416 2014-01-07 Yao Qi <yao@codesourcery.com>
417
418 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
419
420 2014-01-07 Yao Qi <yao@codesourcery.com>
421
422 * gnu-nat.c (_initialize_gnu_nat): Declare.
423
424 2014-01-07 Yao Qi <yao@codesourcery.com>
425
426 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
427 'enum bfd_endian'.
428 (struct gdbarch_info) <byte_order>: Change type to
429 'enum bfd_endian'.
430 <byte_order_for_code>: Likewise.
431 * gdbarch.c, gdbarch.h: Regenerated.
432
433 2014-01-06 Sasha Smundak <asmundak@google.com>
434
435 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
436
437 2014-01-06 Tom Tromey <tromey@redhat.com>
438
439 * doublest.c (convert_doublest_to_floatformat): Use const, not
440 CONST.
441 * somread.c (som_symtab_read): Likewise.
442
443 2014-01-07 Hui Zhu <hui@codesourcery.com>
444
445 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
446 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
447 (gdb_bfd_fopen): Ditto.
448 (gdb_bfd_openr): Ditto.
449 (gdb_bfd_openw): Ditto.
450 (gdb_bfd_openr_iovec): Ditto.
451 (gdb_bfd_fdopenr): Ditto.
452 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
453 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
454 with xstrdup.
455 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
456 with xstrdup.
457 * symfile-mem.c (symbol_file_add_from_memory): Removed
458 gdb_bfd_stash_filename.
459
460 2014-01-03 Doug Evans <dje@google.com>
461
462 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
463 output.
464
465 2014-01-01 Joel Brobecker <brobecker@adacore.com>
466
467 Update year range in copyright notice of all files.
468
469 2014-01-01 Joel Brobecker <brobecker@adacore.com>
470
471 * top.c (print_gdb_version): Set copyright year to 2014.
472
473 2014-01-01 Joel Brobecker <brobecker@adacore.com>
474
475 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
476
477 For older changes see ChangeLog-2013.
478 \f
479 Local Variables:
480 mode: change-log
481 left-margin: 8
482 fill-column: 74
483 version-control: never
484 coding: utf-8
485 End:
This page took 0.066646 seconds and 5 git commands to generate.