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