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