Rename ia64-hpux-nat.c:_initialize_hppa_hpux_nat...
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-06-13 Joel Brobecker <brobecker@adacore.com>
2
3 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4 _initialize_hppa_hpux_nat.
5
6 2012-06-13 Joel Brobecker <brobecker@adacore.com>
7
8 * remote-sim.c (sim_command_completer): Change type of return
9 value to "VEC (char_ptr) *". Adjust implementation accordingly.
10
11 2012-06-13 Mark Kettenis <kettenis@gnu.org>
12 Jan Kratochvil <jan.kratochvil@redhat.com>
13
14 PR tdep/14222
15 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
16 stack on a 16-byte boundary.
17
18 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
19
20 * jit.c (finalize_symtab): Set function's return type to 'void' by
21 default.
22
23 2012-06-13 Mark Kettenis <kettenis@gnu.org>
24 H.J. Lu <hongjiu.lu@intel.com>
25
26 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
27 Move bits common to both the classic LP64 and the new x32 ILP32
28 ABI here.
29 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
30 (amd64_x32_linux_init_abi): New function.
31 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
32 subtype.
33
34 * i386-tdep.h (i386_pseudo_register_name): New prototype.
35 * i386-tdep.c (i386_pseudo_register_name): Make public.
36 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
37 * amd64-tdep.c (amd64_dword_names): Add "eip".
38 (amd64_x32_pseudo_register_type): New function
39 (amd64_x32_init_abi): New function.
40
41 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
42
43 PR build/14003
44 * inferior.h (struct inferior_suspend_state): Comment out.
45 (struct inferior): Comment out the field suspend.
46 * infrun.c (struct infcall_suspend_state): Comment out the field
47 inferior_suspend.
48 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
49 out its assignment.
50
51 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
52
53 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
54 * c-exp.y (classify_inner_name): Remove caller assumptions in the
55 function comment. Return ERROR for unresolved cases. Implement
56 returning proper NAME.
57 (yylex): Accept also NAME from classify_inner_name.
58 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
59 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
60 LOC_TYPEDEF type.
61 * cp-support.h (cp_lookup_nested_type): Update its declaration.
62
63 2012-06-13 Tom Tromey <tromey@redhat.com>
64
65 * breakpoint.c (condition_completer): New function.
66 (_initialize_breakpoint): Use it.
67 * value.c (complete_internalvar): New function.
68 * value.h (complete_internalvar): Declare.
69
70 2012-06-13 Tom Tromey <tromey@redhat.com>
71
72 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
73 * breakpoint.c (catch_syscall_completer): Return a VEC.
74 * cli/cli-cmds.c (complete_command): Update.
75 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
76 (complete_on_enum): Likewise.
77 * command.h: Include gdb_vecs.h.
78 (completer_ftype): Change return type.
79 (complete_on_cmdlist, complete_on_enum): Likewise.
80 * completer.c (noop_completer, filename_completer)
81 (location_completer): Return a VEC.
82 (add_struct_fields): Remove 'nextp' argument. Change 'output'
83 to a VEC.
84 (expression_completer, complete_line_internal, complete_line)
85 (command_completer): Return a VEC.
86 (gdb_completion_word_break_characters, line_completion_function):
87 Update.
88 * completer.h: Include gdb_vecs.h.
89 (complete_line, noop_completer, filename_completer)
90 (expression_completer, location_completer, command_completer):
91 Update.
92 * f-lang.c (f_word_break_characters): Return a VEC.
93 * interps.c (interpreter_completer): Return a VEC.
94 * language.h (struct language_defn)
95 <la_make_symbol_completion_list>: Return a VEC.
96 * python/py-cmd.c (cmdpy_completer): Return a VEC.
97 * symtab.c (free_completion_list): Take a VEC.
98 (return_val_size, return_val_index): Remove.
99 (return_val): Now a VEC.
100 (completion_list_add_name): Update.
101 (default_make_symbol_completion_list_break_on)
102 (default_make_symbol_completion_list, make_symbol_completion_list)
103 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
104 Return a VEC.
105 (add_filename_to_list): Update.
106 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
107 <list>: Now a VEC.
108 (maybe_add_partial_symtab_filename): Update.
109 (make_source_files_completion_list): Return a VEC.
110 * symtab.h (default_make_symbol_completion_list_break_on)
111 (default_make_symbol_completion_list, make_symbol_completion_list)
112 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
113 (make_source_files_completion_list): Update.
114
115 2012-06-13 Tom Tromey <tromey@redhat.com>
116
117 * breakpoint.c (add_catch_command): Use completer_ftype.
118 * breakpoint.h: Include command.h.
119 (add_catch_command): Use completer_ftype.
120 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
121 * cli/cli-decode.h (struct cmd_list_element) <completer>:
122 Use completer_ftype.
123 * command.h (completer_ftype): New typedef.
124 (set_cmd_completer): Use it.
125 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
126 completer_ftype.
127
128 2012-06-13 Pedro Alves <palves@redhat.com>
129
130 Partial revert of previous change.
131
132 * serial.c (scb_base): New global.
133 (serial_for_fd): New.
134 (serial_open, serial_fdopen_ops): Link new serial in open serials
135 chain.
136 (do_serial_close): Unlink serial from the open serials chain.
137
138 2012-06-12 Pedro Alves <palves@redhat.com>
139
140 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
141 threads here.
142 (prepare_for_detach): No longer context switch here in non-stop
143 mode.
144 (fetch_inferior_event): Ditto.
145 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
146 to the event thread before removing breakpoints. Switch to the
147 event thread before inserting breakpoints and resuming.
148 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
149 event thread before resuming.
150 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
151 Switch to the event thread before removing breakpoints.
152
153 2012-06-12 Eli Zaretskii <eliz@gnu.org>
154
155 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
156 special characters correctly for the Windows shells. See
157 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
158 report.
159 [!__MINGW32__]: Remove extra double quote character from special
160 characters.
161
162 2012-06-11 Stan Shebs <stan@codesourcery.com>
163
164 * ui-out.h: Remove #if 0 declarations.
165 * ui-out.c: Remove #if 0 functions.
166
167 2012-06-11 Pedro Alves <palves@redhat.com>
168
169 * ser-base.c (run_async_handler_and_reschedule): New.
170 (fd_event, push_event): Use it.
171 * serial.c (serial_open, serial_fdopen_ops): Set the initial
172 reference count to 1.
173 (do_serial_close): Set the bufp field to NULL. Use serial_unref
174 instead of xfree.
175 (serial_is_open, serial_ref, serial_unref): New.
176 * serial.h (serial_open): Adjust comment.
177 (serial_is_open): Declare.
178 (serial_close): Adjust comment.
179 (serial_ref, serial_unref) Declare.
180 (struct serial): New field 'refcnt'.
181
182 2012-06-11 Pedro Alves <palves@redhat.com>
183
184 Remove #if 0'd "connect" command, and unnecessary associated
185 refcounting and serial reuse bits.
186
187 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
188 * serial.c (last_serial_opened): Delete.
189 (scb_base): Delete.
190 (serial_open): Adjust.
191 (serial_for_fd): Delete.
192 (serial_fdopen_ops, do_serial_close): Adjust.
193 (serial_fdopen_ops): Adjust.
194
195 2012-06-11 Pedro Alves <palves@redhat.com>
196
197 * serial.c (do_serial_close): Remove early return when SCB is
198 null.
199
200 2012-06-11 Tom Tromey <tromey@redhat.com>
201
202 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
203
204 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
205
206 Fix regression by the "ambiguous linespec" series.
207 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
208 get_last_displayed_symtab and get_last_displayed_line and depending
209 on CURSAL.
210
211 2012-06-11 Tom Tromey <tromey@redhat.com>
212
213 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
214 (dw2_find_symbol_file): Use it.
215
216 2012-06-11 Michael Eager <eager@eagercon.com>
217
218 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
219 * mips-linux-tdep.h (mips_signals): New
220
221 2012-06-11 Tom Tromey <tromey@redhat.com>
222
223 * infrun.c (handle_inferior_event)
224 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
225 breakpoint.
226 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
227 exception logic in all cases. Update comments.
228 (insert_longjmp_resume_breakpoint): Set the exception resume
229 breakpoint.
230
231 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
232
233 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
234
235 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
236
237 * valarith.c (binop_types_user_defined_p): Fix a typo.
238
239 2012-06-08 Yao Qi <yao@codesourcery.com>
240 Chung-Lin Tang <cltang@codesourcery.com>
241
242 * arch-utils.c (default_return_in_first_hidden_param_p): New.
243 * arch-utils.h: Declare.
244 * gdbarch.sh: Add return_in_first_hidden_param_p.
245 * gdbarch.c, gdbarch.h: Regenerated.
246 * infcall.c (call_function_by_hand): Call
247 gdbarch_return_in_first_hidden_param_p instead of
248 language_pass_by_reference.
249
250 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
251 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
252 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
253 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
254 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
255 `cplus_return_struct_by_reference'.
256 (tic6x_return_value): Handle language cplusplus.
257 (tic6x_return_in_first_hidden_param_p): New.
258 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
259
260 2012-06-07 Doug Evans <dje@google.com>
261
262 * dwarf2read.c (dwarf2_cu): Add comment.
263
264 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
265
266 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
267 variable.
268 (mips_eabi_push_dummy_call): Likewise.
269 (mips_n32n64_push_dummy_call): Likewise.
270 (mips_o32_push_dummy_call): Likewise.
271 (mips_o64_push_dummy_call): Likewise.
272
273 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
274
275 * mips-tdep.c (mips_convert_register_p): Correct coding style.
276
277 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
278
279 * mips-tdep.c (mips_pseudo_register_type): Use
280 mips_float_register_p.
281
282 2012-06-06 Pedro Alves <palves@redhat.com>
283
284 * infrun.c (handle_inferior_event): Remove calls to
285 reinit_frame_cache that follow a context_switch call.
286
287 2012-06-06 Pedro Alves <palves@redhat.com>
288
289 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
290 context_switch and remove stale comment.
291
292 2012-06-06 Pedro Alves <palves@redhat.com>
293
294 * infrun.c (struct execution_control_state): Remove
295 `new_thread_event' field.
296 (handle_inferior_event): Simplify new threads handling; don't
297 resume the inferior if we find a new thread.
298
299 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
300
301 * NEWS: Document the deprecation of SH's 'regs' command.
302 * inferior.h (all_registers_info): Add function declaration.
303 * sh-tdep.c (sh_show_regs): Remove variable.
304 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
305 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
306 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
307 (sh_show_regs_command): Remove functions.
308 (sh_gdbarch_init): Don't set sh_show_regs.
309 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
310 'info all-registers'.
311 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
312 (sh64_show_regs): Remove functions.
313 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
314
315 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
316
317 * configure.ac: Move development=true below AC_INIT.
318 * configure: Regenerate.
319
320 2012-06-05 Stan Shebs <stan@codesourcery.com>
321
322 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
323 gdb_stdout.
324
325 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
326
327 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
328 argument as ssize_t.
329 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
330 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
331 * target.c (target_read_stack, target_write_memory)
332 (target_write_raw_memory): Likewise.
333 * target.h (target_read_stack, target_write_memory)
334 (target_write_raw_memory): Likewise.
335
336 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
337
338 * symfile-mem.c: Change gdb_static_assert to ssize_t.
339 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
340 * target.c (target_read_memory): Change LEN to ssize_t.
341 * target.h (target_read_memory): Change LEN to ssize_t.
342
343 2012-06-05 Pedro Alves <palves@redhat.com>
344
345 PR backtrace/13866
346
347 * breakpoint.c (until_break_command): Only fetch the selected
348 frame after decode_line_1.
349
350 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
351
352 * solib-svr4.c (enable_break): Don't fallback to setting the solib
353 event breakpoint at _start, __start or main if a program
354 interpreter is not found.
355
356 2012-06-05 Joel Brobecker <brobecker@adacore.com>
357
358 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
359 Add declaration.
360 * windows-tdep.c: #include "objfiles.h".
361 (windows_iterate_over_objfiles_in_search_order): New function.
362 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
363 iterate_over_objfiles_in_search_order gdbarch method to
364 windows_iterate_over_objfiles_in_search_order.
365 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
366
367 2012-06-05 Joel Brobecker <brobecker@adacore.com>
368
369 * gdbarch.sh: Add generation of
370 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
371 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
372 (iterate_over_objfiles_in_search_order): New gdbarch method.
373 * gdbarch.h, gdbarch.c: Regenerate.
374 * objfiles.h (default_iterate_over_objfiles_in_search_order):
375 Add declaration.
376 * objfiles.c (default_iterate_over_objfiles_in_search_order):
377 New function.
378 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
379 out of lookup_symbol_aux_symtabs.
380 (lookup_symbol_aux_symtabs): Replace extracted-out code by
381 call to lookup_symbol_aux_objfile.
382 (struct global_sym_lookup_data): New type.
383 (lookup_symbol_global_iterator_cb): New function.
384 (lookup_symbol_global): Search for symbol using
385 gdbarch_iterate_over_objfiles_in_search_order and
386 lookup_symbol_global_iterator_cb.
387 * findvar.c (struct minsym_lookup_data): New type.
388 (minsym_lookup_iterator_cb): New function.
389 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
390 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
391 and minsym_lookup_iterator_cb.
392
393 2012-06-05 Joel Brobecker <brobecker@adacore.com>
394
395 Revert the following patch:
396 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
397 try locating the symbol in the symbol's own objfile first, before
398 extending the search to all objfiles.
399 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
400 out of lookup_symbol_aux_symtabs.
401 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
402 Replace extracted-out code by call to lookup_symbol_aux_objfile.
403 Do not search EXCLUDE_OBJFILE.
404 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
405 (lookup_symbol_global): Search for matches in the block's objfile
406 first, before searching all other objfiles.
407
408 2012-06-05 Joel Brobecker <brobecker@adacore.com>
409
410 * breakpoint.c (find_condition_and_thread): Stop parsing
411 as soon as the first invalid keyword is found.
412
413 2012-06-05 Joel Brobecker <brobecker@adacore.com>
414
415 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
416
417 2012-06-05 Joel Brobecker <brobecker@adacore.com>
418
419 * config/djgpp/djcheck.sh: Add copyright header.
420
421 2012-06-05 Joel Brobecker <brobecker@adacore.com>
422
423 * copyright.py (update_files, main): Fix path to update-copyright
424 script.
425
426 2012-06-05 Joel Brobecker <brobecker@adacore.com>
427
428 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
429 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
430 for which a reminder to update by hand is printed.
431
432 2012-06-04 Doug Evans <dje@google.com>
433
434 * buildsym.c (make_blockvector): Add comment.
435
436 2012-06-04 Pedro Alves <palves@redhat.com>
437
438 * arch-utils.c (default_gdb_signal_from_target): Delete.
439 * arch-utils.h (default_gdb_signal_from_target): Delete.
440 * corelow.c (core_open) <signal mapping>: Extended comment. Check
441 gdbarch_gdb_signal_from_target_p.
442 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
443 predicate).
444 * gdbarch.h: Regenerate.
445 * gdbarch.c: Regenerate.
446
447 2012-06-04 Pedro Alves <palves@redhat.com>
448
449 * gdbarch.sh (gdb_signal_from_target): Mention that the
450 implementation of the method must be host independent.
451 * gdbarch.h: Regenerate.
452
453 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
454
455 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
456 parameters.
457 (target_read_memory_bfd): New function.
458 (symbol_file_add_from_memory): Use it.
459
460 2012-06-03 Doug Evans <dje@google.com>
461
462 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
463 of primary symtab.
464 (basic_lookup_transparent_type): Ditto.
465
466 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
467 (ALL_PRIMARY_SYMTABS): Use it.
468 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
469 * dwarf2read.c (dw2_find_symbol_file): Ditto.
470 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
471 * symtab.c (lookup_symbol_aux_objfile): Ditto.
472 (basic_lookup_transparent_type): Ditto.
473
474 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
475
476 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
477 it to optimize resolution of demangled name.
478
479 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
480
481 * configure.ac (development): Define new variable.
482 Call AC_CHECK_LIB for mcheck if $development.
483 (ERROR_ON_WARNING): Enable it by default only if $development.
484 * config.in: Regenerate.
485 * configure: Regenerate.
486
487 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
488
489 * target.c (target_read_memory): Make LEN argument as size_t.
490 * target.h (target_read_memory): Likewise.
491
492 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
493
494 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
495
496 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
497
498 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
499 BookE interface for PowerPC server processors if not available
500 in the Linux Kernel.
501
502 2012-05-31 Keith Seitz <keiths@redhat.com>
503
504 * linespec.c (decode_objc): Add cleanup to free
505 INFO.FILE_SYMTABS.
506 (find_linespec_symbols): Add cleanup to free CLASSES.
507 * symfile.c (find_separate_debug_file_by_debuglink): Add
508 cleanup to free DEBUGLINK.
509 * ui-out.c (clear_header_list): No need to check if
510 HEADER_NEXT.COLHDR is NULL.
511 Free HEADER_NEXT.COL_NAME.
512
513 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
514
515 * ada-lang.c (standard_lookup): Prevent uninitialized variable
516 warning.
517
518 2012-05-30 Jeff Kenton <jkenton@tilera.com>
519
520 * configure.host (gdb_host_cpu): Handle tilegx*.
521 (gdb_host): Handle tilegx-*-linux*.
522 * tilegx-linux-nat.c: New file.
523 * config/tilegx/linux.mh: New file.
524
525 2012-05-30 Jeff Kenton <jkenton@tilera.com>
526
527 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
528 tilegx-linux-tdep.o.
529 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
530 tilegx-linux-tdep.c.
531 * configure.tgt: Handle tilegx-*-linux*.
532 * tilegx-tdep.h: New file.
533 * tilegx-tdep.c: New file.
534 * tilegx-linux-tdep.c: New file.
535 * regformats/reg-tilegx.dat: New file.
536
537 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
538
539 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
540 accounting of hw watchpoints on ppc.
541
542 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
543
544 * source.c (openp): Expand tilde in path entries.
545
546 2012-05-29 Doug Evans <dje@google.com>
547
548 * buildsym.c (block_compar): Fix comment.
549 (end_symtab): Fix and clarify some comments.
550
551 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
552 cleanup_undefined_types.
553 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
554 All callers updated.
555
556 2012-05-29 Tom Tromey <tromey@redhat.com>
557
558 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
559 fails.
560 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
561 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
562 fails.
563 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
564 fails.
565
566 2012-05-29 Tristan Gingold <gingold@adacore.com>
567
568 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
569 (struct darwin_info): ... New struct.
570 (solib_darwin_pspace_data): New variable.
571 (darwin_pspace_data_cleanup): New function.
572 (get_darwin_info): Likewise.
573 (darwin_dyld_version_ok, darwin_load_image_infos)
574 (darwin_solib_get_all_image_info_addr_at_init)
575 (darwin_solib_read_all_image_info_addr): Add info argument.
576 Adjust code.
577 (darwin_current_sos): Use per pspace structure.
578 (darwin_solib_create_inferior_hook): Likewise.
579 (darwin_clear_solib): Likewise.
580 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
581
582 2012-05-28 Pedro Alves <palves@redhat.com>
583
584 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
585 block that uses them. Clear ecss before handling each event.
586
587 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
588
589 * solib-svr4.c (svr4_current_sos): New comment on
590 svr4_current_sos_via_xfer_libraries fall back.
591
592 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
593
594 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
595 it as a fallback for TYPE_IS_OPAQUE.
596 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
597 symbols for lookup_symbol.
598
599 2012-05-24 John Steele Scott <toojays@toojays.net>
600
601 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
602 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
603 (producer_is_gxx_lt_4_6): Move the checking and caching to...
604 (check_producer): ... this new function, which also checks for ICC
605 and caches the result.
606 (producer_is_icc): New function.
607 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
608 producer was ICC.
609
610 2012-05-24 Pedro Alves <palves@redhat.com>
611
612 PR gdb/7205
613
614 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
615 (default_gdb_signal_to_target): ... this. Add comment.
616 (default_gdb_signal_from_host): Rename to ...
617 (default_gdb_signal_from_target): ... this. Add comment.
618 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
619 (default_gdb_signal_to_target): ... this.
620 (default_gdb_signal_from_host): Rename to ...
621 (default_gdb_signal_from_target): ... this.
622 * corelow.c (core_open): Adjust to naming change. Replace comment.
623 * gdbarch.sh (gdb_signal_from_host): Rename to ...
624 (gdb_signal_from_target): ... this. Adjust to
625 default_gdb_signal_from_host naming change. Extend comment.
626 (gdb_signal_to_host): Rename to ...
627 (gdb_signal_to_target): ... this. Adjust to
628 default_gdb_signal_to_host naming change.
629 * gdbarch.h, gdbarch.c: Renegerate.
630
631 2012-05-24 Pedro Alves <palves@redhat.com>
632
633 PR gdb/7205
634
635 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
636
637 2012-05-24 Pedro Alves <palves@redhat.com>
638
639 PR gdb/7205
640
641 Replace target_signal with gdb_signal throughout.
642
643 2012-05-24 Pedro Alves <palves@redhat.com>
644
645 PR tui/14159
646
647 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
648 string, instead of reusing the va_list argument.
649
650 2012-05-24 Tom Tromey <tromey@redhat.com>
651
652 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
653 Remove.
654
655 2012-05-23 Doug Evans <dje@google.com>
656
657 * symtab.c (search_symbols): Formatting fixes.
658 (print_symbol_info): Formatting fixes.
659
660 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
661 int64_t change to leb128 API.
662 (read_encoded_value, decode_frame_entry_1): Ditto.
663 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
664 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
665 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
666 (execute_stack_op): Ditto.
667 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
668 (safe_read_uleb128, safe_read_sleb128): Ditto.
669 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
670 (dwarf2_compile_expr_to_ax): Ditto.
671 (locexpr_describe_location_piece): Ditto.
672 (disassemble_dwarf_expression): Ditto.
673 (locexpr_describe_location_1): Ditto.
674
675 2012-05-23 Stan Shebs <stan@codesourcery.com>
676 Kwok Cheung Yeung <kcy@codesourcery.com>
677
678 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
679 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
680 (mi-cmd-info.o): New rule.
681 * osdata.h (info_osdata_command): New declaration.
682 * osdata.c (info_osdata_command): Change to non-static.
683 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
684 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
685 * mi/mi-cmd-info.c: New file.
686
687 2012-05-23 Doug Evans <dje@google.com>
688
689 * symtab.c (search_symbols): Pass NULL for file_matcher to
690 expand_symtabs_matching if there are no files to match.
691
692 * gdbtypes.c (lookup_typename): Simplify.
693
694 2012-05-23 Pedro Alves <palves@redhat.com>
695
696 * arch-utils.h (default_target_signal_to_host): Delete.
697 * arch-utils.c (default_target_signal_to_host): Delete.
698 * gdbarch.sh (target_signal_to_host): Remove.
699 * gdbarch.h, gdbarch.c: Regenerate.
700
701 2012-05-22 Doug Evans <dje@google.com>
702
703 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
704 "const gdb_byte *".
705 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
706 (execute_cfa_program): Update to match API of leb128 functions.
707 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
708 "const gdb_byte *".
709 (read_unsigned_leb128, read_signed_leb128): Delete.
710 (read_initial_length): Change type of buf argument to
711 "const gdb_byte *".
712 (read_encoded_value): Update to match API of leb128 functions.
713 (decode_frame_entry): Change result to "const gdb_byte *", and
714 similarly for "start" parameter.
715 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
716 (dwarf2_build_frame_info): Change local frame_ptr to
717 "const gdb_byte *".
718 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
719 read_uleb128, read_sleb128. All callers updated.
720 (safe_skip_leb128): New function.
721 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
722 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
723 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
724 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
725 read_uleb128, read_sleb128.
726 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
727 (execute_stack_op): Update to match API of leb128 functions.
728 * dwarf2expr.h: #include "leb128.h".
729 (read_uleb128, read_sleb128): Delete.
730 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
731 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
732 * dwarf2loc.c (debug_loc_kind): New enum.
733 (decode_debug_loc_addresses): New function.
734 (decode_debug_loc_dwo_addresses): New function.
735 (dwarf2_find_location_expression): Rewrite.
736 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
737 (locexpr_describe_location_piece): Ditto.
738 (disassemble_dwarf_expression): Ditto.
739 (locexpr_describe_location_1): Ditto.
740 (loclist_describe_location): Rewrite.
741 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
742 * dwarf2read.c (die_reader_specs): New member "buffer_end".
743 (dwarf2_section_buffer_overflow_complaint): Renamed from
744 dwarf2_macros_too_long_complaint. All callers updated.
745 (skip_leb128): Delete.
746 (init_cu_die_reader): Initialize reader->buffer_end.
747 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
748 (skip_form_bytes): New arg buffer_end. All callers updated.
749 Replace call to skip_leb128 with gdb_skip_leb128.
750 (skip_unknown_opcode): New arg mac_end. All callers updated.
751 (fill_in_loclist_baton): Initialize baton->from_dwo.
752
753 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
754
755 * mips-linux-nat.c (mips_linux_read_description): Use a more
756 verbose error message.
757
758 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
759
760 * NEWS: Add MIPS/Linux DSP support.
761 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
762 (SIGCONTEXT_DSPCTL): New macro.
763 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
764 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
765 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
766 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
767 (N64_SIGCONTEXT_HI3): Likewise.
768 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
769 (N64_SIGCONTEXT_LO3): Likewise.
770 (N64_SIGCONTEXT_DSPCTL): Likewise.
771 (N64_SIGCONTEXT_FPCSR): Clarify definition.
772 (mips_linux_o32_sigframe_init): Handle DSP registers.
773 (mips_linux_n32n64_sigframe_init): Likewise.
774
775 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
776
777 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
778 call to abort.
779
780 2012-05-22 Pedro Alves <palves@redhat.com>
781
782 * target.h (store_waitstatus): Move declaration ...
783 * inf-child.h (store_waitstatus): ... here.
784 * target.c: Move inclusion of gdb_wait.h, and ...
785 (store_waitstatus): ... this ...
786 * inf-child.c: ... here.
787 * linux-nat.c: Include inf-child.h.
788 * rs6000-nat.c: Include inf-child.h.
789 * spu-linux-nat.c: Include inf-child.h.
790
791 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
792
793 * tracepoint.c (start_tracing): Add missing i18n markup.
794 (stop_tracing, set_trace_user): Ditto.
795 (set_trace_notes, set_trace_stop_notes): Ditto.
796
797 2012-05-21 Tom Tromey <tromey@redhat.com>
798
799 PR c++/7173:
800 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
801 types.
802 * value.h (value_cast_pointers): Update.
803 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
804 (value_cast): Update.
805 (update_search_result): New function.
806 (do_search_struct_field): New, from search_struct_field. Check
807 for ambiguous results.
808 (search_struct_field): Rewrite.
809 * infcall.c (value_arg_coerce): Update.
810 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
811 value_cast_pointers.
812 * ada-lang.c (ada_convert_actual): Update.
813
814 2012-05-21 Tom Tromey <tromey@redhat.com>
815
816 * macroexp.c (macro_stringify): Terminate the string.
817
818 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
819
820 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
821 Describe it.
822 * auto-load.c (auto_load_expand_dir_vars): New function.
823 (auto_load_safe_path_vec_update): Use it, remove the
824 substitute_path_component call thanks to it.
825 (auto_load_objfile_script): Remove the debug_file_directory processing.
826 Use auto_load_expand_dir_vars, remove the substitute_path_component
827 call thanks to it.
828 * configure: Regenerate.
829 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
830 path. Escape $ also for $debugdir.
831 (--with_auto_load_safe_path): Escape $ also for $debugdir.
832 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
833
834 2012-05-20 Doug Evans <dje@google.com>
835
836 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
837 before use. Check for symtab->includes == NULL before scanning it.
838
839 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
840
841 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
842
843 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
844
845 * NEWS: Add microMIPS support and "set mips compression",
846 "show mips compression" commands.
847 * mips-tdep.h (mips_isa): New enum.
848 (gdbarch_tdep): Add mips_isa.
849 (mips_pc_is_mips16): Update prototype.
850 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
851 * mips-tdep.c (mips_compression_mips16): New variable.
852 (mips_compression_micromips): Likewise.
853 (mips_compression_strings): Likewise.
854 (mips_compression_string): Likewise.
855 (is_mips16_isa, is_micromips_isa): New functions.
856 (is_mips16_addr): Rename to...
857 (is_compact_addr): ... this.
858 (unmake_mips16_addr): Likewise to...
859 (unmake_compact_addr): ... this.
860 (make_mips16_addr): Likewise to...
861 (make_compact_addr): ... this.
862 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
863 functions.
864 (mips_elf_make_msymbol_special): Handle microMIPS code.
865 (msymbol_is_special): Rename to...
866 (msymbol_is_mips16): ... this.
867 (mips_make_symbol_special, mips_pc_is_mips16): Update
868 accordingly.
869 (msymbol_is_mips, msymbol_is_micromips): New functions.
870 (mips16_to_32_reg): Rename to...
871 (mips_reg3_to_reg): ... this.
872 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
873 (mips_pc_isa): Likewise.
874 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
875 code.
876 (mips_fetch_instruction): Pass return status instead of printing
877 an error message if requested. Handle microMIPS code. Bail out
878 on an invalid ISA.
879 (micromips_op): New macro.
880 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
881 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
882 (b6s4_op, b7s3_reg): Likewise.
883 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
884 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
885 (mips_insn_size): New function.
886 (mips32_next_pc): Update mips_fetch_instruction call.
887 (micromips_relative_offset7): New function.
888 (micromips_relative_offset10): Likewise.
889 (micromips_relative_offset16): Likewise.
890 (micromips_pc_insn_size): Likewise.
891 (micromips_bc1_pc): Likewise.
892 (micromips_next_pc): Likewise.
893 (unpack_mips16): Update mips_fetch_instruction call.
894 (extended_mips16_next_pc): Update according to change to
895 mips16_to_32_reg.
896 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
897 code.
898 (mips16_scan_prologue): Update mips_fetch_instruction call.
899 Update according to change to mips16_to_32_reg.
900 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
901 (mips_insn16_frame_base_sniffer): Likewise.
902 (micromips_decode_imm9): New function.
903 (micromips_scan_prologue): Likewise.
904 (mips_micro_frame_cache): Likewise.
905 (mips_micro_frame_this_id): Likewise.
906 (mips_micro_frame_prev_register): Likewise.
907 (mips_micro_frame_sniffer): Likewise.
908 (mips_micro_frame_unwind): New variable.
909 (mips_micro_frame_base_address): New function.
910 (mips_micro_frame_base): New variable.
911 (mips_micro_frame_base_sniffer): New function.
912 (mips32_scan_prologue): Update mips_fetch_instruction call.
913 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
914 rather than for MIPS16.
915 (mips_insn32_frame_base_sniffer): Likewise.
916 (mips_addr_bits_remove): Handle microMIPS code.
917 (deal_with_atomic_sequence): Rename to...
918 (mips_deal_with_atomic_sequence): ... this. Update the type
919 of the variable used to hold an instruction. Remove the ISA bit
920 check. Update mips_fetch_instruction call.
921 (micromips_deal_with_atomic_sequence): New function.
922 (deal_with_atomic_sequence): Likewise.
923 (mips_about_to_return): Handle microMIPS code. Update
924 mips_fetch_instruction call.
925 (heuristic_proc_start): Check for the standard MIPS ISA rather
926 than for MIPS16. Update mips_pc_is_mips16 and
927 mips_fetch_instruction calls. Handle microMIPS code.
928 (mips_push_dummy_code): Handle microMIPS code.
929 (mips_eabi_push_dummy_call): Likewise.
930 (mips_o32_return_value): Update mips_pc_is_mips16 call.
931 (mips_o64_push_dummy_call): Handle microMIPS code.
932 (mips_o64_return_value): Update mips_pc_is_mips16 call.
933 (is_delayed): Remove function.
934 (mips_single_step_through_delay): Replace the call to is_delayed
935 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
936 Handle microMIPS code.
937 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
938 microMIPS code.
939 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
940 call.
941 (micromips_in_function_epilogue_p): New function.
942 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
943 call.
944 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
945 Handle microMIPS.
946 (gdb_print_insn_mips): Likewise.
947 (mips_breakpoint_from_pc): Likewise.
948 (mips_remote_breakpoint_from_pc): New function.
949 (mips32_instruction_has_delay_slot): Simplify making use of the
950 updated mips_fetch_instruction interface.
951 (micromips_instruction_has_delay_slot): New function.
952 (mips16_instruction_has_delay_slot): Simplify making use of the
953 updated mips_fetch_instruction interface.
954 (mips_adjust_breakpoint_address): Check for the standard MIPS
955 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
956 calls. Handle microMIPS code.
957 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
958 (mips_skip_trampoline_code): Handle microMIPS code.
959 (global_mips_compression): New function.
960 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
961 file flags. Register the microMIPS remote breakpoint handler
962 and heuristic frame unwinder.
963 (show_mips_compression): New function.
964 (_initialize_mips_tdep): Add the "set mips compression" and
965 "show mips compression" commands.
966
967 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
968
969 * ada-lang.c:
970 * ada-tasks.c:
971 * ada-varobj.c:
972 * amd64-darwin-tdep.c:
973 * arm-symbian-tdep.c:
974 * arm-tdep.c:
975 * avr-tdep.c:
976 * ax-gdb.c:
977 * bfin-linux-tdep.c:
978 * breakpoint.c:
979 * c-valprint.c:
980 * cli/cli-cmds.c:
981 * coffread.c:
982 * cp-support.c:
983 * cris-tdep.c:
984 * dwarf2-frame-tailcall.c:
985 * dwarf2-frame.c:
986 * dwarf2expr.c:
987 * dwarf2loc.c:
988 * dwarf2read.c:
989 * elfread.c:
990 * eval.c:
991 * expprint.c:
992 * f-valprint.c:
993 * frv-tdep.c:
994 * h8300-tdep.c:
995 * hppa-hpux-tdep.c:
996 * hppa-tdep.c:
997 * hppanbsd-tdep.c:
998 * i386-nto-tdep.c:
999 * i386-tdep.c:
1000 * i387-tdep.c:
1001 * ia64-tdep.c:
1002 * jit.c:
1003 * linespec.c:
1004 * linux-tdep.c:
1005 * lm32-tdep.c:
1006 * m2-valprint.c:
1007 * m32c-tdep.c:
1008 * m32r-rom.c:
1009 * m32r-tdep.c:
1010 * m68k-tdep.c:
1011 * m68klinux-tdep.c:
1012 * mi/mi-main.c:
1013 * microblaze-tdep.c:
1014 * mips-linux-tdep.c:
1015 * mips-tdep.c:
1016 * mn10300-tdep.c:
1017 * p-valprint.c:
1018 * parse.c:
1019 * ppc-linux-tdep.c:
1020 * ppc-sysv-tdep.c:
1021 * printcmd.c:
1022 * python/py-finishbreakpoint.c:
1023 * python/py-inferior.c:
1024 * python/py-infthread.c:
1025 * python/py-type.c:
1026 * python/python.c:
1027 * remote-fileio.c:
1028 * remote-m32r-sdi.c:
1029 * remote-mips.c:
1030 * reverse.c:
1031 * rl78-tdep.c:
1032 * rs6000-aix-tdep.c:
1033 * rs6000-tdep.c:
1034 * s390-tdep.c:
1035 * score-tdep.c:
1036 * sh64-tdep.c:
1037 * skip.c:
1038 * solib-darwin.c:
1039 * solib-dsbt.c:
1040 * solib-frv.c:
1041 * sparc-tdep.c:
1042 * spu-multiarch.c:
1043 * spu-tdep.c:
1044 * stack.c:
1045 * symfile.c:
1046 * symtab.c:
1047 * tic6x-tdep.c:
1048 * tracepoint.c:
1049 * v850-tdep.c:
1050 * valarith.c:
1051 * valprint.c:
1052 * value.c:
1053 * xcoffread.c:
1054 * xtensa-tdep.c:
1055 * ada-lang.c:
1056 * ada-tasks.c:
1057 * ada-varobj.c:
1058 * amd64-darwin-tdep.c:
1059 * arm-symbian-tdep.c:
1060 * arm-tdep.c: Delete unused variables.
1061
1062 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1063
1064 Rename $ddir to $datadir.
1065 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1066 * auto-load.c (auto_load_safe_path_vec_update)
1067 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1068 * configure: Regenerate.
1069 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1070 Likewise. Remove the 'use $ddir' help string.
1071
1072 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1073
1074 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1075 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1076
1077 2012-05-18 Tom Tromey <tromey@redhat.com>
1078
1079 PR exp/13907:
1080 * valprint.h (struct value_print_options) <symbol_print>: New
1081 field.
1082 * valprint.c (user_print_options): Add default for symbol_print.
1083 (show_symbol_print): New function.
1084 (generic_val_print): Respect symbol_print.
1085 (_initialize_valprint): Add "print symbol" setting.
1086 * f-valprint.c (f_val_print): Respect symbol_print.
1087 * c-valprint.c (c_val_print): Respect symbol_print.
1088 * NEWS: Update.
1089 * printcmd.c (print_address_symbolic): Return int. Ignore some
1090 zero-size symbols.
1091 (print_address_demangle): Return int.
1092 * defs.h: (print_address_symbolic): Return int.
1093 * value.h (print_address_demangle): Return int.
1094
1095 2012-05-18 Tom Tromey <tromey@redhat.com>
1096
1097 * valprint.c (val_print_string): Don't print leading space.
1098 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1099 print space before string or vtbl.
1100 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1101 before string.
1102 * jv-valprint.c (java_value_print): Print space before string.
1103 * go-valprint.c (print_go_string): Print space before string.
1104 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1105 space before string.
1106 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1107 space before string or vtbl.
1108 * auxv.c (fprint_target_auxv): Print space after address.
1109
1110 2012-05-18 Tom Tromey <tromey@redhat.com>
1111
1112 * printcmd.c (print_address_demangle): Remove special case for 0.
1113
1114 2012-05-18 Tom Tromey <tromey@redhat.com>
1115
1116 * printcmd.c (print_address_demangle): Add 'opts' argument.
1117 * p-valprint.c (pascal_val_print): Update.
1118 * jv-valprint.c (java_val_print): Update.
1119 * value.h: Update.
1120 * valprint.c (generic_val_print): Update.
1121 (print_function_pointer_address): Add 'options' argument. Remove
1122 'addressprint' argument. Update.
1123 * m2-valprint.c (print_unpacked_pointer): Update.
1124 * gnu-v3-abi.c (print_one_vtable): Update.
1125 (gnuv3_print_method_ptr): Update.
1126 * f-valprint.c (f_val_print): Update.
1127 * cp-valprint.c (cp_print_value_fields): Update.
1128 * valprint.h (print_function_pointer_address): Update.
1129 * c-valprint.c (c_val_print): Update.
1130
1131 2012-05-18 Tom Tromey <tromey@redhat.com>
1132
1133 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1134 directly corresponding to the found psymtab.
1135 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1136 (dw2_find_pc_sect_symtab): Use it.
1137 * block.h (blockvector_contains_pc): Declare.
1138 * block.c (find_block_in_blockvector): New function.
1139 (blockvector_for_pc_sect): Use it.
1140 (blockvector_contains_pc): New function.
1141
1142 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1143
1144 * mips-tdep.h (mips_write_pc): New prototype.
1145 * mips-tdep.c (mips_write_pc): Make external, add description.
1146 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1147 add description.
1148
1149 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1150
1151 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1152 mips_regnum->pc.
1153 (mips_unwind_pc, mips_write_pc): Likewise.
1154 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1155 gdbarch_read_pc.
1156
1157 2012-05-17 Joel Brobecker <brobecker@adacore.com>
1158
1159 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1160 proc_warn, proc_error, proc_get_status, proc_flags,
1161 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1162 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1163 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1164 proc_stop_process, proc_wait_for_stop, proc_run_process,
1165 proc_set_traced_signals, proc_set_traced_faults,
1166 proc_set_traced_sysentry, proc_set_traced_sysexit,
1167 proc_set_held_signals, proc_get_held_signals,
1168 proc_get_traced_signals, proc_get_traced_faults,
1169 proc_get_traced_sysentry, proc_get_traced_sysexit,
1170 proc_clear_current_fault, proc_set_current_signal,
1171 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1172 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1173 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1174 proc_get_current_thread, proc_get_current_thread,
1175 proc_get_current_thread, proc_update_threads,
1176 proc_update_threads, proc_update_threads, proc_update_threads,
1177 proc_iterate_over_threads, procfs_find_new_threads,
1178 procfs_pid_to_str): Make static. Remove advance declaration.
1179 (proc_cursig): Make static. Conditionalized defintion on
1180 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1181 (proc_syscall, proc_set_kill_on_last_close,
1182 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1183 proc_get_pending_signals, proc_get_signal_actions,
1184 proc_trace_signal, proc_ignore_signal): Delete.
1185
1186 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1187
1188 * coffread.c (cs_section_address): Passing proper argument for
1189 `bfd_get_section_vma'.
1190 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1191 `bfd_get_section_flags'.
1192 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1193 `bfd_get_section_vma'.
1194
1195 2012-05-16 Tom Tromey <tromey@redhat.com>
1196
1197 PR macros/13205:
1198 * macrotab.h: (macro_define_special): Declare.
1199 (enum macro_special_kind): New.
1200 (struct macro_definition) <argc, replacement>: Update comments.
1201 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1202 (macro_define_object_internal): New function.
1203 (macro_define_object): Use it.
1204 (macro_define_special): New function.
1205 (fixup_definition): New function.
1206 (macro_lookup_definition, foreach_macro_in_scope)
1207 (foreach_macro): Use fixup_definition.
1208 * macroexp.h (macro_stringify): Declare.
1209 * macroexp.c (free_buffer_return_text): New function.
1210 (stringify): Constify "arg".
1211 (macro_stringify): New function.
1212 * dwarf2read.c (macro_start_file): Call macro_define_special.
1213
1214 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1215 Maciej W. Rozycki <macro@mips.com>
1216
1217 * breakpoint.h (bp_location): Add related_address member.
1218 * inferior.h (get_return_value): Take a pointer to struct value
1219 instead of struct type for the function requested.
1220 * value.h (using_struct_return): Likewise.
1221 * gdbarch.sh (return_value): Take a pointer to struct value
1222 instead of struct type for the function requested.
1223 * breakpoint.c (set_breakpoint_location_function): Initialize
1224 related_address for bp_gnu_ifunc_resolver breakpoints.
1225 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1226 requested function's address to gdbarch_return_value.
1227 * eval.c (evaluate_subexp_standard): Pass the requested
1228 function's address to using_struct_return.
1229 * infcall.c (call_function_by_hand): Pass the requested
1230 function's address to using_struct_return and
1231 gdbarch_return_value.
1232 * infcmd.c (get_return_value): Take a pointer to struct value
1233 instead of struct type for the function requested.
1234 (print_return_value): Update accordingly.
1235 (finish_command_continuation): Likewise.
1236 * stack.c (return_command): Pass the requested function's
1237 address to using_struct_return and gdbarch_return_value.
1238 * value.c (using_struct_return): Take a pointer to struct value
1239 instead of struct type for the function requested. Pass the
1240 requested function's address to gdbarch_return_value.
1241 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1242 New function_value member, replacing function_type.
1243 (bpfinishpy_dealloc): Update accordingly.
1244 (bpfinishpy_pre_stop_hook): Likewise.
1245 (bpfinishpy_init): Likewise. Record the requested function's
1246 address.
1247 * mips-tdep.c (mips_fval_reg): New enum.
1248 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1249 words put in GP registers.
1250 (mips_o64_push_dummy_call): Update a comment.
1251 (mips_o32_return_value): Take a pointer to struct value instead
1252 of struct type for the function requested and use it to check if
1253 using the MIPS16 calling convention. Return the designated
1254 general purpose registers for floating-point values returned in
1255 MIPS16 mode.
1256 (mips_o64_return_value): Likewise.
1257 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1258 (ppc_sysv_abi_broken_return_value): Likewise.
1259 (ppc64_sysv_abi_return_value): Likewise.
1260 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1261 value instead of struct type for the function requested.
1262 * amd64-tdep.c (amd64_return_value): Likewise.
1263 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1264 * arm-tdep.c (arm_return_value): Likewise.
1265 * avr-tdep.c (avr_return_value): Likewise.
1266 * bfin-tdep.c (bfin_return_value): Likewise.
1267 * cris-tdep.c (cris_return_value): Likewise.
1268 * frv-tdep.c (frv_return_value): Likewise.
1269 * h8300-tdep.c (h8300_return_value): Likewise.
1270 (h8300h_return_value): Likewise.
1271 * hppa-tdep.c (hppa32_return_value): Likewise.
1272 (hppa64_return_value): Likewise.
1273 * i386-tdep.c (i386_return_value): Likewise.
1274 * ia64-tdep.c (ia64_return_value): Likewise.
1275 * iq2000-tdep.c (iq2000_return_value): Likewise.
1276 * lm32-tdep.c (lm32_return_value): Likewise.
1277 * m32c-tdep.c (m32c_return_value): Likewise.
1278 * m32r-tdep.c (m32r_return_value): Likewise.
1279 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1280 * m68k-tdep.c (m68k_return_value): Likewise.
1281 (m68k_svr4_return_value): Likewise.
1282 * m88k-tdep.c (m88k_return_value): Likewise.
1283 * mep-tdep.c (mep_return_value): Likewise.
1284 * microblaze-tdep.c (microblaze_return_value): Likewise.
1285 * mn10300-tdep.c (mn10300_return_value): Likewise.
1286 * moxie-tdep.c (moxie_return_value): Likewise.
1287 * mt-tdep.c (mt_return_value): Likewise.
1288 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1289 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1290 (ppc_sysv_abi_broken_return_value): Likewise.
1291 (ppc64_sysv_abi_return_value): Likewise.
1292 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1293 * rl78-tdep.c (rl78_return_value): Likewise.
1294 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1295 * rx-tdep.c (rx_return_value): Likewise.
1296 * s390-tdep.c (s390_return_value): Likewise.
1297 * score-tdep.c (score_return_value): Likewise.
1298 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1299 (sh_return_value_fpu): Likewise.
1300 * sh64-tdep.c (sh64_return_value): Likewise.
1301 * sparc-tdep.c (sparc32_return_value): Likewise.
1302 * sparc64-tdep.c (sparc64_return_value): Likewise.
1303 * spu-tdep.c (spu_return_value): Likewise.
1304 * tic6x-tdep.c (tic6x_return_value): Likewise.
1305 * v850-tdep.c (v850_return_value): Likewise.
1306 * vax-tdep.c (vax_return_value): Likewise.
1307 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1308 * xtensa-tdep.c (xtensa_return_value): Likewise.
1309 * gdbarch.c: Regenerate.
1310 * gdbarch.h: Regenerate.
1311
1312 2012-05-15 Tom Tromey <tromey@redhat.com>
1313
1314 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1315
1316 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1317
1318 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1319 of command in two error message.
1320
1321 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1322
1323 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1324
1325 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1326
1327 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1328
1329 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1330
1331 * NEWS (show auto-load scripts-directory): Add forgotten command.
1332
1333 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1334
1335 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1336 parameters.
1337
1338 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1339
1340 * amd64-tdep.c: Include features/i386/x32.c and
1341 features/i386/x32-avx.c.
1342 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1343 initialize_tdesc_x32_avx.
1344
1345 2012-05-14 Stan Shebs <stan@codesourcery.com>
1346
1347 Add dynamic printf.
1348 * breakpoint.h (enum bptype): New type bp_dprintf.
1349 (struct breakpoint): New field extra_string.
1350 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1351 (create_breakpoint): Add extra_string arg.
1352 * breakpoint.c (dprintf_breakpoint_ops): New.
1353 (is_breakpoint): Add bp_dprintf.
1354 (bpstat_what): Add dprintf case.
1355 (bptype_string): Ditto.
1356 (print_one_breakpoint_location): Ditto.
1357 (init_bp_location): Ditto.
1358 (bkpt_print_mention): Ditto.
1359 (dprintf_style_enums): New array.
1360 (dprintf_style): New global.
1361 (dprintf_function): New global.
1362 (dprintf_channel): New global.
1363 (update_dprintf_command_list): New function.
1364 (update_dprintf_commands): New function.
1365 (init_breakpoint_sal): Add extra_string argument, handle it.
1366 (create_breakpoint_sal): Add extra_string argument.
1367 (create_breakpoints_sal): Add extra_string argument, update callers.
1368 (find_condition_and_thread): Add extra argument.
1369 (create_breakpoint): Add extra_string argument, record it.
1370 (dprintf_command): New function.
1371 (break_command_1): Add arg to create_breakpoint call.
1372 (handle_gnu_v3_exceptions): Ditto.
1373 (trace_command): Ditto.
1374 (ftrace_command): Ditto.
1375 (strace_command): Ditto.
1376 (bkpt_print_mention): Add dprintf case.
1377 (create_breakpoint_sal_default): Add extra_string argument.
1378 (_initialize_breakpoint): Add new commands.
1379 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1380 * python/py-breakpoint.c (bppy_init): Ditto.
1381 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1382
1383 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1384
1385 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1386
1387 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1388
1389 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1390 unsigned long long.
1391
1392 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1393
1394 Add a new function gdb.find_pc_line to the Python API.
1395 * NEWS (Python Scripting): Add entry about the new function.
1396 * python/python.c (gdbpy_find_pc_line): New function which
1397 implements gdb.find_pc_line.
1398 (GdbMethods): Add entry for the new function.
1399
1400 2012-05-12 Pedro Alves <palves@redhat.com>
1401
1402 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1403 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1404
1405 2012-05-12 Eli Zaretskii <eliz@gnu.org>
1406
1407 * inferior.c: Include completer.h
1408 (initialize_inferiors): Set completer of add-inferior to
1409 filename_completer.
1410
1411 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1412
1413 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1414 gdbarch_ptr_bit for x32 core dump.
1415
1416 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1417
1418 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1419 and features/i386/x32-avx-linux.c.
1420
1421 2012-05-11 Stan Shebs <stan@codesourcery.com>
1422 Kwok Cheung Yeung <kcy@codesourcery.com>
1423
1424 * NEWS: Describe new info os commands.
1425 * common/linux-osdata.c (PID_T, TIME_T): Define.
1426 (MAX_PID_T_STRLEN): New.
1427 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1428 MAX_PID_T_STRLEN.
1429 (command_from_pid): Add comment. Change to use PID_T.
1430 (commandline_from_pid): Change to use PID_T.
1431 (user_from_pid): Add comment.
1432 (get_process_owner): Add comment. Change to use PID_T and
1433 MAX_PID_T_STRLEN.
1434 (get_number_of_cpu_cores): Add comment.
1435 (get_cores_used_by_process): Add comment. Change to use PID_T and
1436 MAX_PID_T_STRLEN.
1437 (linux_xfer_osdata_processes): Change to use PID_T and
1438 MAX_PID_T_STRLEN.
1439 (compare_processes): New function.
1440 (linux_xfer_osdata_processgroups): New function.
1441 (linux_xfer_osdata_threads): Change to use PID_T.
1442 (linux_xfer_osdata_fds): New function.
1443 (format_socket_state, print_sockets): New functions.
1444 (union socket_addr): New union.
1445 (linux_xfer_osdata_isockets): New function.
1446 (time_from_time_t, group_from_gid): New functions.
1447 (linux_xfer_osdata_shm): New function.
1448 (linux_xfer_osdata_sem): New function.
1449 (linux_xfer_osdata_msg): New function.
1450 (linux_xfer_osdata_modules): New function.
1451 (osdata_table): Add new entries.
1452 * common/buffer.c (buffer_xml_printf): Add support for long and
1453 long long format specifiers.
1454
1455 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1456
1457 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1458 (tdesc_x32_avx_linux): Likewise.
1459
1460 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1461
1462 Implement multi-component --with-auto-load-dir.
1463 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1464 entries.
1465 (--with-auto-load-safe-path): Update the default value description.
1466 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1467 New.
1468 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1469 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1470 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1471 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1472 "set auto-load scripts-directory".
1473 * config.in: Regenerate.
1474 * configure: Regenerate.
1475 * configure.ac (--with-auto-load-dir): New configure option.
1476 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1477
1478 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1479
1480 Provide $ddir substitution for --with-auto-load-safe-path.
1481 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1482 entries.
1483 * auto-load.c: Include observer.h.
1484 (auto_load_safe_path_vec_update): Call substitute_path_component for
1485 each component. New variable ddir_subst.
1486 (auto_load_gdb_datadir_changed): New function.
1487 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1488 AUTO_LOAD_SAFE_PATH. New comment.
1489 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1490 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1491 * config.in: Regenerate.
1492 * configure: Regenerate.
1493 * configure.ac (--auto-load-safe-path): Rename
1494 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1495 GDB_DATADIR/auto-load.
1496 * defs.h (substitute_path_component): New declaration.
1497 * top.c: Include observer.h.
1498 (set_gdb_datadir): New function.
1499 (init_main): Install it for "set data-directory".
1500 * utils.c (substitute_path_component): New function.
1501
1502 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1503
1504 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1505 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1506 DEBUG_FILE_DIRECTORY. Handle multiple components of
1507 DEBUG_FILE_DIRECTORY.
1508
1509 2012-05-10 Tom Tromey <tromey@redhat.com>
1510
1511 * dwarf2read.c (recursively_write_psymbols): New function.
1512 (write_psymtabs_to_index): Use it.
1513
1514 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1515 field.
1516 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1517 (load_partial_comp_unit): Update.
1518 (queue_comp_unit): Add argument 'pretend_language'.
1519 (process_queue): Update.
1520 (psymtab_to_symtab_1): Skip dependencies that have a user.
1521 (load_partial_comp_unit_reader): Give meaning to the 'data'
1522 argument.
1523 (load_full_comp_unit): Add 'pretend_language' argument.
1524 (process_full_comp_unit): Add 'pretend_language' argument. Set
1525 language on CU.
1526 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1527 Update.
1528 (maybe_queue_comp_unit): Add 'pretend_language' argument.
1529 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1530 Update.
1531 (prepare_one_comp_unit): Add 'pretend_language' argument.
1532
1533 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1534 (struct dwarf2_per_objfile) <just_read_cus>: New field.
1535 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1536 (dw2_do_instantiate_symtab): Check whether symtab was read in
1537 before queueing.
1538 (dw2_instantiate_symtab): Add assertion. Call
1539 process_cu_includes.
1540 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1541 (partial_symtab_p): New typedef.
1542 (set_partial_user): New function.
1543 (dwarf2_build_psymtabs_hard): Use set_partial_user.
1544 (scan_partial_symbols): Add imported CU to imported_symtabs.
1545 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1546 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1547 (get_symtab, recursively_compute_inclusions)
1548 (compute_symtab_includes, process_cu_includes)
1549 (process_imported_unit_die): New functions.
1550 (process_die) <DW_TAG_imported_unit>: New case.
1551 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1552
1553 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1554 comment.
1555 (struct partial_die_info) <locdesc>: Remove.
1556 <d>: New field.
1557 (process_psymtab_comp_unit): Add 'read_partial' argument.
1558 Update.
1559 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1560 (scan_partial_symbols): Handle DW_TAG_imported_unit.
1561 (add_partial_symbol): Update.
1562 (process_die): Handle DW_TAG_partial_unit.
1563 (read_file_scope): Update comment.
1564 (load_partial_dies): Handle DW_TAG_imported_unit.
1565 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
1566 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
1567
1568 2012-05-10 Tom Tromey <tromey@redhat.com>
1569
1570 * cc-with-dwz.sh: New file.
1571
1572 2012-05-10 Tom Tromey <tromey@redhat.com>
1573
1574 * symtab.h (struct symtab) <includes, user>: New fields.
1575 * block.h (struct block_iterator) <d, idx, which>: New fields.
1576 * block.c (initialize_block_iterator, find_iterator_symtab)
1577 (block_iterator_step, block_iter_name_step)
1578 (block_iter_match_step): New functions.
1579 (block_iterator_first, block_iterator_next)
1580 (block_iter_name_first, block_iter_name_next)
1581 (block_iter_match_first, block_iter_match_next): Rewrite.
1582 (get_block_symtab): New function.
1583
1584 2012-05-10 Tom Tromey <tromey@redhat.com>
1585
1586 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
1587 set_block_symtab.
1588 * jit.c (finalize_symtab): Use allocate_global_block,
1589 set_block_symtab.
1590 * buildsym.c (finish_block_internal): New function, from old
1591 finish_block.
1592 (finish_block): Rewrite.
1593 (end_symtab): Use finish_block_internal, set_block_symtab.
1594 * block.h (struct global_block): New.
1595 (allocate_global_block, set_block_symtab): Declare.
1596 * block.c (allocate_global_block, set_block_symtab): New
1597 functions.
1598
1599 2012-05-10 Tom Tromey <tromey@redhat.com>
1600
1601 * psymtab.c (partial_map_expand_apply): Add assertion.
1602 (partial_map_symtabs_matching_filename): Skip included psymtabs.
1603 (psymtab_to_symtab): Find unshared psymtab.
1604 (dump_psymtab): Print including psymtabs.
1605 (recursively_search_psymtabs): New function.
1606 (expand_symtabs_matching_via_partial): Use it.
1607 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
1608 fields.
1609 (enum psymtab_search_status): New.
1610
1611 2012-05-10 Tom Tromey <tromey@redhat.com>
1612
1613 * tracepoint.c (scope_info): Update.
1614 * symtab.c (lookup_block_symbol, iterate_over_symbols)
1615 (find_pc_sect_symtab, search_symbols)
1616 (default_make_symbol_completion_list_break_on)
1617 (make_file_symbol_completion_list): Update.
1618 * symmisc.c (dump_symtab_1): Update.
1619 * stack.c (print_frame_args, iterate_over_block_locals)
1620 (print_frame_labels, iterate_over_block_arg_vars): Update.
1621 * python/py-block.c (block_object) <dict>: Remove.
1622 <block>: New field.
1623 <iter>: Change type.
1624 (blpy_iter): Update.
1625 (blpy_block_syms_iternext): Update.
1626 * psymtab.c (map_block): Use block iterators.
1627 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
1628 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1629 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
1630 * infrun.c (check_exception_resume): Update.
1631 * cp-support.c (make_symbol_overload_list_block): Update.
1632 * coffread.c (patch_opaque_types): Update.
1633 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
1634 * block.h (struct block_iterator): New.
1635 (block_iterator_first, block_iterator_next, block_iter_name_first)
1636 (block_iter_name_next, block_iter_match_first)
1637 (block_iter_match_next): Declare.
1638 (ALL_BLOCK_SYMBOLS): Redefine.
1639 * block.c (block_iterator_first, block_iterator_next)
1640 (block_iter_name_first, block_iter_name_next)
1641 (block_iter_match_first, block_iter_match_next): New functions.
1642 * ada-lang.c (ada_add_block_symbols)
1643 (ada_make_symbol_completion_list): Use block iterator.
1644
1645 2012-05-10 Tom Tromey <tromey@redhat.com>
1646
1647 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
1648 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
1649 (lookup_partial_symbol, find_last_source_symtab_from_partial)
1650 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
1651 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
1652 Update.
1653
1654 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1655
1656 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
1657 print-file-var-lib2.c, print-file-var-main.c and
1658 print-file-var.exp (located in gdb/testsuite/gdb.base).
1659
1660 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1661
1662 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
1663 try locating the symbol in the symbol's own objfile first, before
1664 extending the search to all objfiles.
1665 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1666 out of lookup_symbol_aux_symtabs.
1667 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
1668 Replace extracted-out code by call to lookup_symbol_aux_objfile.
1669 Do not search EXCLUDE_OBJFILE.
1670 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
1671 (lookup_symbol_global): Search for matches in the block's objfile
1672 first, before searching all other objfiles.
1673
1674 2012-05-10 Tristan Gingold <gingold@adacore.com>
1675
1676 * printcmd.c (set_command): Add pre/post inc/dec.
1677
1678 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
1679
1680 * gdb.1: Document -ex option.
1681
1682 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1683
1684 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
1685 * inferior.h (AT_SYMBOL): Delete.
1686
1687 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1688
1689 * mips-tdep.c (mips_push_dummy_code): New function.
1690 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
1691 ON_STACK and install mips_push_dummy_code as our gdbarch
1692 push_dummy_code routine.
1693
1694 2012-05-09 Pedro Alves <palves@redhat.com>
1695
1696 * target.c (set_maintenance_target_async_permitted): Rename to ...
1697 (set_target_async_command): ... this.
1698 (show_maintenance_target_async_permitted): Rename to ...
1699 (show_target_async_command): ... this.
1700 (initialize_targets): Adjust.
1701
1702 2012-05-08 Doug Evans <dje@google.com>
1703
1704 * go-exp.y (classify_name): Add missing assignment of fields of
1705 yylval.ssym.
1706
1707 2012-05-08 Eli Zaretskii <eliz@gnu.org>
1708
1709 Display the ">" prompt in interactive mode while reading canned
1710 commands, even when the current interpreter is MI.
1711
1712 * interps.c (interp_set_temp): New function.
1713
1714 * interps.h (interp_set_temp): Add prototype.
1715
1716 * cli/cli-script.c (restore_interp): New cleanup function.
1717 (read_command_lines): Temporarily override the current interpreter
1718 with CLI and arrange for restoring the original one.
1719
1720 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
1721
1722 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
1723
1724 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
1725
1726 * probe.c (parse_probes): Move conditional to check for
1727 debuginfo files from here...
1728 * stap-probe.c (stap_get_probes): ... to here.
1729
1730 2012-05-07 Mark Kettenis <kettenis@gnu.org>
1731 H.J. Lu <hongjiu.lu@intel.com>
1732
1733 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
1734 `movl %esp, %ebp' for the X32 ABI.
1735
1736 2012-05-07 Tom Tromey <tromey@redhat.com>
1737
1738 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
1739 get_DW_TAG_name.
1740 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
1741 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
1742 (dwarf_stack_op_name): Remove.
1743 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
1744 (decode_locdesc): Use get_DW_OP_name.
1745 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
1746 (dwarf2_compile_expr_to_ax): Likewise.
1747 (disassemble_dwarf_expression): Likewise.
1748 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
1749
1750 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
1751
1752 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
1753 (sh_linux_sigtramp_cache): New function.
1754 (sh_linux_sigreturn_init): New function.
1755 (sh_linux_rt_sigreturn_init): New function.
1756 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
1757 patterns.
1758 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
1759 syscall codes.
1760 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
1761 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
1762 (sh_linux_init_abi): Add init calls to register new tramp_frame
1763 definitions under 32-bit SH, update comments.
1764
1765 2012-05-07 Pedro Alves <palves@redhat.com>
1766
1767 PR gdb/10952
1768
1769 * amd64-linux-tdep.c: Include glibc-tdep.h.
1770 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
1771 gdbarch_skip_solib_resolver callback.
1772
1773 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1774
1775 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
1776 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
1777 (show_auto_load_safe_path): Check any-directory by comparison with "/".
1778 (add_auto_load_safe_path): Change the error message.
1779 (_initialize_auto_load): Change the "safe-path" help text.
1780 * configure: Regenerate
1781 * configure.ac (--without-auto-load-safe-path): Set
1782 WITH_AUTO_LOAD_SAFE_PATH to /.
1783
1784 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
1785
1786 * stap-probe.h: Do not include unecessary `probe.h'.
1787
1788 2012-05-05 Alan Modra <amodra@gmail.com>
1789
1790 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
1791 bfd_und_section_ptr.
1792 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
1793 and bfd_com_section_ptr.
1794
1795 2012-05-04 Joel Brobecker <brobecker@adacore.com>
1796
1797 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
1798
1799 2012-05-04 Joel Brobecker <brobecker@adacore.com>
1800
1801 * windows-nat.h (segment_register_p_ftype): New typedef.
1802 (windows_set_segment_register_p): Add declaration.
1803 * windows-nat.c (segment_register_p): New static global.
1804 (windows_set_segment_register_p): New function.
1805 (do_windows_fetch_inferior_registers): Add special handling
1806 for segment registers.
1807 * amd64-windows-nat.c: #include "amd64-tdep.h".
1808 (amd64_windows_segment_register_p): New function.
1809 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
1810 * i386-windows-nat.c: #include "i386-tdep.h".
1811 (i386_windows_segment_register_p): New function.
1812 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
1813
1814 2012-05-04 Tristan Gingold <gingold@adacore.com>
1815
1816 * printcmd.c (set_command): Emit a warning if the expression is not
1817 an assignment.
1818
1819 2012-05-03 Joel Brobecker <brobecker@adacore.com>
1820
1821 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
1822 Make static.
1823
1824 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
1825
1826 * stap-probe.c (stap_is_operator): Change declaration.
1827 (stap_get_opcode): Change return value.
1828 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
1829 `stap_parse_argument_1'.
1830
1831 2012-05-03 Pedro Alves <pedro@codesourcery.com>
1832
1833 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
1834 debug log.
1835
1836 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
1837
1838 Add two new methods global_block and static_block to gdb.Symtab
1839 objects.
1840 * NEWS (Python scripting): Add entry about the new methods.
1841 * python/py-symtab.c (stpy_global_block): New function which
1842 implements the gdb.Symtab.global_block() method.
1843 (stpy_static_block): New function which implements the
1844 gdb.Symtab.static_block() method.
1845 (symtab_object_methods): Add entries for the two new methods.
1846
1847 2012-05-03 Doug Evans <dje@google.com>
1848
1849 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
1850 files.
1851
1852 2012-05-03 Yao Qi <yao@codesourcery.com>
1853
1854 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
1855 space.
1856 (i386_process_record): Ditto.
1857
1858 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1859
1860 * infcall.c (unwind_on_signal_p): Make static.
1861
1862 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1863
1864 * sol-thread.c (solaris_pid_to_str): Make static.
1865 (_initialize_sol_thread): Add prototype.
1866
1867 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1868
1869 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
1870
1871 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
1872
1873 * MAINTAINERS: Remove myself.
1874
1875 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1876
1877 Fix --without-auto-load-safe-path for MS-Windows host platform.
1878 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
1879
1880 2012-05-02 Eli Zaretskii <eliz@gnu.org>
1881
1882 * gdb_curses.h: Undefine KEY_EVENT before including curses
1883 headers. Move "#undef MOUSE_MOVED" before any curses header
1884 inclusion.
1885
1886 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1887
1888 * features/i386/i386-mmx-linux.c: Regenerate.
1889 * features/rs6000/powerpc-32.c: Likewise.
1890 * features/rs6000/powerpc-32l.c: Likewise.
1891 * features/rs6000/powerpc-403.c: Likewise.
1892 * features/rs6000/powerpc-403gc.c: Likewise.
1893 * features/rs6000/powerpc-405.c: Likewise.
1894 * features/rs6000/powerpc-505.c: Likewise.
1895 * features/rs6000/powerpc-601.c: Likewise.
1896 * features/rs6000/powerpc-602.c: Likewise.
1897 * features/rs6000/powerpc-603.c: Likewise.
1898 * features/rs6000/powerpc-604.c: Likewise.
1899 * features/rs6000/powerpc-64.c: Likewise.
1900 * features/rs6000/powerpc-64l.c: Likewise.
1901 * features/rs6000/powerpc-750.c: Likewise.
1902 * features/rs6000/powerpc-860.c: Likewise.
1903 * features/rs6000/powerpc-e500.c: Likewise.
1904 * features/rs6000/powerpc-e500l.c: Likewise.
1905 * features/rs6000/powerpc-isa205-32l.c: Likewise.
1906 * features/rs6000/powerpc-isa205-64l.c: Likewise.
1907 * features/rs6000/rs6000.c: Likewise.
1908
1909 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1910
1911 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
1912 variable.
1913 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
1914 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
1915 (stap_parse_argument) <e>: Likewise.
1916 (handle_stap_probe) <byte_order>: Likewise.
1917
1918 2012-04-30 Doug Evans <dje@google.com>
1919
1920 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
1921 init_and_read_dies_worker. All callers updated.
1922 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
1923 replaced with init_cutu_and_read_dies.
1924 (load_partial_comp_unit): Pass 1 for use_existing_cu.
1925 (find_partial_die): Remove FIXME. Don't free current CU.
1926
1927 2012-04-30 Sterling Augustine <saugustine@google.com>
1928
1929 * contrib: New directory.
1930 * contrib/test_pubnames_and_indexes.py: New file.
1931
1932 2012-04-30 Doug Evans <dje@google.com>
1933
1934 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
1935 All callers updated.
1936 (init_cu_die_reader): Verify the section is non-empty.
1937 (dwarf_decode_line_header): Don't dereference section->asection
1938 until we know the section is present.
1939
1940 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
1941
1942 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
1943 probes.
1944
1945 2012-04-29 Yao Qi <yao@codesourcery.com>
1946
1947 * gdb-code-style.el: New hook gdb-markup-hook
1948 and gdb-comment-hook.
1949
1950 2012-04-28 Doug Evans <dje@google.com>
1951
1952 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
1953 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
1954 objfile->obfd.
1955 * symfile.h (dwarf2_debug_sections): New member addr.
1956 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
1957 (ctx_no_get_addr_index): New function.
1958 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
1959 (ctx_no_get_addr_index): Declare.
1960 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
1961 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
1962 (dwarf_expr_ctx_funcs): Update.
1963 (needs_get_addr_index): New function.
1964 (needs_frame_ctx_funcs): Update.
1965 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
1966 * dwarf2read.c: #include "gdbcore.h".
1967 (dwarf2_per_objfile): New members addr, dwo_files.
1968 (dwarf2_elf_names): Add entry for addr.
1969 (struct dwo_section_names): New type.
1970 (dwo_section_names): New static global.
1971 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
1972 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
1973 old debug_types_section member updated to use this.
1974 Rename member debug_types_section to info_or_types_section,
1975 all uses updated.
1976 (signatured_type): Rename member type_offset to type_offset_in_tu,
1977 all uses updated. New member type_offset_in_section.
1978 (struct dwo_sections): New type.
1979 (struct dwo_unit): New type.
1980 (struct dwo_file): New type.
1981 (die_reader_specs): New member dwo_file.
1982 (dwarf2_locate_sections): Watch for .debug_addr.
1983 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
1984 (dwarf2_read_section): Get bfd of section from bfd's asection,
1985 instead of objfile.
1986 (create_cus_from_index): Initialize the_cu->info_or_types_section.
1987 (create_signatured_type_table_from_index): Initialize
1988 sig_type->info_or_types_section.
1989 (dw2_get_file_names): Statement lists for type units with DWO files
1990 live in the DWO file.
1991 (create_debug_types_hash_table): New function.
1992 (create_all_type_units): Rewrite.
1993 (init_cu_die_reader): New arg dwo_file, all callers updated.
1994 (init_and_read_dies_worker): Get section from
1995 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
1996 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
1997 continue reading the CU/TU from there.
1998 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
1999 updated. Get section from this_cu->info_or_types_section.
2000 (create_all_comp_units): Initialize this_cu->info_or_types_section.
2001 (skip_one_die): New cases DW_FORM_GNU_addr_index,
2002 DW_FORM_GNU_str_index.
2003 (hash_dwo_file, eq_dwo_file): New functions.
2004 (allocate_dwo_file_hash_table): New function.
2005 (hash_dwo_unit, eq_dwo_unit): New functions.
2006 (allocate_dwo_unit_table): New function.
2007 (dwarf2_locate_dwo_sections): New function.
2008 (struct create_dwo_info_table_data): New type.
2009 (create_debug_info_hash_table_reader): New function.
2010 (create_debug_info_hash_table): New function.
2011 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2012 (lookup_dwo_file): New function.
2013 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2014 (free_dwo_file, free_dwo_file_cleanup): New functions.
2015 (free_dwo_file_from_slot, free_dwo_files): New functions.
2016 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2017 (dwarf2_record_block_ranges): Ditto.
2018 (read_partial_die): Ditto.
2019 (process_enumeration_scope): Update to use type_offset_in_section.
2020 (read_full_die_1): New function.
2021 (read_full_die): Rewrite.
2022 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2023 DW_FORM_GNU_str_index.
2024 (read_addr_index_1, read_addr_index): New functions.
2025 (read_addr_index_from_leb128): New function.
2026 (struct dwarf2_read_addr_index_data): New type.
2027 (dwarf2_read_addr_index_reader): New function.
2028 (dwarf2_read_addr_index): New function.
2029 (read_str_index): New function.
2030 (leb128_size): New function.
2031 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2032 If processing a type unit from a DWO file, get the line section
2033 from the DWO file.
2034 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2035 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2036 DW_FORM_GNU_str_index.
2037 (lookup_die_type): Check whether section offset of type's die is
2038 known before looking it up. Remove assert. Condition can
2039 legimately happen for inter-cu type references.
2040 (dwarf_attr_name): Handle Fission attributes.
2041 (dwarf_form_name): Handle Fission forms.
2042 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2043 DW_FORM_GNU_str_index.
2044 (follow_die_sig): Update to use type_offset_in_section.
2045 (decode_locdesc): New case DW_OP_GNU_addr_index.
2046 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2047 DW_FORM_GNU_str_index.
2048 (cu_debug_loc_section): New function.
2049 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2050 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2051 Free DWO files if present.
2052 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2053
2054 Refactor DIE reading.
2055 * dwarf2read.c (dwarf2_per_objfile): Replace members
2056 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2057 (die_reader_specs): New member "die_section". Temporarily make
2058 member "buffer" non-const, pending constifying all info_ptr uses.
2059 (die_reader_func_ftype): New typedef.
2060 (dw2_get_file_names_reader): New function.
2061 (dw2_get_file_names): Rewrite.
2062 (read_and_check_type_unit_head): Rename arg type_offset to
2063 type_offset_in_tu.
2064 (create_all_type_units): Improve debugging message.
2065 Improve dummy type unit check.
2066 (init_cu_die_reader): New arg "section". All callers updated.
2067 (init_and_read_dies_worker): New function.
2068 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2069 (init_cutu_and_read_dies_no_follow): New function.
2070 (init_cutu_and_read_dies_simple): New function.
2071 (process_psymtab_comp_unit_reader): New function.
2072 (process_psymtab_comp_unit): Delete args section,
2073 is_debug_types_section. Rewrite. All callers updated.
2074 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2075 All callers updated. Rewrite.
2076 (load_partial_comp_unit_reader): New function.
2077 (load_partial_comp_unit): Rewrite.
2078 (skip_children): New arg reader. Delete args buffer, cu.
2079 All callers updated.
2080 (skip_one_die): New arg reader. Delete args buffer, cu.
2081 All callers updated.
2082 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2083 All callers updated.
2084 (load_full_comp_unit_reader): New function.
2085 (load_full_comp_unit): Rewrite.
2086 (read_comp_unit): Delete.
2087 (read_die_and_children_1): Delete, contents moved ...
2088 (read_die_and_children): ... here.
2089 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2090 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2091 All callers updated.
2092 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2093 All callers updated.
2094 (find_partial_die): Rewrite load_all_dies support.
2095 (read_attribute_value): New arg reader. Delete args abfd, cu.
2096 All callers updated.
2097 (read_attribute): New arg reader. Delete args abfd, cu.
2098 All callers updated.
2099 (load_full_type_unit): Add assert.
2100 (read_signatured_type_reader): New function.
2101 (read_signatured_type): Rewrite.
2102 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2103 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2104 All callers updated. Set per_cu->cu = NULL after freeing it.
2105 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2106 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2107 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2108 (set_die_type): Update.
2109 (get_die_type_at_offset): Update.
2110 (read_file_scope): Call prepare_one_comp_unit.
2111 (read_type_unit_scope): Ditto.
2112 (prepare_one_comp_unit): Set producer if present.
2113
2114 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2115
2116 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2117 gettext function on `error'.
2118
2119 2012-04-27 Doug Evans <dje@google.com>
2120
2121 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2122 is empty.
2123
2124 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2125 Tom Tromey <tromey@redhat.com>
2126
2127 * breakpoint.c (struct breakpoint_objfile_data)
2128 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2129 <exception_probes>: New fields.
2130 (free_breakpoint_probes): New function.
2131 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2132 `_Unwind_DebugHook'.
2133 (create_exception_master_breakpoint): Likewise.
2134 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2135 * infrun.c: Including necessary header files for handling SystemTap
2136 probes.
2137 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2138 via SystemTap probes.
2139 (check_exception_resume): Remove `func' argument. Handle exception
2140 unwinding breakpoint set via a SystemTap probe.
2141 (insert_exception_resume_from_probe): New function.
2142
2143 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2144 Tom Tromey <tromey@redhat.com>
2145 Jan Kratochvil <jan.kratochvil@redhat.com>
2146
2147 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2148 (COMMON_OBS): Likewise.
2149 (HFILES_NO_SRCDIR): Add `probe'.
2150 * NEWS: Mention support for static and SystemTap probes.
2151 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2152 SystemTap probes' arguments parser.
2153 * arm-linux-tdep.c: Including headers needed to perform the parsing
2154 of SystemTap probes' arguments.
2155 (arm_stap_is_single_operand): New function.
2156 (arm_stap_parse_special_token): Likewise.
2157 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2158 probes' arguments parser.
2159 * ax-gdb.c (require_rvalue): Removing static declaration.
2160 (gen_expr): Likewise.
2161 * ax-gdb.h (gen_expr): Declaring function.
2162 (require_rvalue): Likewise.
2163 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2164 (bkpt_probe_breakpoint_ops): New variable.
2165 (momentary_breakpoint_from_master): Set the `probe' value.
2166 (add_location_to_breakpoint): Likewise.
2167 (break_command_1): Using proper breakpoint_ops according to the
2168 argument passed by the user in the command line.
2169 (bkpt_probe_insert_location): New function.
2170 (bkpt_probe_remove_location): Likewise.
2171 (bkpt_probe_create_sals_from_address): Likewise.
2172 (bkpt_probe_decode_linespec): Likewise.
2173 (tracepoint_probe_create_sals_from_address): Likewise.
2174 (tracepoint_probe_decode_linespec): Likewise.
2175 (tracepoint_probe_breakpoint_ops): New variable.
2176 (trace_command): Using proper breakpoint_ops according to the
2177 argument passed by the user in the command line.
2178 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2179 static probes on breakpoints and tracepoints.
2180 * breakpoint.h (struct bp_location) <probe>: New field.
2181 * cli-utils.c (skip_spaces_const): New function.
2182 (extract_arg): Likewise.
2183 * cli-utils.h (skip_spaces_const): Likewise.
2184 (extract_arg): Likewise.
2185 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2186 * configure.ac: Append `stap-probe.o' to be generated when ELF
2187 support is present.
2188 * configure: Regenerate.
2189 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2190 * elfread.c: Include `probe.h' and `arch-utils.h'.
2191 (probe_key): New variable.
2192 (elf_get_probes): New function.
2193 (elf_get_probe_argument_count): Likewise.
2194 (elf_evaluate_probe_argument): Likewise.
2195 (elf_compile_to_ax): Likewise.
2196 (elf_symfile_relocate_probe): Likewise.
2197 (stap_probe_key_free): Likewise.
2198 (elf_probe_fns): New variable.
2199 (elf_sym_fns): Add `sym_probe_fns' value.
2200 (elf_sym_fns_lazy_psyms): Likewise.
2201 (elf_sym_fns_gdb_index): Likewise.
2202 (_initialize_elfread): Initialize objfile cache for static
2203 probes.
2204 * gdb_vecs.h (struct probe): New forward declaration.
2205 (probe_p): New VEC declaration.
2206 * gdbarch.c: Regenerate.
2207 * gdbarch.h: Regenerate.
2208 * gdbarch.sh (stap_integer_prefix): New variable.
2209 (stap_integer_suffix): Likewise.
2210 (stap_register_prefix): Likewise.
2211 (stap_register_suffix): Likewise.
2212 (stap_register_indirection_prefix): Likewise.
2213 (stap_register_indirection_suffix): Likewise.
2214 (stap_gdb_register_prefix): Likewise.
2215 (stap_gdb_register_suffix): Likewise.
2216 (stap_is_single_operand): New function.
2217 (stap_parse_special_token): Likewise.
2218 (struct stap_parse_info): Forward declaration.
2219 * i386-tdep.c: Including headers needed to perform the parsing
2220 of SystemTap probes' arguments.
2221 (i386_stap_is_single_operand): New function.
2222 (i386_stap_parse_special_token): Likewise.
2223 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2224 probes' arguments parser.
2225 * i386-tdep.h (i386_stap_is_single_operand): New function.
2226 (i386_stap_parse_special_token): Likewise.
2227 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2228 * mipsread.c (ecoff_sym_fns): Likewise.
2229 * objfiles.c (objfile_relocate1): Support relocation for static
2230 probes.
2231 * parse.c (prefixify_expression): Remove static declaration.
2232 (initialize_expout): Likewise.
2233 (reallocate_expout): Likewise.
2234 * parser-defs.h (initialize_expout): Declare function.
2235 (reallocate_expout): Likewise.
2236 (prefixify_expression): Likewise.
2237 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2238 of SystemTap probes' arguments.
2239 (ppc_stap_is_single_operand): New function.
2240 (ppc_stap_parse_special_token): Likewise.
2241 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2242 probes' arguments parser.
2243 * probe.c: New file, for generic statically defined probe support.
2244 * probe.h: Likewise.
2245 * s390-tdep.c: Including headers needed to perform the parsing of
2246 SystemTap probes' arguments.
2247 (s390_stap_is_single_operand): New function.
2248 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2249 probes' arguments parser.
2250 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2251 * stap-probe.c: New file, for SystemTap probe support.
2252 * stap-probe.h: Likewise.
2253 * symfile.h: Include `gdb_vecs.h'.
2254 (struct sym_probe_fns): New struct.
2255 (struct sym_fns) <sym_probe_fns>: New field.
2256 * symtab.c (init_sal): Initialize `probe' field.
2257 * symtab.h (struct probe): Forward declaration.
2258 (struct symtab_and_line) <probe>: New field.
2259 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2260 locations.
2261 (stop_tracing): Likewise.
2262 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2263
2264 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2265 Tom Tromey <tromey@redhat.com>
2266
2267 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2268 and to compile agent expressions.
2269 * infrun.c (siginfo_make_value): New argument `ignore'.
2270 (siginfo_funcs): New struct.
2271 (_initialize_infrun): New argument when calling
2272 `create_internalvar_type_lazy'.
2273 * thread.c (thread_id_make_value): New argument `ignore'.
2274 (thread_funcs): New struct.
2275 (_initialize_thread): New argument when calling
2276 `create_internalvar_type_lazy'.
2277 * tracepoint.c (sdata_make_value): New argument `ignore'.
2278 (sdata_funcs): New struct.
2279 (_initialize_tracepoint): New argument when calling
2280 `create_internalvar_type_lazy'.
2281 * value.c (make_value): New struct.
2282 (create_internalvar_type_lazy): New argument `data'.
2283 (compile_internalvar_to_ax): New function.
2284 (value_of_internalvar): Properly handling `make_value' case.
2285 (clear_internalvar): Likewise.
2286 (show_convenience): Adding `TRY_CATCH' block.
2287 * value.h (internalvar_make_value): Delete, replace by...
2288 (struct internalvar_funcs): ... this.
2289 (create_internalvar_type_lazy) <fun>: Delete argument.
2290 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2291 (compile_internalvar_to_ax): New function.
2292 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2293 (tlb_funcs): New struct.
2294 (_initialize_windows_tdep): New argument when calling
2295 `create_internalvar_type_lazy'.
2296
2297 2012-04-27 Mark Wielaard <mjw@redhat.com>
2298
2299 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2300 see whether it is an address or a constant offset from DW_AT_low_pc.
2301 (dwarf2_record_block_ranges): Likewise.
2302 (read_partial_die): Likewise.
2303
2304 2012-04-26 Mark Wielaard <mjw@redhat.com>
2305
2306 * MAINTAINERS (Write After Approval): Add myself to the list.
2307
2308 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2309
2310 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2311 (proc_prettyprint_signal): Likewise.
2312 (proc_prettyprint_faultset): Likewise.
2313 (proc_prettyprint_fault): Likewise.
2314 (proc_prettyprint_actionset): Likewise.
2315 (proc_prettyprint_flags): Move to new proc-flags.c section.
2316 (proc_prettyfprint_flags): New prototype.
2317 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2318 (proc_syscall, proc_cursig): Likewise.
2319 (proc_set_kill_on_last_close): Likewise.
2320 (proc_unset_kill_on_last_close): Likewise.
2321 (proc_set_watchpoint): Make static.
2322 (proc_delete_dead_threads): Likewise.
2323 (procfs_set_watchpoint): Likewise.
2324 (_initialize_procfs): Add prototype.
2325 * proc-events.c: Include proc-utils.h.
2326 (init_syscall_table): Make static.
2327 * proc-api.c (_initialize_proc_api): Add prototype.
2328 * proc-flags.c: Include proc-utils.h.
2329
2330 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2331
2332 * configure.ac: Add AC_ARG_PROGRAM.
2333 * configure: Regenerate.
2334
2335 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2336
2337 Fix DW_AT_lower_bound defaults for DWARF-4+.
2338 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2339 high. New variable low_default_is_valid. Implement DWARF-4+
2340 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2341 no default by the DWARF standard.
2342
2343 2012-04-26 Maciej W. Rozycki <macro@mips.com>
2344 Maciej W. Rozycki <macro@codesourcery.com>
2345
2346 * infrun.c (handle_inferior_event): Move the check for return
2347 trampolines ahead of the check for function trampolines.
2348 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2349 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2350 (mips_str_mips16_ret_stub): Likewise.
2351 (mips_str_call_fp_stub): Likewise.
2352 (mips_str_call_stub): Likewise.
2353 (mips_str_fn_stub): Likewise.
2354 (mips_str_pic): Likewise.
2355 (mips_in_frame_stub): New function.
2356 (mips_unwind_pc): Return the return address rather than the PC
2357 if the PC of an intermediate frame is inside a call thunk.
2358 (mips_is_stub_suffix): New function.
2359 (mips_is_stub_mode): Likewise.
2360 (mips_get_mips16_fn_stub_pc): Likewise.
2361 (mips_skip_mips16_trampoline_code): Update to handle all the
2362 currently generated stub types. Don't recurse into __fn_stub
2363 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2364 Use cooked register accesses.
2365 (mips_in_return_stub): Reintroduce function.
2366 (mips_skip_trampoline_code): Traverse trampolines recursively.
2367 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2368
2369 2012-04-26 Joel Brobecker <brobecker@adacore.com>
2370
2371 GDB 7.4.1 released.
2372
2373 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2374
2375 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2376 * features/arm-with-m-vfp-d16.xml: New file. Describes
2377 Cortex-M with VFPv4-sp-d16 FPU register layout.
2378 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2379 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2380 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2381 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2382 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2383
2384 2012-04-25 Doug Evans <dje@google.com>
2385
2386 * cli/cli-decode.c (print_doc_line): Use stream instead of
2387 current_uiout.
2388
2389 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2390
2391 * features/arm-with-iwmmxt.c: Regenerate.
2392 * features/arm-with-m-fpa-layout.c: Likewise.
2393 * features/arm-with-m.c: Likewise.
2394 * features/arm-with-neon.c: Likewise.
2395 * features/arm-with-vfpv2.c: Likewise.
2396 * features/arm-with-vfpv3.c: Likewise.
2397 * features/mips-dsp-linux.c: Likewise.
2398 * features/mips-linux.c: Likewise.
2399 * features/mips64-dsp-linux.c: Likewise.
2400 * features/mips64-linux.c: Likewise.
2401 * features/s390-linux32.c: Likewise.
2402 * features/s390-linux32v1.c: Likewise.
2403 * features/s390-linux32v2.c: Likewise.
2404 * features/s390-linux64.c: Likewise.
2405 * features/s390-linux64v1.c: Likewise.
2406 * features/s390-linux64v2.c: Likewise.
2407 * features/s390x-linux64.c: Likewise.
2408 * features/s390x-linux64v1.c: Likewise.
2409 * features/s390x-linux64v2.c: Likewise.
2410 * features/tic6x-c62x-linux.c: Likewise.
2411 * features/tic6x-c62x.c: Likewise.
2412 * features/tic6x-c64x-linux.c: Likewise.
2413 * features/tic6x-c64x.c: Likewise.
2414 * features/tic6x-c64xp-linux.c: Likewise.
2415 * features/tic6x-c64xp.c: Likewise.
2416 * target-descriptions.c: Only generate `field_type' and `type'
2417 variables when needed.
2418
2419 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2420
2421 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2422
2423 2012-04-25 Doug Evans <dje@google.com>
2424
2425 Initial pass at Go language support.
2426 * NEWS: Mention Go.
2427 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2428 go-valprint.c.
2429 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2430 (YYFILES): Add go-exp.c.
2431 (YYOBJ): Add go-exp.o.
2432 (local-maintainer-clean): Delete go-exp.c.
2433 * defs.h (enum language): Add language_go.
2434 * dwarf2read.c: #include "go-lang.h".
2435 (fixup_go_packaging): New function.
2436 (process_full_comp_unit): Call it when processing Go CUs.
2437 (dwarf2_physname): Add Go support.
2438 (read_file_scope): Handle missing language spec for GNU Go.
2439 (set_cu_language): Handle DW_LANG_Go.
2440 * go-exp.y: New file.
2441 * go-lang.h: New file.
2442 * go-lang.c: New file.
2443 * go-typeprint.c: New file.
2444 * go-valprint.c: New file.
2445 * symtab.c: #include "go-lang.h".
2446 (symbol_set_language): Handle language_go.
2447 (symbol_find_demangled_name, symbol_set_names): Ditto.
2448 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2449
2450 2012-04-24 Jim Meyering <meyering@redhat.com>
2451
2452 avoid a few strncpy-induced buffer overruns
2453 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2454 fname and psargs before trying to concatenate.
2455 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2456 "name" before applying strchr.
2457
2458 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2459
2460 * CONTRIBUTE: Use unified diff instead of context diff when
2461 generating patches.
2462
2463 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2464
2465 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2466 code. Handle JR.HB correctly.
2467
2468 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2469
2470 * mips-tdep.c
2471 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2472 with the other MIPS16 helpers.
2473
2474 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2475
2476 * observer.sh: Conditionally declare `args', thus cleaning up
2477 unused instances of this variable.
2478
2479 2012-04-24 Yao Qi <yao@codesourcery.com>
2480
2481 Revert this patch to allow breakpoint always-inserted
2482 in record target.
2483 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2484 * breakpoint.c: Include record.h.
2485 (breakpoints_always_inserted_mode): Return false when the record
2486 target is in use.
2487
2488 * breakpoint.c (iterate_over_bp_locations): New.
2489 * breakpoint.h: Declare.
2490 New typedef walk_bp_location_callback.
2491 * record.c (record_open): Call record_init_record_breakpoints.
2492 (record_sync_record_breakpoints): New.
2493 (record_init_record_breakpoints): New.
2494 * NEWS: Mention supporting breakpoint always-inserted mode in
2495 record target.
2496
2497 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2498
2499 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2500 any thread.
2501
2502 2012-04-24 Yao Qi <yao@codesourcery.com>
2503
2504 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2505 (is_catchpoint): ... it.
2506 (print_one_breakpoint_location): Caller update.
2507 * breakpoint.h: Update declaration.
2508
2509 2012-04-23 David S. Miller <davem@davemloft.net>
2510
2511 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2512
2513 2012-04-23 Tom Tromey <tromey@redhat.com>
2514
2515 * buildsym.c (add_free_pendings): Remove.
2516 * buildsym.h (add_free_pendings): Remove.
2517
2518 2012-04-23 Doug Evans <dje@google.com>
2519
2520 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2521 attr.u.unsnd instead of attr.u.addr.
2522 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2523 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2524 DW_FORM_ref_udata.
2525 (dump_die_shallow): Update cases DW_FORM_ref_addr,
2526 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
2527 DW_FORM_ref_udata.
2528 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2529
2530 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
2531
2532 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2533 (mips_o32_return_value): Likewise.
2534 (mips_o64_return_value): Likewise.
2535
2536 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
2537
2538 * ada-lang.c (ada_evaluate_subexp): Add cases for
2539 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2540 their treatment in eval.c.
2541
2542 2012-04-21 David S. Miller <davem@davemloft.net>
2543
2544 * sparc-tdep.c (X_DISP10): Define.
2545 (sparc_analyze_control_transfer): Handle compare-and-branch.
2546
2547 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
2548
2549 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2550 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2551
2552 2012-04-20 Nigel Stephens <nigel@mips.com>
2553 Maciej W. Rozycki <macro@codesourcery.com>
2554
2555 * mips-tdep.c (mips_float_register_p): New function.
2556 (mips_convert_register_float_case_p): Use mips_float_register_p.
2557 (mips_register_type): Likewise.
2558 (mips_print_register): Likewise.
2559 (print_gp_register_row): Likewise.
2560 (mips_print_registers_info): Likewise.
2561
2562 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
2563
2564 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2565 of mips16 symbols.
2566
2567 2012-04-20 Andrew Pinski <apinski@cavium.com>
2568
2569 * MAINTAINERS (Write After Approval): Add myself to the list.
2570
2571 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2572
2573 * MAINTAINERS: Update my e-mail address.
2574
2575 2012-04-20 Pedro Alves <palves@redhat.com>
2576
2577 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
2578 $srcdir.
2579 * configure: Regenerate.
2580
2581 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2582
2583 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
2584 declaration.
2585 * gdb_vecs.h: Declare `const_char_ptr' VEC.
2586
2587 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2588
2589 Fix compilation compatibility with python-2.4
2590 * python/py-type.c (convert_field): Cast ADDRSTRING for
2591 PyObject_SetAttrString as non-const. New comment.
2592
2593 2012-04-19 Tom Tromey <tromey@redhat.com>
2594
2595 * top.c (quit_target): Use all_cleanups.
2596 * main.c (captured_command_loop): Use all_cleanups.
2597 * exceptions.c (throw_exception): Use all_cleanups.
2598
2599 2012-04-19 Pedro Alves <palves@redhat.com>
2600
2601 * Makefile.in (GNULIB_BUILDDIR): New.
2602 (LIBGNU, INCGNU, GNULIB_H): Adjust.
2603 (SUBDIRS): Add $(GNULIB_BUILDDIR).
2604 (CLEANDIRS). Remove gnulib/import.
2605 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
2606 (all-lib): Ditto.
2607 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
2608 (gnulib/import/Makefile): Replace gnulib/import with
2609 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
2610 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
2611 (aclocal_m4_deps): Remove the gnulib dependencies. Add
2612 acx_configure_dir.m4.
2613 * acinclude.m4: Include acx_configure_dir.m4.
2614 * acx_configure_dir.m4: New file.
2615 * aclocal.m4: Regenerate.
2616 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
2617 calls. Configure gnulib using ACX_CONFIGURE_DIR.
2618 (GNULIB): New variable.
2619 (GNULIB_STDINT_H): Adjust.
2620 (AC_OUTPUT): Don't output gnulib/Makefile.
2621 * gdb/defs.h: Include build-gnulib/config.h.
2622 * aclocal.m4: Regenerate.
2623 * config.in: Regenerate.
2624 * configure: Regenerate.
2625
2626 * gnulib/Makefile.in: New file.
2627 * gnulib/configure.ac: New file.
2628 * gnulib/aclocal.m4: New file.
2629 * gnulib/config.in: New file.
2630 * gnulib/configure: New file.
2631 * gnulib/: Re-run gnulib-tool to adjust.
2632
2633 2012-04-19 Doug Evans <dje@google.com>
2634
2635 * cleanups.h (struct cleanup): Move to cleanups.c.
2636 (make_cleanup_dtor_ftype): New typedef.
2637 (make_cleanup_dtor): Use it.
2638 (ALL_CLEANUPS): Replace with ...
2639 (all_cleanups): ... this. Declare. All uses updated.
2640 * cleanups.c: #include "gdb_assert.h".
2641 (sentinel_cleanup): New static global.
2642 (SENTINEL_CLEANUP): Define.
2643 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
2644 (make_my_cleanup2): Assert result is non-NULL.
2645 (all_cleanups): New function.
2646 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
2647 of NULL.
2648
2649 2012-04-19 Pedro Alves <palves@redhat.com>
2650
2651 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
2652 Adjust paths to gnulib imported files.
2653
2654 2012-04-19 Pedro Alves <palves@redhat.com>
2655
2656 * gnulib/: Move whole directory ...
2657 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
2658 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
2659 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
2660 (aclocal_m4_deps): Adjust.
2661 * aclocal.m4: Regenerate.
2662 * configure: Regenerate.
2663 * configure.ac: Adjust AC_OUTPUT output.
2664
2665 2012-04-19 Yao Qi <yao@codesourcery.com>
2666
2667 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
2668 (vec.o): New rule.
2669 * vec.c: Move it ...
2670 * common/vec.c: ... here.
2671 * vec.h: Move it ...
2672 * common/vec.h: ... here.
2673
2674 2012-04-19 Yao Qi <yao@codesourcery.com>
2675
2676 * gdb-code-style.el: New.
2677
2678 2012-04-18 Pedro Alves <palves@redhat.com>
2679
2680 Update gnulib from latest git.
2681 (639ea5ae15e39fe48d43e04864b2997301e4b969)
2682
2683 * gnulib/Makefile.am: Update.
2684 * gnulib/dummy.c: Update.
2685 * gnulib/extra/arg-nonnull.h: Update.
2686 * gnulib/extra/c++defs.h: Update.
2687 * gnulib/extra/update-copyright: Update.
2688 * gnulib/extra/warn-on-use.h: Update.
2689 * gnulib/inttypes.in.h: Update.
2690 * gnulib/m4/00gnulib.m4: Update.
2691 * gnulib/m4/extensions.m4: Update.
2692 * gnulib/m4/gnulib-cache.m4: Update.
2693 * gnulib/m4/gnulib-common.m4: Update.
2694 * gnulib/m4/gnulib-comp.m4: Update.
2695 * gnulib/m4/gnulib-tool.m4: Update.
2696 * gnulib/m4/include_next.m4: Update.
2697 * gnulib/m4/inttypes-pri.m4: Update.
2698 * gnulib/m4/inttypes.m4: Update.
2699 * gnulib/m4/longlong.m4: Update.
2700 * gnulib/m4/memchr.m4: Update.
2701 * gnulib/m4/memmem.m4: Update.
2702 * gnulib/m4/mmap-anon.m4: Update.
2703 * gnulib/m4/multiarch.m4: Update.
2704 * gnulib/m4/onceonly.m4: Update.
2705 * gnulib/m4/stddef_h.m4: Update.
2706 * gnulib/m4/stdint.m4: Update.
2707 * gnulib/m4/string_h.m4: Update.
2708 * gnulib/m4/warn-on-use.m4: Update.
2709 * gnulib/m4/wchar_h.m4: Update.
2710 * gnulib/m4/wchar_t.m4: Update.
2711 * gnulib/m4/wint_t.m4: Update.
2712 * gnulib/memchr.c: Update.
2713 * gnulib/memmem.c: Update.
2714 * gnulib/stddef.in.h: Update.
2715 * gnulib/stdint.in.h: Update.
2716 * gnulib/str-two-way.h: Update.
2717 * gnulib/string.in.h: Update.
2718 * gnulib/wchar.in.h: Update.
2719
2720 * gnulib/extra/arg-nonnull.h: Delete.
2721 * gnulib/extra/c++defs.h: Delete.
2722 * gnulib/extra/warn-on-use.h: Delete.
2723 * gnulib/m4/wchar_h.m4: Delete.
2724 * gnulib/m4/wint_t.m4: Delete.
2725 * gnulib/wchar.in.h: Delete.
2726
2727 * gnulib/extra/snippets/arg-nonnull.h: New.
2728 * gnulib/extra/snippets/c++defs.h: New.
2729 * gnulib/extra/snippets/warn-on-use.h: New.
2730
2731 * aclocal.m4: Regenerate.
2732 * config.in: Regenerate.
2733 * configure: Regenerate.
2734 * gnulib/Makefile.in: Regenerate.
2735
2736 2012-04-18 Pedro Alves <palves@redhat.com>
2737
2738 Reimport the update-copyright module from gnulib
2739 (250b80067c1e1d8faa0c42fb572f721975b929c5).
2740
2741 * configure: Regenerate.
2742 * gnulib/Makefile.am: Update.
2743 * gnulib/Makefile.in: Regenerate.
2744 * gnulib/extra/update-copyright: Update.
2745 * gnulib/m4/gnulib-cache.m4: Update.
2746 * gnulib/m4/gnulib-comp.m4: Update.
2747
2748 2012-04-18 Tristan Gingold <gingold@adacore.com>
2749
2750 * configure.ac (aix): Put -lpthread into libs.
2751 * configure: Regenerate.
2752
2753 2012-04-18 Tom Tromey <tromey@redhat.com>
2754
2755 * linespec.c (convert_linespec_to_sals): Don't use
2756 SYMBOL_OBJ_SECTION.
2757 (compare_msymbols): Arguments are minsym_and_objfile, not
2758 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
2759
2760 2012-04-18 Pedro Alves <palves@redhat.com>
2761
2762 Revert gnulib/ part of:
2763 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2764 Copyright year update in most files (performed by copyright.sh).
2765
2766 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2767
2768 Fix 64-bit constants on 32-bit hosts.
2769 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
2770 from unsigned long to ULONGEST.
2771 (read_signed_leb128): Change declaration return type from long to
2772 LONGEST.
2773 (dwarf2_const_value_attr): Change declaration parameter value from long
2774 to LONGEST.
2775 (dwarf2_compute_name): Change variable value from long to LONGEST.
2776 (read_unsigned_leb128): Change return type, variable result and some
2777 casts from unsigned long to ULONGEST.
2778 (read_signed_leb128): Change return type, variable result and some
2779 casts from long to LONGEST.
2780 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
2781 value from long to LONGEST.
2782 (dwarf2_const_value): Change variable value from long to LONGEST.
2783 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
2784 plongest and hex_string.
2785 * symtab.h (struct general_symbol_info): Change ivalue from long to
2786 LONGEST, remove the comment.
2787 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
2788 Change SYMBOL_VALUE format strings to use plongest and hex_string.
2789
2790 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
2791
2792 PR symtab/7259:
2793 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
2794 * ada-lang.c (ada_discrete_type_high_bound)
2795 (ada_discrete_type_low_bound): Fix function comment. Use
2796 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2797 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
2798 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2799 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
2800 Use TYPE_FIELD_ENUMVAL.
2801 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
2802 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2803 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
2804 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
2805 TYPE_CODE_ENUM.
2806 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
2807 * dwarf2read.c (process_enumeration_scope): Likewise.
2808 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
2809 field.bitpos.
2810 (class StructMainTypePrettyPrinter): Support also
2811 FIELD_LOC_KIND_ENUMVAL.
2812 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
2813 TYPE_CODE_ENUM.
2814 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2815 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
2816 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
2817 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
2818 field enumval.
2819 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
2820 accommodate enumval.
2821 (struct call_site): Adjust loc_kind to accommodate enumval.
2822 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
2823 (TYPE_FIELD_ENUMVAL): New macros.
2824 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
2825 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
2826 TYPE_CODE_ENUM.
2827 * p-typeprint.c (pascal_type_print_base): Likewise.
2828 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
2829 enumval.
2830 * python/lib/gdb/types.py (make_enum_dict): Likewise.
2831 * python/py-type.c (convert_field): New variable addrstring. Use
2832 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2833 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
2834 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
2835 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
2836 TYPE_CODE_ENUM.
2837 * valprint.c (generic_val_print): Likewise.
2838
2839 2012-04-17 Doug Evans <dje@google.com>
2840
2841 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
2842
2843 * dwarf2read.c: Whitespace fixes.
2844 (lookup_signatured_type): Tweak comment.
2845 (get_die_type_at_offset): Fix comment.
2846
2847 2012-04-17 Joel Brobecker <brobecker@adacore.com>
2848
2849 * xcoffread.c (xcoff_secnum_to_sections): New function.
2850 (secnum_to_section, secnum_to_bfd_section): Reimplement
2851 using xcoff_secnum_to_sections. Rename "secnum" parameter
2852 into "n_scnum".
2853 (RECORD_MINIMAL_SYMBOL): Delete.
2854 (record_minimal_symbol): New function.
2855 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
2856 by call to record_minimal_symbol and set misc_func_recorded
2857 to 1. Set last_csect_sec to the XCOFF section index instead
2858 of GDB's section_offset index. Update calls to
2859 prim_record_minimal_symbol_and_info to pass the BFD section
2860 as well.
2861
2862 2012-04-17 Joel Brobecker <brobecker@adacore.com>
2863
2864 * xcoffread.c (read_xcoff_symtab): Delete variables
2865 last_csect_val and last_csect_sec and associated code.
2866
2867 2012-04-17 Doug Evans <dje@google.com>
2868
2869 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
2870 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2871 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
2872 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
2873
2874 * cleanups.h: New file.
2875 * cleanups.c: New file.
2876 * Makefile.in (SFILES): Add cleanups.c.
2877 (HFILES_NO_SRCDIR): Add cleanups.h.
2878 (COMMON_OBS): Add cleanups.o.
2879 * defs.h (struct cleanup): Moved to cleanups.h.
2880 (do_cleanups,do_final_cleanups): Ditto.
2881 (discard_cleanups,discard_final_cleanups): Ditto
2882 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2883 (save_cleanups,save_final_cleanups): Ditto.
2884 (restore_cleanups,restore_final_cleanups): Ditto.
2885 (null_cleanup): Ditto.
2886 (make_my_cleanup,make_my_cleanup2): Ditto.
2887 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2888 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
2889 (do_cleanups,do_final_cleanups): Ditto.
2890 (discard_cleanups,discard_final_cleanups): Ditto
2891 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2892 (save_cleanups,save_final_cleanups): Ditto.
2893 (restore_cleanups,restore_final_cleanups): Ditto.
2894 (null_cleanup): Ditto.
2895 (make_my_cleanup,make_my_cleanup2): Ditto.
2896 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2897
2898 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
2899 make_my_cleanup.
2900 (make_cleanup_dyn_string_delete): Ditto.
2901 (make_cleanup_ui_file_delete): Ditto.
2902 (make_cleanup_ui_out_redirect_pop): Ditto.
2903 (make_cleanup_free_section_addr_info): Ditto.
2904 (make_cleanup_restore_integer): Ditto.
2905 (make_cleanup_unpush_target): Ditto.
2906 (make_cleanup_value_free_to_mark): Ditto.
2907 (make_cleanup_value_free): Ditto.
2908 (make_cleanup_free_so): Ditto.
2909
2910 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2911
2912 New option "set debug auto-load".
2913 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
2914 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
2915 (auto_load_safe_path_vec_update)
2916 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
2917 if DEBUG_AUTO_LOAD.
2918 (file_is_auto_load_safe): New parameters debug_fmt and ....
2919 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
2920 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
2921 caller by explanatory string.
2922 (_initialize_auto_load): Register "set debug auto-load".
2923 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
2924 and ....
2925 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2926 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
2927 by explanatory string.
2928 * main.c (captured_main): Likewise.
2929 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2930 (source_section_scripts): Likewise.
2931
2932 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2933
2934 New option "set auto-load safe-path".
2935 * NEWS: New commands "set auto-load safe-path"
2936 and "show auto-load safe-path".
2937 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
2938 (auto_load_safe_path, auto_load_safe_path_vec)
2939 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
2940 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
2941 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
2942 (source_gdb_script_for_objfile): New variable is_safe. Call
2943 file_is_auto_load_safe. Return if it is not.
2944 (struct loaded_script): New field loaded.
2945 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
2946 (print_script): Use LOADED indicator instead of FULL_PATH. Change
2947 output "Missing" to "No".
2948 (_initialize_auto_load): New variable cmd. Initialize
2949 auto_load_safe_path. Register "set auto-load safe-path",
2950 "show auto-load safe-path" and "add-auto-load-safe-path".
2951 * auto-load.h (maybe_add_script): Add parameter loaded.
2952 (file_is_auto_load_safe): New declaration.
2953 * config.in: Regenerate.
2954 * configure: Regenerate.
2955 * configure.ac: New parameters --with-auto-load-safe-path
2956 and --without-auto-load-safe-path.
2957 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2958 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
2959 * main.c (captured_main): Check file_is_auto_load_safe for
2960 LOCAL_GDBINIT.
2961 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
2962 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
2963 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
2964 not.
2965
2966 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2967
2968 auto-load: Implementation.
2969 * NEWS: New descriptions for "info auto-load",
2970 "info auto-load gdb-scripts", "info auto-load python-scripts",
2971 "info auto-load local-gdbinit" and "info auto-load libthread-db".
2972 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
2973 and "show auto-load-scripts". New description for "set auto-load",
2974 "show auto-load", "set auto-load gdb-scripts",
2975 "show auto-load gdb-scripts", "set auto-load python-scripts",
2976 "show auto-load python-scripts", "set auto-load local-gdbinit",
2977 "show auto-load local-gdbinit", "set auto-load libthread-db" and
2978 "show auto-load libthread-db".
2979 * auto-load.c: Remove include python/python-internal.h. Add includes
2980 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
2981 cli/cli-setshow.h.
2982 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
2983 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
2984 (gdbpy_global_auto_load): Rename to ...
2985 (global_auto_load): ... here.
2986 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2987 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
2988 (script_language_gdb, source_gdb_script_for_objfile): New.
2989 (struct loaded_script): New field language.
2990 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
2991 LANGUAGE.
2992 (maybe_add_script): Add parameter language. Drop redundant
2993 entry.full_path initialization. Initialize entry.language and
2994 (*slot)->language.
2995 (auto_load_objfile_script): Change parameter suffix to language.
2996 Remove the call of maybe_add_script.
2997 Call language->source_script_for_objfile.
2998 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
2999 New.
3000 (collect_matching_scripts): Adjust it for
3001 struct collect_matching_scripts_data.
3002 (auto_load_info_scripts_pattern_nl): New variable.
3003 (info_auto_load_scripts): Rename to ...
3004 (auto_load_info_scripts): ... here, add parameter language. Adjust it
3005 for struct collect_matching_scripts_data.
3006 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3007 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3008 (auto_load_show_cmdlist_get, info_auto_load_cmd)
3009 (auto_load_info_cmdlist_get): New.
3010 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3011 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
3012 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3013 "info auto-load local-gdbinit".
3014 * auto-load.h (struct script_language): New.
3015 (gdbpy_global_auto_load): Rename to ...
3016 (global_auto_load): ... here.
3017 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3018 (auto_load_local_gdbinit_loaded): New declarations.
3019 (maybe_add_script): New parameter language.
3020 (auto_load_objfile_script): Change parameter suffix to language.
3021 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3022 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3023 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3024 declarations.
3025 * linux-thread-db.c: Include auto-load.h and ctype.h.
3026 (auto_load_thread_db, show_auto_load_thread_db): New.
3027 (struct thread_db_info): New field filename.
3028 (delete_thread_db_info): Call xfree for FILENAME.
3029 (try_thread_db_load): Initialize FILENAME.
3030 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3031 if !AUTO_LOAD_THREAD_DB.
3032 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3033 (_initialize_thread_db): Install auto_load_thread_db
3034 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3035 as "info auto-load libthread-db".
3036 * main.c (captured_main): Rename gdbpy_global_auto_load to
3037 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3038 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3039 (print_gdb_help): Extend the help for 'local init file'.
3040 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3041 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3042 (auto_load_scripts): Rename to ...
3043 (auto_load_python_scripts): ... here, update the comment.
3044 (gdbpy_load_auto_script_for_objfile): New declaration.
3045 (show_auto_load_python_scripts, script_language_python)
3046 (gdbpy_load_auto_script_for_objfile): New.
3047 (source_section_scripts): Refactor the code.
3048 (load_auto_scripts_for_objfile): Rename to ...
3049 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3050 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3051 (info_auto_load_python_scripts): New.
3052 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3053 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3054 Register "set auto-load-scripts" as its deprecated alias. Register
3055 "info auto-load python-scripts". Register "info auto-load-scripts" as
3056 its deprecated alias.
3057 (load_auto_scripts_for_objfile): Rename to ...
3058 (gdbpy_load_auto_scripts_for_objfile): ... here.
3059 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3060 (gdbpy_load_auto_scripts_for_objfile): ... here.
3061
3062 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3063
3064 auto-load: Move files.
3065 * Makefile.in (SFILES): Add auto-load.c.
3066 (HFILES_NO_SRCDIR): Add auto-load.h.
3067 (COMMON_OBS): Add auto-load.o.
3068 (distclean): Change .gdbinit for gdb-gdb.gdb.
3069 * auto-load.c: New file, with parts from python/py-auto-load.c.
3070 * auto-load.h: New file, with parts from python/python.h.
3071 * configure: Regenerate.
3072 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3073 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3074 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3075 * main.c: Include auto-load.h.
3076 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3077 command.h, observer.h and progspace.h to auto-load.c. Add include
3078 auto-load.h.
3079 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3080 (struct loaded_script, auto_load_pspace_data)
3081 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3082 (hash_loaded_script_entry, eq_loaded_script_entry)
3083 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3084 (maybe_add_script): Move to auto-load.c.
3085 (source_section_scripts): Change maybe_add_script parameters passing,
3086 use script_not_found_warning_print.
3087 (clear_section_scripts, auto_load_objfile_script)
3088 (auto_load_new_objfile, loaded_script_ptr)
3089 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3090 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3091 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3092 auto_load_new_objfile and info_auto_load_scripts initizations to
3093 auto-load.c.
3094 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3095
3096 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3097
3098 Code cleanup.
3099 * charset.c (find_charset_names): Remove variables ix and elt.
3100 Use free_char_ptr_vec.
3101 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3102 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3103 debugdir_end. New variable debugdir_len.
3104 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3105 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3106 declarations.
3107 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3108 and elt. Use free_char_ptr_vec.
3109 * source.c (add_path): Remove variables argv, arg and argv_index.
3110 New variables dir_vec, back_to, ix and name.
3111 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3112 make_cleanup_freeargv. Remove variable separator. Simplify the code
3113 no longer expecting DIRNAME_SEPARATOR.
3114 (openp): Remove variable p, p1 and len. New variables dir_vec,
3115 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3116 no longer expecting DIRNAME_SEPARATOR.
3117 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3118 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3119 debugdir_end.
3120 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3121 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3122 (dirnames_to_char_ptr_vec): New functions.
3123
3124 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3125
3126 Code cleanup.
3127 * source.c (add_path): Remove always true conditional 'p == 0' and
3128 unindent its code block.
3129
3130 2012-04-17 Pedro Alves <palves@redhat.com>
3131
3132 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3133 (FIELD_BITPOS_LVAL): ... this.
3134 (FIELD_BITPOS): New.
3135 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3136 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3137 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3138 SET_FIELD_BITPOS.
3139 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3140 SET_FIELD_BITPOS.
3141 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3142 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3143 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3144 SET_FIELD_BITPOS.
3145
3146 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3147
3148 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3149 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3150 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3151 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3152 * jv-lang.c (java_link_class_type): Likewise, once.
3153 * stabsread.c (read_enum_type): Likewise.
3154
3155 2012-04-16 Yao Qi <yao@codesourcery.com>
3156
3157 * common/agent.c (agent_run_command): Add one more parameter `len'.
3158 Update callers.
3159 * common/agent.h: Update declaration.
3160 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3161 Update.
3162 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3163
3164 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3165
3166 PR mi/13393
3167 * value.c (value_actual_type): New function.
3168 * value.h (value_actual_type): New declaration.
3169 * varobj.c (update_type_if_necessary): New function.
3170 (varobj_create): Call value_actual_type instead of
3171 value_type.
3172 (install_dynamic_child): distinct changed and type changed MI variable
3173 objects.
3174 (update_dynamic_varobj_children): Updated for install_dynamic_child
3175 change. All callers updated.
3176 (varobj_update): Support for MI variable object type change if
3177 the value changed and RTTI is used to determine the type.
3178 (create_child_with_value): Call value_actual_type instead of
3179 value_type.
3180 (adjust_value_for_child_access): Extended with a new parameter which
3181 specify whether the given value should be casted to enclosing type.
3182 All callers updated.
3183
3184 2012-04-14 Yao Qi <yao@codesourcery.com>
3185
3186 Import gnulib module inttypes from git
3187 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3188 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
3189 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3190 gnulib/m4/inttypes-pri.m4
3191 * aclocal.m4, config.in, configure: Regenerated.
3192 * gnulib/Makefile.am: Update.
3193 * gnulib/Makefile.in: Update.
3194 * gnulib/m4/gnulib-cache.m4: Update.
3195 * gnulib/m4/gnulib-comp.m4: Update.
3196 * gnulib/inttypes.in.h: New.
3197 * gnulib/m4/inttypes-pri.m4: New.
3198 * gnulib/m4/inttypes.m4: New.
3199
3200 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
3201
3202 * infrun.c (resume): Update PC address to the real PC after
3203 preparing to do displaced stepping.
3204
3205 2012-04-12 Doug Evans <dje@google.com>
3206
3207 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3208 All callers updated.
3209
3210 2012-04-12 Mark Kettenis <kettenis@gnu.org>
3211
3212 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3213
3214 2012-04-12 Doug Evans <dje@google.com>
3215
3216 * dwarf2read.c (create_all_type_units): Renamed from
3217 create_debug_types_hash_table. All callers updated.
3218
3219 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3220 local type_sig to sig_type, type_offset to type_offset_in_tu.
3221 (hash_signatured_type): Renamed from hash_type_signature,
3222 all callers updated.
3223 (eq_signatured_type): Renamed from eq_type_signature,
3224 all callers updated.
3225 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3226 (process_enumeration_scope): Ditto.
3227 (lookup_signatured_type_at_offset): Ditto.
3228 (load_full_type_unit, read_signatured_type): Ditto.
3229
3230 2012-04-12 Yao Qi <yao@codesourcery.com>
3231
3232 * remote.c (async_remote_interrupt): Correct function name in
3233 debug message.
3234 (async_remote_interrupt_twice): Ditto.
3235
3236 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3237
3238 * source.c (find_and_open_source): Consistently pass resulting
3239 full path through xfullpath.
3240
3241 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3242
3243 Provide more specific displaced-stepping memory error message.
3244 * infrun.c (displaced_step_prepare): New variable status. Call
3245 target_read_memory instead of read_memory, provide more specific
3246 error message.
3247
3248 2012-04-11 Tristan Gingold <gingold@adacore.com>
3249
3250 PR gdb/13901
3251 * darwin-nat.c (darwin_execvp): Revert previous patch.
3252
3253 2012-04-11 Tristan Gingold <gingold@adacore.com>
3254
3255 PR gdb/13901
3256 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3257 in case of change.
3258
3259 2012-04-11 Tristan Gingold <gingold@adacore.com>
3260
3261 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3262 warning.
3263
3264 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3265
3266 New command 'explore' which helps explore values and types in
3267 scope.
3268 * NEWS: Add an entry about the new 'explore' command.
3269 * data-directory/Makefile.in: Add gdb/command/explore.py
3270 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3271 command using the GDB Python API.
3272
3273 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3274
3275 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3276 extension in jump target calculation.
3277
3278 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3279
3280 * mips-tdep.c (mips32_next_pc): Handle JALX.
3281
3282 2012-04-10 Yao Qi <yao@codesourcery.com>
3283
3284 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3285
3286 2012-04-10 Yao Qi <yao@codesourcery.com>
3287
3288 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3289 and gnulib/m4/gnulib-tool.m4.
3290
3291 2012-04-10 Doug Evans <dje@google.com>
3292
3293 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3294 (load_partial_dies): Clarify comment.
3295 (find_partial_die): Support rereading type units.
3296 Clarify CU handling, if we know offset is in CU, don't search for the
3297 containing CU. Add comment regarding memory waste.
3298
3299 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3300
3301 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3302 i386/x32-avx and i386/x32-avx-linux.
3303 (i386/x32-expedite): New.
3304 (i386/x32-linux-expedite): Likewise.
3305 (i386/x32-avx-expedite): Likewise.
3306 (i386/x32-avx-linux-expedite): Likewise.
3307 ($(outdir)/i386/x32.dat): Likewise.
3308 ($(outdir)/i386/x32-linux.dat): Likewise.
3309 ($(outdir)/i386/x32-avx.dat): Likewise.
3310 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3311
3312 * features/i386/x32-avx-linux.xml: New file.
3313 * features/i386/x32-avx.xml: Likewise.
3314 * features/i386/x32-core.xml: Likewise.
3315 * features/i386/x32-linux.xml: Likewise.
3316 * features/i386/x32.xml: Likewise.
3317
3318 * features/i386/x32-avx-linux.c: New. Generated.
3319 * features/i386/x32-avx.c: Likewise.
3320 * features/i386/x32-linux.c: Likewise.
3321 * features/i386/x32.c: Likewise.
3322 * regformats/i386/x32-avx-linux.dat: Likewise.
3323 * regformats/i386/x32-avx.dat: Likewise.
3324 * regformats/i386/x32-linux.dat: Likewise.
3325 * regformats/i386/x32.dat: Likewise.
3326
3327 2012-04-10 Tristan Gingold <gingold@adacore.com>
3328
3329 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3330 code to kill the inferior.
3331
3332 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3333
3334 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3335 defines.
3336 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3337 defines.
3338 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3339 (yyvsp): New defines.
3340 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3341 defines.
3342 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3343 defines.
3344 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3345 defines.
3346 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3347 defines.
3348 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3349 defines.
3350
3351 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3352
3353 * sparc64-tdep.c (sparc64_store_arguments)
3354 (sparc64_store_arguments): Fix coding style.
3355
3356 2012-04-07 Mark Kettenis <kettenis@gnu.org>
3357
3358 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3359 complex floats, adjust some related comments and tighten a related
3360 assertion.
3361 (sparc64_extract_return_value): Handle complex floats.
3362
3363 2012-04-07 Doug Evans <dje@google.com>
3364
3365 * dwarf2read.c (load_partial_dies): Change condition to assert.
3366
3367 2012-04-06 Doug Evans <dje@google.com>
3368
3369 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3370 "mov %rsp,%rbp".
3371
3372 2012-04-05 Kevin Buettner <kevinb@redhat.com>
3373
3374 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3375 fencepost error.
3376 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3377 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3378 architecture.
3379
3380 2012-04-05 Keith Seitz <keiths@redhat.com>
3381
3382 * linespec.c (decode_compound): Remove.
3383 (enum offset_relative_sign): New enum.
3384 (struct line_offset): New struct.
3385 (struct linespec): New struct.
3386 (struct linespec_state): Move file_symtabs,
3387 user_filename, and user_function into struct linespec.
3388 Make result an anonymous struct holding vectors of
3389 symbolp and minsym_and_objfile_d.
3390 Add language member.
3391 (enum ls_token_type): New enum.
3392 (linespec_keywords): New array.
3393 (struct ls_token): New struct.
3394 (struct ls_parser): New struct.
3395 (linespec_lexer_lex_number): New function.
3396 (linespec_lexer_lex_keyword): New function.
3397 (is_ada_operator): New function.
3398 (skip_quote_char): New function.
3399 (copy_token_string): New function.
3400 (is_closing_quote_enclosed): New function.
3401 (find_parameter_list_end): New function.
3402 (linespec_lexer_lex_string): New function.
3403 (linespec_lexer_lex_one): New function.
3404 (linespec_lexer_consume_token): New function.
3405 (linespec_lexer_peek_token): New function.
3406 (cplusplus_error): Remove unused function.
3407 (find_methods): Update comment.
3408 (find_toplevel_char): Return const.
3409 (is_objc_method_format): Remove unused function.
3410 (find_toplevel_string): New function.
3411 (is_linespec_boundary): Remove.
3412 (symbol_not_found_error): New function.
3413 (find_method_overload_end): Remove function.
3414 (unexpected_linespec_error): New function.
3415 (keep_name_info): Remove.
3416 (linespec_parse_line_offset): New function.
3417 (linespec_parse_basic): New function.
3418 (canonicalize_linespec): New function.
3419 (decode_line_internal): Remove.
3420 (create_sals_line_offset): New function adapted from
3421 decode_all_digits.
3422 (convert_linespec_to_sals): New function.
3423 (parse_linespec): New function.
3424 (linespec_parser_new): New function.
3425 (linespec_state_destructor): Change parameter type to
3426 struct linespec_state *.
3427 Add language parameter.
3428 Remove freeing of moved members.
3429 (linespec_parser_delete): New function.
3430 (decode_line_full): Use parse_linespec and linespec_parser_new.
3431 (decode_line_1): Likewise.
3432 (decode_indirect): Rename to ...
3433 (linespec_expression_to_pc): ... this and rewrite
3434 to simply find CORE_ADDR, storing this result for later
3435 conversion to SALs.
3436 (locate_first_half): Remove.
3437 (deocde_objc): Add parameter LS.
3438 Initialize new struct collect_info members.
3439 Handle minimal symbols, too.
3440 (decode_compound): Delete.
3441 (lookup_prefix_sym): Rewrite.
3442 (compare_msymbols): New function.
3443 (find_method): Rewrite.
3444 Do not call cplusplus_error.
3445 (symtabs_from_filename): Rewrite.
3446 (collect_function_symbols): Delete.
3447 (find_function_symbols): Rewrite without ARGPTR-style
3448 processing.
3449 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3450 (decode_dollar): Adapted and renamed to ...
3451 (linespec_parse_variable): ... this.
3452 (find_linespec_symbols): New function.
3453 (decode_label): Adapted and renamed to ...
3454 (find_label_symbols): ... this.
3455 (decode_digits_list_mode): Add and use LS argument.
3456 (decode_digits_ordinary): Likewise.
3457 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3458 If in list mode, allow any symbol class. Otherwise, only
3459 permit LOC_BLOCK symbols.
3460 (minsym_found): Update comments.
3461 (search_minsyms_for_name): Do not convert the matching symbol
3462 into a SAL. Simply push the symbol and objfile into the
3463 result vector.
3464 (decode_variable): Delete. Contents adapted into
3465 find_linespec_symbols.
3466
3467 * cp-support.c (SKIP_SPACE): Remove.
3468 (operator_tokens): Remove unused global.
3469 (cp_validate_operator): Remove.
3470 * cp-support.h (cp_validate_operator): Remove declaration.
3471
3472 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3473
3474 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3475 for TYPE_VPTR_FIELDNO.
3476 * valprint.c (valprint_check_validity): Make it global, move the
3477 function comment ...
3478 * value.h (valprint_check_validity): ... to this new declaration.
3479
3480 2012-04-02 Tristan Gingold <gingold@adacore.com>
3481
3482 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3483 the STATE32 api for i386 state.
3484 (i386_darwin_store_inferior_registers): Likewise.
3485
3486 2012-04-02 Tristan Gingold <gingold@adacore.com>
3487
3488 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3489 SS offset.
3490 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3491 format_string.
3492
3493 2012-04-02 Tristan Gingold <gingold@adacore.com>
3494
3495 PR gdb/13901
3496 * darwin-nat.c (darwin_execvp): Set binary preference.
3497
3498 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3499
3500 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3501
3502 2012-03-30 Tom Tromey <tromey@redhat.com>
3503
3504 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3505 of TRY_CATCH. Fix error handling.
3506 * python/py-value.c (convert_value_from_python): Move 'old'
3507 declaration to innermost scope.
3508
3509 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3510 Andrey Smirnov <andrew.smirnov@gmail.com>
3511
3512 -Wshadow warning fix.
3513 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3514 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3515 Adjust code accordingly.
3516
3517 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3518
3519 * ada-lang.c (symbol_completion_add): Rename parameter
3520 "encoded" into "encoded_p". Ajust code and documentation
3521 accordingly.
3522
3523 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3524 Andrey Smirnov <andrew.smirnov@gmail.com>
3525
3526 -Wshadow warning fix.
3527 * ada-lang.c (symbol_completion_add): Rename parameter
3528 "wild_match" into wild_match_p. Update code and documentation
3529 accordingly.
3530
3531 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3532
3533 * ada-lang.c (symbol_completion_match): Rename parameter
3534 "encoded" into "encoded_p". Ajust code and documentation
3535 accordingly.
3536
3537 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3538 Andrey Smirnov <andrew.smirnov@gmail.com>
3539
3540 -Wshadow warning fix.
3541 * ada-lang.c (symbol_completion_match): Rename parameter
3542 "wild_match" into "wild_match_p". Adjust code and function
3543 documentation accordingly.
3544
3545 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3546 Andrey Smirnov <andrew.smirnov@gmail.com>
3547
3548 -Wshadow warning fix.
3549 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3550 "symbol_info" into "info". Adjust code accordingly.
3551 (ada_lookup_symbol): Likewise.
3552
3553 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3554
3555 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3556 of this function's documentation.
3557
3558 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3559 Andrey Smirnov <andrew.smirnov@gmail.com>
3560
3561 -Wshadow warning fix.
3562 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3563 variable into "wild_match_p". Adjust code accordingly.
3564
3565 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3566 Andrey Smirnov <andrew.smirnov@gmail.com>
3567
3568 -Wshadow warning fix.
3569 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
3570 parameter into "wild_match_p". Adjust code accordingly.
3571 Document this parameter in the function description.
3572
3573 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3574 Andrey Smirnov <andrew.smirnov@gmail.com>
3575
3576 -Wshadow warning fix.
3577 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
3578 "wild_match" parameter to "wild_match_p" (-Wshadow).
3579
3580 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3581
3582 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
3583 in function documentation.
3584
3585 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3586 Andrey Smirnov <andrew.smirnov@gmail.com>
3587
3588 -Wshadow warning fix.
3589 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
3590 variable into wild_match_p. Adjust code accordingly.
3591
3592 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3593 Andrey Smirnov <andrew.smirnov@gmail.com>
3594
3595 * ada-valprint.c (ada_val_print_1): Move the code handling
3596 TYPE_CODE_ENUM inside its own lexical block. Declare
3597 variables len and val there, instead of in the function's
3598 top level block. Avoid declaring deref_val again in a way
3599 that shadows another variable of the same name declared
3600 in one of the up-level blocks. Just re-use the up-level
3601 variable instead.
3602
3603 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3604
3605 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
3606 Replace block_found argument by symbol_info. Adjust
3607 implementation accordingly. Add function documentation.
3608 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
3609 Fix documentation.
3610 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
3611 * ada-exp.y (write_object_renaming): Adjust to new
3612 ada_lookup_encoded_symbol API.
3613
3614 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3615
3616 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
3617 documentation.
3618
3619 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
3620
3621 * v850-tdep.c: Add the enum values for mpu and fpu registers.
3622 (v850_register_name): Add the mpu and fpu register names.
3623 (v850e_register_name): Add the mpu and fpu register names.
3624 (v850e2_register_name): New function.
3625 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
3626 bfd_mach_v850e2v3.
3627
3628 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3629
3630 * NEWS: Add entry for Ada varobj support.
3631
3632 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3633
3634 * varobj.c (default_value_is_changeable_p): New function,
3635 extracted from varobj_value_is_changeable_p. Add declaration.
3636 (ada_value_is_changeable_p): New function, extracted from
3637 varobj_value_is_changeable_p. Add declaration.
3638 (struct language_specific): New field "value_is_changeable_p".
3639 (languages): Add entries for new field.
3640 (varobj_create): Set language before calling install_new_value.
3641 (varobj_value_is_changeable_p): Reimplement to call the varobj's
3642 "value_is_changeable_p" language callback.
3643
3644 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3645
3646 * ada-varobj.h, ada-varobj.c: New files.
3647 * Makefile.in (SFILES): Add ada-varobj.c.
3648 (HFILES_NO_SRCDIR): Add ada-varobj.h.
3649 (COMMON_OBS): Add ada-varobj.o.
3650
3651 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3652
3653 * varobj.c (ada_value_has_mutated): Add declaration. New function.
3654 (struct language_specific): New field "value_has_mutated".
3655 (languages): Set field "value_has_mutated" in each entry of array.
3656 (varobj_value_has_mutated): New function.
3657 (varobj_udpdate): Add handling of type mutation.
3658 (value_of_root): Add handling of type mutation.
3659 (ada_value_has_mutated): New function.
3660
3661 2012-03-28 Pedro Alves <palves@redhat.com>
3662
3663 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
3664 Always supply $fr0 as 0.0 and $fr1 as 1.0.
3665
3666 2012-03-28 Tom Tromey <tromey@redhat.com>
3667
3668 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
3669 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
3670 before returning.
3671
3672 2012-03-28 Tom Tromey <tromey@redhat.com>
3673
3674 * .dir-locals.el: New file.
3675
3676 2012-03-28 Pedro Alves <palves@redhat.com>
3677
3678 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
3679
3680 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3681
3682 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
3683 handling for r0.
3684
3685 2012-03-27 Pedro Alves <palves@redhat.com>
3686
3687 Eliminate struct ui_stream.
3688
3689 * ui-out.h (struct ui_stream): Delete.
3690 (ui_out_field_stream): Adjust prototype.
3691 (ui_out_stream_new, ui_out_stream_delete)
3692 (make_cleanup_ui_out_stream_delete): Delete declarations.
3693 * ui-out.c (ui_out_field_stream): Change prototype to take a
3694 ui_file instead of a ui_stream. Adjust.
3695 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
3696 (make_cleanup_ui_out_stream_delete): Delete.
3697 * breakpoint.c (print_breakpoint_location)
3698 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
3699 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3700 * disasm.c (dump_insns): Ditto.
3701 (do_mixed_source_and_assembly, do_assembly_only): Adjust
3702 prototype.
3703 (gdb_disassembly): Use ui_file/mem_fileopen instead of
3704 ui_stream/ui_out_stream_new.
3705 * infcmd.c (print_return_value): Ditto.
3706 * osdata.c (info_osdata_command): Don't allocate a local
3707 ui_stream.
3708 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
3709 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3710 * tracepoint.c (print_one_static_tracepoint_marker): Don't
3711 allocate a local ui_stream.
3712 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
3713 instead of ui_stream/ui_out_stream_new.
3714 (list_args_or_locals): Don't allocate a local ui_stream.
3715 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
3716 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
3717 ui_stream/ui_out_stream_new.
3718 * cli/cli-setshow.c (do_setshow_command): Ditto.
3719
3720 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
3721
3722 * arm-linux-tdep.c (arm_linux_init_abi): Call
3723 set_gdbarch_process_record. Initialize `arm_swi_record' field.
3724 * arm-tdep.c (arm_process_record): New function.
3725 (deallocate_reg_mem): New function.
3726 (decode_insn): New function.
3727 (thumb_record_branch): New function.
3728 (thumb_record_ldm_stm_swi(): New function.
3729 (thumb_record_misc): New function.
3730 (thumb_record_ld_st_stack): New function.
3731 (thumb_record_ld_st_imm_offset): New function.
3732 (thumb_record_ld_st_reg_offset(): New function.
3733 (thumb_record_add_sub_cmp_mov): New function.
3734 (thumb_record_shift_add_sub): New function.
3735 (arm_record_coproc_data_proc): New function.
3736 (arm_record_coproc): New function.
3737 (arm_record_b_bl): New function.
3738 (arm_record_ld_st_multiple): New function.
3739 (arm_record_ld_st_reg_offset): New function.
3740 (arm_record_ld_st_imm_offset): New function.
3741 (arm_record_data_proc_imm): New function.
3742 (arm_record_data_proc_misc_ld_str): New function.
3743 (arm_record_extension_space): New function.
3744 (arm_record_strx): New function.
3745 (sbo_sbz): New function.
3746 (struct insn_decode_record): New structure for arm insn record.
3747 (REG_ALLOC): New macro for reg allocations.
3748 (MEM_ALLOC): New macro for memory allocations.
3749 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
3750
3751 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
3752
3753 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
3754 (store_register): Likewise.
3755
3756 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3757
3758 * MAINTAINERS (Write After Approval): Add myself to the list.
3759
3760 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3761
3762 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
3763 Describe also the option "auto".
3764
3765 2012-03-22 Richard Henderson <rth@redhat.com>
3766
3767 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
3768 * sparc-nat.c (sparc_xfer_wcookie): Make static.
3769
3770 2012-03-22 Richard Henderson <rth@redhat.com>
3771
3772 * jit.c (jit_read_code_entry): Compute alignment and offset of
3773 int64_t member before computing entry_size.
3774
3775 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3776
3777 Python scripting: Add new method Value.referenced_value to
3778 gdb.Value which can dereference pointer as well as reference
3779 values.
3780 * NEWS: Add entry under 'Python scripting' about the new method
3781 Value.referenced_value on gdb.Value objects.
3782 * python/py-value.c (valpy_referenced_value): New function
3783 defining a new method on gdb.Value objects which can dereference
3784 pointer and reference values.
3785
3786 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3787
3788 * MAINTAINERS (Write After Approval): Add myself to the list.
3789
3790 2012-03-21 Kevin Buettner <kevinb@redhat.com>
3791
3792 * symtab.c (skip_prologue_sal): Change test to check for "main()"
3793 in addition to "main".
3794
3795 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3796
3797 * expression.h (op_name): Add declaration.
3798 * expprint.c (op_name): Remove declaration. Make non-static.
3799 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
3800
3801 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
3802
3803 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
3804 of struct siginfo.
3805 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
3806 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3807 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
3808 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
3809 (linux_nat_get_siginfo): Likewise.
3810 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
3811 (linux_nat_get_siginfo): Likewise.
3812 * linux-tdep.c (linux_get_siginfo_type): Likewise.
3813 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
3814 * procfs.c (gdb_siginfo_t): Likewise.
3815
3816 2012-03-21 Mike Frysinger <vapier@gentoo.org>
3817
3818 * .gitignore: Ignore more files.
3819
3820 2012-03-20 Pedro Alves <palves@redhat.com>
3821
3822 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
3823 returns.
3824
3825 2012-03-20 Yao Qi <yao@codesourcery.com>
3826
3827 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
3828 comment.
3829
3830 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3831
3832 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
3833 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
3834 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
3835 sect_offset.
3836 * dwarf2expr.h (cu_offset, sect_offset): New types.
3837 (struct dwarf_expr_context_funcs) <dwarf_call>
3838 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
3839 sect_offset.
3840 (struct dwarf_expr_context) <len>: Improve the comment.
3841 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
3842 cu_offset and sect_offset.
3843 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
3844 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
3845 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
3846 * dwarf2loc.h: Include dwarf2expr.h.
3847 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
3848 and sect_offset.
3849 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
3850 Improve the comment.
3851 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
3852 (struct signatured_type, struct line_header, struct partial_die_info)
3853 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
3854 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
3855 (get_die_type_at_offset, create_cus_from_index)
3856 (create_signatured_type_table_from_index, dw2_get_file_names)
3857 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
3858 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
3859 (create_debug_types_hash_table, process_psymtab_comp_unit)
3860 (load_partial_comp_unit, create_all_comp_units)
3861 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
3862 (load_full_comp_unit, dwarf2_physname, read_import_statement)
3863 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
3864 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
3865 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
3866 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
3867 (find_partial_die, read_attribute_value, lookup_die_type)
3868 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
3869 (is_ref_attr): New function comment.
3870 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
3871 Use cu_offset and sect_offset.
3872 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
3873 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
3874 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
3875 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
3876 (offset_and_type_hash, offset_and_type_eq, set_die_type)
3877 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
3878 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
3879 sect_offset.
3880
3881 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3882
3883 Code cleanup.
3884 * python/py-auto-load.c (source_section_scripts): New variable back_to.
3885 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
3886 with xfree.
3887 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
3888
3889 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3890
3891 * NEWS: Describe new options --init-command=FILE, -ix and
3892 --init-eval-command=COMMAND, -iex.
3893 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
3894 CMDARG_INIT_COMMAND.
3895 (captured_main): New enum items OPT_IX and OPT_IEX. Add
3896 "init-command", "init-eval-command", "ix" and "iex" to the variable
3897 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
3898 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
3899 (print_gdb_help): Describe --init-command=FILE, -ix and
3900 --init-eval-command=COMMAND, -iex.
3901
3902 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3903
3904 Code cleanup.
3905 * main.c (struct cmdarg): Move it here from main. Add more comments.
3906 (cmdarg_s, VEC (cmdarg_s)): New.
3907 (main): Move struct cmdarg from here. New variables cmdarg_vec and
3908 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
3909 Install cleanup for cmdarg_vec. Update filling for options 'x' and
3910 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
3911 of CMDARG.
3912
3913 2012-03-19 Tom Tromey <tromey@redhat.com>
3914
3915 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
3916
3917 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3918
3919 PR symtab/13777
3920 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
3921 GCC >=4.5.
3922
3923 2012-03-16 Chris January <chris.january@allinea.com>
3924
3925 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
3926 of clear.
3927
3928 2012-03-16 Chris January <chris.january@allinea.com>
3929
3930 * source.c (add_path): Use memmove instead of strcpy because the
3931 strings overlap.
3932
3933 2012-03-16 Joel Brobecker <brobecker@adacore.com>
3934
3935 * value.h (set_value_parent): Add declaration.
3936 * value.c (set_value_parent): New function.
3937 (value_address): If VALUE->PARENT is not NULL, then use it as
3938 the base address instead of VALUE->LOCATION.address.
3939 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
3940 the same as OBJ's address. Adjust V's offset accordingly.
3941 Set V's parent.
3942
3943 2012-03-16 Gary Benson <gbenson@redhat.com>
3944
3945 PR breakpoints/10738
3946 * dwarf2read.c (use_deprecated_index_sections): New global.
3947 (struct partial_die_info): New member may_be_inlined.
3948 (read_partial_die): Set may_be_inlined where appropriate.
3949 (add_partial_subprogram): Add partial symbols for partial
3950 DIEs that may be inlined.
3951 (new_symbol_full): Add inlined subroutines to the current
3952 scope.
3953 (write_psymtabs_to_index): Bump version number.
3954 (dwarf2_read_index): Read only version 6 indices unless
3955 use_deprecated_index_sections is set.
3956 * linespec.c (symbol_and_data_callback): New structure.
3957 (iterate_inline_only): New function.
3958 (iterate_over_all_matching_symtabs): New argument
3959 "include_inline". If nonzero, also call the callback for
3960 symbols representing inlined subroutines.
3961 (lookup_prefix_sym): Pass extra argument to the above.
3962 (find_function_symbols): Likewise.
3963 (add_matching_symbols_to_info): Likewise.
3964 * NEWS: Mention that GDB can now set breakpoints on inlined
3965 functions.
3966
3967 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3968
3969 * p-typeprint.c (pascal_type_print_method_args):
3970 Fix display of parameter of methods.
3971
3972 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3973
3974 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
3975 Add missing prototype.
3976
3977 2012-03-16 Yao Qi <yao@codesourcery.com>
3978 Jan Kratochvil <jan.kratochvil@redhat.com>
3979
3980 Fix false compilation warning.
3981 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
3982
3983 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
3984 Pedro Alves <pedro@codesourcery.com>
3985
3986 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
3987 (arm_register_g_packet_guesses): New function.
3988 (arm_gdbarch_init): Don't force a target description with
3989 registers when the executable is detected as M-profile. Instead
3990 set gdbarch->tdep->is_m. Register `g' packet guesses.
3991 (_initialize_arm_tdep): Initialize the new target description.
3992 * features/arm-with-m-fpa-layout.xml: New description.
3993 * features/arm-with-m-fpa-layout.c: New, generated.
3994
3995 2012-03-15 Joel Brobecker <brobecker@adacore.com>
3996
3997 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
3998 Update function description.
3999 (insert_bp_location): Do not wipe bl->target_info out.
4000 * mem-break.c: #include "gdb_string.h".
4001 (default_memory_insert_breakpoint): Do not call target_read_memory
4002 with a pointer to the breakpoint's shadow_contents buffer. Use
4003 a local buffer instead.
4004 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4005
4006 2012-03-15 Tom Tromey <tromey@redhat.com>
4007
4008 * NEWS: Mention "info vtbl", not "info vtable".
4009 * cp-support.c (info_vtbl_command): Fix comment.
4010 (_initialize_cp_support): Fix text.
4011
4012 2012-03-15 Tom Tromey <tromey@redhat.com>
4013
4014 * cp-valprint.c (cp_print_value_fields): Use
4015 print_function_pointer_address for vtable slot.
4016
4017 2012-03-15 Tom Tromey <tromey@redhat.com>
4018
4019 * gnu-v3-abi.c (struct value_and_voffset): New.
4020 (hash_value_and_voffset, eq_value_and_voffset)
4021 (compare_value_and_voffset, compute_vtable_size)
4022 (print_one_vtable, gnuv3_print_vtable): New functions.
4023 (init_gnuv3_ops): Initialize 'print_vtable' field.
4024 * cp-support.c (info_vtbl_command): New function.
4025 (_initialize_cp_support): Add "info vtbl".
4026 * cp-abi.h (cplus_print_vtable): Declare.
4027 (struct cp_abi_ops) <print_vtable>: New field.
4028 * cp-abi.c (cplus_print_vtable): New function.
4029 * NEWS: Update.
4030
4031 2012-03-15 Tom Tromey <tromey@redhat.com>
4032
4033 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4034 iterate_over_symbols.
4035
4036 2012-03-14 Doug Evans <dje@google.com>
4037
4038 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4039 DW_OP_GNU_parameter_ref.
4040
4041 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4042
4043 Fix double prompt of 'interpreter-exec mi'.
4044 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4045 (mi_interpreter_resume): use it.
4046 (mi_execute_command_input_handler): New function.
4047 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4048 mi_execute_command_input_handler.
4049
4050 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
4051
4052 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4053 prototype.
4054 (darwin_debug_port_info): Make static.
4055 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4056 * machoread.c (_initialize_machoread): Add prototype.
4057 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4058 (i386_darwin_set_control, i386_darwin_get_control)
4059 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4060 i386_darwin_get_status, i386_darwin_get_control):
4061 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4062
4063 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4064
4065 * ax-gdb.c (gen_usual_unary): Remove special handling of
4066 enum and bool types.
4067
4068 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4069
4070 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4071
4072 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4073
4074 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4075
4076 2012-03-13 Chris January <chris.january@allinea.com>
4077
4078 * aix-thread.c (fill_sprs): Store the floating point registers
4079 at the correct offsets into vals.
4080
4081 2012-03-13 Doug Evans <dje@google.com>
4082
4083 * NEWS: Mention symbol-reloading has been deleted.
4084 * symfile.c (symbol_reloading): Delete.
4085 (show_symbol_reloading): Delete.
4086 (_initialize_symfile): Delete set/show symbol-reloading.
4087
4088 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4089 read_in_chain until we have successfully read it in.
4090 (load_full_comp_unit): Ditto.
4091 (read_signatured_type): Add comment.
4092
4093 2012-03-13 Chris January <chris.january@allinea.com>
4094
4095 * stabsread.c (fix_common_block): Change type of valu argument
4096 to CORE_ADDR.
4097
4098 2012-03-13 Chris January <chris.january@allinea.com>
4099
4100 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4101 instruction.
4102
4103 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4104
4105 * common/linux-procfs.c (linux_proc_get_int): New, from
4106 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4107 field.
4108 (linux_proc_get_tgid): Only call linux_proc_get_int.
4109 (linux_proc_get_tracerpid): New.
4110 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4111 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4112 linux_proc_pid_has_state.
4113 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4114 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4115 (linux_ptrace_attach_warnings): New.
4116 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4117 New declaration.
4118 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4119 (linux_nat_attach): New variables ex, buffer, message and message_s.
4120 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4121
4122 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4123
4124 * Makefile.in (linux-ptrace.o): New.
4125 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4126 from linux-nat.c.
4127 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4128 * common/linux-ptrace.c: New file.
4129 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4130 * config/arm/linux.mh: Likewise.
4131 * config/i386/linux.mh: Likewise.
4132 * config/i386/linux64.mh: Likewise.
4133 * config/ia64/linux.mh: Likewise.
4134 * config/m32r/linux.mh: Likewise.
4135 * config/m68k/linux.mh: Likewise.
4136 * config/mips/linux.mh: Likewise.
4137 * config/pa/linux.mh: Likewise.
4138 * config/powerpc/linux.mh: Likewise.
4139 * config/powerpc/ppc64-linux.mh: Likewise.
4140 * config/powerpc/spu-linux.mh: Likewise.
4141 * config/s390/s390.mh: Likewise.
4142 * config/sparc/linux.mh: Likewise.
4143 * config/sparc/linux64.mh: Likewise.
4144 * config/xtensa/linux.mh: Likewise.
4145 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4146 common/linux-procfs.c.
4147 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4148
4149 2012-03-13 Hui Zhu <teawater@gmail.com>
4150 Pedro Alves <palves@redhat.com>
4151
4152 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4153 CREATE_BREAKPOINT_FLAGS_INSERTED.
4154 (create_breakpoint_sal, create_breakpoints_sal)
4155 (base_breakpoint_create_breakpoints_sal)
4156 (tracepoint_create_breakpoints_sal)
4157 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4158 down.
4159 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4160 (ftrace_command, strace_command): Adjust.
4161 (create_tracepoint_from_upload): Pass
4162 CREATE_BREAKPOINT_FLAGS_INSERTED.
4163 * breakpoint.h (enum breakpoint_create_flags): New.
4164 (create_breakpoint): New flags parameter.
4165 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4166 * python/py-breakpoint.c (bppy_init): Adjust.
4167 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4168 * spu-tdep.c (spu_catch_start): Adjust.
4169
4170 2012-03-13 Pedro Alves <palves@redhat.com>
4171 Hui Zhu <teawater@gmail.com>
4172 Yao Qi <yao@codesourcery.com>
4173
4174 * remote.c (struct remote_state): New field `starting_up'.
4175 (remote_start_remote): Set and clear it.
4176 (remote_can_download_tracepoint): If starting up, return false.
4177
4178 2012-03-13 Yao Qi <yao@codesourcery.com>
4179
4180 * inferior.h (struct inferior): Remove fields any_syscall_count,
4181 syscalls_counts and total_syscalls_count. Move them to new
4182 struct catch_syscall_inferior_data in breakpoint.c.
4183 * breakpoint.c: Call DEF_VEC_I(int).
4184 (struct catch_syscall_inferior_data): New.
4185 (get_catch_syscall_inferior_data): New.
4186 (catch_syscall_inferior_data_cleanup): New.
4187 (insert_catch_syscall): Update to access data in
4188 struct catch_syscall_inferior_data.
4189 (insert_catch_syscall): Likewise.
4190 (remove_catch_syscall): Likewise.
4191 (remove_catch_syscall): Likewise.
4192 (is_syscall_catchpoint_enabled): Likewise.
4193 (add_catch_command): Likewise.
4194 (_initialize_breakpoint): Register cleanup.
4195 * breakpoint.h: Removed DEF_VEC_I(int).
4196 * dwarf2loc.c: Call DEF_VEC_I(int).
4197 * mi/mi-main.c: Likewise.
4198
4199 2012-03-12 Mark Kettenis <kettenis@gnu.org>
4200
4201 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4202
4203 2012-03-12 Chris January <chris.january@allinea.com>
4204
4205 * aix-thread.c (_initialize_aix_thread): Add prototype.
4206 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4207 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4208
4209 2012-03-12 Joel Brobecker <brobecker@adacore.com>
4210
4211 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4212 include of "amd64-nat.h".
4213
4214 2012-03-12 Tom Tromey <tromey@redhat.com>
4215
4216 * buildsym.c (record_pending_block): Now static.
4217 * buildsym.h: (record_pending_block): Remove.
4218
4219 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
4220
4221 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4222
4223 2012-03-09 Tom Tromey <tromey@redhat.com>
4224
4225 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4226 producer_is_gxx_lt_4_6>: New fields.
4227 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4228
4229 2012-03-09 Tom Tromey <tromey@redhat.com>
4230
4231 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4232
4233 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4234
4235 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4236 prototype.
4237
4238 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4239
4240 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4241
4242 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4243
4244 Fix -Wmissing-prototypes build.
4245 * arm-linux-nat.c (get_thread_id): Make it static.
4246 * xtensa-linux-nat.c (get_thread_id): Likewise.
4247
4248 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4249
4250 * server.c (process_point_options): If a conditional expression
4251 is found, only print a message if remote_debug is nonzero.
4252
4253 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
4254
4255 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4256 of internal error for unknown/unsupported types.
4257
4258 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4259
4260 Fix CU relative vs. absolute DIE offsets.
4261 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4262 offset to offset_in_cu.
4263 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4264 TYPE_OFFSET.
4265 (dwarf2_fetch_die_location_block): Rename parameter offset to
4266 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4267
4268 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4269
4270 * libunwind-frame.c: Rename to ...
4271 * ia64-libunwind-tdep.c: ... here.
4272 * libunwind-frame.h: Rename to ...
4273 * ia64-libunwind-tdep.h: ... here.
4274 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4275 ia64-libunwind-tdep.h.
4276 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4277 * README (--with-libunwind): Rename to ...
4278 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4279 * config.in: Regenerate.
4280 * configure: Regenerate.
4281 * configure.ac: New option --with-libunwind-ia64, make the
4282 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4283 Remove AC_DEFINE for HAVE_LIBUNWIND.
4284 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4285 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4286 Rename libunwind-frame in the general comment.
4287 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4288 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4289 Move forward declarations inside #ifndef. Rename libunwind-frame in
4290 the general comment.
4291 * ia64-tdep.c: Rename libunwind-frame.h #include to
4292 ia64-libunwind-tdep.h.
4293 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4294 (ia64_libunwind_descr): Rename libunwind-frame to
4295 ia64-libunwind-tdep in these function comments.
4296 * ia64-tdep.h: Rename libunwind-frame.h #include to
4297 ia64-libunwind-tdep.h.
4298 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4299 ia64-libunwind-tdep in that data comment.
4300
4301 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4302
4303 * libunwind-frame.h (struct frame_unwind): New declaration.
4304
4305 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4306
4307 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4308 "set breakpoint condition-evaluation" command.
4309
4310 2012-03-08 Tristan Gingold <gingold@adacore.com>
4311
4312 * sparc-stub.c: Move to stubs/
4313 * sh-stub.c: Likewise.
4314 * m68k-stub.c: Likewise.
4315 * m32r-stub.c: Likewise.
4316 * i386-stub.c: Likewise.
4317
4318 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4319
4320 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4321 linux_get_siginfo_type.
4322
4323 * m68klinux-nat.c: Include "gdb_proc_service.h".
4324 (PTRACE_GET_THREAD_AREA): Define.
4325 (ps_get_thread_area): New function.
4326
4327 2012-03-08 Yao Qi <yao@codesourcery.com>
4328
4329 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4330 `xsnprintf'.
4331 (remote_query_attached): Likewise.
4332 (remote_static_tracepoint_marker_at): Likewise.
4333 (remote_set_permissions): Likewise.
4334 (remote_detach_1, extended_remote_attach_1): Likewise.
4335 (send_g_packet, remote_vkill): Likewise.
4336 (extended_remote_disable_randomization): Likewise.
4337 (remote_add_target_side_condition): Likewise.
4338 (remote_insert_breakpoint): Likewise.
4339 (remote_remove_breakpoint): Likewise.
4340 (remote_insert_watchpoint): Likewise.
4341 (remote_remove_watchpoint): Likewise.
4342 (remote_insert_hw_breakpoint): Likewise.
4343 (remote_insert_hw_breakpoint): Likewise.
4344 (remote_remove_hw_breakpoint): Likewise.
4345 (remote_download_command_source): Likewise.
4346 (remote_download_tracepoint): Likewise.
4347 (remote_download_trace_state_variable): Likewise.
4348 (remote_disable_tracepoint): Likewise.
4349 (remote_trace_set_readonly_regions): Likewise.
4350 (remote_get_tracepoint_status): Likewise.
4351 (remote_trace_find): Likewise.
4352 (remote_get_trace_state_variable_value): Likewise.
4353 (remote_set_disconnected_tracing): Likewise.
4354 (remote_set_circular_trace_buffer): Likewise.
4355 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4356 (remote_use_agent): Likewise.
4357 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4358 Update callers.
4359
4360 2012-03-07 Pedro Alves <palves@redhat.com>
4361
4362 * NEWS: Mention QProgramSignals.
4363 * inferior.h (update_signals_program_target): Declare.
4364 * infrun.c: (update_signals_program_target): New.
4365 (handle_command): Update the target of the new program signals
4366 array changes.
4367 * remote.c (PACKET_QProgramSignals): New enum.
4368 (last_program_signals_packet): New global.
4369 (remote_program_signals): New.
4370 (remote_start_remote): Update the target with the program signals
4371 list.
4372 (remote_protocol_features): Add entry for QPassSignals.
4373 (remote_open_1): Free anc clear last_program_signals_packet.
4374 (init_remote_ops): Install remote_program_signals.
4375 * target.c (update_current_target): Adjust.
4376 (target_program_signals): New.
4377 * target.h (struct target_ops) <to_program_signals>: New field.
4378 (target_program_signals): Declare.
4379
4380 2012-03-07 Pedro Alves <palves@redhat.com>
4381
4382 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4383 extensions.
4384
4385 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4386
4387 * m68klinux-nat.c (getregs_supplies): Make static.
4388 (getfpregs_supplies): Likewise.
4389 (have_ptrace_getregs): Likewise.
4390
4391 2012-03-06 Joel Brobecker <brobecker@adacore.com>
4392
4393 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4394 in call to get_die_type_at_offset.
4395
4396 2012-03-06 Stan Shebs <stan@codesourcery.com>
4397
4398 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4399 * mi/mi-cmd-disas.c: Ditto.
4400 * mi/mi-cmd-env.c: Ditto.
4401 * mi/mi-cmd-file.c: Ditto.
4402 * mi/mi-cmd-stack.c: Ditto.
4403 * mi/mi-cmd-target.c: Ditto.
4404 * mi/mi-cmd-var.c: Ditto.
4405 * mi/mi-cmds.c: Ditto.
4406 * mi/mi-cmds.h: Ditto.
4407 * mi/mi-console.c: Ditto.
4408 * mi/mi-getopt.c: Ditto.
4409 * mi/mi-getopt.h: Ditto.
4410 * mi/mi-interp.c: Ditto.
4411 * mi/mi-main.c: Ditto.
4412 * mi/mi-out.c: Ditto.
4413 * mi/mi-parse.c: Ditto.
4414 * mi/mi-parse.h: Ditto.
4415 * mi/mi-symbol-cmds.c: Ditto.
4416
4417 * mi/mi-getopt.h: Move mi_opt struct up.
4418 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4419 return.
4420 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4421
4422 2012-03-06 Tom Tromey <tromey@redhat.com>
4423
4424 * proc-service.c (ps_pglobal_lookup): Set the current program
4425 space.
4426
4427 2012-03-06 Pedro Alves <palves@redhat.com>
4428
4429 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4430
4431 2012-03-05 Joel Brobecker <brobecker@adacore.com>
4432
4433 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4434
4435 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4436
4437 Code cleanup.
4438 * common/linux-osdata.c (linux_common_core_of_thread): New function
4439 comment.
4440 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4441 call by linux_common_core_of_thread.
4442 (linux_nat_core_of_thread_1): Remove.
4443 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4444 * linux-thread-db.c: Include linux-osdata.h.
4445 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4446 linux_common_core_of_thread.
4447
4448 2012-03-05 Tom Tromey <tromey@redhat.com>
4449
4450 * value.c (value_primitive_field): Don't fetch contents for
4451 non-virtual bases.
4452
4453 2012-03-05 Tom Tromey <tromey@redhat.com>
4454
4455 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4456
4457 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
4458
4459 * s390-nat.c: Include "gregset.h".
4460
4461 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4462
4463 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4464 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4465 (libunwind_load): New variable so_error, use it for dlerror. Try to
4466 load also LIBUNWIND_SO_7.
4467
4468 2012-03-05 Pedro Alves <palves@redhat.com>
4469
4470 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4471 is not NULL, and remove resulting dead code.
4472
4473 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4474
4475 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4476 prologue to sh_analyze_prologue.
4477 (sh_analyze_prologue): Make better use of such an upper limit, and
4478 generally be more cautious about accessing memory.
4479
4480 2012-03-05 Tom Tromey <tromey@redhat.com>
4481
4482 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4483 _initialize_ia64_hpux_tdep.
4484
4485 2012-03-05 Pedro Alves <palves@redhat.com>
4486
4487 PR gdb/13766
4488
4489 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4490 the register state is clear, supply explicit zero, instead of
4491 marking the register unavailable.
4492
4493 2012-03-05 Tristan Gingold <gingold@adacore.com>
4494
4495 * NEWS: Mention OpenVMS ia64 new target.
4496
4497 2012-03-05 Tristan Gingold <gingold@adacore.com>
4498
4499 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4500 (ia64_unw_accessors, ia64_unw_rse_accessors)
4501 (ia64_libunwind_descr): Declare.
4502 * ia64-vms-tdep.c: New file.
4503 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4504 (ia64_libunwind_descr): Make them public.
4505 * configure.tgt: Add ia64-*-*vms*.
4506 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4507 (ALLDEPFILES): Add ia64-vms-tdep.c
4508
4509 2012-03-05 Tristan Gingold <gingold@adacore.com>
4510
4511 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4512 * remote.c (PACKET_qXfer_uib): New enum value.
4513 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4514 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4515 (_initialize_remote): Call add_packet_config_cmd for
4516 xfer:uib packet.
4517
4518 2012-03-05 Tristan Gingold <gingold@adacore.com>
4519
4520 * osabi.c (gdb_osabi_names): Add OpenVMS.
4521 (generic_elf_osabi_sniffer): Likewise.
4522 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
4523
4524 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4525
4526 Removed unused code.
4527 * libunwind-frame.c (libunwind_frame_unwind)
4528 (libunwind_frame_base_address): Remove.
4529 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4530
4531 2012-03-04 Yao Qi <yao@codesourcery.com>
4532
4533 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4534 remove trailing new line.
4535 (agent_run_command, agent_run_command): Add _ markup.
4536 (agent_capability_check): Likewise.
4537
4538 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4539
4540 * breakpoint.c (set_condition_evaluation_mode): Set
4541 CONDITION_EVALUATION_MODE unconditionally.
4542
4543 2012-03-03 Yao Qi <yao@codesourcery.com>
4544
4545 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4546 * common/agent.h: Update declaration.
4547 * inf-child.c (inf_child_use_agent): New.
4548 (inf_child_can_use_agent): New.
4549 (inf_child_target): Initialize fields `to_use_agent'
4550 and `to_can_use_agent'.
4551 * agent.c (agent_new_objfile): New.
4552 (_initialize_agent): Add agent_new_objfile to new_objfile
4553 observer.
4554
4555 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4556 New.
4557 (linux_target_install_ops): Initialize field
4558 `to_static_tracepoint_markers_by_strid'.
4559 * remote.c (free_current_marker): Move it to ...
4560 * tracepoint.c (free_current_marker): ... here. New.
4561 (cleanup_target_stop): New.
4562 * tracepoint.h: Declare free_current_marker.
4563 * NEWS: Add one entry about `info static-tracepoint-marker'.
4564
4565 2012-03-03 Yao Qi <yao@codesourcery.com>
4566
4567 * common/agent.c (agent_loaded_p): New.
4568 (agent_look_up_symbols): New global.
4569 * common/agent.h: Declare agent_loaded_p.
4570
4571 2012-03-03 Yao Qi <yao@codesourcery.com>
4572
4573 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
4574 (agent_capability_check, agent_capability_invalidate): New.
4575 (symbol_list): New array element.
4576 * common/agent.h (enum agent_capa): New.
4577 * target.c (target_pre_inferior): Call agent_capability_invalidate.
4578
4579 2012-03-03 Yao Qi <yao@codesourcery.com>
4580
4581 * target.h (struct target_ops) <to_use_agent>: New field.
4582 (struct target_ops) <to_can_use_agent>: New field.
4583 (target_use_agent, target_can_use_agent): New macro.
4584 * target.c (update_current_target): Update.
4585 * remote.c: New enum `PACKET_QAgent'.
4586 (remote_protocol_features): Add a new element.
4587 (remote_use_agent, remote_can_use_agent): New.
4588 (init_remote_ops): Initialize field `can_use_agent' with
4589 remote_can_use_agent. Intiailize field `use_agent' with
4590 remote_use_agent.
4591 * common/agent.c (use_agent): New global.
4592 * common/agent.h: Declare it.
4593 * tracepoint.c (info_static_tracepoint_markers_command): Add
4594 comment.
4595 * Makefile.in (SFILES): Add common/agent.c and agent.c.
4596 (COMMON_OBS): Add common/agent.o and agent.o
4597 (common-agent.o): New rule.
4598 * agent.c: New.
4599
4600 2012-03-03 Yao Qi <yao@codesourcery.com>
4601
4602 * common/agent.c: New.
4603 * common/agent.h: New.
4604 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
4605 AC_CHECK_HEADERS.
4606 * configure, configh.in: Regenerated.
4607
4608 2012-03-02 Kevin Buettner <kevinb@redhat.com>
4609
4610 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
4611 unless it exists for this architecture.
4612
4613 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4614
4615 * language.h (struct language_defn): New "method" la_read_var_value.
4616 * findvar.c: #include "language.h".
4617 (default_read_var_value): Renames read_var_value. Rewrite
4618 function description.
4619 (read_var_value): New function.
4620 * value.h (default_read_var_value): Add prototype.
4621 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
4622 New functions.
4623 (ada_language_defn): Add entry for la_read_var_value.
4624 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
4625 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
4626 language_defn structures to add entry for new la_read_var_value
4627 field.
4628
4629 2012-03-02 Tom Tromey <tromey@redhat.com>
4630 Pedro Alves <palves@redhat.com>
4631
4632 PR breakpoints/13776:
4633 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
4634 breakpoints.
4635 (delete_longjmp_breakpoint_at_next_stop): New.
4636 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
4637 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
4638 before deleting the inferior. Add comments.
4639 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
4640 breakpoints immediately, but only on next stop. Move that code
4641 next to where we mark other breakpoints for deletion.
4642
4643 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4644
4645 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
4646 marker.
4647 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
4648 violation.
4649
4650 2012-03-02 Pedro Alves <palves@redhat.com>
4651
4652 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
4653
4654 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
4655
4656 Fix -Wmissing-prototypes build.
4657 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
4658 * remote-sim.c (gdbsim_has_all_memory): Likewise.
4659 (gdbsim_has_memory): Likewise.
4660
4661 2012-03-02 Yao Qi <yao@codesourcery.com>
4662
4663 Fix -Wmissing-prototypes build.
4664 * charset.c (phony_iconv_open): Make static.
4665 (phony_iconv_close, phony_iconv): Likewise.
4666 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
4667 * i386-windows-nat.c (_initialize_i386_windows_nat): New
4668 prototype.
4669 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
4670 * ser-mingw.c (create_select_thread): Make static.
4671 * windows-termcap.c (tgetent): New prototype.
4672 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
4673
4674 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
4675
4676 Fix -Wmissing-prototypes build.
4677 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
4678 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
4679 (_initialize_loadable): New prototypes.
4680
4681 2012-03-02 Doug Evans <dje@google.com>
4682
4683 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
4684 abbrev table, read_comp_unit will do it.
4685
4686 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4687
4688 Fix -Wmissing-prototypes build.
4689 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
4690 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
4691 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
4692 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
4693 (_initialize_arm_symbian_tdep): New prototype.
4694 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
4695 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
4696 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
4697 static.
4698 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
4699 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
4700 prototype.
4701 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
4702 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
4703 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
4704 static.
4705 * moxie-tdep.c (moxie_process_record): Likewise.
4706 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
4707 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
4708 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
4709 (_initialize_rl78_tdep): New prototype.
4710 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
4711 (_initialize_rx_tdep): New prototype.
4712 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
4713 (_initialize_darwin_solib): New prototype.
4714 * solib-spu.c: Include solib-spu.h.
4715 (_initialize_spu_solib): New prototype.
4716 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
4717 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
4718 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
4719 (tic6x_software_single_step): Make it static.
4720 (_initialize_tic6x_tdep): New prototype.
4721
4722 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4723
4724 Fix -Wmissing-prototypes build.
4725 * cris-tdep.c (cris_can_use_hardware_watchpoint)
4726 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
4727
4728 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4729
4730 Fix -Wmissing-prototypes build.
4731 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
4732 (frv_have_stopped_data_address): Remove.
4733
4734 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4735
4736 Fix -Wmissing-prototypes build.
4737 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
4738 * sh-tdep.c: Include sh64-tdep.h.
4739 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
4740 * sh64-tdep.c: Include sh64-tdep.h.
4741 * sh64-tdep.h: New file.
4742
4743 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4744
4745 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
4746
4747 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4748
4749 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
4750 sp_regnum once the gdbarch_init_osabi hook has been called.
4751
4752 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4753
4754 * mips-tdep.c (mips32_bc1_pc): New function.
4755 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
4756 BPOSGE32 and BPOSGE64 instructions.
4757 (deal_with_atomic_sequence): Likewise.
4758 (mips32_instruction_has_delay_slot): Likewise.
4759
4760 2012-03-01 Maciej W. Rozycki <macro@mips.com>
4761 Chris Dearman <chris@mips.com>
4762 Maciej W. Rozycki <macro@codesourcery.com>
4763 Joseph Myers <joseph@codesourcery.com>
4764
4765 * features/mips-dsp.xml: New file.
4766 * features/mips64-dsp.xml: New file.
4767 * features/mips-dsp-linux.xml: New file.
4768 * features/mips64-dsp-linux.xml: New file.
4769 * features/Makefile (WHICH): Add mips-dsp-linux and
4770 mips64-dsp-linux.
4771 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
4772 * features/mips-dsp-linux.c: New file.
4773 * features/mips64-dsp-linux.c: New file.
4774 * regformats/mips-dsp-linux.dat: New file.
4775 * regformats/mips64-dsp-linux.dat: New file.
4776 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
4777 registers.
4778 (mips64_linux_register_addr): Likewise.
4779 (mips64_linux_regsets_fetch_registers): Likewise.
4780 (mips64_linux_regsets_store_registers): Likewise.
4781 (mips64_linux_fetch_registers): Update call to
4782 mips64_linux_regsets_fetch_registers.
4783 (mips64_linux_store_registers): Update call to
4784 mips64_linux_regsets_store_registers.
4785 (mips_linux_read_description): Probe for DSP registers.
4786 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
4787 and initialize_tdesc_mips64_dsp_linux.
4788 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
4789 Remove padding of no longer used embedded register slots.
4790 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
4791 (MIPS_RESTART_REGNUM): Redefine enum value.
4792 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
4793 strings.
4794 (mips_tx39_reg_names): Likewise.
4795 (mips_linux_reg_names): New array of register names for Linux
4796 targets.
4797 (mips_register_name): Check for a null pointer in
4798 mips_processor_reg_names and return an empty string.
4799 (mips_register_type): Exclude embedded registers for the IRIX
4800 and Linux ABIs.
4801 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
4802 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
4803 DSP registers.
4804 (mips_stab_reg_to_regnum): Handle DSP accumulators.
4805 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
4806 (mips_gdbarch_init): Likewise. Initialize internal register
4807 indices for the Linux ABI. Use dynamic numbers to refer to
4808 registers, as applicable, while parsing the target description.
4809 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
4810
4811 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4812
4813 * frame.h (read_frame_register_unsigned): Fix typo in function
4814 description.
4815
4816 2012-03-01 Pedro Alves <palves@redhat.com>
4817
4818 * jit-reader.in [!__cplusplus]
4819 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
4820
4821 2012-03-01 Pedro Alves <palves@redhat.com>
4822
4823 * configure.ac (build_warnings): Add -Wmissing-prototypes.
4824 * configure: Regenerate.
4825
4826 2012-03-01 Pedro Alves <palves@redhat.com>
4827
4828 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
4829 * breakpoint.c (create_exception_master_breakpoint, trace_command)
4830 (ftrace_command, strace_command): Make static.
4831 * d-lang.c (_initialize_d_language): Declare.
4832 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
4833 * dwarf2loc.c (_initialize_dwarf2loc):
4834 * dwarf2read.c (process_psymtab_comp_unit): Make static.
4835 * exec.c (exec_get_section_table): Make static.
4836 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
4837 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
4838 * inferior.c (remove_inferior_command, add_inferior_command)
4839 (clone_inferior_command): Make static.
4840 * linux-nat.c (linux_nat_thread_address_space)
4841 (linux_nat_core_of_thread): Make static.
4842 * linux-tdep.c (_initialize_linux_tdep): Declare.
4843 * objc-lang.c (_initialize_objc_lang): Declare.
4844 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
4845 Make static.
4846 (_initialize_opencl_language): Declare.
4847 * record.c (_initialize_record): Declare.
4848 * remote.c (demand_private_info, remote_get_tib_address)
4849 (remote_supports_cond_tracepoints)
4850 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
4851 Make static.
4852 * skip.c (_initialize_step_skip): Declare.
4853 * symtab.c (skip_prologue_using_lineinfo): Make static.
4854 * tracepoint.c (delete_trace_state_variable)
4855 (trace_variable_command, delete_trace_variable_command)
4856 (get_uploaded_tsv, find_matching_tracepoint_location)
4857 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
4858 Make static.
4859 * value.c (pack_unsigned_long): Make static.
4860 * varobj.c (varobj_ensure_python_env): Make static.
4861 * windows-tdep.c (_initialize_windows_tdep): Declare.
4862 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
4863
4864 2012-03-01 Pedro Alves <palves@redhat.com>
4865
4866 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
4867 gdbarch parameter.
4868 (linux_init_abi): Install it as has_shared_address_space gdbarch
4869 callback.
4870
4871 2012-03-01 Pedro Alves <palves@redhat.com>
4872
4873 * observer.c (observer_test_first_notification_function)
4874 (observer_test_second_notification_function)
4875 (observer_test_third_notification_function): Add declarations.
4876
4877 2012-03-01 Pedro Alves <palves@redhat.com>
4878
4879 * common/signals.c (default_target_signal_to_host)
4880 (default_target_signal_from_host): Move ...
4881 * arch-utils.c: ... here.
4882 * arch-utils.h (default_target_signal_to_host)
4883 (default_target_signal_from_host): Declare.
4884
4885 * common/signals.c (target_signal_from_command): Move ...
4886 * infrun.c: ... here.
4887 * inferior.h (target_signal_from_command): Declare.
4888 * target.h (target_signal_from_command)
4889 (default_target_signal_from_host, default_target_signal_to_host):
4890 Delete declarations.
4891
4892 * common/signals.c (_initialize_signals): Delete.
4893
4894 2012-03-01 Pedro Alves <palves@redhat.com>
4895
4896 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
4897 both __cplusplus and !__cplusplus.
4898
4899 2012-03-01 Pedro Alves <palves@redhat.com>
4900
4901 * psymtab.c (find_and_open_source): Delete declaration.
4902 * source.c (find_and_open_source): Move comment ...
4903 * source.h (find_and_open_source): ... to this new declaration.
4904
4905 2012-03-01 Pedro Alves <palves@redhat.com>
4906
4907 * inline-frame.c: Include inline-frame.h.
4908
4909 2012-03-01 Pedro Alves <palves@redhat.com>
4910
4911 * tui/tui-data.c (set_gen_win_origin): Delete.
4912 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
4913 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
4914
4915 2012-03-01 Pedro Alves <palves@redhat.com>
4916
4917 * remote.c (encode_actions): Delete declaration.
4918 * tracepoint.c (encode_actions): Make extern.
4919 * tracepoint.h (encode_actions): Declare.
4920
4921 2012-03-01 Pedro Alves <palves@redhat.com>
4922
4923 * python/py-breakpoint.c: Include python.h.
4924 * python/py-continueevent.c (create_continue_event_object): Make
4925 static.
4926 * python/py-lazy-string.c (stpy_get_type): Make static.
4927 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4928 Make static.
4929 * python/py-utils.c (unicode_to_target_python_string): Make
4930 static.
4931 * python/py-value.c: Include python.h.
4932
4933 2012-03-01 Pedro Alves <palves@redhat.com>
4934
4935 * inferior.c (delete_threads_of_inferior): Delete.
4936
4937 2012-03-01 Pedro Alves <palves@redhat.com>
4938
4939 Import fallback definitions from glibc.
4940
4941 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
4942 ps_prochandle): Forward declare.
4943 (ps_err_e): Use glibc's comments.
4944 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
4945 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4946 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
4947 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
4948 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
4949 (struct ps_prochandle): Adjust comment.
4950
4951 2012-03-01 Pedro Alves <palves@redhat.com>
4952
4953 * ada-lang.c (ada_modulus_from_name): Delete.
4954 * ada-lex.l (lexer_init): Make static.
4955
4956 2012-03-01 Pedro Alves <palves@redhat.com>
4957
4958 PR gdb/13767
4959
4960 * frame.c (read_frame_register_unsigned): New.
4961 * frame.h (read_frame_register_unsigned): Declare.
4962 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
4963 Handle it.
4964 (print_i387_control_word): New parameter `control_p'. Handle it.
4965 (i387_print_float_info): Handle unavailable float registers.
4966
4967 2012-03-01 Keith Seitz <keiths@redhat.com>
4968
4969 * linespec.c (decode_line_2): Sort the list of methods
4970 alphabetically before presenting the user with a selection
4971 menu.
4972
4973 2012-03-01 Doug Evans <dje@google.com>
4974
4975 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
4976 has_namespace_info.
4977 (dwarf2_read_abbrevs): Remove corresponding initialization.
4978
4979 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
4980
4981 * NEWS: Mention new python command class gdb.COMMAND_USER.
4982 * cli/cli-cmds.c (show_user): Print error when used on a python
4983 command.
4984 (init_cli_cmds): Update documentation strings for "show user" and
4985 "set/show max-user-call-depth" to clarify that it does not apply to
4986 python commands.
4987 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
4988 error check.
4989 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
4990 gdb python api.
4991 * top.c (execute_command): Only execute a user-defined command as a
4992 legacy macro if c->user_commands is set.
4993
4994 2012-03-01 Tom Tromey <tromey@redhat.com>
4995
4996 * valprint.h (struct generic_val_print_decorations): New.
4997 (generic_val_print): Declare.
4998 * valprint.c (generic_val_print): New function.
4999 * p-valprint.c (p_decorations): New global.
5000 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5001 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5002 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5003 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5004 * m2-valprint.c (m2_decorations): New global.
5005 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5006 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5007 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5008 TYPE_CODE_ERROR>: Call generic_val_print.
5009 * f-valprint.c (f_decorations): New global.
5010 (f_val_print): Use print_function_pointer_address.
5011 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5012 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5013 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5014 generic_val_print.
5015 * c-valprint.c (c_decorations): New global.
5016 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5017 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5018 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5019 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5020 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5021 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5022 case.
5023
5024 2012-03-01 Tom Tromey <tromey@redhat.com>
5025
5026 * valprint.c (val_print): Update.
5027 * p-valprint (pascal_val_print): Return void.
5028 * p-lang.h (pascal_val_print): Return void.
5029 * m2-valprint.c (m2_val_print): Return void.
5030 * m2-lang.h (m2_val_print): Return void.
5031 * language.h (struct language_defn) <la_val_print>: Return void.
5032 * language.c (unk_lang_val_print): Return void.
5033 * jv-valprint.c (java_val_print): Return void.
5034 * jv-lang.h (java_val_print): Return void.
5035 * f-valprint.c (f_val_print): Return void.
5036 * f-lang.h (f_val_print): Return void.
5037 * d-valprint.c (d_val_print): Return void.
5038 (dynamic_array_type): Update.
5039 * d-lang.h (d_val_print): Return void.
5040 * c-valprint.c (c_val_print): Return void.
5041 * c-lang.h (c_val_print): Return void.
5042 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5043 void.
5044 * ada-lang.h (ada_val_print): Return void.
5045
5046 2012-03-01 Tom Tromey <tromey@redhat.com>
5047
5048 * value.h (val_print): Return void.
5049 * valprint.c (val_print): Return void.
5050
5051 2012-03-01 Tom Tromey <tromey@redhat.com>
5052
5053 * value.h (common_val_print): Return void.
5054 * valprint.c (common_val_print): Return void.
5055
5056 2012-03-01 Tom Tromey <tromey@redhat.com>
5057
5058 * value.h (value_print): Return void.
5059 * valprint.c (value_print): Return void.
5060 * p-valprint.c (pascal_value_print): Return void.
5061 * p-lang.h (pascal_value_print): Return void.
5062 * language.h (struct language_defn) <la_value_print>: Return
5063 void.
5064 * language.c (unk_lang_value_print): Return void.
5065 * jv-valprint.c (java_value_print): Return void.
5066 * jv-lang.h (java_value_print): Return void.
5067 * f-valprint.c (c_value_print): Don't declare.
5068 Include c-lang.h.
5069 * c-valprint.c (c_value_print): Return void.
5070 * c-lang.h (c_value_print): Return void.
5071 * ada-valprint.c (ada_value_print): Return void.
5072 * ada-lang.h (ada_value_print): Return void.
5073
5074 2012-03-01 Tom Tromey <tromey@redhat.com>
5075
5076 * value.c (value_primitive_field): Handle virtual base classes.
5077
5078 2012-03-01 Tom Tromey <tromey@redhat.com>
5079
5080 * gdbtypes.h (struct vbase): Remove.
5081
5082 2012-03-01 Tom Tromey <tromey@redhat.com>
5083
5084 * c-valprint.c (print_function_pointer_address): Move...
5085 * valprint.c: ... here. Make non-static.
5086 * m2-valprint.c (print_function_pointer_address): Remove.
5087 * valprint.h (print_function_pointer_address): Declare.
5088
5089 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5090
5091 * NEWS: Document the fact that one can provide a condition when
5092 creating an Ada exception catchpoint.
5093
5094 2012-03-01 Tom Tromey <tromey@redhat.com>
5095
5096 * valprint.c (val_print_type_code_flags): Fix placement of
5097 trailing brace.
5098
5099 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5100
5101 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5102 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5103 environment variable before calling update-copyright.
5104
5105 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5106
5107 * gnulib/extra/update-copyright: Update to the latest from
5108 gnulib's git repository.
5109 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5110 variable to 2 instead of 1.
5111
5112 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5113
5114 * varobj.c (c_value_of_variable): Remove dead code.
5115
5116 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5117
5118 * ada-lex.p (processId): Do not modify already encoded IDs.
5119 Update function documentation.
5120
5121 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5122
5123 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5124 "name" with "struct symbol *name_sym".
5125 * ada-exp.y (write_var_or_type): Update call to
5126 ada_find_renaming_symbol.
5127 "name" with "struct symbol *name_sym". Adjust Implementation
5128 accordingly. Adjust the function documentation.
5129
5130 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5131
5132 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5133 * ada-lang.c (ada_find_any_type): Add advance declaration.
5134 Make static. Replace ada_find_any_symbol by
5135 ada_find_any_type_symbol.
5136 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5137 Improve function description. Make static.
5138 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5139 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5140
5141 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5142
5143 * ada-lang.c (struct tag_args): Delete.
5144 (ada_get_tsd_type): Function body moved up in source file.
5145 (ada_tag_name_1, ada_tag_name_2): Delete.
5146 (ada_get_tsd_from_tag): New function.
5147 (ada_tag_name_from_tsd): New function.
5148 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5149 to determine the tag name.
5150
5151 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5152
5153 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5154 declaration.
5155 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5156 function.
5157
5158 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5159
5160 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5161
5162 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5163
5164 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5165 full searches.
5166
5167 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5168
5169 * ada-lang.c (constrained_packed_array_type): If there is a
5170 parallel XA type, use it to determine the array index type.
5171
5172 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5173
5174 * ada-valprint.c (ada_val_print_1): If our value is a reference
5175 to an array descriptor, dereference it before converting it
5176 to a simple array.
5177
5178 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5179
5180 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5181 creating fixed value.
5182 (ada_value_ind, ada_coerce_ref, assign_component)
5183 (ada_evaluate_subexp): Remove call to unwrap_value before
5184 call to ada_to_fixed_value.
5185
5186 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5187
5188 * ada-lang.c (to_fixed_array_type): Set result's type name.
5189
5190 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5191
5192 * ada-lang.c (catch_ada_exception_command_split): Add new
5193 argument cond_string. Add support for condition at end of
5194 "catch exception" commands.
5195 (ada_decode_exception_location): Add new argument cond_string.
5196 Update call to catch_ada_exception_command_split.
5197 (create_ada_exception_catchpoint): Add new argument cond_string.
5198 Set the breakpoint condition if needed.
5199 (catch_ada_exception_command): Update call to
5200 ada_decode_exception_location.
5201 (ada_decode_assert_location): Add function documentation.
5202 Add support for condition at end of "catch assert" command.
5203 (catch_assert_command): Update calls to ada_decode_assert_location
5204 and create_ada_exception_catchpoint.
5205
5206 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5207
5208 Fix disp-step-syscall.exp: fork: single step over fork.
5209 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5210 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5211 comment, change parameters gdbarch and ptid to regcache. Remove
5212 parameter regcache, initialize gdbarch from regcache here.
5213 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5214 New functions.
5215 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5216 instead.
5217 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5218 'syscall'. Make the 'int' check more strict.
5219
5220 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5221
5222 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5223 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5224 (i386_linux_intx80_sysenter_syscall_record): ... here.
5225 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5226 Use the renamed function name.
5227
5228 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5229
5230 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5231 * breakpoint.c (until_break_command): Likewise.
5232 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5233 * infcall.c (call_function_by_hand): Likewise.
5234 * infcmd.c (finish_forward): Likewise.
5235 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5236
5237 2012-02-28 Tristan Gingold <gingold@adacore.com>
5238
5239 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5240 avoid variable assignments inside condition.
5241
5242 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5243
5244 Fix static analysis issue found by cppcheck.
5245 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5246 uninitialized BUF for size 2.
5247
5248 2012-02-27 Chris Dearman <chris@mips.com>
5249 Nathan Froyd <froydnj@codesourcery.com>
5250 Maciej W. Rozycki <macro@codesourcery.com>
5251
5252 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5253 (mips16_instruction_has_delay_slot): Likewise.
5254 (mips_segment_boundary): Likewise.
5255 (mips_adjust_breakpoint_address): Likewise.
5256 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5257
5258 2012-02-27 Maciej W. Rozycki <macro@mips.com>
5259 Maciej W. Rozycki <macro@codesourcery.com>
5260
5261 * infrun.c (handle_inferior_event): Don't proceed through
5262 shared library trampolines if stepping at the machine
5263 instruction level.
5264
5265 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5266
5267 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5268 too.
5269
5270 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5271
5272 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5273 (sh_stub_unwind_sniffer): New functions.
5274 (sh_stub_unwind): New variable.
5275 (sh_gdbarch_init): Wire everything.
5276
5277 2012-02-27 Pedro Alves <palves@redhat.com>
5278
5279 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5280 (linux_nat_post_attach_wait): Adjust to use
5281 linux_proc_pid_is_stopped.
5282 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5283 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5284 based on pid_is_stopped from both linux-nat.c and
5285 gdbserver/linux-low.c, and renamed.
5286
5287 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5288
5289 * remote.c (remote_watchpoint_addr_within_range): New function.
5290 (init_remote_ops): Use it.
5291
5292 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5293
5294 * target.h (target_watchpoint_addr_within_range): Document macro.
5295
5296 2012-02-24 Pedro Alves <palves@redhat.com>
5297
5298 * stack.c (set_last_displayed_sal): Issue internal_error instead
5299 of warning, and issue it after clearing the last displayed sal.
5300
5301 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5302 Pedro Alves <palves@redhat.com>
5303
5304 * breakpoint.c (until_break_command): Install breakpoints after
5305 all frame manipulations.
5306
5307 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5308
5309 * remote.c (remote_supports_cond_breakpoints): New forward
5310 declaration.
5311 (remote_add_target_side_condition): New function.
5312 (remote_insert_breakpoint): Add target-side breakpoint
5313 conditional if supported.
5314 (remote_insert_hw_breakpoint): Likewise.
5315 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5316 hook.
5317
5318 * target.c (update_current_target): Inherit
5319 to_supports_evaluation_of_breakpoint_conditions.
5320 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5321
5322 * target.h (struct target_ops)
5323 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5324 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5325
5326 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5327 (condition_evaluation_both, condition_evaluation_auto,
5328 condition_evaluation_host, condition_evaluation_target,
5329 condition_evaluation_enums, condition_evaluation_mode_1,
5330 condition_evaluation_mode): New static globals.
5331 (translate_condition_evaluation_mode): New function.
5332 (breakpoint_condition_evaluation_mode): New function.
5333 (gdb_evaluates_breakpoint_condition_p): New function.
5334 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5335 (mark_breakpoint_modified): New function.
5336 (mark_breakpoint_location_modified): New function.
5337 (set_condition_evaluation_mode): New function.
5338 (show_condition_evaluation_mode): New function.
5339 (bp_location_compare_addrs): New function.
5340 (get_first_location_gte_addr): New helper function.
5341 (set_breakpoint_condition): Free condition bytecode if locations
5342 has become unconditional. Call mark_breakpoint_modified (...).
5343 (condition_command): Call update_global_location_list (1) for
5344 breakpoints.
5345 (breakpoint_xfer_memory): Use is_breakpoint (...).
5346 (is_breakpoint): New function.
5347 (parse_cond_to_aexpr): New function.
5348 (build_target_condition_list): New function.
5349 (insert_bp_location): Handle target-side conditional
5350 breakpoints and call build_target_condition_list (...).
5351 (update_inserted_breakpoint_locations): New function.
5352 (insert_breakpoint_locations): Handle target-side conditional
5353 breakpoints.
5354 (bpstat_check_breakpoint_conditions): Add comment.
5355 (bp_condition_evaluator): New function.
5356 (bp_location_condition_evaluator): New function.
5357 (print_breakpoint_location): Print information on where the condition
5358 will be evaluated.
5359 (print_one_breakpoint_location): Likewise.
5360 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5361 breakpoint location.
5362 (force_breakpoint_reinsertion): New functions.
5363 (update_global_location_list): Handle target-side breakpoint
5364 conditions.
5365 Reinsert locations that are already inserted if conditions have
5366 changed.
5367 (bp_location_dtor): Free agent expression bytecode.
5368 (disable_breakpoint): Call mark_breakpoint_modified (...).
5369 Call update_global_location_list (...) with parameter 1 for breakpoints.
5370 (disable_command): Call mark_breakpoint_location_modified (...).
5371 Call update_global_location_list (...) with parameter 1 for breakpoints.
5372 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5373 (enable_command): mark_breakpoint_location_modified (...).
5374 (_initialize_breakpoint): Update documentation and add
5375 condition-evaluation breakpoint subcommand.
5376
5377 * breakpoint.h: Include ax.h.
5378 (condition_list): New data structure.
5379 (condition_status): New enum.
5380 (bp_target_info) <cond_list>: New field.
5381 (bp_location) <condition_changed, cond_bytecode>: New fields.
5382 (is_breakpoint): New prototype.
5383
5384 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5385
5386 * remote.c (remote_state) <cond_breakpoints>: New field.
5387 (PACKET_ConditionalBreakpoints): New enum.
5388 (remote_cond_breakpoint_feature): New function.
5389 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5390 (remote_supports_cond_breakpoints): New function.
5391 (_initialize_remote): Add new packet configuration for
5392 target-side conditional breakpoints.
5393
5394 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5395
5396 * NEWS: Mention target-side conditional breakpoint support,
5397 new condition-evaluation breakpoint subcommand and remote
5398 packet extensions.
5399
5400 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5401
5402 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5403 number.
5404
5405 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5406
5407 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5408 (after_prologue): Remove.
5409
5410 2012-02-23 Tom Tromey <tromey@redhat.com>
5411
5412 * jv-valprint.c (java_val_print): Remove dead code.
5413
5414 2012-02-23 Tristan Gingold <gingold@adacore.com>
5415
5416 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5417 known_tasks_element and known_tasks_length fields.
5418 (read_known_tasks_array): Change argument type. Use pointer type
5419 and number of elements from DATA. Adjust.
5420 (read_known_tasks_list): Likewise.
5421 (get_known_tasks_addr): Remove.
5422 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5423 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5424 type and array length. Merge former get_known_tasks_addr code.
5425
5426 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5427
5428 PR backtrace/13716
5429 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5430 it after set_momentary_breakpoint.
5431
5432 2012-02-22 Sterling Augustine <saugustine@google.com>
5433
5434 PR 13689:
5435 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5436
5437 2012-02-22 Gary Benson <gbenson@redhat.com>
5438
5439 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5440 (find_slot_in_mapped_hash): Likewise.
5441
5442 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5443
5444 PR build/13638
5445 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5446 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5447 * configure: Regenerate.
5448
5449 2012-02-21 Tristan Gingold <gingold@adacore.com>
5450 Pedro Alves <palves@redhat.com>
5451
5452 * ia64-tdep.c: Do not include libunwind-ia64.h.
5453 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5454 Include libunwind-ia64.h instead of libunwind.h.
5455 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5456 for libunwind.h existence.
5457 * configure, config.in: Regenerate.
5458
5459 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5460
5461 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5462 instead of value_rtti_target_type.
5463 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5464 instead of value_rtti_target_type.
5465 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5466 value_rtti_target_type.
5467 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5468 (value_rtti_target_type): Rename to ...
5469 (value_rtti_indirect_type): ... here and make it indirect. Update
5470 function comment.
5471 * value.c (readjust_indirect_value_type): New function.
5472 (coerce_ref): Support for enclosing type setting for references
5473 with readjust_indirect_value_type.
5474 * value.h (readjust_value_type): New declaration.
5475 (value_rtti_target_type): Rename to ...
5476 (value_rtti_indirect_type): ... here.
5477
5478 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5479
5480 * MAINTAINERS (Write After Approval): Add myself to the list.
5481
5482 2012-02-20 Doug Evans <dje@google.com>
5483
5484 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5485 Rename objfile_p_char parameter to objfilep.
5486 (build_objfile_section_table): Result is now void. All callers
5487 updated.
5488 * objfiles.h (struct objfile): Tweak comments, whitespace.
5489 (build_objfile_section_table): Update.
5490
5491 * elfread.c (elf_symfile_segments): Fix warning text.
5492
5493 2012-02-20 Tom Tromey <tromey@redhat.com>
5494
5495 PR gdb/13498:
5496 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5497 particular set of file names once.
5498 (dw2_map_symbol_filenames): Likewise.
5499
5500 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5501
5502 Code cleanup.
5503 * main.c (write_files): Remove the declaration.
5504 (external_editor_command): Move the declaration ...
5505 [GDBTK] (external_editor_command): ... here. Fix the comment.
5506
5507 2012-02-20 Tom Tromey <tromey@redhat.com>
5508
5509 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5510 extraneous block.
5511
5512 2012-02-20 Tristan Gingold <gingold@adacore.com>
5513
5514 * darwin-nat.h (enum darwin_msg_state): Add comments.
5515
5516 2012-02-20 Tristan Gingold <gingold@adacore.com>
5517
5518 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5519 value.
5520
5521 2012-20-18 Joel Brobecker <brobecker@adacore.com>
5522
5523 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5524 between function description and implementation.
5525
5526 2012-02-17 Tom Tromey <tromey@redhat.com>
5527
5528 PR python/12070:
5529 * python/py-event.c (event_object_getset): New global.
5530 (event_object_type): Reference it.
5531 * python/py-type.c (field_object_getset): New global.
5532 (field_object_type): Reference it.
5533 * python/python-internal.h (gdb_py_generic_dict): Declare.
5534 * python/py-utils.c (gdb_py_generic_dict): New function.
5535
5536 2012-02-17 Tristan Gingold <gingold@adacore.com>
5537
5538 * solib-darwin.c (darwin_current_sos): Check magic and filetype
5539
5540 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
5541
5542 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5543 TYPE_CALLING_CONVENTION annotation.
5544
5545 2012-02-16 Kevin Buettner <kevinb@redhat.com>
5546
5547 * MAINTAINERS: Add rx to target ISA section.
5548 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5549 (ALLDEPFILES): Add rx-tdep.c.
5550
5551 2012-02-16 Tom Tromey <tromey@redhat.com>
5552
5553 * symfile.c (symbol_file_add_main_1): Use inferior's
5554 symfile_flags.
5555 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5556 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5557 inferior.
5558 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5559 inferior.
5560 (follow_exec): Use inferior's symfile_flags.
5561 * inferior.h (struct inferior) <symfile_flags>: New field.
5562
5563 2012-02-16 Mike Frysinger <vapier@gentoo.org>
5564
5565 PR gdb/9734:
5566 * remote-sim.c (gdbsim_create_inferior): Call error() when
5567 sim_create_inferior() fails.
5568
5569 2012-02-16 Josh Matthews <josh@joshmatthews.net>
5570
5571 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
5572
5573 2012-02-16 Tom Tromey <tromey@redhat.com>
5574
5575 PR c++/13653:
5576 * thread.c (struct current_thread_cleanup) <was_removable>: New
5577 field.
5578 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
5579 (make_cleanup_restore_current_thread): Initialize new field.
5580
5581 2012-02-15 Kevin Buettner <kevinb@redhat.com>
5582
5583 * MAINTAINERS: Add rl78 to target ISA section.
5584 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
5585 (ALLDEPFILES): Add rl78-tdep.c.
5586 * NEWS: Mention rl78 as a new target.
5587
5588 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
5589
5590 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
5591 data.
5592 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
5593
5594 2012-02-15 Tom Tromey <tromey@redhat.com>
5595
5596 PR gdb/12659:
5597 * infcmd.c (registers_info): Print just the current register's
5598 name.
5599
5600 2012-02-15 Tom Tromey <tromey@redhat.com>
5601
5602 * python/py-symbol.c (sympy_value): Use _().
5603
5604 2012-02-15 Pedro Alves <palves@redhat.com>
5605
5606 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
5607 output to be like native targets'.
5608 (remote_pid_to_str): Special case the null ptid.
5609
5610 2012-02-14 Stan Shebs <stan@codesourcery.com>
5611
5612 * NEWS: Mention enable count command.
5613 * breakpoint.h (struct breakpoint): New field enable_count.
5614 * breakpoint.c (enable_breakpoint_disp): Add count argument.
5615 (enable_breakpoint): Add arg to call.
5616 (struct disp_data): New struct.
5617 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
5618 (do_map_enable_once_breakpoint): Create a struct and pass it.
5619 (do_map_enable_delete_breakpoint): Ditto.
5620 (do_map_enable_count_breakpoint): New function.
5621 (enable_count_command): New function.
5622 (bpstat_stop_status): Decrement enable_count.
5623 (print_one_breakpoint_location): Report enable count.
5624 (_initialize_breakpoint): Add enable count command.
5625
5626 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5627
5628 * rl78-tdep.c (reggroups.h): Include.
5629 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
5630 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
5631 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
5632 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
5633 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
5634 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
5635 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
5636 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
5637 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
5638 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
5639 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
5640 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
5641 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
5642 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
5643 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
5644 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
5645 beginning of register list.
5646 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
5647 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
5648 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
5649 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
5650 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
5651 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
5652 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
5653 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
5654 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
5655 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
5656 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
5657 the pseudo registers. Rearrange other pseudo registers too so
5658 that the bank registers appear at the end.
5659 (rl78_register_type): Account for the fact that the byte sized
5660 bank registers are now pseudo-registers.
5661 (rl78_register_name): Rearrange the register name array. Make
5662 initial set of raw banked registers inaccessible.
5663 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
5664 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
5665 case for copying bytes back and forth between raw and pseudo
5666 versions of the banked registers. Update other cases to reflect
5667 the changed names.
5668 (rl78_return_value): Update to account for changed names of
5669 raw registers.
5670 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
5671 rl78_register_sim_regno().
5672
5673 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5674
5675 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
5676 the name parameter being passed to find_pc_partial_function().
5677
5678 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5679
5680 * MAINTAINERS: Step down from being ia64 target maintainer.
5681
5682 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5683
5684 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
5685 compilation warning.
5686
5687 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5688
5689 Fix crash on loaded shlibs without loaded exec_bfd.
5690 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
5691 (set_section_command): Replace exec_bfd by p->bfd.
5692
5693 2012-02-10 Tom Tromey <tromey@redhat.com>
5694
5695 * linespec.c (decode_line_internal): Skip symtabs_from_filename
5696 when we have a C++ qualified name.
5697
5698 2012-02-10 Pedro Alves <palves@redhat.com>
5699
5700 * inferior.c (inferior_pid_to_str): New.
5701 (print_inferior, inferior_command): Use it.
5702
5703 2012-02-10 Pedro Alves <palves@redhat.com>
5704
5705 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
5706 the test CFLAGS.
5707 * configure: Regenerate.
5708
5709 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5710
5711 * linespec.c (decode_line_internal): Fix comment correctness.
5712
5713 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
5714
5715 PR gdb/12953
5716 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
5717 * amd64bsd-nat.c: Add support for debug registers (adapted from
5718 i386bsd-nat.c).
5719 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
5720 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
5721 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
5722 (amd64bsd_dr_get_control): New functions.
5723 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
5724 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
5725 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
5726 watchpoints initialization.
5727 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
5728
5729 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5730
5731 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
5732 flds_bnds.fields.
5733 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
5734
5735 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5736
5737 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
5738
5739 2012-02-08 Joel Brobecker <brobecker@adacore.com>
5740
5741 * language.h (symbol_name_cmp_ftype): Renames
5742 symbol_name_match_p_ftype.
5743 (struct language_defn)[la_get_symbol_name_cmp]: Renames
5744 la_get_symbol_name_match_p.
5745 * ada-lang.c (ada_get_symbol_name_cmp): Renames
5746 ada_get_symbol_name_match_p. Update comment.
5747 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
5748 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
5749 Renames symbol_name_match_p. Update field type.
5750 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
5751 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
5752 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
5753 "la_get_symbol_name_cmp" in comments.
5754 * language.c: Likewise.
5755
5756 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5757
5758 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
5759 %eflags offset.
5760 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
5761 (amd64_sol2_gregset32_reg_offs): Likewise.
5762
5763 2012-02-08 Joel Brobecker <brobecker@adacore.com>
5764
5765 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
5766 of the returned BFD is allocated by GDB.
5767
5768 2012-02-07 Tom Tromey <tromey@redhat.com>
5769
5770 PR python/12027:
5771 * python/python-internal.h (frame_object_type): Declare.
5772 * python/py-symbol.c (sympy_needs_frame): New function.
5773 (sympy_value): New function.
5774 (symbol_object_getset): Add "needs_frame".
5775 (symbol_object_methods): Add "value".
5776 * python/py-frame.c (frame_object_type): No longer static.
5777
5778 2012-02-07 Tom Tromey <tromey@redhat.com>
5779
5780 PR python/13599:
5781 * python/py-symbol.c (sympy_line): New function.
5782 (symbol_object_getset): Add "line".
5783
5784 2012-02-07 Tom Tromey <tromey@redhat.com>
5785
5786 * charset.c (find_charset_names): Check 'in' against NULL.
5787
5788 2012-02-06 Doug Evans <dje@google.com>
5789
5790 * gdbtypes.h (struct main_type): Change type of name,tag_name,
5791 and fields.name members from char * to const char *. All uses updated.
5792 (struct cplus_struct_type): Change type of fn_fieldlists.name member
5793 from char * to const char *. All uses updated.
5794 (type_name_no_tag): Update.
5795 (lookup_unsigned_typename, lookup_signed_typename): Update.
5796 * gdbtypes.c (type_name_no_tag): Change result type
5797 from char * to const char *. All callers updated.
5798 (lookup_unsigned_typename, lookup_signed_typename): Change type of
5799 name parameter from char * to const char *.
5800 * symtab.h (struct cplus_specific): Change type of demangled_name
5801 member from char * to const char *. All uses updated.
5802 (struct general_symbol_info): Change type of name and
5803 mangled_lang.demangled_name members from char * to const char *.
5804 All uses updated.
5805 (symbol_get_demangled_name, symbol_natural_name): Update.
5806 (symbol_demangled_name, symbol_search_name): Update.
5807 * symtab.c (symbol_get_demangled_name): Change result type
5808 from char * to const char *. All callers updated.
5809 (symbol_natural_name, symbol_demangled_name): Ditto.
5810 (symbol_search_name): Ditto.
5811 (completion_list_add_name): Change type of symname,sym_text,
5812 text,word parameters from char * to const char *.
5813 (completion_list_objc_symbol): Change type of sym_text,
5814 text,word parameters from char * to const char *.
5815 * ada-lang.c (find_struct_field): Change type of name parameter
5816 from char * to const char *.
5817 (encoded_ordered_before): Similarly for N0,N1 parameters.
5818 (old_renaming_is_invisible): Similarly for function_name parameter.
5819 (ada_type_name): Change result type from char * to const char *.
5820 All callers updated.
5821 * ada-lang.h (ada_type_name): Update.
5822 * buildsym.c (hashname): Change type of name parameter
5823 from char * to const char *.
5824 * buildsym.h (hashname): Update.
5825 * dbxread.c (end_psymtab): Change type of include_list parameter
5826 from char ** to const char **.
5827 * dwarf2read.c (determine_prefix): Change result type
5828 from char * to const char *. All callers updated.
5829 * f-lang.c (find_common_for_function): Change type of name, funcname
5830 parameters from char * to const char *.
5831 * f-lang.c (find_common_for_function): Update.
5832 * f-valprint.c (list_all_visible_commons): Change type of funcname
5833 parameters from char * to const char *.
5834 * gdbarch.sh (static_transform_name): Change type of name parameter
5835 and result from char * to const char *.
5836 * gdbarch.c: Regenerate.
5837 * gdbarch.h: Regenerate.
5838 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
5839 of name parameter from char * to const char *.
5840 * jv-lang.c (java_primitive_type_from_name): Ditto.
5841 (java_demangled_signature_length): Similarly for signature parameter.
5842 (java_demangled_signature_copy): Ditto.
5843 (java_demangle_type_signature): Ditto.
5844 * jv-lang.h (java_primitive_type_from_name): Update.
5845 (java_demangle_type_signature): Update.
5846 * objc-lang.c (specialcmp): Change type of a,b parameters
5847 from char * to const char *.
5848 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
5849 from char * to const char *. All callers updated.
5850 * p-lang.h (is_pascal_string_type): Update.
5851 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
5852 of name parameter from char * to const char *.
5853 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
5854 * utils.c (fprintf_symbol_filtered): Ditto.
5855 * defs.h (fprintf_symbol_filtered): Update.
5856 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
5857 * stabsread.h (end_psymtab): Update.
5858 * stack.c (find_frame_funname): Change type of funname parameter
5859 from char ** to const char **.
5860 * stack.h (find_frame_funname): Update.
5861 * typeprint.c (type_print): Change type of varstring parameter
5862 from char * to const char *.
5863 * value.h (type_print): Update.
5864 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
5865 from char * to const char *. All callers updated.
5866 (xcoff_end_psymtab): Change type of include_list parameter
5867 from char ** to const char **. All callers updated.
5868 (swap_sym): Similarly for name parameter. All callers updated.
5869 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
5870 Use xstrdup.
5871 (process_coff_symbol): Use xstrdup.
5872 * stabsread.c (stabs_method_name_from_physname): Renamed from
5873 update_method_name_from_physname. Change result type from void
5874 to char *. All callers updated.
5875 (read_member_functions): In has_destructor case, store name in objfile
5876 obstack instead of malloc space. In !has_stub case, fix mem leak.
5877
5878 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
5879
5880 * configure: Rebuild.
5881 * configure.ac: Put -L../bfd and -L../libiberty at the front of
5882 LDFLAGS.
5883
5884 2012-02-03 Kevin Buettner <kevinb@redhat.com>
5885
5886 * configure.tgt (rl78-*-elf): New target.
5887 * rl78-tdep.c: New file.
5888
5889 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5890
5891 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
5892 and continue the loop. Add QUIT statement.
5893
5894 2012-02-03 Tom Tromey <tromey@redhat.com>
5895
5896 PR gdb/13596:
5897 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
5898 bfd_lookup_symbol_from_symtab.
5899 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
5900 gdb_bfd_lookup_symbol_from_symtab.
5901
5902 2012-02-03 Joel Brobecker <brobecker@adacore.com>
5903
5904 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
5905 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
5906 symbol. Add assertion that sym2 is never NULL.
5907
5908 2012-02-02 Doug Evans <dje@google.com>
5909
5910 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
5911 "name" parameter to const char ** from char **. All callers updated.
5912 (find_pc_partial_function): Ditto.
5913 (cache_pc_function_name): Change type to const char * from char *.
5914 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
5915 (find_pc_partial_function): Update.
5916 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
5917 type of "name" parameter to const char * from char *.
5918 All uses updated.
5919 * arch-utils.c (generic_in_solib_return_trampoline): Change
5920 type of "name" parameter to const char * from char *.
5921 * arch-utils.h (generic_in_solib_return_trampoline): Update.
5922 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
5923 type of "name" parameter to const char * from char *.
5924 * gdbarch.sh (in_solib_return_trampoline): Ditto.
5925 * gdbarch.c: Regenerate.
5926 * gdbarch.h: Regenerate.
5927 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
5928 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
5929 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
5930 type of "name" parameter to const char * from char *.
5931 * skip.c (skip_function_pc): Ditto.
5932 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
5933 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
5934 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
5935 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
5936 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
5937 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
5938 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
5939 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
5940 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
5941
5942 2012-02-02 Pedro Alves <palves@redhat.com>
5943
5944 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
5945 the current inferior has no execution. Make sure the current
5946 remote process matches gdb's current inferior.
5947
5948 2012-02-02 Tom Tromey <tromey@redhat.com>
5949
5950 PR gdb/13405:
5951 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
5952 read-only memory.
5953
5954 2012-02-02 Tom Tromey <tromey@redhat.com>
5955
5956 PR gdb/9307:
5957 * symtab.c (lookup_language_this): Set block_found.
5958
5959 2012-02-01 Tom Tromey <tromey@redhat.com>
5960
5961 PR gdb/13431:
5962 * jit.c (struct jit_inferior_data): Rewrite.
5963 (struct jit_objfile_data): New.
5964 (get_jit_objfile_data): New function.
5965 (add_objfile_entry): Update.
5966 (jit_read_descriptor): Return int. Replace descriptor_addr
5967 argument with inf_data. Update. Don't call error.
5968 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
5969 descriptor here.
5970 (jit_inferior_init): Don't look up descriptor. Don't call error.
5971 (jit_reset_inferior_data_and_breakpoints)
5972 (jit_inferior_created_observer): Remove.
5973 (jit_inferior_exit_hook): Update.
5974 (jit_executable_changed_observer): Remove.
5975 (jit_event_handler): Update.
5976 (free_objfile_data): Reset inferior data if needed.
5977 (_initialize_jit): Update.
5978
5979 2012-02-01 Tom Tromey <tromey@redhat.com>
5980
5981 * jit.c (bfd_open_from_target_memory): Move higher in file.
5982
5983 2012-02-01 Tristan Gingold <gingold@adacore.com>
5984
5985 * libunwind-frame.c (libunwind_load): Display message if dlopen
5986 failed.
5987
5988 2012-02-01 Gary Benson <gbenson@redhat.com>
5989
5990 * symtab.h (symbol_found_callback_ftype): New typedef.
5991 (iterate_over_symbols): Use the above.
5992 * symtab.c (iterate_over_symbols): Likewise.
5993 * language.h (language_defn->la_iterate_over_symbols): Likewise.
5994 * ada-lang.c (ada_iterate_over_symbols): Likewise.
5995 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
5996 (iterate_name_matcher): Document return values.
5997 (collect_one_symbol): Likewise.
5998 (collect_function_symbols): Likewise.
5999 (collect_symbols): Likewise.
6000
6001 2012-02-01 Tom Tromey <tromey@redhat.com>
6002
6003 * ada-lang.c (resolve_subexp): Update.
6004 (ada_lookup_symbol_list): Add 'full_search' argument.
6005 (ada_iterate_over_symbols): Pass 0 as full_search argument to
6006 ada_lookup_symbol_list.
6007 (ada_lookup_encoded_symbol): Update.
6008 (get_var_value): Update.
6009 * ada-exp.y (block_lookup): Update.
6010 (write_var_or_type): Update.
6011 (write_name_assoc): Update.
6012 * ada-lang.h (ada_lookup_symbol_list): Update.
6013
6014 2012-01-31 Tom Tromey <tromey@redhat.com>
6015
6016 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6017 comment.
6018
6019 2012-01-31 Doug Evans <dje@google.com>
6020
6021 * symtab.h: Remove outdated comment.
6022 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
6023
6024 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
6025
6026 Fix build error in Darwin port.
6027 * i386-darwin-nat.c: Include i386-nat.h.
6028
6029 2012-01-30 Tom Tromey <tromey@redhat.com>
6030
6031 PR breakpoints/13568:
6032 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6033 argument. Check for recursive includes.
6034 (dwarf_decode_macros): Create an include hash.
6035
6036 2012-01-30 Michael Eager <eager@eagercon.com>
6037
6038 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6039 * ppc-linux-tdep.c: Include glibc-tdep.h.
6040 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
6041 (powerpc_linux_in_plt_stub): New function.
6042 (powerpc_linux_in_dynsym_resolve_code): New function.
6043 (ppc_skip_trampoline_code): New function.
6044 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6045 Use glibc_skip_solib_resolver.
6046
6047 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6048
6049 Code cleanup: Make 1440 bytes of data segment read-only.
6050 * arch-utils.c (endian_enum): Make it const char *const [].
6051 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6052 Likewise.
6053 * breakpoint.c (always_inserted_enums): Likewise.
6054 * cli/cli-cmds.c (script_ext_enums): Likewise.
6055 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6056 enumlist parameter const char *const *.
6057 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6058 const char *const *.
6059 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6060 parameter const char *const *.
6061 * cris-tdep.c (cris_modes): Make it const char *const [].
6062 * filesystem.c (target_file_system_kinds): Likewise.
6063 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6064 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6065 (can_use_displaced_stepping_enum, scheduler_enums)
6066 (exec_direction_names): Likewise.
6067 * language.c (_initialize_language): Make the type_or_range_names and
6068 case_sensitive_names variables const char *const [].
6069 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6070 * python/python.c (python_excp_enums): Likewise.
6071 * remote.c (interrupt_sequence_modes): Likewise.
6072 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6073 * serial.c (logbase_enums): Likewise.
6074 * sh-tdep.c (sh_cc_enum): Likewise.
6075 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6076 Likewise.
6077 * symtab.c (multiple_symbols_modes): Likewise.
6078 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6079 Likewise.
6080 * utils.c (internal_problem_modes): Likewise.
6081
6082 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6083
6084 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6085 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6086 result.
6087
6088 2012-01-27 Doug Evans <dje@google.com>
6089
6090 * configure.ac (with_python): Fix absolute path handling for win32.
6091 * configure: Regenerate.
6092
6093 2012-01-26 Doug Evans <dje@google.com>
6094
6095 * symtab.c: Whitespace cleanup, no code changes.
6096
6097 * symtab.c (lookup_symbol_in_language): Improve comment.
6098 (lookup_symbol_aux): Fix comment.
6099
6100 * psymtab.c (add_psymbol_to_list): Result is now "void".
6101 * psympriv.h (add_psymbol_to_list): Update.
6102
6103 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6104
6105 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6106
6107 Do not open script filenames twice.
6108 * cli/cli-cmds.c (source_script_from_stream): Pass to
6109 source_python_script also STREAM.
6110 * python/py-auto-load.c (source_section_scripts): Pass to
6111 source_python_script_for_objfile also STREAM.
6112 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6113 also INPUT.
6114 * python/python-internal.h (source_python_script_for_objfile): New
6115 parameter file, rename parameter file to filename.
6116 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6117 instead if !_WIN32. Update the function comment.
6118 (source_python_script, source_python_script_for_objfile)
6119 (source_python_script): New parameter file, rename parameter file to
6120 filename. Pass FILENAME to python_run_simple_file.
6121 * python/python.h (source_python_script): New parameter file, rename
6122 parameter file to filename.
6123
6124 2012-01-26 Pedro Alves <palves@redhat.com>
6125
6126 * corelow.c (core_has_fake_pid): Delete.
6127 (core_close): Delete references to `core_has_fake_pid'.
6128 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6129 (core_open): Delete references to `core_has_fake_pid'.
6130 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6131 the removed global.
6132
6133 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6134
6135 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6136 Remove language parameter from name_matcher. Adjust the comment.
6137 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6138 Remove language parameter.
6139 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6140 * linespec.c (iterate_name_matcher): Likewise.
6141 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6142 name_matcher. Adjust call accordingly.
6143 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6144 (maintenance_check_symtabs): Adjust type of parameter "fun".
6145 * psymtab.h (maintenance_check_symtabs): Likewise.
6146
6147 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6148
6149 * language.h (symbol_name_match_p_ftype): New typedef.
6150 (struct language_defn): Replace field la_symbol_name_compare
6151 by la_get_symbol_name_match_p.
6152 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6153 (ada_language_defn): Use it.
6154 * linespec.c (struct symbol_matcher_data): New type.
6155 (iterate_name_matcher): Rewrite.
6156 (iterate_over_all_matching_symtabs): Pass a pointer to
6157 a symbol_matcher_data struct to expand_symtabs_matching
6158 instead of just the lookup name.
6159 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6160 opencl-lang.c, p-lang.c, language.c: Delete field
6161 la_symbol_name_compare, and replace by NULL for new field
6162 la_get_symbol_name_match_p.
6163 * symfile.h (struct quick_symbol_functions): Update comment.
6164
6165 2012-01-25 Tom Tromey <tromey@redhat.com>
6166
6167 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6168 dereferencing.
6169
6170 2012-01-24 Tom Tromey <tromey@redhat.com>
6171
6172 PR symtab/12406:
6173 * solib.c (update_solib_list): Update the program space's
6174 added_solibs and deleted_solibs fields.
6175 * progspace.h (struct program_space) <added_solibs,
6176 deleted_solibs>: New fields.
6177 (clear_program_space_solib_cache): Declare.
6178 * progspace.c (release_program_space): Call
6179 clear_program_space_solib_cache.
6180 (clear_program_space_solib_cache): New function.
6181 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6182 bpstat_stop_status. Use handle_solib_event.
6183 * breakpoint.c: Include gdb_regex.h.
6184 (print_solib_event): New function.
6185 (bpstat_print): Use print_solib_event.
6186 (bpstat_stop_status): Add special case for bp_shlib_event.
6187 (handle_solib_event): New function.
6188 (bpstat_what): Use handle_solib_event.
6189 (struct solib_catchpoint): New.
6190 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6191 (breakpoint_hit_catch_solib, check_status_catch_solib)
6192 (print_it_catch_solib, print_one_catch_solib)
6193 (print_mention_catch_solib, print_recreate_catch_solib): New
6194 functions.
6195 (catch_solib_breakpoint_ops): New global.
6196 (catch_load_or_unload, catch_load_command_1)
6197 (catch_unload_command_1): New functions.
6198 (internal_bkpt_check_status): Add special case for
6199 bp_shlib_event.
6200 (internal_bkpt_print_it): Use print_solib_event.
6201 (initialize_breakpoint_ops): Initialize
6202 catch_solib_breakpoint_ops.
6203 (_initialize_breakpoint): Register "catch load" and "catch
6204 unload".
6205 * breakpoint.h (handle_solib_event): Declare.
6206 * NEWS: Add entry for "catch load" and "catch unload".
6207
6208 2012-01-24 Tom Tromey <tromey@redhat.com>
6209
6210 * ada-lang.c: Include gdb_vecs.h.
6211 * charset.c: Include gdb_vecs.h.
6212 * tracepoint.h: Include gdb_vecs.h.
6213 * gdb_vecs.h: New file.
6214
6215 2012-01-24 Pedro Alves <pedro@codesourcery.com>
6216
6217 * breakpoint.c (breakpoint_hit_catch_fork)
6218 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6219 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6220 * infrun.c (inferior_has_forked, inferior_has_vforked)
6221 (inferior_has_execd, inferior_has_called_syscall): Delete.
6222 (handle_syscall_event): Get syscall_number from the execution
6223 control state's wait status.
6224 (wait_for_inferior): Don't clear syscall_number.
6225
6226 2012-01-24 Pedro Alves <palves@redhat.com>
6227
6228 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6229 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6230 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6231 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6232 `ws' parameter.
6233 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6234 false for events other than TARGET_SIGNAL_TRAP.
6235 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6236 Add `ws' parameter.
6237 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6238 events other than TARGET_SIGNAL_TRAP.
6239 (tracepoint_breakpoint_hit): Add `ws' parameter.
6240 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6241 parameter.
6242 (bpstat_stop_status): Same.
6243 (pc_at_non_inline_function): Same.
6244 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6245 to pass the current event's waitstatus to bpstat_stop_status
6246 and pc_at_non_inline_function.
6247
6248 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6249
6250 Code cleanup.
6251 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6252 Update the function comment for it.
6253 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6254 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6255 for STREAM.
6256
6257 2012-01-24 Pedro Alves <palves@redhat.com>
6258
6259 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6260 outside `bs->stop' block.
6261 (bpstat_what): Rework bp_shlib_event handling.
6262 (internal_bkpt_check_status): If the breakpoint is a
6263 bp_shlib_event, then set bs->stop and bs->print if
6264 stop_on_solib_events is set.
6265
6266 2012-01-24 Gary Benson <gbenson@redhat.com>
6267
6268 Delete #if 0'd out code.
6269 * stack.c (print_frame_label_vars): Remove.
6270 (catch_info): Likewise.
6271 (_initialize_stack): Remove "info catch" command.
6272 * NEWS: Mention the above.
6273
6274 2012-01-24 Pedro Alves <palves@redhat.com>
6275
6276 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6277 it.
6278 (remote_notice_new_inferior): If the remote end doesn't support
6279 the multiprocess extensions, then the PID is fake.
6280 (add_current_inferior_and_thread): New.
6281 (remote_start_remote): Use it.
6282 (extended_remote_attach_1): Adjust.
6283 (extended_remote_create_inferior_1): Use
6284 add_current_inferior_and_thread.
6285
6286 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6287
6288 Fix watchpoints to be specific for each inferior.
6289 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6290 current_program_space.
6291 * i386-nat.c (i386_inferior_data_cleanup): New.
6292 (i386_inferior_data_get): Replace variable inf_data_local by an
6293 inferior_data call.
6294 (i386_use_watchpoints): Initialize i386_inferior_data.
6295 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6296 specific iterate_over_lwps.
6297
6298 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6299
6300 Fix watchpoints across inferior fork.
6301 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6302 comment for linux_nat_iterate_watchpoint_lwps.
6303 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6304 linux_nat_iterate_watchpoint_lwps.
6305 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6306 * i386-linux-nat.c (update_debug_registers_callback): Update the
6307 comment for linux_nat_iterate_watchpoint_lwps.
6308 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6309 linux_nat_iterate_watchpoint_lwps.
6310 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6311 * i386-nat.c: Include inferior.h.
6312 (dr_mirror): Remove.
6313 (i386_inferior_data, struct i386_inferior_data)
6314 (i386_inferior_data_get): New.
6315 (i386_debug_reg_state): Use i386_inferior_data_get.
6316 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6317 (i386_insert_watchpoint, i386_remove_watchpoint)
6318 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6319 (i386_remove_hw_breakpoint): New variable state, use
6320 i386_debug_reg_state instead of DR_MIRROR.
6321 * linux-nat.c (delete_lwp): New declaration.
6322 (num_lwps): Move here from downwards.
6323 (delete_lwp_cleanup): New.
6324 (linux_child_follow_fork): Create new child_lp, call
6325 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6326 PTRACE_DETACH.
6327 (num_lwps): Move upwards.
6328 (linux_nat_iterate_watchpoint_lwps): New.
6329 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6330 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6331
6332 2012-01-24 Joel Brobecker <brobecker@adacore.com>
6333
6334 GDB 7.4 released.
6335
6336 2012-01-23 Pedro Alves <palves@redhat.com>
6337
6338 * top.c (caution): Rename to ...
6339 (confirm): ... this.
6340 (show_caution): Rename to ...
6341 (show_confirm): ... this.
6342 (quit_cover): Adjust.
6343 (init_main): Adjust.
6344 * top.h (caution): Rename to ...
6345 (confirm): ... this.
6346 * utils.c (internal_vproblem, defaulted_query): Adjust.
6347
6348 2012-01-23 Pedro Alves <palves@redhat.com>
6349
6350 * top.c (caution): Update comment.
6351 (execute_command): Don't consider the current value of `caution'.
6352
6353 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6354
6355 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6356
6357 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6358
6359 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6360 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6361 * target.c (target_fileio_pwrite): Remove buffer address from
6362 debug output.
6363 (target_fileio_pread): Likewise.
6364
6365 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6366
6367 * NEWS: Document remote "info proc" and "generate-core-file".
6368
6369 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6370
6371 * gdbarch.sh (find_memory_regions): New callback.
6372 * gdbarch.c, gdbarch.h: Regenerate.
6373
6374 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6375 callback before falling back to target method.
6376
6377 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6378 (linux_target_install_ops): No longer install it.
6379
6380 * linux-tdep.c (linux_find_memory_regions): New function.
6381 (linux_init_abi): Install it.
6382
6383 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6384
6385 * gdbarch.sh (make_corefile_notes): New architecture callback.
6386 * gdbarch.c: Regenerate.
6387 * gdbarch.h: Likewise.
6388
6389 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6390 before target_make_corefile_notes. If NULL is returned, the
6391 target does not support core file generation.
6392
6393 * linux-nat.c: Include "linux-tdep.h".
6394 (find_signalled_thread, find_stop_signal): Remove.
6395 (linux_nat_do_thread_registers): Likewise.
6396 (struct linux_nat_corefile_thread_data): Likewise.
6397 (linux_nat_corefile_thread_callback): Likewise.
6398 (iterate_over_spus): Likewise.
6399 (struct linux_spu_corefile_data): Likewise.
6400 (linux_spu_corefile_callback): Likewise.
6401 (linux_spu_make_corefile_notes): Likewise.
6402 (linux_nat_collect_thread_registers): New function.
6403 (linux_nat_make_corefile_notes): Replace contents by call to
6404 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6405 as native-only callback.
6406
6407 * linux-tdep.h: Include "bfd.h".
6408 (struct regcache): Add forward declaration.
6409 (linux_collect_thread_registers_ftype): New typedef.
6410 (linux_make_corefile_notes): Add prototype.
6411 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6412 "regset.h", and "elf-bfd.h".
6413 (find_signalled_thread, find_stop_signal): New functions.
6414 (linux_spu_make_corefile_notes): Likewise.
6415 (linux_collect_thread_registers): Likewise.
6416 (struct linux_corefile_thread_data): New data structure.
6417 (linux_corefile_thread_callback): New funcion.
6418 (linux_make_corefile_notes): Likewise.
6419 (linux_make_corefile_notes_1): Likewise.
6420 (linux_init_abi): Install it.
6421
6422 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6423
6424 * gdbarch.sh (info_proc): New callback.
6425 * gdbarch.c, gdbarch.h: Regenerate.
6426
6427 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6428 before falling back to the target info_proc callback.
6429
6430 * linux-nat.c: Do not include "cli/cli-utils.h".
6431 (linux_nat_info_proc): Remove.
6432 (linux_target_install_ops): No longer install it.
6433
6434 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6435 (read_mapping): New function.
6436 (linux_info_proc): Likewise.
6437 (linux_init_abi): Install it.
6438
6439 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6440
6441 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6442 * infcmd.c: (info_proc_cmd_1): New function.
6443 (info_proc_cmd): New function, moved here from equivalent routine
6444 orignally in linux-nat.c.
6445 (info_proc_cmd_mappings): Likewise.
6446 (info_proc_cmd_stat): Likewise.
6447 (info_proc_cmd_status): Likewise.
6448 (info_proc_cmd_cwd): Likewise.
6449 (info_proc_cmd_cmdline): Likewise.
6450 (info_proc_cmd_exe): Likewise.
6451 (info_proc_cmd_all): Likewise.
6452 (_initialize_infcmd): Install "info proc" command and subcommands.
6453
6454 * target.h (struct target_ops): Add to_info_proc.
6455 (target_info_proc): Add prototype.
6456 * target.c (target_info_proc): New function.
6457
6458 * procfs.c (procfs_info_proc): Add prototype.
6459 (info_proc_cmd): Rename into ...
6460 (procfs_info_proc): ... this. Update argument types as appropriate
6461 for a to_info_proc implementation. Handle "what" argument.
6462 (procfs_target): Install procfs_info_proc.
6463 (_initialize_procfs): No longer install "info proc" command.
6464
6465 * linux-nat.c: (enum info_proc_what): Remove.
6466 (linux_nat_info_proc_cmd_1): Rename into ...
6467 (linux_nat_info_proc): ... this. Update argument types as appropriate
6468 for a to_info_proc implementation.
6469 (linux_nat_info_proc_cmd): Remove.
6470 (linux_nat_info_proc_cmd_mappings): Likewise.
6471 (linux_nat_info_proc_cmd_stat): Likewise.
6472 (linux_nat_info_proc_cmd_status): Likewise.
6473 (linux_nat_info_proc_cmd_cwd): Likewise.
6474 (linux_nat_info_proc_cmd_cmdline): Likewise.
6475 (linux_nat_info_proc_cmd_exe): Likewise.
6476 (linux_nat_info_proc_cmd_all): Likewise.
6477 (linux_target_install_ops): Install linux_nat_info_proc.
6478 (_initialize_linux_nat): No longer install "info proc" command
6479 and subcommands.
6480
6481 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6482
6483 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6484 * config.in, configure: Regenerate.
6485
6486 * target.h (struct target_ops): Add to_fileio_readlink.
6487 (target_fileio_readlink): Add prototype.
6488 * target.c (target_fileio_readlink): New function.
6489
6490 * inf-child.c: Conditionally include <sys/param.h>.
6491 (inf_child_fileio_readlink): New function.
6492 (inf_child_target): Install it.
6493
6494 * remote.c (PACKET_vFile_readlink): New enum value.
6495 (remote_hostio_readlink): New function.
6496 (init_remote_ops): Install it.
6497 (_initialize_remote): Handle vFile:readlink packet type.
6498
6499 2012-01-20 Pedro Alves <palves@redhat.com>
6500 Ulrich Weigand <ulrich.weigand@linaro.org>
6501
6502 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6503 * config.in, configure: Regenerate.
6504
6505 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6506 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6507 (target_fileio_open): Add prototype.
6508 (target_fileio_pwrite): Likewise.
6509 (target_fileio_pread): Likewise.
6510 (target_fileio_close): Likewise.
6511 (target_fileio_unlink): Likewise.
6512 (target_fileio_read_alloc): Likewise.
6513 (target_fileio_read_stralloc): Likewise.
6514
6515 * target.c: Include "gdb/fileio.h".
6516 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6517 (default_fileio_target): New function.
6518 (target_fileio_open): Likewise.
6519 (target_fileio_pwrite): Likewise.
6520 (target_fileio_pread): Likewise.
6521 (target_fileio_close): Likewise.
6522 (target_fileio_unlink): Likewise.
6523 (target_fileio_close_cleanup): Likewise.
6524 (target_fileio_read_alloc_1): Likewise.
6525 (target_fileio_read_alloc): Likewise.
6526 (target_fileio_read_stralloc): Likewise.
6527
6528 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6529 <fcntl.h>, and <unistd.h>.
6530 (inf_child_fileio_open_flags_to_host): New function.
6531 (inf_child_errno_to_fileio_error): Likewise.
6532 (inf_child_fileio_open): Likewise.
6533 (inf_child_fileio_pwrite): Likewise.
6534 (inf_child_fileio_pread): Likewise.
6535 (inf_child_fileio_close): Likewise.
6536 (inf_child_fileio_unlink): Likewise.
6537 (inf_child_target): Install to_fileio routines.
6538
6539 * remote.c (init_remote_ops): Install to_fileio routines.
6540
6541 2012-01-20 Pedro Alves <palves@redhat.com>
6542 Ulrich Weigand <ulrich.weigand@linaro.org>
6543
6544 * remote.c (remote_multi_process_p): Only check for multi-process
6545 protocol feature, do not check for extended protocol.
6546 (remote_supports_multi_process): Check for extended protocol here.
6547 (set_general_process): Likewise.
6548 (extended_remote_kill): Likewise.
6549 (remote_pid_to_str): Likewise.
6550 (remote_query_supported): Always query multiprocess mode.
6551
6552 2012-01-20 Pedro Alves <palves@redhat.com>
6553 Ulrich Weigand <ulrich.weigand@linaro.org>
6554
6555 * inferior.h (struct inferior): Add fake_pid_p.
6556 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6557 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6558 magic_null_ptid since the remote side doesn't provide a real PID.
6559
6560 2012-01-19 Tom Tromey <tromey@redhat.com>
6561
6562 * NEWS: Combine the two Python sections.
6563
6564 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6565
6566 * target.h (target_close): Update comment on the target's unpush state.
6567
6568 2012-01-19 Pedro Alves <palves@redhat.com>
6569
6570 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
6571 linux_nat_async directly instead of going through the target
6572 vector.
6573 * target.c (unpush_target): Close target after unpushing it, not
6574 before.
6575
6576 2012-01-19 Gary Benson <gbenson@redhat.com>
6577
6578 * mdebugread.c (sort_blocks): Replace integer constants with ones
6579 derived from FIRST_LOCAL_BLOCK.
6580
6581 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
6582 Jan Kratochvil <jan.kratochvil@redhat.com>
6583
6584 PR gdb/9538
6585 * symfile.c (find_separate_debug_file): New function.
6586 (terminate_after_last_dir_separator): Likewise.
6587 (find_separate_debug_file_by_debuglink): Also try realpath.
6588 * configure.ac (AC_CHECK_FUNCS): Add lstat.
6589 * configure: Regenerate.
6590 * config.in: Regenerate.
6591
6592 2012-01-18 Doug Evans <dje@google.com>
6593
6594 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
6595 (main.o): Remove rule.
6596 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
6597 (--with-sysroot): Rewrite.
6598 * configure: Regenerate.
6599 * config.in: Regenerate.
6600
6601 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
6602
6603 * parse.c (initialize_expout): New function.
6604 (reallocate_expout): Likewise.
6605 (parse_exp_in_context): Use `initialize_expout' and
6606 `reallocate_expout' when appropriate.
6607
6608 2012-01-18 Pedro Alves <palves@redhat.com>
6609
6610 * record.c (struct record_breakpoint, record_breakpoint_p)
6611 (record_breakpoints): New.
6612 (record_insert_breakpoint, record_remove_breakpoint): Manage
6613 record breakpoints list. Only remove breakpoints from the
6614 inferior if they had been inserted there in the first place.
6615
6616 2012-01-17 Doug Evans <dje@google.com>
6617
6618 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
6619 if we know we don't have a file name to look for.
6620
6621 2012-01-17 Pedro Alves <palves@redhat.com>
6622
6623 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
6624 the frame's stop reason is UNWIND_UNAVAILABLE.
6625
6626 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6627
6628 Fix compilation error.
6629 * m2-exp.y (yyerror): Use ANSI C prototype.
6630
6631 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6632
6633 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
6634 (growbuf_by_size): Likewise.
6635 (yyerror): Likewise.
6636 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
6637 (modblock): Remove variable (was #if 0'ed).
6638 (parse_number): Convert prototype from K&R to ANSI C.
6639 (yyerror): Likewise.
6640 * objc-exp.y (parse_number): Likewise.
6641 (yyerror): Likewise.
6642 (yylex): Remove #if 0'ed code.
6643 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
6644 (yyerror): Likewise.
6645
6646 2012-01-16 Tom Tromey <tromey@redhat.com>
6647
6648 * NEWS: Add item.
6649 * symtab.h (compare_filenames_for_search): Declare.
6650 * symtab.c (compare_filenames_for_search): New function.
6651 (iterate_over_some_symtabs): Use it.
6652 * symfile.h (struct quick_symbol_functions)
6653 <map_symtabs_matching_filename>: Change spec.
6654 * psymtab.c (partial_map_symtabs_matching_filename): Use
6655 compare_filenames_for_search. Update for new spec.
6656 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
6657 compare_filenames_for_search. Update for new spec.
6658 * breakpoint.c (clear_command): Use compare_filenames_for_search.
6659
6660 2012-01-16 Tom Tromey <tromey@redhat.com>
6661
6662 PR python/13281:
6663 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
6664 (struct main_type) <flag_flag_enum>: New field.
6665 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
6666 * NEWS: Add entries.
6667 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
6668 enums.
6669 * python/lib/gdb/printing.py (_EnumInstance): New class.
6670 (FlagEnumerationPrinter): Likewise.
6671
6672 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6673
6674 * breakpoint.c (create_sals_from_address_default): New function.
6675 (create_breakpoints_sal_default): Likewise.
6676 (decode_linespec_default): Likewise.
6677 (is_marker_spec): Removed.
6678 (strace_marker_p): New function.
6679 (init_breakpoint_sal): Using `strace_marker_p' instead of
6680 `is_marker_spec'.
6681 (create_breakpoint): Call method `create_sals_from_address' from
6682 breakpoint_ops, replacing code that created SALs conditionally
6683 on the type of the breakpoint. Call method `create_breakpoints_sal',
6684 replacing code that created breakpoints conditionally on the type
6685 wanted.
6686 (base_breakpoint_create_sals_from_address): New function.
6687 (base_breakpoint_create_breakpoints_sal): Likewise.
6688 (base_breakpoint_decode_linespec): Likewise.
6689 (base_breakpoint_ops): Add methods
6690 `base_breakpoint_create_sals_from_address',
6691 `base_breakpoint_create_breakpoints_sal' and
6692 `base_breakpoint_decode_linespec'.
6693 (bkpt_create_sals_from_address): New function.
6694 (bkpt_create_breakpoints_sal): Likewise.
6695 (bkpt_decode_linespec): Likewise.
6696 (tracepoint_create_sals_from_address): Likewise.
6697 (tracepoint_create_breakpoints_sal): Likewise.
6698 (tracepoint_decode_linespec): Likewise.
6699 (strace_marker_create_sals_from_address): Likewise.
6700 (strace_marker_create_breakpoints_sal): Likewise.
6701 (strace_marker_decode_linespec): Likewise.
6702 (strace_marker_breakpoint_ops): New variable.
6703 (addr_string_to_sals): Remove `marker_spec'. Call method
6704 `decode_linespec' from breakpoint_ops, replacing code that decoded
6705 an address string into a SAL. Use `strace_marker_p' instead of
6706 `marker_spec'.
6707 (strace_command): Decide whether we are dealing with a static
6708 tracepoint with marker or not. Use the appropriate breakpoint_ops.
6709 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
6710 * breakpoint.h (linespec_result, linespec_sals): New forward
6711 declarations.
6712 (breakpoint_ops) <create_sals_from_address>,
6713 <create_breakpoints_sal>, <decode_linespec>: New methods.
6714
6715 2012-01-14 Doug Evans <dje@google.com>
6716
6717 * NEWS: Update text for "maint set python print-stack".
6718 It is deprecated in gdb 7.4 and deleted in 7.5.
6719
6720 2012-01-13 Eli Zaretskii <eliz@gnu.org>
6721
6722 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
6723 including curses.h.
6724
6725 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6726
6727 * configure: Regenerate.
6728 * config.in: Regenerate.
6729
6730 2012-01-12 Keith Seitz <keiths@redhat.com>
6731
6732 PR mi/10586
6733 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
6734 (ANONYMOUS_UNION_NAME): Define.
6735 (is_path_expr_parent): New function.
6736 (get_path_expr_parent): New function.
6737 (is_anonymous_child): New function.
6738 (create_child_with_value): If the child is anonymous and without
6739 a name, assign an object name to it.
6740 (c_describe_child): Use get_path_expr_parent to determine
6741 the parent expression.
6742 If there field represents an anonymous struct or union and
6743 has no name, set an appropriate display name and expression.
6744 (cplus_describe_child): Likewise.
6745
6746 2012-01-12 Pedro Alves <palves@redhat.com>
6747
6748 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
6749 available when %ebp is found to be zero (outermost).
6750
6751 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
6752
6753 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
6754 an internal gdb_static_assert.
6755 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
6756
6757 2012-01-11 Tom Tromey <tromey@redhat.com>
6758
6759 PR gdb/9598:
6760 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
6761 catch" and "catch throw".
6762
6763 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
6764
6765 * blockframe.c (block_innermost_frame): Start search from selected
6766 frame, if present, or otherwise the current frame.
6767
6768 * c-exp.y (variable): Update innermost_block for
6769 'block COLONCOLON NAME' clause.
6770 * m2-exp.y (variable): Ditto.
6771 * objc-exp.y (variable): Ditto.
6772
6773 2012-01-10 Tom Tromey <tromey@redhat.com>
6774
6775 PR python/13199:
6776 * python/python.c (finish_python_initialization): Set sys.argv.
6777
6778 2012-01-10 Doug Evans <dje@google.com>
6779
6780 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
6781 "want_line_info". All callers updated.
6782 (dwarf_decode_lines_1): New function.
6783 (handle_DW_AT_stmt_list): Add function comment.
6784 New arg "want_line_info". All callers updated.
6785 (read_file_scope,read_type_unit_scope): Move comment from
6786 handle_DW_AT_stmt_list to here.
6787
6788 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6789
6790 Fix regression after libiberty/ update for GCC PR 6057 and others.
6791 * c-exp.y (operator) <OPERATOR DELETE>
6792 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6793 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
6794 (make_builtin_type, make_name): New variable i, add gdb_assert.
6795 (operator) <OPERATOR NEW>: Update ARGS to 3.
6796 (operator) <OPERATOR DELETE>: Add trailing space.
6797 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
6798 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6799 * cp-support.c (cp_canonicalize_string): Check NULL from
6800 cp_comp_to_string, call warning and return.
6801
6802 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6803
6804 Fix duplicate .o files after omitting libbfd.a.
6805 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
6806 (SFILES): Add corelow.c.
6807 (COMMON_OBS): Add corelow.o.
6808 (ALLDEPFILES): Remove corelow.c.
6809 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
6810 * config/alpha/alpha-osf3.mh: Likewise.
6811 * config/alpha/fbsd.mh: Likewise.
6812 * config/arm/nbsdaout.mh: Likewise.
6813 * config/arm/nbsdelf.mh: Likewise.
6814 * config/i386/i386gnu.mh: Likewise.
6815 * config/ia64/hpux.mh: Likewise.
6816 * config/ia64/linux.mh: Likewise.
6817 * config/m32r/linux.mh: Likewise.
6818 * config/m68k/linux.mh: Likewise.
6819 * config/mips/irix5.mh: Likewise.
6820 * config/mips/irix6.mh: Likewise.
6821 * config/pa/hpux.mh: Likewise.
6822 * config/pa/linux.mh: Likewise.
6823 * config/powerpc/aix.mh: Likewise.
6824 * config/sparc/linux.mh: Likewise.
6825 * config/sparc/linux64.mh: Likewise.
6826 * config/sparc/sol2.mh: Likewise.
6827 * config/vax/vax.mh: Likewise.
6828 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
6829 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
6830 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
6831 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
6832 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
6833 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
6834 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
6835 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
6836 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
6837 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
6838 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
6839 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
6840 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6841 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
6842 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
6843 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6844 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
6845 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
6846 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
6847 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
6848 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
6849 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
6850 corelow.o from gdb_target_obs.
6851 * corefile.c (core_target): Update the comment on NULL value.
6852 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
6853 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
6854 MATCHES. Drop YUMMY set on NULL.
6855 (core_close): Do not call exit_inferior_silent on zero PID. Do not
6856 reclaim CORE_DATA if it is already NULL.
6857
6858 2012-01-09 Doug Evans <dje@google.com>
6859
6860 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
6861 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
6862
6863 2012-01-09 Keith Seitz <keiths@redhat.com>
6864
6865 * breakpoint.c (wrapper.h): Don't include.
6866
6867 2012-01-09 Keith Seitz <keiths@redhat.com>
6868
6869 * Makefile.in (SFILES): Remove wrapper.c.
6870 (HFILES_NO_SRCDIR): Remove wrapper.h.
6871 (COMMON_OBS): Remove wrapper.o.
6872 * cli/cli-interp.c: Don't inlude wrapper.h.
6873 * corelow.c: Likewise.
6874 (core_open): Replace gdb_target_find_new_threads with
6875 TRY_CATCH around target_find_new_threads.
6876 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
6877 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
6878 * varobj.c (varobj_create): Likewise for parse_exp_1 and
6879 evaluate_expression.
6880 (varobj_set_value): Likewise for evaluate_expression and
6881 value_assign.
6882 (install_new_variable): Likewise for value_fetch_lazy.
6883 (adjust_value_for_child_access): Likewise for value_ind.
6884 (c_describe_child): Likewise for value_subscript and
6885 value_ind.
6886 (c_value_of_root): Likewise for evaluate_expression.
6887 * wrapper.c: Remove.
6888 * wrapper.h: Remove.
6889
6890 2012-01-09 Doug Evans <dje@google.com>
6891
6892 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
6893 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
6894 "abfd" args with "section". All callers updated.
6895 Error checking code moved ...
6896 (error_check_comp_unit_head): ... here. New function.
6897 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
6898 Delete arg "abfd". New arg "type_offset". All callers updated.
6899 (create_debug_types_hash_table): Simplify by using
6900 read_and_check_type_unit_head.
6901
6902 * parser-defs.h (namecopy): Delete.
6903 * parse.c (namecopy, namecopy_size): Move into copy_name.
6904
6905 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6906
6907 Partially fix duplicate .o files after omitting libbfd.a.
6908 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
6909 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6910 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
6911 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6912 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
6913 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
6914 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6915
6916 2012-01-09 Pedro Alves <palves@redhat.com>
6917
6918 * MAINTAINERS: Update my email address.
6919
6920 2012-01-08 Doug Evans <dje@google.com>
6921
6922 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
6923 n_type_units. Rename type_comp_units to all_type_units.
6924 All uses updated.
6925 (add_signatured_type_cu_to_table): Renamed from
6926 add_signatured_type_cu_to_list. All callers updated.
6927
6928 * gdbtypes.h (struct cplus_struct_type): Delete member
6929 nfn_fields_total. All uses removed.
6930
6931 2012-01-06 Doug Evans <dje@google.com>
6932
6933 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
6934 to top of file.
6935 (dwarf2_find_comp_unit): Delete.
6936 (process_psymtab_comp_unit): Make result "void".
6937 Delete args buffer, info_ptr, buffer_size, and replace with
6938 "section". All callers updated.
6939 (dwarf2_build_psymtabs_hard): Simplify.
6940
6941 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
6942 Thiago Jung Bauermann <bauerman@br.ibm.com>
6943
6944 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
6945 before `struct gdb_exception'.
6946 * breakpoint.c (update_global_location_list_nothrow)
6947 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
6948 * cp-abi.c (value_rtti_type): Likewise.
6949 * cp-support.c (cp_validate_operator): Likewise.
6950 * infrun.c (insert_exception_resume_breakpoint)
6951 (check_exception_resume, keep_going): Likewise.
6952 * mi-interp.c (mi_breakpoint_created)
6953 (mi_breakpoint_modified): Likewise.
6954 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
6955 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
6956 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
6957
6958 2012-01-05 Doug Evans <dje@google.com>
6959
6960 * dwarf2read.c (statement_prologue): Delete, unused.
6961
6962 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
6963 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
6964
6965 * dwarf2read.c (comp_unit_header): Delete, unused.
6966
6967 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
6968
6969 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
6970 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
6971
6972 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
6973
6974 * infrun.c (normal_stop): Don't skip calling the normal_stop
6975 observers if the thread was doing a multi-step, but stopped for
6976 some reason other than stepping.
6977
6978 2012-01-05 Pedro Alves <alves.ped@gmail.com>
6979
6980 * cli/cli-decode.h: Add comments.
6981 (CMD_LIST_AMBIGUOUS): Moved to command.h
6982 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
6983 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
6984 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
6985 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
6986 (add_com, add_com_alias, add_info, add_info_alias)
6987 (complete_on_cmdlist, complete_on_enum, help_list): Remove
6988 declarations.
6989 * command.h: Add and adjust comments.
6990 (CMD_LIST_AMBIGUOUS): Moved here.
6991 (help_cmd, help_cmd_list): Delete declarations.
6992
6993 2012-01-04 Doug Evans <dje@google.com>
6994
6995 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
6996 All callers updated.
6997 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
6998 Replace all arguments with "per_cu". All callers updated.
6999
7000 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7001
7002 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7003 New arg "per_cu". All callers updated.
7004
7005 Delete #if 0'd out code.
7006 * language.c (binop_result_type): Delete.
7007 (simple_type, ordered_type, same_type, integral_type): Delete.
7008 (numeric_type, character_type, string_type, boolean_type): Delete.
7009 (float_type, structured_type): Delete.
7010 * language.h: Update.
7011
7012 2012-01-04 Tom Tromey <tromey@redhat.com>
7013
7014 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7015
7016 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7017
7018 * corefile.c (close_exec_file): Delete.
7019 (reopen_exec_file): Remove commented out code that seems related
7020 to close_exec_file, which is being deleted here.
7021 * inferior.h (close_exec_file): Delete.
7022 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7023
7024 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7025
7026 * ada-lang.c: #include "cli/cli-utils.h".
7027 (get_selections): Use skip_spaces.
7028 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7029 (catch_ada_exception_command_split): Use skip_spaces.
7030 (ada_decode_assert_location): Likewise.
7031
7032 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7033
7034 * linespec.c (decode_line_internal): Check for C++ or Java
7035 compound constructs only if the current language is C, C++
7036 or Java.
7037
7038 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7039
7040 Revert:
7041 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7042 Joel Brobecker <brobecker@adacore.com>
7043 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7044 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7045 3 times.
7046 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7047 fall through into AT_ENTRY_POINT.
7048 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7049 DUMMY_ADDR with it.
7050 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7051 PPC_INSN_SIZE skip to 3 times.
7052
7053 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7054
7055 * linespec.c (add_minsym): Preserve function descriptors.
7056
7057 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7058
7059 * breakpoint.c (all_locations_are_pending): Consider locations
7060 in program spaces executing during startup pending as well.
7061
7062 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7063
7064 Copyright year update in most files of the GDB Project.
7065
7066 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7067
7068 * copyright.sh: Delete.
7069 * copyright.py: Rewrite.
7070
7071 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7072
7073 * gnulib/extra/update-copyright: New file, imported from gnulib.
7074
7075 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7076
7077 * README (Copyright and License Notices): New section.
7078
7079 2012-01-03 Tom Tromey <tromey@redhat.com>
7080
7081 PR python/12533:
7082 * python/py-value.c (valpy_dereference, valpy_get_address
7083 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7084 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7085 (valpy_absolute, valpy_richcompare): Free intermediate values.
7086
7087 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7088
7089 * ada-lang.c: Reformat the copyright notice.
7090
7091 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7092
7093 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7094 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7095 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7096 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7097 Revert this part of:
7098 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7099 Build gdb directly from *.o files not using libgdb.a.
7100 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7101
7102 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7103
7104 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7105 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7106 Reformat the copyright header.
7107
7108 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7109
7110 Revert this part of:
7111 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7112 Remove the gdbtui binary.
7113 * gdb.c (main): Remove args.interpreter_p initialization.
7114 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7115 * main.h (struct captured_main_args): Remove interpreter_p.
7116
7117 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7118
7119 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7120
7121 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7122
7123 * top.c (print_gdb_version): Update copyright year.
7124
7125 2012-01-02 Yao Qi <yao@codesourcery.com>
7126
7127 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7128
7129 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7130 Joel Brobecker <brobecker@adacore.com>
7131
7132 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7133 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7134 3 times.
7135 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7136 fall through into AT_ENTRY_POINT.
7137 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7138 DUMMY_ADDR with it.
7139 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7140 PPC_INSN_SIZE skip to 3 times.
7141
7142 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7143
7144 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7145 the return value.
7146 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7147
7148 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7149
7150 Build gdb directly from *.o files not using libgdb.a.
7151 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7152 (COMMON_OBS): Remove solib-target.o.
7153 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7154 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7155 (LIBGDB_OBS, libgdb.a): Move it above.
7156 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7157 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7158 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7159 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7160 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7161 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7162 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7163 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7164 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7165 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7166 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7167 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7168 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7169 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7170 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7171 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7172 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7173 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7174 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7175 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7176 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7177 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7178 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7179 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7180 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7181 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7182 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7183
7184 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7185
7186 Remove the gdbtui binary.
7187 * .gitignore (/gdbtui): Remove.
7188 * Makefile.in (TUI): Remove.
7189 (SUBDIR_TUI_OBS): Remove tui-main.o.
7190 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7191 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7192 (tui-main.o): Remove.
7193 (all_object_files): Remove tui-main.o.
7194 * NEWS: New note for the gdbtui removal.
7195 * configure: Rebuilt.
7196 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7197 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7198 CONFIG_UNINSTALL respectively.
7199 * gdb.c (main): Remove args.interpreter_p initialization.
7200 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7201 * main.h (struct captured_main_args): Remove interpreter_p.
7202 * tui/tui-main.c: Remove.
7203
7204 2012-01-01 Doug Evans <dje@google.com>
7205
7206 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7207 (dwarf2_physname, read_import_statement): Ditto.
7208 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7209 (process_structure_scope read_subroutine_type): Ditto.
7210 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7211 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7212 (dwarf2_fetch_die_location_block): Ditto.
7213 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7214
7215 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7216 All callers updated.
7217 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7218 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7219 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7220
7221 * dwarf2read.c (load_cu): Move assert to more useful location.
7222
7223 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7224 All callers updated.
7225
7226 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7227 (dwarf2_elf_names): Minor reformat.
7228 (dwarf2_per_cu_data): Tweak comment.
7229 (dwarf2_read_section): Fix comment.
7230 (create_all_comp_units): Fix comment.
7231 (load_full_comp_unit): Fix comment.
7232 (process_full_comp_unit): Fix comment.
7233 (read_signatured_type): Fix comment.
7234
7235 For older changes see ChangeLog-2011.
7236 \f
7237 Local Variables:
7238 mode: change-log
7239 left-margin: 8
7240 fill-column: 74
7241 version-control: never
7242 coding: utf-8
7243 End:
This page took 0.284268 seconds and 5 git commands to generate.