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