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