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