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