2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
2
3 * target.c (target_read_string): Remove unused origlen.
4
5 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6
7 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
8 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
9 * ax-general.c (ax_print): Remove unused is_float.
10 * blockframe.c (block_innermost_frame): Remove unused start, end.
11 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12
13 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
14
15 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
16 (svr4_read_so_list): Remove unused lmo.
17 * solib-target.c (solib_target_relocate_section_addresses): Remove
18 unused flags.
19
20 2013-01-30 Tom Tromey <tromey@redhat.com>
21
22 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
23
24 2013-01-30 Tom Tromey <tromey@redhat.com>
25
26 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
27 * utils.c (gnu_debuglink_crc32): Remove.
28 * utils.h (gnu_debuglink_crc32): Don't declare.
29
30 2013-01-30 Tom Tromey <tromey@redhat.com>
31
32 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
33 (read_structure_type, read_enumeration_type): Remove cast.
34
35 2013-01-30 Tom Tromey <tromey@redhat.com>
36
37 * dwarf2read.c (read_namespace_type): Remove cast.
38 (read_typedef): Likewise.
39
40 2013-01-29 Tom Tromey <tromey@redhat.com>
41
42 * dwarf2read.c (free_dwo_file): Remove assert.
43
44 2013-01-29 Tom Tromey <tromey@redhat.com>
45
46 * value.c (deprecated_set_value_modifiable): Remove.
47 * value.h (deprecated_set_value_modifiable): Remove.
48
49 2013-01-28 Doug Evans <dje@google.com>
50
51 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
52 to addresses from dwo files.
53
54 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
55
56 * valops.c (find_overload_match): Remove unused argument 'lax'.
57 * value.h: Remove unused argument 'lax' from the declaration of
58 find_overload_match.
59 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
60 to find_overload_match.
61 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
62 argument to find_overload_match.
63
64 2013-01-25 Tom Tromey <tromey@redhat.com>
65
66 * dwarf2read.c (processing_has_namespace_info): Remove.
67 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
68 (process_die, read_func_scope, dwarf2_start_symtab)
69 (new_symbol_full): Update.
70
71 2013-01-25 Tom Tromey <tromey@redhat.com>
72
73 * cp-namespace.c (cp_set_block_scope): Remove.
74 * cp-support.h (cp_set_block_scope): Remove.
75 * dbxread.c: Include block.h.
76 (cp_set_block_scope): New function.
77 (process_one_symbol): Update.
78 * dwarf2read.c (read_func_scope): Use block_set_scope.
79
80 2013-01-25 Pedro Alves <palves@redhat.com>
81
82 * remote.c (add_current_inferior_and_thread): Tweak comment.
83
84 2013-01-25 Tom Tromey <tromey@redhat.com>
85
86 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
87 (cp_add_using_directive): Add 'copy_names' argument.
88 * cp-support.h (cp_add_using_directive): Update.
89 (struct using_direct) <import_src, import_dest, alias,
90 declaration>: Now const.
91 * dwarf2read.c (read_import_statement): Use obconcat.
92 Don't copy names passed to cp_add_using_directive.
93
94 2013-01-25 Tom Tromey <tromey@redhat.com>
95
96 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
97
98 2013-01-25 Pedro Alves <palves@redhat.com>
99
100 * remote.c (stop_reply_extract_thread): New.
101 (add_current_inferior_and_thread): New parameter 'wait_status'.
102 Handle it.
103 (remote_start_remote): Pass wait status to
104 add_current_inferior_and_thread.
105 (extended_remote_run): Update comment.
106 (extended_remote_create_inferior_1): Pass wait status to
107 add_current_inferior_and_thread.
108
109 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
110 Ulrich Weigand <uweigand@de.ibm.com>
111
112 * valarith.c (value_vector_widen): New function for replicating a
113 scalar into a vector.
114 (value_binop): Use value_vector_widen to widen scalar to vector
115 rather than casting, this better matches gcc C behaviour.
116 * valops.c (value_casst): Update logic for casting between vector
117 types, and for casting from scalar to vector, try to match gcc C
118 behaviour.
119 * value.h (value_vector_widen): Declare.
120 * opencl-lang.c (opencl_value_cast): New opencl specific casting
121 function, handle special case for casting scalar to vector.
122 (opencl_relop): Use opencl_value_cast.
123 (evaluate_subexp_opencl): Use opencl_value_cast instead of
124 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
125 in order to use opencl_value_cast.
126
127 2013-01-25 Yao Qi <yao@codesourcery.com>
128
129 * event-loop.c: Include "queue.h".
130 (gdb_event_p): New typedef.
131 (DECLARE_QUEUE_P): Use.
132 (DEFINE_QUEUE_P): Use.
133 (async_queue_event): Remove.
134 (gdb_event_xfree): New.
135 (initialize_event_loop): New.
136 (process_event): Use QUEUE macros.
137 (event_queue): Remove.
138 (gdb_wait_for_event): Caller update.
139 (check_async_event_handlers): Likewise.
140 (poll_timers): Likewise.
141 * event-loop.h (initialize_event_loop): Declare.
142 * event-loop.c (gdb_event_xfree): New.
143 * top.c (gdb_init): Call initialize_event_loop.
144
145 2013-01-25 Yao Qi <yao@codesourcery.com>
146
147 * event-loop.c (async_queue_event): Remove one parameter
148 'position'. Remove code handling 'position' == TAIL.
149 (gdb_wait_for_event): Caller update.
150 (check_async_event_handlers): Caller update.
151 (poll_timers): Caller update.
152 * event-loop.h (enum queue_position): Remove.
153
154 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
155
156 * MAINTAINERS: Update my email.
157
158 2013-01-25 Yao Qi <yao@codesourcery.com>
159
160 * main.c (print_gdb_help): Remove "--epoch" from the help
161 message.
162
163 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
164
165 * symtab.c (skip_prologue_using_sal): Consider a file
166 change the same as an increased line number
167
168 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
169
170 * MAINTAINERS (Write After Approval): Add myself to the list.
171
172 2013-01-24 Tom Tromey <tromey@redhat.com>
173
174 * ada-lang.h (ada_decode_symbol): Make return type const.
175 * ada-lang.c (ada_decode_symbol): Likewise.
176
177 2013-01-23 Doug Evans <dje@google.com>
178
179 * linespec.c (find_linespec_symbols): Make static.
180
181 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
182
183 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
184 type on float conversion for complex type.
185
186 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
187
188 Add a new class gdb.Architecture which exposes GDB's
189 internal representation of architecture via GDB Python API.
190 * Makefile.in: Add entries corresponding to the new file
191 python/py-arch.c.
192 * NEWS (Python Scripting): Add entries for the new class
193 gdb.Architecture and the new method gdb.Frame.architecture.
194 * python/py-arch.c: Implement gdb.Architecture class.
195 * python/py-frame.c (frapy_arch): Implement the method
196 gdb.Frame.architecture().
197 (frame_object_methods): Add 'architecture' to the method table.
198 * python/python-internal.h: Add declarations of new utility
199 functions.
200 * python/python.c (_initialize_python): Initialize
201 gdb.Architecture class.
202
203 2013-01-23 Doug Evans <dje@google.com>
204
205 Work around binutils/15021.
206 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
207 type_unit_group out of union s. All uses updated.
208 (read_index_from_section): Watch for index version 8.
209 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
210 an imported symtab.
211 (write_psymtabs_to_index): Increment version number to 8.
212
213 2013-01-22 Pedro Alves <palves@redhat.com>
214
215 * annotate.c (breakpoint_changed): Skip if breakpoint is not
216 user-visible.
217
218 2013-01-22 Pedro Alves <palves@redhat.com>
219
220 * annotate.c (annotate_breakpoints_changed): Rename to ...
221 (annotate_breakpoints_invalid): ... this. Make static.
222 (breakpoint_changed): Adjust.
223 (_initialize_annotate): Always install the observers. Install a
224 "breakpoint_created" observer.
225 * annotate.h (annotate_breakpoints_changed): Delete declaration.
226 * breakpoint.c (set_breakpoint_condition)
227 (breakpoint_set_commands, do_map_commands_command)
228 (init_raw_breakpoint, clear_command, set_ignore_count)
229 (enable_breakpoint_disp): No longer call
230 annotate_breakpoints_changed.
231
232 2013-01-22 Pedro Alves <palves@redhat.com>
233
234 * annotate.c: Include "inferior.h".
235 (frames_invalid_emitted)
236 (breakpoints_invalid_emitted): New globals.
237 (async_background_execution_p): New function.
238 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
239 emitting the annotation if it has already been emitted.
240 (annotate_display_prompt): New function.
241 * annotate.h (annotate_display_prompt): New declaration.
242 * event-top.c: Include annotate.h.
243 (display_gdb_prompt): Call annotate_display_prompt.
244
245 2013-01-22 Pedro Alves <palves@redhat.com>
246
247 * annotate.c (ignore_count_changed): Delete.
248 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
249 (annotate_ignore_count_change): Delete.
250 (annotate_stopped): Don't emit a delayed breakpoints-changed
251 annotation.
252 * annotate.h (annotate_ignore_count_change): Delete.
253 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
254 annotate_ignore_count_change.
255
256 2013-01-22 Tom Tromey <tromey@redhat.com>
257
258 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
259 require_rvalue for a register location.
260
261 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
262
263 * breakpoint.c (print_one_breakpoint_location): Add MI
264 field 'thread-groups' when printing a breakpoint.
265 (output_thread_groups): New function.
266
267 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
268
269 * python/lib/gdb/commands/explore.py
270 (CompoundExplorer.explore_expr): Correct the name of a method
271 being invoked.
272 (ExploreTypeCommand.invoke): Add a missing 'return'.
273
274 2013-01-21 Tom Tromey <tromey@redhat.com>
275
276 * gdb_obstack.h (obconcat): Move declaration here, from...
277 * symfile.h (obconcat): ... here.
278 * gdb_obstack.c: New file.
279 (obconcat): Move from...
280 * symfile.c (obconcat): ... here.
281 * Makefile.in (SFILES): Add gdb_obstack.c.
282 (COMMON_OBS): Add gdb_obstack.o.
283
284 2013-01-21 Tom Tromey <tromey@redhat.com>
285
286 * symfile.h (obsavestring): Don't declare.
287 * symfile.c (obsavestring): Remove.
288 * ada-exp.y: Use obstack_copy0, not obsavestring.
289 * ada-lang.c: Use obstack_copy0, not obsavestring.
290 * coffread.c: Use obstack_copy0, not obsavestring.
291 * cp-namespace.c: Use obstack_copy0, not obsavestring.
292 * dbxread.c: Use obstack_copy0, not obsavestring.
293 * dwarf2read.c: Use obstack_copy0, not obsavestring.
294 * jit.c: Use obstack_copy0, not obsavestring.
295 * mdebugread.c: Use obstack_copy0, not obsavestring.
296 * psymtab.c: Use obstack_copy0, not obsavestring.
297 * stabsread.c: Use obstack_copy0, not obsavestring.
298 * xcoffread.c: Use obstack_copy0, not obsavestring.
299
300 2013-01-21 Tom Tromey <tromey@redhat.com>
301
302 * dwarf2read.c (fixup_go_packaging): Save package name
303 on objfile obstack.
304 * gdbtypes.c (init_type): Don't copy name.
305
306 2013-01-21 Tom Tromey <tromey@redhat.com>
307
308 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
309 const.
310 (struct attribute) <u.str>: Now const.
311 (struct fnfieldlist) <name>: Now const.
312 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
313 (partial_die_parent_scope): Make return type const.
314 (partial_die_full_name, add_partial_symbol): Update.
315 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
316 'name' const.
317 (find_file_and_directory): Make 'name' and 'comp_dir' const.
318 (read_file_scope, read_func_scope, dwarf2_add_field)
319 (dwarf2_add_member_fn, read_structure_type)
320 (process_enumeration_scope, read_array_type, read_module_type)
321 (read_base_type, read_subrange_type): Update.
322 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
323 (new_symbol_full, guess_full_die_structure_name): Update.
324 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
325 (dwarf2_name): Return const type.
326 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
327 const.
328
329 2013-01-21 Tom Tromey <tromey@redhat.com>
330
331 * gdbtypes.c (init_type): Make 'name' const.
332 * gdbtypes.h (init_type): Update.
333
334 2013-01-21 Tom Tromey <tromey@redhat.com>
335
336 * buildsym.c (patch_subfile_names): Use set_last_source_file.
337 (start_symtab): Make 'name' and 'dirname' const. Use
338 set_last_source_file.
339 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
340 (last_source_file): Define. Now static.
341 (set_last_source_file, get_last_source_file): New functions.
342 * buildsym.h (last_source_file): Don't declare.
343 (start_symtab): Update.
344 (set_last_source_file, get_last_source_file): Declare.
345 * coffread.c (complete_symtab): Use set_last_source_file.
346 (coff_end_symtab): Likewise.
347 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
348 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
349 set_last_source_file.
350 (process_one_symbol): Use get_last_source_file.
351 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
352 (psymtab_to_symtab_1): Use get_last_source_file.
353 * xcoffread.c (process_linenos): Use get_last_source_file.
354 (complete_symtab): Use set_last_source_file.
355 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
356 (scan_xcoff_symtab): Use set_last_source_file.
357
358 2013-01-21 Tom Tromey <tromey@redhat.com>
359
360 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
361 (symbol_set_names): Remove casts. Handle field const-ness.
362
363 2013-01-21 Tom Tromey <tromey@redhat.com>
364
365 * dwarf2read.c (new_symbol_full): Remove cast.
366 * symtab.c (symbol_set_demangled_name): Make 'name' const.
367 * symtab.h (symbol_set_demangled_name): Update.
368
369 2013-01-21 Tom Tromey <tromey@redhat.com>
370
371 * main.c (captured_main): Call bfd_init.
372
373 2013-01-21 Tom Tromey <tromey@redhat.com>
374
375 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
376 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
377 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
378 * NEWS: Update.
379
380 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
381
382 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
383
384 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
385
386 Fix gdb.fortran/common-block.exp crash in PIE mode.
387 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
388 LOC_COMMON_BLOCK.
389 * f-valprint.c (info_common_command_for_block): Expect
390 LOC_COMMON_BLOCK in gdb_assert.
391 * symtab.h (struct general_symbol_info): Update comment for the
392 common_block member.
393 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
394 (enum address_class): New member LOC_COMMON_BLOCK.
395
396 2013-01-18 David Blaikie <dblaikie@gmail.com>
397
398 * MAINTAINERS (Write After Approval): Add "David Blaikie".
399
400 2013-01-18 Tom Tromey <tromey@redhat.com>
401
402 PR c++/14999:
403 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
404 Call require_rvalue.
405
406 2013-01-18 Yao Qi <yao@codesourcery.com>
407
408 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
409 (dbx_read_symtab): New declaration.
410 (dbx_psymtab_to_symtab): Delete.
411 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
412 Rename parameter PST to SELF. Exchanged two parameters.
413 (start_psymtab): Caller update.
414 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
415 (dwarf2_read_symtab): New declaration.
416 (dwarf2_psymtab_to_symtab): Delete.
417 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
418 Rename parameter PST to SELF. Exchanged two parameters.
419 (create_partial_symtab): Caller update.
420 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
421 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
422 Rename parameter PST to SELF. Exchanged two parameters.
423 (parse_partial_symbols, new_psymtab): Caller update.
424 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
425 two parameters.
426 * psymtab.c (psymtab_to_symtab): Caller update.
427 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
428 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
429 Rename parameter PST to SELF. Exchanged two parameters.
430 (xcoff_start_psymtab): Caller update.
431
432 2013-01-18 Yao Qi <yao@codesourcery.com>
433
434 * infrun.c (proceed): Rename local variable 'oneproc' to
435 'force_step'.
436
437 2013-01-17 Doug Evans <dje@google.com>
438
439 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
440 (dw2_build_type_unit_groups): Delete. All uses updated.
441
442 * symtab.h (struct symbol_search): Add comment.
443
444 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
445
446 * symtab.c (compare_filenames_for_search): New comment for
447 HAS_DRIVE_SPEC.
448
449 2013-01-17 Tom Tromey <tromey@redhat.com>
450
451 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
452
453 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
454
455 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
456 initialize it by existing make_cleanup. Call new do_cleanups.
457
458 2013-01-17 Tom Tromey <tromey@redhat.com>
459
460 * cp-abi.c (cp_abi_completer): New function.
461 (_initialize_cp_abi): Set completer for "set cp-abi".
462
463 2013-01-17 Tom Tromey <tromey@redhat.com>
464
465 * mem-break.c: Remove obsolete comment.
466 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
467
468 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
469
470 * jit.c (jit_reader_load_command): Interpret the jit reader name
471 as an absolute path if it begins with a forward slash.
472
473 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
474
475 PR gdb/14550
476
477 * jit.c (finalize_symtab): Ensure that only the global block has a
478 NULL superblock.
479
480 2013-01-17 Pedro Alves <palves@redhat.com>
481
482 * acinclude.m4: Include ../config/plugins.m4,
483 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
484 * Makefile.in (aclocal_m4_deps): Update.
485 * aclocal.m4: Renegerate.
486
487 2013-01-16 Doug Evans <dje@google.com>
488
489 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
490
491 2013-01-16 Pedro Alves <palves@redhat.com>
492 Tom Tromey <tromey@redhat.com>
493
494 PR cli/7221:
495 * NEWS: Add "catch signal".
496 * breakpoint.c (base_breakpoint_ops): No longer static.
497 (bpstat_explains_signal): New function.
498 (init_catchpoint): No longer static.
499 (base_breakpoint_explains_signal): New function.
500 (base_breakpoint_ops): Initialize new field.
501 * breakpoint.h (enum bpstat_signal_value): New.
502 (struct breakpoint_ops) <explains_signal>: New field.
503 (bpstat_explains_signal): Remove macro, declare as function.
504 (base_breakpoint_ops, init_catchpoint): Declare.
505 * break-catch-sig.c: New file.
506 * inferior.h (signal_catch_update): Declare.
507 * infrun.c (signal_catch): New global.
508 (handle_syscall_event): Update for change to
509 bpstat_explains_signal.
510 (handle_inferior_event): Likewise. Always handle random signals
511 via bpstats.
512 (signal_cache_update): Check signal_catch.
513 (signal_catch_update): New function.
514 (_initialize_infrun): Initialize signal_catch.
515 * Makefile.in (SFILES): Add break-catch-sig.c.
516 (COMMON_OBS): Add break-catch-sig.o.
517
518 2013-01-16 Tom Tromey <tromey@redhat.com>
519
520 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
521 (print_one_catch_solib, print_one_catch_syscall)
522 (print_one_catch_exec, print_one_exception_catchpoint): Emit
523 "catch-type".
524
525 2013-01-16 Yao Qi <yao@codesourcery.com>
526
527 * printcmd.c (current_display_number): Make it static.
528
529 2013-01-16 Yao Qi <yao@codesourcery.com>
530
531 * infcmd.c (step_once): Don't check '!single_inst' as it was
532 checked before.
533
534 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
535
536 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
537
538 2013-01-14 Tom Tromey <tromey@redhat.com>
539
540 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
541 set command.
542 * command.h (add_setshow_string_noescape_cmd): Update.
543 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
544 (complete_set_gnutarget): New function.
545 (_initialize_core): Set the "set gnutarget" completer.
546
547 2013-01-14 Tom Tromey <tromey@redhat.com>
548
549 PR symtab/14442:
550 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
551 (c_type_print_modifier): Likewise.
552 * dwarf2read.c (read_tag_restrict_type): New function.
553 (read_type_die_1): Handle DW_TAG_restrict_type.
554 * gdbtypes.c (make_restrict_type): New function.
555 (recursive_dump_type): Handle TYPE_RESTRICT.
556 * gdbtypes.h (enum type_flag_values): Renumber.
557 (enum type_instance_flag_value): Add
558 TYPE_INSTANCE_FLAG_RESTRICT.
559 (TYPE_RESTRICT): New macro.
560 (make_restrict_type): Declare.
561
562 2013-01-14 Tom Tromey <tromey@redhat.com>
563
564 PR symtab/14931:
565 * psymtab.c (struct psymtab_state): New.
566 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
567 functions.
568 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
569 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
570
571 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
572 Pedro Alves <palves@redhat.com>
573
574 PR remote/14786
575
576 * remote.c (remote_threads_info): Make a copy of the reply from
577 qfThreadInfo and use that instead of rs->buf.
578
579 2013-01-14 Yao Qi <yao@codesourcery.com>
580
581 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
582 (dbx_psymtab_to_symtab): Likewise.
583 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
584 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
585 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
586
587 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
588
589 * parse.c (parse_exp_in_context): New variable inner_chain. Call
590 make_cleanup_restore_current_language. Call set_language. Move
591 OLD_CHAIN and INNER_CHAIN cleanups.
592 * utils.c (do_restore_current_language)
593 (make_cleanup_restore_current_language): New functions.
594 * utils.h (make_cleanup_restore_current_language): New declaration.
595
596 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
597
598 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
599 non-existing files.
600
601 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
602 non-existing files if FILENAME is already absolute.
603
604 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
605
606 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
607 fputs_filtered. Append trailing newline.
608
609 2013-01-11 Yao Qi <yao@codesourcery.com>
610 Stan Shebs <stan@codesourcery.com>
611
612 * psymtab.c (init_psymbol_list): Clarify the comment.
613
614 2013-01-11 Yao Qi <yao@codesourcery.com>
615
616 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
617 (update_dprintf_command_list): Assert that 'printf_line' is
618 non-null. Remove condition check.
619
620 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
621
622 Code cleanup.
623 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
624 type const char *.
625 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
626 const char *.
627 * tui/tui-source.h (tui_source_is_displayed): Likewise.
628
629 2013-01-09 Anthony Green <green@moxielogic.com>
630
631 * cp-abi.c (cplus_print_vtable): Don't return value from void
632 function.
633 * ada-lang.c (re_set_catch_assert): Ditto.
634
635 2013-01-09 Doug Evans <dje@google.com>
636
637 * symfile.h (quick_symbol_functions): Delete member
638 pre_expand_symtabs_matching. All uses removed.
639 * dwarf2read.c (dw2_lookup_symbol): Implement.
640 (dw2_do_expand_symtabs_matching): Delete.
641 (dw2_pre_expand_symtabs_matching): Delete.
642 (struct dw2_symtab_iterator): New type.
643 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
644 (dw2_expand_symtabs_for_function): Rewrite.
645 (dwarf2_gdb_index_functions): Update.
646 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
647 (psym_functions): Update.
648
649 2013-01-09 Tom Tromey <tromey@redhat.com>
650
651 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
652 * configure: Rebuild.
653 * configure.ac: Add somread.o to the build if BFD has SOM
654 support.
655 * somread.c: Include som/aout.h, not syms.h.
656 (som_symtab_read): Use som_external_symbol_dictionary_record.
657 Unpack records manually.
658 (_initialize_somread): Declare.
659
660 2012-01-08 Mike Frysinger <vapier@gentoo.org>
661
662 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
663 Cast return_address to 64bits.
664
665 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
666
667 * printcmd.c: Remove define of function output_command.
668 * tracepoint.c: Remove extern of function output_command.
669 * valprint.h: (output_command): New extern.
670
671 2013-01-07 Tom Tromey <tromey@redhat.com>
672
673 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
674 Remove.
675 (objc_language_defn): Use c_printchar, c_printstr,
676 c_emit_char.
677
678 2013-01-07 Tom Tromey <tromey@redhat.com>
679
680 PR cli/7719:
681 * NEWS: Update.
682 * ada-valprint.c (printstr, print_field_values): Remove
683 "inspect_it" code.
684 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
685 code.
686 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
687 code.
688 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
689 * main.c (captured_main): Remove "epoch" argument.
690 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
691 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
692 * p-valprint.c (pascal_object_print_value_fields): Remove
693 "inspect_it" code.
694 * printcmd.c (print_command_1): Remove 'inspect' argument.
695 (print_command, call_command): Update.
696 (inspect_command): Remove.
697 (_initialize_printcmd): Make "inspect" an alias for "print".
698 * top.c (epoch_interface): Remove.
699 * top.h (epoch_interface): Remove.
700 * valprint.c (user_print_options): Update.
701 (print_converted_chars_to_obstack): Remove "inspect_it" code.
702 * valprint.h (struct value_print_options) <inspect_it>: Remove
703 field.
704
705 2013-01-04 Tom Tromey <tromey@redhat.com>
706
707 * valprint.h (read_string): Add 'extern'.
708
709 2013-01-07 Joel Brobecker <brobecker@adacore.com>
710
711 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
712 used to decide whether to define darwin_read_dyld_info or not.
713
714 2013-01-03 Pierre Muller <muller@sourceware.org>
715
716 * main.c (relocate_gdb_directory): Avoid calling stat function
717 if DIR is empty.
718
719 2013-01-03 Yao Qi <yao@codesourcery.com>
720
721 * psymtab.c (fixup_psymbol_section): Update declaration.
722 (fixup_psymbol_section): Remove code returning value.
723
724 2013-01-03 Yao Qi <yao@codesourcery.com>
725
726 * symtab.h: Remove some out of date comments.
727 (enum exception_event_kind): Move it ...
728 * breakpoint.c: ... here.
729
730 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
731
732 PR gdb/14405
733 * darwin-nat.c (darwin_read_dyld_info): Only build if
734 TASK_DYLD_INFO_COUNT is defined.
735 (darwin_xfer_partial): Call darwin_read_dyld_info only if
736 TASK_DYLD_INFO_COUNT is defined.
737
738 2013-01-02 Tom Tromey <tromey@redhat.com>
739
740 * symfile.h (struct ecoff_debug_hack): Remove.
741 * objfiles.c: Don't include mdebugread.h.
742
743 2013-01-02 Tom Tromey <tromey@redhat.com>
744
745 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
746 * configure.ac: Check for Mach-O support in BFD. Update
747 CONFIG_OBS.
748 * configure: Rebuild.
749
750 2013-01-02 Tom Tromey <tromey@redhat.com>
751
752 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
753 * configure.ac: Use GDB_AC_CHECK_BFD.
754 * configure: Rebuild.
755
756 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
757
758 * MAINTAINERS: Update my email.
759
760 2013-01-01 Joel Brobecker <brobecker@adacore.com>
761
762 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
763
764 2013-01-01 Joel Brobecker <brobecker@adacore.com>
765
766 * rs6000-nat.c (bss_data_overlap): New function.
767 (vmap_symtab): Use it to adjust the .bss section's offset.
768
769 2013-01-01 Joel Brobecker <brobecker@adacore.com>
770
771 Update year range in copyright notice of all files.
772
773 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
774
775 * top.c (print_gdb_version): Update copyright year.
776
777 For older changes see ChangeLog-2012.
778 \f
779 Local Variables:
780 mode: change-log
781 left-margin: 8
782 fill-column: 74
783 version-control: never
784 coding: utf-8
785 End: