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