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