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