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