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