]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
[Windows] run program with space in path to exe.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8f205f9c
JB
12012-10-24 Joel Brobecker <brobecker@adacore.com>
2
3 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
4 New local variable args_len.
5 Quote the name of the executable when computing the command line.
6
7f7930dd
MK
72012-10-23 Mark Kettenis <kettenis@gnu.org>
8
9 PR gdb/12796
10 PR gdb/12798
11 PR gdb/12800
12 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
13 AMD64_FTAG_REGNUM.
14 * amd64-tdep.c (amd64_classify): Classify complex types.
15 (amd64_return_value): Handle the COMPLEX_X87 class.
16
38a69d0a
JB
172012-10-23 Joel Brobecker <brobecker@adacore.com>
18
19 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
20 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
21
83ab93c6
JB
222012-10-23 Joel Brobecker <brobecker@adacore.com>
23
24 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
25 function.
26 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
27 to amd64_windows_auto_wide_charset.
28
f6fbab7d
YQ
292012-10-23 Yao Qi <yao@codesourcery.com>
30
31 * event-top.c (mark_async_signal_handler_wrapper): Remove.
32 * event-top.h: Remove its declaration.
33 (async_request_quit): Call mark_async_signal_handler instead of
34 mark_async_signal_handler_wrapper.
35 (async_do_nothing, async_disconnect): Likewise.
36 (async_stop_sig): Likewise.
37 * remote.c (handle_remote_sigint): Likewise.
38 (handle_remote_sigint_twice): Likewise.
39
05fa9251
YQ
402012-10-23 Yao Qi <yao@codesourcery.com>
41
42 * event-top.c (sigint_token, sighup_token): Replace 'void *'
43 with 'static struct async_signal_handler *'.
44 (sighup_token, sigquit_token, sigstp_token): Likewise.
45
08af7a40
AA
462012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
47
48 * gdbarch.sh (function_list): Use 'pstring' when printing
49 a variable which could return NULL.
50 * gdbarch.c: Regenerate.
51
beb4b03c
JB
522012-10-10 Joel Brobecker <brobecker@adacore.com>
53 Tom Tromey <tromey@redhat.com>
54
55 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
56 inneffective if condition by gdb assertion. Add function
57 description comment.
58
a5b12627
JB
592012-10-19 Joel Brobecker <brobecker@adacore.com>
60
61 * parser-defs.h (struct exp_descriptor): Document constraint
62 on return value for "op_name" callbacks.
63
0b0865da
TT
642012-10-18 Tom Tromey <tromey@redhat.com>
65
66 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
67 * symtab.c (iterate_over_some_symtabs): Constify.
68 * source.h (symtab_to_fullname): Return 'const char *'.
69 * source.c (symtab_to_fullname): Return 'const char *'.
70 * python/py-symtab.c (stpy_fullname): Constify.
71 * cli/cli-cmds.c (edit_command): Constify.
72 * breakpoint.c (print_breakpoint_location)
73 (update_static_tracepoint): Constify.
74
94b0e70d
TT
752012-10-18 Tom Tromey <tromey@redhat.com>
76
77 * breakpoint.c (compare_breakpoints): Fix comparison.
78
fff10684
TT
792012-10-18 Tom Tromey <tromey@redhat.com>
80
81 * valprint.c (generic_emit_char, generic_printstr): Pass size of
82 gdb_wchar_t to convert_between_encodings.
83
8de0566d
YQ
842012-10-17 Yao Qi <yao@codesourcery.com>
85
86 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
87 more parameter 'inferior'.
88 * corefile.c (write_memory_with_notification): Caller update.
89
90 * mi/mi-cmd-var.c: Include "mi-main.h".
91 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
92 to 1 and restore it later.
93 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
94 and "data-write-memory-bytes.
95 * mi/mi-interp.c: Include objfiles.h.
96 (mi_interpreter_init): Call observer_attach_memory_changed.
97 (mi_memory_changed): New.
98 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
99 New field.
100
101 * NEWS: Mention new MI notification "memory-changed".
102
6235cdd1
JK
1032012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
104
105 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
106
07540c15
DE
1072012-10-15 Doug Evans <dje@google.com>
108
109 New option -nh: inhibit loading of ~/.gdbinit.
110 * NEWS: Mention -nh.
111 * main.c (captured_main): Recognize and process -nh.
112 (print_gdb_help): Mention -nh.
113 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
114
eab09350
L
1152012-10-15 H.J. Lu <hongjiu.lu@intel.com>
116
117 PR backtrace/14646
118 PR gdb/14647
119 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
120 pc_regnum_from_eax.
121 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
122 nor pc_regnum_from_eax.
123 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
124 nor pc_regnum_from_eax.
125
9e3a7d65
JK
1262012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
127
128 Fix entry values resolving in inlined frames.
129 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
130 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
131 entries of FRAME.
132
c83393b9
JB
1332012-10-15 Joel Brobecker <brobecker@adacore.com>
134
135 * configure.ac: Build with -DMS_WIN64 if building with Python
136 enabled using GCC on amd64-windows.
137 * configure: Regenerate.
138
801e4185
TT
1392012-10-15 Tom Tromey <tromey@redhat.com>
140
141 PR python/14635:
142 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
143 to Py_None.
144
74f910c8
TT
1452012-10-15 Tom Tromey <tromey@redhat.com>
146
147 PR python/14634:
148 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
149
2a7c8fd5
AB
1502012-10-11 Andrew Burgess <aburgess@broadcom.com>
151
152 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
153 reset thread numbering back to 1.
154
7c09e5a0
DE
1552012-10-11 Doug Evans <dje@google.com>
156
157 PR breakpoints/14643.
158 * linespec.c (struct ls_parser): New member keyword_ok.
159 (linespec_lexer_lex_string): Add comment.
160 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
161 for one.
162 (parse_linespec): Set keyword_ok.
163
a1855c1d
DE
1642012-10-10 Doug Evans <dje@google.com>
165
844226d6
DE
166 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
167 "0x" prefix on address in log message.
168
a1855c1d
DE
169 * dwarf2read.c (read_1_byte): Add const to buf parameter.
170 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
171 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
172 (lookup_dwo_file): Add const to dwo_name parameter.
173 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
174
2e24f4aa
JK
1752012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
176
177 Fix crash during stepping on ppc32.
178 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
179 SYM.
180
aa14df25
DE
1812012-10-03 Doug Evans <dje@google.com>
182
183 PR symtab/14601
184 * buildsym.c (buildsym_init): Reset using_directives to NULL.
185
3d468296
AB
1862012-10-02 Andrew Burgess <aburgess@broadcom.com>
187
188 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
189 output and use uint32_t not long to ensure 4 byte size.
190
8f0ee2eb
JB
1912012-10-02 Joel Brobecker <brobecker@adacore.com>
192
193 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
194 unref'ed it.
195
b3dc46ff
AB
1962012-10-01 Andrew Burgess <aburgess@broadcom.com>
197
198 * target.c (simple_search_memory): Include access length in
199 warning message.
200
f712f01f
EBM
2012012-09-28 Nathan Miller <nathanm2@us.ibm.com>
202 Edjunior Machado <emachado@linux.vnet.ibm.com>
203
204 PR gdb/13989
205 * solib.c (solib_find): Prevent GDB from loading native libraries when
206 debugging a cross-target corefile.
207
39181896
PA
2082012-09-28 selven <pcthegreat@gmail.com>
209
210 Make definition match declaration.
211
212 * regcache.c (regcache_register_status): Change return type to
213 enum register_status.
214
4c2786ba
YQ
2152012-09-28 Yao Qi <yao@codesourcery.com>
216
217 * mi/mi-main.c (mi_cmd_data_write_memory): Call
218 write_memory_with_notification instead of write_memory.
219 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
220 instead of target_write_memory.
221
1ae0c35e
YQ
2222012-09-28 Yao Qi <yao@codesourcery.com>
223
224 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
225 when the length of content is not an even number.
226
7977e5d2
TT
2272012-09-27 Tom Tromey <tromey@redhat.com>
228
229 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
230 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
231
807160da
JB
2322012-09-27 Joel Brobecker <brobecker@adacore.com>
233
234 * sol-thread.c (sol_thread_fetch_registers)
235 (sol_thread_store_registers): Delete commented out code.
236
43c75337
JB
2372012-09-27 Joel Brobecker <brobecker@adacore.com>
238
239 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
240 Move these functions to sparc-sol-thread.c.
241 * sparc-sol-thread.c: New file.
242 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
243 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
244 configurations.
245 * configure: Regenerate.
246
d292a972
JB
2472012-09-27 Joel Brobecker <brobecker@adacore.com>
248
249 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
250 Remove commented-out code.
251
8c3da003
JB
2522012-09-27 Joel Brobecker <brobecker@adacore.com>
253
254 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
255 Enable this code for sparc hosts only.
256
f00482b6
JB
2572012-09-27 Joel Brobecker <brobecker@adacore.com>
258
259 * procfs.h (procfs_find_LDT_entry): Add declaration.
260 * sol-thread.c (ps_lgetLDT): Delete local declaration of
261 function procfs_find_LDT_entry.
262
337c776f
JB
2632012-09-27 Joel Brobecker <brobecker@adacore.com>
264
265 * procfs.c (proc_get_LDT_entry): Make static.
266
1a04d88f
JB
2672012-09-27 Joel Brobecker <brobecker@adacore.com>
268
269 * procfs.c (proc_find_memory_regions): Fix declaration.
270
bad43aa5
SP
2712012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
272
273 * amd64-tdep.c (amd64_return_value): Revert previous change
274 that used TYPE_LENGTH directly.
275 * bfin-tdep.c (bfin_extract_return_value): Likewise.
276 (bfin_store_return_value): Likewise.
277 * cris-tdep.c (cris_store_return_value): Likewise.
278 (cris_extract_return_value): Likewise.
279 * h8300-tdep.c (h8300_extract_return_value): Likewise.
280 * hppa-tdep.c (hppa64_return_value): Likewise.
281 * lm32-tdep.c (lm32_store_return_value): Likewise.
282 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
283 * spu-tdep.c (spu_value_from_register): Likewise.
284 * vax-tdep.c (vax_return_value): Likewise.
285
63375b74
SP
2862012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
287
288 * gdbtypes.c (lookup_array_range_type): Expand parameters
289 LOW_BOUND and HIGH_BOUND to LONGEST.
290 (lookup_string_range_type): Likewise.
291 * gdbtypes.h (lookup_array_range_type): Likewise.
292 (lookup_string_range_type): Likewise.
293 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
294 Expand HIGHBOUND to ssize_t.
295 (value_string): Likewise.
296 * value.h (value_cstring): Expand parameter LEN to ssize_t.
297 (value_string): Likewise.
298
19ca11c5
YQ
2992012-09-27 Yao Qi <yao@codesourcery.com>
300
301 PR breakpoints/13898
302 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
303 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
304 per breakpoint type.
305
92107356
PM
3062012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
307
308 * procfs.c: Add gdb_bfd header.
309 * rs6000-nat.c: Likewise.
310 * solib-pa64.c: Likewise.
311 * spu-linux-nat.c: Likewise.
312 * windows-nat.c: Likewise.
313
9742094a
TT
3142012-09-26 Tom Tromey <tromey@redhat.com>
315
316 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
317
0971de02
TT
3182012-09-26 Tom Tromey <tromey@redhat.com>
319
320 * dwarf2read.c (mark_common_block_symbol_computed): New function.
321 (read_common_block): Handle child DIEs with
322 DW_AT_data_member_location.
323 (new_symbol_full): Add special case for common blocks.
324
4357ac6c
TT
3252012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
326 Tom Tromey <tromey@redhat.com>
327
328 * dwarf2read.c (read_common_block): Rewrite.
329 (new_symbol_full): Handle DW_TAG_common_block.
330 * f-lang.c (head_common_list, find_common_for_function):
331 Remove.
332 * f-lang.h (struct common_entry, struct saved_f77_common,
333 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
334 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
335 BLANK_COMMON_NAME_LOCAL): Remove.
336 (struct common_block): New.
337 * f-valprint.c (list_all_visible_commons): Remove.
338 (info_common_command_for_block): New function.
339 (info_common_command): Use it.
340 * stack.c (iterate_over_block_locals): Special case for
341 COMMON_BLOCK_DOMAIN.
342 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
343 constant.
344 (struct general_symbol_info) <value.common_block>: New field.
345 (SYMBOL_VALUE_COMMON_BLOCK): New define.
346
965f07a8
TT
3472012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
348 Tom Tromey <tromey@redhat.com>
349
350 * f-lang.c (allocate_saved_bf_node,
351 allocate_saved_function_node, allocate_saved_f77_common_node,
352 allocate_common_entry_node, tail_common_list, current_common,
353 saved_bf_list, saved_bf_list_end, current_head_bf_list,
354 tmp_bf_ptr, add_common_block, add_common_entry,
355 find_first_common_named, patch_common_entries,
356 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
357 global_remote_debug, get_bf_for_fcn, saved_function_list,
358 saved_function_list_end, clear_function_list, struct saved_fcn,
359 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
360 SAVED_BF, SAVED_BF_PTR): Remove.
361 * f-lang.h (tail_common_list, current_common,
362 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
363 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
364 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
365 real_main_c_value): Remove.
366 * f-valprint.c (there_is_a_visible_common_named): Remove.
367
6f380991
AB
3682012-09-26 Andrew Burgess <aburgess@broadcom.com>
369
370 * breakpoint.c (update_global_location_list): Ignore previous
371 duplicate status of a breakpoint when starting a new scan for
372 duplicate breakpoints.
373
9ead7ae4 3742012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 375 PR breakpoints/14419
2536b51c
YQ
376 * arm-tdep.c (arm_skip_prologue): Extending producer check to
377 support LLVM compiler.
9ead7ae4 378
8f8a23a2
SP
3792012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
380
381 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
382 * bfin-tdep.c (bfin_extract_return_value): Likewise.
383 (bfin_store_return_value): Likewise.
384 * cris-tdep.c (cris_store_return_value): Likewise.
385 (cris_extract_return_value): Likewise.
386 * h8300-tdep.c (h8300_extract_return_value): Likewise.
387 * hppa-tdep.c (hppa64_return_value): Likewise.
388 * lm32-tdep.c (lm32_store_return_value): Likewise.
389 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
390 * spu-tdep.c (spu_value_from_register): Likewise.
391 * vax-tdep.c (vax_return_value): Likewise.
392
d7019589
SP
3932012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
394
395 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
396 parameter LEN to ssize_t.
397
744a8059
SP
3982012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
399
400 * ada-valprint.c (ada_val_print_1): Eliminate single-use
401 variable LEN.
402 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
403 directly.
404 (alpha_store_return_value): Likewise.
405 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
406 (amd64_push_arguments): Likewise.
407 * ax-gdb.c (gen_trace_static_fields): Likewise.
408 (gen_traced_pop): Likewise.
409 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
410 * breakpoint.c (update_watchpoint): Likewise.
411 * findcmd.c (parse_find_args): Use local variable for type
412 instead of length.
413 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
414 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
415 (h8300_store_return_value): Likewise.
416 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
417 Use i386_darwin_arg_type_alignment directly.
418 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
419 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
420 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
421 (m68hc11_extract_return_value): Likewise.
422 * mep-tdep.c (mep_push_dummy_call): Likewise.
423 * printcmd.c (float_type_from_length): Likewise.
424 * s390-tdep.c (s390_value_from_register): Likewise.
425 * stack.c (read_frame_arg): Likewise.
426 * tracepoint.c (encode_actions_1): Likewise.
427 * valops.c (value_fetch_lazy): Use local variable for type
428 instead of length. Use TYPE_LENGTH directly.
429 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
430
a4b411d6
JB
4312012-09-25 Joel Brobecker <brobecker@adacore.com>
432
433 * symtab.c (skip_prologue_sal): Fix typo in comment.
434
11dba07a
JB
4352012-09-25 Joel Brobecker <brobecker@adacore.com>
436
437 * linespec.c (create_sals_line_offset): Fix typo in comment.
438
318102b9
SP
4392012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
440
441 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
442 use plongest to print the array size.
443
b4aa388a
SP
4442012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
445
446 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
447 * p-valprint.c (pascal_type_print_base): Likewise.
448
84cebc4a
YQ
4492012-09-22 Yao Qi <yao@codesourcery.com>
450
451 * remote.c (remote_get_trace_status): Remove setting default
452 values of fields of 'ts'.
453
04e7407c
JK
4542012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
455
456 Fix internal error on canonicalization of clang types.
457 * cp-name-parser.y (operator): New comment at make_operator call for
458 new, delete, new[] and delete[].
459 (exp): Use "sizeof ". Add new comment at make_operator call.
460
9bf4bce9
JK
4612012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
462
463 Fix disassemble without parameters in tailcall frame.
464 * cli/cli-cmds.c (disassemble_current_function): Use
465 get_frame_address_in_block.
466
1c5b7826
TT
4672012-09-21 Tom Tromey <tromey@redhat.com>
468
469 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
470 TYPE_CODE_UNION>: Unify, removing a goto.
471
62a49610
TT
4722012-09-21 Tom Tromey <tromey@redhat.com>
473
474 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
475
2603f7ee
AB
4762012-09-21 Andrew Burgess <aburgess@broadcom.com>
477
478 * findvar.c (read_frame_register_value): Mark the result value as
479 optimized out if any of the input registers have been optimized out.
480
810849a3
AS
4812012-09-21 Andreas Schwab <schwab@linux-m68k.org>
482
483 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
484
0953dec1
SP
4852012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
486
487 * eval.c (evaluate_subexp_standard): Eliminate single-use
488 variable LOWER.
489
82a90ccf
YQ
4902012-09-21 Yao Qi <yao@codesourcery.com>
491
492 * mi/mi-interp.c: Declare mi_record_changed.
493 (mi_interpreter_init): Call observer_attach_record_changed.
494 (mi_record_changed): New.
495 * record.c (record_open): Call observer_notify_record_changed.
496 (cmd_record_stop): Call observer_notify_record_changed.
497 * NEWS: Mention it.
498
d7de8e3c
TT
4992012-09-20 Tom Tromey <tromey@redhat.com>
500
501 * NEWS: Update.
502 * python/python.c (finalize_python): New function.
503 (_initialize_python): Make a final cleanup.
504
43c7c83d
DE
5052012-09-19 Doug Evans <dje@google.com>
506
507 * buildsym.h (param_symbols): Delete, unused.
508 (context_stack): Delete member "params", unused.
509 * buildsym.c (push_context): Update.
510 * dwarf2read.c (read_func_scope): Update.
511
aa9259cc
TS
5122012-09-19 Thomas Schwinge <thomas@codesourcery.com>
513
a6521d9a
TS
514 * sh-tdep.c (sh_register_convert_to_virtual)
515 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
516 all callers. Just do a memcpy if not the little-endian case.
517
f92589cb
TS
518 * h8300-tdep.c (h8300_gdbarch_init): Invoke
519 set_gdbarch_double_format and set_gdbarch_long_double_format.
520 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
521 set_gdbarch_double_format.
522 * sh-tdep.c (sh_gdbarch_init): Likewise.
523
aa9259cc
TS
524 * NEWS: Document the removal of SH's 'regs' command.
525 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
526 command.
527
c1d780c2
SDJ
5282012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
529
530 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
531 `jump'.
532
4ae24af0
JB
5332012-09-18 Joel Brobecker <brobecker@adacore.com>
534
535 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
536 language when iterating over symbols.
537
bb25a15c
YQ
5382012-09-18 Yao Qi <yao@codesourcery.com>
539
540 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
541 (mi_interpreter_init): Call observer_attach_tsv_created and
542 observer_attach_tsv_deleted.
543 (mi_tsv_created, mi_tsv_deleted): New.
544 * tracepoint.c (delete_trace_state_variable): Call
545 observer_notify_tsv_deleted.
546 (trace_variable_command): Call observer_notify_tsv_created.
547 (delete_trace_variable_command): Call
548 observer_notify_tsv_deleted.
549 (create_tsv_from_upload): Call observer_notify_tsv_created.
550 * NEWS: Mention it.
551
201b4506
YQ
5522012-09-18 Yao Qi <yao@codesourcery.com>
553
554 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
555 if traceframe changed.
556 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
557 "trace-find".
558 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
559 (mi_interpreter_init): Hook mi_traceframe_changed to observer
560 'traceframe_changed'.
561 (mi_traceframe_changed): New.
562 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
563 New field.
564 * NEWS: Mention the new MI notification.
565
eaeb12db
MW
5662012-09-17 Mike Wrighton <wrighton@codesourcery.com>
567
568 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
569
6e3c039e
JK
5702012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
571
572 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
573 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
574 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
575 Extend code also for PaX support. Convert all gdb_assert to warning
576 calls.
577
9a950c7c
JK
5782012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
579
580 Implement auto-load user conveniences suggested by Doug Evans.
581 * auto-load.c: Include top.h.
582 (file_is_auto_load_safe): New variable advice_printed. Print advice.
583 (_initialize_auto_load): New variable scripts_directory_help. Mention
584 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
585 scripts-directory. Document in online help one can use also files for
586 set auto-load safe-path.
587 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
588 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
589
deec9a9d
SP
5902012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
591
592 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
593 of LEN.
594
354ecfd5
SP
5952012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
596
597 * m2-valprint.c (m2_print_array_contents): Eliminate variable
598 ELTLEN and use TYPE_LENGTH directly.
599 (m2_val_print): Likewise.
600 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
601 variable LEN and use TYPE_LENGTH directly.
602 (m68k_svr4_store_return_value): Likewise.
603 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
604 ARGLEN and use TYPE_LENGTH directly.
605 (mips_o64_push_dummy_call): Likewise.
606 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
607 variable LENGTH and use TYPE_LENGTH directly.
608 (s390_function_arg_float): Likewise.
609 (s390_function_arg_integer): Likewise.
610 (s390_push_dummy_call): Likewise.
611 (s390_return_value_convention): Likewise.
612 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
613 TYPE_LENGTH directly.
614
6fc1c773
YQ
6152012-09-17 Yao Qi <yao@codesourcery.com>
616
617 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
618 Update comment to add_setshow_integer_cmd.
619 * cli/cli-setshow.c (do_set_command): Handle case
620 'var_zuinteger_unlimited'.
621 (do_show_command): Likewise.
622 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
623 for command 'remotetimeout'.
624 * command.h (enum var_types): New zuinteger_unlimited. Update comment
625 to var_integer.
626 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
627 for command 'set listsize'.
628
6acef6cd
SP
6292012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
630
631 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
632 variable LEN.
633
1ab3b62c
JK
6342012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
635
636 PR 14119
637 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
638 (frame_pop): Drop also TAILCALL_FRAME frames.
639 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
640
acf9414f
JK
6412012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
642 Pedro Alves <palves@redhat.com>
643
644 PR 14548
645 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
646 function start if we are already at function start. Both for
647 reverse-next and for reverse-step into function without line number
648 info.
649
193facb3
JK
6502012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
651
652 Code cleanup - rename 'inline' depth to 'artificial' depth.
653 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
654 frame_id_artificial_p, extend the comment.
655 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
656 * frame.c (fprint_frame_id): Rename at a user, change debug output
657 text to "artificial=".
658 (skip_inlined_frames): Rename to ...
659 (skip_artificial_frames): ... here. Extend the comment.
660 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
661 (frame_id_inlined_p): Rename to ...
662 (frame_id_artificial_p): ... here. Rename at a user.
663 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
664 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
665 at a user.
666 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
667 Extend the comment.
668 (frame_id_inlined_p): Rename to ...
669 (frame_id_artificial_p): ... here.
670 * inline-frame.c (inline_frame_this_id): Rename at a user.
671
42056501
AB
6722012-09-14 Andrew Burgess <aburgess@broadcom.com>
673
674 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
675 vector variables using vector_size syntax rather than array
676 syntax.
677
84c47588
SP
6782012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
679
680 * valarith.c (value_concat): Replace unsafe ALLOCA with
681 XMALLOC/XFREE.
682
f4045bcb
PA
6832012-09-14 Pedro Alves <palves@redhat.com>
684
685 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
686
63b46266
YPK
6872012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
688
689 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
690 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
691 data-directory as appropriate.
692
ddd7a8e7
SP
6932012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
694
695 * printcmd.c (ui_printf): Eliminate single-use variable
696 PARAM_LEN.
697
d649a38e
YQ
6982012-09-14 Yao Qi <yao@codesourcery.com>
699 Pedro Alves <palves@redhat.com>
700
701 * valops.c (value_assign): Move observer_notify_target_changed
702 below to replace reinit_frame_cache.
703
b9516fa1
YPK
7042012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
705
706 Refactor Python "gdb" module into a proper Python package, by
707 introducing a new "_gdb" module for code implemented in C, and
708 using reload/__import__ instead of exec.
709 * python/lib/gdb/__init__.py: Import * from _gdb.
710 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
711 prompt_hook, sys.argv): Moved from finish_python_initialization.
712 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
713 (packages, auto_load_packages): New list and function replacing
714 module_dict and auto-loading code, using __file__ instead of
715 gdb.PYTHONDIR and reload/__import__ instead of exec.
716 (GdbSetPythonDirectory): Replacing function of the same name
717 from finish_python_initialization, using reload/__import__ instead
718 of exec, as well as call auto_load_packages.
719 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
720 gdb_python_module and not gdb_module.
721 * python/python-internal.h (gdb_python_module): Declare.
722 * python/python.c (gdb_python_module): New global.
723 (before_prompt_hook): Check gdb_python_module and not gdb_module.
724 (_initialize_python): Rename gdb module to _gdb.
725 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
726 (finish_python_initialization): Move Python code to
727 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
728 __main__.
729
aa0fbdd8
PA
7302012-09-13 Pedro Alves <palves@redhat.com>
731
732 * Makefile.in (COMMON_OBS): Add registry.o.
733 * registry.c: New file.
734 * registry.h (struct registry_container): Declare.
735 (registry_data_callback): New typedef.
736 (struct registry_data, struct registry_data_registration, struct
737 registry_data_registry): New type.
738 (register_data_with_cleanup, registry_alloc_data)
739 (registry_callback_adaptor, registry_clear_data)
740 (registry_container_free_data, registry_set_data, registry_data):
741 Declare.
742 (DEFINE_REGISTRY): Refactor structures and functions as shims over
743 the new common structures and functions.
744 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
745 callback typedefs.
746
42b5c53d
MW
7472012-09-12 Mike Wrighton <wrighton@codesourcery.com>
748
749 * remote.c (remote_insert_hw_breakpoint): Throw exception if
750 there is an error inserting hardware breakpoints and use the
751 error message from the target.
752
753 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
754 Catch this exception and print the error message contained within. Do not
755 print the default hardware error breakpoint message in this case.
756
a1b64ce1
DE
7572012-09-12 Doug Evans <dje@google.com>
758
759 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
760 cu == NULL.
761
83a788b8
DE
7622012-09-11 Doug Evans <dje@google.com>
763
764 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
765 .gdb_index symbol attributes if there are none.
766
d9eaeb59
JB
7672012-09-11 Joel Brobecker <brobecker@adacore.com>
768
769 * symtab.h (struct minimal_symbol) [has_size]: New field.
770 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
771 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
772 * printcmd.c (build_address_symbolic): Only filter out zero-sized
773 minimal symbols if the symbol's size is actually known.
774 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
775 of msymbol's size field. Add comment.
776 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
777 SET_MSYMBOL_SIZE to set the minimal symbol size.
778
a83e9154
JB
7792012-09-11 Joel Brobecker <brobecker@adacore.com>
780
781 * minsyms.c (install_minimal_symbols): Use memset to fill entire
782 minimal_symbol struct object, rather than setting some of its
783 fields one by one.
784
350b1b26
AB
7852012-09-11 Andrew Burgess <aburgess@broadcom.com>
786
787 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
788 passed_a_ptr flag when displaying typedef types.
789
2fa15f23
JB
7902012-09-10 Joel Brobecker <brobecker@adacore.com>
791
792 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
793 the optimized_out flag is preserved.
794
5152ff90
AG
7952012-09-10 Anthony Green <green@moxielogic.com>
796
797 * moxie-tdep.c (moxie_analyze_prologue): Update for function
798 prologue changes in GCC.
799
5b4f6e25
KS
8002012-09-10 Keith Seitz <keiths@redhat.com>
801
802 PR gdb/13483
803 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
804 (BOOL_CONVERSION_BADNESS): ... this.
805 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
806 (rank_one_type): Allow all boolean conversions
807 permitted by the standard.
808
f1070426
TT
8092012-09-06 Tom Tromey <tromey@redhat.com>
810
811 * python/py-newobjfileevent.c (create_new_objfile_event_object):
812 Don't decref py_objfile.
813
a8db4212
YPK
8142012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
815
816 Do not enable -lmcheck by default when Python is enabled with
817 threading support.
818 * configure.ac: (python_has_threads) New variable, by testing
819 if WITH_THREAD is defined in Python.h.
820 Move --enable-lmcheck after --with-python.
821 Do not enable -lmcheck by default if python_has_threads=yes.
822 Warn if --enable-lmcheck and python_has_threads=yes.
823 * configure: Regenerate.
824
648beb2b
YQ
8252012-08-31 Yao Qi <yao@codesourcery.com>
826
827 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
828 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
829 Update some commands.
830 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
831 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
832 to 1.
833
ef07a9f7
YQ
8342012-08-31 Yao Qi <yao@codesourcery.com>
835
836 * mi/mi-cmds.c (mi_cmds): Add 'static'.
837
fda395cf
YPK
8382012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
839
840 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
841
8efd8e78
DE
8422012-08-29 Doug Evans <dje@google.com>
843
844 * main.c (print_gdb_help): Remove reference to
845 --use-deprecated-index-sections.
846
883b9c6c
YQ
8472012-08-28 Yao Qi <yao@codesourcery.com>
848
849 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
850 (init_cmds): Call add_setshow_uinteger_cmd for command
851 'max-user-call-depth'.
852 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
853 declaration of 'max_user_call_depth'.
854 * frame.c (backtrace_limit): Add 'unsigned'.
855 (_initialize_frame): Call add_setshow_uinteger_cmd for command
856 'limit'.
857 * remote.c (remoteaddresssize): Add 'unsigned'.
858 (remote_address_masked): Change local var 'address_size' to
859 'unsigned'.
860 (_initialize_remote): Call add_setshow_uinteger_cmd for
861 'remoteaddresssize'.
862 * top.c (history_size): Add 'unsigned'.
863 (show_commands): Change local variables to 'unsigned'.
864 (set_history_size_command): Don't check history_size is negative.
865 Adjust the condition to call unstifle_history and set history_size
866 to UNIT_MAX.
867
1292279a
PA
8682012-08-28 Pedro Alves <palves@redhat.com>
869
870 PR gdb/14428
871
872 * infcmd.c (default_print_one_register_info): New, factored out
873 from default_print_registers_info.
874 (default_print_registers_info): Use it. Mark value unavailable if
875 necessary.
876 (registers_info): Print user registers with
877 default_print_one_register_info.
878
f629cd75
L
8792010-08-27 H.J. Lu <hongjiu.lu@intel.com>
880
881 PR tui/14486
882 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
883 is not NULL before referencing it.
884
1c8cdcb1
JK
8852012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
886
887 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
888 variable pc. Call find_pc_line instead of find_pc_overlay, restore
889 original PC for it.
890
e9687799
JK
8912012-08-27 Eli Zaretskii <eliz@gnu.org>
892 Jan Kratochvil <jan.kratochvil@redhat.com>
893
894 * auto-load.c (auto_load_objfile_script): Rename to ...
895 (auto_load_objfile_script_1): ... here, change variable realname to
896 parameter realname, document it, add return value, add variable retval.
897 (auto_load_objfile_script): New function.
898
7afa1642
JK
8992012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
900
901 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
902 followed by a whitespace.
903
dc7650b8
JK
9042012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
905
28e66c70 906 PR gdb/14494.
dc7650b8
JK
907 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
908 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
909 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
910 here.
911
1591a1e8
PA
9122012-08-27 Wei-cheng Wang <cole945@gmail.com>
913
914 * memattr.c (create_mem_region): Fix memory region overlapping
915 checking.
916
ecfb0d68
SP
9172012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
918
919 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
920 with xmalloc/cleanup.
921 * mt-tdep.c (mt_push_dummy_call): Likewise.
922 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
923 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
924
8c56c1b9
YQ
9252012-08-24 Yao Qi <yao@codesourcery.com>
926
927 * jv-exp.y (push_expression_name): Add "." at the end of error
928 message.
929
e3480f4a
YPK
9302012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
931
932 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
933 * python/python.c (_initialize_python): Update documentation.
934
dfbd5e7b
PA
9352012-08-23 Pedro Alves <palves@redhat.com>
936
937 * infrun.c (_initialize_infrun) <handle command help text>:
938 Mention that multiple signals are supported.
939
2edda2ff
PA
9402012-08-23 Pedro Alves <palves@redhat.com>
941
942 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
943 string.
944
8d735b87
YQ
9452012-08-23 Yao Qi <yao@codesourcery.com>
946
947 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
948 (tfind_1): Don't call registers_changed, set_traceframe_num,
949 and clear_traceframe_info.
950 Call set_current_traceframe.
951 (set_current_traceframe): call set_traceframe_num.
952
c5d9b215
SDJ
9532012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
954
955 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
956 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
957
037bbc8e
YPK
9582012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
959
960 Enable readline in Python in a GDB-specific way and block the
961 standard Python readline module to prevent conflicts with GDB.
962 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
963 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
964 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
965 * python/py-gdb-readline.c: New file.
966 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
967 prototype.
968 * python/python.c (_initialize_python): Call
969 gdbpy_initialize_gdb_readline.
970
406b1477
KS
9712012-08-22 Keith Seitz <keiths@redhat.com>
972
973 * defs.h: Include build-gnulib/config.h
974
6ca1b147
JM
9752012-08-22 Joseph Myers <joseph@codesourcery.com>
976
977 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
978 and blx pc.
979
8315665e
YPK
9802012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
981
982 Add a new "python-interactive" command that starts a standard
983 Python interactive prompt with "pi" as alias, and add "py" as
984 an alias to "python".
985 * NEWS: Mention the new commands.
8315665e
YPK
986 * python/python.c (eval_python_command): New function.
987 (python_interactive_command): For "python-interactive" with
988 arguments, call eval_python_command. For "python-interactive"
989 without arguments, call PyRun_InteractiveLoop.
990 (_initialize_python): Add "python-interactive" command with
991 "pi" as alias, and add "py" as an alias to "python".
992
522002f9
TT
9932012-08-22 Tom Tromey <tromey@redhat.com>
994
995 * defs.h (quit_flag): Don't declare.
996 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
997 (QUIT): Use new functions.
998 * event-top.c (command_handler): Use clear_quit_flag.
999 (handle_sigint): Use set_quit_flag.
1000 (async_request_quit): Use check_quit_flag. Don't check
1001 immediate_quit.
1002 * exceptions.c (throw_exception): Use clear_quit_flag.
1003 * main.c (captured_main): Use clear_quit_flag.
1004 * python/python.c (clear_quit_flag, set_quit_flag)
1005 (check_quit_flag): New functions.
1006 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1007 clear_quit_flag.
1008 * remote.c (remote_wait_as): Use check_quit_flag,
1009 clear_quit_flag.
1010 (remote_start_remote): Call QUIT.
1011 * symfile.c (load_progress): Use check_quit_flag.
1012 * top.c (command_loop): Use clear_quit_flag.
1013 (command_line_input): Call QUIT.
1014 * utils.c (quit_flag): Conditionally define.
1015 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1016 functions.
1017 (prompt_for_continue): Call QUIT. Use quit, not
1018 async_request_quit.
1019 * remote-mips.c (mips_expect_timeout): Call QUIT.
1020 * monitor.c (monitor_expect): Call QUIT.
1021
b583003e
TT
10222012-08-22 Tom Tromey <tromey@redhat.com>
1023
1024 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1025 (async_init_signals): Update.
1026 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1027 (SIGWINCH_HANDLER_BODY): Remove.
1028
e1507e95
TT
10292012-08-22 Tom Tromey <tromey@redhat.com>
1030
1031 * jit.c (jit_object_close_impl): Don't malloc the objfile
1032 name.
1033 * objfiles.c (allocate_objfile): Don't malloc the objfile
1034 name.
1035 (free_objfile): Don't free the objfile name.
1036 * objfiles.h (struct objfile) <name>: Update comment.
1037 * symfile.c (reread_symbols): Fix reference counting. Don't
1038 malloc objfile name.
1039
1c00ec6b
TT
10402012-08-22 Tom Tromey <tromey@redhat.com>
1041
1042 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1043 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1044 (symfile_bfd_open): Likewise.
1045 (generic_load): Likewise.
1046 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1047 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1048 gdb_bfd_open.
1049 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1050 Use gdb_bfd_open.
1051 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1052 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1053 (pmon_load_fast): Likewise.
1054 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1055 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1056 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1057 (macho_check_dsym): Likewise.
1058 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1059 (m32r_upload_command): Likewise.
1060 * gdb_bfd.h (gdb_bfd_cache): Declare.
1061 * gdb_bfd.c (struct gdb_bfd_data): New.
1062 (gdb_bfd_cache): New global.
1063 (struct gdb_bfd_cache_search): New.
1064 (hash_bfd): New function.
1065 (eq_bfd): Likewise.
1066 (gdb_bfd_open): Likewise.
1067 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1068 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1069 gdb_bfd_data.
1070 * exec.c (exec_file_attach): Use gdb_bfd_open.
1071 * dsrec.c (load_srec): Use gdb_bfd_open.
1072
6532ff36
TT
10732012-08-22 Tom Tromey <tromey@redhat.com>
1074
1075 * dwarf2read.c (macro_start_file): Update.
1076 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1077 (free_objfile_per_bfd_storage): Destroy macro_cache.
1078 (allocate_objfile, free_objfile): Update.
1079 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1080 New field.
1081 (struct objfile) <macro_cache>: Remove.
1082 * symfile.c (reread_symbols): Update.
1083 * symmisc.c (print_symbol_bcache_statistics): Update.
1084 (print_objfile_statistics): Update.
1085
706e3705
TT
10862012-08-22 Tom Tromey <tromey@redhat.com>
1087
1088 * elfread.c (elf_symtab_read): Update.
1089 * objfiles.c (objfiles_bfd_data): New global.
1090 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1091 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1092 (allocate_objfile, free_objfile): Update.
1093 (_initialize_objfiles): Initialize objfiles_bfd_data.
1094 * objfiles.h (struct objfile_per_bfd_storage): New.
1095 (struct objfile) <per_bfd>: New field.
1096 <filename_cache>: Remove.
1097 (set_objfile_per_bfd): Declare.
1098 * symfile.c (reread_symbols): Update. Call
1099 set_objfile_per_bfd.
1100 (allocate_symtab): Update.
1101 * symmisc.c (print_symbol_bcache_statistics): Update.
1102 (print_objfile_statistics): Print the size of the BFD obstack.
1103
e992eda4
TT
11042012-08-22 Tom Tromey <tromey@redhat.com>
1105
1106 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1107 * gdb_bfd.c: Use DEFINE_REGISTRY.
1108 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1109 (gdb_bfd_ref): Call bfd_alloc_data.
1110 (gdb_bfd_unref): Call bfd_free_data.
1111
6b81941e
TT
11122012-08-22 Tom Tromey <tromey@redhat.com>
1113
1114 * registry.h (struct registry_fields): New.
1115 (REGISTRY_FIELDS): Redefine.
1116 (REGISTRY_ACCESS_FIELD): New macro.
1117 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1118 functions.
1119
8e260fc0
TT
11202012-08-22 Tom Tromey <tromey@redhat.com>
1121
1122 * auto-load.c (_initialize_auto_load): Update.
1123 * solib-svr4.c (_initialize_svr4_solib): Update
1124 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1125 * solib-darwin.c (_initialize_darwin_solib): Update.
1126 * registry.h: New file.
1127 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1128 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1129 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1130 (register_program_space_data_with_cleanup)
1131 (register_program_space_data, program_space_alloc_data)
1132 (clear_program_space_data, set_program_space_data)
1133 (program_space_data): Don't declare.
1134 * progspace.c: Use DEFINE_REGISTRY.
1135 (struct program_space_data, struct
1136 program_space_data_registration, struct
1137 program_space_data_registry, program_space_data_registry)
1138 (register_program_space_data_with_cleanup)
1139 (register_program_space_data, program_space_alloc_data)
1140 (program_space_free_data, clear_program_space_data)
1141 (set_program_space_data, program_space_data): Remove.
1142 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1143 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1144 (register_objfile_data_with_cleanup, register_objfile_data)
1145 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1146 declare.
1147 * objfiles.c: Use DEFINE_REGISTRY.
1148 (struct objfile_data, struct objfile_data_registration, struct
1149 objfile_data_registry, objfile_data_registry)
1150 (register_objfile_data_with_cleanup, register_objfile_data)
1151 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1152 (set_objfile_data, objfile_data): Remove.
1153 (_initialize_objfiles): Update.
1154 * jit.c (_initialize_jit): Update.
1155 * inflow.c (_initialize_inflow): Update.
1156 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1157 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1158 (register_inferior_data_with_cleanup, register_inferior_data)
1159 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1160 declare.
1161 * inferior.c: Use DEFINE_REGISTRY.
1162 (struct inferior_data, struct inferior_data_registration, struct
1163 inferior_data_registry, inferior_data_registry)
1164 (register_inferior_data_with_cleanup, register_inferior_data)
1165 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1166 (set_inferior_data, inferior_data): Remove.
1167 * auxv.c (_initialize_auxv): Update.
1168 * ada-lang.c (_initialize_ada_language): Update.
1169 * breakpoint.c (_initialize_breakpoint): Update.
1170 * i386-nat.c (i386_use_watchpoints): Update.
1171
ed9eebaf
TT
11722012-08-22 Tom Tromey <tromey@redhat.com>
1173
1174 * exec.c (exec_close, exec_file_attach): Update.
1175 (add_to_section_table): Initialize 'key' field.
1176 (add_target_sections, remove_target_sections): Add 'key' argument.
1177 * exec.h (add_target_sections, remove_target_sections): Add
1178 'key' argument.
1179 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1180 (reload_shared_libraries_1): Update.
1181 * target.h (struct target_section) <key>: New field.
1182
2f2e97fa
TT
11832012-08-22 Tom Tromey <tromey@redhat.com>
1184
1185 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1186
b3dbbd6f
PM
11872012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1188
1189 * symfile.c (allocate_symtab): Use host_address_to_string
1190 function instead of cast of pointer to long which is not
1191 compatible with x86_64-w64-mingw32 build.
1192
f94363d7
AP
11932012-08-19 Andrew Pinski <apinski@cavium.com>
1194
1195 * mips-tdep.c (is_octeon): New function.
1196 (is_octeon_bbit_op): New function.
1197 (mips32_next_pc): Handle Octeon's bbit instructions.
1198 (mips32_instruction_has_delay_slot): Likewise.
1199
78a59c2f
AP
12002012-08-19 Andrew Pinski <apinski@cavium.com>
1201
1202 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1203 before the function.
1204
4f5bcb50
AP
12052012-08-19 Andrew Pinski <apinski@cavium.com>
1206
1207 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1208
e5afdbd7
KS
12092012-08-19 Keith Seitz <keiths@redhat.com>
1210
1211 PR c++/14365
1212 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1213 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1214
13c9750e
EZ
12152012-08-18 Eli Zaretskii <eliz@gnu.org>
1216
1217 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1218 The typo broke "make TAGS".
1219
db761810 12202012-08-17 Joel Brobecker <brobecker@adacore.com>
1221
1222 GDB 7.5 released.
1223
a451cb65
KS
12242012-08-17 Keith Seitz <keiths@redhat.com>
1225
1226 PR c++/13356
1227 * gdbtypes.c (strict_type_checking): New variable.
1228 (show_strict_type_checking): New function.
1229 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1230 if strict type checking is disabled.
1231 (_initialize_gdbtypes): Add "check type" subcommand.
1232 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1233
12342012-08-17 Keith Seitz <keiths@redhat.com>
1235
1236 * language.h (type_mode): Remove.
1237 (type_check): Remove.
1238 (struct language_defn): Remove la_type_check.
1239 (STRICT_TYPE): Remove unused macro.
1240 (type_error): Remove.
1241 * language.c (set_type_range_case): Renamed to ...
1242 (set_range_case): ... this. Update all callers.
1243 Remove type_mode/type_check.
1244 (type_mode): Remove.
1245 (type_check): Remove.
1246 (show_type_command): Remove.
1247 (set_type_command): Remove.
1248 (language_info): Remove type checking output.
1249 (type_error): Remove unused function.
1250 (range_error): Update comment.
1251 (unknown_language_defn): Remove la_type_check.
1252 (auto_language_defn): Likewise.
1253 (local_language_defn): Likewise.
1254 (_initialize_language): Remove "check type" subcommand.
1255 * ada-lang.c (ada_language_defn): Remove la_type_check.
1256 * c-lang.c (c_language_defn): Likewise.
1257 (cplus_language_defn): Likewise.
1258 (asm_language_defn): Likewise.
1259 (minimal_language_defn): Likewise.
1260 * d-lang.c (d_language_defn): Likewise.
1261 * f-lang.c (f_language_defn): Likewise.
1262 * go-lang.c (go_language_defn): Likewise.
1263 * jv-lang.c (java_language_defn): Likewise.
1264 * m2-lang.c (m2_language_defn): Likewise.
1265 * objc-lang.c (objc_language_defn): Likewise.
1266 * opencl-lang.c (opencl_language_defn): Likewise.
1267 * p-lang.c (pascal_language_defn): Likewise.
1268
dbf6a605
MF
12692012-08-16 Mike Frysinger <vapier@gentoo.org>
1270
1271 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1272
973e3cf7
JB
12732012-08-16 Joel Brobecker <brobecker@adacore.com>
1274
1275 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1276 New function.
1277 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1278 using the regache. Use ia64_hpux_get_register_from_save_state_t
1279 to access the bsp and bspstore registers if not.
1280
d80ee84f
JB
12812012-08-16 Joel Brobecker <brobecker@adacore.com>
1282
1283 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1284 * breakpoint.c (detach_breakpoints): Change pid parameter into
1285 a ptid. Adjust code accordingly.
1286 * infrun.c (handle_inferior_event): Delete variable child_pid.
1287 Update call to detach_breakpoints to pass the child ptid for
1288 fork events.
1289 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1290 assert that inferior_ptid's lwp is zero.
1291 (linux_handle_extended_wait): Update call to detach_breakpoints.
1292 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1293 detach_breakpoints.
1294
2dcc6086
JB
12952012-08-16 Joel Brobecker <brobecker@adacore.com>
1296
1297 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1298 parent, only call detach_breakpoints if tts.tts_event ==
1299 TTEVT_VFORK.
1300
0c92d8c1
JB
13012012-08-16 Joel Brobecker <brobecker@adacore.com>
1302
1303 * dwarf2-frame.c (dwarf2_frame_cache): Use
1304 get_frame_address_in_block instead of get_frame_pc as
1305 the bound for executing the frame's FDE.
1306
6b1755ce
YQ
13072012-08-16 Yao Qi <yao@codesourcery.com>
1308
1309 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1310 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1311 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1312 (c_type_print_varspec_suffix): Likewise.
1313 * eval.c (evaluate_subexp_standard): Likewise.
1314 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1315 (f_type_print_varspec_suffix): Likewise.
1316 * gdbtypes.c (is_scalar_type): Likewise.
1317 (recursive_dump_type): Likewise.
1318 * infcall.c (value_arg_coerce): Likewise.
1319 * m2-valprint.c (m2_val_print): Likewise.
1320 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1321 (pascal_type_print_varspec_suffix): Likewise.
1322 (pascal_type_print_base): Likewise.
1323 * p-valprint.c (pascal_val_print): Likewise.
1324 (pascal_val_print): Likewise.
1325 * valops.c (value_slice): Likewise.
1326 * valprint.c (scalar_type_p): Likewise.
1327 * valarith.c (value_bitstring_subscript): Remove.
1328 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1329 Remove comment on TYPE_CODE_BITSTRING.
1330
1331 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1332 TYPE_CODE_BITSTRING.
1333
1334 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1335 slot 0.
1336
8acc4065
YQ
13372012-08-16 Yao Qi <yao@codesourcery.com>
1338
1339 * tracepoint.c (trace_find_none_command): Remove.
1340 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1341
8128fd8e
YQ
13422012-08-16 Yao Qi <yao@codesourcery.com>
1343
1344 * remote.c (handle_notification): Remove parameter 'length'.
1345 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1346
2873700e
KS
13472012-08-15 Keith Seitz <keiths@redhat.com>
1348
1349 * gdbtypes.c (opaque_type_resolution): Make static.
1350 Add missing comment.
1351 (overload_debug): Add missing comment.
1352 (show_opaque_type_resolution): Likewise.
1353 (show_overload_debug): Likewise.
1354 (print_bit_vector): Remove unnecessary forward declaration.
1355 (print_arg_types): Likewise.
1356 (dump_fn_fieldlists): Likewise.
1357 (print_cplus_stuff): Likewise.
1358
b82d08cd
TT
13592012-08-15 Tom Tromey <tromey@redhat.com>
1360
1361 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1362 (gdb_bfd_ref): Initialize new field.
1363 (gdb_bfd_unref): Unref the archive BFD.
1364 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1365 parent archive.
1366
db6573d6
TT
13672012-08-15 Tom Tromey <tromey@redhat.com>
1368
1369 PR python/14387:
1370 * python/py-bpevent.c (create_breakpoint_event_object): Update
1371 comment.
1372 * python/py-event.c (evpy_add_attribute): Update comment.
1373 * python/py-exitedevent.c (create_exited_event_object): Fix
1374 reference counting and error handling.
1375 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1376 Fix reference counting.
1377 * python/py-signalevent.c (create_signal_event_object): Fix
1378 reference counting and error handling.
1379 * python/py-stopevent.c (emit_stop_event): Fix reference
1380 counting.
1381 * python/py-threadevent.c (get_event_thread): Return a
1382 borrowed reference.
1383 * python/py-type.c (convert_field): Fix reference counting.
1384
a036ba48
TT
13852012-08-15 Tom Tromey <tromey@redhat.com>
1386
1387 * dwarf2read.c (dwarf_decode_macro_bytes)
1388 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1389 as hash key.
1390
486c7739
MF
13912012-08-14 Mike Frysinger <vapier@gentoo.org>
1392
1393 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1394 stepi, nexti, finish, next, step, jump, and continue commands.
1395 * infrun.c (_initialize_infrun): Update help text for the handle
1396 command.
1397
4cf93a03
DE
13982012-08-14 Doug Evans <dje@google.com>
1399
70b099cf
DE
1400 * gdbtypes.c (struct extra): Delete, unused.
1401
5212577a
DE
1402 * gdbtypes.c: Whitespace cleanup.
1403 (address_space_name_to_int): Remove "extern" from definition.
1404 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1405
4cf93a03
DE
1406 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1407 TYPE_POINTER_TYPE (type).
1408
3756ef7e
GB
14092012-08-14 Gary Benson <gbenson@redhat.com>
1410
1411 * solib-svr4.c (svr4_free_library_list): Use free_so.
1412
40d72643
MF
14132012-08-13 Mike Frysinger <vapier@gentoo.org>
1414
1415 * .gitignore: Add go-exp.c.
1416
f47f77df
DE
14172012-08-13 Doug Evans <dje@google.com>
1418
1419 * value.c (show_convenience): Tweak comment.
1420 (_initialize_values): Mention convenience functions in the help text
1421 for "show convenience".
1422
7507c54a
YQ
14232012-08-13 Yao Qi <yao@codesourcery.com>
1424
1425 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1426 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1427 TERNOP_SLICE_COUNT.
1428 * eval.c (evaluate_subexp_standard): Likewise.
1429 * expprint.c (print_subexp_standard): Likewise.
1430 (dump_subexp_body_standard): Likewise.
1431 * parse.c (operator_length_standard): Likewise.
1432
5cad9736
YQ
14332012-08-13 Yao Qi <yao@codesourcery.com>
1434
1435 * std-operator.def: Remove OP_BITSTRING.
1436 * breakpoint.c (watchpoint_exp_is_const): Update.
1437 * eval.c (evaluate_subexp_standard): Remove handling to
1438 OP_BITSTRING.
1439 * expprint.c (print_subexp_standard): Likewise.
1440 (dump_subexp_body_standard): Likewise.
1441 * parse.c (operator_length_standard): Likewise.
1442 * valops.c (value_bitstring): Remove.
1443 * value.h: Remove the declaration of 'value_bitstring'.
1444
bad7670a
SDJ
14452012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1446
1447 * linespec.c (find_methods): Remove unused variables `i1' and
1448 `name_len'.
1449 (decode_line_full): Likewise for `arg_start'.
1450
d9dce7fa
SDJ
14512012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1452
1453 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1454 (zlib_decompress_section): Likewise for `section_data'.
1455 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1456
a72c3253
DE
14572012-08-10 Doug Evans <dje@google.com>
1458
1459 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1460 * NEWS: Document them.
1461 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1462 function/strfns.py.
1463 * python/py-type.c (typy_array_1): New function.
1464 (typy_array): Call it.
1465 (typy_vector): New function.
1466 (type_object_methods): Add "vector".
1467 * python/lib/gdb/function/__init__.py: New file.
1468 * python/lib/gdb/function/strfns.py: New file.
1469
200bc880
SP
14702012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1471
1472 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1473 for TYPE_FIELD_BITPOS.
1474 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1475
de0bea00
MF
14762012-08-10 Mike Frysinger <vapier@gentoo.org>
1477
1478 PR cli/10436:
1479 * common/vec.h (VEC_merge): Define.
1480 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1481 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1482 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1483 * completer.c: Include gdb_signals.h.
1484 (signal_completer): Define.
1485 * completer.h (signal_completer): Add prototype.
1486 * infcmd.c (_initialize_infcmd): Assign the command
1487 completer for "signal" to handle_completer.
1488 * infrun.c: Include completer.h.
1489 (handle_completer): Define.
1490 (_initialize_infrun): Declare a new local variable c. Store the
1491 result of add_com("handle") to it. Assign the command
1492 completer for "handle" to handle_completer.
1493
5b9afe8a
YQ
14942012-08-09 Yao Qi <yao@codesourcery.com>
1495
1496 * cli/cli-decode.c (set_cmd_prefix): New.
1497 (lookup_cmd_for_prefixlist): New.
1498 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1499 of each cmd_list_element in *prefixlist.
1500 (add_setshow_cmd_full): set_cmd_prefix.
1501 (add_alias_cmd): Likewise.
1502 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1503 Declare 'auto_boolean_enums'.
1504 * cli/cli-setshow.c: Include "observer.h".
1505 (notify_command_param_changed_p): New.
1506 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1507 Remove 'static'.
1508 (do_setshow_command): Split it to ...
1509 (do_set_command, do_show_command): ... them. New.
1510 (do_set_command): Call observer_notify_command_param_changed if
1511 notify_command_param_changed_p returns true.
1512 (cmd_show_list): Caller update.
1513 * auto-load.c (set_auto_load_cmd): Likewise.
1514 * remote.c (show_remote_cmd): Likewise.
1515 * cli/cli-setshow.h: Update declarations.
1516 * top.c (execute_command): Call do_set_command and do_show_command.
1517
1518 * NEWS: Mention new MI notification.
1519 * mi/mi-interp.c: Declare mi_command_param_changed.
1520 (mi_interpreter_init): Attach mi_command_param_changed to
1521 observer command_param_changed.
1522 (mi_command_param_changed): New.
1523 Remove mi_suppress_breakpoint_notifications.
1524 Define global variable mi_suppress_notification.
1525 (mi_breakpoint_created): Update.
1526 (mi_breakpoint_deleted): Likewise.
1527 (mi_breakpoint_modified): Likewise.
1528 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1529 'gdb-set' and set mi_suppress_notification.
1530 * mi/mi-main.h: (mi_suppress_notification): New struct.
1531
1969df89
JK
15322012-08-09 Andreas Tobler <andreast@fgznet.ch>
1533 Jan Kratochvil <jan.kratochvil@redhat.com>
1534
1535 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1536
8bfd80db
YQ
15372012-08-09 Yao Qi <yao@codesourcery.com>
1538
1539 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1540 (skiplist): Move it to skip.c.
1541 (init_cmd_lists): Remove code setting enablebreaklist and
1542 skiplist to NULL.
1543 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1544 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1545 skiplist.
1546 * gdbcmd.h: Likewise.
1547 * skip.c (_initialize_step_skip): Move 'skiplist' from
1548 cli/cli-cmds.c.
1549
28578e6b
YQ
15502012-08-09 Yao Qi <yao@codesourcery.com>
1551
1552 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1553 * gnu-nat.c, symfile.c: Likewise.
1554
260c0b2a
DE
15552012-08-08 Aaron Gamble <agamble@google.com>
1556
1557 * utils.c (prompt_for_continue_wait_time): New static global.
1558 (make_command_stats_cleanup): Initialize it.
1559 (report_command_stats): Subtract time waiting for user.
1560 (prompt_for_continue): Track time waiting for user.
1561 (defaulted_query): Track time waiting for user.
1562
4f485ebc
DE
15632012-08-08 Doug Evans <dje@google.com>
1564
1565 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1566 UNOP_MEMVAL_TYPE.
1567 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1568 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1569 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1570 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1571 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1572 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1573 elt.
1574 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1575 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1576 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1577 (dump_prefix_expression): Handle OP_TYPE.
1578
2acf2b39
KS
15792012-08-08 Keith Seitz <keiths@redhat.com>
1580
1581 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1582 addr_start.
1583
e6712ff1
DE
15842012-08-08 Doug Evans <dje@google.com>
1585
1586 * linux-thread-db.c: #include "gdb_vecs.h".
1587 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1588 updated.
1589 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1590 (thread_db_load_search): Use a vector to iterate over path elements.
1591 Handle text appearing after "$pdir".
1592
1593 * gdb_string.h: Moved to ...
1594 * common/gdb_string.h: ... here.
1595 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1596 gdb_string.h and gdb_assert.h.
1597
ab854e54
YQ
15982012-08-08 Yao Qi <yao@codesourcery.com>
1599
1600 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1601 (tic6x_value_to_register): Likewise.
1602 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1603 and set_gdbarch_value_to_register.
1604
4f69f4c2
JK
16052012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1606 Jean-Marc Saffroy <saffroy@gmail.com>
1607
1608 PR 11804
1609 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1610 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1611 * gcore.c (gcore_create_callback): New function comment. Add modified
1612 parameter. Only write modified regions. Set SEC_READONLY exactly
1613 according to MODIFIED.
1614 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1615 the passed modified value to FUNC.
1616 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1617 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1618 first. New variables modified and has_anonymous. Parse the lines of
1619 smaps file. Add the passed MODIFIED value to FUNC.
1620 * procfs.c (find_memory_regions_callback): Add the passed modified
1621 value.
1622
78ac5f83
TT
16232012-08-06 Tom Tromey <tromey@redhat.com>
1624
1625 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1626 (dwarf2_frame_cache): Use it.
1627 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1628 cache initialization constraint.
1629
2c12abee
TT
16302012-08-06 Tom Tromey <tromey@redhat.com>
1631
1632 PR python/14386:
1633 * varobj.c (update_dynamic_varobj_children): Don't call
1634 PyIter_Check.
1635
4979d7f0
TT
16362012-08-06 Tom Tromey <tromey@redhat.com>
1637
1638 PR cli/14392:
1639 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1640
f3c8a52a
JK
16412012-08-06 Nathaniel Flath <flat0103@gmail.com>
1642
1643 * NEWS: New entry for 'cd' default parameters.
1644 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1645
5a1cf4d6
TT
16462012-08-03 Tom Tromey <tromey@redhat.com>
1647
1648 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1649 return.
1650
7c3270ae
UW
16512012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1652
1653 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1654 to attempting lseek/write.
1655 (inf_child_fileio_pread): Likewise for pread.
1656
ccce17b0
YQ
16572012-08-02 Yao Qi <yao@codesourcery.com>
1658
1659 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1660 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1661 add_setshow_zinteger_cmd.
1662 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1663 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1664 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1665 instead of add_setshow_zinteger_cmd.
1666 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1667 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1668 instead of add_setshow_zinteger_cmd.
1669 * frame.c (frame_debug): Add 'unsigned'.
1670 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1671 add_setshow_zinteger_cmd.
1672 * frame.h: Update the declaration of 'frame_debug'.
1673 * gdbtypes.c (overload_debug): Add 'unsigned'.
1674 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1675 add_setshow_zinteger_cmd.
1676 * inferior.h: Update declaration of 'debug_infrun'.
1677 * infrun.c (debug_infrun): Add 'unsigned'.
1678 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1679 add_setshow_zinteger_cmd.
1680 * jit.c (jit_debug): Add 'unsigned'.
1681 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1682 add_setshow_zinteger_cmd.
1683 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1684 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1685 instead of add_setshow_zinteger_cmd.
1686 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1687 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1688 add_setshow_zinteger_cmd.
1689 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1690 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1691 instead of add_setshow_zinteger_cmd.
1692 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1693 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1694 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1695 intead of add_setshow_zinteger_cmd.
1696 * mips-tdep.c (mips_debug): Add 'unsigned'.
1697 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1698 instead of add_setshow_zinteger_cmd.
1699 * monitor.c (monitor_debug): Add 'unsigned'.
1700 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1701 add_setshow_zinteger_cmd.
1702 * observer.c (observer_debug): Add 'unsigned'.
1703 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1704 add_setshow_zinteger_cmd.
1705 * parse.c (expressiondebug): Add 'unsigned'.
1706 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1707 add_setshow_zinteger_cmd.
1708 * record.c (record_debug): Add 'unsigned'.
1709 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1710 add_setshow_zinteger_cmd.
1711 * record.h: Update the declaration of 'record_debug'.
1712 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1713 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1714 add_setshow_zinteger_cmd.
1715 * serial.c (global_serial_debug_p): Add 'unsigned'.
1716 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1717 add_setshow_zinteger_cmd.
1718 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1719 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1720 add_setshow_zinteger_cmd.
1721 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1722 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1723 add_setshow_zinteger_cmd.
1724 * target.c (targetdebug): Add 'unsigned'.
1725 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1726 add_setshow_zinteger_cmd.
1727 * valops.c (overload_debug): Add 'unsigned'.
1728 * varobj.c (varobjdebug): Add 'unsigned'.
1729 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1730 add_setshow_zinteger_cmd.
1731 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1732 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1733 instead of add_setshow_zinteger_cmd.
1734
1735 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1736 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1737 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1738 instead of add_setshow_zinteger_cmd.
1739 * gdbarch.c, gdbarch.h: Re-generated.
1740
95b07c96
YQ
17412012-08-02 Yao Qi <yao@codesourcery.com>
1742
1743 * nto-tdep.c: Don't include cli/cli-decode.h and
1744 cli/cli-cmds.h.
1745 (_initialize_nto_tdep): Remove.
1746 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1747 Remove field.
1748 Remove macro nto_internal_debugging.
1749
57295b0b
RH
17502012-08-01 Richard Henderson <rth@redhat.com>
1751
1752 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1753 (mep-*-*) [gdb_target_obs]: Likewise.
1754
f782ad9b
AS
17552012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1756
1757 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1758 linux_get_siginfo_type.
1759
a14dd77e
JK
17602012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1761
1762 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1763 AT_ENTRY_POINT.
1764 (call_function_by_hand) <ON_STACK>: Call write_memory with
1765 gdbarch_breakpoint_from_pc, if possible.
1766 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1767 here.
1768
1467929f
YQ
17692012-07-31 Yao Qi <yao@codesourcery.com>
1770
1771 * tracepoint.c: Add 'static' for some variables.
1772
70976b65
YQ
17732012-07-31 Yao Qi <yao@codesourcery.com>
1774
1775 * go32-nat.c: Declare _initialize_go32_nat.
1776 * ser-go32.c: Declare _initialize_ser_dos.
1777 * top.c (do_chdir_cleanup): Add 'static'.
1778
eff9c3e6
KS
17792012-07-30 Keith Seitz <keiths@redhat.com>
1780
1781 * linespec.c (linespec_lex_number): A number followed
1782 by quotes is a valid number, too.
1783
728400d7
TT
17842012-07-30 Tom Tromey <tromey@redhat.com>
1785
1786 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1787
fcf303ab
UW
17882012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1789
1790 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1791 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1792
4e969b4f
AB
17932012-07-30 Andrew Burgess <aburgess@broadcom.com>
1794
1795 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1796 invalid or reevaluated to prevent prevent references to possibly
1797 delete'd type objects being left in the varobj.
1798
c4bfde41
JK
17992012-07-27 Tom Tromey <tromey@redhat.com>
1800 Jan Kratochvil <jan.kratochvil@redhat.com>
1801
1802 * copying.awk: Print buffer-read-only and vi ro markers.
1803 * copying.c: Rebuild.
1804 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1805 * gdbarch.c, gdbarch.h: Rebuild.
1806 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1807 buffer-read-only and vi ro markers.
1808 * features/arm-with-iwmmxt.c: Rebuild.
1809 * features/arm-with-m-fpa-layout.c: Rebuild.
1810 * features/arm-with-m-vfp-d16.c: Rebuild.
1811 * features/arm-with-m.c: Rebuild.
1812 * features/arm-with-neon.c: Rebuild.
1813 * features/arm-with-vfpv2.c: Rebuild.
1814 * features/arm-with-vfpv3.c: Rebuild.
1815 * features/i386/amd64-avx-linux.c: Rebuild.
1816 * features/i386/amd64-avx.c: Rebuild.
1817 * features/i386/amd64-linux.c: Rebuild.
1818 * features/i386/amd64.c: Rebuild.
1819 * features/i386/i386-avx-linux.c: Rebuild.
1820 * features/i386/i386-avx.c: Rebuild.
1821 * features/i386/i386-linux.c: Rebuild.
1822 * features/i386/i386-mmx-linux.c: Rebuild.
1823 * features/i386/i386-mmx.c: Rebuild.
1824 * features/i386/i386.c: Rebuild.
1825 * features/i386/x32-avx-linux.c: Rebuild.
1826 * features/i386/x32-avx.c: Rebuild.
1827 * features/i386/x32-linux.c: Rebuild.
1828 * features/i386/x32.c: Rebuild.
1829 * features/mips-dsp-linux.c: Rebuild.
1830 * features/mips-linux.c: Rebuild.
1831 * features/mips64-dsp-linux.c: Rebuild.
1832 * features/mips64-linux.c: Rebuild.
1833 * features/rs6000/powerpc-32.c: Rebuild.
1834 * features/rs6000/powerpc-32l.c: Rebuild.
1835 * features/rs6000/powerpc-403.c: Rebuild.
1836 * features/rs6000/powerpc-403gc.c: Rebuild.
1837 * features/rs6000/powerpc-405.c: Rebuild.
1838 * features/rs6000/powerpc-505.c: Rebuild.
1839 * features/rs6000/powerpc-601.c: Rebuild.
1840 * features/rs6000/powerpc-602.c: Rebuild.
1841 * features/rs6000/powerpc-603.c: Rebuild.
1842 * features/rs6000/powerpc-604.c: Rebuild.
1843 * features/rs6000/powerpc-64.c: Rebuild.
1844 * features/rs6000/powerpc-64l.c: Rebuild.
1845 * features/rs6000/powerpc-7400.c: Rebuild.
1846 * features/rs6000/powerpc-750.c: Rebuild.
1847 * features/rs6000/powerpc-860.c: Rebuild.
1848 * features/rs6000/powerpc-altivec32.c: Rebuild.
1849 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1850 * features/rs6000/powerpc-altivec64.c: Rebuild.
1851 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1852 * features/rs6000/powerpc-cell32l.c: Rebuild.
1853 * features/rs6000/powerpc-cell64l.c: Rebuild.
1854 * features/rs6000/powerpc-e500.c: Rebuild.
1855 * features/rs6000/powerpc-e500l.c: Rebuild.
1856 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1857 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1858 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1859 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1860 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1861 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1862 * features/rs6000/powerpc-vsx32.c: Rebuild.
1863 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1864 * features/rs6000/powerpc-vsx64.c: Rebuild.
1865 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1866 * features/rs6000/rs6000.c: Rebuild.
1867 * features/s390-linux32.c: Rebuild.
1868 * features/s390-linux32v1.c: Rebuild.
1869 * features/s390-linux32v2.c: Rebuild.
1870 * features/s390-linux64.c: Rebuild.
1871 * features/s390-linux64v1.c: Rebuild.
1872 * features/s390-linux64v2.c: Rebuild.
1873 * features/s390x-linux64.c: Rebuild.
1874 * features/s390x-linux64v1.c: Rebuild.
1875 * features/s390x-linux64v2.c: Rebuild.
1876 * features/tic6x-c62x-linux.c: Rebuild.
1877 * features/tic6x-c62x.c: Rebuild.
1878 * features/tic6x-c64x-linux.c: Rebuild.
1879 * features/tic6x-c64x.c: Rebuild.
1880 * features/tic6x-c64xp-linux.c: Rebuild.
1881 * features/tic6x-c64xp.c: Rebuild.
1882
826f0041
TT
18832012-07-27 Tom Tromey <tromey@redhat.com>
1884
1885 * c-exp.y (classify_name): Avoid assignment in condition.
1886
84552b16
PA
18872012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1888
1889 * amd64-windows-tdep.c: Include "frame.h".
1890 (amd64_windows_skip_trampoline_code): New function.
1891 (amd64_windows_init_abi): Add trampoline registration.
1892
a8a64aa8
YQ
18932012-07-27 Yao Qi <yao@codesourcery.com>
1894
1895 * tracepoint.c (cur_traceframe_number): Remove.
1896 (set_tfile_traceframe): Remove.
1897 (tfile_trace_find, tfile_fetch_registers): Update callers.
1898 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1899 (tfile_open, tfile_trace_find): Likewise.
1900
d99067cb
YQ
19012012-07-27 Yao Qi <yao@codesourcery.com>
1902
1903 * thread.c (switch_to_thread): Don't call registers_changed.
1904
f2e8016f
TT
19052012-07-26 Tom Tromey <tromey@redhat.com>
1906
f782ad9b
AS
1907 * Makefile.in (SFILES): Remove objc-exp.y.
1908 (YYFILES): Remove objc-exp.c.
1909 (YYOBJ): Remove objc-exp.o.
1910 (local-maintainer-clean): Don't mention objc-exp.c.
1911 * c-exp.y: Include objc-lang.h.
1912 (%union) <class>: New field.
1913 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1914 (exp): Clone subscript production for OBJC_LBRAC. Add various
1915 Objective C productions.
1916 (msglist, msgarglist, msgarg): New productions.
1917 (array_mod, func_mod, operator): Clone productions for
1918 OBJC_LBRAC.
1919 (parse_string_or_char): Handle '@' strings.
1920 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1921 (classify_name): Check la_name_of_this. Recognize ObjC class
1922 names.
1923 * objc-exp.y: Remove.
1924 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1925 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 1926
f66713d2
JK
19272012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1928
1929 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1930
7cfe01b4
JK
19312012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1932
1933 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1934 and decrement.
1935
5ba19b4c
TT
19362012-07-26 Tom Tromey <tromey@redhat.com>
1937
1938 * copying.c: Rebuild.
1939 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1940 'no_class'.
1941
27618ce4
TT
19422012-07-26 Tom Tromey <tromey@redhat.com>
1943
1944 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1945 immediate_quit.
1946 (print_objfile_statistics): Likewise.
1947 (maintenance_print_symbols): Likewise.
1948 (maintenance_print_msymbols): Likewise.
1949 (maintenance_print_objfiles): Likewise.
1950 * psymtab.c (print_partial_symbols): Call QUIT.
1951 (maintenance_print_psymbols): Likewise. Don't modify
1952 immediate_quit.
1953 * copying.c (show_copying_command): Don't modify immediate_quit.
1954 (show_warranty_command): Likewise.
1955 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1956
dd3818c8
KS
19572012-07-26 Keith Seitz <keiths@redhat.com>
1958
1959 * linespec.c (linespec_lexer_lex_number): The input
1960 is also a valid number if the next character is a comma
1961 or colon.
1962
23a80689
JB
19632012-07-26 Joel Brobecker <brobecker@adacore.com>
1964
1965 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1966 configure options.
1967
29f77997
TG
19682012-07-26 Tristan Gingold <gingold@adacore.com>
1969
1970 * machoread.c: Include gdb_bfd.h.
1971
a55c1f32
TG
19722012-07-26 Tristan Gingold <gingold@adacore.com>
1973
1974 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1975 offset.
1976
56eb65bd
SP
19772012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1978
1979 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1980 SIZE to size_t.
1981 (dwarf2_evaluate_loc_desc): Likewise.
1982 (dwarf2_loc_desc_needs_frame): Likewise.
1983 (locexpr_describe_location_1): Likewise.
1984 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1985 size_t.
1986 (struct dwarf2_loclist_baton): Likewise.
1987 * dwarf2read.c (struct dwarf_block): Likewise.
1988 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1989 (decode_locdesc): Expand SIZE and I to size_t.
1990
aec8845c
JK
19912012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1992
1993 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1994
33d7655b
JB
19952012-07-25 Joel Brobecker <brobecker@adacore.com>
1996
1997 * doublest.c (convert_doublest_to_floatformat): If the exponent
1998 is too small, treat the value as zero. If the exponent is too
1999 large, treat the value as infinity.
2000
a22d44ff
JB
20012012-07-25 Joel Brobecker <brobecker@adacore.com>
2002
2003 * configure.ac: Add --enable-lmcheck configure option.
2004 * configure: Regenerate.
2005
d6b28940
TT
20062012-07-25 Tom Tromey <tromey@redhat.com>
2007
f782ad9b
AS
2008 * NEWS: Mention maint info bfds.
2009 * gdb_bfd.c (all_bfds): New global.
2010 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2011 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2012 New functions.
d6b28940 2013
6e73ba20
RC
20142012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2015
2016 * configure.tgt: Add v850*-*-rtems*.
2017
d560eebd
TT
20182012-07-25 Tom Tromey <tromey@redhat.com>
2019
2020 * macrotab.c (macro_bcache_str): Remove cast.
2021
d7cbec71
HZ
20222012-07-25 Hui Zhu <hui_zhu@mentor.com>
2023
2024 * linespec.c (linespec_lexer_lex_number): Update comments,
2025 change the return and add check to make sure the input is
2026 the decimal numbers.
2027 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2028 false, call linespec_lexer_lex_string.
2029
882f447f
TT
20302012-07-24 Tom Tromey <tromey@redhat.com>
2031
2032 * symfile.c (symbol_file_add): Don't open BFD twice.
2033
53ab4066 20342012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
2035
2036 * breakpoint.c (create_breakpoint): Store condition for pending
2037 breakpoints.
2038
108fb0f7
AS
20392012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2040
2041 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2042 (m68k_return_value): Handle complex types like structures.
2043 (m68k_svr4_return_value): Likewise.
2044
1634dcbe
JK
20452012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2046
2047 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2048 parameters to bfd_get_section_name.
2049
e2d12c21
YQ
20502012-07-24 Yao Qi <yao@codesourcery.com>
2051
2052 * cli/cli-setshow.c: Handle case 'var_uinteger'
2053 and 'var_zuninteger' together. Handle case 'var_integer' and
2054 'var_zinteger' together.
2055
64b92e45
KS
20562012-07-23 Keith Seitz <keiths@redhat.com>
2057
2058 * linespec.c (convert_linespec_to_sal): Don't add
2059 any symbols to the result vector if symbol_to_sal
2060 returns zero.
2061
0f5f4ffe
KS
20622012-07-23 Keith Seitz <keiths@redhat.com>
2063
2064 * linespec.c (decode_objc): Record the function name
2065 in the linespec.
2066
da1cc82f
TT
20672012-07-23 Tom Tromey <tromey@redhat.com>
2068
2069 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2070 counting.
2071 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2072 (map_vmap): Acquire a reference to the BFD.
2073
6c18f3e0
SP
20742012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2075
2076 * p-valprint.c (pascal_object_print_value): Replace potentially
2077 unsafe alloca with xmalloc/xfree.
2078 * valops.c (search_struct_method): Likewise.
2079
695c3173
TT
20802012-07-23 Tom Tromey <tromey@redhat.com>
2081
2082 * solib-svr4.c (enable_break): Update.
2083 * bfd-target.h (target_bfd_reopen): Update documentation.
2084
08d2cd74
TT
20852012-07-23 Tom Tromey <tromey@redhat.com>
2086
2087 * symfile.c (separate_debug_file_exists): Update.
2088 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2089 (reread_symbols): Update.
2090 * elfread.c (build_id_verify): Update.
2091 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2092 bfd_open_maybe_remote.
2093
596f7d67
TT
20942012-07-23 Tom Tromey <tromey@redhat.com>
2095
2096 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2097
8ac244b4
TT
20982012-07-23 Tom Tromey <tromey@redhat.com>
2099
2100 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2101 and 'abfd'.
2102 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2103 and 'abfd'.
2104 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2105 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2106 'abfd'.
2107 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2108 * objfiles.c (allocate_objfile): Acquire a new reference.
2109 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2110 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2111 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2112 a cleanup for 'nbfd'.
2113 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2114 for 'nbfd'.
2115 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2116 make a cleanup for 'abfd'.
2117 (symbol_file_add): Make a BFD cleanup.
2118
64c31149
TT
21192012-07-23 Tom Tromey <tromey@redhat.com>
2120
2121 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2122 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2123 * corelow.c (core_open): Use gdb_bfd_fopen.
2124 * dsrec.c (load_srec): Use gdb_bfd_openr.
2125 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2126 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2127 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2128 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2129 (gdb_bfd_fdopenr): New functions.
2130 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2131 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2132 (gdb_bfd_fdopenr): Declare.
2133 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2134 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2135 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2136 gdb_bfd_openr_next_archived_file.
2137 (macho_check_dsym): Use gdb_bfd_openr.
2138 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2139 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2140 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2141 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2142 gdb_bfd_openr.
2143 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2144 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2145 gdb_bfd_openr_next_archived_file.
2146 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2147 Use gdb_bfd_openr.
2148 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2149 gdb_bfd_openr.
2150 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2151 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2152 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2153 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2154 (symfile_bfd_open): Use gdb_bfd_fopen.
2155 (generic_load): Use gdb_bfd_openr.
2156 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2157
520b0001
TT
21582012-07-23 Tom Tromey <tromey@redhat.com>
2159
2160 * bfd-target.c (target_bfd_reopen): Update.
2161 * cli/cli-dump.c (bfd_openr_with_cleanup)
2162 (bfd_openw_with_cleanup): Update.
2163 * corelow.c (core_open): Update.
2164 * dsrec.c (load_srec): Update.
2165 * exec.c (exec_file_attach): Update.
2166 * gcore.c (create_gcore_bfd): Update.
2167 * gdb_bfd.c (gdb_bfd_ref): Return void.
2168 (gdb_bfd_open): Update.
2169 * gdb_bfd.h (gdb_bfd_ref): Return void.
2170 Update comments.
2171 * jit.c (jit_bfd_try_read_symtab): Update.
2172 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2173 * machoread.c (macho_symfile_read_all_oso): Update.
2174 (macho_check_dsym): Update.
2175 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2176 * remote-m32r-sdi.c (m32r_load): Update.
2177 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2178 * rs6000-nat.c (add_vmap): Update.
2179 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2180 Update.
2181 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2182 * solib-spu.c (spu_bfd_open): Update.
2183 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2184 * spu-linux-nat.c (spu_bfd_open): Update.
2185 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2186 (generic_load): Update.
2187 * windows-nat.c (windows_make_so): Update.
2188
2322ff16
SP
21892012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2190
2191 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2192
3def0b36
PA
21932012-07-20 Jeff Kenton <jkenton@tilera.com>
2194
2195 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2196 SIGTRAMP_FRAME unwinding.
2197
e615022a
DE
21982012-07-20 Doug Evans <dje@google.com>
2199
2200 * NEWS: Document new options "set/show use-deprecated-index-sections",
2201 and delete reference to --use-deprecated-index-sections.
2202 * symfile.h (use_deprecated_index_sections): Delete.
2203 * dwarf2read.c (use_deprecated_index_sections): Make static.
2204 (read_index_from_section): Update wording of how to load
2205 deprecated index sections.
2206 (_initialize_dwarf2_read): New options
2207 "set/show use-deprecated-index-sections".
2208 * main.c (captured_main): Delete --use-deprecated-index-sections.
2209
64776a0b
PA
22102012-07-20 Pedro Alves <palves@redhat.com>
2211
2212 PR threads/11692
2213 PR gdb/12203
2214
2215 * infrun.c (handle_inferior_event) <new thread>: Don't special
2216 case minus_one_ptid.
2217 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2218 * linux-thread-db.c (thread_get_info_callback): Don't return early
2219 if the thread is zombie.
2220 (thread_from_lwp): Change return type to void. Rewrite stale
2221 comment.
2222 (attach_thread): Don't return early if the thread is zombie,
2223 instead set its "dying" flag.
2224 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2225 (find_new_threads_callback): Don't return early if the thread is
2226 zombie.
2227
09826ec5
PA
22282012-07-20 Pedro Alves <palves@redhat.com>
2229
2230 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2231 * target.c (target_wait): Likewise.
2232 (str_comma_list_concat_elem, do_option, target_options_to_string):
2233 New functions.
2234 * target.h (target_options_to_string): Declare.
2235
f7a35f02
TT
22362012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2237 Tom Tromey <tromey@redhat.com>
2238
2239 * dwarf2read.c (dwarf_decode_macros)
2240 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2241 DW_MACRO_GNU_transparent_include_alt>: New cases.
2242 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2243 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2244
b81e1ee0
TT
22452012-07-20 Tom Tromey <tromey@redhat.com>
2246
2247 * dwarf2read.c (try_open_dwo_file): Don't call
2248 gdb_bfd_stash_filename.
2249
99c1624c
PA
22502012-07-20 Pedro Alves <palves@redhat.com>
2251
2252 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2253 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2254 (i386_process_record): Tweak description comments.
2255
4ffa4fc7
PA
22562012-07-20 Pedro Alves <palves@redhat.com>
2257
2258 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2259 (i386_process_record): Use record_read_memory.
2260 * record.c (record_read_memory): New function.
2261 (record_arch_list_add_mem, record_exec_insn): Use
2262 record_read_memory.
2263 * record.h (record_read_memory): Declare.
2264
c24343e2
YQ
22652012-07-20 Yao Qi <yao@codesourcery.com>
2266
2267 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2268 NULL for xfree.
2269
90f47860
PA
22702012-07-19 Pedro Alves <palves@redhat.com>
2271
2272 * record.c (record_resume): Ask the target beneath to report all
2273 signals.
2274
01093045
DE
22752012-07-19 Doug Evans <dje@google.com>
2276
2277 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2278 there's no section at address zero.
2279 (dwarf2_record_block_ranges): Ditto.
2280
a7c3d162
YQ
22812012-07-19 Yao Qi <yao@codesourcery.com>
2282
2283 * command.h, remote.c: Fix a typo in comment.
2284
608b4967
TT
22852012-07-19 Tom Tromey <tromey@redhat.com>
2286
2287 PR exp/13206:
2288 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2289 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2290 OP_DECLTYPE>: New cases.
2291 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2292 (type_exp): Add new productions.
2293 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2294 and decltype.
2295 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2296 New case.
2297 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2298 OP_DECLTYPE>: New case.
2299 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2300 New case.
2301 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2302 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2303
274b54d7
TT
23042012-07-19 Tom Tromey <tromey@redhat.com>
2305
2306 * c-exp.y (enum token_flags): New.
2307 (struct token) <cxx_only>: Remove.
2308 <flags>: New field.
2309 (tokentab3, tokentab2, ident_tokens): Update.
2310 (lex_one_token): Update. Handle FLAG_SHADOW.
2311
9eaf6705
TT
23122012-07-19 Tom Tromey <tromey@redhat.com>
2313
2314 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2315 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2316 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2317 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2318 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2319 type_exp production where appropriate.
2320 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2321 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2322 <UNOP_MEMVAL_TYPE>: New case.
2323 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2324 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2325 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2326 <UNOP_MEMVAL_TYPE>: New case.
2327 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2328 UNOP_REINTERPRET_CAST>: Update.
2329 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2330 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2331 UNOP_REINTERPRET_CAST>: Update.
2332 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2333 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2334 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2335 constants.
2336
6ace3df1
YQ
23372012-07-19 Yao Qi <yao@codesourcery.com>
2338 Jan Kratochvil <jan.kratochvil@redhat.com>
2339
2340 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2341 and case 'var_optional_filename' together.
2342 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2343 instead of add_setshow_optional_filename_cmd for setshow command
2344 'args'. Set completer for 'set args'.
2345
48faced0
DE
23462012-07-18 Doug Evans <dje@google.com>
2347
2348 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2349 * common/gdb_vecs.c: New file, contents from utils.c.
2350 * common/host-defs.h: New file, contents from defs.h.
2351 * utils.h: New file, contents from defs.h.
2352 * defs.h: Move all declarations of objects defined in utils.c
2353 to utils.h (except QUIT() and related).
2354 #include "utils.h", "host-defs.h".
2355 * probe.h (probe_p): Move here from gdb_vecs.h.
2356 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2357 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2358 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2359 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2360 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2361 (COMMON_OBS): Add gdb_vecs.o.
2362 (gdb_vecs.o): New rule.
2363
66f1999b
KS
23642012-07-18 Keith Seitz <keiths@redhat.com>
2365
2366 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2367 parameter. If non-zero, use SYMNAME as the canonical name
2368 for the SaL.
2369 Update all callers.
2370 (convert_linespec_to_sals): Use add_sal_to_sals for
2371 expressions, too.
2372 (decode_line_full): No need to "fill in missing canonical names"
2373 anymore. Simply make cleanups for the allocated names.
2374
5d94e27b
KS
23752012-07-18 Keith Seitz <keiths@redhat.com>
2376
2377 * linespec.c (struct linespec): Constify expression,
2378 source_filename, function_name, and label_name.
2379 (symbol_not_found_error): Make all parameters const.
2380 (linespec_parser_delete): No need to check for NULL
2381 when using xfree. Cast const char * to char * for xfree.
2382
af4908ba
KS
23832012-07-18 Keith Seitz <keiths@redhat.com>
2384
2385 * breakpoint.c (invalid_thread_id_error): New function.
2386 (find_condition_and_thread): Use invalid_thread_id_error.
2387 (watch_command_1): Likewise.
2388
853254db
TT
23892012-07-18 Tom Tromey <tromey@redhat.com>
2390
2391 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2392 * contrib/cc-with-tweaks.sh: New file.
2393
2ec9a5e0
TT
23942012-07-18 Tom Tromey <tromey@redhat.com>
2395
2396 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2397 (locate_dwz_sections): Recognize .gdb_index.
2398 (create_cus_from_index_list): New function.
2399 (create_cus_from_index): Use it. Handle .dwz data.
2400 (read_index_from_section): New function, extracted from
2401 dwarf2_read_index.
2402 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2403 if needed.
2404
36586728
TT
24052012-07-18 Tom Tromey <tromey@redhat.com>
2406
2407 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2408 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2409 <is_dwz>: New field.
2410 (struct dwz_file): New.
2411 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2412 (locate_dwz_sections, dwarf2_get_dwz_file)
2413 (get_abbrev_section_for_cu): New functions.
2414 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2415 (read_and_check_type_unit_head): Add abbrev_section argument.
2416 (create_debug_types_hash_table): Update.
2417 (init_cutu_and_read_dies): Use proper abbrev section.
2418 (init_cutu_and_read_dies_no_follow): Likewise.
2419 (set_partial_user): Do nothing if PST==NULL.
2420 (read_comp_units_from_section): New function.
2421 (create_all_comp_units): Use it.
2422 (scan_partial_symbols, partial_die_parent_scope): Update.
2423 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2424 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2425 (find_partial_die): Add offset_in_dwz argument. Update.
2426 (guess_partial_die_structure_name, fixup_partial_die): Update.
2427 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2428 DW_FORM_GNU_strp_alt.
2429 (read_indirect_string_from_dwz): New function.
2430 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2431 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2432 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2433 (follow_die_offset): Add offset_in_dwz argument.
2434 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2435 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2436 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2437 Handle new macro forms.
2438 (dwarf_decode_macros): Update.
2439 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2440 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2441 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2442 (create_debug_types_hash_table): Use correct abbrev section.
2443 (get_debug_line_section): New function.
2444 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2445 (process_full_comp_unit): Pass 'required' argument to
2446 end_symtab_get_static_block.
2447 * buildsym.h (end_symtab_get_static_block): Update.
2448 * buildsym.c (end_symtab_get_static_block): Add 'required'
2449 argument.
2450 (end_symtab, end_expandable_symtab): Update.
2451
4bf44c1c
TT
24522012-07-18 Tom Tromey <tromey@redhat.com>
2453
2454 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2455 (pagesize): Remove.
2456 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2457 (zlib_decompress_section): Remove.
2458 (dwarf2_read_section): Use gdb_bfd_map_section.
2459 (munmap_section_buffer): Remove.
2460 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2461 munmap_section_buffer.
2462 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2463 (struct gdb_bfd_section_data): New.
2464 (free_one_bfd_section): New function.
2465 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2466 (get_section_descriptor, zlib_decompress_section)
2467 (gdb_bfd_map_section): New functions.
2468 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2469
bb397797
TT
24702012-07-18 Tom Tromey <tromey@redhat.com>
2471
2472 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2473
6ec53d05
TT
24742012-07-18 Tom Tromey <tromey@redhat.com>
2475
2476 * gdb_bfd.c (struct gdb_bfd_data): New.
2477 (gdb_bfd_cache): New global.
2478 (struct gdb_bfd_cache_search): New.
2479 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2480 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2481 * gdb_bfd.h (gdb_bfd_open): Declare.
2482
f9a062ff
TT
24832012-07-18 Tom Tromey <tromey@redhat.com>
2484
2485 * utils.c (make_cleanup_bfd_unref): Rename from
2486 make_cleanup_bfd_close.
2487 * defs.h (make_cleanup_bfd_unref): Rename from
2488 make_cleanup_bfd_close.
2489 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2490 (bfd_openw_with_cleanup): Update.
2491 * corelow.c (core_open): Update.
2492 * dsrec.c (load_srec): Update.
2493 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2494 * remote-m32r-sdi.c (m32r_load): Update.
2495 * remote-mips.c (mips_load_srec): Update.
2496 (pmon_load_fast): Update.
2497 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2498 Update.
2499 (darwin_bfd_open): Update.
2500 * solib.c (solib_bfd_fopen): Update.
2501 * symfile-mem.c (symbol_file_add_from_memory): Update.
2502 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2503 (symfile_bfd_open): Update.
2504 (generic_load): Update.
2505
d6ad71ba
TT
25062012-07-18 Tom Tromey <tromey@redhat.com>
2507
2508 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2509 (pmon_load_fast): Likewise.
2510 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2511 (m32r_upload_command): Likewise.
2512 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2513 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2514 Use make_cleanup_bfd_close.
2515
a4453b7e
TT
25162012-07-18 Tom Tromey <tromey@redhat.com>
2517
2518 * symfile.c (symfile_bfd_open): Don't copy name. Call
2519 gdb_bfd_stash_filename.
2520 (load_command): Open the new BFD before freeing the old.
2521 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2522 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2523 Call gdb_bfd_stash_filename.
2524 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2525 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2526 gdb_bfd_stash_filename.
2527 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2528 Free found_pathname.
2529 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2530 gdb_bfd_stash_filename.
2531 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2532 * machoread.c (macho_add_oso_symfile): Call
2533 gdb_bfd_stash_filename.
2534 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2535 gdb_bfd_stash_filename.
2536 (macho_check_dsym): Don't copy filename. Call
2537 gdb_bfd_stash_filename.
2538 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2539 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2540 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2541 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2542 * exec.c (exec_close): Don't free the BFD's filename.
2543 (exec_file_attach): Don't copy the filename. Call
2544 gdb_bfd_stash_filename.
2545 * corelow.c (core_close): Don't free the BFD's filename.
2546 (core_open): Call gdb_bfd_stash_filename.
2547 * corefile.c (reopen_exec_file): Remove #if 0 code.
2548 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2549 pathname.
2550 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2551
cbb099e8
TT
25522012-07-18 Tom Tromey <tromey@redhat.com>
2553
2554 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2555 gdb_bfd_unref.
2556 (free_dwo_file): Use gdb_bfd_unref.
2557 * cli/cli-dump.c: Include gdb_bfd.h.
2558 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2559 (bfd_openr_with_cleanup): Likewise.
2560 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2561 gdb_bfd_unref.
2562 * utils.c: Include gdb_bfd.h.
2563 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2564 * symfile.c: Include gdb_bfd.h.
2565 (separate_debug_file_exists): Use gdb_bfd_unref.
2566 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2567 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2568 (generic_load): Use gdb_bfd_ref.
2569 (reread_symbols): Use gdb_bfd_unref.
2570 * symfile-mem.c: Include gdb_bfd.h.
2571 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2572 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2573 * solib.c: Include gdb_bfd.h.
2574 (solib_bfd_fopen): Use gdb_bfd_ref.
2575 (solib_bfd_open): Use gdb_bfd_unref.
2576 (free_so_symbols): Use gdb_bfd_unref.
2577 (reload_shared_libraries_1): Use gdb_bfd_unref.
2578 * solib-spu.c: Include gdb_bfd.h.
2579 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2580 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2581 gdb_bfd_unref.
2582 * solib-frv.c: Include gdb_bfd.h.
2583 (enable_break2): Use gdb_bfd_unref.
2584 * solib-dsbt.c: Include gdb_bfd.h.
2585 (enable_break2): Use gdb_bfd_unref.
2586 * solib-darwin.c: Include gdb_bfd.h.
2587 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2588 gdb_bfd_unref.
2589 (darwin_bfd_open): Use gdb_bfd_unref.
2590 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2591 * remote-mips.c: Include gdb_bfd.h.
2592 (mips_load_srec): Use gdb_bfd_ref.
2593 (pmon_load_fast): Use gdb_bfd_ref.
2594 * remote-m32r-sdi.c: Include gdb_bfd.h.
2595 (m32r_load): Use gdb_bfd_ref.
2596 * record.c: Include gdb_bfd.h.
2597 (record_save_cleanups): Use gdb_bfd_unref.
2598 (cmd_record_save): Use gdb_bfd_unref.
2599 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2600 gdb_bfd_unref.
2601 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2602 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2603 * objfiles.c: Include gdb_bfd.h.
2604 (free_objfile): Use gdb_bfd_unref.
2605 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2606 gdb_bfd.c.
2607 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2608 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2609 (macho_check_dsym): Likewise.
2610 * m32r-rom.c: Include gdb_bfd.h.
2611 (m32r_load): Use gdb_bfd_ref.
2612 (m32r_upload_command): Use gdb_bfd_ref.
2613 * jit.c: Include gdb_bfd.h.
2614 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2615 * gdb_bfd.h: New file.
2616 * gdb_bfd.c: New file.
2617 * gcore.c: Include gdb_bfd.h.
2618 (create_gcore_bfd): Use gdb_bfd_ref.
2619 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2620 (gcore_command): Use gdb_bfd_unref.
2621 * exec.c: Include gdb_bfd.h.
2622 (exec_close): Use gdb_bfd_unref.
2623 (exec_close_1): Use gdb_bfd_unref.
2624 (exec_file_attach): Use gdb_bfd_ref.
2625 * elfread.c: Include gdb_bfd.h.
2626 (build_id_verify): Use gdb_bfd_unref.
2627 * dsrec.c: Include gdb_bfd.h.
2628 (load_srec): Use gdb_bfd_ref.
2629 * corelow.c: Include gdb_bfd.h.
2630 (core_close): Use gdb_bfd_unref.
2631 (core_open): Use gdb_bfd_ref.
2632 * bfd-target.c: Include gdb_bfd.h.
2633 (target_bfd_xclose): Use gdb_bfd_unref.
2634 (target_bfd_reopen): Use gdb_bfd_ref.
2635 * Makefile.in (SFILES): Add gdb_bfd.c.
2636 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2637 (COMMON_OBS): Add gdb_bfd.o.
2638
ed1d1739
KS
26392012-07-18 Keith Seitz <keiths@redhat.com>
2640
2641 * breakpoint.c (find_condition_and_thread): Initialize
2642 TASK and REST.
2643 (create_breakpiont): find_condition_and_thread will now
2644 initialize COND_STRING, THREAD, and REST (and TASK).
2645 (addr_string_to_sals): Likewise.
2646
eab402df
PA
26472012-07-18 Pedro Alves <palves@redhat.com>
2648
2649 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2650 Pull the single step breakpoints out of the target.
2651
2b963b68
SDJ
26522012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2653
2654 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2655 * stap-probe.c (compile_probe_arg): Likewise.
2656
6bac7473
SDJ
26572012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2658
2659 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2660 (elf_compile_to_ax): Likewise.
2661 * infrun.c (insert_exception_resume_from_probe): Likewise.
2662 (check_exception_resume): Remove `objfile' variable.
2663 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2664 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2665 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2666 (compare_entries): Rename to...
2667 (compare_probes): ...this. Adjust function to work with
2668 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2669 respectively.
2670 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2671 `VEC (probe_p) *'.
2672 (print_ui_out_info): Adjust argument to be `struct probe *'.
2673 (info_probes_for_ops): Adjust internal computations to use
2674 `VEC (probe_p) *'.
2675 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2676 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2677 gen_info_probes_table_values>: Remove `objfile' argument.
2678 (struct probe) <objfile>: New field.
2679 (find_probe_by_pc): Remove `objfile' argument.
2680 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2681 (stap_get_probe_argument_count): Likewise.
2682 (stap_get_arg): Likewise.
2683 (stap_evaluate_probe_argument): Likewise.
2684 (stap_compile_to_ax): Likewise.
2685 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2686 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2687 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2688 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2689 sym_compile_to_ax>: Likewise.
2690
3347eb1a 26912012-07-18 Terry Guo <terry.guo@arm.com>
2692
2693 PR 14329
2694 * defs.h (GDB_MI_MSG_WIDTH): New.
2695 * ser_base (ser_base_read_error_fd): New function.
2696 (do_ser_base_readchar): Poll error file descriptor as well as
2697 standard output.
f782ad9b 2698 (generic_readchar): Refactor error handling.
3347eb1a 2699
80c8d323
JB
27002012-07-18 Joel Brobecker <brobecker@adacore.com>
2701
2702 * NEWS: Create a new section for the next release branch.
2703 Rename the section of the current branch, now that it has
2704 been cut.
2705
b45a0664 27062012-07-18 Joel Brobecker <brobecker@adacore.com>
2707
2708 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2709 * version.in: Bump version to 7.5.50.20120718-cvs.
2710
09cf2b22
KS
27112012-07-17 Keith Seitz <keiths@redhat.com>
2712
2713 * linespec.c (linespec_parse_line_offset): Make parameter
2714 const.
2715
8f043999
JK
27162012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2717
2718 PR 11914
2719 * f-valprint.c (info_common_command): New variable frame_id.
2720 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2721 * printcmd.c (print_variable_and_value): Extend function comment.
2722 Add comment for invalidated FRAME.
2723 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2724 FI form FRAME_ID after each print_frame_local_vars.
2725 (struct print_variable_and_value_data): Change frame to frame_id.
2726 (do_print_variable_and_value): New variable frame, initialize it from
2727 p->frame_id. Add comment for invalidated FRAME.
2728 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2729 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2730 for invalidated FRAME.
2731
ae5e0686
MK
27322012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2733 Pedro Alves <palves@redhat.com>
2734
2735 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2736 loop.
2737
5049c5be
TT
27382012-07-16 Tom Tromey <tromey@redhat.com>
2739
2740 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2741
2908cac6
DE
27422012-07-15 Doug Evans <dje@google.com>
2743
094b34ac
DE
2744 * dwarf2read.c (stmt_list_hash): New struct.
2745 (type_unit_group): Embed "per_cu" member, remove pointer.
2746 New union member "t", move member "tus" into it, all uses updated.
2747 New member "hash", replaces member "line_offset, all uses updated.
2748 (quick_file_names): Replace member "offset" with "hash", all uses
2749 updated.
2750 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2751 (hash_file_name_entry, eq_file_name_entry): Call them.
2752 (hash_type_unit_group, eq_type_unit_group): Ditto.
2753 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2754 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2755 (dw2_get_file_names): Update.
2756 (create_type_unit_group): Replace "per_cu" arg with "cu".
2757 All callers updated. Fix "quick" (.gdb_index) handling.
2758 (get_type_unit_group): Replace "per_cu" arg with "cu".
2759 All callers updated.
2760 (build_type_unit_groups): Don't reset tu_stats.
2761
2908cac6
DE
2762 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2763 "tab_cur_size". Change member "tab" to be a htab_t.
2764 (create_filename_seen_cache): Update.
2765 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2766 (filename_seen): Update.
2767
a2b6eff5
DE
27682012-07-13 Doug Evans <dje@google.com>
2769
2770 * symtab.c (filename_seen): Update comment.
2771
4359dff1
JK
27722012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2773 Doug Evans <dje@google.com>
2774
2775 * buildsym.c (end_symtab_1): Split it to ...
2776 (end_symtab_get_static_block): ... this ...
2777 (end_symtab_from_static_block): ... and this function.
2778 (end_symtab, end_expandable_symtab): Call them.
2779 * buildsym.h (end_symtab_get_static_block)
2780 (end_symtab_from_static_block): New declarations.
2781 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2782 Set its valid CU ranges.
2783
a24f71ab
JK
27842012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2785
2786 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2787 DW_OP_GNU_parameter_ref.
2788
d76b7dbc
JK
27892012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2790
2791 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2792 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2793
9fdc877b
DE
27942012-07-13 Doug Evans <dje@google.com>
2795
2796 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2797 (filename_seen_cache): New struct.
2798 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2799 (create_filename_seen_cache): New function.
2800 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2801 (filename_seen): Delete arg "first". New arg "cache". All callers
2802 updated.
2803 (output_source_filename_data): New struct.
2804 (output_source_filename): Delete arg "first". New arg "data".
2805 All callers updated.
2806 (sources_info): Delete local "first". New locals "data", "cleanups".
2807 Rewrite to use filename_seen_cache.
2808 (add_partial_filename_data): Delete member "first". New member
2809 "filename_seen_cache". All uses updated.
2810 (make_source_files_completion_list): Rewrite to use
2811 filename_seen_cache.
2812
f80c6f3f
DE
28132012-07-12 Doug Evans <dje@google.com>
2814
2815 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2816
0bfa869d
DE
28172012-07-10 Doug Evans <dje@google.com>
2818
f4dc4d17
DE
2819 PR gdb/13498
2820 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2821 all_type_unit_groups, type_unit_groups, tu_stats.
2822 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2823 All uses updated. Add type_unit_group to union "s".
2824 (type_unit_group): New struct.
2825 (IS_TYPE_UNIT_GROUP): New macro.
2826 (abbrev_table): Delete unused member "section".
2827 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2828 (dw2_get_cu): Assert not used with type_unit_group.
2829 (dw2_get_primary_cu): New function.
2830 (dw2_build_type_unit_groups_reader): New function.
2831 (dw2_build_type_unit_groups): New function.
2832 (dw2_get_file_names): Assert not called on type units.
2833 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2834 Redo loop to iterate over type unit groups instead of type units.
2835 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2836 (read_abbrev_offset): New function.
2837 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2838 updated.
2839 (create_partial_symtab): New function.
2840 (process_psymtab_comp_unit_reader): Assert not used with type units.
2841 Call create_partial_symtab.
2842 (process_psymtab_type_unit): Delete.
2843 (hash_type_unit_group, eq_type_unit_group): New functions.
2844 (allocate_type_unit_groups_table): New function.
2845 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2846 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2847 (create_type_unit_group, get_type_unit_group): New functions.
2848 (tu_abbrev_offset): New struct.
2849 (sort_tu_by_abbrev_offset): New function.
2850 (add_type_unit_group_to_table): New function.
2851 (build_type_unit_groups): New function.
2852 (build_type_psymtabs_reader): New function.
2853 (build_type_psymtab_dependencies): New function.
2854 (build_type_psymtabs): Rewrite.
2855 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2856 is seen in a type unit.
2857 (process_queue): Move symtab expansion debugging printfs here.
2858 Call process_full_type_unit for type units.
2859 (compute_symtab_includes): Assert not called for type units.
2860 (process_cu_includes): Don't call compute_symtab_includes for
2861 type units.
2862 (process_full_type_unit): New function.
2863 (process_imported_unit_die): Flag an error if called for type units.
2864 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2865 updated. Assert not called for type units.
2866 (read_file_scope): Call dwarf2_start_symtab.
2867 (setup_type_unit_groups): New function.
2868 (read_type_unit_scope): Rewrite.
2869 (abbrev_table_read_table): Initialize abbrev_table->offset.
2870 (abbrev_table_free_cleanup): New function.
2871 (dwarf2_start_symtab): New function.
2872 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
2873 * buildsym.c (finish_block_internal): New arg "expandable".
2874 All callers updated.
2875 (start_symtab): Move most contents to ...
2876 (restart_symtab): ... here. New function.
2877 (reset_symtab_globals): New function.
2878 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2879 Call reset_symtab_globals.
2880 (end_symtab, end_expandable_symtab): New functions.
2881 (set_missing_symtab, augment_type_symtab): New functions.
2882 * buildsym.h (end_expandable_symtab): Declare.
2883 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
2884 * psympriv.h (struct partial_symtab): New member "anonymous".
2885 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2886 anonymous psymtabs.
2887 (read_psymtabs_with_filename): Ditto.
2888 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2889 (expand_symtabs_matching_via_partial): Ditto.
2890 (dump_psymtab): Update.
0bfa869d
DE
2891 * dictionary.c (dict_add_pending): New function.
2892 * dictionary.h (dict_add_pending): Declare.
2893
45e58e77
DE
28942012-07-09 Doug Evans <dje@google.com>
2895
b74db436
DE
2896 * buildsym.c (start_subfile): Remove unnecessary check for
2897 name == NULL.
2898
fd55216c
DE
2899 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2900
6721b2ec
DE
2901 * dwarf2read.c (load_full_type_unit): Simplify.
2902
b4dd5633
DE
2903 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2904 to struct signatured_type **. All uses updated.
2905
45e58e77
DE
2906 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2907 All callers updated.
2908
e314d629
TT
29092012-07-09 Tom Tromey <tromey@redhat.com>
2910
2911 * c-exp.y (check_parameter_typelist): New function.
2912 (parameter_typelist): Call it.
2913 * eval.c (make_params): Handle '(void)' case.
2914 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2915 '(void)' case.
2916
aa7c7447
JK
29172012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2918
2919 * common/linux-ptrace.c: Include gdb_assert.h.
2920 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2921 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2922 stdint.h.
2923 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2924 functions.
2925 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2926 * linux-nat.c (linux_child_post_attach)
2927 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2928
889003ed
JK
29292012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2930
2931 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2932 nptl <2.7 bug workaround for core files.
2933
da559b09
JK
29342012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2935
2936 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2937 clearing.
2938 (save_siginfo): Remove.
2939 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2940 call.
2941 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2942 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2943 * linux-nat.h (struct lwp_info): Remove field siginfo.
2944
f865ee35
JK
29452012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2946
2947 Code cleanup for the next patch.
2948 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2949 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2950 call for it.
2951 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2952 (ia64_linux_stopped_data_address):
2953 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2954 the return value.
2955 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2956 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2957 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2958 call for it.
2959
76b83c51
JK
29602012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2961
2962 PR 14321
2963 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2964 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2965
a6fb9c08
TT
29662012-07-06 Tom Tromey <tromey@redhat.com>
2967
2968 * c-exp.y (DOTDOTDOT): New token.
2969 (func_mod, exp): Use parameter_typelist.
2970 (parameter_typelist): New production.
2971 (tokentab3): Add "..." token.
2972 * eval.c (make_params): Handle varargs.
2973 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2974 varargs.
2975
71918a86
TT
29762012-07-06 Tom Tromey <tromey@redhat.com>
2977
2978 PR exp/9608:
2979 * c-exp.y (%union) <tvec>: Change type.
2980 (func_mod): Now uses <tvec> type.
2981 (exp): Update for tvec change.
2982 (direct_abs_decl): Push the typelist.
2983 (func_mod): Return a typelist.
2984 (nonempty_typelist): Update for tvec change.
2985 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2986 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2987 * parse.c (pop_type_list): New function.
2988 (push_typelist): New function.
2989 (follow_types): Handle tp_function_with_arguments.
2990 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2991 (enum type_pieces) <tp_function_with_arguments>: New constant.
2992 (union type_stack_elt) <typelist_val>: New field.
2993 (push_typelist): Declare.
2994
fcde5961
TT
29952012-07-06 Tom Tromey <tromey@redhat.com>
2996
2997 * c-exp.y (%union) <type_stack>: New field.
2998 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2999 (ptr_operator_ts): New production.
3000 (ptype): Update.
3001 * parse.c (type_stack_reserve): New function.
3002 (check_type_stack_depth): Use it.
3003 (pop_type_stack, append_type_stack, push_type_stack)
3004 (get_type_stack, type_stack_cleanup): New functions.
3005 (follow_types): Handle tp_type_stack.
3006 (_initialize_parse): Simplify initialization.
3007 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3008 constant.
3009 (union type_stack_elt) <stack_val>: New field.
3010 (get_type_stack, append_type_stack, push_type_stack)
3011 (type_stack_cleanup): Declare.
3012
1a7d0ce4
TT
30132012-07-06 Tom Tromey <tromey@redhat.com>
3014
3015 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3016 Remove.
3017 (struct type_stack): New.
3018 * parse.c (type_stack, type_stack_size, type_stack_depth):
3019 Remove.
3020 (type_stack): New global.
3021 (parse_exp_in_context, check_type_stack_depth)
3022 (insert_into_type_stack, insert_type, push_type, push_type_int)
3023 (insert_type_address_space, pop_type, pop_type_int)
3024 (_initialize_parse): Update.
3025
16d01384
TT
30262012-07-06 Tom Tromey <tromey@redhat.com>
3027
3028 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3029 Remove %type.
3030
9bfc60bf
SP
30312012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3032
3033 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3034
d5161074
SP
30352012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3036 Jan Kratochvil <jan.kratochvil@redhat.com>
3037
3038 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3039 alloca with xmalloc/xfree.
3040
a74bc576
SP
30412012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3042
3043 * MAINTAINERS (Write After Approval): Add myself to the list.
3044
667e0a4b
DE
30452012-07-05 Doug Evans <dje@google.com>
3046
3047 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3048
34b536a8
HZ
30492012-07-05 Hui Zhu <hui_zhu@mentor.com>
3050
3051 * ax-gdb.c (cli/cli-utils.h): New include.
3052 (linespec.h): Ditto.
3053 (agent_eval_command_one): New function.
3054 (agent_command_1): Ditto.
3055 (agent_command): Call function agent_command_1.
3056 (agent_eval_command): Ditto.
3057 (_initialize_ax_gdb): Change help for "maint agent"
3058 and "maint agent-eval".
3059
e6f0bce7
HZ
30602012-07-05 Hui Zhu <hui_zhu@mentor.com>
3061
3062 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3063 * cli/cli-utils.c (check_for_argument): New function.
3064 * cli/cli-utils.h (check_for_argument): Ditto.
3065
1b3371b1
L
30662012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3067
3068 * NEWS: Mention x32 ABI support.
3069
23e2d720
L
30702012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3071
3072 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3073 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3074
3075 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3076 and pc_regnum_from_eax to -1. Update SP regnum from
3077 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3078 needed.
3079
3080 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3081 pc_regnum_from_eax.
3082
836bf454
JK
30832012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3084
3085 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3086 * dwarf2expr.h: Include gdbtypes.h.
3087 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3088 these forward declarations.
3089 (cu_offset, sect_offset): Move these ...
3090 * gdbtypes.h: Remove include dwarf2expr.h.
3091 (cu_offset, sect_offset): ... here.
3092
1e55e04f
L
30932012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3094
3095 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3096 (amd64_linux_sigtramp_code): This.
3097 (amd64_x32_linux_sigtramp_code): New.
3098 (LINUX_SIGTRAMP_LEN): Updated.
3099 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3100
7d0e21ad
JK
31012012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3102
3103 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3104
8775fd2d
JK
31052012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3106
3107 * config.in: Regenerate.
3108 * configure: Regenerate.
3109 * configure.ac: Remove check for gnu/libc-version.h.
3110 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3111 gnu/libc-version.h.
3112 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3113 variables libc_version, libc_major and libc_minor. Replace sscanf by
3114 inferior_has_bug. Extend the comment.
3115
fcb44371
JK
31162012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3117
3118 * linux-thread-db.c (inferior_has_bug): New function.
3119 (thread_db_find_new_threads_silently): Return boolean as checked by
3120 inferior_has_bug, describe it in the comments.
3121 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3122 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 3123 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
3124 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3125 if UNTIL_NO_NEW,
3126
09406207
DE
31272012-07-02 Doug Evans <dje@google.com>
3128
0907af0c
DE
3129 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3130 related to queue management.
3131
09406207
DE
3132 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3133 instead of "debug dwarf2-die" in debugging printfs.
3134 (create_debug_info_hash_table_reader): Ditto.
3135 (create_debug_info_hash_table): Ditto.
3136 (init_dwo_file): Ditto.
3137 (init_cutu_and_read_dies): Add debugging printf.
3138 (init_cutu_and_read_dies_no_follow): Ditto.
3139 (process_psymtab_comp_unit_reader): Ditto.
3140
d3ce09f5
SS
31412012-07-02 Stan Shebs <stan@codesourcery.com>
3142
3143 Add target-side support for dynamic printf.
3144 * NEWS: Mention the additional style.
3145 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3146 (struct bp_location): New field cmd_bytecode.
3147 * breakpoint.c: Include format.h.
3148 (disconnected_dprintf): New global.
3149 (parse_cmd_to_aexpr): New function.
3150 (build_target_command_list): New function.
3151 (insert_bp_location): Call it.
3152 (remove_breakpoints_pid): Skip dprintf breakpoints.
3153 (print_one_breakpoint_location): Ditto.
3154 (dprintf_style_agent): New global.
3155 (dprintf_style_enums): Add dprintf_style_agent.
3156 (update_dprintf_command_list): Add agent case.
3157 (agent_printf_command): New function.
3158 (_initialize_breakpoint): Add new commands.
3159 * common/ax.def (printf): New bytecode.
3160 * ax.h (ax_string): Declare.
3161 * ax-gdb.h (gen_printf): Declare.
3162 * ax-gdb.c: Include cli-utils.h, format.h.
3163 (gen_printf): New function.
3164 (maint_agent_print_command): New function.
3165 (_initialize_ax_gdb): Add maint agent-printf command.
3166 * ax-general.c (ax_string): New function.
3167 (ax_print): Add printf disassembly.
3168 * Makefile.in (SFILES): Add format.c
3169 (COMMON_OBS): Add format.o.
3170 * common/format.h: New file.
3171 * common/format.c: New file.
3172 * printcmd.c: Include format.h.
3173 (ui_printf): Call parse_format_string.
3174 * remote.c (remote_state): New field breakpoint_commands.
3175 (PACKET_BreakpointCommands): New enum.
3176 (remote_breakpoint_commands_feature): New function.
3177 (remote_protocol_features): Add new BreakpointCommands entry.
3178 (remote_can_run_breakpoint_commands): New function.
3179 (remote_add_target_side_commands): New function.
3180 (remote_insert_breakpoint): Call it.
3181 (remote_insert_hw_breakpoint): Ditto.
3182 (_initialize_remote): Add new packet configuration for
3183 target-side breakpoint commands.
3184 * target.h (struct target_ops): New field
3185 to_can_run_breakpoint_commands.
3186 (target_can_run_breakpoint_commands): New macro.
3187 * target.c (update_current_target): Handle
3188 to_can_run_breakpoint_commands.
3189
2d7b58e8
JK
31902012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3191
3192 Execute -ix and -iex only after system and user gdbinit files.
3193 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3194 processing down after gdbinit files.
3195
8690e634
JK
31962012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3197
3198 Add fnmatch-gnu module.
3199 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3200 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3201 * gnulib/aclocal.m4: Regenerate.
3202 * gnulib/config.in: Regenerate.
3203 * gnulib/configure: Regenerate.
3204 * gnulib/import/dummy.c: Remove.
3205 * gnulib/import/Makefile.am: Regenerate.
3206 * gnulib/import/Makefile.in: Likewise.
3207 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3208 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3209 * gnulib/import/alloca.c: New file.
3210 * gnulib/import/alloca.in.h: Likewise.
3211 * gnulib/import/config.charset: Likewise.
3212 * gnulib/import/fnmatch.c: Likewise.
3213 * gnulib/import/fnmatch.in.h: Likewise.
3214 * gnulib/import/fnmatch_loop.c: Likewise.
3215 * gnulib/import/localcharset.c: Likewise.
3216 * gnulib/import/localcharset.h: Likewise.
3217 * gnulib/import/m4/alloca.m4: Likewise.
3218 * gnulib/import/m4/codeset.m4: Likewise.
3219 * gnulib/import/m4/configmake.m4: Likewise.
3220 * gnulib/import/m4/fcntl-o.m4: Likewise.
3221 * gnulib/import/m4/fnmatch.m4: Likewise.
3222 * gnulib/import/m4/glibc21.m4: Likewise.
3223 * gnulib/import/m4/localcharset.m4: Likewise.
3224 * gnulib/import/m4/locale-fr.m4: Likewise.
3225 * gnulib/import/m4/locale-ja.m4: Likewise.
3226 * gnulib/import/m4/locale-zh.m4: Likewise.
3227 * gnulib/import/m4/mbrtowc.m4: Likewise.
3228 * gnulib/import/m4/mbsinit.m4: Likewise.
3229 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3230 * gnulib/import/m4/mbstate_t.m4: Likewise.
3231 * gnulib/import/m4/stdbool.m4: Likewise.
3232 * gnulib/import/m4/wchar_h.m4: Likewise.
3233 * gnulib/import/m4/wctype_h.m4: Likewise.
3234 * gnulib/import/m4/wint_t.m4: Likewise.
3235 * gnulib/import/mbrtowc.c: Likewise.
3236 * gnulib/import/mbsinit.c: Likewise.
3237 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3238 * gnulib/import/mbsrtowcs-state.c: Likewise.
3239 * gnulib/import/mbsrtowcs.c: Likewise.
3240 * gnulib/import/ref-add.sin: Likewise.
3241 * gnulib/import/ref-del.sin: Likewise.
3242 * gnulib/import/stdbool.in.h: Likewise.
3243 * gnulib/import/streq.h: Likewise.
3244 * gnulib/import/strnlen1.c: Likewise.
3245 * gnulib/import/strnlen1.h: Likewise.
3246 * gnulib/import/verify.h: Likewise.
3247 * gnulib/import/wchar.in.h: Likewise.
3248 * gnulib/import/wctype.in.h: Likewise.
3249
202cbf1c
JK
32502012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3251
3252 Support shell wildcards for 'set auto-load safe-path'.
3253 * auto-load.c: Include fnmatch.h.
3254 (filename_is_in_dir): Rename to ...
3255 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3256 it. Update function comment. Rename dir_len to pattern_len. New
3257 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3258 messages. Use gdb_filename_fnmatch.
3259 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3260 pattern.
3261 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3262 * defs.h (gdb_filename_fnmatch): New declaration.
3263 * utils.c: Include fnmatch.h.
3264 (gdb_filename_fnmatch): New function.
3265
fb7b5af4
SDJ
32662012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3267
3268 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3269 `-probe' and `-probe-stap' options.
3270
72d0e2c5
YQ
32712012-07-01 Yao Qi <yao@codesourcery.com>
3272
3273 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3274 always_inserted_off, and always_inserted_enums.
3275 Change always_inserted_mode's type to 'enum auto_boolean'.
3276 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3277 callers.
3278 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3279 of add_setshow_enum_cmd.
3280 * infrun.c: Remove can_use_displaced_stepping_auto,
3281 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3282 can_use_displaced_stepping_enum.
3283 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3284 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3285 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3286 add_setshow_enum_cmd.
3287
42e7ad6c
DE
32882012-06-30 Doug Evans <dje@google.com>
3289
3290 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3291 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3292 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3293
39cf75f7
DE
32942012-06-29 Doug Evans <dje@google.com>
3295
3296 * linespec.c: #include "stack.h".
3297 (decode_line_with_current_source): Moved here from symtab.c and
3298 renamed from decode_line_spec. All callers updated.
3299 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3300 renamed from decode_line_spec_1. All callers updated.
3301 * linespec.h (decode_line_with_current_source): Move declaration here
3302 from symtab.h and renamed from decode_line_spec.
3303 (decode_line_with_last_displayed): Move declaration here from symtab.h
3304 and renamed from decode_line_spec_1.
3305 * macrocmd.c: #include "linespec.h".
3306 * symtab.c: Remove #include "linespec.h".
3307
433df2d4
DE
33082012-06-28 Doug Evans <dje@google.com>
3309
1ce1cefd
DE
3310 * dwarf2read.c (get_cu_length): New function.
3311 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3312 (create_debug_types_hash_table): Ditto.
3313 (init_cutu_and_read_dies): Ditto.
3314 (init_cutu_and_read_dies_no_follow): Ditto.
3315
3b80fe9b
DE
3316 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3317
433df2d4
DE
3318 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3319 (struct abbrev_table): Define.
3320 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3321 abbrev_table.
3322 (init_cutu_and_read_dies): Update.
3323 (abbrev_table_alloc_abbrev): New function. Replaces
3324 dwarf_alloc_abbrev. All callers updated.
3325 (abbrev_table_add_abbrev): New function.
3326 (abbrev_table_lookup_abbrev): New function. Replaces
3327 dwarf2_lookup_abbrev. All callers updated.
3328 (abbrev_table_read_table): New function. Contents moved here from
3329 dwarf2_read_abbrevs.
3330 (dwarf2_read_abbrevs): Call it.
3331 (abbrev_table_free): New function.
3332 (dwarf2_free_abbrev_table): Call it.
3333
71caed83
SS
33342012-06-28 Stan Shebs <stan@codesourcery.com>
3335
3336 * osdata.c (info_osdata_command): Filter out "Title" columns
3337 from non-MI uses.
3338 * common/linux-osdata.c (struct osdata_type): Add title field.
3339 (osdata_table): Add titles to each entry.
3340 (linux_command_xfer_osdata): Add a column for title data.
3341
37ce89eb
SS
33422012-06-28 Stan Shebs <stan@codesourcery.com>
3343
3344 Make logging work for MI.
3345 * NEWS: Mention it.
3346 * interps.h (interp_set_logging_ftype): New typedef.
3347 (struct interp_procs): New field set_logging_proc.
3348 (current_interp_set_logging): Declare.
3349 * interps.c (current_interp_set_logging): New function.
3350 * cli/cli-logging.c: Include interps.h.
3351 (set_logging_redirect): Call current_interp_set_logging.
3352 (pop_output_files): Ditto.
3353 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3354 * mi/mi-console.h (mi_console_set_raw): Declare.
3355 * mi/mi-console.c (mi_console_set_raw): New function.
3356 * mi/mi-interp.c (saved_raw_stdout): New global.
3357 (mi_set_logging): New function.
3358 (_initialize_mi_interp): Add it to interp procs.
3359
659c9f3a
DE
33602012-06-28 Doug Evans <dje@google.com>
3361
a743abeb
DE
3362 * symtab.c (lookup_symbol_aux_objfile): Use
3363 ALL_OBJFILE_PRIMARY_SYMTABS.
3364
659c9f3a
DE
3365 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3366
da2d6d3d
JK
33672012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3368
3369 * common/buffer.c: Include inttypes.h and stdint.h.
3370 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3371
e5ef252a
PA
33722012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3373 Pedro Alves <palves@redhat.com>
3374
3375 * gdbthread.h (ALL_THREADS): New macro.
3376 (thread_list): Declare.
3377 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3378 going, but instead fall through to the stepping handling.
3379 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3380 the passed in signal. Adjust debug output.
3381 (resume_callback): Rename to ...
3382 (linux_nat_resume_callback): ... this. Pass the thread's last
3383 stop signal, if in "pass" state.
3384 (linux_nat_resume): Adjust to rename.
3385 (stop_wait_callback): New assertion. Don't respawn signals;
3386 instead let the LWP remain with SIGNALLED set.
3387 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3388 * remote.c (append_pending_thread_resumptions): New.
3389 (remote_vcont_resume): Call it.
3390 * target.h (target_resume): Extend comment.
3391
1d7975eb
IS
33922012-06-28 Iain Sandoe <iain@codesourcery.com>
3393
3394 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3395
2e3cf129
DE
33962012-06-27 Doug Evans <dje@google.com>
3397
3398 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3399 Delete have_addr_base, unused. All uses updated.
3400 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3401 (dwarf2_get_pc_bounds): Add ranges_base.
3402 (dwarf2_record_block_ranges): Ditto.
3403
1bb9788d
TT
34042012-06-27 Tom Tromey <tromey@redhat.com>
3405
3406 PR macros/7961:
3407 * varobj.c (varobj_create): Update.
3408 (varobj_set_value): Update.
3409 * tracepoint.c (validate_actionline): Update.
3410 (encode_actions_1): Update.
3411 * parse.c (parse_exp_1): Add 'pc' argument.
3412 (parse_exp_in_context): Add 'pc' argument. Change how
3413 expression_context_pc is set.
3414 (parse_expression): Update.
3415 (parse_field_expression): Update.
3416 * expression.h (parse_exp_1): Update.
3417 * eval.c (parse_to_comma_and_eval): Update.
3418 * breakpoint.c (set_breakpoint_condition): Update.
3419 (update_watchpoint): Update.
3420 (init_breakpoint_sal): Update
3421 (find_condition_and_thread): Update.
3422 (watch_command_1): Update.
3423 (update_breakpoint_locations): Update.
3424 * ada-lang.c (ada_read_renaming_var_value): Update.
3425 (create_excep_cond_exprs): Update.
3426
0bc3a05c
DE
34272012-06-27 Doug Evans <dje@google.com>
3428
3429 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3430 type units.
3431
4bdcc0c1
DE
34322012-06-26 Doug Evans <dje@google.com>
3433
3434 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3435 prototype.
3436 (error_check_comp_unit_head): New arg abbrev_section. All callers
3437 updated.
3438 (read_and_check_comp_unit_head): Ditto.
3439 (read_and_check_type_unit_head): Ditto.
3440
ee0bf529
SCR
34412012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3442
3443 New attribute 'last' for gdb.Symtab_and_line.
3444 * NEWS (Python Scripting): Add entry about the new attribute.
3445 * python/py-symtab.c (salpy_get_last): New function which
3446 implements the get method for the 'last' attribute of
3447 gdb.Symtab_and_line.
3448 (sal_object_getset): Add entry for the 'last' attribute.
3449
1c658ad5
DE
34502012-06-26 Doug Evans <dje@google.com>
3451
09262596
DE
3452 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3453 (dwo_sections): Add macinfo, macro.
3454 (dwarf2_locate_dwo_sections): Watch for macro sections.
3455 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3456 All callers updated. Handle DWO files.
3457
45cfd468
DE
3458 * NEWS: Mention new options "set debug dwarf2-read" and
3459 "set debug symtab-create".
3460 * dwarf2read.c (dwarf2_read_debug): New static global.
3461 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3462 (process_queue): Ditto.
3463 (process_full_comp_unit): Ditto.
3464 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3465 * elfread.c (elf_symfile_read): Add debugging printf.
3466 * minsyms.c (install_minimal_symbols): Ditto.
3467 * psymtab.c (allocate_psymtab): Ditto.
3468 * symfile.c (allocate_symtab): Ditto.
3469 * symtab.c (symtab_create_debug): New global.
3470 (_initialize_symtab): Add new option "set debug symtab-create".
3471 * symtab.h (symtab_create_debug): Declare.
3472
1c658ad5
DE
3473 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3474 (lookup_dwo_type_unit): Ditto.
3475
6fea9e18
L
34762012-06-26 Roland McGrath <roland@hack.frob.com>
3477 H.J. Lu <hongjiu.lu@intel.com>
3478
3479 * amd64-linux-nat.c: Include <sys/user.h>.
3480 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3481 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3482 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3483
3484 * configure.ac: Check if the fs_base and gs_base members of
3485 `struct user_regs_struct' exist.
3486 * config.in: Regenerated.
3487 * configure: Likewise.
3488
adb4fe3b
ME
34892012-06-25 Michael Eager <eager@eagercon.com>
3490
3491 PR python/14291
f782ad9b 3492 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 3493
fc51cce1
MGD
34942012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3495
3496 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3497 register as a stack alignment in ARM mode.
3498
40a73391
JK
34992012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3500
3501 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3502 * gnulib/config.in: Regenerate.
3503 * gnulib/configure: Likewise.
3504 * gnulib/import/m4/extensions.m4: Update it.
3505 * gnulib/import/m4/gnulib-common.m4: Likewise.
3506 * gnulib/import/m4/memmem.m4: Likewise.
3507 * gnulib/import/m4/mmap-anon.m4: Likewise.
3508 * gnulib/import/m4/multiarch.m4: Likewise.
3509 * gnulib/import/stdint.in.h: Likewise.
3510
972daa01
YQ
35112012-06-24 Yao Qi <yao@codesourcery.com>
3512
3513 * corefile.c (write_memory_with_notification): New.
3514 * gdbcore.h: Declare write_memory_with_notification.
3515 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3516 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3517 * valops.c (value_assign): Likewise.
3518 * python/py-inferior.c (infpy_write_memory): Call
3519 'write_memory_with_notification'.
3520
8d6e0714
JK
35212012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3522
3523 * cc-with-index.sh: Use also -ex "set auto-load no".
3524
156942c7
DE
35252012-06-23 Doug Evans <dje@google.com>
3526
3527 PR 14125
3528 * NEWS: Document additions to .gdb_index.
3529 * dwarf2read.c: #include "gdb/gdb-index.h".
3530 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3531 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3532 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3533 (dwarf2_read_index): Recognize version 7.
3534 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3535 block_kind, domain): All callers updated.
3536 (dw2_find_symbol_file): Handle new index CU values.
3537 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3538 (add_index_entry): New args is_static, kind. All callers updated.
3539 (offset_type_compare, uniquify_cu_indices): New functions
3540 (symbol_kind): New function.
3541 (write_psymtabs_to_index): Remove duplicate CU values.
3542 (write_psymtabs_to_index): Write .gdb_index version 7.
3543
352b3eda
JB
35442012-06-22 Joel Brobecker <brobecker@adacore.com>
3545
3546 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3547 * configure: Regenerate.
3548
2678e2af
YQ
35492012-06-20 Yao Qi <yao@codesourcery.com>
3550
3551 * python/py-inferior.c: Update comments of infpy_read_memory
3552 and infpy_write_memory.
3553
95c391b6
TT
35542012-06-19 Tom Tromey <tromey@redhat.com>
3555
3556 PR exp/9514:
3557 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3558 (push_type_address_space): Remove.
3559 * parse.c (insert_into_type_stack): New function.
3560 (insert_type): Likewise.
3561 (insert_type_address_space): Rename from push_type_address_space.
3562 Insert tp_space_identifier.
3563 * c-exp.y (ptr_operator): New production.
3564 (abs_decl): Use ptr_operator.
3565 (space_identifier): Call insert_type_address_space.
3566 (ptype): Don't use const_or_volatile_or_space_identifier.
3567 (const_or_volatile_noopt): Call insert_type.
3568 (conversion_type_id, conversion_declarator): New productions.
3569 (operator): Use conversion_type_id.
3570
6ac9ef80
DE
35712012-06-18 Doug Evans <dje@google.com>
3572
422d65e7
DE
3573 * symtab.h (minimal_symbol): New member created_by_gdb.
3574 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3575 created by gdb.
3576 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3577 (search_symbols): Call it instead of lookup_symbol.
3578 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3579
49f6c839
DE
3580 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3581 Adjust address for DW_OP_GNU_addr_index.
3582 * dwarf2expr.h (dwarf_expr_context): Update comment.
3583 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3584 all callers updated. Handle TLS vars described with
3585 DW_OP_GNU_const_index.
3586 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3587 and DW_OP_GNU_const_index.
3588 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3589
6ac9ef80
DE
3590 * block.c (find_block_in_blockvector): Make explicit the fact that we
3591 ignore GLOBAL_BLOCK.
3592
4cd18215
TT
35932012-06-18 Tom Tromey <tromey@redhat.com>
3594
3595 * c-exp.y (operator): Remove trailing space after "delete" and
3596 "delete[]".
3597
a9b8d892
JK
35982012-06-18 Mark Kettenis <kettenis@gnu.org>
3599 Jan Kratochvil <jan.kratochvil@redhat.com>
3600
3601 Switch i386 and derived targets to ON_STACK.
3602 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3603 (amd64_dicos_init_abi): Remove its installment.
3604 * dicos-tdep.c (dicos_init_abi): Remove the
3605 set_gdbarch_call_dummy_location call. Update the comment here.
3606 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3607 (i386_dicos_init_abi): Remove its installment.
3608 * i386-tdep.c (i386_push_dummy_code): New function.
3609 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3610 i386_push_dummy_code.
3611
e2e4d78b
JK
36122012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3613
3614 Remove stale dummy frames.
3615 * breakpoint.c: Include dummy-frame.h.
3616 (longjmp_breakpoint_ops): New variable.
3617 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3618 bp_longjmp_call_dummy.
3619 (bpstat_what, bptype_string, print_one_breakpoint_location)
3620 (init_bp_location): Support bp_longjmp_call_dummy.
3621 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3622 (set_longjmp_breakpoint_for_call_dummy)
3623 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3624 functions.
3625 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3626 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3627 FIXME comment and extend the other comment for bp_call_dummy.
3628 (set_longjmp_breakpoint_for_call_dummy)
3629 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3630 * dummy-frame.c: Include gdbthread.h.
3631 (pop_dummy_frame_bpt): New function.
3632 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3633 (dummy_frame_discard): New function.
3634 (cleanup_dummy_frames): Update the comment about longjmps.
3635 * dummy-frame.h (dummy_frame_discard): New declaration.
3636 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3637 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3638 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3639 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3640 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3641 keep_going if IS_LONGJMP and there is no other reason to stop.
3642
09d5912c
TT
36432012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3644
3645 * remote-sim.c (sim_command_completer): Initialize
3646 variable 'result'.
3647
1788b2d3
JK
36482012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3649
3650 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3651 * dwarf2loc.c (call_site_parameter_matches): Support
3652 CALL_SITE_PARAMETER_PARAM_OFFSET.
3653 (needs_dwarf_reg_entry_value): Push stub value.
3654 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3655 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3656 * gdbtypes.h (enum call_site_parameter_kind): New item
3657 CALL_SITE_PARAMETER_PARAM_OFFSET.
3658 (struct call_site.parameter.u): New field param_offset.
3659
24c5c679
JK
36602012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3661
3662 Code cleanup: Generalize call_site.parameter key.
3663 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3664 variable dwarf_reg. New variable kind_u. Update parameters to
3665 push_dwarf_reg_entry_value.
3666 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3667 * dwarf2expr.h (enum call_site_parameter_kind)
3668 (union call_site_parameter_u): Forward declarations.
3669 (struct dwarf_expr_context_funcs): Update parameters and their
3670 description for push_dwarf_reg_entry_value.
3671 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3672 * dwarf2loc.c (call_site_parameter_matches): New function.
3673 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3674 description. Use call_site_parameter_matches.
3675 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3676 Update parameters and their description.
3677 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3678 New variable kind_u. Adjust the caller for updated parameters.
3679 (needs_dwarf_reg_entry_value): Update parameters.
3680 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3681 instead of attr. Update for the changed fields of struct
3682 call_site_parameter.
3683 * gdbtypes.h: Include dwarf2expr.h.
3684 (enum call_site_parameter_kind): New.
3685 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3686 fb_offset into new union u.
3687
ac142d96
L
36882012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3689
3690 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3691 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3692 for x32.
3693
ba224c70
L
36942012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3695
3696 * amd64-linux-nat.c (compat_x32_clock_t): New.
3697 (compat_x32_siginfo_t): Likewise.
3698 (compat_x32_siginfo_from_siginfo): Likewise.
3699 (siginfo_from_compat_x32_siginfo): Likewise.
3700 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3701 and siginfo_from_compat_x32_siginfo for x32.
3702
7ecbc825
HZ
37032012-06-15 Hui Zhu <hui_zhu@mentor.com>
3704
3705 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3706
233dfcf0
L
37072012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3708
3709 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3710 instead of gdbarch_ptr_bit.
3711 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3712 (amd64_supply_native_gregset): Likewise.
3713 (amd64_collect_native_gregset): Likewise.
3714 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3715 (amd64_supply_xsave): Likewise.
3716 (amd64_collect_fxsave): Likewise.
3717 (amd64_collect_xsave): Likewise.
3718
6da38f42
L
37192012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3720
3721 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3722 (amd64_linux_read_description): Check DS segment register for
3723 x32 process.
3724
663b969e
TT
37252012-06-15 Tom Tromey <tromey@redhat.com>
3726
3727 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3728 init_cutu_and_read_dies.
3729
d6f05027
IS
37302012-06-15 Iain Sandoe <iain@codesourcery.com>
3731
3732 * MAINTAINERS (Write After Approval): Add myself to the list.
3733
6598ed07
TT
37342012-06-15 Tom Tromey <tromey@redhat.com>
3735
3736 * valops.c (value_find_oload_method_list): Now static.
3737 * value.h (value_find_oload_method_list): Don't declare.
3738
2b214ea6
TT
37392012-06-15 Tom Tromey <tromey@redhat.com>
3740
3741 * valops.c (find_overload_match): Use value_ind.
3742
a210c238
MR
37432012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3744
3745 * infrun.c (handle_inferior_event): Correct indentation.
3746
3771a44c
DE
37472012-06-14 Doug Evans <dje@google.com>
3748
3749 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3750 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3751 All uses updated.
3752 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3753 updated. Handle DEBUG_LOC_START_LENGTH.
3754 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3755 (loclist_describe_location): Ditto.
3756
1c5a993e
MR
37572012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3758
3759 PR backtrace/13866
3760 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3761 after hiding inline functions.
3762
0b155465
JB
37632012-06-13 Joel Brobecker <brobecker@adacore.com>
3764
3765 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3766 _initialize_inf_ttrace.
3767
45717bac
JB
37682012-06-13 Joel Brobecker <brobecker@adacore.com>
3769
3770 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3771 _initialize_hppa_hpux_nat.
3772
34370865
JB
37732012-06-13 Joel Brobecker <brobecker@adacore.com>
3774
3775 * remote-sim.c (sim_command_completer): Change type of return
3776 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3777
284c5a60
MK
37782012-06-13 Mark Kettenis <kettenis@gnu.org>
3779 Jan Kratochvil <jan.kratochvil@redhat.com>
3780
3781 PR tdep/14222
3782 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3783 stack on a 16-byte boundary.
3784
2535757a
TT
37852012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3786
3787 * jit.c (finalize_symtab): Set function's return type to 'void' by
3788 default.
3789
fff4548b
MK
37902012-06-13 Mark Kettenis <kettenis@gnu.org>
3791 H.J. Lu <hongjiu.lu@intel.com>
3792
5a83521a
MK
3793 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3794 Move bits common to both the classic LP64 and the new x32 ILP32
3795 ABI here.
3796 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3797 (amd64_x32_linux_init_abi): New function.
3798 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3799 subtype.
3800
fff4548b
MK
3801 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3802 * i386-tdep.c (i386_pseudo_register_name): Make public.
3803 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3804 * amd64-tdep.c (amd64_dword_names): Add "eip".
3805 (amd64_x32_pseudo_register_type): New function
3806 (amd64_x32_init_abi): New function.
3807
dd80ea3c
JK
38082012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3809
3810 PR build/14003
3811 * inferior.h (struct inferior_suspend_state): Comment out.
3812 (struct inferior): Comment out the field suspend.
3813 * infrun.c (struct infcall_suspend_state): Comment out the field
3814 inferior_suspend.
3815 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3816 out its assignment.
3817
50af5481
JK
38182012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3819
3820 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3821 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3822 function comment. Return ERROR for unresolved cases. Implement
3823 returning proper NAME.
3824 (yylex): Accept also NAME from classify_inner_name.
3825 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3826 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3827 LOC_TYPEDEF type.
3828 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3829
d55637df
TT
38302012-06-13 Tom Tromey <tromey@redhat.com>
3831
3832 * breakpoint.c (condition_completer): New function.
3833 (_initialize_breakpoint): Use it.
3834 * value.c (complete_internalvar): New function.
3835 * value.h (complete_internalvar): Declare.
3836
49c4e619
TT
38372012-06-13 Tom Tromey <tromey@redhat.com>
3838
3839 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3840 * breakpoint.c (catch_syscall_completer): Return a VEC.
3841 * cli/cli-cmds.c (complete_command): Update.
3842 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3843 (complete_on_enum): Likewise.
3844 * command.h: Include gdb_vecs.h.
3845 (completer_ftype): Change return type.
3846 (complete_on_cmdlist, complete_on_enum): Likewise.
3847 * completer.c (noop_completer, filename_completer)
3848 (location_completer): Return a VEC.
3849 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3850 to a VEC.
3851 (expression_completer, complete_line_internal, complete_line)
3852 (command_completer): Return a VEC.
3853 (gdb_completion_word_break_characters, line_completion_function):
3854 Update.
3855 * completer.h: Include gdb_vecs.h.
3856 (complete_line, noop_completer, filename_completer)
3857 (expression_completer, location_completer, command_completer):
3858 Update.
3859 * f-lang.c (f_word_break_characters): Return a VEC.
3860 * interps.c (interpreter_completer): Return a VEC.
3861 * language.h (struct language_defn)
3862 <la_make_symbol_completion_list>: Return a VEC.
3863 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3864 * symtab.c (free_completion_list): Take a VEC.
3865 (return_val_size, return_val_index): Remove.
3866 (return_val): Now a VEC.
3867 (completion_list_add_name): Update.
3868 (default_make_symbol_completion_list_break_on)
3869 (default_make_symbol_completion_list, make_symbol_completion_list)
3870 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3871 Return a VEC.
3872 (add_filename_to_list): Update.
3873 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3874 <list>: Now a VEC.
3875 (maybe_add_partial_symtab_filename): Update.
3876 (make_source_files_completion_list): Return a VEC.
3877 * symtab.h (default_make_symbol_completion_list_break_on)
3878 (default_make_symbol_completion_list, make_symbol_completion_list)
3879 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3880 (make_source_files_completion_list): Update.
3881
625e8578
TT
38822012-06-13 Tom Tromey <tromey@redhat.com>
3883
3884 * breakpoint.c (add_catch_command): Use completer_ftype.
3885 * breakpoint.h: Include command.h.
3886 (add_catch_command): Use completer_ftype.
3887 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3888 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3889 Use completer_ftype.
3890 * command.h (completer_ftype): New typedef.
3891 (set_cmd_completer): Use it.
3892 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3893 completer_ftype.
3894
5eb3b062
PA
38952012-06-13 Pedro Alves <palves@redhat.com>
3896
3897 Partial revert of previous change.
3898
3899 * serial.c (scb_base): New global.
3900 (serial_for_fd): New.
3901 (serial_open, serial_fdopen_ops): Link new serial in open serials
3902 chain.
3903 (do_serial_close): Unlink serial from the open serials chain.
3904
8b3ee56d
PA
39052012-06-12 Pedro Alves <palves@redhat.com>
3906
3907 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3908 threads here.
3909 (prepare_for_detach): No longer context switch here in non-stop
3910 mode.
3911 (fetch_inferior_event): Ditto.
3912 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3913 to the event thread before removing breakpoints. Switch to the
3914 event thread before inserting breakpoints and resuming.
3915 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3916 event thread before resuming.
3917 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3918 Switch to the event thread before removing breakpoints.
3919
5d60742e
EZ
39202012-06-12 Eli Zaretskii <eliz@gnu.org>
3921
3922 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3923 special characters correctly for the Windows shells. See
3924 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3925 report.
3926 [!__MINGW32__]: Remove extra double quote character from special
3927 characters.
3928
a6feecf7
SS
39292012-06-11 Stan Shebs <stan@codesourcery.com>
3930
3931 * ui-out.h: Remove #if 0 declarations.
3932 * ui-out.c: Remove #if 0 functions.
3933
ddefb60f
PA
39342012-06-11 Pedro Alves <palves@redhat.com>
3935
3936 * ser-base.c (run_async_handler_and_reschedule): New.
3937 (fd_event, push_event): Use it.
3938 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3939 reference count to 1.
3940 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3941 instead of xfree.
3942 (serial_is_open, serial_ref, serial_unref): New.
3943 * serial.h (serial_open): Adjust comment.
3944 (serial_is_open): Declare.
3945 (serial_close): Adjust comment.
3946 (serial_ref, serial_unref) Declare.
3947 (struct serial): New field 'refcnt'.
3948
d5ad6aa5
PA
39492012-06-11 Pedro Alves <palves@redhat.com>
3950
3951 Remove #if 0'd "connect" command, and unnecessary associated
3952 refcounting and serial reuse bits.
3953
3954 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3955 * serial.c (last_serial_opened): Delete.
3956 (scb_base): Delete.
3957 (serial_open): Adjust.
3958 (serial_for_fd): Delete.
3959 (serial_fdopen_ops, do_serial_close): Adjust.
3960 (serial_fdopen_ops): Adjust.
3961
318aa544
PA
39622012-06-11 Pedro Alves <palves@redhat.com>
3963
3964 * serial.c (do_serial_close): Remove early return when SCB is
3965 null.
3966
07261596
TT
39672012-06-11 Tom Tromey <tromey@redhat.com>
3968
3969 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3970
cc80f267
JK
39712012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3972
3973 Fix regression by the "ambiguous linespec" series.
3974 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3975 get_last_displayed_symtab and get_last_displayed_line and depending
3976 on CURSAL.
3977
356d9f9d
TT
39782012-06-11 Tom Tromey <tromey@redhat.com>
3979
3980 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3981 (dw2_find_symbol_file): Use it.
3982
232b8704
ME
39832012-06-11 Michael Eager <eager@eagercon.com>
3984
3985 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3986 * mips-linux-tdep.h (mips_signals): New
3987
e81a37f7
TT
39882012-06-11 Tom Tromey <tromey@redhat.com>
3989
3990 * infrun.c (handle_inferior_event)
3991 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3992 breakpoint.
3993 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3994 exception logic in all cases. Update comments.
3995 (insert_longjmp_resume_breakpoint): Set the exception resume
3996 breakpoint.
3997
2e81047f
MR
39982012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3999
4000 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4001
4e32eda7
SCR
40022012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4003
4004 * valarith.c (binop_types_user_defined_p): Fix a typo.
4005
18648a37 40062012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 4007 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
4008
4009 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4010 * arch-utils.h: Declare.
4011 * gdbarch.sh: Add return_in_first_hidden_param_p.
4012 * gdbarch.c, gdbarch.h: Regenerated.
4013 * infcall.c (call_function_by_hand): Call
4014 gdbarch_return_in_first_hidden_param_p instead of
4015 language_pass_by_reference.
4016
4017 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4018 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4019 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4020 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4021 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4022 `cplus_return_struct_by_reference'.
4023 (tic6x_return_value): Handle language cplusplus.
4024 (tic6x_return_in_first_hidden_param_p): New.
4025 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4026
034e5797
DE
40272012-06-07 Doug Evans <dje@google.com>
4028
4029 * dwarf2read.c (dwarf2_cu): Add comment.
4030
6a00aa1e
MR
40312012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4032
4033 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4034 variable.
4035 (mips_eabi_push_dummy_call): Likewise.
4036 (mips_n32n64_push_dummy_call): Likewise.
4037 (mips_o32_push_dummy_call): Likewise.
4038 (mips_o64_push_dummy_call): Likewise.
4039
eaa05d59
MR
40402012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4041
4042 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4043
de13fcf2
MR
40442012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4045
4046 * mips-tdep.c (mips_pseudo_register_type): Use
4047 mips_float_register_p.
4048
c3a01a22
PA
40492012-06-06 Pedro Alves <palves@redhat.com>
4050
4051 * infrun.c (handle_inferior_event): Remove calls to
4052 reinit_frame_cache that follow a context_switch call.
4053
d25f45d9
PA
40542012-06-06 Pedro Alves <palves@redhat.com>
4055
4056 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4057 context_switch and remove stale comment.
4058
359f5fe6
PA
40592012-06-06 Pedro Alves <palves@redhat.com>
4060
4061 * infrun.c (struct execution_control_state): Remove
4062 `new_thread_event' field.
4063 (handle_inferior_event): Simplify new threads handling; don't
4064 resume the inferior if we find a new thread.
4065
2d4c29c5
TS
40662012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4067
4068 * NEWS: Document the deprecation of SH's 'regs' command.
4069 * inferior.h (all_registers_info): Add function declaration.
4070 * sh-tdep.c (sh_show_regs): Remove variable.
4071 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4072 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4073 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4074 (sh_show_regs_command): Remove functions.
4075 (sh_gdbarch_init): Don't set sh_show_regs.
4076 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4077 'info all-registers'.
4078 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4079 (sh64_show_regs): Remove functions.
4080 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4081
f5f1cdb6
JK
40822012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4083
4084 * configure.ac: Move development=true below AC_INIT.
4085 * configure: Regenerate.
4086
bf6309af
SS
40872012-06-05 Stan Shebs <stan@codesourcery.com>
4088
4089 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4090 gdb_stdout.
4091
45aa4659
JK
40922012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4093
4094 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4095 argument as ssize_t.
4096 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4097 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4098 * target.c (target_read_stack, target_write_memory)
4099 (target_write_raw_memory): Likewise.
4100 * target.h (target_read_stack, target_write_memory)
4101 (target_write_raw_memory): Likewise.
4102
1b162304
JK
41032012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4104
4105 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4106 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4107 * target.c (target_read_memory): Change LEN to ssize_t.
4108 * target.h (target_read_memory): Change LEN to ssize_t.
4109
8556afb4
PA
41102012-06-05 Pedro Alves <palves@redhat.com>
4111
4112 PR backtrace/13866
4113
4114 * breakpoint.c (until_break_command): Only fetch the selected
4115 frame after decode_line_1.
4116
fb139f32
PA
41172012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4118
4119 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4120 event breakpoint at _start, __start or main if a program
4121 interpreter is not found.
4122
a8e1bb34
JB
41232012-06-05 Joel Brobecker <brobecker@adacore.com>
4124
4125 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4126 Add declaration.
4127 * windows-tdep.c: #include "objfiles.h".
4128 (windows_iterate_over_objfiles_in_search_order): New function.
4129 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4130 iterate_over_objfiles_in_search_order gdbarch method to
4131 windows_iterate_over_objfiles_in_search_order.
4132 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4133
19630284
JB
41342012-06-05 Joel Brobecker <brobecker@adacore.com>
4135
4136 * gdbarch.sh: Add generation of
4137 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4138 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4139 (iterate_over_objfiles_in_search_order): New gdbarch method.
4140 * gdbarch.h, gdbarch.c: Regenerate.
4141 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4142 Add declaration.
4143 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4144 New function.
4145 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4146 out of lookup_symbol_aux_symtabs.
4147 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4148 call to lookup_symbol_aux_objfile.
4149 (struct global_sym_lookup_data): New type.
4150 (lookup_symbol_global_iterator_cb): New function.
4151 (lookup_symbol_global): Search for symbol using
4152 gdbarch_iterate_over_objfiles_in_search_order and
4153 lookup_symbol_global_iterator_cb.
4154 * findvar.c (struct minsym_lookup_data): New type.
4155 (minsym_lookup_iterator_cb): New function.
4156 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4157 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4158 and minsym_lookup_iterator_cb.
4159
67ff19f7
JB
41602012-06-05 Joel Brobecker <brobecker@adacore.com>
4161
4162 Revert the following patch:
4163 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4164 try locating the symbol in the symbol's own objfile first, before
4165 extending the search to all objfiles.
4166 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4167 out of lookup_symbol_aux_symtabs.
4168 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4169 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4170 Do not search EXCLUDE_OBJFILE.
4171 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4172 (lookup_symbol_global): Search for matches in the block's objfile
4173 first, before searching all other objfiles.
4174
ccab2054
JB
41752012-06-05 Joel Brobecker <brobecker@adacore.com>
4176
4177 * breakpoint.c (find_condition_and_thread): Stop parsing
4178 as soon as the first invalid keyword is found.
4179
e23d4a9c
JB
41802012-06-05 Joel Brobecker <brobecker@adacore.com>
4181
4182 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4183
70160166
JB
41842012-06-05 Joel Brobecker <brobecker@adacore.com>
4185
4186 * config/djgpp/djcheck.sh: Add copyright header.
4187
399501a5
JB
41882012-06-05 Joel Brobecker <brobecker@adacore.com>
4189
4190 * copyright.py (update_files, main): Fix path to update-copyright
4191 script.
4192
3770a159
JB
41932012-06-05 Joel Brobecker <brobecker@adacore.com>
4194
4195 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4196 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4197 for which a reminder to update by hand is printed.
4198
4aad0dfc
DE
41992012-06-04 Doug Evans <dje@google.com>
4200
4201 * buildsym.c (make_blockvector): Add comment.
4202
1f8cf220
PA
42032012-06-04 Pedro Alves <palves@redhat.com>
4204
4205 * arch-utils.c (default_gdb_signal_from_target): Delete.
4206 * arch-utils.h (default_gdb_signal_from_target): Delete.
4207 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4208 gdbarch_gdb_signal_from_target_p.
4209 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4210 predicate).
4211 * gdbarch.h: Regenerate.
4212 * gdbarch.c: Regenerate.
4213
86b49880
PA
42142012-06-04 Pedro Alves <palves@redhat.com>
4215
4216 * gdbarch.sh (gdb_signal_from_target): Mention that the
4217 implementation of the method must be host independent.
4218 * gdbarch.h: Regenerate.
4219
fe78531d
JK
42202012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4221
4222 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4223 parameters.
4224 (target_read_memory_bfd): New function.
4225 (symbol_file_add_from_memory): Use it.
4226
d790cf0a
DE
42272012-06-03 Doug Evans <dje@google.com>
4228
78e5175a
DE
4229 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4230 of primary symtab.
4231 (basic_lookup_transparent_type): Ditto.
4232
d790cf0a
DE
4233 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4234 (ALL_PRIMARY_SYMTABS): Use it.
4235 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4236 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4237 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4238 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4239 (basic_lookup_transparent_type): Ditto.
4240
c6e5ee5e
SDJ
42412012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4242
4243 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4244 it to optimize resolution of demangled name.
4245
a68ffae9
JK
42462012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4247
4248 * configure.ac (development): Define new variable.
4249 Call AC_CHECK_LIB for mcheck if $development.
4250 (ERROR_ON_WARNING): Enable it by default only if $development.
4251 * config.in: Regenerate.
4252 * configure: Regenerate.
4253
5299c1c4
JK
42542012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4255
4256 * target.c (target_read_memory): Make LEN argument as size_t.
4257 * target.h (target_read_memory): Likewise.
4258
42592012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
4260
4261 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4262
0c56f59b
EBM
42632012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4264
4265 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4266 BookE interface for PowerPC server processors if not available
4267 in the Linux Kernel.
4268
71bdabee
KS
42692012-05-31 Keith Seitz <keiths@redhat.com>
4270
4271 * linespec.c (decode_objc): Add cleanup to free
4272 INFO.FILE_SYMTABS.
4273 (find_linespec_symbols): Add cleanup to free CLASSES.
4274 * symfile.c (find_separate_debug_file_by_debuglink): Add
4275 cleanup to free DEBUGLINK.
4276 * ui-out.c (clear_header_list): No need to check if
4277 HEADER_NEXT.COLHDR is NULL.
4278 Free HEADER_NEXT.COL_NAME.
4279
acbd605d
MGD
42802012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4281
4282 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4283 warning.
4284
65662cde
PA
42852012-05-30 Jeff Kenton <jkenton@tilera.com>
4286
4287 * configure.host (gdb_host_cpu): Handle tilegx*.
4288 (gdb_host): Handle tilegx-*-linux*.
4289 * tilegx-linux-nat.c: New file.
4290 * config/tilegx/linux.mh: New file.
4291
ade64f0e
PA
42922012-05-30 Jeff Kenton <jkenton@tilera.com>
4293
4294 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4295 tilegx-linux-tdep.o.
4296 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4297 tilegx-linux-tdep.c.
4298 * configure.tgt: Handle tilegx-*-linux*.
4299 * tilegx-tdep.h: New file.
4300 * tilegx-tdep.c: New file.
4301 * tilegx-linux-tdep.c: New file.
4302 * regformats/reg-tilegx.dat: New file.
4303
bb08bdbd
EBM
43042012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4305
4306 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4307 accounting of hw watchpoints on ppc.
4308
ebd86fb5
TJB
43092012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4310
4311 * source.c (openp): Expand tilde in path entries.
4312
0a0edcd5
DE
43132012-05-29 Doug Evans <dje@google.com>
4314
98cc87bd
DE
4315 * buildsym.c (block_compar): Fix comment.
4316 (end_symtab): Fix and clarify some comments.
4317
0a0edcd5
DE
4318 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4319 cleanup_undefined_types.
4320 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4321 All callers updated.
4322
6f0c7050
TT
43232012-05-29 Tom Tromey <tromey@redhat.com>
4324
4325 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4326 fails.
4327 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4328 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4329 fails.
4330 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4331 fails.
4332
ec95993c
TG
43332012-05-29 Tristan Gingold <gingold@adacore.com>
4334
4335 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4336 (struct darwin_info): ... New struct.
4337 (solib_darwin_pspace_data): New variable.
4338 (darwin_pspace_data_cleanup): New function.
4339 (get_darwin_info): Likewise.
4340 (darwin_dyld_version_ok, darwin_load_image_infos)
4341 (darwin_solib_get_all_image_info_addr_at_init)
4342 (darwin_solib_read_all_image_info_addr): Add info argument.
4343 Adjust code.
4344 (darwin_current_sos): Use per pspace structure.
4345 (darwin_solib_create_inferior_hook): Likewise.
4346 (darwin_clear_solib): Likewise.
4347 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4348
ae25568b
PA
43492012-05-28 Pedro Alves <palves@redhat.com>
4350
4351 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4352 block that uses them. Clear ecss before handling each event.
4353
0c5bf5a9
JK
43542012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4355
4356 * solib-svr4.c (svr4_current_sos): New comment on
4357 svr4_current_sos_via_xfer_libraries fall back.
4358
bfb05775
JK
43592012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4360
4361 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4362 it as a fallback for TYPE_IS_OPAQUE.
4363 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4364 symbols for lookup_symbol.
4365
685b1105
JK
43662012-05-24 John Steele Scott <toojays@toojays.net>
4367
4368 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4369 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4370 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4371 (check_producer): ... this new function, which also checks for ICC
4372 and caches the result.
4373 (producer_is_icc): New function.
4374 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4375 producer was ICC.
4376
22203bbf
PA
43772012-05-24 Pedro Alves <palves@redhat.com>
4378
4379 PR gdb/7205
4380
4381 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4382 (default_gdb_signal_to_target): ... this. Add comment.
4383 (default_gdb_signal_from_host): Rename to ...
4384 (default_gdb_signal_from_target): ... this. Add comment.
4385 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4386 (default_gdb_signal_to_target): ... this.
4387 (default_gdb_signal_from_host): Rename to ...
4388 (default_gdb_signal_from_target): ... this.
4389 * corelow.c (core_open): Adjust to naming change. Replace comment.
4390 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4391 (gdb_signal_from_target): ... this. Adjust to
4392 default_gdb_signal_from_host naming change. Extend comment.
4393 (gdb_signal_to_host): Rename to ...
4394 (gdb_signal_to_target): ... this. Adjust to
4395 default_gdb_signal_to_host naming change.
4396 * gdbarch.h, gdbarch.c: Renegerate.
4397
a493e3e2
PA
43982012-05-24 Pedro Alves <palves@redhat.com>
4399
4400 PR gdb/7205
4401
f782ad9b 4402 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 4403
2ea28649
PA
44042012-05-24 Pedro Alves <palves@redhat.com>
4405
4406 PR gdb/7205
4407
4408 Replace target_signal with gdb_signal throughout.
4409
b09846a9
PA
44102012-05-24 Pedro Alves <palves@redhat.com>
4411
4412 PR tui/14159
4413
4414 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4415 string, instead of reusing the va_list argument.
4416
e77c107e
TT
44172012-05-24 Tom Tromey <tromey@redhat.com>
4418
4419 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4420 Remove.
4421
9fccedf7
DE
44222012-05-23 Doug Evans <dje@google.com>
4423
d50bd42b
DE
4424 * symtab.c (search_symbols): Formatting fixes.
4425 (print_symbol_info): Formatting fixes.
4426
9fccedf7
DE
4427 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4428 int64_t change to leb128 API.
4429 (read_encoded_value, decode_frame_entry_1): Ditto.
4430 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4431 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4432 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4433 (execute_stack_op): Ditto.
4434 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4435 (safe_read_uleb128, safe_read_sleb128): Ditto.
4436 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4437 (dwarf2_compile_expr_to_ax): Ditto.
4438 (locexpr_describe_location_piece): Ditto.
4439 (disassemble_dwarf_expression): Ditto.
4440 (locexpr_describe_location_1): Ditto.
4441
f3e0e960
SS
44422012-05-23 Stan Shebs <stan@codesourcery.com>
4443 Kwok Cheung Yeung <kcy@codesourcery.com>
4444
4445 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4446 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4447 (mi-cmd-info.o): New rule.
4448 * osdata.h (info_osdata_command): New declaration.
4449 * osdata.c (info_osdata_command): Change to non-static.
4450 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4451 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4452 * mi/mi-cmd-info.c: New file.
4453
c51fe631
DE
44542012-05-23 Doug Evans <dje@google.com>
4455
71cddcc1
DE
4456 * symtab.c (search_symbols): Pass NULL for file_matcher to
4457 expand_symtabs_matching if there are no files to match.
4458
c51fe631
DE
4459 * gdbtypes.c (lookup_typename): Simplify.
4460
a79378d4
PA
44612012-05-23 Pedro Alves <palves@redhat.com>
4462
4463 * arch-utils.h (default_target_signal_to_host): Delete.
4464 * arch-utils.c (default_target_signal_to_host): Delete.
4465 * gdbarch.sh (target_signal_to_host): Remove.
4466 * gdbarch.h, gdbarch.c: Regenerate.
4467
f664829e
DE
44682012-05-22 Doug Evans <dje@google.com>
4469
4470 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4471 "const gdb_byte *".
4472 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4473 (execute_cfa_program): Update to match API of leb128 functions.
4474 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4475 "const gdb_byte *".
4476 (read_unsigned_leb128, read_signed_leb128): Delete.
4477 (read_initial_length): Change type of buf argument to
4478 "const gdb_byte *".
4479 (read_encoded_value): Update to match API of leb128 functions.
4480 (decode_frame_entry): Change result to "const gdb_byte *", and
4481 similarly for "start" parameter.
4482 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4483 (dwarf2_build_frame_info): Change local frame_ptr to
4484 "const gdb_byte *".
4485 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4486 read_uleb128, read_sleb128. All callers updated.
4487 (safe_skip_leb128): New function.
4488 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4489 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4490 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4491 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4492 read_uleb128, read_sleb128.
4493 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4494 (execute_stack_op): Update to match API of leb128 functions.
4495 * dwarf2expr.h: #include "leb128.h".
4496 (read_uleb128, read_sleb128): Delete.
4497 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4498 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4499 * dwarf2loc.c (debug_loc_kind): New enum.
4500 (decode_debug_loc_addresses): New function.
4501 (decode_debug_loc_dwo_addresses): New function.
4502 (dwarf2_find_location_expression): Rewrite.
4503 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4504 (locexpr_describe_location_piece): Ditto.
4505 (disassemble_dwarf_expression): Ditto.
4506 (locexpr_describe_location_1): Ditto.
4507 (loclist_describe_location): Rewrite.
4508 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4509 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4510 (dwarf2_section_buffer_overflow_complaint): Renamed from
4511 dwarf2_macros_too_long_complaint. All callers updated.
4512 (skip_leb128): Delete.
4513 (init_cu_die_reader): Initialize reader->buffer_end.
4514 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4515 (skip_form_bytes): New arg buffer_end. All callers updated.
4516 Replace call to skip_leb128 with gdb_skip_leb128.
4517 (skip_unknown_opcode): New arg mac_end. All callers updated.
4518 (fill_in_loclist_baton): Initialize baton->from_dwo.
4519
837a1b32
MR
45202012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4521
4522 * mips-linux-nat.c (mips_linux_read_description): Use a more
4523 verbose error message.
4524
d0e64392
MR
45252012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4526
4527 * NEWS: Add MIPS/Linux DSP support.
4528 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4529 (SIGCONTEXT_DSPCTL): New macro.
4530 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4531 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4532 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4533 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4534 (N64_SIGCONTEXT_HI3): Likewise.
4535 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4536 (N64_SIGCONTEXT_LO3): Likewise.
4537 (N64_SIGCONTEXT_DSPCTL): Likewise.
4538 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4539 (mips_linux_o32_sigframe_init): Handle DSP registers.
4540 (mips_linux_n32n64_sigframe_init): Likewise.
4541
8bea7ed1
PM
45422012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4543
4544 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4545 call to abort.
4546
dab06dbe
PA
45472012-05-22 Pedro Alves <palves@redhat.com>
4548
4549 * target.h (store_waitstatus): Move declaration ...
4550 * inf-child.h (store_waitstatus): ... here.
4551 * target.c: Move inclusion of gdb_wait.h, and ...
4552 (store_waitstatus): ... this ...
4553 * inf-child.c: ... here.
4554 * linux-nat.c: Include inf-child.h.
4555 * rs6000-nat.c: Include inf-child.h.
4556 * spu-linux-nat.c: Include inf-child.h.
4557
43011e52
PM
45582012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4559
4560 * tracepoint.c (start_tracing): Add missing i18n markup.
4561 (stop_tracing, set_trace_user): Ditto.
4562 (set_trace_notes, set_trace_stop_notes): Ditto.
4563
b1af9e97
TT
45642012-05-21 Tom Tromey <tromey@redhat.com>
4565
4566 PR c++/7173:
4567 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4568 types.
4569 * value.h (value_cast_pointers): Update.
4570 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4571 (value_cast): Update.
4572 (update_search_result): New function.
4573 (do_search_struct_field): New, from search_struct_field. Check
4574 for ambiguous results.
4575 (search_struct_field): Rewrite.
4576 * infcall.c (value_arg_coerce): Update.
4577 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4578 value_cast_pointers.
4579 * ada-lang.c (ada_convert_actual): Update.
4580
e9e5e6b3
TT
45812012-05-21 Tom Tromey <tromey@redhat.com>
4582
4583 * macroexp.c (macro_stringify): Terminate the string.
4584
1564a261
JK
45852012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4586
4587 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4588 Describe it.
4589 * auto-load.c (auto_load_expand_dir_vars): New function.
4590 (auto_load_safe_path_vec_update): Use it, remove the
4591 substitute_path_component call thanks to it.
4592 (auto_load_objfile_script): Remove the debug_file_directory processing.
4593 Use auto_load_expand_dir_vars, remove the substitute_path_component
4594 call thanks to it.
4595 * configure: Regenerate.
4596 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4597 path. Escape $ also for $debugdir.
4598 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4599 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4600
a3ec0bb1
DE
46012012-05-20 Doug Evans <dje@google.com>
4602
4603 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4604 before use. Check for symtab->includes == NULL before scanning it.
4605
d467df4e
MR
46062012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4607
4608 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4609
4cc0665f
MR
46102012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4611
4612 * NEWS: Add microMIPS support and "set mips compression",
4613 "show mips compression" commands.
4614 * mips-tdep.h (mips_isa): New enum.
4615 (gdbarch_tdep): Add mips_isa.
4616 (mips_pc_is_mips16): Update prototype.
4617 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4618 * mips-tdep.c (mips_compression_mips16): New variable.
4619 (mips_compression_micromips): Likewise.
4620 (mips_compression_strings): Likewise.
4621 (mips_compression_string): Likewise.
4622 (is_mips16_isa, is_micromips_isa): New functions.
4623 (is_mips16_addr): Rename to...
4624 (is_compact_addr): ... this.
4625 (unmake_mips16_addr): Likewise to...
4626 (unmake_compact_addr): ... this.
4627 (make_mips16_addr): Likewise to...
4628 (make_compact_addr): ... this.
4629 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4630 functions.
4631 (mips_elf_make_msymbol_special): Handle microMIPS code.
4632 (msymbol_is_special): Rename to...
4633 (msymbol_is_mips16): ... this.
4634 (mips_make_symbol_special, mips_pc_is_mips16): Update
4635 accordingly.
4636 (msymbol_is_mips, msymbol_is_micromips): New functions.
4637 (mips16_to_32_reg): Rename to...
4638 (mips_reg3_to_reg): ... this.
4639 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4640 (mips_pc_isa): Likewise.
4641 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4642 code.
4643 (mips_fetch_instruction): Pass return status instead of printing
4644 an error message if requested. Handle microMIPS code. Bail out
4645 on an invalid ISA.
4646 (micromips_op): New macro.
4647 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4648 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4649 (b6s4_op, b7s3_reg): Likewise.
4650 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4651 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4652 (mips_insn_size): New function.
4653 (mips32_next_pc): Update mips_fetch_instruction call.
4654 (micromips_relative_offset7): New function.
4655 (micromips_relative_offset10): Likewise.
4656 (micromips_relative_offset16): Likewise.
4657 (micromips_pc_insn_size): Likewise.
4658 (micromips_bc1_pc): Likewise.
4659 (micromips_next_pc): Likewise.
4660 (unpack_mips16): Update mips_fetch_instruction call.
4661 (extended_mips16_next_pc): Update according to change to
4662 mips16_to_32_reg.
4663 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4664 code.
4665 (mips16_scan_prologue): Update mips_fetch_instruction call.
4666 Update according to change to mips16_to_32_reg.
4667 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4668 (mips_insn16_frame_base_sniffer): Likewise.
4669 (micromips_decode_imm9): New function.
4670 (micromips_scan_prologue): Likewise.
4671 (mips_micro_frame_cache): Likewise.
4672 (mips_micro_frame_this_id): Likewise.
4673 (mips_micro_frame_prev_register): Likewise.
4674 (mips_micro_frame_sniffer): Likewise.
4675 (mips_micro_frame_unwind): New variable.
4676 (mips_micro_frame_base_address): New function.
4677 (mips_micro_frame_base): New variable.
4678 (mips_micro_frame_base_sniffer): New function.
4679 (mips32_scan_prologue): Update mips_fetch_instruction call.
4680 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4681 rather than for MIPS16.
4682 (mips_insn32_frame_base_sniffer): Likewise.
4683 (mips_addr_bits_remove): Handle microMIPS code.
4684 (deal_with_atomic_sequence): Rename to...
4685 (mips_deal_with_atomic_sequence): ... this. Update the type
4686 of the variable used to hold an instruction. Remove the ISA bit
4687 check. Update mips_fetch_instruction call.
4688 (micromips_deal_with_atomic_sequence): New function.
4689 (deal_with_atomic_sequence): Likewise.
4690 (mips_about_to_return): Handle microMIPS code. Update
4691 mips_fetch_instruction call.
4692 (heuristic_proc_start): Check for the standard MIPS ISA rather
4693 than for MIPS16. Update mips_pc_is_mips16 and
4694 mips_fetch_instruction calls. Handle microMIPS code.
4695 (mips_push_dummy_code): Handle microMIPS code.
4696 (mips_eabi_push_dummy_call): Likewise.
4697 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4698 (mips_o64_push_dummy_call): Handle microMIPS code.
4699 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4700 (is_delayed): Remove function.
4701 (mips_single_step_through_delay): Replace the call to is_delayed
4702 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4703 Handle microMIPS code.
4704 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4705 microMIPS code.
4706 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4707 call.
4708 (micromips_in_function_epilogue_p): New function.
4709 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4710 call.
4711 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4712 Handle microMIPS.
4713 (gdb_print_insn_mips): Likewise.
4714 (mips_breakpoint_from_pc): Likewise.
4715 (mips_remote_breakpoint_from_pc): New function.
4716 (mips32_instruction_has_delay_slot): Simplify making use of the
4717 updated mips_fetch_instruction interface.
4718 (micromips_instruction_has_delay_slot): New function.
4719 (mips16_instruction_has_delay_slot): Simplify making use of the
4720 updated mips_fetch_instruction interface.
4721 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 4722 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
4723 calls. Handle microMIPS code.
4724 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4725 (mips_skip_trampoline_code): Handle microMIPS code.
4726 (global_mips_compression): New function.
4727 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4728 file flags. Register the microMIPS remote breakpoint handler
4729 and heuristic frame unwinder.
4730 (show_mips_compression): New function.
4731 (_initialize_mips_tdep): Add the "set mips compression" and
4732 "show mips compression" commands.
4733
22e048c9
SDJ
47342012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4735
4736 * ada-lang.c:
4737 * ada-tasks.c:
4738 * ada-varobj.c:
4739 * amd64-darwin-tdep.c:
4740 * arm-symbian-tdep.c:
4741 * arm-tdep.c:
4742 * avr-tdep.c:
4743 * ax-gdb.c:
4744 * bfin-linux-tdep.c:
4745 * breakpoint.c:
4746 * c-valprint.c:
4747 * cli/cli-cmds.c:
4748 * coffread.c:
4749 * cp-support.c:
4750 * cris-tdep.c:
4751 * dwarf2-frame-tailcall.c:
4752 * dwarf2-frame.c:
4753 * dwarf2expr.c:
4754 * dwarf2loc.c:
4755 * dwarf2read.c:
4756 * elfread.c:
4757 * eval.c:
4758 * expprint.c:
4759 * f-valprint.c:
4760 * frv-tdep.c:
4761 * h8300-tdep.c:
4762 * hppa-hpux-tdep.c:
4763 * hppa-tdep.c:
4764 * hppanbsd-tdep.c:
4765 * i386-nto-tdep.c:
4766 * i386-tdep.c:
4767 * i387-tdep.c:
4768 * ia64-tdep.c:
4769 * jit.c:
4770 * linespec.c:
4771 * linux-tdep.c:
4772 * lm32-tdep.c:
4773 * m2-valprint.c:
4774 * m32c-tdep.c:
4775 * m32r-rom.c:
4776 * m32r-tdep.c:
4777 * m68k-tdep.c:
4778 * m68klinux-tdep.c:
4779 * mi/mi-main.c:
4780 * microblaze-tdep.c:
4781 * mips-linux-tdep.c:
4782 * mips-tdep.c:
4783 * mn10300-tdep.c:
4784 * p-valprint.c:
4785 * parse.c:
4786 * ppc-linux-tdep.c:
4787 * ppc-sysv-tdep.c:
4788 * printcmd.c:
4789 * python/py-finishbreakpoint.c:
4790 * python/py-inferior.c:
4791 * python/py-infthread.c:
4792 * python/py-type.c:
4793 * python/python.c:
4794 * remote-fileio.c:
4795 * remote-m32r-sdi.c:
4796 * remote-mips.c:
4797 * reverse.c:
4798 * rl78-tdep.c:
4799 * rs6000-aix-tdep.c:
4800 * rs6000-tdep.c:
4801 * s390-tdep.c:
4802 * score-tdep.c:
4803 * sh64-tdep.c:
4804 * skip.c:
4805 * solib-darwin.c:
4806 * solib-dsbt.c:
4807 * solib-frv.c:
4808 * sparc-tdep.c:
4809 * spu-multiarch.c:
4810 * spu-tdep.c:
4811 * stack.c:
4812 * symfile.c:
4813 * symtab.c:
4814 * tic6x-tdep.c:
4815 * tracepoint.c:
4816 * v850-tdep.c:
4817 * valarith.c:
4818 * valprint.c:
4819 * value.c:
4820 * xcoffread.c:
4821 * xtensa-tdep.c:
4822 * ada-lang.c:
4823 * ada-tasks.c:
4824 * ada-varobj.c:
4825 * amd64-darwin-tdep.c:
4826 * arm-symbian-tdep.c:
4827 * arm-tdep.c: Delete unused variables.
4828
aff139ff
JK
48292012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4830
4831 Rename $ddir to $datadir.
4832 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4833 * auto-load.c (auto_load_safe_path_vec_update)
4834 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4835 * configure: Regenerate.
4836 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4837 Likewise. Remove the 'use $ddir' help string.
4838
f7bfa992
JK
48392012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4840
4841 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4842 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4843
9cb709b6
TT
48442012-05-18 Tom Tromey <tromey@redhat.com>
4845
4846 PR exp/13907:
4847 * valprint.h (struct value_print_options) <symbol_print>: New
4848 field.
4849 * valprint.c (user_print_options): Add default for symbol_print.
4850 (show_symbol_print): New function.
4851 (generic_val_print): Respect symbol_print.
4852 (_initialize_valprint): Add "print symbol" setting.
4853 * f-valprint.c (f_val_print): Respect symbol_print.
4854 * c-valprint.c (c_val_print): Respect symbol_print.
4855 * NEWS: Update.
4856 * printcmd.c (print_address_symbolic): Return int. Ignore some
4857 zero-size symbols.
4858 (print_address_demangle): Return int.
4859 * defs.h: (print_address_symbolic): Return int.
4860 * value.h (print_address_demangle): Return int.
4861
b012acdd
TT
48622012-05-18 Tom Tromey <tromey@redhat.com>
4863
4864 * valprint.c (val_print_string): Don't print leading space.
4865 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4866 print space before string or vtbl.
4867 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4868 before string.
4869 * jv-valprint.c (java_value_print): Print space before string.
4870 * go-valprint.c (print_go_string): Print space before string.
4871 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4872 space before string.
4873 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4874 space before string or vtbl.
4875 * auxv.c (fprint_target_auxv): Print space after address.
4876
1d51a733
TT
48772012-05-18 Tom Tromey <tromey@redhat.com>
4878
4879 * printcmd.c (print_address_demangle): Remove special case for 0.
4880
edf0c1b7
TT
48812012-05-18 Tom Tromey <tromey@redhat.com>
4882
4883 * printcmd.c (print_address_demangle): Add 'opts' argument.
4884 * p-valprint.c (pascal_val_print): Update.
4885 * jv-valprint.c (java_val_print): Update.
4886 * value.h: Update.
4887 * valprint.c (generic_val_print): Update.
4888 (print_function_pointer_address): Add 'options' argument. Remove
4889 'addressprint' argument. Update.
4890 * m2-valprint.c (print_unpacked_pointer): Update.
4891 * gnu-v3-abi.c (print_one_vtable): Update.
4892 (gnuv3_print_method_ptr): Update.
4893 * f-valprint.c (f_val_print): Update.
4894 * cp-valprint.c (cp_print_value_fields): Update.
4895 * valprint.h (print_function_pointer_address): Update.
4896 * c-valprint.c (c_val_print): Update.
4897
9703b513
TT
48982012-05-18 Tom Tromey <tromey@redhat.com>
4899
4900 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4901 directly corresponding to the found psymtab.
4902 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4903 (dw2_find_pc_sect_symtab): Use it.
4904 * block.h (blockvector_contains_pc): Declare.
4905 * block.c (find_block_in_blockvector): New function.
4906 (blockvector_for_pc_sect): Use it.
4907 (blockvector_contains_pc): New function.
4908
5a439849
MR
49092012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4910
4911 * mips-tdep.h (mips_write_pc): New prototype.
4912 * mips-tdep.c (mips_write_pc): Make external, add description.
4913 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4914 add description.
4915
8376de04
MR
49162012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4917
4918 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4919 mips_regnum->pc.
4920 (mips_unwind_pc, mips_write_pc): Likewise.
4921 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4922 gdbarch_read_pc.
4923
d3581e61
JB
49242012-05-17 Joel Brobecker <brobecker@adacore.com>
4925
4926 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4927 proc_warn, proc_error, proc_get_status, proc_flags,
4928 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4929 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4930 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4931 proc_stop_process, proc_wait_for_stop, proc_run_process,
4932 proc_set_traced_signals, proc_set_traced_faults,
4933 proc_set_traced_sysentry, proc_set_traced_sysexit,
4934 proc_set_held_signals, proc_get_held_signals,
4935 proc_get_traced_signals, proc_get_traced_faults,
4936 proc_get_traced_sysentry, proc_get_traced_sysexit,
4937 proc_clear_current_fault, proc_set_current_signal,
4938 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4939 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4940 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4941 proc_get_current_thread, proc_get_current_thread,
4942 proc_get_current_thread, proc_update_threads,
4943 proc_update_threads, proc_update_threads, proc_update_threads,
4944 proc_iterate_over_threads, procfs_find_new_threads,
4945 procfs_pid_to_str): Make static. Remove advance declaration.
4946 (proc_cursig): Make static. Conditionalized defintion on
4947 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4948 (proc_syscall, proc_set_kill_on_last_close,
4949 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4950 proc_get_pending_signals, proc_get_signal_actions,
4951 proc_trace_signal, proc_ignore_signal): Delete.
4952
81b9b86e
SDJ
49532012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4954
4955 * coffread.c (cs_section_address): Passing proper argument for
4956 `bfd_get_section_vma'.
4957 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4958 `bfd_get_section_flags'.
4959 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4960 `bfd_get_section_vma'.
4961
abc9d0dc
TT
49622012-05-16 Tom Tromey <tromey@redhat.com>
4963
4964 PR macros/13205:
4965 * macrotab.h: (macro_define_special): Declare.
4966 (enum macro_special_kind): New.
4967 (struct macro_definition) <argc, replacement>: Update comments.
4968 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4969 (macro_define_object_internal): New function.
4970 (macro_define_object): Use it.
4971 (macro_define_special): New function.
4972 (fixup_definition): New function.
4973 (macro_lookup_definition, foreach_macro_in_scope)
4974 (foreach_macro): Use fixup_definition.
4975 * macroexp.h (macro_stringify): Declare.
4976 * macroexp.c (free_buffer_return_text): New function.
4977 (stringify): Constify "arg".
4978 (macro_stringify): New function.
4979 * dwarf2read.c (macro_start_file): Call macro_define_special.
4980
6a3a010b 49812012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 4982 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
4983
4984 * breakpoint.h (bp_location): Add related_address member.
4985 * inferior.h (get_return_value): Take a pointer to struct value
4986 instead of struct type for the function requested.
4987 * value.h (using_struct_return): Likewise.
4988 * gdbarch.sh (return_value): Take a pointer to struct value
4989 instead of struct type for the function requested.
4990 * breakpoint.c (set_breakpoint_location_function): Initialize
4991 related_address for bp_gnu_ifunc_resolver breakpoints.
4992 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4993 requested function's address to gdbarch_return_value.
4994 * eval.c (evaluate_subexp_standard): Pass the requested
4995 function's address to using_struct_return.
4996 * infcall.c (call_function_by_hand): Pass the requested
4997 function's address to using_struct_return and
4998 gdbarch_return_value.
4999 * infcmd.c (get_return_value): Take a pointer to struct value
5000 instead of struct type for the function requested.
5001 (print_return_value): Update accordingly.
5002 (finish_command_continuation): Likewise.
5003 * stack.c (return_command): Pass the requested function's
5004 address to using_struct_return and gdbarch_return_value.
5005 * value.c (using_struct_return): Take a pointer to struct value
5006 instead of struct type for the function requested. Pass the
5007 requested function's address to gdbarch_return_value.
5008 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5009 New function_value member, replacing function_type.
5010 (bpfinishpy_dealloc): Update accordingly.
5011 (bpfinishpy_pre_stop_hook): Likewise.
5012 (bpfinishpy_init): Likewise. Record the requested function's
5013 address.
5014 * mips-tdep.c (mips_fval_reg): New enum.
5015 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5016 words put in GP registers.
5017 (mips_o64_push_dummy_call): Update a comment.
5018 (mips_o32_return_value): Take a pointer to struct value instead
5019 of struct type for the function requested and use it to check if
5020 using the MIPS16 calling convention. Return the designated
5021 general purpose registers for floating-point values returned in
5022 MIPS16 mode.
5023 (mips_o64_return_value): Likewise.
5024 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5025 (ppc_sysv_abi_broken_return_value): Likewise.
5026 (ppc64_sysv_abi_return_value): Likewise.
5027 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5028 value instead of struct type for the function requested.
5029 * amd64-tdep.c (amd64_return_value): Likewise.
5030 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5031 * arm-tdep.c (arm_return_value): Likewise.
5032 * avr-tdep.c (avr_return_value): Likewise.
5033 * bfin-tdep.c (bfin_return_value): Likewise.
5034 * cris-tdep.c (cris_return_value): Likewise.
5035 * frv-tdep.c (frv_return_value): Likewise.
5036 * h8300-tdep.c (h8300_return_value): Likewise.
5037 (h8300h_return_value): Likewise.
5038 * hppa-tdep.c (hppa32_return_value): Likewise.
5039 (hppa64_return_value): Likewise.
5040 * i386-tdep.c (i386_return_value): Likewise.
5041 * ia64-tdep.c (ia64_return_value): Likewise.
5042 * iq2000-tdep.c (iq2000_return_value): Likewise.
5043 * lm32-tdep.c (lm32_return_value): Likewise.
5044 * m32c-tdep.c (m32c_return_value): Likewise.
5045 * m32r-tdep.c (m32r_return_value): Likewise.
5046 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5047 * m68k-tdep.c (m68k_return_value): Likewise.
5048 (m68k_svr4_return_value): Likewise.
5049 * m88k-tdep.c (m88k_return_value): Likewise.
5050 * mep-tdep.c (mep_return_value): Likewise.
5051 * microblaze-tdep.c (microblaze_return_value): Likewise.
5052 * mn10300-tdep.c (mn10300_return_value): Likewise.
5053 * moxie-tdep.c (moxie_return_value): Likewise.
5054 * mt-tdep.c (mt_return_value): Likewise.
5055 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5056 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5057 (ppc_sysv_abi_broken_return_value): Likewise.
5058 (ppc64_sysv_abi_return_value): Likewise.
5059 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5060 * rl78-tdep.c (rl78_return_value): Likewise.
5061 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5062 * rx-tdep.c (rx_return_value): Likewise.
5063 * s390-tdep.c (s390_return_value): Likewise.
5064 * score-tdep.c (score_return_value): Likewise.
5065 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5066 (sh_return_value_fpu): Likewise.
5067 * sh64-tdep.c (sh64_return_value): Likewise.
5068 * sparc-tdep.c (sparc32_return_value): Likewise.
5069 * sparc64-tdep.c (sparc64_return_value): Likewise.
5070 * spu-tdep.c (spu_return_value): Likewise.
5071 * tic6x-tdep.c (tic6x_return_value): Likewise.
5072 * v850-tdep.c (v850_return_value): Likewise.
5073 * vax-tdep.c (vax_return_value): Likewise.
5074 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5075 * xtensa-tdep.c (xtensa_return_value): Likewise.
5076 * gdbarch.c: Regenerate.
5077 * gdbarch.h: Regenerate.
5078
29ca12b3
TT
50792012-05-15 Tom Tromey <tromey@redhat.com>
5080
5081 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5082
588ae58c
JB
50832012-05-15 Joel Brobecker <brobecker@adacore.com>
5084
5085 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5086 of command in two error message.
5087
855a6e68
JB
50882012-05-15 Joel Brobecker <brobecker@adacore.com>
5089
5090 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5091
d634f2de
JB
50922012-05-15 Joel Brobecker <brobecker@adacore.com>
5093
5094 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5095
9cc815f5
JK
50962012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5097
5098 * NEWS (show auto-load scripts-directory): Add forgotten command.
5099
6a609e58
JK
51002012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5101
5102 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5103 parameters.
5104
ac1438b5
L
51052012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5106
5107 * amd64-tdep.c: Include features/i386/x32.c and
5108 features/i386/x32-avx.c.
5109 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5110 initialize_tdesc_x32_avx.
5111
e7e0cddf
SS
51122012-05-14 Stan Shebs <stan@codesourcery.com>
5113
5114 Add dynamic printf.
5115 * breakpoint.h (enum bptype): New type bp_dprintf.
5116 (struct breakpoint): New field extra_string.
5117 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5118 (create_breakpoint): Add extra_string arg.
5119 * breakpoint.c (dprintf_breakpoint_ops): New.
5120 (is_breakpoint): Add bp_dprintf.
5121 (bpstat_what): Add dprintf case.
5122 (bptype_string): Ditto.
5123 (print_one_breakpoint_location): Ditto.
5124 (init_bp_location): Ditto.
5125 (bkpt_print_mention): Ditto.
5126 (dprintf_style_enums): New array.
5127 (dprintf_style): New global.
5128 (dprintf_function): New global.
5129 (dprintf_channel): New global.
5130 (update_dprintf_command_list): New function.
5131 (update_dprintf_commands): New function.
5132 (init_breakpoint_sal): Add extra_string argument, handle it.
5133 (create_breakpoint_sal): Add extra_string argument.
5134 (create_breakpoints_sal): Add extra_string argument, update callers.
5135 (find_condition_and_thread): Add extra argument.
5136 (create_breakpoint): Add extra_string argument, record it.
5137 (dprintf_command): New function.
5138 (break_command_1): Add arg to create_breakpoint call.
5139 (handle_gnu_v3_exceptions): Ditto.
5140 (trace_command): Ditto.
5141 (ftrace_command): Ditto.
5142 (strace_command): Ditto.
5143 (bkpt_print_mention): Add dprintf case.
5144 (create_breakpoint_sal_default): Add extra_string argument.
5145 (_initialize_breakpoint): Add new commands.
5146 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5147 * python/py-breakpoint.c (bppy_init): Ditto.
5148 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5149
8ae38c14
MR
51502012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5151
5152 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5153
9f676e66
SCR
51542012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5155
5156 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5157 unsigned long long.
5158
7efc75aa
SCR
51592012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5160
5161 Add a new function gdb.find_pc_line to the Python API.
5162 * NEWS (Python Scripting): Add entry about the new function.
5163 * python/python.c (gdbpy_find_pc_line): New function which
5164 implements gdb.find_pc_line.
5165 (GdbMethods): Add entry for the new function.
5166
70af3797
PA
51672012-05-12 Pedro Alves <palves@redhat.com>
5168
5169 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5170 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5171
06da564e
EZ
51722012-05-12 Eli Zaretskii <eliz@gnu.org>
5173
5174 * inferior.c: Include completer.h
5175 (initialize_inferiors): Set completer of add-inferior to
5176 filename_completer.
5177
0288cee2
L
51782012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5179
5180 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5181 gdbarch_ptr_bit for x32 core dump.
5182
f6537a2c
L
51832012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5184
5185 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5186 and features/i386/x32-avx-linux.c.
5187
85d4a676
SS
51882012-05-11 Stan Shebs <stan@codesourcery.com>
5189 Kwok Cheung Yeung <kcy@codesourcery.com>
5190
5191 * NEWS: Describe new info os commands.
5192 * common/linux-osdata.c (PID_T, TIME_T): Define.
5193 (MAX_PID_T_STRLEN): New.
5194 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5195 MAX_PID_T_STRLEN.
5196 (command_from_pid): Add comment. Change to use PID_T.
5197 (commandline_from_pid): Change to use PID_T.
5198 (user_from_pid): Add comment.
5199 (get_process_owner): Add comment. Change to use PID_T and
5200 MAX_PID_T_STRLEN.
5201 (get_number_of_cpu_cores): Add comment.
5202 (get_cores_used_by_process): Add comment. Change to use PID_T and
5203 MAX_PID_T_STRLEN.
5204 (linux_xfer_osdata_processes): Change to use PID_T and
5205 MAX_PID_T_STRLEN.
5206 (compare_processes): New function.
5207 (linux_xfer_osdata_processgroups): New function.
5208 (linux_xfer_osdata_threads): Change to use PID_T.
5209 (linux_xfer_osdata_fds): New function.
5210 (format_socket_state, print_sockets): New functions.
5211 (union socket_addr): New union.
5212 (linux_xfer_osdata_isockets): New function.
5213 (time_from_time_t, group_from_gid): New functions.
5214 (linux_xfer_osdata_shm): New function.
5215 (linux_xfer_osdata_sem): New function.
5216 (linux_xfer_osdata_msg): New function.
5217 (linux_xfer_osdata_modules): New function.
5218 (osdata_table): Add new entries.
5219 * common/buffer.c (buffer_xml_printf): Add support for long and
5220 long long format specifiers.
5221
f24afd6d
L
52222012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5223
5224 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5225 (tdesc_x32_avx_linux): Likewise.
5226
7349ff92
JK
52272012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5228
5229 Implement multi-component --with-auto-load-dir.
5230 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5231 entries.
5232 (--with-auto-load-safe-path): Update the default value description.
5233 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5234 New.
5235 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5236 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5237 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5238 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5239 "set auto-load scripts-directory".
5240 * config.in: Regenerate.
5241 * configure: Regenerate.
5242 * configure.ac (--with-auto-load-dir): New configure option.
5243 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5244
6dea1fbd
JK
52452012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5246
5247 Provide $ddir substitution for --with-auto-load-safe-path.
5248 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5249 entries.
5250 * auto-load.c: Include observer.h.
5251 (auto_load_safe_path_vec_update): Call substitute_path_component for
5252 each component. New variable ddir_subst.
5253 (auto_load_gdb_datadir_changed): New function.
5254 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5255 AUTO_LOAD_SAFE_PATH. New comment.
5256 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5257 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5258 * config.in: Regenerate.
5259 * configure: Regenerate.
5260 * configure.ac (--auto-load-safe-path): Rename
5261 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5262 GDB_DATADIR/auto-load.
5263 * defs.h (substitute_path_component): New declaration.
5264 * top.c: Include observer.h.
5265 (set_gdb_datadir): New function.
5266 (init_main): Install it for "set data-directory".
5267 * utils.c (substitute_path_component): New function.
5268
b09aca3a
JK
52692012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5270
5271 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5272 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5273 DEBUG_FILE_DIRECTORY. Handle multiple components of
5274 DEBUG_FILE_DIRECTORY.
5275
95554aad
TT
52762012-05-10 Tom Tromey <tromey@redhat.com>
5277
5278 * dwarf2read.c (recursively_write_psymbols): New function.
5279 (write_psymtabs_to_index): Use it.
5280
5281 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5282 field.
5283 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5284 (load_partial_comp_unit): Update.
5285 (queue_comp_unit): Add argument 'pretend_language'.
5286 (process_queue): Update.
5287 (psymtab_to_symtab_1): Skip dependencies that have a user.
5288 (load_partial_comp_unit_reader): Give meaning to the 'data'
5289 argument.
5290 (load_full_comp_unit): Add 'pretend_language' argument.
5291 (process_full_comp_unit): Add 'pretend_language' argument. Set
5292 language on CU.
5293 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5294 Update.
5295 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5296 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5297 Update.
5298 (prepare_one_comp_unit): Add 'pretend_language' argument.
5299
5300 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5301 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5302 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5303 (dw2_do_instantiate_symtab): Check whether symtab was read in
5304 before queueing.
5305 (dw2_instantiate_symtab): Add assertion. Call
5306 process_cu_includes.
5307 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5308 (partial_symtab_p): New typedef.
5309 (set_partial_user): New function.
5310 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5311 (scan_partial_symbols): Add imported CU to imported_symtabs.
5312 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5313 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5314 (get_symtab, recursively_compute_inclusions)
5315 (compute_symtab_includes, process_cu_includes)
5316 (process_imported_unit_die): New functions.
5317 (process_die) <DW_TAG_imported_unit>: New case.
5318 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5319
5320 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5321 comment.
5322 (struct partial_die_info) <locdesc>: Remove.
5323 <d>: New field.
5324 (process_psymtab_comp_unit): Add 'read_partial' argument.
5325 Update.
5326 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5327 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5328 (add_partial_symbol): Update.
5329 (process_die): Handle DW_TAG_partial_unit.
5330 (read_file_scope): Update comment.
5331 (load_partial_dies): Handle DW_TAG_imported_unit.
5332 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5333 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5334
e871fbb9
TT
53352012-05-10 Tom Tromey <tromey@redhat.com>
5336
5337 * cc-with-dwz.sh: New file.
5338
b5b04b5b
TT
53392012-05-10 Tom Tromey <tromey@redhat.com>
5340
5341 * symtab.h (struct symtab) <includes, user>: New fields.
5342 * block.h (struct block_iterator) <d, idx, which>: New fields.
5343 * block.c (initialize_block_iterator, find_iterator_symtab)
5344 (block_iterator_step, block_iter_name_step)
5345 (block_iter_match_step): New functions.
5346 (block_iterator_first, block_iterator_next)
5347 (block_iter_name_first, block_iter_name_next)
5348 (block_iter_match_first, block_iter_match_next): Rewrite.
5349 (get_block_symtab): New function.
5350
84a146c9
TT
53512012-05-10 Tom Tromey <tromey@redhat.com>
5352
5353 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5354 set_block_symtab.
5355 * jit.c (finalize_symtab): Use allocate_global_block,
5356 set_block_symtab.
5357 * buildsym.c (finish_block_internal): New function, from old
5358 finish_block.
5359 (finish_block): Rewrite.
5360 (end_symtab): Use finish_block_internal, set_block_symtab.
5361 * block.h (struct global_block): New.
5362 (allocate_global_block, set_block_symtab): Declare.
5363 * block.c (allocate_global_block, set_block_symtab): New
5364 functions.
5365
9439a077
TT
53662012-05-10 Tom Tromey <tromey@redhat.com>
5367
5368 * psymtab.c (partial_map_expand_apply): Add assertion.
5369 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5370 (psymtab_to_symtab): Find unshared psymtab.
5371 (dump_psymtab): Print including psymtabs.
5372 (recursively_search_psymtabs): New function.
5373 (expand_symtabs_matching_via_partial): Use it.
5374 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5375 fields.
5376 (enum psymtab_search_status): New.
5377
8157b174
TT
53782012-05-10 Tom Tromey <tromey@redhat.com>
5379
5380 * tracepoint.c (scope_info): Update.
5381 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5382 (find_pc_sect_symtab, search_symbols)
5383 (default_make_symbol_completion_list_break_on)
5384 (make_file_symbol_completion_list): Update.
5385 * symmisc.c (dump_symtab_1): Update.
5386 * stack.c (print_frame_args, iterate_over_block_locals)
5387 (print_frame_labels, iterate_over_block_arg_vars): Update.
5388 * python/py-block.c (block_object) <dict>: Remove.
5389 <block>: New field.
5390 <iter>: Change type.
5391 (blpy_iter): Update.
5392 (blpy_block_syms_iternext): Update.
5393 * psymtab.c (map_block): Use block iterators.
5394 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5395 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5396 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5397 * infrun.c (check_exception_resume): Update.
5398 * cp-support.c (make_symbol_overload_list_block): Update.
5399 * coffread.c (patch_opaque_types): Update.
5400 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5401 * block.h (struct block_iterator): New.
5402 (block_iterator_first, block_iterator_next, block_iter_name_first)
5403 (block_iter_name_next, block_iter_match_first)
5404 (block_iter_match_next): Declare.
5405 (ALL_BLOCK_SYMBOLS): Redefine.
5406 * block.c (block_iterator_first, block_iterator_next)
5407 (block_iter_name_first, block_iter_name_next)
5408 (block_iter_match_first, block_iter_match_next): New functions.
5409 * ada-lang.c (ada_add_block_symbols)
5410 (ada_make_symbol_completion_list): Use block iterator.
5411
a2ca7a52
TT
54122012-05-10 Tom Tromey <tromey@redhat.com>
5413
5414 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5415 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5416 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5417 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5418 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5419 Update.
5420
64ea88dc
JB
54212012-05-10 Joel Brobecker <brobecker@adacore.com>
5422
5423 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5424 print-file-var-lib2.c, print-file-var-main.c and
5425 print-file-var.exp (located in gdb/testsuite/gdb.base).
5426
99a547d6
JB
54272012-05-10 Joel Brobecker <brobecker@adacore.com>
5428
5429 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5430 try locating the symbol in the symbol's own objfile first, before
5431 extending the search to all objfiles.
5432 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5433 out of lookup_symbol_aux_symtabs.
5434 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5435 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5436 Do not search EXCLUDE_OBJFILE.
5437 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5438 (lookup_symbol_global): Search for matches in the block's objfile
5439 first, before searching all other objfiles.
5440
0ece64fd
TG
54412012-05-10 Tristan Gingold <gingold@adacore.com>
5442
5443 * printcmd.c (set_command): Add pre/post inc/dec.
5444
3d16a105
FCE
54452012-05-09 Frank Ch. Eigler <fche@redhat.com>
5446
5447 * gdb.1: Document -ex option.
5448
2efbc0f7
JB
54492012-05-09 Joel Brobecker <brobecker@adacore.com>
5450
5451 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5452 * inferior.h (AT_SYMBOL): Delete.
5453
2c76a0c7
JB
54542012-05-09 Joel Brobecker <brobecker@adacore.com>
5455
5456 * mips-tdep.c (mips_push_dummy_code): New function.
5457 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5458 ON_STACK and install mips_push_dummy_code as our gdbarch
5459 push_dummy_code routine.
5460
9401a810
PA
54612012-05-09 Pedro Alves <palves@redhat.com>
5462
5463 * target.c (set_maintenance_target_async_permitted): Rename to ...
5464 (set_target_async_command): ... this.
5465 (show_maintenance_target_async_permitted): Rename to ...
5466 (show_target_async_command): ... this.
5467 (initialize_targets): Adjust.
5468
3929b321
DE
54692012-05-08 Doug Evans <dje@google.com>
5470
5471 * go-exp.y (classify_name): Add missing assignment of fields of
5472 yylval.ssym.
5473
c41535fd
EZ
54742012-05-08 Eli Zaretskii <eliz@gnu.org>
5475
5476 Display the ">" prompt in interactive mode while reading canned
5477 commands, even when the current interpreter is MI.
5478
5479 * interps.c (interp_set_temp): New function.
5480
5481 * interps.h (interp_set_temp): Add prototype.
5482
5483 * cli/cli-script.c (restore_interp): New cleanup function.
5484 (read_command_lines): Temporarily override the current interpreter
5485 with CLI and arrange for restoring the original one.
5486
c0749c4d
JS
54872012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5488
5489 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5490
d7333987
SDJ
54912012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5492
5493 * probe.c (parse_probes): Move conditional to check for
5494 debuginfo files from here...
5495 * stap-probe.c (stap_get_probes): ... to here.
5496
649e6d92
MK
54972012-05-07 Mark Kettenis <kettenis@gnu.org>
5498 H.J. Lu <hongjiu.lu@intel.com>
5499
5500 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5501 `movl %esp, %ebp' for the X32 ABI.
5502
f39c6ffd
TT
55032012-05-07 Tom Tromey <tromey@redhat.com>
5504
5505 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5506 get_DW_TAG_name.
5507 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5508 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5509 (dwarf_stack_op_name): Remove.
5510 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5511 (decode_locdesc): Use get_DW_OP_name.
5512 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5513 (dwarf2_compile_expr_to_ax): Likewise.
5514 (disassemble_dwarf_expression): Likewise.
5515 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5516
1e1f6591
CLT
55172012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5518
5519 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5520 (sh_linux_sigtramp_cache): New function.
5521 (sh_linux_sigreturn_init): New function.
5522 (sh_linux_rt_sigreturn_init): New function.
5523 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5524 patterns.
5525 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5526 syscall codes.
5527 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5528 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5529 (sh_linux_init_abi): Add init calls to register new tramp_frame
5530 definitions under 32-bit SH, update comments.
5531
545c08b4
PA
55322012-05-07 Pedro Alves <palves@redhat.com>
5533
daac165e
PA
5534 PR gdb/10952
5535
545c08b4
PA
5536 * amd64-linux-tdep.c: Include glibc-tdep.h.
5537 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5538 gdbarch_skip_solib_resolver callback.
5539
af2c1515
JK
55402012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5541
5542 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5543 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5544 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5545 (add_auto_load_safe_path): Change the error message.
5546 (_initialize_auto_load): Change the "safe-path" help text.
5547 * configure: Regenerate
5548 * configure.ac (--without-auto-load-safe-path): Set
5549 WITH_AUTO_LOAD_SAFE_PATH to /.
5550
1067f998
SDJ
55512012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5552
5553 * stap-probe.h: Do not include unecessary `probe.h'.
5554
45dfa85a
AM
55552012-05-05 Alan Modra <amodra@gmail.com>
5556
5557 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5558 bfd_und_section_ptr.
5559 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5560 and bfd_com_section_ptr.
5561
cf093994
JB
55622012-05-04 Joel Brobecker <brobecker@adacore.com>
5563
762ebb75 5564 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 5565
d40dc7a8
JB
55662012-05-04 Joel Brobecker <brobecker@adacore.com>
5567
5568 * windows-nat.h (segment_register_p_ftype): New typedef.
5569 (windows_set_segment_register_p): Add declaration.
5570 * windows-nat.c (segment_register_p): New static global.
5571 (windows_set_segment_register_p): New function.
5572 (do_windows_fetch_inferior_registers): Add special handling
5573 for segment registers.
5574 * amd64-windows-nat.c: #include "amd64-tdep.h".
5575 (amd64_windows_segment_register_p): New function.
5576 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5577 * i386-windows-nat.c: #include "i386-tdep.h".
5578 (i386_windows_segment_register_p): New function.
5579 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5580
52b3699b
TG
55812012-05-04 Tristan Gingold <gingold@adacore.com>
5582
5583 * printcmd.c (set_command): Emit a warning if the expression is not
5584 an assignment.
5585
94c74239
JB
55862012-05-03 Joel Brobecker <brobecker@adacore.com>
5587
5588 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5589 Make static.
5590
fcf57f19
SDJ
55912012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5592
5593 * stap-probe.c (stap_is_operator): Change declaration.
5594 (stap_get_opcode): Change return value.
5595 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5596 `stap_parse_argument_1'.
5597
27d2932e
PA
55982012-05-03 Pedro Alves <pedro@codesourcery.com>
5599
5600 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5601 debug log.
5602
a20ee7a4
SCR
56032012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5604
5605 Add two new methods global_block and static_block to gdb.Symtab
5606 objects.
5607 * NEWS (Python scripting): Add entry about the new methods.
5608 * python/py-symtab.c (stpy_global_block): New function which
5609 implements the gdb.Symtab.global_block() method.
5610 (stpy_static_block): New function which implements the
5611 gdb.Symtab.static_block() method.
5612 (symtab_object_methods): Add entries for the two new methods.
5613
943cb756
DE
56142012-05-03 Doug Evans <dje@google.com>
5615
5616 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5617 files.
5618
f4644a3f
YQ
56192012-05-03 Yao Qi <yao@codesourcery.com>
5620
5621 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5622 space.
5623 (i386_process_record): Ditto.
5624
ef61f180
JB
56252012-05-02 Joel Brobecker <brobecker@adacore.com>
5626
5627 * infcall.c (unwind_on_signal_p): Make static.
5628
02f1df11
JB
56292012-05-02 Joel Brobecker <brobecker@adacore.com>
5630
5631 * sol-thread.c (solaris_pid_to_str): Make static.
5632 (_initialize_sol_thread): Add prototype.
5633
39023530
JB
56342012-05-02 Joel Brobecker <brobecker@adacore.com>
5635
5636 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5637
c6b0c501
CF
56382012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5639
5640 * MAINTAINERS: Remove myself.
5641
1ef71717
JK
56422012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5643
5644 Fix --without-auto-load-safe-path for MS-Windows host platform.
5645 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5646
b31b86a7
EZ
56472012-05-02 Eli Zaretskii <eliz@gnu.org>
5648
5649 * gdb_curses.h: Undefine KEY_EVENT before including curses
5650 headers. Move "#undef MOUSE_MOVED" before any curses header
5651 inclusion.
5652
777532fc
SDJ
56532012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5654
5655 * features/i386/i386-mmx-linux.c: Regenerate.
5656 * features/rs6000/powerpc-32.c: Likewise.
5657 * features/rs6000/powerpc-32l.c: Likewise.
5658 * features/rs6000/powerpc-403.c: Likewise.
5659 * features/rs6000/powerpc-403gc.c: Likewise.
5660 * features/rs6000/powerpc-405.c: Likewise.
5661 * features/rs6000/powerpc-505.c: Likewise.
5662 * features/rs6000/powerpc-601.c: Likewise.
5663 * features/rs6000/powerpc-602.c: Likewise.
5664 * features/rs6000/powerpc-603.c: Likewise.
5665 * features/rs6000/powerpc-604.c: Likewise.
5666 * features/rs6000/powerpc-64.c: Likewise.
5667 * features/rs6000/powerpc-64l.c: Likewise.
5668 * features/rs6000/powerpc-750.c: Likewise.
5669 * features/rs6000/powerpc-860.c: Likewise.
5670 * features/rs6000/powerpc-e500.c: Likewise.
5671 * features/rs6000/powerpc-e500l.c: Likewise.
5672 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5673 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5674 * features/rs6000/rs6000.c: Likewise.
5675
d71871bc
SDJ
56762012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5677
5678 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5679 variable.
5680 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5681 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5682 (stap_parse_argument) <e>: Likewise.
5683 (handle_stap_probe) <byte_order>: Likewise.
5684
fd820528
DE
56852012-04-30 Doug Evans <dje@google.com>
5686
5687 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5688 init_and_read_dies_worker. All callers updated.
5689 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5690 replaced with init_cutu_and_read_dies.
5691 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5692 (find_partial_die): Remove FIXME. Don't free current CU.
5693
ec3f619d 56942012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
5695
5696 * contrib: New directory.
5697 * contrib/test_pubnames_and_indexes.py: New file.
5698
fceca515
DE
56992012-04-30 Doug Evans <dje@google.com>
5700
5701 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5702 All callers updated.
5703 (init_cu_die_reader): Verify the section is non-empty.
5704 (dwarf_decode_line_header): Don't dereference section->asection
5705 until we know the section is present.
5706
311fe7e1
SDJ
57072012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5708
5709 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5710 probes.
5711
5977971a
YQ
57122012-04-29 Yao Qi <yao@codesourcery.com>
5713
5714 * gdb-code-style.el: New hook gdb-markup-hook
5715 and gdb-comment-hook.
5716
dee91e82
DE
57172012-04-28 Doug Evans <dje@google.com>
5718
3019eac3
DE
5719 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5720 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5721 objfile->obfd.
5722 * symfile.h (dwarf2_debug_sections): New member addr.
5723 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5724 (ctx_no_get_addr_index): New function.
5725 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5726 (ctx_no_get_addr_index): Declare.
5727 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5728 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5729 (dwarf_expr_ctx_funcs): Update.
5730 (needs_get_addr_index): New function.
5731 (needs_frame_ctx_funcs): Update.
5732 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5733 * dwarf2read.c: #include "gdbcore.h".
5734 (dwarf2_per_objfile): New members addr, dwo_files.
5735 (dwarf2_elf_names): Add entry for addr.
5736 (struct dwo_section_names): New type.
5737 (dwo_section_names): New static global.
5738 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5739 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5740 old debug_types_section member updated to use this.
5741 Rename member debug_types_section to info_or_types_section,
5742 all uses updated.
5743 (signatured_type): Rename member type_offset to type_offset_in_tu,
5744 all uses updated. New member type_offset_in_section.
5745 (struct dwo_sections): New type.
5746 (struct dwo_unit): New type.
5747 (struct dwo_file): New type.
5748 (die_reader_specs): New member dwo_file.
5749 (dwarf2_locate_sections): Watch for .debug_addr.
5750 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5751 (dwarf2_read_section): Get bfd of section from bfd's asection,
5752 instead of objfile.
5753 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5754 (create_signatured_type_table_from_index): Initialize
5755 sig_type->info_or_types_section.
5756 (dw2_get_file_names): Statement lists for type units with DWO files
5757 live in the DWO file.
5758 (create_debug_types_hash_table): New function.
5759 (create_all_type_units): Rewrite.
5760 (init_cu_die_reader): New arg dwo_file, all callers updated.
5761 (init_and_read_dies_worker): Get section from
5762 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5763 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5764 continue reading the CU/TU from there.
5765 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5766 updated. Get section from this_cu->info_or_types_section.
5767 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5768 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5769 DW_FORM_GNU_str_index.
5770 (hash_dwo_file, eq_dwo_file): New functions.
5771 (allocate_dwo_file_hash_table): New function.
5772 (hash_dwo_unit, eq_dwo_unit): New functions.
5773 (allocate_dwo_unit_table): New function.
5774 (dwarf2_locate_dwo_sections): New function.
5775 (struct create_dwo_info_table_data): New type.
5776 (create_debug_info_hash_table_reader): New function.
5777 (create_debug_info_hash_table): New function.
5778 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5779 (lookup_dwo_file): New function.
5780 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5781 (free_dwo_file, free_dwo_file_cleanup): New functions.
5782 (free_dwo_file_from_slot, free_dwo_files): New functions.
5783 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5784 (dwarf2_record_block_ranges): Ditto.
5785 (read_partial_die): Ditto.
5786 (process_enumeration_scope): Update to use type_offset_in_section.
5787 (read_full_die_1): New function.
5788 (read_full_die): Rewrite.
5789 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5790 DW_FORM_GNU_str_index.
5791 (read_addr_index_1, read_addr_index): New functions.
5792 (read_addr_index_from_leb128): New function.
5793 (struct dwarf2_read_addr_index_data): New type.
5794 (dwarf2_read_addr_index_reader): New function.
5795 (dwarf2_read_addr_index): New function.
5796 (read_str_index): New function.
5797 (leb128_size): New function.
5798 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5799 If processing a type unit from a DWO file, get the line section
5800 from the DWO file.
5801 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5802 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5803 DW_FORM_GNU_str_index.
5804 (lookup_die_type): Check whether section offset of type's die is
5805 known before looking it up. Remove assert. Condition can
5806 legimately happen for inter-cu type references.
5807 (dwarf_attr_name): Handle Fission attributes.
5808 (dwarf_form_name): Handle Fission forms.
5809 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5810 DW_FORM_GNU_str_index.
5811 (follow_die_sig): Update to use type_offset_in_section.
5812 (decode_locdesc): New case DW_OP_GNU_addr_index.
5813 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5814 DW_FORM_GNU_str_index.
5815 (cu_debug_loc_section): New function.
5816 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5817 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5818 Free DWO files if present.
5819 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5820
dee91e82
DE
5821 Refactor DIE reading.
5822 * dwarf2read.c (dwarf2_per_objfile): Replace members
5823 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5824 (die_reader_specs): New member "die_section". Temporarily make
5825 member "buffer" non-const, pending constifying all info_ptr uses.
5826 (die_reader_func_ftype): New typedef.
5827 (dw2_get_file_names_reader): New function.
5828 (dw2_get_file_names): Rewrite.
5829 (read_and_check_type_unit_head): Rename arg type_offset to
5830 type_offset_in_tu.
5831 (create_all_type_units): Improve debugging message.
5832 Improve dummy type unit check.
5833 (init_cu_die_reader): New arg "section". All callers updated.
5834 (init_and_read_dies_worker): New function.
5835 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5836 (init_cutu_and_read_dies_no_follow): New function.
5837 (init_cutu_and_read_dies_simple): New function.
5838 (process_psymtab_comp_unit_reader): New function.
5839 (process_psymtab_comp_unit): Delete args section,
5840 is_debug_types_section. Rewrite. All callers updated.
5841 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5842 All callers updated. Rewrite.
5843 (load_partial_comp_unit_reader): New function.
5844 (load_partial_comp_unit): Rewrite.
5845 (skip_children): New arg reader. Delete args buffer, cu.
5846 All callers updated.
5847 (skip_one_die): New arg reader. Delete args buffer, cu.
5848 All callers updated.
5849 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5850 All callers updated.
5851 (load_full_comp_unit_reader): New function.
5852 (load_full_comp_unit): Rewrite.
5853 (read_comp_unit): Delete.
5854 (read_die_and_children_1): Delete, contents moved ...
5855 (read_die_and_children): ... here.
5856 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5857 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5858 All callers updated.
5859 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5860 All callers updated.
5861 (find_partial_die): Rewrite load_all_dies support.
5862 (read_attribute_value): New arg reader. Delete args abfd, cu.
5863 All callers updated.
5864 (read_attribute): New arg reader. Delete args abfd, cu.
5865 All callers updated.
5866 (load_full_type_unit): Add assert.
5867 (read_signatured_type_reader): New function.
5868 (read_signatured_type): Rewrite.
5869 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5870 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5871 All callers updated. Set per_cu->cu = NULL after freeing it.
5872 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5873 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5874 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5875 (set_die_type): Update.
5876 (get_die_type_at_offset): Update.
5877 (read_file_scope): Call prepare_one_comp_unit.
5878 (read_type_unit_scope): Ditto.
5879 (prepare_one_comp_unit): Set producer if present.
5880
72d59e0d
SDJ
58812012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5882
5883 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5884 gettext function on `error'.
5885
0fefef59
DE
58862012-04-27 Doug Evans <dje@google.com>
5887
5888 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5889 is empty.
5890
28106bc2
SDJ
58912012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5892 Tom Tromey <tromey@redhat.com>
5893
5894 * breakpoint.c (struct breakpoint_objfile_data)
5895 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5896 <exception_probes>: New fields.
5897 (free_breakpoint_probes): New function.
5898 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5899 `_Unwind_DebugHook'.
5900 (create_exception_master_breakpoint): Likewise.
5901 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5902 * infrun.c: Including necessary header files for handling SystemTap
5903 probes.
5904 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5905 via SystemTap probes.
5906 (check_exception_resume): Remove `func' argument. Handle exception
5907 unwinding breakpoint set via a SystemTap probe.
5908 (insert_exception_resume_from_probe): New function.
5909
55aa24fb
SDJ
59102012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5911 Tom Tromey <tromey@redhat.com>
5912 Jan Kratochvil <jan.kratochvil@redhat.com>
5913
5914 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5915 (COMMON_OBS): Likewise.
5916 (HFILES_NO_SRCDIR): Add `probe'.
5917 * NEWS: Mention support for static and SystemTap probes.
5918 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5919 SystemTap probes' arguments parser.
5920 * arm-linux-tdep.c: Including headers needed to perform the parsing
5921 of SystemTap probes' arguments.
5922 (arm_stap_is_single_operand): New function.
5923 (arm_stap_parse_special_token): Likewise.
5924 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5925 probes' arguments parser.
5926 * ax-gdb.c (require_rvalue): Removing static declaration.
5927 (gen_expr): Likewise.
5928 * ax-gdb.h (gen_expr): Declaring function.
5929 (require_rvalue): Likewise.
5930 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5931 (bkpt_probe_breakpoint_ops): New variable.
5932 (momentary_breakpoint_from_master): Set the `probe' value.
5933 (add_location_to_breakpoint): Likewise.
5934 (break_command_1): Using proper breakpoint_ops according to the
5935 argument passed by the user in the command line.
5936 (bkpt_probe_insert_location): New function.
5937 (bkpt_probe_remove_location): Likewise.
5938 (bkpt_probe_create_sals_from_address): Likewise.
5939 (bkpt_probe_decode_linespec): Likewise.
5940 (tracepoint_probe_create_sals_from_address): Likewise.
5941 (tracepoint_probe_decode_linespec): Likewise.
5942 (tracepoint_probe_breakpoint_ops): New variable.
5943 (trace_command): Using proper breakpoint_ops according to the
5944 argument passed by the user in the command line.
5945 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5946 static probes on breakpoints and tracepoints.
5947 * breakpoint.h (struct bp_location) <probe>: New field.
5948 * cli-utils.c (skip_spaces_const): New function.
5949 (extract_arg): Likewise.
5950 * cli-utils.h (skip_spaces_const): Likewise.
5951 (extract_arg): Likewise.
5952 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5953 * configure.ac: Append `stap-probe.o' to be generated when ELF
5954 support is present.
5955 * configure: Regenerate.
5956 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5957 * elfread.c: Include `probe.h' and `arch-utils.h'.
5958 (probe_key): New variable.
5959 (elf_get_probes): New function.
5960 (elf_get_probe_argument_count): Likewise.
5961 (elf_evaluate_probe_argument): Likewise.
5962 (elf_compile_to_ax): Likewise.
5963 (elf_symfile_relocate_probe): Likewise.
5964 (stap_probe_key_free): Likewise.
5965 (elf_probe_fns): New variable.
5966 (elf_sym_fns): Add `sym_probe_fns' value.
5967 (elf_sym_fns_lazy_psyms): Likewise.
5968 (elf_sym_fns_gdb_index): Likewise.
5969 (_initialize_elfread): Initialize objfile cache for static
5970 probes.
5971 * gdb_vecs.h (struct probe): New forward declaration.
5972 (probe_p): New VEC declaration.
5973 * gdbarch.c: Regenerate.
5974 * gdbarch.h: Regenerate.
5975 * gdbarch.sh (stap_integer_prefix): New variable.
5976 (stap_integer_suffix): Likewise.
5977 (stap_register_prefix): Likewise.
5978 (stap_register_suffix): Likewise.
5979 (stap_register_indirection_prefix): Likewise.
5980 (stap_register_indirection_suffix): Likewise.
5981 (stap_gdb_register_prefix): Likewise.
5982 (stap_gdb_register_suffix): Likewise.
5983 (stap_is_single_operand): New function.
5984 (stap_parse_special_token): Likewise.
5985 (struct stap_parse_info): Forward declaration.
5986 * i386-tdep.c: Including headers needed to perform the parsing
5987 of SystemTap probes' arguments.
5988 (i386_stap_is_single_operand): New function.
5989 (i386_stap_parse_special_token): Likewise.
5990 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5991 probes' arguments parser.
5992 * i386-tdep.h (i386_stap_is_single_operand): New function.
5993 (i386_stap_parse_special_token): Likewise.
5994 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5995 * mipsread.c (ecoff_sym_fns): Likewise.
5996 * objfiles.c (objfile_relocate1): Support relocation for static
5997 probes.
5998 * parse.c (prefixify_expression): Remove static declaration.
5999 (initialize_expout): Likewise.
6000 (reallocate_expout): Likewise.
6001 * parser-defs.h (initialize_expout): Declare function.
6002 (reallocate_expout): Likewise.
6003 (prefixify_expression): Likewise.
6004 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6005 of SystemTap probes' arguments.
6006 (ppc_stap_is_single_operand): New function.
6007 (ppc_stap_parse_special_token): Likewise.
6008 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6009 probes' arguments parser.
6010 * probe.c: New file, for generic statically defined probe support.
6011 * probe.h: Likewise.
6012 * s390-tdep.c: Including headers needed to perform the parsing of
6013 SystemTap probes' arguments.
6014 (s390_stap_is_single_operand): New function.
6015 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6016 probes' arguments parser.
6017 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6018 * stap-probe.c: New file, for SystemTap probe support.
6019 * stap-probe.h: Likewise.
6020 * symfile.h: Include `gdb_vecs.h'.
6021 (struct sym_probe_fns): New struct.
6022 (struct sym_fns) <sym_probe_fns>: New field.
6023 * symtab.c (init_sal): Initialize `probe' field.
6024 * symtab.h (struct probe): Forward declaration.
6025 (struct symtab_and_line) <probe>: New field.
6026 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6027 locations.
6028 (stop_tracing): Likewise.
6029 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6030
22d2b532
SDJ
60312012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6032 Tom Tromey <tromey@redhat.com>
6033
6034 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6035 and to compile agent expressions.
6036 * infrun.c (siginfo_make_value): New argument `ignore'.
6037 (siginfo_funcs): New struct.
6038 (_initialize_infrun): New argument when calling
6039 `create_internalvar_type_lazy'.
6040 * thread.c (thread_id_make_value): New argument `ignore'.
6041 (thread_funcs): New struct.
6042 (_initialize_thread): New argument when calling
6043 `create_internalvar_type_lazy'.
6044 * tracepoint.c (sdata_make_value): New argument `ignore'.
6045 (sdata_funcs): New struct.
6046 (_initialize_tracepoint): New argument when calling
6047 `create_internalvar_type_lazy'.
6048 * value.c (make_value): New struct.
6049 (create_internalvar_type_lazy): New argument `data'.
6050 (compile_internalvar_to_ax): New function.
6051 (value_of_internalvar): Properly handling `make_value' case.
6052 (clear_internalvar): Likewise.
6053 (show_convenience): Adding `TRY_CATCH' block.
6054 * value.h (internalvar_make_value): Delete, replace by...
6055 (struct internalvar_funcs): ... this.
6056 (create_internalvar_type_lazy) <fun>: Delete argument.
6057 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6058 (compile_internalvar_to_ax): New function.
6059 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6060 (tlb_funcs): New struct.
6061 (_initialize_windows_tdep): New argument when calling
6062 `create_internalvar_type_lazy'.
6063
91da1414
MW
60642012-04-27 Mark Wielaard <mjw@redhat.com>
6065
6066 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6067 see whether it is an address or a constant offset from DW_AT_low_pc.
6068 (dwarf2_record_block_ranges): Likewise.
6069 (read_partial_die): Likewise.
6070
4ab9d8ec
MW
60712012-04-26 Mark Wielaard <mjw@redhat.com>
6072
6073 * MAINTAINERS (Write After Approval): Add myself to the list.
6074
a0911fd0
MR
60752012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6076
6077 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6078 (proc_prettyprint_signal): Likewise.
6079 (proc_prettyprint_faultset): Likewise.
6080 (proc_prettyprint_fault): Likewise.
6081 (proc_prettyprint_actionset): Likewise.
6082 (proc_prettyprint_flags): Move to new proc-flags.c section.
6083 (proc_prettyfprint_flags): New prototype.
6084 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6085 (proc_syscall, proc_cursig): Likewise.
6086 (proc_set_kill_on_last_close): Likewise.
6087 (proc_unset_kill_on_last_close): Likewise.
6088 (proc_set_watchpoint): Make static.
6089 (proc_delete_dead_threads): Likewise.
6090 (procfs_set_watchpoint): Likewise.
6091 (_initialize_procfs): Add prototype.
6092 * proc-events.c: Include proc-utils.h.
6093 (init_syscall_table): Make static.
6094 * proc-api.c (_initialize_proc_api): Add prototype.
6095 * proc-flags.c: Include proc-utils.h.
6096
9009e1ae
MR
60972012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6098
6099 * configure.ac: Add AC_ARG_PROGRAM.
6100 * configure: Regenerate.
6101
4fae6e18
JK
61022012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6103
6104 Fix DW_AT_lower_bound defaults for DWARF-4+.
6105 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6106 high. New variable low_default_is_valid. Implement DWARF-4+
6107 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6108 no default by the DWARF standard.
6109
14132e89 61102012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 6111 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
6112
6113 * infrun.c (handle_inferior_event): Move the check for return
6114 trampolines ahead of the check for function trampolines.
6115 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6116 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6117 (mips_str_mips16_ret_stub): Likewise.
6118 (mips_str_call_fp_stub): Likewise.
6119 (mips_str_call_stub): Likewise.
6120 (mips_str_fn_stub): Likewise.
6121 (mips_str_pic): Likewise.
6122 (mips_in_frame_stub): New function.
6123 (mips_unwind_pc): Return the return address rather than the PC
6124 if the PC of an intermediate frame is inside a call thunk.
6125 (mips_is_stub_suffix): New function.
6126 (mips_is_stub_mode): Likewise.
6127 (mips_get_mips16_fn_stub_pc): Likewise.
6128 (mips_skip_mips16_trampoline_code): Update to handle all the
6129 currently generated stub types. Don't recurse into __fn_stub
6130 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6131 Use cooked register accesses.
6132 (mips_in_return_stub): Reintroduce function.
6133 (mips_skip_trampoline_code): Traverse trampolines recursively.
6134 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6135
518f0db5 61362012-04-26 Joel Brobecker <brobecker@adacore.com>
6137
6138 GDB 7.4.1 released.
6139
3184d3f9
JL
61402012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6141
6142 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6143 * features/arm-with-m-vfp-d16.xml: New file. Describes
6144 Cortex-M with VFPv4-sp-d16 FPU register layout.
6145 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6146 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6147 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6148 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6149 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6150
b6201d44
DE
61512012-04-25 Doug Evans <dje@google.com>
6152
6153 * cli/cli-decode.c (print_doc_line): Use stream instead of
6154 current_uiout.
6155
4e2f8df6
SDJ
61562012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6157
6158 * features/arm-with-iwmmxt.c: Regenerate.
6159 * features/arm-with-m-fpa-layout.c: Likewise.
6160 * features/arm-with-m.c: Likewise.
6161 * features/arm-with-neon.c: Likewise.
6162 * features/arm-with-vfpv2.c: Likewise.
6163 * features/arm-with-vfpv3.c: Likewise.
6164 * features/mips-dsp-linux.c: Likewise.
6165 * features/mips-linux.c: Likewise.
6166 * features/mips64-dsp-linux.c: Likewise.
6167 * features/mips64-linux.c: Likewise.
6168 * features/s390-linux32.c: Likewise.
6169 * features/s390-linux32v1.c: Likewise.
6170 * features/s390-linux32v2.c: Likewise.
6171 * features/s390-linux64.c: Likewise.
6172 * features/s390-linux64v1.c: Likewise.
6173 * features/s390-linux64v2.c: Likewise.
6174 * features/s390x-linux64.c: Likewise.
6175 * features/s390x-linux64v1.c: Likewise.
6176 * features/s390x-linux64v2.c: Likewise.
6177 * features/tic6x-c62x-linux.c: Likewise.
6178 * features/tic6x-c62x.c: Likewise.
6179 * features/tic6x-c64x-linux.c: Likewise.
6180 * features/tic6x-c64x.c: Likewise.
6181 * features/tic6x-c64xp-linux.c: Likewise.
6182 * features/tic6x-c64xp.c: Likewise.
6183 * target-descriptions.c: Only generate `field_type' and `type'
6184 variables when needed.
6185
2def3e66
JB
61862012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6187
6188 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6189
a766d390
DE
61902012-04-25 Doug Evans <dje@google.com>
6191
6192 Initial pass at Go language support.
6193 * NEWS: Mention Go.
6194 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6195 go-valprint.c.
6196 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6197 (YYFILES): Add go-exp.c.
6198 (YYOBJ): Add go-exp.o.
6199 (local-maintainer-clean): Delete go-exp.c.
6200 * defs.h (enum language): Add language_go.
6201 * dwarf2read.c: #include "go-lang.h".
6202 (fixup_go_packaging): New function.
6203 (process_full_comp_unit): Call it when processing Go CUs.
6204 (dwarf2_physname): Add Go support.
6205 (read_file_scope): Handle missing language spec for GNU Go.
6206 (set_cu_language): Handle DW_LANG_Go.
6207 * go-exp.y: New file.
6208 * go-lang.h: New file.
6209 * go-lang.c: New file.
6210 * go-typeprint.c: New file.
6211 * go-valprint.c: New file.
6212 * symtab.c: #include "go-lang.h".
6213 (symbol_set_language): Handle language_go.
6214 (symbol_find_demangled_name, symbol_set_names): Ditto.
6215 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6216
4e2af517
JM
62172012-04-24 Jim Meyering <meyering@redhat.com>
6218
6219 avoid a few strncpy-induced buffer overruns
6220 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6221 fname and psargs before trying to concatenate.
6222 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6223 "name" before applying strchr.
6224
b77b7f52
SCR
62252012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6226
6227 * CONTRIBUTE: Use unified diff instead of context diff when
6228 generating patches.
6229
6321c22a
MR
62302012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6231
6232 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6233 code. Handle JR.HB correctly.
6234
742c84f6
MR
62352012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6236
6237 * mips-tdep.c
6238 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6239 with the other MIPS16 helpers.
6240
7fc7e0c3
SDJ
62412012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6242
6243 * observer.sh: Conditionally declare `args', thus cleaning up
6244 unused instances of this variable.
6245
20388dd6
YQ
62462012-04-24 Yao Qi <yao@codesourcery.com>
6247
6248 Revert this patch to allow breakpoint always-inserted
6249 in record target.
6250 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
6251 * breakpoint.c: Include record.h.
6252 (breakpoints_always_inserted_mode): Return false when the record
6253 target is in use.
20388dd6
YQ
6254
6255 * breakpoint.c (iterate_over_bp_locations): New.
6256 * breakpoint.h: Declare.
6257 New typedef walk_bp_location_callback.
6258 * record.c (record_open): Call record_init_record_breakpoints.
6259 (record_sync_record_breakpoints): New.
6260 (record_init_record_breakpoints): New.
6261 * NEWS: Mention supporting breakpoint always-inserted mode in
6262 record target.
6263
4734f50e
MK
62642012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6265
6266 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6267 any thread.
6268
c326b90e
YQ
62692012-04-24 Yao Qi <yao@codesourcery.com>
6270
6271 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6272 (is_catchpoint): ... it.
6273 (print_one_breakpoint_location): Caller update.
6274 * breakpoint.h: Update declaration.
6275
d8fb5a1e
DM
62762012-04-23 David S. Miller <davem@davemloft.net>
6277
6278 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6279
34431a2a
TT
62802012-04-23 Tom Tromey <tromey@redhat.com>
6281
6282 * buildsym.c (add_free_pendings): Remove.
6283 * buildsym.h (add_free_pendings): Remove.
6284
4568ecf9
DE
62852012-04-23 Doug Evans <dje@google.com>
6286
6287 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6288 attr.u.unsnd instead of attr.u.addr.
6289 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6290 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6291 DW_FORM_ref_udata.
6292 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6293 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6294 DW_FORM_ref_udata.
6295 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6296
dca9aa3a
MR
62972012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6298
6299 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6300 (mips_o32_return_value): Likewise.
6301 (mips_o64_return_value): Likewise.
6302
c8ea1972
PH
63032012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6304
6305 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
6306 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6307 their treatment in eval.c.
c8ea1972 6308
8d1b3521
DM
63092012-04-21 David S. Miller <davem@davemloft.net>
6310
6311 * sparc-tdep.c (X_DISP10): Define.
6312 (sparc_analyze_control_transfer): Handle compare-and-branch.
6313
03145bf4
JL
63142012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6315
6316 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6317 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6318
004159a2 63192012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 6320 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
6321
6322 * mips-tdep.c (mips_float_register_p): New function.
6323 (mips_convert_register_float_case_p): Use mips_float_register_p.
6324 (mips_register_type): Likewise.
6325 (mips_print_register): Likewise.
6326 (print_gp_register_row): Likewise.
6327 (mips_print_registers_info): Likewise.
6328
7f0e6aae
MR
63292012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6330
6331 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6332 of mips16 symbols.
6333
bc17beea
AP
63342012-04-20 Andrew Pinski <apinski@cavium.com>
6335
6336 * MAINTAINERS (Write After Approval): Add myself to the list.
6337
1730a5a5
SDJ
63382012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6339
6340 * MAINTAINERS: Update my e-mail address.
6341
38ea300a
PA
63422012-04-20 Pedro Alves <palves@redhat.com>
6343
6344 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6345 $srcdir.
6346 * configure: Regenerate.
6347
111dfaae
SDJ
63482012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6349
6350 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6351 declaration.
6352 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6353
4fb2c64a
JK
63542012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6355
6356 Fix compilation compatibility with python-2.4
6357 * python/py-type.c (convert_field): Cast ADDRSTRING for
6358 PyObject_SetAttrString as non-const. New comment.
6359
6328eb38
TT
63602012-04-19 Tom Tromey <tromey@redhat.com>
6361
6362 * top.c (quit_target): Use all_cleanups.
6363 * main.c (captured_command_loop): Use all_cleanups.
6364 * exceptions.c (throw_exception): Use all_cleanups.
6365
c971b7fa
PA
63662012-04-19 Pedro Alves <palves@redhat.com>
6367
6368 * Makefile.in (GNULIB_BUILDDIR): New.
6369 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6370 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6371 (CLEANDIRS). Remove gnulib/import.
6372 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6373 (all-lib): Ditto.
6374 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6375 (gnulib/import/Makefile): Replace gnulib/import with
6376 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6377 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6378 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6379 acx_configure_dir.m4.
6380 * acinclude.m4: Include acx_configure_dir.m4.
6381 * acx_configure_dir.m4: New file.
6382 * aclocal.m4: Regenerate.
a09130f9
PA
6383 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6384 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6385 (GNULIB): New variable.
6386 (GNULIB_STDINT_H): Adjust.
6387 (AC_OUTPUT): Don't output gnulib/Makefile.
6388 * gdb/defs.h: Include build-gnulib/config.h.
6389 * aclocal.m4: Regenerate.
6390 * config.in: Regenerate.
6391 * configure: Regenerate.
6392
6393 * gnulib/Makefile.in: New file.
6394 * gnulib/configure.ac: New file.
6395 * gnulib/aclocal.m4: New file.
6396 * gnulib/config.in: New file.
6397 * gnulib/configure: New file.
c971b7fa
PA
6398 * gnulib/: Re-run gnulib-tool to adjust.
6399
b10faa68
DE
64002012-04-19 Doug Evans <dje@google.com>
6401
6402 * cleanups.h (struct cleanup): Move to cleanups.c.
6403 (make_cleanup_dtor_ftype): New typedef.
6404 (make_cleanup_dtor): Use it.
6405 (ALL_CLEANUPS): Replace with ...
6406 (all_cleanups): ... this. Declare. All uses updated.
6407 * cleanups.c: #include "gdb_assert.h".
6408 (sentinel_cleanup): New static global.
6409 (SENTINEL_CLEANUP): Define.
6410 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6411 (make_my_cleanup2): Assert result is non-NULL.
6412 (all_cleanups): New function.
6413 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6414 of NULL.
6415
d8c267cc
PA
64162012-04-19 Pedro Alves <palves@redhat.com>
6417
6418 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6419 Adjust paths to gnulib imported files.
6420
809277f8
PA
64212012-04-19 Pedro Alves <palves@redhat.com>
6422
6423 * gnulib/: Move whole directory ...
6424 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6425 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6426 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6427 (aclocal_m4_deps): Adjust.
6428 * aclocal.m4: Regenerate.
6429 * configure: Regenerate.
6430 * configure.ac: Adjust AC_OUTPUT output.
6431
aad9eab9
YQ
64322012-04-19 Yao Qi <yao@codesourcery.com>
6433
6434 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6435 (vec.o): New rule.
6436 * vec.c: Move it ...
6437 * common/vec.c: ... here.
6438 * vec.h: Move it ...
6439 * common/vec.h: ... here.
6440
48fe4669
YQ
64412012-04-19 Yao Qi <yao@codesourcery.com>
6442
6443 * gdb-code-style.el: New.
6444
770d76d7
PA
64452012-04-18 Pedro Alves <palves@redhat.com>
6446
6447 Update gnulib from latest git.
6448 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6449
6450 * gnulib/Makefile.am: Update.
6451 * gnulib/dummy.c: Update.
6452 * gnulib/extra/arg-nonnull.h: Update.
6453 * gnulib/extra/c++defs.h: Update.
6454 * gnulib/extra/update-copyright: Update.
6455 * gnulib/extra/warn-on-use.h: Update.
6456 * gnulib/inttypes.in.h: Update.
6457 * gnulib/m4/00gnulib.m4: Update.
6458 * gnulib/m4/extensions.m4: Update.
6459 * gnulib/m4/gnulib-cache.m4: Update.
6460 * gnulib/m4/gnulib-common.m4: Update.
6461 * gnulib/m4/gnulib-comp.m4: Update.
6462 * gnulib/m4/gnulib-tool.m4: Update.
6463 * gnulib/m4/include_next.m4: Update.
6464 * gnulib/m4/inttypes-pri.m4: Update.
6465 * gnulib/m4/inttypes.m4: Update.
6466 * gnulib/m4/longlong.m4: Update.
6467 * gnulib/m4/memchr.m4: Update.
6468 * gnulib/m4/memmem.m4: Update.
6469 * gnulib/m4/mmap-anon.m4: Update.
6470 * gnulib/m4/multiarch.m4: Update.
6471 * gnulib/m4/onceonly.m4: Update.
6472 * gnulib/m4/stddef_h.m4: Update.
6473 * gnulib/m4/stdint.m4: Update.
6474 * gnulib/m4/string_h.m4: Update.
6475 * gnulib/m4/warn-on-use.m4: Update.
6476 * gnulib/m4/wchar_h.m4: Update.
6477 * gnulib/m4/wchar_t.m4: Update.
6478 * gnulib/m4/wint_t.m4: Update.
6479 * gnulib/memchr.c: Update.
6480 * gnulib/memmem.c: Update.
6481 * gnulib/stddef.in.h: Update.
6482 * gnulib/stdint.in.h: Update.
6483 * gnulib/str-two-way.h: Update.
6484 * gnulib/string.in.h: Update.
6485 * gnulib/wchar.in.h: Update.
6486
6487 * gnulib/extra/arg-nonnull.h: Delete.
6488 * gnulib/extra/c++defs.h: Delete.
6489 * gnulib/extra/warn-on-use.h: Delete.
6490 * gnulib/m4/wchar_h.m4: Delete.
6491 * gnulib/m4/wint_t.m4: Delete.
6492 * gnulib/wchar.in.h: Delete.
6493
6494 * gnulib/extra/snippets/arg-nonnull.h: New.
6495 * gnulib/extra/snippets/c++defs.h: New.
6496 * gnulib/extra/snippets/warn-on-use.h: New.
6497
6498 * aclocal.m4: Regenerate.
6499 * config.in: Regenerate.
6500 * configure: Regenerate.
6501 * gnulib/Makefile.in: Regenerate.
6502
174e088e
PA
65032012-04-18 Pedro Alves <palves@redhat.com>
6504
6505 Reimport the update-copyright module from gnulib
6506 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6507
6508 * configure: Regenerate.
6509 * gnulib/Makefile.am: Update.
6510 * gnulib/Makefile.in: Regenerate.
6511 * gnulib/extra/update-copyright: Update.
6512 * gnulib/m4/gnulib-cache.m4: Update.
6513 * gnulib/m4/gnulib-comp.m4: Update.
6514
7f533142
JB
65152012-04-18 Tristan Gingold <gingold@adacore.com>
6516
6517 * configure.ac (aix): Put -lpthread into libs.
6518 * configure: Regenerate.
6519
001822aa
TT
65202012-04-18 Tom Tromey <tromey@redhat.com>
6521
6522 * linespec.c (convert_linespec_to_sals): Don't use
6523 SYMBOL_OBJ_SECTION.
6524 (compare_msymbols): Arguments are minsym_and_objfile, not
6525 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6526
db026a31
PA
65272012-04-18 Pedro Alves <palves@redhat.com>
6528
6529 Revert gnulib/ part of:
6530 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6531 Copyright year update in most files (performed by copyright.sh).
6532
12df843f
JK
65332012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6534
6535 Fix 64-bit constants on 32-bit hosts.
6536 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6537 from unsigned long to ULONGEST.
6538 (read_signed_leb128): Change declaration return type from long to
6539 LONGEST.
6540 (dwarf2_const_value_attr): Change declaration parameter value from long
6541 to LONGEST.
6542 (dwarf2_compute_name): Change variable value from long to LONGEST.
6543 (read_unsigned_leb128): Change return type, variable result and some
6544 casts from unsigned long to ULONGEST.
6545 (read_signed_leb128): Change return type, variable result and some
6546 casts from long to LONGEST.
6547 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6548 value from long to LONGEST.
6549 (dwarf2_const_value): Change variable value from long to LONGEST.
6550 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6551 plongest and hex_string.
6552 * symtab.h (struct general_symbol_info): Change ivalue from long to
6553 LONGEST, remove the comment.
6554 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6555 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6556
14e75d8e
JK
65572012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6558
6559 PR symtab/7259:
6560 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6561 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
6562 (ada_discrete_type_low_bound): Fix function comment. Use
6563 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
6564 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6565 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6566 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6567 Use TYPE_FIELD_ENUMVAL.
6568 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6569 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6570 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6571 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6572 TYPE_CODE_ENUM.
6573 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6574 * dwarf2read.c (process_enumeration_scope): Likewise.
6575 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6576 field.bitpos.
6577 (class StructMainTypePrettyPrinter): Support also
6578 FIELD_LOC_KIND_ENUMVAL.
6579 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6580 TYPE_CODE_ENUM.
6581 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6582 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6583 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6584 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6585 field enumval.
6586 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6587 accommodate enumval.
6588 (struct call_site): Adjust loc_kind to accommodate enumval.
6589 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6590 (TYPE_FIELD_ENUMVAL): New macros.
6591 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6592 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6593 TYPE_CODE_ENUM.
6594 * p-typeprint.c (pascal_type_print_base): Likewise.
6595 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6596 enumval.
6597 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6598 * python/py-type.c (convert_field): New variable addrstring. Use
6599 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6600 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6601 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6602 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6603 TYPE_CODE_ENUM.
6604 * valprint.c (generic_val_print): Likewise.
6605
380bca97
DE
66062012-04-17 Doug Evans <dje@google.com>
6607
dcc07052
DE
6608 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6609
380bca97
DE
6610 * dwarf2read.c: Whitespace fixes.
6611 (lookup_signatured_type): Tweak comment.
6612 (get_die_type_at_offset): Fix comment.
6613
ec92004f
JB
66142012-04-17 Joel Brobecker <brobecker@adacore.com>
6615
6616 * xcoffread.c (xcoff_secnum_to_sections): New function.
6617 (secnum_to_section, secnum_to_bfd_section): Reimplement
6618 using xcoff_secnum_to_sections. Rename "secnum" parameter
6619 into "n_scnum".
6620 (RECORD_MINIMAL_SYMBOL): Delete.
6621 (record_minimal_symbol): New function.
6622 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6623 by call to record_minimal_symbol and set misc_func_recorded
6624 to 1. Set last_csect_sec to the XCOFF section index instead
6625 of GDB's section_offset index. Update calls to
6626 prim_record_minimal_symbol_and_info to pass the BFD section
6627 as well.
6628
40301fb7
JB
66292012-04-17 Joel Brobecker <brobecker@adacore.com>
6630
6631 * xcoffread.c (read_xcoff_symtab): Delete variables
6632 last_csect_val and last_csect_sec and associated code.
6633
e0088cfd
DE
66342012-04-17 Doug Evans <dje@google.com>
6635
58d5e2c3
DE
6636 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6637 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6638 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6639 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6640
c27f5738
DE
6641 * cleanups.h: New file.
6642 * cleanups.c: New file.
6643 * Makefile.in (SFILES): Add cleanups.c.
6644 (HFILES_NO_SRCDIR): Add cleanups.h.
6645 (COMMON_OBS): Add cleanups.o.
6646 * defs.h (struct cleanup): Moved to cleanups.h.
6647 (do_cleanups,do_final_cleanups): Ditto.
6648 (discard_cleanups,discard_final_cleanups): Ditto
6649 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6650 (save_cleanups,save_final_cleanups): Ditto.
6651 (restore_cleanups,restore_final_cleanups): Ditto.
6652 (null_cleanup): Ditto.
6653 (make_my_cleanup,make_my_cleanup2): Ditto.
6654 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6655 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6656 (do_cleanups,do_final_cleanups): Ditto.
6657 (discard_cleanups,discard_final_cleanups): Ditto
6658 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6659 (save_cleanups,save_final_cleanups): Ditto.
6660 (restore_cleanups,restore_final_cleanups): Ditto.
6661 (null_cleanup): Ditto.
6662 (make_my_cleanup,make_my_cleanup2): Ditto.
6663 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6664
e0088cfd
DE
6665 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6666 make_my_cleanup.
6667 (make_cleanup_dyn_string_delete): Ditto.
6668 (make_cleanup_ui_file_delete): Ditto.
6669 (make_cleanup_ui_out_redirect_pop): Ditto.
6670 (make_cleanup_free_section_addr_info): Ditto.
6671 (make_cleanup_restore_integer): Ditto.
6672 (make_cleanup_unpush_target): Ditto.
6673 (make_cleanup_value_free_to_mark): Ditto.
6674 (make_cleanup_value_free): Ditto.
6675 (make_cleanup_free_so): Ditto.
6676
4dc84fd1
JK
66772012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6678
6679 New option "set debug auto-load".
6680 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6681 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6682 (auto_load_safe_path_vec_update)
6683 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6684 if DEBUG_AUTO_LOAD.
6685 (file_is_auto_load_safe): New parameters debug_fmt and ....
6686 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6687 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6688 caller by explanatory string.
6689 (_initialize_auto_load): Register "set debug auto-load".
6690 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6691 and ....
6692 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6693 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6694 by explanatory string.
6695 * main.c (captured_main): Likewise.
6696 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6697 (source_section_scripts): Likewise.
6698
bccbefd2
JK
66992012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6700
6701 New option "set auto-load safe-path".
6702 * NEWS: New commands "set auto-load safe-path"
6703 and "show auto-load safe-path".
6704 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6705 (auto_load_safe_path, auto_load_safe_path_vec)
6706 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6707 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6708 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6709 (source_gdb_script_for_objfile): New variable is_safe. Call
6710 file_is_auto_load_safe. Return if it is not.
6711 (struct loaded_script): New field loaded.
6712 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6713 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6714 output "Missing" to "No".
6715 (_initialize_auto_load): New variable cmd. Initialize
6716 auto_load_safe_path. Register "set auto-load safe-path",
6717 "show auto-load safe-path" and "add-auto-load-safe-path".
6718 * auto-load.h (maybe_add_script): Add parameter loaded.
6719 (file_is_auto_load_safe): New declaration.
6720 * config.in: Regenerate.
6721 * configure: Regenerate.
6722 * configure.ac: New parameters --with-auto-load-safe-path
6723 and --without-auto-load-safe-path.
6724 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6725 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6726 * main.c (captured_main): Check file_is_auto_load_safe for
6727 LOCAL_GDBINIT.
6728 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6729 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6730 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6731 not.
6732
bf88dd68
JK
67332012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6734
6735 auto-load: Implementation.
6736 * NEWS: New descriptions for "info auto-load",
6737 "info auto-load gdb-scripts", "info auto-load python-scripts",
6738 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6739 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6740 and "show auto-load-scripts". New description for "set auto-load",
6741 "show auto-load", "set auto-load gdb-scripts",
6742 "show auto-load gdb-scripts", "set auto-load python-scripts",
6743 "show auto-load python-scripts", "set auto-load local-gdbinit",
6744 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6745 "show auto-load libthread-db".
6746 * auto-load.c: Remove include python/python-internal.h. Add includes
6747 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6748 cli/cli-setshow.h.
6749 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6750 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6751 (gdbpy_global_auto_load): Rename to ...
6752 (global_auto_load): ... here.
6753 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6754 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6755 (script_language_gdb, source_gdb_script_for_objfile): New.
6756 (struct loaded_script): New field language.
6757 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6758 LANGUAGE.
6759 (maybe_add_script): Add parameter language. Drop redundant
6760 entry.full_path initialization. Initialize entry.language and
6761 (*slot)->language.
6762 (auto_load_objfile_script): Change parameter suffix to language.
6763 Remove the call of maybe_add_script.
6764 Call language->source_script_for_objfile.
6765 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6766 New.
6767 (collect_matching_scripts): Adjust it for
6768 struct collect_matching_scripts_data.
6769 (auto_load_info_scripts_pattern_nl): New variable.
6770 (info_auto_load_scripts): Rename to ...
6771 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6772 for struct collect_matching_scripts_data.
6773 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6774 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6775 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6776 (auto_load_info_cmdlist_get): New.
6777 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6778 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6779 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6780 "info auto-load local-gdbinit".
6781 * auto-load.h (struct script_language): New.
6782 (gdbpy_global_auto_load): Rename to ...
6783 (global_auto_load): ... here.
6784 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6785 (auto_load_local_gdbinit_loaded): New declarations.
6786 (maybe_add_script): New parameter language.
6787 (auto_load_objfile_script): Change parameter suffix to language.
6788 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6789 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6790 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6791 declarations.
6792 * linux-thread-db.c: Include auto-load.h and ctype.h.
6793 (auto_load_thread_db, show_auto_load_thread_db): New.
6794 (struct thread_db_info): New field filename.
6795 (delete_thread_db_info): Call xfree for FILENAME.
6796 (try_thread_db_load): Initialize FILENAME.
6797 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6798 if !AUTO_LOAD_THREAD_DB.
6799 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6800 (_initialize_thread_db): Install auto_load_thread_db
6801 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6802 as "info auto-load libthread-db".
6803 * main.c (captured_main): Rename gdbpy_global_auto_load to
6804 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6805 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6806 (print_gdb_help): Extend the help for 'local init file'.
6807 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6808 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6809 (auto_load_scripts): Rename to ...
6810 (auto_load_python_scripts): ... here, update the comment.
6811 (gdbpy_load_auto_script_for_objfile): New declaration.
6812 (show_auto_load_python_scripts, script_language_python)
6813 (gdbpy_load_auto_script_for_objfile): New.
6814 (source_section_scripts): Refactor the code.
6815 (load_auto_scripts_for_objfile): Rename to ...
6816 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6817 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6818 (info_auto_load_python_scripts): New.
6819 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6820 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6821 Register "set auto-load-scripts" as its deprecated alias. Register
6822 "info auto-load python-scripts". Register "info auto-load-scripts" as
6823 its deprecated alias.
6824 (load_auto_scripts_for_objfile): Rename to ...
6825 (gdbpy_load_auto_scripts_for_objfile): ... here.
6826 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6827 (gdbpy_load_auto_scripts_for_objfile): ... here.
6828
e2207b9a
JK
68292012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6830
6831 auto-load: Move files.
6832 * Makefile.in (SFILES): Add auto-load.c.
6833 (HFILES_NO_SRCDIR): Add auto-load.h.
6834 (COMMON_OBS): Add auto-load.o.
6835 (distclean): Change .gdbinit for gdb-gdb.gdb.
6836 * auto-load.c: New file, with parts from python/py-auto-load.c.
6837 * auto-load.h: New file, with parts from python/python.h.
6838 * configure: Regenerate.
6839 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6840 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6841 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6842 * main.c: Include auto-load.h.
6843 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6844 command.h, observer.h and progspace.h to auto-load.c. Add include
6845 auto-load.h.
6846 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6847 (struct loaded_script, auto_load_pspace_data)
6848 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6849 (hash_loaded_script_entry, eq_loaded_script_entry)
6850 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6851 (maybe_add_script): Move to auto-load.c.
6852 (source_section_scripts): Change maybe_add_script parameters passing,
6853 use script_not_found_warning_print.
6854 (clear_section_scripts, auto_load_objfile_script)
6855 (auto_load_new_objfile, loaded_script_ptr)
6856 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6857 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6858 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6859 auto_load_new_objfile and info_auto_load_scripts initizations to
6860 auto-load.c.
6861 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6862
e4ab2fad
JK
68632012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6864
6865 Code cleanup.
6866 * charset.c (find_charset_names): Remove variables ix and elt.
6867 Use free_char_ptr_vec.
6868 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6869 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6870 debugdir_end. New variable debugdir_len.
6871 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6872 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6873 declarations.
6874 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6875 and elt. Use free_char_ptr_vec.
6876 * source.c (add_path): Remove variables argv, arg and argv_index.
6877 New variables dir_vec, back_to, ix and name.
6878 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6879 make_cleanup_freeargv. Remove variable separator. Simplify the code
6880 no longer expecting DIRNAME_SEPARATOR.
6881 (openp): Remove variable p, p1 and len. New variables dir_vec,
6882 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6883 no longer expecting DIRNAME_SEPARATOR.
6884 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6885 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6886 debugdir_end.
6887 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6888 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6889 (dirnames_to_char_ptr_vec): New functions.
6890
5ee4ed9f
JK
68912012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6892
6893 Code cleanup.
6894 * source.c (add_path): Remove always true conditional 'p == 0' and
6895 unindent its code block.
6896
f41f5e61
PA
68972012-04-17 Pedro Alves <palves@redhat.com>
6898
6899 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6900 (FIELD_BITPOS_LVAL): ... this.
6901 (FIELD_BITPOS): New.
6902 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6903 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6904 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6905 SET_FIELD_BITPOS.
6906 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6907 SET_FIELD_BITPOS.
6908 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6909 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6910 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6911 SET_FIELD_BITPOS.
6912
945b3a32
JK
69132012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6914
6915 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6916 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6917 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6918 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6919 * jv-lang.c (java_link_class_type): Likewise, once.
6920 * stabsread.c (read_enum_type): Likewise.
6921
42476b70
YQ
69222012-04-16 Yao Qi <yao@codesourcery.com>
6923
6924 * common/agent.c (agent_run_command): Add one more parameter `len'.
6925 Update callers.
6926 * common/agent.h: Update declaration.
6927 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6928 Update.
6929 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6930
8264ba82
AG
69312012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6932
6933 PR mi/13393
6934 * value.c (value_actual_type): New function.
6935 * value.h (value_actual_type): New declaration.
6936 * varobj.c (update_type_if_necessary): New function.
6937 (varobj_create): Call value_actual_type instead of
6938 value_type.
6939 (install_dynamic_child): distinct changed and type changed MI variable
6940 objects.
6941 (update_dynamic_varobj_children): Updated for install_dynamic_child
6942 change. All callers updated.
a09130f9 6943 (varobj_update): Support for MI variable object type change if
8264ba82
AG
6944 the value changed and RTTI is used to determine the type.
6945 (create_child_with_value): Call value_actual_type instead of
6946 value_type.
a09130f9 6947 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
6948 specify whether the given value should be casted to enclosing type.
6949 All callers updated.
6950
55a8c076
YQ
69512012-04-14 Yao Qi <yao@codesourcery.com>
6952
6953 Import gnulib module inttypes from git
6954 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6955 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
6956 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6957 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
6958 * aclocal.m4, config.in, configure: Regenerated.
6959 * gnulib/Makefile.am: Update.
6960 * gnulib/Makefile.in: Update.
6961 * gnulib/m4/gnulib-cache.m4: Update.
6962 * gnulib/m4/gnulib-comp.m4: Update.
6963 * gnulib/inttypes.in.h: New.
6964 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 6965 * gnulib/m4/inttypes.m4: New.
55a8c076 6966
ca7781d2
LM
69672012-04-13 Luis Machado <lgustavo@codesourcery.com>
6968
6969 * infrun.c (resume): Update PC address to the real PC after
6970 preparing to do displaced stepping.
6971
e319fa28
DE
69722012-04-12 Doug Evans <dje@google.com>
6973
6974 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6975 All callers updated.
6976
15add3f5
MK
69772012-04-12 Mark Kettenis <kettenis@gnu.org>
6978
6979 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6980
52dc124a
DE
69812012-04-12 Doug Evans <dje@google.com>
6982
0e50663e
DE
6983 * dwarf2read.c (create_all_type_units): Renamed from
6984 create_debug_types_hash_table. All callers updated.
6985
52dc124a
DE
6986 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6987 local type_sig to sig_type, type_offset to type_offset_in_tu.
6988 (hash_signatured_type): Renamed from hash_type_signature,
6989 all callers updated.
6990 (eq_signatured_type): Renamed from eq_type_signature,
6991 all callers updated.
6992 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6993 (process_enumeration_scope): Ditto.
6994 (lookup_signatured_type_at_offset): Ditto.
6995 (load_full_type_unit, read_signatured_type): Ditto.
6996
248fd3bf
YQ
69972012-04-12 Yao Qi <yao@codesourcery.com>
6998
6999 * remote.c (async_remote_interrupt): Correct function name in
7000 debug message.
7001 (async_remote_interrupt_twice): Ditto.
7002
bc3aa6c3
DE
70032012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7004
7005 * source.c (find_and_open_source): Consistently pass resulting
7006 full path through xfullpath.
7007
9e529e1d
JK
70082012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7009
7010 Provide more specific displaced-stepping memory error message.
7011 * infrun.c (displaced_step_prepare): New variable status. Call
7012 target_read_memory instead of read_memory, provide more specific
7013 error message.
7014
82e0cec1
TG
70152012-04-11 Tristan Gingold <gingold@adacore.com>
7016
7017 PR gdb/13901
7018 * darwin-nat.c (darwin_execvp): Revert previous patch.
7019
d987a266
TG
70202012-04-11 Tristan Gingold <gingold@adacore.com>
7021
7022 PR gdb/13901
7023 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7024 in case of change.
7025
016b7430
TG
70262012-04-11 Tristan Gingold <gingold@adacore.com>
7027
7028 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7029 warning.
7030
06fc020f
SCR
70312012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7032
7033 New command 'explore' which helps explore values and types in
7034 scope.
7035 * NEWS: Add an entry about the new 'explore' command.
7036 * data-directory/Makefile.in: Add gdb/command/explore.py
7037 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 7038 command using the GDB Python API.
06fc020f 7039
de0919f8 70402012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
7041
7042 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7043 extension in jump target calculation.
7044
de0919f8 70452012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
7046
7047 * mips-tdep.c (mips32_next_pc): Handle JALX.
7048
2f26ef89
YQ
70492012-04-10 Yao Qi <yao@codesourcery.com>
7050
7051 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7052
2e505b66
YQ
70532012-04-10 Yao Qi <yao@codesourcery.com>
7054
7055 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7056 and gnulib/m4/gnulib-tool.m4.
7057
0d99eb77
DE
70582012-04-10 Doug Evans <dje@google.com>
7059
7060 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7061 (load_partial_dies): Clarify comment.
7062 (find_partial_die): Support rereading type units.
7063 Clarify CU handling, if we know offset is in CU, don't search for the
7064 containing CU. Add comment regarding memory waste.
7065
9a82b8ff
L
70662012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7067
7068 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7069 i386/x32-avx and i386/x32-avx-linux.
7070 (i386/x32-expedite): New.
7071 (i386/x32-linux-expedite): Likewise.
7072 (i386/x32-avx-expedite): Likewise.
7073 (i386/x32-avx-linux-expedite): Likewise.
7074 ($(outdir)/i386/x32.dat): Likewise.
7075 ($(outdir)/i386/x32-linux.dat): Likewise.
7076 ($(outdir)/i386/x32-avx.dat): Likewise.
7077 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7078
7079 * features/i386/x32-avx-linux.xml: New file.
7080 * features/i386/x32-avx.xml: Likewise.
7081 * features/i386/x32-core.xml: Likewise.
7082 * features/i386/x32-linux.xml: Likewise.
7083 * features/i386/x32.xml: Likewise.
7084
7085 * features/i386/x32-avx-linux.c: New. Generated.
7086 * features/i386/x32-avx.c: Likewise.
7087 * features/i386/x32-linux.c: Likewise.
7088 * features/i386/x32.c: Likewise.
7089 * regformats/i386/x32-avx-linux.dat: Likewise.
7090 * regformats/i386/x32-avx.dat: Likewise.
7091 * regformats/i386/x32-linux.dat: Likewise.
7092 * regformats/i386/x32.dat: Likewise.
7093
ee41036f
TG
70942012-04-10 Tristan Gingold <gingold@adacore.com>
7095
7096 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7097 code to kill the inferior.
7098
a7aa5b8a
MK
70992012-04-09 Mark Kettenis <kettenis@gnu.org>
7100
7101 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7102 defines.
7103 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7104 defines.
a09130f9 7105 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
7106 (yyvsp): New defines.
7107 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7108 defines.
7109 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7110 defines.
7111 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7112 defines.
7113 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7114 defines.
7115 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7116 defines.
7117
fb57d452
MK
71182012-04-09 Mark Kettenis <kettenis@gnu.org>
7119
a09130f9 7120 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
7121 (sparc64_store_arguments): Fix coding style.
7122
cdc7b32f
MK
71232012-04-07 Mark Kettenis <kettenis@gnu.org>
7124
7125 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7126 complex floats, adjust some related comments and tighten a related
7127 assertion.
7128 (sparc64_extract_return_value): Handle complex floats.
7129
7adf1e79
DE
71302012-04-07 Doug Evans <dje@google.com>
7131
7132 * dwarf2read.c (load_partial_dies): Change condition to assert.
7133
50f1ae7b
DE
71342012-04-06 Doug Evans <dje@google.com>
7135
7136 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7137 "mov %rsp,%rbp".
7138
55fa75c3
KB
71392012-04-05 Kevin Buettner <kevinb@redhat.com>
7140
7141 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7142 fencepost error.
7143 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7144 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7145 architecture.
7146
40e084e1
KS
71472012-04-05 Keith Seitz <keiths@redhat.com>
7148
7149 * linespec.c (decode_compound): Remove.
7150 (enum offset_relative_sign): New enum.
7151 (struct line_offset): New struct.
7152 (struct linespec): New struct.
7153 (struct linespec_state): Move file_symtabs,
7154 user_filename, and user_function into struct linespec.
7155 Make result an anonymous struct holding vectors of
7156 symbolp and minsym_and_objfile_d.
7157 Add language member.
7158 (enum ls_token_type): New enum.
7159 (linespec_keywords): New array.
7160 (struct ls_token): New struct.
7161 (struct ls_parser): New struct.
7162 (linespec_lexer_lex_number): New function.
7163 (linespec_lexer_lex_keyword): New function.
7164 (is_ada_operator): New function.
7165 (skip_quote_char): New function.
7166 (copy_token_string): New function.
7167 (is_closing_quote_enclosed): New function.
7168 (find_parameter_list_end): New function.
7169 (linespec_lexer_lex_string): New function.
7170 (linespec_lexer_lex_one): New function.
7171 (linespec_lexer_consume_token): New function.
7172 (linespec_lexer_peek_token): New function.
7173 (cplusplus_error): Remove unused function.
7174 (find_methods): Update comment.
7175 (find_toplevel_char): Return const.
7176 (is_objc_method_format): Remove unused function.
7177 (find_toplevel_string): New function.
7178 (is_linespec_boundary): Remove.
7179 (symbol_not_found_error): New function.
7180 (find_method_overload_end): Remove function.
7181 (unexpected_linespec_error): New function.
7182 (keep_name_info): Remove.
7183 (linespec_parse_line_offset): New function.
7184 (linespec_parse_basic): New function.
7185 (canonicalize_linespec): New function.
7186 (decode_line_internal): Remove.
7187 (create_sals_line_offset): New function adapted from
7188 decode_all_digits.
7189 (convert_linespec_to_sals): New function.
7190 (parse_linespec): New function.
7191 (linespec_parser_new): New function.
7192 (linespec_state_destructor): Change parameter type to
7193 struct linespec_state *.
7194 Add language parameter.
7195 Remove freeing of moved members.
7196 (linespec_parser_delete): New function.
7197 (decode_line_full): Use parse_linespec and linespec_parser_new.
7198 (decode_line_1): Likewise.
7199 (decode_indirect): Rename to ...
7200 (linespec_expression_to_pc): ... this and rewrite
7201 to simply find CORE_ADDR, storing this result for later
7202 conversion to SALs.
7203 (locate_first_half): Remove.
7204 (deocde_objc): Add parameter LS.
7205 Initialize new struct collect_info members.
7206 Handle minimal symbols, too.
7207 (decode_compound): Delete.
7208 (lookup_prefix_sym): Rewrite.
7209 (compare_msymbols): New function.
7210 (find_method): Rewrite.
7211 Do not call cplusplus_error.
7212 (symtabs_from_filename): Rewrite.
7213 (collect_function_symbols): Delete.
7214 (find_function_symbols): Rewrite without ARGPTR-style
7215 processing.
7216 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7217 (decode_dollar): Adapted and renamed to ...
7218 (linespec_parse_variable): ... this.
7219 (find_linespec_symbols): New function.
7220 (decode_label): Adapted and renamed to ...
7221 (find_label_symbols): ... this.
7222 (decode_digits_list_mode): Add and use LS argument.
7223 (decode_digits_ordinary): Likewise.
7224 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7225 If in list mode, allow any symbol class. Otherwise, only
7226 permit LOC_BLOCK symbols.
7227 (minsym_found): Update comments.
7228 (search_minsyms_for_name): Do not convert the matching symbol
7229 into a SAL. Simply push the symbol and objfile into the
7230 result vector.
7231 (decode_variable): Delete. Contents adapted into
7232 find_linespec_symbols.
7233
7234 * cp-support.c (SKIP_SPACE): Remove.
7235 (operator_tokens): Remove unused global.
7236 (cp_validate_operator): Remove.
7237 * cp-support.h (cp_validate_operator): Remove declaration.
7238
a72c8f6a
JK
72392012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7240
7241 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7242 for TYPE_VPTR_FIELDNO.
7243 * valprint.c (valprint_check_validity): Make it global, move the
7244 function comment ...
7245 * value.h (valprint_check_validity): ... to this new declaration.
7246
cf9bb588
TG
72472012-04-02 Tristan Gingold <gingold@adacore.com>
7248
7249 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7250 the STATE32 api for i386 state.
7251 (i386_darwin_store_inferior_registers): Likewise.
7252
17092398
TG
72532012-04-02 Tristan Gingold <gingold@adacore.com>
7254
7255 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7256 SS offset.
7257 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7258 format_string.
7259
ece0061f
TG
72602012-04-02 Tristan Gingold <gingold@adacore.com>
7261
7262 PR gdb/13901
d987a266 7263 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 7264
cf65ecd3
JK
72652012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7266
7267 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7268
9bc3523d
TT
72692012-03-30 Tom Tromey <tromey@redhat.com>
7270
7271 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7272 of TRY_CATCH. Fix error handling.
7273 * python/py-value.c (convert_value_from_python): Move 'old'
7274 declaration to innermost scope.
7275
b1ed564a
JB
72762012-03-29 Joel Brobecker <brobecker@adacore.com>
7277 Andrey Smirnov <andrew.smirnov@gmail.com>
7278
7279 -Wshadow warning fix.
7280 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7281 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7282 Adjust code accordingly.
7283
cb8e9b97
JB
72842012-03-29 Joel Brobecker <brobecker@adacore.com>
7285
7286 * ada-lang.c (symbol_completion_add): Rename parameter
7287 "encoded" into "encoded_p". Ajust code and documentation
7288 accordingly.
7289
c0af1706
JB
72902012-03-29 Joel Brobecker <brobecker@adacore.com>
7291 Andrey Smirnov <andrew.smirnov@gmail.com>
7292
7293 -Wshadow warning fix.
7294 * ada-lang.c (symbol_completion_add): Rename parameter
7295 "wild_match" into wild_match_p. Update code and documentation
7296 accordingly.
7297
6ea35997
JB
72982012-03-29 Joel Brobecker <brobecker@adacore.com>
7299
7300 * ada-lang.c (symbol_completion_match): Rename parameter
7301 "encoded" into "encoded_p". Ajust code and documentation
7302 accordingly.
7303
e701b3c0
JB
73042012-03-29 Joel Brobecker <brobecker@adacore.com>
7305 Andrey Smirnov <andrew.smirnov@gmail.com>
7306
7307 -Wshadow warning fix.
7308 * ada-lang.c (symbol_completion_match): Rename parameter
7309 "wild_match" into "wild_match_p". Adjust code and function
7310 documentation accordingly.
7311
5e2336be
JB
73122012-03-29 Joel Brobecker <brobecker@adacore.com>
7313 Andrey Smirnov <andrew.smirnov@gmail.com>
7314
7315 -Wshadow warning fix.
7316 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7317 "symbol_info" into "info". Adjust code accordingly.
7318 (ada_lookup_symbol): Likewise.
7319
9f88c959
JB
73202012-03-29 Joel Brobecker <brobecker@adacore.com>
7321
7322 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7323 of this function's documentation.
7324
82ccd55e
JB
73252012-03-29 Joel Brobecker <brobecker@adacore.com>
7326 Andrey Smirnov <andrew.smirnov@gmail.com>
7327
7328 -Wshadow warning fix.
7329 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7330 variable into "wild_match_p". Adjust code accordingly.
7331
d0a8ab18
JB
73322012-03-29 Joel Brobecker <brobecker@adacore.com>
7333 Andrey Smirnov <andrew.smirnov@gmail.com>
7334
7335 -Wshadow warning fix.
7336 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7337 parameter into "wild_match_p". Adjust code accordingly.
7338 Document this parameter in the function description.
7339
48b78332
JB
73402012-03-29 Joel Brobecker <brobecker@adacore.com>
7341 Andrey Smirnov <andrew.smirnov@gmail.com>
7342
7343 -Wshadow warning fix.
7344 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7345 "wild_match" parameter to "wild_match_p" (-Wshadow).
7346
2e6e0353
JB
73472012-03-29 Joel Brobecker <brobecker@adacore.com>
7348
7349 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7350 in function documentation.
7351
dc4024cd
JB
73522012-03-29 Joel Brobecker <brobecker@adacore.com>
7353 Andrey Smirnov <andrew.smirnov@gmail.com>
7354
7355 -Wshadow warning fix.
7356 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7357 variable into wild_match_p. Adjust code accordingly.
7358
6c88661c
JB
73592012-03-29 Joel Brobecker <brobecker@adacore.com>
7360 Andrey Smirnov <andrew.smirnov@gmail.com>
7361
7362 * ada-valprint.c (ada_val_print_1): Move the code handling
7363 TYPE_CODE_ENUM inside its own lexical block. Declare
7364 variables len and val there, instead of in the function's
7365 top level block. Avoid declaring deref_val again in a way
7366 that shadows another variable of the same name declared
7367 in one of the up-level blocks. Just re-use the up-level
7368 variable instead.
7369
4e5c77fe
JB
73702012-03-29 Joel Brobecker <brobecker@adacore.com>
7371
7372 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7373 Replace block_found argument by symbol_info. Adjust
7374 implementation accordingly. Add function documentation.
7375 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7376 Fix documentation.
7377 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7378 * ada-exp.y (write_object_renaming): Adjust to new
7379 ada_lookup_encoded_symbol API.
7380
1c0ac8c7
JB
73812012-03-29 Joel Brobecker <brobecker@adacore.com>
7382
7383 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7384 documentation.
7385
2aaed979
KB
73862012-03-28 Rathish C <rathish.c@kpitcummins.com>
7387
7388 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7389 (v850_register_name): Add the mpu and fpu register names.
7390 (v850e_register_name): Add the mpu and fpu register names.
7391 (v850e2_register_name): New function.
a09130f9 7392 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
7393 bfd_mach_v850e2v3.
7394
927fbba6
JB
73952012-03-28 Joel Brobecker <brobecker@adacore.com>
7396
7397 * NEWS: Add entry for Ada varobj support.
7398
d32cafc7
JB
73992012-03-28 Joel Brobecker <brobecker@adacore.com>
7400
7401 * varobj.c (default_value_is_changeable_p): New function,
7402 extracted from varobj_value_is_changeable_p. Add declaration.
7403 (ada_value_is_changeable_p): New function, extracted from
7404 varobj_value_is_changeable_p. Add declaration.
7405 (struct language_specific): New field "value_is_changeable_p".
7406 (languages): Add entries for new field.
7407 (varobj_create): Set language before calling install_new_value.
7408 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7409 "value_is_changeable_p" language callback.
7410
181875a4
JB
74112012-03-28 Joel Brobecker <brobecker@adacore.com>
7412
7413 * ada-varobj.h, ada-varobj.c: New files.
7414 * Makefile.in (SFILES): Add ada-varobj.c.
7415 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7416 (COMMON_OBS): Add ada-varobj.o.
7417
7a290c40
JB
74182012-03-28 Joel Brobecker <brobecker@adacore.com>
7419
7420 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7421 (struct language_specific): New field "value_has_mutated".
7422 (languages): Set field "value_has_mutated" in each entry of array.
7423 (varobj_value_has_mutated): New function.
7424 (varobj_udpdate): Add handling of type mutation.
7425 (value_of_root): Add handling of type mutation.
7426 (ada_value_has_mutated): New function.
7427
ca9b8b9c
PA
74282012-03-28 Pedro Alves <palves@redhat.com>
7429
7430 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7431 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7432
cc0265cd
TT
74332012-03-28 Tom Tromey <tromey@redhat.com>
7434
7435 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7436 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7437 before returning.
7438
3ad2ec6f
TT
74392012-03-28 Tom Tromey <tromey@redhat.com>
7440
7441 * .dir-locals.el: New file.
7442
4a6510ba
PA
74432012-03-28 Pedro Alves <palves@redhat.com>
7444
7445 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7446
5a75128f
JB
74472012-03-28 Joel Brobecker <brobecker@adacore.com>
7448
7449 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7450 handling for r0.
7451
f99d8bf4
PA
74522012-03-27 Pedro Alves <palves@redhat.com>
7453
7454 Eliminate struct ui_stream.
7455
7456 * ui-out.h (struct ui_stream): Delete.
7457 (ui_out_field_stream): Adjust prototype.
7458 (ui_out_stream_new, ui_out_stream_delete)
7459 (make_cleanup_ui_out_stream_delete): Delete declarations.
7460 * ui-out.c (ui_out_field_stream): Change prototype to take a
7461 ui_file instead of a ui_stream. Adjust.
7462 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7463 (make_cleanup_ui_out_stream_delete): Delete.
7464 * breakpoint.c (print_breakpoint_location)
7465 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7466 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7467 * disasm.c (dump_insns): Ditto.
7468 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7469 prototype.
7470 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7471 ui_stream/ui_out_stream_new.
7472 * infcmd.c (print_return_value): Ditto.
7473 * osdata.c (info_osdata_command): Don't allocate a local
7474 ui_stream.
7475 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7476 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7477 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7478 allocate a local ui_stream.
7479 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7480 instead of ui_stream/ui_out_stream_new.
7481 (list_args_or_locals): Don't allocate a local ui_stream.
7482 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7483 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7484 ui_stream/ui_out_stream_new.
7485 * cli/cli-setshow.c (do_setshow_command): Ditto.
7486
6350a066 74872012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 7488
6350a066
PA
7489 * arm-linux-tdep.c (arm_linux_init_abi): Call
7490 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7491 * arm-tdep.c (arm_process_record): New function.
7492 (deallocate_reg_mem): New function.
7493 (decode_insn): New function.
7494 (thumb_record_branch): New function.
7495 (thumb_record_ldm_stm_swi(): New function.
7496 (thumb_record_misc): New function.
7497 (thumb_record_ld_st_stack): New function.
7498 (thumb_record_ld_st_imm_offset): New function.
7499 (thumb_record_ld_st_reg_offset(): New function.
7500 (thumb_record_add_sub_cmp_mov): New function.
7501 (thumb_record_shift_add_sub): New function.
7502 (arm_record_coproc_data_proc): New function.
7503 (arm_record_coproc): New function.
7504 (arm_record_b_bl): New function.
7505 (arm_record_ld_st_multiple): New function.
7506 (arm_record_ld_st_reg_offset): New function.
7507 (arm_record_ld_st_imm_offset): New function.
7508 (arm_record_data_proc_imm): New function.
7509 (arm_record_data_proc_misc_ld_str): New function.
7510 (arm_record_extension_space): New function.
7511 (arm_record_strx): New function.
7512 (sbo_sbz): New function.
7513 (struct insn_decode_record): New structure for arm insn record.
7514 (REG_ALLOC): New macro for reg allocations.
7515 (MEM_ALLOC): New macro for memory allocations.
7516 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 7517
89e028e2
AS
75182012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7519
7520 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7521 (store_register): Likewise.
7522
6350a066 75232012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 7524
6350a066 7525 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 7526
5b43fab2
JK
75272012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7528
7529 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7530 Describe also the option "auto".
7531
b5453b95
RH
75322012-03-22 Richard Henderson <rth@redhat.com>
7533
7534 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7535 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7536
227ee7fc
RH
75372012-03-22 Richard Henderson <rth@redhat.com>
7538
7539 * jit.c (jit_read_code_entry): Compute alignment and offset of
7540 int64_t member before computing entry_size.
7541
7b282c5a
SCR
75422012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7543
7544 Python scripting: Add new method Value.referenced_value to
7545 gdb.Value which can dereference pointer as well as reference
7546 values.
7547 * NEWS: Add entry under 'Python scripting' about the new method
7548 Value.referenced_value on gdb.Value objects.
7549 * python/py-value.c (valpy_referenced_value): New function
7550 defining a new method on gdb.Value objects which can dereference
7551 pointer and reference values.
7552
0c83539f
SCR
75532012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7554
7555 * MAINTAINERS (Write After Approval): Add myself to the list.
7556
7ccffd7c
KB
75572012-03-21 Kevin Buettner <kevinb@redhat.com>
7558
7559 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7560 in addition to "main".
7561
bd0b9f9e
JB
75622012-03-21 Joel Brobecker <brobecker@adacore.com>
7563
7564 * expression.h (op_name): Add declaration.
7565 * expprint.c (op_name): Remove declaration. Make non-static.
7566 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7567
a5362b9a
TS
75682012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7569
7570 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7571 of struct siginfo.
7572 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7573 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7574 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7575 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7576 (linux_nat_get_siginfo): Likewise.
7577 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7578 (linux_nat_get_siginfo): Likewise.
7579 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7580 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7581 * procfs.c (gdb_siginfo_t): Likewise.
7582
adcadaab
MF
75832012-03-21 Mike Frysinger <vapier@gentoo.org>
7584
7585 * .gitignore: Ignore more files.
7586
e278ad5b
PA
75872012-03-20 Pedro Alves <palves@redhat.com>
7588
7589 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7590 returns.
7591
741e63d7
YQ
75922012-03-20 Yao Qi <yao@codesourcery.com>
7593
7594 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7595 comment.
7596
b64f50a1
JK
75972012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7598
7599 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7600 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7601 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7602 sect_offset.
7603 * dwarf2expr.h (cu_offset, sect_offset): New types.
7604 (struct dwarf_expr_context_funcs) <dwarf_call>
7605 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7606 sect_offset.
7607 (struct dwarf_expr_context) <len>: Improve the comment.
7608 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7609 cu_offset and sect_offset.
7610 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7611 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7612 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7613 * dwarf2loc.h: Include dwarf2expr.h.
7614 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7615 and sect_offset.
7616 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7617 Improve the comment.
7618 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7619 (struct signatured_type, struct line_header, struct partial_die_info)
7620 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7621 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7622 (get_die_type_at_offset, create_cus_from_index)
7623 (create_signatured_type_table_from_index, dw2_get_file_names)
7624 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7625 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7626 (create_debug_types_hash_table, process_psymtab_comp_unit)
7627 (load_partial_comp_unit, create_all_comp_units)
7628 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7629 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7630 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7631 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7632 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7633 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7634 (find_partial_die, read_attribute_value, lookup_die_type)
7635 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7636 (is_ref_attr): New function comment.
7637 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7638 Use cu_offset and sect_offset.
7639 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7640 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7641 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7642 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7643 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7644 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7645 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7646 sect_offset.
7647
e97a38f7
JK
76482012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7649
7650 Code cleanup.
7651 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7652 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7653 with xfree.
7654 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7655
8320cc4f
JK
76562012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7657
7658 * NEWS: Describe new options --init-command=FILE, -ix and
7659 --init-eval-command=COMMAND, -iex.
7660 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7661 CMDARG_INIT_COMMAND.
7662 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7663 "init-command", "init-eval-command", "ix" and "iex" to the variable
7664 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7665 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7666 (print_gdb_help): Describe --init-command=FILE, -ix and
7667 --init-eval-command=COMMAND, -iex.
7668
26743505
JK
76692012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7670
7671 Code cleanup.
7672 * main.c (struct cmdarg): Move it here from main. Add more comments.
7673 (cmdarg_s, VEC (cmdarg_s)): New.
7674 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7675 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7676 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7677 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7678 of CMDARG.
7679
5ff5c7b4
TT
76802012-03-19 Tom Tromey <tromey@redhat.com>
7681
7682 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7683
ab260dad
JK
76842012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7685
7686 PR symtab/13777
7687 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7688 GCC >=4.5.
7689
c366c1f0
TT
76902012-03-16 Chris January <chris.january@allinea.com>
7691
7692 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7693 of clear.
7694
e16edb45
TT
76952012-03-16 Chris January <chris.january@allinea.com>
7696
7697 * source.c (add_path): Use memmove instead of strcpy because the
7698 strings overlap.
7699
53ba8333
JB
77002012-03-16 Joel Brobecker <brobecker@adacore.com>
7701
7702 * value.h (set_value_parent): Add declaration.
7703 * value.c (set_value_parent): New function.
7704 (value_address): If VALUE->PARENT is not NULL, then use it as
7705 the base address instead of VALUE->LOCATION.address.
7706 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7707 the same as OBJ's address. Adjust V's offset accordingly.
7708 Set V's parent.
7709
481860b3
GB
77102012-03-16 Gary Benson <gbenson@redhat.com>
7711
7712 PR breakpoints/10738
7713 * dwarf2read.c (use_deprecated_index_sections): New global.
7714 (struct partial_die_info): New member may_be_inlined.
7715 (read_partial_die): Set may_be_inlined where appropriate.
7716 (add_partial_subprogram): Add partial symbols for partial
7717 DIEs that may be inlined.
7718 (new_symbol_full): Add inlined subroutines to the current
7719 scope.
7720 (write_psymtabs_to_index): Bump version number.
7721 (dwarf2_read_index): Read only version 6 indices unless
7722 use_deprecated_index_sections is set.
7723 * linespec.c (symbol_and_data_callback): New structure.
7724 (iterate_inline_only): New function.
7725 (iterate_over_all_matching_symtabs): New argument
7726 "include_inline". If nonzero, also call the callback for
7727 symbols representing inlined subroutines.
7728 (lookup_prefix_sym): Pass extra argument to the above.
7729 (find_function_symbols): Likewise.
7730 (add_matching_symbols_to_info): Likewise.
7731 * NEWS: Mention that GDB can now set breakpoints on inlined
7732 functions.
7733
d0e7e15a
PM
77342012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7735
7736 * p-typeprint.c (pascal_type_print_method_args):
7737 Fix display of parameter of methods.
7738
3d354654
PM
77392012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7740
7741 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7742 Add missing prototype.
7743
cafe75b0
JK
77442012-03-16 Yao Qi <yao@codesourcery.com>
7745 Jan Kratochvil <jan.kratochvil@redhat.com>
7746
7747 Fix false compilation warning.
7748 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7749
25f8c692
JL
77502012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7751 Pedro Alves <pedro@codesourcery.com>
7752
7753 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7754 (arm_register_g_packet_guesses): New function.
7755 (arm_gdbarch_init): Don't force a target description with
7756 registers when the executable is detected as M-profile. Instead
7757 set gdbarch->tdep->is_m. Register `g' packet guesses.
7758 (_initialize_arm_tdep): Initialize the new target description.
7759 * features/arm-with-m-fpa-layout.xml: New description.
7760 * features/arm-with-m-fpa-layout.c: New, generated.
7761
35c63cd8
JB
77622012-03-15 Joel Brobecker <brobecker@adacore.com>
7763
7764 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7765 Update function description.
7766 (insert_bp_location): Do not wipe bl->target_info out.
7767 * mem-break.c: #include "gdb_string.h".
7768 (default_memory_insert_breakpoint): Do not call target_read_memory
7769 with a pointer to the breakpoint's shadow_contents buffer. Use
7770 a local buffer instead.
7771 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7772
57651221
TT
77732012-03-15 Tom Tromey <tromey@redhat.com>
7774
7775 * NEWS: Mention "info vtbl", not "info vtable".
7776 * cp-support.c (info_vtbl_command): Fix comment.
7777 (_initialize_cp_support): Fix text.
7778
410528f0
TT
77792012-03-15 Tom Tromey <tromey@redhat.com>
7780
7781 * cp-valprint.c (cp_print_value_fields): Use
7782 print_function_pointer_address for vtable slot.
7783
c4aeac85
TT
77842012-03-15 Tom Tromey <tromey@redhat.com>
7785
7786 * gnu-v3-abi.c (struct value_and_voffset): New.
7787 (hash_value_and_voffset, eq_value_and_voffset)
7788 (compare_value_and_voffset, compute_vtable_size)
7789 (print_one_vtable, gnuv3_print_vtable): New functions.
7790 (init_gnuv3_ops): Initialize 'print_vtable' field.
7791 * cp-support.c (info_vtbl_command): New function.
7792 (_initialize_cp_support): Add "info vtbl".
7793 * cp-abi.h (cplus_print_vtable): Declare.
7794 (struct cp_abi_ops) <print_vtable>: New field.
7795 * cp-abi.c (cplus_print_vtable): New function.
7796 * NEWS: Update.
7797
95cbceff
TT
77982012-03-15 Tom Tromey <tromey@redhat.com>
7799
7800 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7801 iterate_over_symbols.
7802
589b4a32
DE
78032012-03-14 Doug Evans <dje@google.com>
7804
7805 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7806 DW_OP_GNU_parameter_ref.
7807
e837f12a
JK
78082012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7809
7810 Fix double prompt of 'interpreter-exec mi'.
7811 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7812 (mi_interpreter_resume): use it.
7813 (mi_execute_command_input_handler): New function.
7814 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7815 mi_execute_command_input_handler.
7816
ff1e4526 78172012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
7818
7819 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7820 prototype.
7821 (darwin_debug_port_info): Make static.
7822 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7823 * machoread.c (_initialize_machoread): Add prototype.
7824 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7825 (i386_darwin_set_control, i386_darwin_get_control)
7826 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7827 i386_darwin_get_status, i386_darwin_get_control):
7828 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7829
d8a5d6ee
JB
78302012-03-13 Joel Brobecker <brobecker@adacore.com>
7831
7832 * ax-gdb.c (gen_usual_unary): Remove special handling of
7833 enum and bool types.
7834
af381b8c
JB
78352012-03-13 Joel Brobecker <brobecker@adacore.com>
7836
7837 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7838
786c562f
JB
78392012-03-13 Joel Brobecker <brobecker@adacore.com>
7840
7841 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7842
e3ebf1bb
JB
78432012-03-13 Chris January <chris.january@allinea.com>
7844
7845 * aix-thread.c (fill_sprs): Store the floating point registers
7846 at the correct offsets into vals.
7847
c5b7e1cb
DE
78482012-03-13 Doug Evans <dje@google.com>
7849
16899756
DE
7850 * NEWS: Mention symbol-reloading has been deleted.
7851 * symfile.c (symbol_reloading): Delete.
7852 (show_symbol_reloading): Delete.
7853 (_initialize_symfile): Delete set/show symbol-reloading.
7854
c5b7e1cb
DE
7855 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7856 read_in_chain until we have successfully read it in.
7857 (load_full_comp_unit): Ditto.
7858 (read_signatured_type): Add comment.
7859
46cb6474
JB
78602012-03-13 Chris January <chris.january@allinea.com>
7861
7862 * stabsread.c (fix_common_block): Change type of valu argument
7863 to CORE_ADDR.
7864
76219d77
JB
78652012-03-13 Chris January <chris.january@allinea.com>
7866
7867 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7868 instruction.
7869
87b0bb13
JK
78702012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7871
7872 * common/linux-procfs.c (linux_proc_get_int): New, from
7873 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7874 field.
7875 (linux_proc_get_tgid): Only call linux_proc_get_int.
7876 (linux_proc_get_tracerpid): New.
7877 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7878 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7879 linux_proc_pid_has_state.
7880 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7881 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7882 (linux_ptrace_attach_warnings): New.
7883 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7884 New declaration.
7885 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7886 (linux_nat_attach): New variables ex, buffer, message and message_s.
7887 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7888
5f572dec
JK
78892012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7890
7891 * Makefile.in (linux-ptrace.o): New.
7892 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7893 from linux-nat.c.
7894 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7895 * common/linux-ptrace.c: New file.
7896 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7897 * config/arm/linux.mh: Likewise.
7898 * config/i386/linux.mh: Likewise.
7899 * config/i386/linux64.mh: Likewise.
7900 * config/ia64/linux.mh: Likewise.
7901 * config/m32r/linux.mh: Likewise.
7902 * config/m68k/linux.mh: Likewise.
7903 * config/mips/linux.mh: Likewise.
7904 * config/pa/linux.mh: Likewise.
7905 * config/powerpc/linux.mh: Likewise.
7906 * config/powerpc/ppc64-linux.mh: Likewise.
7907 * config/powerpc/spu-linux.mh: Likewise.
7908 * config/s390/s390.mh: Likewise.
7909 * config/sparc/linux.mh: Likewise.
7910 * config/sparc/linux64.mh: Likewise.
7911 * config/xtensa/linux.mh: Likewise.
7912 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7913 common/linux-procfs.c.
7914 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7915
44f238bb
PA
79162012-03-13 Hui Zhu <teawater@gmail.com>
7917 Pedro Alves <palves@redhat.com>
7918
7919 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7920 CREATE_BREAKPOINT_FLAGS_INSERTED.
7921 (create_breakpoint_sal, create_breakpoints_sal)
7922 (base_breakpoint_create_breakpoints_sal)
7923 (tracepoint_create_breakpoints_sal)
7924 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7925 down.
7926 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7927 (ftrace_command, strace_command): Adjust.
7928 (create_tracepoint_from_upload): Pass
7929 CREATE_BREAKPOINT_FLAGS_INSERTED.
7930 * breakpoint.h (enum breakpoint_create_flags): New.
7931 (create_breakpoint): New flags parameter.
7932 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7933 * python/py-breakpoint.c (bppy_init): Adjust.
7934 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7935 * spu-tdep.c (spu_catch_start): Adjust.
7936
1e51243a
PA
79372012-03-13 Pedro Alves <palves@redhat.com>
7938 Hui Zhu <teawater@gmail.com>
7939 Yao Qi <yao@codesourcery.com>
7940
7941 * remote.c (struct remote_state): New field `starting_up'.
7942 (remote_start_remote): Set and clear it.
7943 (remote_can_download_tracepoint): If starting up, return false.
7944
fa3064dd
YQ
79452012-03-13 Yao Qi <yao@codesourcery.com>
7946
7947 * inferior.h (struct inferior): Remove fields any_syscall_count,
7948 syscalls_counts and total_syscalls_count. Move them to new
7949 struct catch_syscall_inferior_data in breakpoint.c.
7950 * breakpoint.c: Call DEF_VEC_I(int).
7951 (struct catch_syscall_inferior_data): New.
7952 (get_catch_syscall_inferior_data): New.
7953 (catch_syscall_inferior_data_cleanup): New.
7954 (insert_catch_syscall): Update to access data in
7955 struct catch_syscall_inferior_data.
7956 (insert_catch_syscall): Likewise.
7957 (remove_catch_syscall): Likewise.
7958 (remove_catch_syscall): Likewise.
7959 (is_syscall_catchpoint_enabled): Likewise.
7960 (add_catch_command): Likewise.
7961 (_initialize_breakpoint): Register cleanup.
7962 * breakpoint.h: Removed DEF_VEC_I(int).
7963 * dwarf2loc.c: Call DEF_VEC_I(int).
7964 * mi/mi-main.c: Likewise.
7965
460fac3c
MK
79662012-03-12 Mark Kettenis <kettenis@gnu.org>
7967
7968 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7969
e1aca11e
JB
79702012-03-12 Chris January <chris.january@allinea.com>
7971
7972 * aix-thread.c (_initialize_aix_thread): Add prototype.
7973 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7974 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7975
649c7061
JB
79762012-03-12 Joel Brobecker <brobecker@adacore.com>
7977
7978 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7979 include of "amd64-nat.h".
7980
0b49e518
TT
79812012-03-12 Tom Tromey <tromey@redhat.com>
7982
7983 * buildsym.c (record_pending_block): Now static.
7984 * buildsym.h: (record_pending_block): Remove.
7985
fd24fa94
AT
79862012-03-12 Andreas Tobler <andreast@fgznet.ch>
7987
7988 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7989
ba919b58
TT
79902012-03-09 Tom Tromey <tromey@redhat.com>
7991
7992 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7993 producer_is_gxx_lt_4_6>: New fields.
7994 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7995
a48e046c
TT
79962012-03-09 Tom Tromey <tromey@redhat.com>
7997
7998 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7999
6f5e9362
JB
80002012-03-08 Joel Brobecker <brobecker@adacore.com>
8001
8002 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8003 prototype.
8004
8d037db9
JB
80052012-03-08 Joel Brobecker <brobecker@adacore.com>
8006
8007 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8008
4e841acf
JK
80092012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8010
8011 Fix -Wmissing-prototypes build.
8012 * arm-linux-nat.c (get_thread_id): Make it static.
8013 * xtensa-linux-nat.c (get_thread_id): Likewise.
8014
c6030312
JB
80152012-03-08 Joel Brobecker <brobecker@adacore.com>
8016
8017 * server.c (process_point_options): If a conditional expression
8018 is found, only print a message if remote_debug is nonzero.
8019
52323be9
LM
80202012-03-08 Luis Machado <lgustavo@codesourcery.com>
8021
8022 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8023 of internal error for unknown/unsupported types.
8024
7fe25d9b
JK
80252012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8026
8027 Fix CU relative vs. absolute DIE offsets.
8028 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8029 offset to offset_in_cu.
8030 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8031 TYPE_OFFSET.
8032 (dwarf2_fetch_die_location_block): Rename parameter offset to
8033 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8034
05e7c244
JK
80352012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8036
8037 * libunwind-frame.c: Rename to ...
8038 * ia64-libunwind-tdep.c: ... here.
8039 * libunwind-frame.h: Rename to ...
8040 * ia64-libunwind-tdep.h: ... here.
8041 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8042 ia64-libunwind-tdep.h.
8043 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8044 * README (--with-libunwind): Rename to ...
8045 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8046 * config.in: Regenerate.
8047 * configure: Regenerate.
8048 * configure.ac: New option --with-libunwind-ia64, make the
8049 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8050 Remove AC_DEFINE for HAVE_LIBUNWIND.
8051 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8052 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8053 Rename libunwind-frame in the general comment.
8054 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8055 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8056 Move forward declarations inside #ifndef. Rename libunwind-frame in
8057 the general comment.
8058 * ia64-tdep.c: Rename libunwind-frame.h #include to
8059 ia64-libunwind-tdep.h.
8060 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8061 (ia64_libunwind_descr): Rename libunwind-frame to
8062 ia64-libunwind-tdep in these function comments.
8063 * ia64-tdep.h: Rename libunwind-frame.h #include to
8064 ia64-libunwind-tdep.h.
8065 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8066 ia64-libunwind-tdep in that data comment.
8067
3755cbfd
JK
80682012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8069
8070 * libunwind-frame.h (struct frame_unwind): New declaration.
8071
d1cda5d9
JB
80722012-03-08 Joel Brobecker <brobecker@adacore.com>
8073
8074 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8075 "set breakpoint condition-evaluation" command.
8076
a0ba0aa2
TG
80772012-03-08 Tristan Gingold <gingold@adacore.com>
8078
8079 * sparc-stub.c: Move to stubs/
8080 * sh-stub.c: Likewise.
8081 * m68k-stub.c: Likewise.
8082 * m32r-stub.c: Likewise.
8083 * i386-stub.c: Likewise.
8084
7b8b6d6d
AS
80852012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8086
007cafee
AS
8087 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8088 linux_get_siginfo_type.
8089
7b8b6d6d
AS
8090 * m68klinux-nat.c: Include "gdb_proc_service.h".
8091 (PTRACE_GET_THREAD_AREA): Define.
8092 (ps_get_thread_area): New function.
8093
bba74b36
YQ
80942012-03-08 Yao Qi <yao@codesourcery.com>
8095
8096 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8097 `xsnprintf'.
8098 (remote_query_attached): Likewise.
8099 (remote_static_tracepoint_marker_at): Likewise.
8100 (remote_set_permissions): Likewise.
8101 (remote_detach_1, extended_remote_attach_1): Likewise.
8102 (send_g_packet, remote_vkill): Likewise.
8103 (extended_remote_disable_randomization): Likewise.
8104 (remote_add_target_side_condition): Likewise.
8105 (remote_insert_breakpoint): Likewise.
8106 (remote_remove_breakpoint): Likewise.
8107 (remote_insert_watchpoint): Likewise.
8108 (remote_remove_watchpoint): Likewise.
8109 (remote_insert_hw_breakpoint): Likewise.
8110 (remote_insert_hw_breakpoint): Likewise.
8111 (remote_remove_hw_breakpoint): Likewise.
8112 (remote_download_command_source): Likewise.
8113 (remote_download_tracepoint): Likewise.
8114 (remote_download_trace_state_variable): Likewise.
8115 (remote_disable_tracepoint): Likewise.
8116 (remote_trace_set_readonly_regions): Likewise.
8117 (remote_get_tracepoint_status): Likewise.
8118 (remote_trace_find): Likewise.
8119 (remote_get_trace_state_variable_value): Likewise.
8120 (remote_set_disconnected_tracing): Likewise.
8121 (remote_set_circular_trace_buffer): Likewise.
8122 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8123 (remote_use_agent): Likewise.
8124 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8125 Update callers.
8126
9b224c5e
PA
81272012-03-07 Pedro Alves <palves@redhat.com>
8128
8129 * NEWS: Mention QProgramSignals.
8130 * inferior.h (update_signals_program_target): Declare.
8131 * infrun.c: (update_signals_program_target): New.
8132 (handle_command): Update the target of the new program signals
8133 array changes.
8134 * remote.c (PACKET_QProgramSignals): New enum.
8135 (last_program_signals_packet): New global.
8136 (remote_program_signals): New.
8137 (remote_start_remote): Update the target with the program signals
8138 list.
8139 (remote_protocol_features): Add entry for QPassSignals.
8140 (remote_open_1): Free anc clear last_program_signals_packet.
8141 (init_remote_ops): Install remote_program_signals.
8142 * target.c (update_current_target): Adjust.
8143 (target_program_signals): New.
8144 * target.h (struct target_ops) <to_program_signals>: New field.
8145 (target_program_signals): Declare.
8146
74c48cbb
PA
81472012-03-07 Pedro Alves <palves@redhat.com>
8148
8149 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8150 extensions.
8151
0c13fc49
AS
81522012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8153
8154 * m68klinux-nat.c (getregs_supplies): Make static.
8155 (getfpregs_supplies): Likewise.
8156 (have_ptrace_getregs): Likewise.
8157
1281d2a3
JB
81582012-03-06 Joel Brobecker <brobecker@adacore.com>
8159
8160 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8161 in call to get_die_type_at_offset.
8162
2b03b41d
SS
81632012-03-06 Stan Shebs <stan@codesourcery.com>
8164
8165 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8166 * mi/mi-cmd-disas.c: Ditto.
8167 * mi/mi-cmd-env.c: Ditto.
8168 * mi/mi-cmd-file.c: Ditto.
8169 * mi/mi-cmd-stack.c: Ditto.
8170 * mi/mi-cmd-target.c: Ditto.
8171 * mi/mi-cmd-var.c: Ditto.
8172 * mi/mi-cmds.c: Ditto.
8173 * mi/mi-cmds.h: Ditto.
8174 * mi/mi-console.c: Ditto.
8175 * mi/mi-getopt.c: Ditto.
8176 * mi/mi-getopt.h: Ditto.
8177 * mi/mi-interp.c: Ditto.
8178 * mi/mi-main.c: Ditto.
8179 * mi/mi-out.c: Ditto.
8180 * mi/mi-parse.c: Ditto.
8181 * mi/mi-parse.h: Ditto.
8182 * mi/mi-symbol-cmds.c: Ditto.
8183
8184 * mi/mi-getopt.h: Move mi_opt struct up.
8185 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8186 return.
8187 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8188
c988ad87
TT
81892012-03-06 Tom Tromey <tromey@redhat.com>
8190
8191 * proc-service.c (ps_pglobal_lookup): Set the current program
8192 space.
8193
1b7c1b10
PA
81942012-03-06 Pedro Alves <palves@redhat.com>
8195
8196 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8197
3c182069
JB
81982012-03-05 Joel Brobecker <brobecker@adacore.com>
8199
8200 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8201
2e794194
JK
82022012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8203
8204 Code cleanup.
8205 * common/linux-osdata.c (linux_common_core_of_thread): New function
8206 comment.
8207 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8208 call by linux_common_core_of_thread.
8209 (linux_nat_core_of_thread_1): Remove.
8210 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8211 * linux-thread-db.c: Include linux-osdata.h.
8212 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8213 linux_common_core_of_thread.
8214
9f9f1f31
TT
82152012-03-05 Tom Tromey <tromey@redhat.com>
8216
8217 * value.c (value_primitive_field): Don't fetch contents for
8218 non-virtual bases.
8219
b7b189f3
TT
82202012-03-05 Tom Tromey <tromey@redhat.com>
8221
8222 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8223
05b8a789 82242012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 8225
5538f557
JB
8226 * s390-nat.c: Include "gregset.h".
8227
75528772
JK
82282012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8229
8230 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8231 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8232 (libunwind_load): New variable so_error, use it for dlerror. Try to
8233 load also LIBUNWIND_SO_7.
8234
275418ae
PA
82352012-03-05 Pedro Alves <palves@redhat.com>
8236
8237 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8238 is not NULL, and remove resulting dead code.
8239
5cbb9812
TS
82402012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8241
8242 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8243 prologue to sh_analyze_prologue.
8244 (sh_analyze_prologue): Make better use of such an upper limit, and
8245 generally be more cautious about accessing memory.
8246
541515ad
TT
82472012-03-05 Tom Tromey <tromey@redhat.com>
8248
8249 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8250 _initialize_ia64_hpux_tdep.
8251
b4d36fb8
PA
82522012-03-05 Pedro Alves <palves@redhat.com>
8253
24490249
PA
8254 PR gdb/13766
8255
b4d36fb8
PA
8256 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8257 the register state is clear, supply explicit zero, instead of
8258 marking the register unavailable.
8259
60c9a3c0
TG
82602012-03-05 Tristan Gingold <gingold@adacore.com>
8261
8262 * NEWS: Mention OpenVMS ia64 new target.
8263
696759ad
TG
82642012-03-05 Tristan Gingold <gingold@adacore.com>
8265
8266 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8267 (ia64_unw_accessors, ia64_unw_rse_accessors)
8268 (ia64_libunwind_descr): Declare.
8269 * ia64-vms-tdep.c: New file.
8270 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8271 (ia64_libunwind_descr): Make them public.
8272 * configure.tgt: Add ia64-*-*vms*.
8273 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8274 (ALLDEPFILES): Add ia64-vms-tdep.c
8275
34864976
TG
82762012-03-05 Tristan Gingold <gingold@adacore.com>
8277
169081d0
TG
8278 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8279 * remote.c (PACKET_qXfer_uib): New enum value.
8280 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8281 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8282 (_initialize_remote): Call add_packet_config_cmd for
8283 xfer:uib packet.
8284
82852012-03-05 Tristan Gingold <gingold@adacore.com>
8286
8287 * osabi.c (gdb_osabi_names): Add OpenVMS.
8288 (generic_elf_osabi_sniffer): Likewise.
8289 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 8290
6597b100
JK
82912012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8292
8293 Removed unused code.
8294 * libunwind-frame.c (libunwind_frame_unwind)
8295 (libunwind_frame_base_address): Remove.
8296 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8297
87399aa1
YQ
82982012-03-04 Yao Qi <yao@codesourcery.com>
8299
8300 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8301 remove trailing new line.
8302 (agent_run_command, agent_run_command): Add _ markup.
8303 (agent_capability_check): Likewise.
8304
abf1152a
JK
83052012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8306
8307 * breakpoint.c (set_condition_evaluation_mode): Set
8308 CONDITION_EVALUATION_MODE unconditionally.
8309
5808517f
YQ
83102012-03-03 Yao Qi <yao@codesourcery.com>
8311
8312 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8313 * common/agent.h: Update declaration.
8314 * inf-child.c (inf_child_use_agent): New.
8315 (inf_child_can_use_agent): New.
8316 (inf_child_target): Initialize fields `to_use_agent'
8317 and `to_can_use_agent'.
8318 * agent.c (agent_new_objfile): New.
89b7509a 8319 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
8320 observer.
8321
8322 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8323 New.
89b7509a 8324 (linux_target_install_ops): Initialize field
5808517f
YQ
8325 `to_static_tracepoint_markers_by_strid'.
8326 * remote.c (free_current_marker): Move it to ...
8327 * tracepoint.c (free_current_marker): ... here. New.
8328 (cleanup_target_stop): New.
8329 * tracepoint.h: Declare free_current_marker.
8330 * NEWS: Add one entry about `info static-tracepoint-marker'.
8331
58b4daa5
YQ
83322012-03-03 Yao Qi <yao@codesourcery.com>
8333
8334 * common/agent.c (agent_loaded_p): New.
89b7509a 8335 (agent_look_up_symbols): New global.
58b4daa5
YQ
8336 * common/agent.h: Declare agent_loaded_p.
8337
8ffcbaaf
YQ
83382012-03-03 Yao Qi <yao@codesourcery.com>
8339
8340 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8341 (agent_capability_check, agent_capability_invalidate): New.
8342 (symbol_list): New array element.
8343 * common/agent.h (enum agent_capa): New.
8344 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8345
d1feda86
YQ
83462012-03-03 Yao Qi <yao@codesourcery.com>
8347
8348 * target.h (struct target_ops) <to_use_agent>: New field.
8349 (struct target_ops) <to_can_use_agent>: New field.
8350 (target_use_agent, target_can_use_agent): New macro.
8351 * target.c (update_current_target): Update.
8352 * remote.c: New enum `PACKET_QAgent'.
8353 (remote_protocol_features): Add a new element.
8354 (remote_use_agent, remote_can_use_agent): New.
8355 (init_remote_ops): Initialize field `can_use_agent' with
8356 remote_can_use_agent. Intiailize field `use_agent' with
8357 remote_use_agent.
8358 * common/agent.c (use_agent): New global.
8359 * common/agent.h: Declare it.
8360 * tracepoint.c (info_static_tracepoint_markers_command): Add
8361 comment.
8362 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8363 (COMMON_OBS): Add common/agent.o and agent.o
8364 (common-agent.o): New rule.
8365 * agent.c: New.
8366
2fa291ac
YQ
83672012-03-03 Yao Qi <yao@codesourcery.com>
8368
8369 * common/agent.c: New.
8370 * common/agent.h: New.
8371 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8372 AC_CHECK_HEADERS.
8373 * configure, configh.in: Regenerated.
8374
9fc05685
KB
83752012-03-02 Kevin Buettner <kevinb@redhat.com>
8376
8377 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8378 unless it exists for this architecture.
8379
a5ee536b
JB
83802012-03-02 Joel Brobecker <brobecker@adacore.com>
8381
8382 * language.h (struct language_defn): New "method" la_read_var_value.
8383 * findvar.c: #include "language.h".
8384 (default_read_var_value): Renames read_var_value. Rewrite
8385 function description.
8386 (read_var_value): New function.
8387 * value.h (default_read_var_value): Add prototype.
8388 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8389 New functions.
8390 (ada_language_defn): Add entry for la_read_var_value.
8391 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8392 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8393 language_defn structures to add entry for new la_read_var_value
8394 field.
8395
f59f708a
PA
83962012-03-02 Tom Tromey <tromey@redhat.com>
8397 Pedro Alves <palves@redhat.com>
8398
8399 PR breakpoints/13776:
8400 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8401 breakpoints.
8402 (delete_longjmp_breakpoint_at_next_stop): New.
8403 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8404 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8405 before deleting the inferior. Add comments.
8406 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8407 breakpoints immediately, but only on next stop. Move that code
8408 next to where we mark other breakpoints for deletion.
8409
44099a67
JB
84102012-03-02 Joel Brobecker <brobecker@adacore.com>
8411
8412 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8413 marker.
8414 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8415 violation.
8416
2a2ef594
PA
84172012-03-02 Pedro Alves <palves@redhat.com>
8418
8419 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8420
b261e0c5
UW
84212012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8422
8423 Fix -Wmissing-prototypes build.
8424 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8425 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8426 (gdbsim_has_memory): Likewise.
8427
a95babbf
YQ
84282012-03-02 Yao Qi <yao@codesourcery.com>
8429
8430 Fix -Wmissing-prototypes build.
8431 * charset.c (phony_iconv_open): Make static.
8432 (phony_iconv_close, phony_iconv): Likewise.
8433 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8434 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8435 prototype.
8436 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8437 * ser-mingw.c (create_select_thread): Make static.
8438 * windows-termcap.c (tgetent): New prototype.
8439 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8440
d603d4b3
JK
84412012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8442
8443 Fix -Wmissing-prototypes build.
8444 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8445 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8446 (_initialize_loadable): New prototypes.
8447
7fb3ad1f
DE
84482012-03-02 Doug Evans <dje@google.com>
8449
8450 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8451 abbrev table, read_comp_unit will do it.
8452
693be288
JK
84532012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8454
8455 Fix -Wmissing-prototypes build.
8456 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8457 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8458 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8459 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8460 (_initialize_arm_symbian_tdep): New prototype.
8461 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8462 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8463 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8464 static.
8465 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8466 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8467 prototype.
8468 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8469 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8470 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8471 static.
8472 * moxie-tdep.c (moxie_process_record): Likewise.
8473 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8474 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8475 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8476 (_initialize_rl78_tdep): New prototype.
8477 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8478 (_initialize_rx_tdep): New prototype.
8479 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8480 (_initialize_darwin_solib): New prototype.
8481 * solib-spu.c: Include solib-spu.h.
8482 (_initialize_spu_solib): New prototype.
8483 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8484 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8485 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8486 (tic6x_software_single_step): Make it static.
8487 (_initialize_tic6x_tdep): New prototype.
8488
638234e5
JK
84892012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8490
8491 Fix -Wmissing-prototypes build.
8492 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8493 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8494
f4a6f16d
JK
84952012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8496
8497 Fix -Wmissing-prototypes build.
8498 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8499 (frv_have_stopped_data_address): Remove.
8500
04dcf5fa
JK
85012012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8502
8503 Fix -Wmissing-prototypes build.
8504 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8505 * sh-tdep.c: Include sh64-tdep.h.
8506 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8507 * sh64-tdep.c: Include sh64-tdep.h.
8508 * sh64-tdep.h: New file.
8509
19080931
MR
85102012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8511
8512 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8513
9aac7884
MR
85142012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8515
8516 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8517 sp_regnum once the gdbarch_init_osabi hook has been called.
8518
a385295e
MR
85192012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8520
8521 * mips-tdep.c (mips32_bc1_pc): New function.
8522 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8523 BPOSGE32 and BPOSGE64 instructions.
8524 (deal_with_atomic_sequence): Likewise.
8525 (mips32_instruction_has_delay_slot): Likewise.
8526
1faeff08 85272012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
8528 Chris Dearman <chris@mips.com>
8529 Maciej W. Rozycki <macro@codesourcery.com>
8530 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
8531
8532 * features/mips-dsp.xml: New file.
8533 * features/mips64-dsp.xml: New file.
8534 * features/mips-dsp-linux.xml: New file.
8535 * features/mips64-dsp-linux.xml: New file.
8536 * features/Makefile (WHICH): Add mips-dsp-linux and
8537 mips64-dsp-linux.
8538 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8539 * features/mips-dsp-linux.c: New file.
8540 * features/mips64-dsp-linux.c: New file.
8541 * regformats/mips-dsp-linux.dat: New file.
8542 * regformats/mips64-dsp-linux.dat: New file.
8543 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8544 registers.
8545 (mips64_linux_register_addr): Likewise.
8546 (mips64_linux_regsets_fetch_registers): Likewise.
8547 (mips64_linux_regsets_store_registers): Likewise.
8548 (mips64_linux_fetch_registers): Update call to
8549 mips64_linux_regsets_fetch_registers.
8550 (mips64_linux_store_registers): Update call to
8551 mips64_linux_regsets_store_registers.
8552 (mips_linux_read_description): Probe for DSP registers.
8553 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8554 and initialize_tdesc_mips64_dsp_linux.
8555 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8556 Remove padding of no longer used embedded register slots.
8557 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8558 (MIPS_RESTART_REGNUM): Redefine enum value.
8559 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8560 strings.
8561 (mips_tx39_reg_names): Likewise.
8562 (mips_linux_reg_names): New array of register names for Linux
8563 targets.
8564 (mips_register_name): Check for a null pointer in
8565 mips_processor_reg_names and return an empty string.
8566 (mips_register_type): Exclude embedded registers for the IRIX
8567 and Linux ABIs.
8568 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8569 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8570 DSP registers.
8571 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8572 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8573 (mips_gdbarch_init): Likewise. Initialize internal register
8574 indices for the Linux ABI. Use dynamic numbers to refer to
8575 registers, as applicable, while parsing the target description.
8576 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8577
263689d8
JB
85782012-03-01 Joel Brobecker <brobecker@adacore.com>
8579
8580 * frame.h (read_frame_register_unsigned): Fix typo in function
8581 description.
8582
f3b4f45c
PA
85832012-03-01 Pedro Alves <palves@redhat.com>
8584
8585 * jit-reader.in [!__cplusplus]
8586 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8587
b03a2011
PA
85882012-03-01 Pedro Alves <palves@redhat.com>
8589
8590 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8591 * configure: Regenerate.
8592
70221824
PA
85932012-03-01 Pedro Alves <palves@redhat.com>
8594
8595 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8596 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8597 (ftrace_command, strace_command): Make static.
8598 * d-lang.c (_initialize_d_language): Declare.
8599 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8600 * dwarf2loc.c (_initialize_dwarf2loc):
8601 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8602 * exec.c (exec_get_section_table): Make static.
8603 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8604 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8605 * inferior.c (remove_inferior_command, add_inferior_command)
8606 (clone_inferior_command): Make static.
8607 * linux-nat.c (linux_nat_thread_address_space)
8608 (linux_nat_core_of_thread): Make static.
8609 * linux-tdep.c (_initialize_linux_tdep): Declare.
8610 * objc-lang.c (_initialize_objc_lang): Declare.
8611 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8612 Make static.
8613 (_initialize_opencl_language): Declare.
8614 * record.c (_initialize_record): Declare.
8615 * remote.c (demand_private_info, remote_get_tib_address)
8616 (remote_supports_cond_tracepoints)
8617 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8618 Make static.
8619 * skip.c (_initialize_step_skip): Declare.
8620 * symtab.c (skip_prologue_using_lineinfo): Make static.
8621 * tracepoint.c (delete_trace_state_variable)
8622 (trace_variable_command, delete_trace_variable_command)
8623 (get_uploaded_tsv, find_matching_tracepoint_location)
8624 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8625 Make static.
8626 * value.c (pack_unsigned_long): Make static.
8627 * varobj.c (varobj_ensure_python_env): Make static.
8628 * windows-tdep.c (_initialize_windows_tdep): Declare.
8629 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8630
33fbcbee
PA
86312012-03-01 Pedro Alves <palves@redhat.com>
8632
8633 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8634 gdbarch parameter.
8635 (linux_init_abi): Install it as has_shared_address_space gdbarch
8636 callback.
8637
44d0cd3b
PA
86382012-03-01 Pedro Alves <palves@redhat.com>
8639
8640 * observer.c (observer_test_first_notification_function)
8641 (observer_test_second_notification_function)
8642 (observer_test_third_notification_function): Add declarations.
8643
ed01b82c
PA
86442012-03-01 Pedro Alves <palves@redhat.com>
8645
8646 * common/signals.c (default_target_signal_to_host)
8647 (default_target_signal_from_host): Move ...
8648 * arch-utils.c: ... here.
8649 * arch-utils.h (default_target_signal_to_host)
8650 (default_target_signal_from_host): Declare.
8651
8652 * common/signals.c (target_signal_from_command): Move ...
8653 * infrun.c: ... here.
8654 * inferior.h (target_signal_from_command): Declare.
8655 * target.h (target_signal_from_command)
8656 (default_target_signal_from_host, default_target_signal_to_host):
8657 Delete declarations.
8658
8659 * common/signals.c (_initialize_signals): Delete.
8660
c9b87335
PA
86612012-03-01 Pedro Alves <palves@redhat.com>
8662
8663 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8664 both __cplusplus and !__cplusplus.
8665
9340a6c0
PA
86662012-03-01 Pedro Alves <palves@redhat.com>
8667
8668 * psymtab.c (find_and_open_source): Delete declaration.
8669 * source.c (find_and_open_source): Move comment ...
8670 * source.h (find_and_open_source): ... to this new declaration.
8671
e451c4a1
PA
86722012-03-01 Pedro Alves <palves@redhat.com>
8673
8674 * inline-frame.c: Include inline-frame.h.
8675
983fb104
PA
86762012-03-01 Pedro Alves <palves@redhat.com>
8677
8678 * tui/tui-data.c (set_gen_win_origin): Delete.
8679 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8680 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8681
5fbce5df
PA
86822012-03-01 Pedro Alves <palves@redhat.com>
8683
8684 * remote.c (encode_actions): Delete declaration.
8685 * tracepoint.c (encode_actions): Make extern.
8686 * tracepoint.h (encode_actions): Declare.
8687
49a8461d
PA
86882012-03-01 Pedro Alves <palves@redhat.com>
8689
8690 * python/py-breakpoint.c: Include python.h.
8691 * python/py-continueevent.c (create_continue_event_object): Make
8692 static.
8693 * python/py-lazy-string.c (stpy_get_type): Make static.
8694 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8695 Make static.
8696 * python/py-utils.c (unicode_to_target_python_string): Make
8697 static.
8698 * python/py-value.c: Include python.h.
8699
9079102f
PA
87002012-03-01 Pedro Alves <palves@redhat.com>
8701
8702 * inferior.c (delete_threads_of_inferior): Delete.
8703
a298c5e8
PA
87042012-03-01 Pedro Alves <palves@redhat.com>
8705
8706 Import fallback definitions from glibc.
8707
8708 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8709 ps_prochandle): Forward declare.
8710 (ps_err_e): Use glibc's comments.
8711 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8712 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8713 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8714 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8715 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8716 (struct ps_prochandle): Adjust comment.
8717
e3084549
PA
87182012-03-01 Pedro Alves <palves@redhat.com>
8719
8720 * ada-lang.c (ada_modulus_from_name): Delete.
8721 * ada-lex.l (lexer_init): Make static.
8722
ad5f7d6e
PA
87232012-03-01 Pedro Alves <palves@redhat.com>
8724
8725 PR gdb/13767
8726
8727 * frame.c (read_frame_register_unsigned): New.
8728 * frame.h (read_frame_register_unsigned): Declare.
8729 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8730 Handle it.
8731 (print_i387_control_word): New parameter `control_p'. Handle it.
8732 (i387_print_float_info): Handle unavailable float registers.
8733
e0a4d108
KS
87342012-03-01 Keith Seitz <keiths@redhat.com>
8735
8736 * linespec.c (decode_line_2): Sort the list of methods
8737 alphabetically before presenting the user with a selection
8738 menu.
8739
122d1940
DE
87402012-03-01 Doug Evans <dje@google.com>
8741
8742 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8743 has_namespace_info.
8744 (dwarf2_read_abbrevs): Remove corresponding initialization.
8745
7d74f244
DE
87462012-03-01 Scott J. Goldman <scottjg@vmware.com>
8747
8748 * NEWS: Mention new python command class gdb.COMMAND_USER.
8749 * cli/cli-cmds.c (show_user): Print error when used on a python
8750 command.
8751 (init_cli_cmds): Update documentation strings for "show user" and
8752 "set/show max-user-call-depth" to clarify that it does not apply to
8753 python commands.
8754 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8755 error check.
8756 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8757 gdb python api.
8758 * top.c (execute_command): Only execute a user-defined command as a
8759 legacy macro if c->user_commands is set.
8760
e88acd96
TT
87612012-03-01 Tom Tromey <tromey@redhat.com>
8762
8763 * valprint.h (struct generic_val_print_decorations): New.
8764 (generic_val_print): Declare.
8765 * valprint.c (generic_val_print): New function.
8766 * p-valprint.c (p_decorations): New global.
8767 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8768 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8769 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8770 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8771 * m2-valprint.c (m2_decorations): New global.
8772 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8773 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8774 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8775 TYPE_CODE_ERROR>: Call generic_val_print.
8776 * f-valprint.c (f_decorations): New global.
8777 (f_val_print): Use print_function_pointer_address.
8778 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8779 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8780 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8781 generic_val_print.
8782 * c-valprint.c (c_decorations): New global.
8783 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8784 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8785 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8786 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8787 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8788 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8789 case.
8790
d3eab38a
TT
87912012-03-01 Tom Tromey <tromey@redhat.com>
8792
8793 * valprint.c (val_print): Update.
8794 * p-valprint (pascal_val_print): Return void.
8795 * p-lang.h (pascal_val_print): Return void.
8796 * m2-valprint.c (m2_val_print): Return void.
8797 * m2-lang.h (m2_val_print): Return void.
8798 * language.h (struct language_defn) <la_val_print>: Return void.
8799 * language.c (unk_lang_val_print): Return void.
8800 * jv-valprint.c (java_val_print): Return void.
8801 * jv-lang.h (java_val_print): Return void.
8802 * f-valprint.c (f_val_print): Return void.
8803 * f-lang.h (f_val_print): Return void.
8804 * d-valprint.c (d_val_print): Return void.
8805 (dynamic_array_type): Update.
8806 * d-lang.h (d_val_print): Return void.
8807 * c-valprint.c (c_val_print): Return void.
8808 * c-lang.h (c_val_print): Return void.
8809 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8810 void.
8811 * ada-lang.h (ada_val_print): Return void.
8812
35c0084b
TT
88132012-03-01 Tom Tromey <tromey@redhat.com>
8814
8815 * value.h (val_print): Return void.
8816 * valprint.c (val_print): Return void.
8817
a1f5dd1b
TT
88182012-03-01 Tom Tromey <tromey@redhat.com>
8819
8820 * value.h (common_val_print): Return void.
8821 * valprint.c (common_val_print): Return void.
8822
8e069a98
TT
88232012-03-01 Tom Tromey <tromey@redhat.com>
8824
8825 * value.h (value_print): Return void.
8826 * valprint.c (value_print): Return void.
8827 * p-valprint.c (pascal_value_print): Return void.
8828 * p-lang.h (pascal_value_print): Return void.
8829 * language.h (struct language_defn) <la_value_print>: Return
8830 void.
8831 * language.c (unk_lang_value_print): Return void.
8832 * jv-valprint.c (java_value_print): Return void.
8833 * jv-lang.h (java_value_print): Return void.
8834 * f-valprint.c (c_value_print): Don't declare.
8835 Include c-lang.h.
8836 * c-valprint.c (c_value_print): Return void.
8837 * c-lang.h (c_value_print): Return void.
8838 * ada-valprint.c (ada_value_print): Return void.
8839 * ada-lang.h (ada_value_print): Return void.
8840
be335936
TT
88412012-03-01 Tom Tromey <tromey@redhat.com>
8842
8843 * value.c (value_primitive_field): Handle virtual base classes.
8844
b0db66a7
TT
88452012-03-01 Tom Tromey <tromey@redhat.com>
8846
8847 * gdbtypes.h (struct vbase): Remove.
8848
132c57b4
TT
88492012-03-01 Tom Tromey <tromey@redhat.com>
8850
8851 * c-valprint.c (print_function_pointer_address): Move...
8852 * valprint.c: ... here. Make non-static.
8853 * m2-valprint.c (print_function_pointer_address): Remove.
8854 * valprint.h (print_function_pointer_address): Declare.
8855
e41eec66
JB
88562012-03-01 Joel Brobecker <brobecker@adacore.com>
8857
8858 * NEWS: Document the fact that one can provide a condition when
8859 creating an Ada exception catchpoint.
8860
19c37f24
TT
88612012-03-01 Tom Tromey <tromey@redhat.com>
8862
8863 * valprint.c (val_print_type_code_flags): Fix placement of
8864 trailing brace.
8865
f0fed3a3
JB
88662012-03-01 Joel Brobecker <brobecker@adacore.com>
8867
8868 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8869 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8870 environment variable before calling update-copyright.
8871
8ba85d85
JB
88722012-03-01 Joel Brobecker <brobecker@adacore.com>
8873
8874 * gnulib/extra/update-copyright: Update to the latest from
8875 gnulib's git repository.
8876 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8877 variable to 2 instead of 1.
8878
8219b1e8
JB
88792012-02-29 Joel Brobecker <brobecker@adacore.com>
8880
8881 * varobj.c (c_value_of_variable): Remove dead code.
8882
718cb7da
JB
88832012-02-29 Joel Brobecker <brobecker@adacore.com>
8884
8885 * ada-lex.p (processId): Do not modify already encoded IDs.
8886 Update function documentation.
8887
739593e0
JB
88882012-02-29 Joel Brobecker <brobecker@adacore.com>
8889
8890 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8891 "name" with "struct symbol *name_sym".
8892 * ada-exp.y (write_var_or_type): Update call to
8893 ada_find_renaming_symbol.
8894 "name" with "struct symbol *name_sym". Adjust Implementation
8895 accordingly. Adjust the function documentation.
8896
852dff6c
JB
88972012-02-29 Joel Brobecker <brobecker@adacore.com>
8898
8899 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8900 * ada-lang.c (ada_find_any_type): Add advance declaration.
8901 Make static. Replace ada_find_any_symbol by
8902 ada_find_any_type_symbol.
8903 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8904 Improve function description. Make static.
8905 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8906 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8907
1b611343
JB
89082012-02-29 Joel Brobecker <brobecker@adacore.com>
8909
8910 * ada-lang.c (struct tag_args): Delete.
8911 (ada_get_tsd_type): Function body moved up in source file.
8912 (ada_tag_name_1, ada_tag_name_2): Delete.
8913 (ada_get_tsd_from_tag): New function.
8914 (ada_tag_name_from_tsd): New function.
8915 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8916 to determine the tag name.
8917
41246937
JB
89182012-02-29 Joel Brobecker <brobecker@adacore.com>
8919
8920 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8921 declaration.
8922 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8923 function.
8924
ffde82bf
JB
89252012-02-29 Joel Brobecker <brobecker@adacore.com>
8926
8927 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8928
2ad01556
JB
89292012-02-29 Joel Brobecker <brobecker@adacore.com>
8930
8931 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8932 full searches.
8933
99b1c762
JB
89342012-02-29 Joel Brobecker <brobecker@adacore.com>
8935
8936 * ada-lang.c (constrained_packed_array_type): If there is a
8937 parallel XA type, use it to determine the array index type.
8938
2d4a02ee
JB
89392012-02-29 Joel Brobecker <brobecker@adacore.com>
8940
8941 * ada-valprint.c (ada_val_print_1): If our value is a reference
8942 to an array descriptor, dereference it before converting it
8943 to a simple array.
8944
c48db5ca
JB
89452012-02-29 Joel Brobecker <brobecker@adacore.com>
8946
8947 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8948 creating fixed value.
8949 (ada_value_ind, ada_coerce_ref, assign_component)
8950 (ada_evaluate_subexp): Remove call to unwrap_value before
8951 call to ada_to_fixed_value.
8952
2e6fda7d
JB
89532012-02-29 Joel Brobecker <brobecker@adacore.com>
8954
8955 * ada-lang.c (to_fixed_array_type): Set result's type name.
8956
5845583d
JB
89572012-02-29 Joel Brobecker <brobecker@adacore.com>
8958
8959 * ada-lang.c (catch_ada_exception_command_split): Add new
8960 argument cond_string. Add support for condition at end of
8961 "catch exception" commands.
8962 (ada_decode_exception_location): Add new argument cond_string.
8963 Update call to catch_ada_exception_command_split.
8964 (create_ada_exception_catchpoint): Add new argument cond_string.
8965 Set the breakpoint condition if needed.
8966 (catch_ada_exception_command): Update call to
8967 ada_decode_exception_location.
8968 (ada_decode_assert_location): Add function documentation.
8969 Add support for condition at end of "catch assert" command.
8970 (catch_assert_command): Update calls to ada_decode_assert_location
8971 and create_ada_exception_catchpoint.
8972
9a7f938f
JK
89732012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8974
8975 Fix disp-step-syscall.exp: fork: single step over fork.
8976 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8977 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8978 comment, change parameters gdbarch and ptid to regcache. Remove
8979 parameter regcache, initialize gdbarch from regcache here.
8980 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8981 New functions.
8982 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8983 instead.
8984 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8985 'syscall'. Make the 'int' check more strict.
8986
ffdf6de5
JK
89872012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8988
8989 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8990 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8991 (i386_linux_intx80_sysenter_syscall_record): ... here.
8992 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8993 Use the renamed function name.
8994
c70a6932
JK
89952012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8996
8997 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8998 * breakpoint.c (until_break_command): Likewise.
8999 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9000 * infcall.c (call_function_by_hand): Likewise.
9001 * infcmd.c (finish_forward): Likewise.
9002 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9003
05b8a789 90042012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 9005
d4cd3da9
JB
9006 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9007 avoid variable assignments inside condition.
9008
6425366c
JK
90092012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9010
9011 Fix static analysis issue found by cppcheck.
9012 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9013 uninitialized BUF for size 2.
9014
c8cef75f 90152012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
9016 Nathan Froyd <froydnj@codesourcery.com>
9017 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
9018
9019 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9020 (mips16_instruction_has_delay_slot): Likewise.
9021 (mips_segment_boundary): Likewise.
9022 (mips_adjust_breakpoint_address): Likewise.
9023 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9024
473347ad 90252012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 9026 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
9027
9028 * infrun.c (handle_inferior_event): Don't proceed through
9029 shared library trampolines if stepping at the machine
9030 instruction level.
9031
cf233303
MR
90322012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9033
9034 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9035 too.
9036
cb2cf4ce
TS
90372012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9038
9039 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9040 (sh_stub_unwind_sniffer): New functions.
9041 (sh_stub_unwind): New variable.
9042 (sh_gdbarch_init): Wire everything.
9043
644cebc9
PA
90442012-02-27 Pedro Alves <palves@redhat.com>
9045
9046 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9047 (linux_nat_post_attach_wait): Adjust to use
9048 linux_proc_pid_is_stopped.
9049 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9050 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9051 based on pid_is_stopped from both linux-nat.c and
9052 gdbserver/linux-low.c, and renamed.
9053
283002cf
MR
90542012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9055
9056 * remote.c (remote_watchpoint_addr_within_range): New function.
9057 (init_remote_ops): Use it.
9058
9b3e86b1
MR
90592012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9060
9061 * target.h (target_watchpoint_addr_within_range): Document macro.
9062
e36930bb
PA
90632012-02-24 Pedro Alves <palves@redhat.com>
9064
9065 * stack.c (set_last_displayed_sal): Issue internal_error instead
9066 of warning, and issue it after clearing the last displayed sal.
9067
883bc8d1
PA
90682012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9069 Pedro Alves <palves@redhat.com>
9070
9071 * breakpoint.c (until_break_command): Install breakpoints after
9072 all frame manipulations.
9073
b775012e
LM
90742012-02-24 Luis Machado <lgustavo@codesourcery.com>
9075
9076 * remote.c (remote_supports_cond_breakpoints): New forward
9077 declaration.
9078 (remote_add_target_side_condition): New function.
9079 (remote_insert_breakpoint): Add target-side breakpoint
9080 conditional if supported.
9081 (remote_insert_hw_breakpoint): Likewise.
9082 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9083 hook.
9084
9085 * target.c (update_current_target): Inherit
9086 to_supports_evaluation_of_breakpoint_conditions.
9087 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9088
9089 * target.h (struct target_ops)
9090 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9091 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9092
9093 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9094 (condition_evaluation_both, condition_evaluation_auto,
9095 condition_evaluation_host, condition_evaluation_target,
9096 condition_evaluation_enums, condition_evaluation_mode_1,
9097 condition_evaluation_mode): New static globals.
9098 (translate_condition_evaluation_mode): New function.
9099 (breakpoint_condition_evaluation_mode): New function.
9100 (gdb_evaluates_breakpoint_condition_p): New function.
9101 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9102 (mark_breakpoint_modified): New function.
9103 (mark_breakpoint_location_modified): New function.
9104 (set_condition_evaluation_mode): New function.
9105 (show_condition_evaluation_mode): New function.
9106 (bp_location_compare_addrs): New function.
9107 (get_first_location_gte_addr): New helper function.
9108 (set_breakpoint_condition): Free condition bytecode if locations
9109 has become unconditional. Call mark_breakpoint_modified (...).
9110 (condition_command): Call update_global_location_list (1) for
9111 breakpoints.
9112 (breakpoint_xfer_memory): Use is_breakpoint (...).
9113 (is_breakpoint): New function.
9114 (parse_cond_to_aexpr): New function.
9115 (build_target_condition_list): New function.
9116 (insert_bp_location): Handle target-side conditional
9117 breakpoints and call build_target_condition_list (...).
9118 (update_inserted_breakpoint_locations): New function.
9119 (insert_breakpoint_locations): Handle target-side conditional
9120 breakpoints.
9121 (bpstat_check_breakpoint_conditions): Add comment.
9122 (bp_condition_evaluator): New function.
9123 (bp_location_condition_evaluator): New function.
9124 (print_breakpoint_location): Print information on where the condition
9125 will be evaluated.
9126 (print_one_breakpoint_location): Likewise.
9127 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9128 breakpoint location.
9129 (force_breakpoint_reinsertion): New functions.
9130 (update_global_location_list): Handle target-side breakpoint
9131 conditions.
9132 Reinsert locations that are already inserted if conditions have
9133 changed.
9134 (bp_location_dtor): Free agent expression bytecode.
9135 (disable_breakpoint): Call mark_breakpoint_modified (...).
9136 Call update_global_location_list (...) with parameter 1 for breakpoints.
9137 (disable_command): Call mark_breakpoint_location_modified (...).
9138 Call update_global_location_list (...) with parameter 1 for breakpoints.
9139 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9140 (enable_command): mark_breakpoint_location_modified (...).
9141 (_initialize_breakpoint): Update documentation and add
9142 condition-evaluation breakpoint subcommand.
9143
9144 * breakpoint.h: Include ax.h.
9145 (condition_list): New data structure.
9146 (condition_status): New enum.
9147 (bp_target_info) <cond_list>: New field.
9148 (bp_location) <condition_changed, cond_bytecode>: New fields.
9149 (is_breakpoint): New prototype.
9150
3788aec7
LM
91512012-02-24 Luis Machado <lgustavo@codesourcery.com>
9152
9153 * remote.c (remote_state) <cond_breakpoints>: New field.
9154 (PACKET_ConditionalBreakpoints): New enum.
9155 (remote_cond_breakpoint_feature): New function.
9156 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9157 (remote_supports_cond_breakpoints): New function.
9158 (_initialize_remote): Add new packet configuration for
9159 target-side conditional breakpoints.
9160
72895ff6
LM
91612012-02-24 Luis Machado <lgustavo@codesourcery.com>
9162
9163 * NEWS: Mention target-side conditional breakpoint support,
9164 new condition-evaluation breakpoint subcommand and remote
9165 packet extensions.
9166
dea2aa5f
LM
91672012-02-24 Luis Machado <lgustavo@codesourcery.com>
9168
9169 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9170 number.
9171
8a8bc27f
TS
91722012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9173
9174 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9175 (after_prologue): Remove.
9176
6b446fdf
TT
91772012-02-23 Tom Tromey <tromey@redhat.com>
9178
9179 * jv-valprint.c (java_val_print): Remove dead code.
9180
ef59abfb
TG
91812012-02-23 Tristan Gingold <gingold@adacore.com>
9182
a09130f9
PA
9183 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9184 known_tasks_element and known_tasks_length fields.
9185 (read_known_tasks_array): Change argument type. Use pointer type
9186 and number of elements from DATA. Adjust.
9187 (read_known_tasks_list): Likewise.
9188 (get_known_tasks_addr): Remove.
9189 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9190 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9191 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 9192
def166f6
JK
91932012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9194
9195 PR backtrace/13716
9196 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9197 it after set_momentary_breakpoint.
9198
aeaa2474
SA
91992012-02-22 Sterling Augustine <saugustine@google.com>
9200
9201 PR 13689:
9202 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9203
feea76c2
GB
92042012-02-22 Gary Benson <gbenson@redhat.com>
9205
9206 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9207 (find_slot_in_mapped_hash): Likewise.
9208
f06e05e0
JK
92092012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9210
9211 PR build/13638
9212 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9213 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9214 * configure: Regenerate.
9215
b54a8fd7
PA
92162012-02-21 Tristan Gingold <gingold@adacore.com>
9217 Pedro Alves <palves@redhat.com>
9218
9219 * ia64-tdep.c: Do not include libunwind-ia64.h.
9220 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9221 Include libunwind-ia64.h instead of libunwind.h.
9222 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9223 for libunwind.h existence.
9224 * configure, config.in: Regenerate.
9225
dfcee124
AG
92262012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9227
9228 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9229 instead of value_rtti_target_type.
9230 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9231 instead of value_rtti_target_type.
9232 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9233 value_rtti_target_type.
9234 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9235 (value_rtti_target_type): Rename to ...
9236 (value_rtti_indirect_type): ... here and make it indirect. Update
9237 function comment.
9238 * value.c (readjust_indirect_value_type): New function.
9239 (coerce_ref): Support for enclosing type setting for references
9240 with readjust_indirect_value_type.
9241 * value.h (readjust_value_type): New declaration.
9242 (value_rtti_target_type): Rename to ...
9243 (value_rtti_indirect_type): ... here.
9244
02568277
AG
92452012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9246
9247 * MAINTAINERS (Write After Approval): Add myself to the list.
9248
10c07b7e 92492012-02-20 Doug Evans <dje@google.com>
28ee876a 9250
d82ea6a8
DE
9251 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9252 Rename objfile_p_char parameter to objfilep.
9253 (build_objfile_section_table): Result is now void. All callers
9254 updated.
9255 * objfiles.h (struct objfile): Tweak comments, whitespace.
9256 (build_objfile_section_table): Update.
9257
28ee876a
DE
9258 * elfread.c (elf_symfile_segments): Fix warning text.
9259
24c79950
TT
92602012-02-20 Tom Tromey <tromey@redhat.com>
9261
9262 PR gdb/13498:
9263 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9264 particular set of file names once.
9265 (dw2_map_symbol_filenames): Likewise.
9266
3a9b40b6
JK
92672012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9268
9269 Code cleanup.
9270 * main.c (write_files): Remove the declaration.
9271 (external_editor_command): Move the declaration ...
9272 [GDBTK] (external_editor_command): ... here. Fix the comment.
9273
4d0795ca
TT
92742012-02-20 Tom Tromey <tromey@redhat.com>
9275
9276 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9277 extraneous block.
9278
637fd620
TG
92792012-02-20 Tristan Gingold <gingold@adacore.com>
9280
9281 * darwin-nat.h (enum darwin_msg_state): Add comments.
9282
6f124894
TG
92832012-02-20 Tristan Gingold <gingold@adacore.com>
9284
9285 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9286 value.
9287
2e6e3d9c
JB
92882012-20-18 Joel Brobecker <brobecker@adacore.com>
9289
9290 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9291 between function description and implementation.
9292
2e8265fd
TT
92932012-02-17 Tom Tromey <tromey@redhat.com>
9294
9295 PR python/12070:
9296 * python/py-event.c (event_object_getset): New global.
9297 (event_object_type): Reference it.
9298 * python/py-type.c (field_object_getset): New global.
9299 (field_object_type): Reference it.
9300 * python/python-internal.h (gdb_py_generic_dict): Declare.
9301 * python/py-utils.c (gdb_py_generic_dict): New function.
9302
8544a150 93032012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 9304
8544a150 9305 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 9306
ca193e27
TS
93072012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9308
9309 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9310 TYPE_CALLING_CONVENTION annotation.
9311
e5586183
KB
93122012-02-16 Kevin Buettner <kevinb@redhat.com>
9313
9314 * MAINTAINERS: Add rx to target ISA section.
9315 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9316 (ALLDEPFILES): Add rx-tdep.c.
9317
7dcd53a0
TT
93182012-02-16 Tom Tromey <tromey@redhat.com>
9319
9320 * symfile.c (symbol_file_add_main_1): Use inferior's
9321 symfile_flags.
9322 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9323 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9324 inferior.
9325 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9326 inferior.
9327 (follow_exec): Use inferior's symfile_flags.
9328 * inferior.h (struct inferior) <symfile_flags>: New field.
9329
ddd60447
MF
93302012-02-16 Mike Frysinger <vapier@gentoo.org>
9331
9332 PR gdb/9734:
9333 * remote-sim.c (gdbsim_create_inferior): Call error() when
9334 sim_create_inferior() fails.
9335
b0d32fb6
TG
93362012-02-16 Josh Matthews <josh@joshmatthews.net>
9337
9338 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9339
9addecb9
TT
93402012-02-16 Tom Tromey <tromey@redhat.com>
9341
9342 PR c++/13653:
9343 * thread.c (struct current_thread_cleanup) <was_removable>: New
9344 field.
9345 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9346 (make_cleanup_restore_current_thread): Initialize new field.
9347
a58b110a
KB
93482012-02-15 Kevin Buettner <kevinb@redhat.com>
9349
9350 * MAINTAINERS: Add rl78 to target ISA section.
9351 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9352 (ALLDEPFILES): Add rl78-tdep.c.
9353 * NEWS: Mention rl78 as a new target.
9354
4cb6da1c
AR
93552012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9356
9357 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9358 data.
9359 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9360
3af2590d
TT
93612012-02-15 Tom Tromey <tromey@redhat.com>
9362
9363 PR gdb/12659:
9364 * infcmd.c (registers_info): Print just the current register's
9365 name.
9366
c6910659
TT
93672012-02-15 Tom Tromey <tromey@redhat.com>
9368
9369 * python/py-symbol.c (sympy_value): Use _().
9370
7cee1e54
PA
93712012-02-15 Pedro Alves <palves@redhat.com>
9372
9373 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9374 output to be like native targets'.
9375 (remote_pid_to_str): Special case the null ptid.
9376
816338b5
SS
93772012-02-14 Stan Shebs <stan@codesourcery.com>
9378
9379 * NEWS: Mention enable count command.
9380 * breakpoint.h (struct breakpoint): New field enable_count.
9381 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9382 (enable_breakpoint): Add arg to call.
9383 (struct disp_data): New struct.
9384 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9385 (do_map_enable_once_breakpoint): Create a struct and pass it.
9386 (do_map_enable_delete_breakpoint): Ditto.
9387 (do_map_enable_count_breakpoint): New function.
9388 (enable_count_command): New function.
9389 (bpstat_stop_status): Decrement enable_count.
9390 (print_one_breakpoint_location): Report enable count.
9391 (_initialize_breakpoint): Add enable count command.
9392
c47a44f4
KB
93932012-02-14 Kevin Buettner <kevinb@redhat.com>
9394
9395 * rl78-tdep.c (reggroups.h): Include.
9396 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9397 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9398 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9399 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9400 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9401 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9402 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9403 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9404 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9405 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9406 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9407 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9408 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9409 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9410 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9411 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9412 beginning of register list.
9413 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9414 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9415 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9416 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9417 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9418 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9419 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9420 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9421 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9422 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9423 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9424 the pseudo registers. Rearrange other pseudo registers too so
9425 that the bank registers appear at the end.
9426 (rl78_register_type): Account for the fact that the byte sized
9427 bank registers are now pseudo-registers.
9428 (rl78_register_name): Rearrange the register name array. Make
9429 initial set of raw banked registers inaccessible.
9430 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9431 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9432 case for copying bytes back and forth between raw and pseudo
9433 versions of the banked registers. Update other cases to reflect
9434 the changed names.
9435 (rl78_return_value): Update to account for changed names of
9436 raw registers.
9437 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9438 rl78_register_sim_regno().
9439
e4569f1e
KB
94402012-02-14 Kevin Buettner <kevinb@redhat.com>
9441
9442 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9443 the name parameter being passed to find_pc_partial_function().
9444
7a05aae7
JK
94452012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9446
9447 * MAINTAINERS: Step down from being ia64 target maintainer.
9448
11fde611
JK
94492012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9450
9451 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9452 compilation warning.
9453
57008375
JK
94542012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9455
9456 Fix crash on loaded shlibs without loaded exec_bfd.
9457 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9458 (set_section_command): Replace exec_bfd by p->bfd.
9459
ff3c9849
TT
94602012-02-10 Tom Tromey <tromey@redhat.com>
9461
9462 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9463 when we have a C++ qualified name.
9464
db2b9fdd
PA
94652012-02-10 Pedro Alves <palves@redhat.com>
9466
9467 * inferior.c (inferior_pid_to_str): New.
9468 (print_inferior, inferior_command): Use it.
9469
12cd34f3
PA
94702012-02-10 Pedro Alves <palves@redhat.com>
9471
9472 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9473 the test CFLAGS.
9474 * configure: Regenerate.
9475
e871429d
JK
94762012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9477
9478 * linespec.c (decode_line_internal): Fix comment correctness.
9479
1916efaf
PA
94802012-02-09 Valery Khromov <valery.khromov@gmail.com>
9481
9482 PR gdb/12953
9483 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9484 * amd64bsd-nat.c: Add support for debug registers (adapted from
9485 i386bsd-nat.c).
9486 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9487 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9488 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9489 (amd64bsd_dr_get_control): New functions.
9490 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9491 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9492 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9493 watchpoints initialization.
9494 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9495
f4859d94
JK
94962012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9497
9498 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9499 flds_bnds.fields.
9500 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9501
c56a97f9
JK
95022012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9503
9504 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9505
1a119f36
JB
95062012-02-08 Joel Brobecker <brobecker@adacore.com>
9507
9508 * language.h (symbol_name_cmp_ftype): Renames
9509 symbol_name_match_p_ftype.
9510 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9511 la_get_symbol_name_match_p.
9512 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9513 ada_get_symbol_name_match_p. Update comment.
9514 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9515 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9516 Renames symbol_name_match_p. Update field type.
9517 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9518 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9519 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9520 "la_get_symbol_name_cmp" in comments.
9521 * language.c: Likewise.
9522
c71bb1cf
RO
95232012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9524
9525 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9526 %eflags offset.
9527 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9528 (amd64_sol2_gregset32_reg_offs): Likewise.
9529
4b2d20a5
TG
95302012-02-08 Joel Brobecker <brobecker@adacore.com>
9531
9532 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9533 of the returned BFD is allocated by GDB.
9534
f0823d2c
TT
95352012-02-07 Tom Tromey <tromey@redhat.com>
9536
9537 PR python/12027:
9538 * python/python-internal.h (frame_object_type): Declare.
9539 * python/py-symbol.c (sympy_needs_frame): New function.
9540 (sympy_value): New function.
9541 (symbol_object_getset): Add "needs_frame".
9542 (symbol_object_methods): Add "value".
9543 * python/py-frame.c (frame_object_type): No longer static.
9544
64e7d9dd
TT
95452012-02-07 Tom Tromey <tromey@redhat.com>
9546
9547 PR python/13599:
9548 * python/py-symbol.c (sympy_line): New function.
9549 (symbol_object_getset): Add "line".
9550
1d6b2d2b
TT
95512012-02-07 Tom Tromey <tromey@redhat.com>
9552
9553 * charset.c (find_charset_names): Check 'in' against NULL.
9554
0d5cff50
DE
95552012-02-06 Doug Evans <dje@google.com>
9556
9557 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9558 and fields.name members from char * to const char *. All uses updated.
9559 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9560 from char * to const char *. All uses updated.
9561 (type_name_no_tag): Update.
9562 (lookup_unsigned_typename, lookup_signed_typename): Update.
9563 * gdbtypes.c (type_name_no_tag): Change result type
9564 from char * to const char *. All callers updated.
9565 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9566 name parameter from char * to const char *.
9567 * symtab.h (struct cplus_specific): Change type of demangled_name
9568 member from char * to const char *. All uses updated.
9569 (struct general_symbol_info): Change type of name and
9570 mangled_lang.demangled_name members from char * to const char *.
9571 All uses updated.
9572 (symbol_get_demangled_name, symbol_natural_name): Update.
9573 (symbol_demangled_name, symbol_search_name): Update.
9574 * symtab.c (symbol_get_demangled_name): Change result type
9575 from char * to const char *. All callers updated.
9576 (symbol_natural_name, symbol_demangled_name): Ditto.
9577 (symbol_search_name): Ditto.
9578 (completion_list_add_name): Change type of symname,sym_text,
9579 text,word parameters from char * to const char *.
9580 (completion_list_objc_symbol): Change type of sym_text,
9581 text,word parameters from char * to const char *.
9582 * ada-lang.c (find_struct_field): Change type of name parameter
9583 from char * to const char *.
9584 (encoded_ordered_before): Similarly for N0,N1 parameters.
9585 (old_renaming_is_invisible): Similarly for function_name parameter.
9586 (ada_type_name): Change result type from char * to const char *.
9587 All callers updated.
9588 * ada-lang.h (ada_type_name): Update.
9589 * buildsym.c (hashname): Change type of name parameter
9590 from char * to const char *.
9591 * buildsym.h (hashname): Update.
9592 * dbxread.c (end_psymtab): Change type of include_list parameter
9593 from char ** to const char **.
9594 * dwarf2read.c (determine_prefix): Change result type
9595 from char * to const char *. All callers updated.
9596 * f-lang.c (find_common_for_function): Change type of name, funcname
9597 parameters from char * to const char *.
9598 * f-lang.c (find_common_for_function): Update.
9599 * f-valprint.c (list_all_visible_commons): Change type of funcname
9600 parameters from char * to const char *.
9601 * gdbarch.sh (static_transform_name): Change type of name parameter
9602 and result from char * to const char *.
9603 * gdbarch.c: Regenerate.
9604 * gdbarch.h: Regenerate.
9605 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9606 of name parameter from char * to const char *.
9607 * jv-lang.c (java_primitive_type_from_name): Ditto.
9608 (java_demangled_signature_length): Similarly for signature parameter.
9609 (java_demangled_signature_copy): Ditto.
9610 (java_demangle_type_signature): Ditto.
9611 * jv-lang.h (java_primitive_type_from_name): Update.
9612 (java_demangle_type_signature): Update.
9613 * objc-lang.c (specialcmp): Change type of a,b parameters
9614 from char * to const char *.
9615 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9616 from char * to const char *. All callers updated.
9617 * p-lang.h (is_pascal_string_type): Update.
9618 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9619 of name parameter from char * to const char *.
9620 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9621 * utils.c (fprintf_symbol_filtered): Ditto.
9622 * defs.h (fprintf_symbol_filtered): Update.
9623 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9624 * stabsread.h (end_psymtab): Update.
9625 * stack.c (find_frame_funname): Change type of funname parameter
9626 from char ** to const char **.
9627 * stack.h (find_frame_funname): Update.
9628 * typeprint.c (type_print): Change type of varstring parameter
9629 from char * to const char *.
9630 * value.h (type_print): Update.
9631 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9632 from char * to const char *. All callers updated.
9633 (xcoff_end_psymtab): Change type of include_list parameter
9634 from char ** to const char **. All callers updated.
9635 (swap_sym): Similarly for name parameter. All callers updated.
9636 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9637 Use xstrdup.
9638 (process_coff_symbol): Use xstrdup.
9639 * stabsread.c (stabs_method_name_from_physname): Renamed from
9640 update_method_name_from_physname. Change result type from void
9641 to char *. All callers updated.
9642 (read_member_functions): In has_destructor case, store name in objfile
9643 obstack instead of malloc space. In !has_stub case, fix mem leak.
9644
5579a92e
TT
96452012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9646
9647 * configure: Rebuild.
9648 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9649 LDFLAGS.
9650
9058f767
KB
96512012-02-03 Kevin Buettner <kevinb@redhat.com>
9652
9653 * configure.tgt (rl78-*-elf): New target.
9654 * rl78-tdep.c: New file.
9655
5b37825d
PW
96562012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9657
9658 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9659 and continue the loop. Add QUIT statement.
9660
e009ee71
TT
96612012-02-03 Tom Tromey <tromey@redhat.com>
9662
9663 PR gdb/13596:
9664 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9665 bfd_lookup_symbol_from_symtab.
9666 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9667 gdb_bfd_lookup_symbol_from_symtab.
9668
f7e44f65
JB
96692012-02-03 Joel Brobecker <brobecker@adacore.com>
9670
9671 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9672 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9673 symbol. Add assertion that sym2 is never NULL.
9674
2c02bd72
DE
96752012-02-02 Doug Evans <dje@google.com>
9676
9677 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9678 "name" parameter to const char ** from char **. All callers updated.
9679 (find_pc_partial_function): Ditto.
9680 (cache_pc_function_name): Change type to const char * from char *.
9681 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9682 (find_pc_partial_function): Update.
9683 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9684 type of "name" parameter to const char * from char *.
9685 All uses updated.
9686 * arch-utils.c (generic_in_solib_return_trampoline): Change
9687 type of "name" parameter to const char * from char *.
9688 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9689 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9690 type of "name" parameter to const char * from char *.
9691 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9692 * gdbarch.c: Regenerate.
9693 * gdbarch.h: Regenerate.
9694 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9695 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9696 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9697 type of "name" parameter to const char * from char *.
9698 * skip.c (skip_function_pc): Ditto.
9699 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9700 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9701 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9702 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9703 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9704 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9705 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9706 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9707 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9708
e886a173
PA
97092012-02-02 Pedro Alves <palves@redhat.com>
9710
9711 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9712 the current inferior has no execution. Make sure the current
9713 remote process matches gdb's current inferior.
9714
c709a7c2
TT
97152012-02-02 Tom Tromey <tromey@redhat.com>
9716
9717 PR gdb/13405:
9718 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9719 read-only memory.
9720
f149aabd
TT
97212012-02-02 Tom Tromey <tromey@redhat.com>
9722
9723 PR gdb/9307:
9724 * symtab.c (lookup_language_this): Set block_found.
9725
03bef283
TT
97262012-02-01 Tom Tromey <tromey@redhat.com>
9727
9728 PR gdb/13431:
9729 * jit.c (struct jit_inferior_data): Rewrite.
9730 (struct jit_objfile_data): New.
9731 (get_jit_objfile_data): New function.
9732 (add_objfile_entry): Update.
9733 (jit_read_descriptor): Return int. Replace descriptor_addr
9734 argument with inf_data. Update. Don't call error.
9735 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9736 descriptor here.
9737 (jit_inferior_init): Don't look up descriptor. Don't call error.
9738 (jit_reset_inferior_data_and_breakpoints)
9739 (jit_inferior_created_observer): Remove.
9740 (jit_inferior_exit_hook): Update.
9741 (jit_executable_changed_observer): Remove.
9742 (jit_event_handler): Update.
9743 (free_objfile_data): Reset inferior data if needed.
9744 (_initialize_jit): Update.
9745
f0bbc364
TT
97462012-02-01 Tom Tromey <tromey@redhat.com>
9747
9748 * jit.c (bfd_open_from_target_memory): Move higher in file.
9749
47c1316c
TG
97502012-02-01 Tristan Gingold <gingold@adacore.com>
9751
9752 * libunwind-frame.c (libunwind_load): Display message if dlopen
9753 failed.
9754
8e704927
GB
97552012-02-01 Gary Benson <gbenson@redhat.com>
9756
09c7a31f 9757 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
9758 (iterate_over_symbols): Use the above.
9759 * symtab.c (iterate_over_symbols): Likewise.
9760 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9761 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9762 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9763 (iterate_name_matcher): Document return values.
9764 (collect_one_symbol): Likewise.
9765 (collect_function_symbols): Likewise.
9766 (collect_symbols): Likewise.
9767
d9680e73
TT
97682012-02-01 Tom Tromey <tromey@redhat.com>
9769
9770 * ada-lang.c (resolve_subexp): Update.
9771 (ada_lookup_symbol_list): Add 'full_search' argument.
9772 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9773 ada_lookup_symbol_list.
9774 (ada_lookup_encoded_symbol): Update.
9775 (get_var_value): Update.
9776 * ada-exp.y (block_lookup): Update.
9777 (write_var_or_type): Update.
9778 (write_name_assoc): Update.
9779 * ada-lang.h (ada_lookup_symbol_list): Update.
9780
72e1143f
TT
97812012-01-31 Tom Tromey <tromey@redhat.com>
9782
9783 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9784 comment.
9785
ab2d2ad3
DE
97862012-01-31 Doug Evans <dje@google.com>
9787
9788 * symtab.h: Remove outdated comment.
e9111bf7 9789 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 9790
bc884eba
JB
97912012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9792
9793 Fix build error in Darwin port.
9794 * i386-darwin-nat.c: Include i386-nat.h.
9795
8fc3fc34
TT
97962012-01-30 Tom Tromey <tromey@redhat.com>
9797
9798 PR breakpoints/13568:
9799 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9800 argument. Check for recursive includes.
9801 (dwarf_decode_macros): Create an include hash.
9802
5d853008
ME
98032012-01-30 Michael Eager <eager@eagercon.com>
9804
9805 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9806 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 9807 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
9808 (powerpc_linux_in_plt_stub): New function.
9809 (powerpc_linux_in_dynsym_resolve_code): New function.
9810 (ppc_skip_trampoline_code): New function.
9811 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9812 Use glibc_skip_solib_resolver.
9813
40478521
JK
98142012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9815
9816 Code cleanup: Make 1440 bytes of data segment read-only.
9817 * arch-utils.c (endian_enum): Make it const char *const [].
9818 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9819 Likewise.
9820 * breakpoint.c (always_inserted_enums): Likewise.
9821 * cli/cli-cmds.c (script_ext_enums): Likewise.
9822 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9823 enumlist parameter const char *const *.
9824 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9825 const char *const *.
9826 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9827 parameter const char *const *.
9828 * cris-tdep.c (cris_modes): Make it const char *const [].
9829 * filesystem.c (target_file_system_kinds): Likewise.
9830 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9831 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9832 (can_use_displaced_stepping_enum, scheduler_enums)
9833 (exec_direction_names): Likewise.
9834 * language.c (_initialize_language): Make the type_or_range_names and
9835 case_sensitive_names variables const char *const [].
9836 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9837 * python/python.c (python_excp_enums): Likewise.
9838 * remote.c (interrupt_sequence_modes): Likewise.
9839 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9840 * serial.c (logbase_enums): Likewise.
9841 * sh-tdep.c (sh_cc_enum): Likewise.
9842 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9843 Likewise.
9844 * symtab.c (multiple_symbols_modes): Likewise.
9845 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9846 Likewise.
9847 * utils.c (internal_problem_modes): Likewise.
9848
b3b8b934
JK
98492012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9850
9851 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9852 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9853 result.
9854
8c85a4e2
DE
98552012-01-27 Doug Evans <dje@google.com>
9856
9857 * configure.ac (with_python): Fix absolute path handling for win32.
9858 * configure: Regenerate.
9859
78d8b4d7
DE
98602012-01-26 Doug Evans <dje@google.com>
9861
eca864fe
DE
9862 * symtab.c: Whitespace cleanup, no code changes.
9863
7e082072
DE
9864 * symtab.c (lookup_symbol_in_language): Improve comment.
9865 (lookup_symbol_aux): Fix comment.
9866
7dc25483
DE
9867 * psymtab.c (add_psymbol_to_list): Result is now "void".
9868 * psympriv.h (add_psymbol_to_list): Update.
9869
78d8b4d7
DE
9870 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9871
4c63965b
JK
98722012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9873
9874 Do not open script filenames twice.
9875 * cli/cli-cmds.c (source_script_from_stream): Pass to
9876 source_python_script also STREAM.
9877 * python/py-auto-load.c (source_section_scripts): Pass to
9878 source_python_script_for_objfile also STREAM.
9879 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9880 also INPUT.
9881 * python/python-internal.h (source_python_script_for_objfile): New
9882 parameter file, rename parameter file to filename.
9883 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9884 instead if !_WIN32. Update the function comment.
9885 (source_python_script, source_python_script_for_objfile)
9886 (source_python_script): New parameter file, rename parameter file to
9887 filename. Pass FILENAME to python_run_simple_file.
9888 * python/python.h (source_python_script): New parameter file, rename
9889 parameter file to filename.
9890
88f38a04
PA
98912012-01-26 Pedro Alves <palves@redhat.com>
9892
9893 * corelow.c (core_has_fake_pid): Delete.
9894 (core_close): Delete references to `core_has_fake_pid'.
9895 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9896 (core_open): Delete references to `core_has_fake_pid'.
9897 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9898 the removed global.
9899
e078317b
JB
99002012-01-26 Joel Brobecker <brobecker@adacore.com>
9901
9902 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9903 Remove language parameter from name_matcher. Adjust the comment.
9904 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9905 Remove language parameter.
9906 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9907 * linespec.c (iterate_name_matcher): Likewise.
9908 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9909 name_matcher. Adjust call accordingly.
9910 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9911 (maintenance_check_symtabs): Adjust type of parameter "fun".
9912 * psymtab.h (maintenance_check_symtabs): Likewise.
9913
74ccd7f5
JB
99142012-01-26 Joel Brobecker <brobecker@adacore.com>
9915
9916 * language.h (symbol_name_match_p_ftype): New typedef.
9917 (struct language_defn): Replace field la_symbol_name_compare
9918 by la_get_symbol_name_match_p.
9919 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9920 (ada_language_defn): Use it.
9921 * linespec.c (struct symbol_matcher_data): New type.
9922 (iterate_name_matcher): Rewrite.
9923 (iterate_over_all_matching_symtabs): Pass a pointer to
9924 a symbol_matcher_data struct to expand_symtabs_matching
9925 instead of just the lookup name.
9926 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9927 opencl-lang.c, p-lang.c, language.c: Delete field
9928 la_symbol_name_compare, and replace by NULL for new field
9929 la_get_symbol_name_match_p.
9930 * symfile.h (struct quick_symbol_functions): Update comment.
9931
5d268276
TT
99322012-01-25 Tom Tromey <tromey@redhat.com>
9933
9934 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9935 dereferencing.
9936
edcc5120
TT
99372012-01-24 Tom Tromey <tromey@redhat.com>
9938
9939 PR symtab/12406:
9940 * solib.c (update_solib_list): Update the program space's
9941 added_solibs and deleted_solibs fields.
9942 * progspace.h (struct program_space) <added_solibs,
9943 deleted_solibs>: New fields.
9944 (clear_program_space_solib_cache): Declare.
9945 * progspace.c (release_program_space): Call
9946 clear_program_space_solib_cache.
9947 (clear_program_space_solib_cache): New function.
9948 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9949 bpstat_stop_status. Use handle_solib_event.
9950 * breakpoint.c: Include gdb_regex.h.
9951 (print_solib_event): New function.
9952 (bpstat_print): Use print_solib_event.
9953 (bpstat_stop_status): Add special case for bp_shlib_event.
9954 (handle_solib_event): New function.
9955 (bpstat_what): Use handle_solib_event.
9956 (struct solib_catchpoint): New.
9957 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9958 (breakpoint_hit_catch_solib, check_status_catch_solib)
9959 (print_it_catch_solib, print_one_catch_solib)
9960 (print_mention_catch_solib, print_recreate_catch_solib): New
9961 functions.
9962 (catch_solib_breakpoint_ops): New global.
9963 (catch_load_or_unload, catch_load_command_1)
9964 (catch_unload_command_1): New functions.
9965 (internal_bkpt_check_status): Add special case for
9966 bp_shlib_event.
9967 (internal_bkpt_print_it): Use print_solib_event.
9968 (initialize_breakpoint_ops): Initialize
9969 catch_solib_breakpoint_ops.
9970 (_initialize_breakpoint): Register "catch load" and "catch
9971 unload".
9972 * breakpoint.h (handle_solib_event): Declare.
9973 * NEWS: Add entry for "catch load" and "catch unload".
9974
fa864999
TT
99752012-01-24 Tom Tromey <tromey@redhat.com>
9976
9977 * ada-lang.c: Include gdb_vecs.h.
9978 * charset.c: Include gdb_vecs.h.
9979 * tracepoint.h: Include gdb_vecs.h.
9980 * gdb_vecs.h: New file.
9981
f90263c1
TT
99822012-01-24 Pedro Alves <pedro@codesourcery.com>
9983
9984 * breakpoint.c (breakpoint_hit_catch_fork)
9985 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9986 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9987 * infrun.c (inferior_has_forked, inferior_has_vforked)
9988 (inferior_has_execd, inferior_has_called_syscall): Delete.
9989 (handle_syscall_event): Get syscall_number from the execution
9990 control state's wait status.
9991 (wait_for_inferior): Don't clear syscall_number.
9992
09ac7c10
TT
99932012-01-24 Pedro Alves <palves@redhat.com>
9994
9995 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9996 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9997 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9998 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9999 `ws' parameter.
10000 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10001 false for events other than TARGET_SIGNAL_TRAP.
10002 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10003 Add `ws' parameter.
10004 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10005 events other than TARGET_SIGNAL_TRAP.
10006 (tracepoint_breakpoint_hit): Add `ws' parameter.
10007 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10008 parameter.
10009 (bpstat_stop_status): Same.
10010 (pc_at_non_inline_function): Same.
10011 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10012 to pass the current event's waitstatus to bpstat_stop_status
10013 and pc_at_non_inline_function.
10014
86eb7e95
JK
100152012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10016
10017 Code cleanup.
10018 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10019 Update the function comment for it.
10020 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10021 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10022 for STREAM.
10023
a9b3a50f
PA
100242012-01-24 Pedro Alves <palves@redhat.com>
10025
10026 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10027 outside `bs->stop' block.
10028 (bpstat_what): Rework bp_shlib_event handling.
10029 (internal_bkpt_check_status): If the breakpoint is a
10030 bp_shlib_event, then set bs->stop and bs->print if
10031 stop_on_solib_events is set.
10032
53fe1783
GB
100332012-01-24 Gary Benson <gbenson@redhat.com>
10034
10035 Delete #if 0'd out code.
10036 * stack.c (print_frame_label_vars): Remove.
10037 (catch_info): Likewise.
10038 (_initialize_stack): Remove "info catch" command.
10039 * NEWS: Mention the above.
10040
49c62f2e
PA
100412012-01-24 Pedro Alves <palves@redhat.com>
10042
10043 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10044 it.
10045 (remote_notice_new_inferior): If the remote end doesn't support
10046 the multiprocess extensions, then the PID is fake.
10047 (add_current_inferior_and_thread): New.
10048 (remote_start_remote): Use it.
10049 (extended_remote_attach_1): Adjust.
10050 (extended_remote_create_inferior_1): Use
10051 add_current_inferior_and_thread.
10052
d0d8b0c6
JK
100532012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10054
10055 Fix watchpoints to be specific for each inferior.
10056 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10057 current_program_space.
10058 * i386-nat.c (i386_inferior_data_cleanup): New.
10059 (i386_inferior_data_get): Replace variable inf_data_local by an
10060 inferior_data call.
10061 (i386_use_watchpoints): Initialize i386_inferior_data.
10062 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10063 specific iterate_over_lwps.
10064
4403d8e9
JK
100652012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10066
10067 Fix watchpoints across inferior fork.
10068 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10069 comment for linux_nat_iterate_watchpoint_lwps.
10070 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10071 linux_nat_iterate_watchpoint_lwps.
10072 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10073 * i386-linux-nat.c (update_debug_registers_callback): Update the
10074 comment for linux_nat_iterate_watchpoint_lwps.
10075 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10076 linux_nat_iterate_watchpoint_lwps.
10077 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10078 * i386-nat.c: Include inferior.h.
10079 (dr_mirror): Remove.
10080 (i386_inferior_data, struct i386_inferior_data)
10081 (i386_inferior_data_get): New.
10082 (i386_debug_reg_state): Use i386_inferior_data_get.
10083 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10084 (i386_insert_watchpoint, i386_remove_watchpoint)
10085 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10086 (i386_remove_hw_breakpoint): New variable state, use
10087 i386_debug_reg_state instead of DR_MIRROR.
10088 * linux-nat.c (delete_lwp): New declaration.
10089 (num_lwps): Move here from downwards.
10090 (delete_lwp_cleanup): New.
10091 (linux_child_follow_fork): Create new child_lp, call
10092 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10093 PTRACE_DETACH.
10094 (num_lwps): Move upwards.
10095 (linux_nat_iterate_watchpoint_lwps): New.
10096 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10097 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10098
2992c9a7 100992012-01-24 Joel Brobecker <brobecker@adacore.com>
10100
10101 GDB 7.4 released.
10102
e360902b
PA
101032012-01-23 Pedro Alves <palves@redhat.com>
10104
10105 * top.c (caution): Rename to ...
10106 (confirm): ... this.
10107 (show_caution): Rename to ...
10108 (show_confirm): ... this.
10109 (quit_cover): Adjust.
10110 (init_main): Adjust.
10111 * top.h (caution): Rename to ...
10112 (confirm): ... this.
10113 * utils.c (internal_vproblem, defaulted_query): Adjust.
10114
050a2e1d
PA
101152012-01-23 Pedro Alves <palves@redhat.com>
10116
10117 * top.c (caution): Update comment.
10118 (execute_command): Don't consider the current value of `caution'.
10119
77a35dd8
JK
101202012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10121
10122 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10123
a71b5a38
UW
101242012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10125
10126 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10127 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10128 * target.c (target_fileio_pwrite): Remove buffer address from
10129 debug output.
10130 (target_fileio_pread): Likewise.
10131
d99bd577
UW
101322012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10133
10134 * NEWS: Document remote "info proc" and "generate-core-file".
10135
35c2fab7
UW
101362012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10137
10138 * gdbarch.sh (find_memory_regions): New callback.
10139 * gdbarch.c, gdbarch.h: Regenerate.
10140
10141 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10142 callback before falling back to target method.
10143
10144 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10145 (linux_target_install_ops): No longer install it.
10146
10147 * linux-tdep.c (linux_find_memory_regions): New function.
10148 (linux_init_abi): Install it.
10149
6432734d
UW
101502012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10151
10152 * gdbarch.sh (make_corefile_notes): New architecture callback.
10153 * gdbarch.c: Regenerate.
10154 * gdbarch.h: Likewise.
10155
10156 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10157 before target_make_corefile_notes. If NULL is returned, the
10158 target does not support core file generation.
10159
10160 * linux-nat.c: Include "linux-tdep.h".
10161 (find_signalled_thread, find_stop_signal): Remove.
10162 (linux_nat_do_thread_registers): Likewise.
10163 (struct linux_nat_corefile_thread_data): Likewise.
10164 (linux_nat_corefile_thread_callback): Likewise.
10165 (iterate_over_spus): Likewise.
10166 (struct linux_spu_corefile_data): Likewise.
10167 (linux_spu_corefile_callback): Likewise.
10168 (linux_spu_make_corefile_notes): Likewise.
10169 (linux_nat_collect_thread_registers): New function.
10170 (linux_nat_make_corefile_notes): Replace contents by call to
10171 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10172 as native-only callback.
10173
10174 * linux-tdep.h: Include "bfd.h".
10175 (struct regcache): Add forward declaration.
10176 (linux_collect_thread_registers_ftype): New typedef.
10177 (linux_make_corefile_notes): Add prototype.
10178 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10179 "regset.h", and "elf-bfd.h".
10180 (find_signalled_thread, find_stop_signal): New functions.
10181 (linux_spu_make_corefile_notes): Likewise.
10182 (linux_collect_thread_registers): Likewise.
10183 (struct linux_corefile_thread_data): New data structure.
10184 (linux_corefile_thread_callback): New funcion.
10185 (linux_make_corefile_notes): Likewise.
10186 (linux_make_corefile_notes_1): Likewise.
10187 (linux_init_abi): Install it.
10188
3030c96e
UW
101892012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10190
10191 * gdbarch.sh (info_proc): New callback.
10192 * gdbarch.c, gdbarch.h: Regenerate.
10193
10194 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10195 before falling back to the target info_proc callback.
10196
10197 * linux-nat.c: Do not include "cli/cli-utils.h".
10198 (linux_nat_info_proc): Remove.
10199 (linux_target_install_ops): No longer install it.
10200
10201 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10202 (read_mapping): New function.
10203 (linux_info_proc): Likewise.
10204 (linux_init_abi): Install it.
10205
145b16a9
UW
102062012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10207
10208 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10209 * infcmd.c: (info_proc_cmd_1): New function.
10210 (info_proc_cmd): New function, moved here from equivalent routine
10211 orignally in linux-nat.c.
10212 (info_proc_cmd_mappings): Likewise.
10213 (info_proc_cmd_stat): Likewise.
10214 (info_proc_cmd_status): Likewise.
10215 (info_proc_cmd_cwd): Likewise.
10216 (info_proc_cmd_cmdline): Likewise.
10217 (info_proc_cmd_exe): Likewise.
10218 (info_proc_cmd_all): Likewise.
10219 (_initialize_infcmd): Install "info proc" command and subcommands.
10220
10221 * target.h (struct target_ops): Add to_info_proc.
10222 (target_info_proc): Add prototype.
10223 * target.c (target_info_proc): New function.
10224
10225 * procfs.c (procfs_info_proc): Add prototype.
10226 (info_proc_cmd): Rename into ...
10227 (procfs_info_proc): ... this. Update argument types as appropriate
10228 for a to_info_proc implementation. Handle "what" argument.
10229 (procfs_target): Install procfs_info_proc.
10230 (_initialize_procfs): No longer install "info proc" command.
10231
10232 * linux-nat.c: (enum info_proc_what): Remove.
10233 (linux_nat_info_proc_cmd_1): Rename into ...
10234 (linux_nat_info_proc): ... this. Update argument types as appropriate
10235 for a to_info_proc implementation.
10236 (linux_nat_info_proc_cmd): Remove.
10237 (linux_nat_info_proc_cmd_mappings): Likewise.
10238 (linux_nat_info_proc_cmd_stat): Likewise.
10239 (linux_nat_info_proc_cmd_status): Likewise.
10240 (linux_nat_info_proc_cmd_cwd): Likewise.
10241 (linux_nat_info_proc_cmd_cmdline): Likewise.
10242 (linux_nat_info_proc_cmd_exe): Likewise.
10243 (linux_nat_info_proc_cmd_all): Likewise.
10244 (linux_target_install_ops): Install linux_nat_info_proc.
10245 (_initialize_linux_nat): No longer install "info proc" command
10246 and subcommands.
10247
b9e7b9c3
UW
102482012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10249
10250 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10251 * config.in, configure: Regenerate.
10252
10253 * target.h (struct target_ops): Add to_fileio_readlink.
10254 (target_fileio_readlink): Add prototype.
10255 * target.c (target_fileio_readlink): New function.
10256
10257 * inf-child.c: Conditionally include <sys/param.h>.
10258 (inf_child_fileio_readlink): New function.
10259 (inf_child_target): Install it.
10260
10261 * remote.c (PACKET_vFile_readlink): New enum value.
10262 (remote_hostio_readlink): New function.
10263 (init_remote_ops): Install it.
10264 (_initialize_remote): Handle vFile:readlink packet type.
10265
7313baad
UW
102662012-01-20 Pedro Alves <palves@redhat.com>
10267 Ulrich Weigand <ulrich.weigand@linaro.org>
10268
10269 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10270 * config.in, configure: Regenerate.
10271
10272 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10273 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10274 (target_fileio_open): Add prototype.
10275 (target_fileio_pwrite): Likewise.
10276 (target_fileio_pread): Likewise.
10277 (target_fileio_close): Likewise.
10278 (target_fileio_unlink): Likewise.
10279 (target_fileio_read_alloc): Likewise.
10280 (target_fileio_read_stralloc): Likewise.
10281
10282 * target.c: Include "gdb/fileio.h".
10283 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10284 (default_fileio_target): New function.
10285 (target_fileio_open): Likewise.
10286 (target_fileio_pwrite): Likewise.
10287 (target_fileio_pread): Likewise.
10288 (target_fileio_close): Likewise.
10289 (target_fileio_unlink): Likewise.
10290 (target_fileio_close_cleanup): Likewise.
10291 (target_fileio_read_alloc_1): Likewise.
10292 (target_fileio_read_alloc): Likewise.
10293 (target_fileio_read_stralloc): Likewise.
10294
10295 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10296 <fcntl.h>, and <unistd.h>.
10297 (inf_child_fileio_open_flags_to_host): New function.
10298 (inf_child_errno_to_fileio_error): Likewise.
10299 (inf_child_fileio_open): Likewise.
10300 (inf_child_fileio_pwrite): Likewise.
10301 (inf_child_fileio_pread): Likewise.
10302 (inf_child_fileio_close): Likewise.
10303 (inf_child_fileio_unlink): Likewise.
10304 (inf_child_target): Install to_fileio routines.
10305
10306 * remote.c (init_remote_ops): Install to_fileio routines.
10307
901f9912
UW
103082012-01-20 Pedro Alves <palves@redhat.com>
10309 Ulrich Weigand <ulrich.weigand@linaro.org>
10310
10311 * remote.c (remote_multi_process_p): Only check for multi-process
10312 protocol feature, do not check for extended protocol.
10313 (remote_supports_multi_process): Check for extended protocol here.
10314 (set_general_process): Likewise.
10315 (extended_remote_kill): Likewise.
10316 (remote_pid_to_str): Likewise.
10317 (remote_query_supported): Always query multiprocess mode.
10318
e714e1bf
UW
103192012-01-20 Pedro Alves <palves@redhat.com>
10320 Ulrich Weigand <ulrich.weigand@linaro.org>
10321
10322 * inferior.h (struct inferior): Add fake_pid_p.
10323 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10324 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10325 magic_null_ptid since the remote side doesn't provide a real PID.
10326
50897289
TT
103272012-01-19 Tom Tromey <tromey@redhat.com>
10328
10329 * NEWS: Combine the two Python sections.
10330
1afc2033
JK
103312012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10332
10333 * target.h (target_close): Update comment on the target's unpush state.
10334
305436e0
PA
103352012-01-19 Pedro Alves <palves@redhat.com>
10336
10337 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10338 linux_nat_async directly instead of going through the target
10339 vector.
10340 * target.c (unpush_target): Close target after unpushing it, not
10341 before.
10342
49323895
GB
103432012-01-19 Gary Benson <gbenson@redhat.com>
10344
10345 * mdebugread.c (sort_blocks): Replace integer constants with ones
10346 derived from FIRST_LOCAL_BLOCK.
10347
1db33378
PP
103482012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10349 Jan Kratochvil <jan.kratochvil@redhat.com>
10350
10351 PR gdb/9538
10352 * symfile.c (find_separate_debug_file): New function.
10353 (terminate_after_last_dir_separator): Likewise.
10354 (find_separate_debug_file_by_debuglink): Also try realpath.
10355 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10356 * configure: Regenerate.
10357 * config.in: Regenerate.
10358
f83d8a90
DE
103592012-01-18 Doug Evans <dje@google.com>
10360
10361 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10362 (main.o): Remove rule.
10363 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10364 (--with-sysroot): Rewrite.
10365 * configure: Regenerate.
10366 * config.in: Regenerate.
10367
2dbca4d6
SDJ
103682012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10369
10370 * parse.c (initialize_expout): New function.
10371 (reallocate_expout): Likewise.
10372 (parse_exp_in_context): Use `initialize_expout' and
10373 `reallocate_expout' when appropriate.
10374
0695b514
PA
103752012-01-18 Pedro Alves <palves@redhat.com>
10376
10377 * record.c (struct record_breakpoint, record_breakpoint_p)
10378 (record_breakpoints): New.
10379 (record_insert_breakpoint, record_remove_breakpoint): Manage
10380 record breakpoints list. Only remove breakpoints from the
10381 inferior if they had been inserted there in the first place.
10382
136e1c30
DE
103832012-01-17 Doug Evans <dje@google.com>
10384
10385 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10386 if we know we don't have a file name to look for.
10387
c0bf857d
PA
103882012-01-17 Pedro Alves <palves@redhat.com>
10389
10390 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10391 the frame's stop reason is UNWIND_UNAVAILABLE.
10392
b486de60
JK
103932012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10394
10395 Fix compilation error.
10396 * m2-exp.y (yyerror): Use ANSI C prototype.
10397
d04550a6
SDJ
103982012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10399
10400 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10401 (growbuf_by_size): Likewise.
10402 (yyerror): Likewise.
10403 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10404 (modblock): Remove variable (was #if 0'ed).
10405 (parse_number): Convert prototype from K&R to ANSI C.
10406 (yyerror): Likewise.
10407 * objc-exp.y (parse_number): Likewise.
10408 (yyerror): Likewise.
10409 (yylex): Remove #if 0'ed code.
10410 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10411 (yyerror): Likewise.
10412
4aac40c8
TT
104132012-01-16 Tom Tromey <tromey@redhat.com>
10414
10415 * NEWS: Add item.
10416 * symtab.h (compare_filenames_for_search): Declare.
10417 * symtab.c (compare_filenames_for_search): New function.
10418 (iterate_over_some_symtabs): Use it.
10419 * symfile.h (struct quick_symbol_functions)
10420 <map_symtabs_matching_filename>: Change spec.
10421 * psymtab.c (partial_map_symtabs_matching_filename): Use
10422 compare_filenames_for_search. Update for new spec.
10423 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10424 compare_filenames_for_search. Update for new spec.
10425 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10426
cafec441
TT
104272012-01-16 Tom Tromey <tromey@redhat.com>
10428
10429 PR python/13281:
10430 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10431 (struct main_type) <flag_flag_enum>: New field.
10432 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10433 * NEWS: Add entries.
10434 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10435 enums.
10436 * python/lib/gdb/printing.py (_EnumInstance): New class.
10437 (FlagEnumerationPrinter): Likewise.
10438
983af33b
SDJ
104392012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10440
10441 * breakpoint.c (create_sals_from_address_default): New function.
10442 (create_breakpoints_sal_default): Likewise.
10443 (decode_linespec_default): Likewise.
10444 (is_marker_spec): Removed.
10445 (strace_marker_p): New function.
10446 (init_breakpoint_sal): Using `strace_marker_p' instead of
10447 `is_marker_spec'.
10448 (create_breakpoint): Call method `create_sals_from_address' from
10449 breakpoint_ops, replacing code that created SALs conditionally
10450 on the type of the breakpoint. Call method `create_breakpoints_sal',
10451 replacing code that created breakpoints conditionally on the type
10452 wanted.
10453 (base_breakpoint_create_sals_from_address): New function.
10454 (base_breakpoint_create_breakpoints_sal): Likewise.
10455 (base_breakpoint_decode_linespec): Likewise.
10456 (base_breakpoint_ops): Add methods
10457 `base_breakpoint_create_sals_from_address',
10458 `base_breakpoint_create_breakpoints_sal' and
10459 `base_breakpoint_decode_linespec'.
10460 (bkpt_create_sals_from_address): New function.
10461 (bkpt_create_breakpoints_sal): Likewise.
10462 (bkpt_decode_linespec): Likewise.
10463 (tracepoint_create_sals_from_address): Likewise.
10464 (tracepoint_create_breakpoints_sal): Likewise.
10465 (tracepoint_decode_linespec): Likewise.
10466 (strace_marker_create_sals_from_address): Likewise.
10467 (strace_marker_create_breakpoints_sal): Likewise.
10468 (strace_marker_decode_linespec): Likewise.
10469 (strace_marker_breakpoint_ops): New variable.
10470 (addr_string_to_sals): Remove `marker_spec'. Call method
10471 `decode_linespec' from breakpoint_ops, replacing code that decoded
10472 an address string into a SAL. Use `strace_marker_p' instead of
10473 `marker_spec'.
10474 (strace_command): Decide whether we are dealing with a static
10475 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10476 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10477 * breakpoint.h (linespec_result, linespec_sals): New forward
10478 declarations.
10479 (breakpoint_ops) <create_sals_from_address>,
10480 <create_breakpoints_sal>, <decode_linespec>: New methods.
10481
4795f398
DE
104822012-01-14 Doug Evans <dje@google.com>
10483
10484 * NEWS: Update text for "maint set python print-stack".
10485 It is deprecated in gdb 7.4 and deleted in 7.5.
10486
ee5106fe
EZ
104872012-01-13 Eli Zaretskii <eliz@gnu.org>
10488
10489 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10490 including curses.h.
10491
b161e06f
JK
104922012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10493
10494 * configure: Regenerate.
10495 * config.in: Regenerate.
10496
85254831
KS
104972012-01-12 Keith Seitz <keiths@redhat.com>
10498
10499 PR mi/10586
10500 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10501 (ANONYMOUS_UNION_NAME): Define.
10502 (is_path_expr_parent): New function.
10503 (get_path_expr_parent): New function.
10504 (is_anonymous_child): New function.
10505 (create_child_with_value): If the child is anonymous and without
10506 a name, assign an object name to it.
10507 (c_describe_child): Use get_path_expr_parent to determine
10508 the parent expression.
10509 If there field represents an anonymous struct or union and
10510 has no name, set an appropriate display name and expression.
10511 (cplus_describe_child): Likewise.
10512
620fa63a
PA
105132012-01-12 Pedro Alves <palves@redhat.com>
10514
10515 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10516 available when %ebp is found to be zero (outermost).
10517
2efa2c79
AT
105182012-01-11 Andreas Tobler <andreast@fgznet.ch>
10519
10520 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10521 an internal gdb_static_assert.
10522 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10523
88e7d25d
TT
105242012-01-11 Tom Tromey <tromey@redhat.com>
10525
10526 PR gdb/9598:
10527 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10528 catch" and "catch throw".
10529
72384ba3
PH
105302012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10531
10532 * blockframe.c (block_innermost_frame): Start search from selected
10533 frame, if present, or otherwise the current frame.
10534
10535 * c-exp.y (variable): Update innermost_block for
10536 'block COLONCOLON NAME' clause.
10537 * m2-exp.y (variable): Ditto.
10538 * objc-exp.y (variable): Ditto.
10539
065a711f
TT
105402012-01-10 Tom Tromey <tromey@redhat.com>
10541
10542 PR python/13199:
10543 * python/python.c (finish_python_initialization): Set sys.argv.
10544
f3f5162e
DE
105452012-01-10 Doug Evans <dje@google.com>
10546
10547 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10548 "want_line_info". All callers updated.
10549 (dwarf_decode_lines_1): New function.
10550 (handle_DW_AT_stmt_list): Add function comment.
10551 New arg "want_line_info". All callers updated.
10552 (read_file_scope,read_type_unit_scope): Move comment from
10553 handle_DW_AT_stmt_list to here.
10554
9934703b
JK
105552012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10556
10557 Fix regression after libiberty/ update for GCC PR 6057 and others.
10558 * c-exp.y (operator) <OPERATOR DELETE>
10559 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10560 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10561 (make_builtin_type, make_name): New variable i, add gdb_assert.
10562 (operator) <OPERATOR NEW>: Update ARGS to 3.
10563 (operator) <OPERATOR DELETE>: Add trailing space.
10564 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10565 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10566 * cp-support.c (cp_canonicalize_string): Check NULL from
10567 cp_comp_to_string, call warning and return.
10568
06b9f45f
JK
105692012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10570
10571 Fix duplicate .o files after omitting libbfd.a.
10572 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10573 (SFILES): Add corelow.c.
10574 (COMMON_OBS): Add corelow.o.
10575 (ALLDEPFILES): Remove corelow.c.
10576 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10577 * config/alpha/alpha-osf3.mh: Likewise.
10578 * config/alpha/fbsd.mh: Likewise.
10579 * config/arm/nbsdaout.mh: Likewise.
10580 * config/arm/nbsdelf.mh: Likewise.
10581 * config/i386/i386gnu.mh: Likewise.
10582 * config/ia64/hpux.mh: Likewise.
10583 * config/ia64/linux.mh: Likewise.
10584 * config/m32r/linux.mh: Likewise.
10585 * config/m68k/linux.mh: Likewise.
10586 * config/mips/irix5.mh: Likewise.
10587 * config/mips/irix6.mh: Likewise.
10588 * config/pa/hpux.mh: Likewise.
10589 * config/pa/linux.mh: Likewise.
10590 * config/powerpc/aix.mh: Likewise.
10591 * config/sparc/linux.mh: Likewise.
10592 * config/sparc/linux64.mh: Likewise.
10593 * config/sparc/sol2.mh: Likewise.
10594 * config/vax/vax.mh: Likewise.
10595 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10596 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10597 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10598 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10599 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10600 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10601 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10602 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10603 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10604 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10605 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10606 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10607 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10608 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10609 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10610 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10611 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10612 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10613 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10614 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10615 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10616 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10617 corelow.o from gdb_target_obs.
10618 * corefile.c (core_target): Update the comment on NULL value.
10619 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10620 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10621 MATCHES. Drop YUMMY set on NULL.
10622 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10623 reclaim CORE_DATA if it is already NULL.
10624
34365054
DE
106252012-01-09 Doug Evans <dje@google.com>
10626
10627 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10628 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10629
696166a3
KS
106302012-01-09 Keith Seitz <keiths@redhat.com>
10631
10632 * breakpoint.c (wrapper.h): Don't include.
10633
8e7b59a5
KS
106342012-01-09 Keith Seitz <keiths@redhat.com>
10635
10636 * Makefile.in (SFILES): Remove wrapper.c.
10637 (HFILES_NO_SRCDIR): Remove wrapper.h.
10638 (COMMON_OBS): Remove wrapper.o.
10639 * cli/cli-interp.c: Don't inlude wrapper.h.
10640 * corelow.c: Likewise.
10641 (core_open): Replace gdb_target_find_new_threads with
10642 TRY_CATCH around target_find_new_threads.
10643 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10644 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10645 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10646 evaluate_expression.
10647 (varobj_set_value): Likewise for evaluate_expression and
10648 value_assign.
10649 (install_new_variable): Likewise for value_fetch_lazy.
10650 (adjust_value_for_child_access): Likewise for value_ind.
10651 (c_describe_child): Likewise for value_subscript and
10652 value_ind.
10653 (c_value_of_root): Likewise for evaluate_expression.
10654 * wrapper.c: Remove.
10655 * wrapper.h: Remove.
10656
1a4eeb98
DE
106572012-01-09 Doug Evans <dje@google.com>
10658
9ff913ba
DE
10659 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10660 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10661 "abfd" args with "section". All callers updated.
10662 Error checking code moved ...
10663 (error_check_comp_unit_head): ... here. New function.
10664 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10665 Delete arg "abfd". New arg "type_offset". All callers updated.
10666 (create_debug_types_hash_table): Simplify by using
10667 read_and_check_type_unit_head.
10668
1a4eeb98
DE
10669 * parser-defs.h (namecopy): Delete.
10670 * parse.c (namecopy, namecopy_size): Move into copy_name.
10671
2e6af8c0
JK
106722012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10673
10674 Partially fix duplicate .o files after omitting libbfd.a.
10675 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10676 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10677 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10678 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10679 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10680 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10681 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10682
9f2f828a
PA
106832012-01-09 Pedro Alves <palves@redhat.com>
10684
10685 * MAINTAINERS: Update my email address.
10686
4d72c0bc
DE
106872012-01-08 Doug Evans <dje@google.com>
10688
d467dd73
DE
10689 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10690 n_type_units. Rename type_comp_units to all_type_units.
10691 All uses updated.
10692 (add_signatured_type_cu_to_table): Renamed from
10693 add_signatured_type_cu_to_list. All callers updated.
10694
4d72c0bc
DE
10695 * gdbtypes.h (struct cplus_struct_type): Delete member
10696 nfn_fields_total. All uses removed.
10697
21b2bd31
DE
106982012-01-06 Doug Evans <dje@google.com>
10699
10700 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10701 to top of file.
10702 (dwarf2_find_comp_unit): Delete.
10703 (process_psymtab_comp_unit): Make result "void".
10704 Delete args buffer, info_ptr, buffer_size, and replace with
10705 "section". All callers updated.
10706 (dwarf2_build_psymtabs_hard): Simplify.
10707
bfd189b1
SDJ
107082012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10709 Thiago Jung Bauermann <bauerman@br.ibm.com>
10710
10711 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10712 before `struct gdb_exception'.
10713 * breakpoint.c (update_global_location_list_nothrow)
10714 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10715 * cp-abi.c (value_rtti_type): Likewise.
10716 * cp-support.c (cp_validate_operator): Likewise.
10717 * infrun.c (insert_exception_resume_breakpoint)
10718 (check_exception_resume, keep_going): Likewise.
10719 * mi-interp.c (mi_breakpoint_created)
10720 (mi_breakpoint_modified): Likewise.
10721 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10722 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10723 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10724
6b07635f
DE
107252012-01-05 Doug Evans <dje@google.com>
10726
0b30b85c
DE
10727 * dwarf2read.c (statement_prologue): Delete, unused.
10728
98714339
DE
10729 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10730 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10731
6b07635f
DE
10732 * dwarf2read.c (comp_unit_header): Delete, unused.
10733
761f4555
UW
107342012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10735
10736 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10737 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10738
2ca0b532
PA
107392012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10740
10741 * infrun.c (normal_stop): Don't skip calling the normal_stop
10742 observers if the thread was doing a multi-step, but stopped for
10743 some reason other than stepping.
10744
50aeff07
PA
107452012-01-05 Pedro Alves <alves.ped@gmail.com>
10746
10747 * cli/cli-decode.h: Add comments.
10748 (CMD_LIST_AMBIGUOUS): Moved to command.h
10749 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10750 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10751 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10752 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10753 (add_com, add_com_alias, add_info, add_info_alias)
10754 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10755 declarations.
10756 * command.h: Add and adjust comments.
10757 (CMD_LIST_AMBIGUOUS): Moved here.
10758 (help_cmd, help_cmd_list): Delete declarations.
10759
5953832c
DE
107602012-01-04 Doug Evans <dje@google.com>
10761
e5fe5e75
DE
10762 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10763 All callers updated.
10764 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10765 Replace all arguments with "per_cu". All callers updated.
10766
28dee7f5
DE
10767 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10768
23745b47
DE
10769 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10770 New arg "per_cu". All callers updated.
10771
5953832c
DE
10772 Delete #if 0'd out code.
10773 * language.c (binop_result_type): Delete.
10774 (simple_type, ordered_type, same_type, integral_type): Delete.
10775 (numeric_type, character_type, string_type, boolean_type): Delete.
10776 (float_type, structured_type): Delete.
10777 * language.h: Update.
10778
0f5b7562
TT
107792012-01-04 Tom Tromey <tromey@redhat.com>
10780
10781 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10782
78218f56
JB
107832012-01-04 Joel Brobecker <brobecker@adacore.com>
10784
10785 * corefile.c (close_exec_file): Delete.
10786 (reopen_exec_file): Remove commented out code that seems related
10787 to close_exec_file, which is being deleted here.
10788 * inferior.h (close_exec_file): Delete.
10789 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10790
0fcd72ba
JB
107912012-01-04 Joel Brobecker <brobecker@adacore.com>
10792
10793 * ada-lang.c: #include "cli/cli-utils.h".
10794 (get_selections): Use skip_spaces.
10795 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10796 (catch_ada_exception_command_split): Use skip_spaces.
10797 (ada_decode_assert_location): Likewise.
10798
1dabb4c4
JB
107992012-01-04 Joel Brobecker <brobecker@adacore.com>
10800
10801 * linespec.c (decode_line_internal): Check for C++ or Java
10802 compound constructs only if the current language is C, C++
10803 or Java.
10804
5931a2fa
JK
108052012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10806
10807 Revert:
10808 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10809 Joel Brobecker <brobecker@adacore.com>
10810 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10811 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10812 3 times.
10813 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10814 fall through into AT_ENTRY_POINT.
10815 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10816 DUMMY_ADDR with it.
10817 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10818 PPC_INSN_SIZE skip to 3 times.
10819
1a2da5ee
JB
108202012-01-04 Joel Brobecker <brobecker@adacore.com>
10821
10822 * linespec.c (add_minsym): Preserve function descriptors.
10823
8645ff69
UW
108242012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10825
10826 * breakpoint.c (all_locations_are_pending): Consider locations
10827 in program spaces executing during startup pending as well.
10828
0b302171
JB
108292012-01-04 Joel Brobecker <brobecker@adacore.com>
10830
10831 Copyright year update in most files of the GDB Project.
10832
8ba098ad
JB
108332012-01-04 Joel Brobecker <brobecker@adacore.com>
10834
10835 * copyright.sh: Delete.
10836 * copyright.py: Rewrite.
10837
09c01c30
JB
108382012-01-04 Joel Brobecker <brobecker@adacore.com>
10839
10840 * gnulib/extra/update-copyright: New file, imported from gnulib.
10841
3c36c0af
JB
108422012-01-04 Joel Brobecker <brobecker@adacore.com>
10843
10844 * README (Copyright and License Notices): New section.
10845
888fe1e1
TT
108462012-01-03 Tom Tromey <tromey@redhat.com>
10847
10848 PR python/12533:
10849 * python/py-value.c (valpy_dereference, valpy_get_address
10850 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10851 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10852 (valpy_absolute, valpy_richcompare): Free intermediate values.
10853
6e681866
JB
108542011-01-03 Joel Brobecker <brobecker@adacore.com>
10855
10856 * ada-lang.c: Reformat the copyright notice.
10857
0cd09acb
JK
108582012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10859
10860 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10861 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10862 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10863 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10864 Revert this part of:
10865 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10866 Build gdb directly from *.o files not using libgdb.a.
10867 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10868
12c3e59c
JB
108692012-01-02 Joel Brobecker <brobecker@adacore.com>
10870
10871 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10872 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10873 Reformat the copyright header.
10874
11bf1490
JK
108752012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10876
10877 Revert this part of:
10878 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10879 Remove the gdbtui binary.
10880 * gdb.c (main): Remove args.interpreter_p initialization.
10881 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10882 * main.h (struct captured_main_args): Remove interpreter_p.
10883
1fef196f
JB
108842012-01-02 Joel Brobecker <brobecker@adacore.com>
10885
10886 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10887
67827812
JB
108882012-01-02 Joel Brobecker <brobecker@adacore.com>
10889
10890 * top.c (print_gdb_version): Update copyright year.
10891
a4d0b831
YQ
108922012-01-02 Yao Qi <yao@codesourcery.com>
10893
10894 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10895
b5914469
JK
108962012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10897 Joel Brobecker <brobecker@adacore.com>
10898
10899 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10900 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10901 3 times.
10902 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10903 fall through into AT_ENTRY_POINT.
10904 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10905 DUMMY_ADDR with it.
10906 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10907 PPC_INSN_SIZE skip to 3 times.
10908
8da828f7
JK
109092012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10910
10911 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10912 the return value.
10913 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10914
8574e74b
JK
109152012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10916
10917 Build gdb directly from *.o files not using libgdb.a.
10918 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10919 (COMMON_OBS): Remove solib-target.o.
10920 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10921 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10922 (LIBGDB_OBS, libgdb.a): Move it above.
10923 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10924 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10925 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10926 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10927 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10928 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10929 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10930 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10931 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10932 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10933 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10934 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10935 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10936 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10937 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10938 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10939 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10940 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10941 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10942 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10943 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10944 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10945 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10946 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10947 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10948 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10949 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10950
217bff3e
JK
109512012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10952
10953 Remove the gdbtui binary.
10954 * .gitignore (/gdbtui): Remove.
10955 * Makefile.in (TUI): Remove.
10956 (SUBDIR_TUI_OBS): Remove tui-main.o.
10957 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10958 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10959 (tui-main.o): Remove.
10960 (all_object_files): Remove tui-main.o.
10961 * NEWS: New note for the gdbtui removal.
10962 * configure: Rebuilt.
10963 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10964 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10965 CONFIG_UNINSTALL respectively.
10966 * gdb.c (main): Remove args.interpreter_p initialization.
10967 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10968 * main.h (struct captured_main_args): Remove interpreter_p.
10969 * tui/tui-main.c: Remove.
10970
9cdd5dbd
DE
109712012-01-01 Doug Evans <dje@google.com>
10972
bb5ed363
DE
10973 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10974 (dwarf2_physname, read_import_statement): Ditto.
10975 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10976 (process_structure_scope read_subroutine_type): Ditto.
10977 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10978 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10979 (dwarf2_fetch_die_location_block): Ditto.
10980 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10981
a0f42c21
DE
10982 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10983 All callers updated.
10984 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10985 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10986 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10987
2dc860c0
DE
10988 * dwarf2read.c (load_cu): Move assert to more useful location.
10989
68dc6402
DE
10990 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10991 All callers updated.
10992
9cdd5dbd
DE
10993 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10994 (dwarf2_elf_names): Minor reformat.
10995 (dwarf2_per_cu_data): Tweak comment.
10996 (dwarf2_read_section): Fix comment.
10997 (create_all_comp_units): Fix comment.
10998 (load_full_comp_unit): Fix comment.
10999 (process_full_comp_unit): Fix comment.
11000 (read_signatured_type): Fix comment.
11001
0c10e53e 11002For older changes see ChangeLog-2011.
c906108c
SS
11003\f
11004Local Variables:
11005mode: change-log
11006left-margin: 8
11007fill-column: 74
11008version-control: never
57da7796 11009coding: utf-8
c906108c 11010End: